MZ When MP reaches 0 activate state - Visustella

I'm currently using the Skills and states core by Visustella and I was wondering how to add a state when the MP of a party member reaches 0 in battle.
Maybe you can try to use Passive States?
You can create a passive state and assign it to your actors.

Code:
<Passive State: x>

This will be the notetag to be assigned to the actors. And the, inside your state, you can attach a custom passive condition like:

Code:
<JS Passive Condition>
 condition = user.mp <= 0;
</JS Passive Condition>
Maybe you can try to use Passive States?
You can create a passive state and assign it to your actors.

Code:
<Passive State: x>

This will be the notetag to be assigned to the actors. And the, inside your state, you can attach a custom passive condition like:

Code:
<JS Passive Condition>
 condition = user.mp <= 0;
</JS Passive Condition>
Thanks so much! its working now.

Original thread: https://forums.rpgmakerweb.com/threads/when-mp-reaches-0-activate-state-visustella.138787/