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!
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!