Help with common event

So I'm trying to do a small hide and seek mini-game within my game but I for whatever reason cannot figure out the issue I'm having. The common event that I have set up starts fantastically, the problem is when the timer that I have set reaches zero... it just stays at 0. I have a condition branch set up so that if the timer < 0.01 then the next common event is to kick in, stop the timer, and try again. WTF am I doing wrong?! Please help, I'm going insane... D:<


This is the first common event to start


HS fail.png


And this is what it is supposed to do when the timer reaches zero and the hiders have not been found.


HS fail2.png
you misunderstood how the conditional branches work.


They check the status in the frame (time unit) they're called, and then continue.


You start the timer with a 20 second time, and when the conditional branch comes the timer is still in the first frame of the first second, so the condition is wrong and the other common event is not called. And then your common event ends - twenty seconds later the time is up, but there is no common event any longer that checks that time.


And exit event processing at the end does absolutely nothing here - the event ends anyway, no need to exit it.


I suggest you follow the link to the starting point in my signature. I linked a lot of important tutorials there, and you should at least work though the ones for eventing. That is because the timer needs either parallel processes (which are difficult for people who haven't handled them before) or the timer conditional branch needs to be checked by a different event than the one starting the timer, because there is no time passing during a single event.


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
@Beliel...


You need a structure such as this for a Timer...


◆Comment:Let Caller run for 10 seconds...
◆Control Timer:Start, 0 min 10 sec
◆Label:Countdown



◆Comment:Test the Timer...
◆If:Timer ≤ 0 min 0 sec
  ◆Jump to Label:End_Chase
  ◆
:End



◆Comment:Do what happens whilst the Timer is still running...


◆...


◆...


◆Comment:Loop back to test the Timer again...
◆Jump to Label:Countdown
◆Label:End_Chase



◆Comment:Do whatever happens at Time-out...


◆...


◆...


Modify, of course, to your particular needs, but that's the sequence needed.


The recommendation to work through the tutorials is, of course, valid. They're the quickest way to proficiency.


Hope this helps.
Im semi-familiar with parallel events but I didn't know all that, thank you so much! Worked like a charm! You both are officially my heros for the day  😀


P.S. Sorry for posting in the wrong area, won't happen again.
R91KekF.gif

Original thread: https://forums.rpgmakerweb.com/threads/help-with-common-event.67990/