Occasional battle processing bug loop help!

Hi all,


I am experiencing an issue with the Battle Processing looping again and again on an occasional random basis upon an event/player touch when I use the Escape Action.


Solutions I have tried that did not work.


1. Erase event first before running the rest of the actions including battle processing.


2. Set a switch [0020] to turn on before battle processing and switch to turn off only after the battle is over or in the event of an escape.


3. Set a new blank event page on the monster touch event with condition self switch A which is turned on upon escape.


All related events are shown in the video below.










As you can see from the video posted, the bug occurs on the final battle processing encounter where the player is immediately entered into battle processing after an Escape Action.
it would help if you showed us a screenshot of what you did, because a switch is the solution - you just need to do it on the correct place.


Basically, after the battle you need to swithc the event to the second page, where you handle how the event should react after it is defeated. Or to a third page for escaping or whatever.
it would help if you showed us a screenshot of what you did, because a switch is the solution - you just need to do it on the correct place.


Basically, after the battle you need to swithc the event to the second page, where you handle how the event should react after it is defeated. Or to a third page for escaping or whatever.

Updated with video.
@leon93 I didn't ask for a video, I asked for screenshots.


Screenshots are not only less work to do for you, they're also better to read and check for us...
Yeah - screenshots are much easier to look at (and easier to make).


If you want the event to behave differently depending on whether you won, lost or escaped, just check the Can Escape / Can Lose boxes in the Battle Processing event command, and put the relevant commands to execute into each branch.  That could be as simple as a Wait 4 Frames to prevent a retrigger of the event (can't be sure, as you haven't provided a screenshot, and I don't want to watch a video).


I am also wondering if you've got your event set up as a parallel process or autorun, and have not turned it off, which means it's going to keep looping.
@leon93 I didn't ask for a video, I asked for screenshots.


Screenshots are not only less work to do for you, they're also better to read and check for us...


Yeah - screenshots are much easier to look at (and easier to make).


If you want the event to behave differently depending on whether you won, lost or escaped, just check the Can Escape / Can Lose boxes in the Battle Processing event command, and put the relevant commands to execute into each branch.  That could be as simple as a Wait 4 Frames to prevent a retrigger of the event (can't be sure, as you haven't provided a screenshot, and I don't want to watch a video).


I am also wondering if you've got your event set up as a parallel process or autorun, and have not turned it off, which means it's going to keep looping.



Hi all, I have uploaded the screenshots.

Screenshot 2016-09-18 22.01.07.png

Screenshot 2016-09-18 22.01.12.png

Screenshot 2016-09-18 22.02.45.png
several mistakes


1) you cannot erase event on a common event, that is for map events only. It also means that no command is executed after the erase event, because the rest of the event is also erased.


2) you cannot control self switch  on common events, those exist only on map events


3) please show the first page of the map event. I assume that somehow sets the self-switch D? because otherwise the second page will never happen


4) Page priority means that the highest page number takes priority if more than one page has all conditions fulfilled, so the second page will never be disabled as long as self-switch D is not switched OFF


Possibly more, but those are obvious at first glance and I don't have time for more checks
@Andar #1 and #2 are fine.  The common event is called by the Call Common Event command, and in that case it acts as an extension to the map event, with any references to "this event" applying to the map event.  So a map event that calls a common event that turns on a self switch, will turn on the self switch of the map event.  Likewise, a map event that calls a common event that does an erase event command will erase the map event.  Those commands are only meaningless in a common event when it's set to parallel process or autorun.


The first screenshot is only part of the event commands.  We'd need to see the full list of commands, AND know what that variable with random number is being set to, and what those switches all are set to, to be able to debug fully.  One suggestion is, when this issue happens, go into debug mode and see what those variables and switches are - it may be that you've got one of those 'blocks' that isn't quite set up right, which is why it seems to only happen randomly.
Hi guys. This is fixed. Apparently I had 2 event commands running above the Encounter OFF switch which delayed the switch from turning off and causing battle processing to loop again in some occasions.

Original thread: https://forums.rpgmakerweb.com/threads/occasional-battle-processing-bug-loop-help.68266/