Author Topic: How can toggleEventEnabled/setEventEnabled cycle through more than two things?  (Read 612 times)

I can only do this:
Quote
0 onActivate self dostuff
1 onActivate self doDifferentstuff
1 onActivate self toggleEventEnabled [0 1]
How can I make it so it cycles through more than two things (at least 3)?
Any help would be appreciated. <3

1 onActivate self toggleEventEnabled [0 1 2 3 4 5 6 etc.]

This is an example from a flickering light event of mine:

Code: [Select]
# Event Saver v0.1 - 12/02/12 00:50:03
X 10000ms onBrickLoaded Self fireRelay
- 0ms onRelay Self setLight Yellow Amb. Dimmer
- 3000ms onRelay Self fireRelay
- 0ms onRelay Self toggleEventEnabled 1 2 3 4 5 6
X 0ms onRelay Self setLight NONE
X 100ms onRelay Self fireRelay
X 0ms onRelay Self toggleEventEnabled 4 5 6 7 8 9
- 0ms onRelay Self setLight Yellow Amb. Dimmer
- 500ms onRelay Self fireRelay
- 0ms onRelay Self toggleEventEnabled 7 8 9 10 11 12
- 0ms onRelay Self setLight NONE
- 100ms onRelay Self fireRelay
- 0ms onRelay Self toggleEventEnabled 10 11 12 1 2 3
X 33ms onActivate Self fireRelay

Note how the events are enabled/disabled in blocks.

For Example Rainbow Block/Vehicle:
1.onActivate>Self>fireRelay (Relay 33)
2.onRelay>Self>ChangeColor (Relay 50)
3.onRelay>Self>ChangeColor (Relay 100)
4.onRelay>Self>ChangeColor (Relay 150)
5.onRelay>Self>ChangeColor (Relay 200)
6.onRelay>Self>FireRelay (Relay 250)
Then Click that Evented Brick and there you go! Rainbow Block/Vehicle!
Also, you can make it with lights and you can make Relays 50 100 150 200 250 300 for fast and 100 200 300 400 500 600 for Slow.
That's a Fun for Races or something if you want a funny Rainbow Vehicles.

For Example Rainbow Block/Vehicle:
1.onActivate>Self>fireRelay (Relay 33)
2.onRelay>Self>ChangeColor (Relay 50)
3.onRelay>Self>ChangeColor (Relay 100)
4.onRelay>Self>ChangeColor (Relay 150)
5.onRelay>Self>ChangeColor (Relay 200)
6.onRelay>Self>FireRelay (Relay 250)
Then Click that Evented Brick and there you go! Rainbow Block/Vehicle!
Also, you can make it with lights and you can make Relays 50 100 150 200 250 300 for fast and 100 200 300 400 500 600 for Slow.
That's a Fun for Races or something if you want a funny Rainbow Vehicles.
If you know what i mean, then good.