Attacks

I want to incorporate an attack that can only be used when certain characters are present in the party and have not been KO'd yet. Is it possible to do this?
Use this script: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/

I know how to make it unavailable if actor is dead, but I don't know how to check whether an actor is in the party or not.

Code:
<restrict eval>
$game_actors[x].state?(y)
</restrict eval>

x = actor ID
y = state ID

Despite me not knowing how to do the second restriction, I'd start with this:
Code:
$game_party.battle_members.include?($game_actors[x])

x = actor ID

Hopefully this information will get you somewhere.

Original thread: https://forums.rpgmakerweb.com/threads/attacks.121834/