Knockout battlers at 0 MP?

Hi everyone,
been messing around with ideas and I've been trying to make a two-fold battle system, of sorts, where both HP and MP act as health and the player / battler is knocked out as soon as either of them hits 0 - any tips on implementing this? I figure I can have a look in the game files, but I couldn't find anything (not that great at coding, myself). Any way of implementing this with a common event? Or will I need a plugin?
Thanks!
There should be a way of doing this through Battle Events / Common Events by checking the MP of each actor and then giving them the knockout state if the MP is zero.
If it's done through loops and clever variable manipulation, it should work fine for any amount of actors in the party (rather than checking specifically for Harold, Therese, etc.)

Sometimes, a plugin is the best answer and sometimes it is not. Here is a plugin that would be worth looking at:
https://github.com/MoogleX/MV_Plugins/blob/master/Moogle_X_DieAtZeroMp.js

Here's a thread that is not the same as your question, but it is similar and you might be able to get some clues from it:
https://forums.rpgmakerweb.com/index.php?threads/game-over-when-reaching-0-mp.87490/
Thanks! I'll mess around with the plugin and see if that works, if not I'll have a look at the thread. With it being just about applying a state at 0 MP I guess I shouldn't have too many plugin conflicts though.
My Health plugin will likely cover this when it's finished. One of its main attributes is applying States to characters when their custom Health HP reaches certain levels. I've been realizing that I'm going to have to extend this functionality to normal HP and MP (possibly TP as well).
You could use Yanfly action sequence plugin for this i think 🙂
Then use If statements in the skill.

IF target.hp <= 0
IF target.Mp <= 0
I have a somewhat similar system in my game, where if a character runs out of MP, they pass out, and need to recharge.
I achieved the effect with a combination of Yanfly's Buffs and States Core and Yanfly's Auto Passive States Plugins.

First, create the state that will knock out your actor when they run out of MP, and in it's Note Field place

<Custom Deselect Effect>
if (target.mp <= 0) {
target.addState(1);
}
</Custom Deselect Effect>

and

<Custom Conclude Effect>
if (user.mp <= 0) {
user.addState(1);
}
</Custom Conclude Effect>

This should make it so that any time an action is made by or against the actor, it will check if their MP has reached 0, and will add the Death State if it has. The only thing left to do now is go into the actor's note field and place

<Passive State: 4>

Where 4 is the number if the state created earlier. This should make it so it's always active on the actor.

Original thread: https://forums.rpgmakerweb.com/threads/knockout-battlers-at-0-mp.93543/