Author Topic: Make event delay times longer.  (Read 1468 times)

« Last Edit: June 28, 2012, 07:10:35 PM by Deadzone »

What, 30 seconds is too short?

What has the world come too?

What, 30 seconds is too short?

What has the world come too?

Yes 30 seconds is too short for how complicated the project I'm doing is. Unless if there is an add-on that will allow: onRelay<Minigame< X, then 30 seconds is too short.

What I want to know is: why wasn't it originally a minute? :c

You can use VCE to make a incrementing variable, when that variable reaches a certain number, it resets that variable and triggers whatever event.

Make a relay loop that loops X times, each loop lasting 30 seconds, before executing the wanted event.

Example:

0 onTrigger -> self -> setvariable [counter] [10]
33 onTrigger -> self -> fireRelay
0 onRelay -> self -> ifvariable [counter] > 0
0 onVariableTrue -> self -> modVariable [counter] -> substract 1
30000 onVariableTrue -> self -> fireRelay
0 onVariableFalse -> ....

The syntax isn't right, but you get the point. It's basically a while-loop.    

Make a relay loop that loops X times, each loop lasting 30 seconds, before executing the wanted event.

Example:

0 onTrigger -> self -> setvariable [counter] [10]
33 onTrigger -> self -> fireRelay
0 onRelay -> self -> ifvariable [counter] > 0
0 onVariableTrue -> self -> modVariable [counter] -> substract 1
30000 onVariableTrue -> self -> fireRelay
0 onVariableFalse -> ....

The syntax isn't right, but you get the point. It's basically a while-loop.    

That is: something I wouldn't have thought of off the top of my head. I will have to try this.

Make a relay loop that loops X times, each loop lasting 30 seconds, before executing the wanted event.

Example:

0 onTrigger -> self -> setvariable [counter] [10]
33 onTrigger -> self -> fireRelay
0 onRelay -> self -> ifvariable [counter] > 0
0 onVariableTrue -> self -> modVariable [counter] -> substract 1
30000 onVariableTrue -> self -> fireRelay
0 onVariableFalse -> ....

The syntax isn't right, but you get the point. It's basically a while-loop.    
Thank you for repeating my exact post.

you don't need to use variables, a toggle counter would work too

Thank you for repeating my exact post.
You posted while I wrote it.