Is there any state in particular you want to check? If so, you could do something like
CODE
class Game_Party
def check_state(state,actor)
actors[actor].states.each{|i| return state if state == i}
return 0
end
end
and call it like so:
CODE
$game_variables[1] = $game_party.check_state(2,1)
which would equal variable 1 to 2 if actor 1 has state 2 (default Stun) or 0 if not.
If you're only planning on using one state, a simple
CODE
$game_variables[1] = $game_party.actors[0].states[0]
would suffice.