Need help with timer reseting when changing maps.

I am helping someone else with an event that runs a continuous timer that causes a SE and a battle to happen when it hits 0:00, got the event working however i have run into the issue were when the player changes maps the timer resets. Does anyone know how to keep the timer from resetting on map transfer? For reference the timer is run in a common event triggered by a switch.

Edit: The timer in use is the "control timer"
Edit 2: Here is a screenshot of the common event, for testing purposes all the times are the same when finished each if branch will have different times for them.
Edit 3: The person I am helping is making a horror/suspense game and having the encounters set to a random number with a timer when the timer hits 0:00 a sound effect will play and an encounter will start.
Use a variable instead.
1657719534233.png

Something like this should work. Just make sure to set your variable at the start of the game somewhere.
Now this time would constantly run as soon as you call the common event. There may or may not be an issue with it depending on if this still counts down during a battle. That would result in an endless loop of battles. But I'm not entirely sure.
Use a variable instead.
View attachment 234595
Something like this should work. Just make sure to set your variable at the start of the game somewhere.
Now this time would constantly run as soon as you call the common event. There may or may not be an issue with it depending on if this still counts down during a battle. That would result in an endless loop of battles. But I'm not entirely sure.
Forgot to specify the timer in use is "control timer, will using variables still work?
You don't use control timer at all. You can't change that the "Control timer" resets on map switch.
or well, you can. The reason why your timer resets seems to be your common event.

The common event will run from the beginning when you switch map. I just did a test run, starting the timer and turning off the switch that turns that common event on. The timer doesn't reset.

That means you can likely avoid the reset by having 2 common events. 1 that operates on the switch and just starts the timer and turns the switch off. And a second common event that checks if the timer is 0, runs whatever you want to happen at that point, and then turns on the "start timer" switch.

Something like this:
1657720924627.png

1657720934660.png
please show us screenshots of how you use control timer.

if used correctly it should not reset on map change - if it does then it is likely that you made a mistake in the two events required to use control timer correctly.
@SGHarlekin the Timer Check is not >= 0min, 0sec as this is always true,
it should be <= 0min, 0sec.

@Tj_Silverfang the best way for a control timer is the variable way.
if you want to make the timer visible, an image for the bar or use
picture based numbers for it than equals the variables number when
counting down (or up).
@SGHarlekin the Timer Check is not >= 0min, 0sec as this is always true,
it should be <= 0min, 0sec.

@Tj_Silverfang the best way for a control timer is the variable way.
if you want to make the timer visible, an image for the bar or use
picture based numbers for it than equals the variables number when
counting down (or up).
Oops :LZSyum:. Well. Either method I showed should work.
please show us screenshots of how you use control timer.

if used correctly it should not reset on map change - if it does then it is likely that you made a mistake in the two events required to use control timer correctly.
Edited post to include screenshot
@Tj_Silverfang
did you read my comment above about the two events?
your timer restarts because you have combined the timer command and the timer check into a single event.

as said above those two NEED to be in TWO different events, they cannot be in the same event without that reset effect on map change.

Please describe the purpose of the event, what it is supposed to do. Only then we can tell you how to dissassemble it into working events, especially since you only placed part of the event.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-timer-reseting-when-changing-maps.149441/