Passive State(s) Based On Partymembers

I'm using Victor's Passive States plugin and I have a couple of questions about some java scripterino.

In conjunction with the plugin mentioned earlier I am also using Yanfly's Party System plugin.

This is so the player has the option to remove party members at will.

Onward to my problem I'm having trouble with:

I'm making a passive skill-state that increases an actors parameters based on how many people are in the party or are dead.

Maximum party size in my game is 4.

The less people in your party = more damage for this certain class.

The more people in your party affected by death state = more damage for this certain class.

1. How do I find the gamedata for the amount of people in the party?

2. How would I go about implementing the following:

All actors alive or in party = normal attack

1 actor dead = 150% bonus parameters

2 actors dead = 200% bonus parameters

3 actors dead = 250% bonus parameters

If what I'm asking for isn't achievable or just too much work I will gladly accept just making it so the class gets stronger based on how many other actors are dead.
$gameParty.members().lengthYou can get many lengths:

$gameParty.aliveMembers().length // amount of alive members on the party
Code:
$gameParty.deadMembers().length // amout of dead members on the party
Code:
$gameParty.members().length // total amount of members on the party
Code:
$gameParty.maxBattleMembers() // amout of max characters in battle (use it for compatibility reasons)
$gameParty.aliveMembers() $gameParty.members() and $gameParty.deadMembers() are all adjusted to work in battle properly.

Then you had to change, the atk/defense/etc formula to accomplish those numbers...

That's on Game_BattlerBase...
2. How would I go about implementing the following:

All actors alive or in party = normal attack

1 actor dead = 150% bonus parameters

2 actors dead = 200% bonus parameters

3 actors dead = 250% bonus parameters
You will need 3 states,then use the codes Ramiro posted with the custom passive state notetag.

<custom passive state: X>$gameParty.deadMembers().length === 1; //1 dead member</custom passive state>X is the stated ID, do the same for === 2 and === 3. with their respective boosts. Now put it on the notebox of the class/skill/actor you want to have this effect.The same can be done with the party size.
Code:
-snip-
Thanks a ton! You guys are beasts. :]

EDIT: 

Hmm. I seem to be having trouble with the party size part of the passive.

I think this would be because the actors that are reserved still count as your party members with Yanfly's party plugin

Original thread: https://forums.rpgmakerweb.com/threads/passive-state-s-based-on-partymembers.52207/