Timer doesn't restart?

I've set up an event multiple times where a switch turns on a timer and then the switch is turned off. (Auto run and then parrell for the less than 0min 0 sec)

I've done so much testing and there are only two switches, on and off. I wonder why it isn't working? Is it possible when you use the event command stop timer it doesn't display again?
Your problem is that the switch won’t turn off? Post a screenshot of the event.
No, my problem is that the timer won't restart. When the time displays the first time, everything works perfectly.

When the same event is run again, the timer doesn't display at all. Everything in the event seems to look correct and it doesn't make sense why this event that plays a second time the exact way won't show the timer. Why would the timer show for the first run and not the second? :?
If you post a screenshot of the event, I bet we can figure it out.
"Npc hiding spot 2" is one of four events. (locations to hide on map) They are copy and paste. (Hiding place pages 1 is blank)

"npc" is what starts the event, along with pages if the player wins or loses

"timer" is a separate event that begins the timer. (Note: The first page of timer is blank)

In theory, the npc hides and the player has four locations to check, with the npc hiding random at one of them. Timer should stop once npc is found or player loses. The event should restart and can be played again.

Instead of that though, the timer never shows up after displaying one time...
( I see for the "timer2" event that the page switch is turned off first, then the self switch. Does that order matter?)

I've been able to make this event work but playing a second time never works or displays the timer. I check to see what switches are on and off during test play, but everything looks fine. I keep messing with this event again and again. I still can't figure out what is wrong...
I’ll try and recreate this for you when I have time. One thing I do notice that would make your events a bit simpler: You set a random variable to choose the hiding place and then have the variable turn on a switch. Why involve a switch? Just have your event page conditions check for the variable directly instead of the switches. There’s no reason it shouldn’t work the way you have it but unnecessary extra steps make troubleshooting more difficult.
Another thing I notice and I could be wrong about this, you have some event commands after you turn off the page conditions switch. I believe turning off the switch that allows the page to run should be the last command in the event.
I’ll try and recreate this for you when I have time. One thing I do notice that would make your events a bit simpler: You set a random variable to choose the hiding place and then have the variable turn on a switch. Why involve a switch? Just have your event page conditions check for the variable directly instead of the switches. There’s no reason it shouldn’t work the way you have it but unnecessary extra steps make troubleshooting more difficult.

Because I thought only switches activate/turn on events on the maps? Also because four events with one at random being turned on, thus I used switches.
No, under page conditions you can set it to a variable. You don’t even need those conditional branches on page 1 of the npc event if you do that.
I'm not so sure about that. The variable page conditions have to do with greater than or equal to, not a set variable number.
Your correct, that’s my bad.
Okay well, I just fixed my problem. I realized I was using a self switch for the timer as well and I removed that for a real switch. Works great now. Funny how the small things can be overlooked for DAYS.

This can be closed now. Thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/timer-doesnt-restart.126185/