Checking to see if party members are dead?

I've been at it for awhile, but I found out that I'm a total idiot when it comes to scripting

The idea is a passive or a skill that increases in strength if a party member is dead or affected by the knockout condition.

The problem - I don't know how to check to see if the other party members are dead and I'd like it to only reference the battle party.

Any suggestions or does anyone have something similiar in their games
First you say "if a party member is dead" and then you say "if other party members are dead"


Do you want it to increase in strength if the target is dead, or if any party member is dead? Does it increase further depending on how many are dead?


$gameParty.deadMembers().length will give you the number of party members (in the battle party) who are dead.
You are a lifesaver. It worked like a charm 🙂

Original thread: https://forums.rpgmakerweb.com/threads/checking-to-see-if-party-members-are-dead.50650/