call common event at end of battle

Hi there I'm working on a small project in XP and would like to call common events at the end of every battle. I've searched many RPG maker forums and sites and XP is really out of date in terms of support, so all of the soloutions i found were for other versions of rpg maker.


I know the script would most likely go somewhere in Scene_battle1 but i have no idea what to put there.
The closest thing i found was


'$game_temp.reserve_common_event(id)'


can anybody direct me in how to call common event during the end of a battle?
 


Thanks


-Hoboayoyo
please try the following - it is for later makers but there is a goot chance that it will also work in XP (can't test it there however)


1) make a parallel process common event with whatever functions you want to do.


2) at the end of the common event, controll OFF the switch that activates it.


3) in your battles, have the control ON switch at the first turn.


Parallel Processes should work only on map, not on screens (including battlescreens), so even if you turn on the parallel process at the beginning of the battle, it should not be processed until the battle has ended and you return to the map - but then it would be the very first thing to be processed.

Original thread: https://forums.rpgmakerweb.com/threads/call-common-event-at-end-of-battle.70265/