MV Trigger a different event despending on who dies and by whom?

Hello, is there a way to trigger a different event depending on which ennemies kill a team member?
Hi!
I don't know for sure, but maybe someone can give you the right code for this.
In the event page of the battle, but the Span field at "turn". So it will check the event every turn.

You can use a script call to check the last enemy that performs an action and then check, after it, if some of the party members are dead.
If one party member is dead, then you take this enemy id and do your event according to it.

But I'm not really sure, let's hope someone who understands the battle flow can give you some advice.

Original thread: https://forums.rpgmakerweb.com/threads/trigger-a-different-event-despending-on-who-dies-and-by-whom.130074/