Checking if a certain party member is dead.

What function should I use to check if a party member is dead?

Say for example, my ally has a passive state (Yanfly's passive state) [Enraged] that appears only when one specific party member is dead, and I want it to be disactivated when said party member is alive. 

Also, could I receive the full line of the code instead of an abstract form for future references?
$gameActors.actor(ID).isDead();Replace "ID" with the ID of the specific actor from your database you want to check.

This returns "true" if said actor is, well, dead. Otherwise it returns "false".

So for your passive state, try this:

I'll take Harold for this example. If he's dead, you get the state.

<Custom Passive Condition>if ($gameActors.actor(1).isDead()) { condition = true;} else {condition = false;}</Custom Passive Condition>or with less code

Code:
<Custom Passive Condition>condition = $gameActors.actor(1).isDead();</Custom Passive Condition>
Thanks for the help! I finally got it to work!

I managed to get similar effects using battle events, but it was so inefficient (and the states did not appear outside battles)

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-a-certain-party-member-is-dead.53444/