Currently, I am without my main system ... ergo without RPGMaker. But I am wondering if this can merely be done within the TROOPS database.
The 'collapse' effect which changes the default battler red and fades the battler away is done because it it is a sprite object. That being an object that is given and holds a picture image (imagine a picture frame), and it is the frame that is controlled by such effects. And when one uses the [SHOW PICTURE] event, they are actually creating a sprite to hold a picture.
Code:
@>Control Variiable[0011:AHeroHealth]== [Aluxes:HP]
@>Control Variiable[0012:BHeroHealth]== [Basil:HP]
@>Control Variiable[0013:GHeroHealth]== [Gloria:HP]
@>Control Variiable[0014:HHeroHealth]== [Hilda:HP]
@>Conditional Branch [Variable - 0011:AHeroHealth]<- 0
@>Conditional Branch [Switch - 0021:AluxesDead] == OFF
@>SHOW PICTURE[006, "AluxesOuch",220,360, 255]
@>MOVE PICTURE[006, 0, 40frame(s)
@>Control Switch[0021:AluxesOuch] == ON
@>end
@>end
@>Conditional Branch [Variable - 0012:BHeroHealth]<- 0
@>Conditional Branch [Switch - 0022:BasilDead] == OFF
@>SHOW PICTURE[007, "BaslOOF",340,360, 255]
===etc===
I am kinda spitballing, so this is not tested. I am thinking that this could be pasted within your individual TROOPS database pages that are set to run all the time to detect HP changes, both for heroes and enemies.
If the player formation doesn't change in-game, this would work. And it would work for the enemies as well, this assuming it is used in the desired individual TROOP pages. If for the actors, this would be used in every page. And this could be adapted for the enemies.
Again, spitballing as I am not at a PC with RPGMaker.