Author Topic: I need help with relays!  (Read 310 times)

I scratched the idea of using a script, and now I'm using relays. I'm having problems with making the green light longer...
what do I do?
Here's the events
Delay:33 OnActivate->Self->fireRelay
Delay:4000 onRelay->self->setLight: Red Light
Delay:1400 onRelay->Self->setLight: yellow Light
Delay:24000 onRelay->Self->setLight: green Light
Delay:30000 onRelay-> Self-> fireRelay
also, how can I make it so ALL lights don't go at the same time? As in a whole intersection turning green?
And finally, how do I do this event so it changes the lights of 3 bricks? so instead of one block changing, the bricks change color, a green brick, a yellow brick, and a red brick?

you can use named bricks or put the events on the middle one (yellow) and fire relays up/down to toggle the red/green lights

to go longer than 30 seconds you can use a toggle with the relays to bump it up to 60 seconds
say what delays for everything you want and it'll be easier to show you

and to make the green light longer while maintaining the 30 second loop, you can shorten red/yellow lights, since that's a very long yellow light (~20 seconds on yellow seems like a while?)