| Blockland Forums > Help |
| How can toggleEventEnabled/setEventEnabled cycle through more than two things? |
| (1/1) |
| Subpixel:
I can only do this: --- Quote ---0 onActivate self dostuff 1 onActivate self doDifferentstuff 1 onActivate self toggleEventEnabled [0 1] --- End quote --- How can I make it so it cycles through more than two things (at least 3)? Any help would be appreciated. <3 |
| K3k0m@n:
1 onActivate self toggleEventEnabled [0 1 2 3 4 5 6 etc.] |
| Greek2me:
This is an example from a flickering light event of mine: --- Code: ---# 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 --- End code --- Note how the events are enabled/disabled in blocks. |
| Davidosss2003:
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. |
| Davidosss2003:
--- Quote from: Davidosss2003 on April 22, 2013, 02:48:16 PM ---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. --- End quote --- If you know what i mean, then good. |
| Navigation |
| Message Index |