Custom Death Messages

I wondered if there is a custom death message script out there?

One of the things I loved about earthbound is that each enemy wasn't just killed or defeated, but could return to senses or run away or stop moving.

I wonder if there is a script that allows for something like this, since I have some enemies in the game that I don't want to be "killed", but others that I do.
It's easy to do this without scripting. Put the immortal flag on your enemy and have a battle event that triggers when he/she is at 0% hp. If all you want is a death message you just end the event by applying the Death State to him/her after he/she is finished babbling... if you want them to live then abort battle or whatever else you want them to do instead.
Beat me to it!  Likewise, you can do the same thing with your party if you want custom deaths for your party members as well.  I currently have an attack that if it hits on the 1% chance, inflicts the status "Immolation", which is essentially an "instant death" attack.  However, the flavor text for contracting the state is " ____ was immolated!".  After the state drops the character to 0 HP (which it does the instant it happens), they immediately get inflicted with the "Death" state as their HP is now 0.  It essentially exists in my game to add flavor text and for no other reason.

Original thread: https://forums.rpgmakerweb.com/threads/custom-death-messages.23432/