Script Call: Checking JUST battle party for status effect

Hey all,

What I am trying to do is set up a conditional branch, in battle, that if the current battle party (game has 12 playable characters so far, and only a max party of 6) does not have a certain status effect, the a force action will happen with the enemy.

I already tried setting up the conditional branch with $game_party.members.include(state[1064]) and $game_party.members(state[1064]) but that didn't seem to work. Any one out there that can help?
Code:
$game_party.members.all? { |a| !a.state?(1064) }
I've tested it a few times, and it seems to be working just fine now! Thank you again for responding!
if you want it only for battle members, it should be $game_party.battle_members

Take note that battle members mean only the people involved in battle, not the whole party.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-checking-just-battle-party-for-status-effect.109224/