A way for a common event to play in battle?

I'm making a game where the player is a wolf, and I got the idea that when the player encounters a herd of deer that they can just kill one deer, get meat, bones, and organ meat from a common event, and if they wish to, leave the rest of the herd alone. Wolves don't kill entire herds of deer in one hunt and I wanted the player to, let's say, kill a fawn, get its loot and leave the mother deer because they don't need to kill her too.

I got common events to play for the loot drops when an enemy reaches 0 HP, but it doesn't play when the last enemy dies because the victory thing overwrites it. Is there a plug in to help with this so that loot drops for the last enemy?
try this plugin. its for MV, but its likely to still work on MZ

Otherwise, you could adjust your battles so that enemies are immortal at the start and then use troop events to process the drops, remove the immortal statem and kill them when their hp hits 0
If I'm understanding right, you might not need a plugin for this.
  1. You want something like a "consume" skill during battle when the enemy reaches 10% or less life. If consume is successful then the enemy dies and "fresh carcass" is added to your inventory. Similarly, if the enemy reaches 0, enemy leaves the item "fresh carcass."
  2. You might modify the consume skill to cause a status effect called fear which frightens enemies to run away.
it can be done completely without any plugin, just with troop events.

1) create a troop event triggering on turn 0 that applies an immortal state to all enemies.

2) in each of the troop events on HP=0, add an "remove immortal state as the last command.


the result is that the enemy will only be killed after its kill processing troop event has been completed, because that is when the protection of the immortal state is removed.
it can be done completely without any plugin, just with troop events.

1) create a troop event triggering on turn 0 that applies an immortal state to all enemies.

2) in each of the troop events on HP=0, add an "remove immortal state as the last command.


the result is that the enemy will only be killed after its kill processing troop event has been completed, because that is when the protection of the immortal state is removed.

That didn't work. I can't get the last enemy killed to give me their loot. I did the event for the other enemy, I just didn't take a pic of it.
dont remove the immortal state from all enemies. remove it only from the one that is supposed to be dead. if you kill one and it removes the immortal state from the rest, then the last one wont be immortal when their hp goes to 0
it can be done completely without any plugin, just with troop events.

1) create a troop event triggering on turn 0 that applies an immortal state to all enemies.

2) in each of the troop events on HP=0, add an "remove immortal state as the last command.


the result is that the enemy will only be killed after its kill processing troop event has been completed, because that is when the protection of the immortal state is removed.
dont remove the immortal state from all enemies. remove it only from the one that is supposed to be dead. if you kill one and it removes the immortal state from the rest, then the last one wont be immortal when their hp goes to 0
I realized that I made that mistake when I was heading to bed last night and I just laid there like "Well, crap, that was my bad."

I just fixed it and everything works now. Thank you both for your help! <3

Original thread: https://forums.rpgmakerweb.com/threads/a-way-for-a-common-event-to-play-in-battle.174990/