how to have the wait event last 10 minutes

Hello again guys, I wanted to make a chase game that would last 10 minutes, the objective is to survive for 10 minutes without dying. But I can't get the timer to reach 0 lasting 10 minutes, I can only get it to 9:10, would anyone know how to help me?

I have the event like this
1732752029806.png
You don't want to crop screenshots of your events - there's important information in all the settings on the left that you've cut off.

You also probably don't want to put all of that in one event. The whole point of the timer is that once you start it, it runs in the background.

So based on what we can see, it looks like you're making your event incorrectly. But just to answer your question, there's no reason you can't do multiple Wait commands in a row.
Você não quer cortar capturas de tela dos seus eventos - há informações importantes em todas as configurações à esquerda que você cortou.

Você provavelmente também não quer colocar tudo isso em um evento. O objetivo do timer é que, uma vez iniciado, ele rode em segundo plano.

Então, com base no que podemos ver, parece que você está fazendo seu evento incorretamente. Mas, só para responder à sua pergunta, não há razão para que você não possa fazer vários comandos Wait em sequência.

(I forgot to say, but the switch there is useless, I forgot to take it off)
1732752882152.png
So, to solve my problem, would I add several waits until I reach 10 minutes?
Spoiler: Old reply
If you do:
Code:
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
◆Wait:900 frames
it will wait for 15 seconds, 40 times.

15sec × 4 = 60sec = 1 minute.

4 × 10 = 40

So 40 × 15sec = 10 minutes

Edit: This is better. Try:
Code:
this.wait(36000);
Use it as a script call
That won't work because you posted some code in Javascript but RMXP uses Ruby...
Oh oops... Then the original reply would still work. 40 times wait 900 frames. (900 frames = 15 seconds)
ok, thanks for the answers, i will try that
Okay, you now know how to make a system wait 10 minutes. But you kind of skipped over ATT_Turan's comment about using the timer wrong.

I have to admit, I don't find it very clear how the timer works either, but here is how you should use it, in my opinion.:
  1. When a timed objective starts, start the timer and stop the event, either with a switch or by erasing it.
  2. When the timed objective is completed, stop the times, and check if it is still above 0. If so, the player passed the challenge. If not, the player fails.
I don't see the need for the waiting time. It's easy to setup the event using 2 very short pages.

timerxp01.jpeg
timerxp02.jpeg

I selected the Autorun trigger on the first page only because I didn't need to trigger it by touch in my test demo.
the only problem with timer in MV is that is restarts and isn't persistent
without a plugin.

I cannot tell if XP has the same issue or keeps when transfering to
a new location though, but the solution by Kyonides can work if its also persistent.

for a single map is it ideal, but if it needs to be hidden, than a small ruby snippet
to hide the timer might be required or the way by JohnDoeNews.

depending how and where you use it as well for the mechanic as there are multiple
ways.

if by a variable counter with timer +1 (this is a way for persistent).

so when a variable reach 10min, this can be done with a waitframe of 60 (every second)
till it updates or by by every 10 seconds (600 wait frames).

so choose what works best and check if the variable X >= 36000 to do whatever happens.
OK, if we start talking about hidden timers...

Go to the script's thread.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-the-wait-event-last-10-minutes.173497/