Troops battle event not running whenever the battle is victorious

(sorry, english is not my main)

I'm pretty new to the whole "making game" programming stuff. Saw RPG Maker VX Ace free on steam and decided to try it on my free time.

In town map. i have an character that can give the player list of quest to do. For now focus on the "slay 10 slimes in the fields" quest
Screenshot_727.png

Screenshot_728.png



In the field map, i set the slime that spawn randomly only in region 1. I put a text message that shows progress of how many slimes has been defeated every time the slime is hit 0 hp.
Screenshot_725.png

Screenshot_726.png



The first slime that got defeated, the text message shows properly, and the counter (control variables) goes up. But the second one do not. It likely got interrupted by the victory battle message after all enemy is been defeated.
Screenshot_729.png
Screenshot_730.png



I tried to add one more slime and third event page to see if the second event page is running properly or not (it does work, but the third one once again did not). I might be failed to understand something here, if there anyone that can help me with this? appreciate it
That's how it works. You can try to make it work with immortal states on enemies and additional troop events, or download a script:

That's how it works. You can try to make it work with immortal states on enemies and additional troop events, or download a script:

Ahh i see...
That script is really useful, thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/troops-battle-event-not-running-whenever-the-battle-is-victorious.175258/