Skip to content

Instantly share code, notes, and snippets.

@HimeWorks
Created January 1, 2015 19:56
Show Gist options
  • Save HimeWorks/14dd278e92d6bd2074f8 to your computer and use it in GitHub Desktop.
Save HimeWorks/14dd278e92d6bd2074f8 to your computer and use it in GitHub Desktop.
Check if an actor is in the Battle Party
# RPG Maker VX Ace example
#
# The "Battle party" are the party members that will participate in battle.
# You can use conditional branches to check who is in the battle party
# eg: Check if actor 1 is in the battle party
$game_party.battle_members.include?($game_actors[1])
# eg: Check if actor 5 is not in the battle party
!$game_party.battle_members.include?($game_actors[5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment