Any way to run an event immediately the moment a battle ends?

Hi,

I know SumRndmDde made a nifty plugin called Battle End Events, which lets you run events at the end of every battle, but unfortunately it's too slow. I need events to be run before the Item spoils & EXP / Level up messages appear.

Is there a way to force an event to be run the moment that the last enemy in a battle is defeated?

Thanks!

P.S.
I've also tried Artys Post Battle Common Events, but same result.
yes - go the way it needs to be done without plugins.

It's a bit tricky and requires several troop events.
you'll need one troop event run on turn 0 to give all enemies an immortal state.
then you'll need one troop event for every troop checking if the HP = 0. In this troop event you can do whatever needs to be done before you kill the enemy by removing the immortal state.

you'll have those troop events to check if the current enemy is the last one and if yes, you can call your commands directly before the battle ends by removing the immortal state from the last enemy.

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-run-an-event-immediately-the-moment-a-battle-ends.128286/