So I'm trying to make a day/night cycle using events (day/night scripts I've found conflict in some way or another with mode 7) and I've got it down except for one thing. The "system" if you can call it that creates a timer, counts down, and changes screen tint depending on the state of a variable. (tutorial on how to do it here: http://www.rmxp.tigerseye.uk.com/tutorial_event3.shtml) However, when the timer changes to the next phase of the day, if the player is in a battle, the battle will automatically exit. I managed to get around it by setting the timer to stop before the battle, do battle processing, then start timer. However, this will start the timer at a constant value. This means that if I set the timer to start at 10 seconds, but it was 1 second for a time of day change, once the battle exits it will be 10 seconds to time change. If the player gets into a battle 9 seconds afterwards, then the timer will go back to 10 seconds before time change, and so on. On the other hand, if I set it to zero, then time will change after every battle.
So here's my question: Is there any way to store timer values into a variable and then assign the values from a variable unto the timer?
Thanks for the help!
A Question About Timers
● ARCHIVED · READ-ONLY
-
-
I haven't read the tutorial so I dont know how you have done it but for my project I have a time that I use for daylight and time of day purposes but not how many days has passed which uses this event which present in a parallel process on each map where daylight is noted

The breakdown of the event is that on map load the conditional branch at the top loads to ensure that the light level is set correctly if transitioning from an area that uses another lighting value such as indoors.
Next is a variation on the above which is run as part of a loop which forms the main part of the event. the main difference here to the above is a notification to the player regarding the time of day. At the bottom of this loop is the core of the system which is a variable called "Time" and a wait value that determines how fast the variable is updated in the loop.
Because I am storing the current time of day in a variable, this can be called from anywhere even another event so to restore the time of day all you need is something like this (Nonpersistant01 is a variable I use as temporary storage when i need to store something during an event process like this)

Hope this helps