Scropt call to check if party member in a slot is affected by a state possible?

RMXP 1.04.

What I'm looking for is a way to check if the actor second in the party, IE $game_party.actors[1] is afflicted by State X.

And have this be a script call for a conditional.

The VX Ace thread on this site suggests:

$game_party.actors[X].states.include?($data_states[Y])

But as you can see from my image below, trying that in RMXP doesn't work.

Screenshot_2014_07_02_14_11_33.jpg


(I'm aware the above shows a check against actor id, not party id, i was just trying to get the check to work... unsuccesfully.)

I want to be able to set a conditional check against  a party actors state, (as opposed to actor ID in the database) is there a way please?

Original thread: https://forums.rpgmakerweb.com/threads/scropt-call-to-check-if-party-member-in-a-slot-is-affected-by-a-state-possible.29375/