Killing all enemies in a troop with victory

I'm working on a boss with separate enemies serving as limbs, and the goal is: when you kill the main body, the rest of the limbs die as well and the victory animation occurs.

I've tried setting the enemy HP to 0 but the enemies do not disappear unless the player attacks them once more after.

Not entirely sure on how to forcefully end the battle and have the victory occur, as Abort battle just ends the battle abruptly.
1733771145273.png


(Kill the scorpion=The wasps die and victory screen)
Have you tried using the event command to add the KO state to all enemies instead?
Have you tried using the event command to add the KO state to all enemies instead?
Nah mb i didn't try it.;_;
That did it thank you!
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/killing-all-enemies-in-a-troop-with-victory.173791/