I need to make a common event that starts when a switch is on and then wait for about 10-15 minutes to continue the execution, the problem is that the wait option only works till 999 frames (16 seconds) and this is not enought, is there any way to do that?
How can i make an event wait for about 10-15 minutes?
RPG Maker MZ SupportJust do it with a loop if it has to be done.
That loop should wait for 1 second, increase the variable by 1, and then check to see if it's been long enough. I believe my math is right, 15 mins * 60 seconds per min * 60 frames per second = 54,000.
Then beneath all of that you have it do what it's supposed to do.
Code:
◆Loop
◆Wait:60 frames
◆Control Variables:#0001 Temporary Variable 1 += 1
◆If:Temporary Variable 1 = 54000
◆Break Loop
◆
:End
◆
:Repeat Above
That loop should wait for 1 second, increase the variable by 1, and then check to see if it's been long enough. I believe my math is right, 15 mins * 60 seconds per min * 60 frames per second = 54,000.
Then beneath all of that you have it do what it's supposed to do.
@GmOcean
But if you increase the variable every 60 frames (effectively counting 1 second), would it not just be 900? Since 900 seconds : 60 (to count minutes) = 15 minutes
So it should be 900 instead of 54000
But if you increase the variable every 60 frames (effectively counting 1 second), would it not just be 900? Since 900 seconds : 60 (to count minutes) = 15 minutes
So it should be 900 instead of 54000
Works perfectly! Thk for the help.
Just one thing, as the wait is 1 second and not 1 frame, you only have to do 60 * 15 = 900.
Just one thing, as the wait is 1 second and not 1 frame, you only have to do 60 * 15 = 900.
Ahh you're right lol. That's what I get for doing math before drinking coffee. I thought it said 1/60th of a second xD.
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-an-event-wait-for-about-10-15-minutes.132065/