Author Topic: Toggle event  (Read 821 times)

How would I make something toggle between more than two events.
(i.e. I hit button once does first thing, hit again does second thing, hit again does third thing, hit again does first thing)

[ticked] [delay=0] onActivate -> Self -> SetColor -> (Red)
[unticked] [delay=0] onActivate -> Self -> SetColor -> (Green)
[ticked] [delay = 0] onActivate -> Self -> ToggleEventEnabled -> "0 1"

[ticked] [delay=0] onActivate -> Self -> SetColor -> (Red)
[unticked] [delay=0] onActivate -> Self -> SetColor -> (Green)
[ticked] [delay = 0] onActivate -> Self -> ToggleEventEnabled -> "0 1"

no, he said more than 2 events.

[ticked] [delay=0] onActivate -> Self -> SetColor -> (Red)
[unticked] [delay=0] onActivate -> Self -> SetColor -> (Green)
[unticked] [delay=0] onActivate -> Self -> SetColor -> (Blue)
[ticked] [delay = 0] onActivate -> Self -> ToggleEventEnabled -> "0 1 3 4"
[unticked] [delay = 0] onActivate -> Self -> ToggleEventEnabled -> "1 2 4 5"
[unticked] [delay = 0] onActivate -> Self -> ToggleEventEnabled -> "0 2 3 5 "

I think this might possibly work, but it's really way too complex for just sticking in another toggle.

Oh, I didn't see that. Yours looks like it would work fine, then.