I am having a tough time with this, and I cannot understand why it happens.
I have a torch item that works perfectly in my game. This is how it is set up:
(1) when you use the torch item...it calls a common event that turns on a switch.
(2) this switch, triggers an auto-run event that increases the light radius around the player...thus giving light from the torch. the event then starts a timer.
(2) I also have a parallel event with a conditional branch showing what happens when the timer runs down to zero. which is as follows:
A-the timer is stopped
B-the switch that triggered the auto event in no. 2 above is turned off (thus stopping that event)
C- the light radius around the player is set back to its original distance.
Like I said...this works with perfect precision....except for one big problem: If the timer runs out, while you are in the middle of a battle...the battle abruptly ends.
This does not happen if you encounter enemies and all the battles end "before" the timer runs out.
This is so depressing, not just because I cannot understand why it happens...but it ruins a great torch event that otherwise runs flawlessly.
If anyone can shed some light on this, I would be more than grateful.
UPDATE: Thank you very much, Shaz...This worked wonderfully!
I have a torch item that works perfectly in my game. This is how it is set up:
(1) when you use the torch item...it calls a common event that turns on a switch.
(2) this switch, triggers an auto-run event that increases the light radius around the player...thus giving light from the torch. the event then starts a timer.
(2) I also have a parallel event with a conditional branch showing what happens when the timer runs down to zero. which is as follows:
A-the timer is stopped
B-the switch that triggered the auto event in no. 2 above is turned off (thus stopping that event)
C- the light radius around the player is set back to its original distance.
Like I said...this works with perfect precision....except for one big problem: If the timer runs out, while you are in the middle of a battle...the battle abruptly ends.
This does not happen if you encounter enemies and all the battles end "before" the timer runs out.
This is so depressing, not just because I cannot understand why it happens...but it ruins a great torch event that otherwise runs flawlessly.
If anyone can shed some light on this, I would be more than grateful.
UPDATE: Thank you very much, Shaz...This worked wonderfully!