"Kill" enemy if they run out of HP OR TP

I developed a dual battle system that has two possible win conditions. Of course you can use attacks to murder the enemy like normal. But I created a "conversation system" that treats TP as basically a "willingness to fight meter", so you can use "Talk" skills to reduce the enemy's "willingness to fight". If you get their TP/"willingness to fight" down to 0, the battle ends and the battle processing needs to be treated differently than if you ended the battle by killing them. Of course, the second you attack them physically, their willingness to fight returns to 100%.

Are there any existing plugins that can handle this? If no one has so far been capable of accomplishing this, can someone just tell me the variable name for "enemy actor TP" so I can do it myself? Is there any way I can add an additional battle end case to RPG Maker MV itself, or is this tool just not that sophisticated?
I'm not aware of any plugins that facilitate custom win/loss conditions, but basically the TP value is stored in the battler's _tp variable, and battle end is handled by the BattleManager class, which you can freely overwrite so a plugin is definitely possible if there isn't one already.

Original thread: https://forums.rpgmakerweb.com/threads/kill-enemy-if-they-run-out-of-hp-or-tp.124840/