How to check if "actor position" is "state applied"

What I'm asking for this topic is the question if I can make a script call where the game checks if an actor in [x] position has a state applied.

Example:

Actor 2 (regardless of who it actually is) currently has the death state applied.

I was wondering if there's a way to use this as a script call in a conditional branch, or something.
Can you safe the Actor ID from party spot nr. 2 in ACE?
If yes, then you could do it like this depending on how many actors you got:
1645653702924.png



EDIT: just looked it up and there is an option in ace to safe actor ID from party spot so this setup should be possible in vx ace as well...

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-actor-position-is-state-applied.145194/