Author Topic: Making a delay that is over 30 seconds.  (Read 1128 times)

I know I posted a topic like this a while ago, but I can't seem to find it. Basically, all I need to know is how to make delays that are over 30 seconds.


30000 milleseconds...
I know I posted a topic like this a while ago, but I can't seem to find it. Basically, all I need to know is how to make delays that are over 30 seconds.


So put more than 30000 milleseconds in the box...
30000ms is the max that is allowed. Any higher is automatically turned into 30000ms.

use a loop, with a counter


use a loop, with a counter
I'm not 100% sure what you mean but I think I have an idea. I'll try it out and unlock this thread if it doesn't work.

Warning - while you were typing a new reply has been posted. You may wish to review your post.

Relays or VCE work.
That's what I'm going to try.

So, could anyone help me with why this isn't working:




When doing this I prefer something like the following:
Code: [Select]
[x] [ ] 1. onActivate   Self   fireRelay
[x] [30000] 2. onRelay   Self   fireRelay
[x] [ ] 3. onRelay   Self   VCE_modVariable   [Timer] [Add] [1]
[x] [ ] 4. onRelay   Self   VCE_ifVariable   [Timer] [==] [4] [5 7]
[x] [ ] 5. onVariableTrue   Self   VCE_modVariable   [Timer] [Set] [0]
[x] [ ] 6. onVariableTrue   Minigame   chatMessageAll [The time is up!]
this would me it so that every two minutes in the minigame a message is sent to all saying "The time is up!"
To change the amount of time simply change the delay in line two and the if variable == in line 4.

What if I was trying to link songs I made together? Would I do:

Code: [Select]
[x] [0 ] 1. onActivate     Self   fireRelay
[x] [30000] 2. onRelay   Self   fireRelay
[x] [0] 3. onRelay          Self   VCE_modVariable   [song] [Add] [1]
[x] [0] 4. onRelay          Self   VCE_ifVariable   [song] [==] [2] [5]
[x] [0] 5. onVariableTrue   Namedbrick  Music  Setmusic [pt. 1]
[x] [0] 6. onRelay          Self    VCE_ifVariable  [song] [==] [4] [7]
[x] [0] 7. onVariableTrue   Namedbrick  Music  Setmusic [pt. 2]
[x] [0] 8. onRelay          Self    VCE_ifVariable  [song] [==] [6] [9]
[x] [0] 9. onVariableTrue   Namedbrick  Music  Setmusic [pt. 3]
[x] [0] 10. onRelay        Self     Firerelay

?

Code: [Select]
[x] [0 ] 1. onActivate     Self   fireRelay
[x] [30000] 2. onRelay   Self   fireRelay
[x] [0] 3. onRelay          Self   VCE_modVariable   [song] [Add] [1]
[x] [0] 4. onRelay          Self   VCE_ifVariable   [song] [==] [2] [5]
[x] [0] 5. onVariableTrue   Namedbrick  Music  Setmusic [pt. 1]
[x] [0] 6. onRelay          Self    VCE_ifVariable  [song] [==] [4] [7]
[x] [0] 7. onVariableTrue   Namedbrick  Music  Setmusic [pt. 2]
[x] [0] 8. onRelay          Self    VCE_ifVariable  [song] [==] [6] [9 10]
[x] [0] 9. onVariableTrue   Namedbrick  Music  Setmusic [pt. 3]
[x] [0] 10. onVariableTrue   Self VCE_modVariable   [song] [Set] [0]
This would switch the song every minute.

This would switch the song every minute.

Awesome, that's what I want. Thanks.

So now it isn't working. It starts with song #2 and then continues as normal. Ive already got a button to reset it to 0 but it still doesn't want to work.