Sideview battlers reacting to a character being knocked out?

I want to recreate something similar to in the mario and luigi games, an example being if mario gets knocked out luigi plays a "surprised" animation and would say "MARIO!", is there a way to reproduce this with my characters if one of them is knocked out in battle?
have a troop event checking the HP for an actor and if it is zero, do whatever you want.

will not work for the last actor alive, but then there would be no one to react anyway.

Original thread: https://forums.rpgmakerweb.com/threads/sideview-battlers-reacting-to-a-character-being-knocked-out.90758/