(SOLVED) Zombie Status

isStateAffected(x) x should be the states ID number in database
gameSwiches.setValue(y, allState) y is the switch you want turned on.

If: z is On z should be the same switch as in the gameSwitches up above.

Code:
var allState = true;
var party = $gameParty.aliveMembers();
for (i = 0; i < party.length; i++) {
       if (!party[i].isStateAffected(x)) {
            allState = false;
        }
}
$gameSwitches.setValue(y, allState)
Heck yeah! Success! Thanks!
Thank you all!
Is there a way to make this state work without having to add any scripts. I am using the ps4 version of MV

@UndeadGamez, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


We do not provide support for the console versions of MV.

Since the original query was solved, I'm closing this.

Original thread: https://forums.rpgmakerweb.com/threads/solved-zombie-status.113561/