Is there a script call in VX Ace to check if the first party members equip a weapon?
Script call to check if party members equip a weapon
RPG Maker VXAce SupportDo you mean a check for whether anyone in the battle party has a weapon actively equipped?
Not in the battle, it’s like:
Conditional Branch: script to check
I never said anything about battle; by "battle party" I just meant the 4 party members who *will* participate in battles, and not the reserve members.
If that isn't what you wanted you'll have to elaborate on what "first party members" means.
Ruby:
$game_party.battle_members.any? { |member| member.weapons.size > 0 }
If that isn't what you wanted you'll have to elaborate on what "first party members" means.
I interpreted it as the party leader.
I thought that possible, but then OP said "members" and not "member" which is why I asked for clarification.
Sorry it’s my mistake
Ah I mean a particular weapon, sorry
Ruby:
$game_party.leader.weapons.include?($data_weapons[id of weapon you want to check for])
Thank you so much!
Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-check-if-party-members-equip-a-weapon.158986/