I've created an item (Lantern Oil) that you can use any time outside of battle. It starts an eight minute timer. I have this common event running in parallel at all times:
This common event, again, is running in parallel, so that any time the timer hits 0, the plugin command executes (from Terrax Lighting, eliminating the light radius from the lantern), a sound effect plays, a switch is flipped off (excuse my language), and the timer vanishes.
The problem is, when I am in battle and the timer runs out, I am pulled out of battle and back onto the overworld screen, whereupon the plugin command and everything else executes. You can see I attempted to work around this by using a conditional branch with a script command that's supposed to check if the player is in battle, and if it's true, nothing happens, but no dice.
If all else fails I guess I could just make the timer stop when the player enters battle, but I kinda like the idea of the lantern running dry in real time during battle.
Thank you in advance for any help!
This common event, again, is running in parallel, so that any time the timer hits 0, the plugin command executes (from Terrax Lighting, eliminating the light radius from the lantern), a sound effect plays, a switch is flipped off (excuse my language), and the timer vanishes.
The problem is, when I am in battle and the timer runs out, I am pulled out of battle and back onto the overworld screen, whereupon the plugin command and everything else executes. You can see I attempted to work around this by using a conditional branch with a script command that's supposed to check if the player is in battle, and if it's true, nothing happens, but no dice.
If all else fails I guess I could just make the timer stop when the player enters battle, but I kinda like the idea of the lantern running dry in real time during battle.
Thank you in advance for any help!