Start/End Battle Common Events

I'd like a plugin that simply plays a common event before the battle starts and plays a different common event after the battle ends.


It sounds simple in my head but whenever that happens it actually is 10547x more complicated than imagined.
I thought I heard Hime was working on something like this. Have you checked their scripts to see if they made one for this already?
1) Battlestart:


Use a troop event set to turn zero execution, once only


2) battle end:


Make the common event a parallel process conditioned to a switch "battle end", and as the last command in that common event add "control switch battle end OFF" to prevent it from repeating.


In the battlestart event, add "control switch battleend ON"


Because parallel processes can't work in battlescreen, only on map, that event will not be executed before battle end no matter when inside the battlescreen the switch is turned ON.
1) Battlestart:


Use a troop event set to turn zero execution, once only


2) battle end:


Make the common event a parallel process conditioned to a switch "battle end", and as the last command in that common event add "control switch battle end OFF" to prevent it from repeating.


In the battlestart event, add "control switch battleend ON"


Because parallel processes can't work in battlescreen, only on map, that event will not be executed before battle end no matter when inside the battlescreen the switch is turned ON.



Ooh thank you!


I was originally using a combination of Yanfly's Base Troop Events and Hime's End Phase Triggers.


But this is much simpler and smoother. This can be closed now. c;

Original thread: https://forums.rpgmakerweb.com/threads/start-end-battle-common-events.55866/