- Joined
- Nov 17, 2019
- Messages
- 1,058
- Reaction score
- 493
- First Language
- English
- Primarily Uses
- RMXP
a.guard? will tell you if the actor is guarding.
With that scriptlet you can now ask if the actor has any weapon, i.e. a.any_weapon?
Ruby:
class Game_Actor
def any_weapon?
weapons.any?
end
end
With that scriptlet you can now ask if the actor has any weapon, i.e. a.any_weapon?