MZ How Can I Make A State That Checks If An Ally Has Fainted or Not?

I have this state in my game called Responsibility (The state is linked to a skill which gives the state as a Passive). I want Responsibility to function like this;

If an ally to the user has fainted (Is dead), then the user will get 50% attack boost. If that ally is revived, then the attack boost goes away.

I played around with Common Events, but could not get it to function. Which makes me doubt Common events are the method to make a state like this.

I would love some assistance in this matter.
(The state is linked to a skill which gives the state as a Passive)
...
I played around with Common Events, but could not get it to function. Which makes me doubt Common events are the method to make a state like this.
These two statements are confusing - there's no such thing as a passive state by default in MZ. So are you using a plugin like VisuStella's Skills and States to get passive states?

If yes, you should tell us that and put this in plugin support 😉 and the instructions for how passive states are activated have nothing to do with common events.

If no, how are you getting your skill to give a state as a passive?

Presuming you're using Skills and States, you'd give your passive state the notetag:
Code:
<JS Passive Condition>
condition = $gameParty.deadMembers().length;
</JS Passive Condition>
These two statements are confusing - there's no such thing as a passive state by default in MZ. So are you using a plugin like VisuStella's Skills and States to get passive states?

If yes, you should tell us that and put this in plugin support 😉 and the instructions for how passive states are activated have nothing to do with common events.

If no, how are you getting your skill to give a state as a passive?

Presuming you're using Skills and States, you'd give your passive state the notetag:
Code:
<JS Passive Condition>
condition = $gameParty.deadMembers().length;
</JS Passive Condition>
Ah! Super sorry! I forgot to mention I am using Fomar0153's Passive Skills plug-in in order to make the skill give the state as a passive!

Also very sorry about posting it in the wrong area😅... I really got to figure out where everything goes...

Yeah... I figured out common events were not the answer... Thank you for telling me though!
Fomar's plugin doesn't support any kind of conditional activity, if you've equipped the skill then it and its state are active.

You would have to use VisuStella's alongside it to have the skill give a passive state as I described above.
Thank you so much ATT_Turan! I got it working!

Once again, I apologize for being to brief and posting in the wrong area. I will try my best to make sure it does not happen again.

I've moved this thread to Plugin Support (from MZ Support). Thank you.

There we go. Crisis averted! 😛

Generally, posting in the right place and mentioning relevant plugins etc simply helps you get a suitable answer more quickly. A lot of support threads get moved around, it's not that big of a deal. If you'd like one of your threads moved in future, you can click the Report button on your own post to let a moderator know. 👋

Good to see you got things working! Happy RPG Making~

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-a-state-that-checks-if-an-ally-has-fainted-or-not.170048/