Hi to start off I'm fairly familiar with E1 an I know basic E2. My question was in E1 how would I make a set line of code be ignored for a set amount of time after it is used like this (R==1 -> B=1) That's if a trains ranger hits a color that equaled 1 then it would engage the brakes. then it would go to this (B==1 -> TIMER=1) -> (TIMERC==30 -> B==0). Well then how would I make it so that the first line of the expression wouldn't do anything until it was on its way to the next station? Or past that color an the color equaled 225 again? Its hard for me to wrap my head around. I was thinking, it would engage another timer that would count to 30 again an until it hit 30. It would keep brakes at 0 or (TIMERC==30 -> TIMER2=1) -> (TIMERC2>0 -> B=0). Any ideas?? Ive been trying this kind of thing for awhile now but cant figure it out. Question 2 how would I write a line that would mean that if it equals any of these numbers then this will happen like (R==(2-6) -> B=1)? For this Ive been making the same line with the values differ each line like this B==1 or B==2 or B==3 Etc. So how would I make it engage B if it equaled any number from 2 to 6.....? Sorry this isn't the best written thing but its hard to explain all this. Im sure all this is easy an has a simple fix/way to solve it but I'm not sure. Ive searched the forums for answers to all these with no Luck finding the answers. [EDIT]I think this belongs in E1/2 but Im not sure I figured this is a general question so I posted it here if this is wrong please tell me where to post it ^_^
Last edited by sk8erjosh; 05-07-2010 at 03:36 AM.
Reason: Might have posted in wrong area
Bookmarks