Main Menu
  • Welcome to The RPG Maker Resource Kit.

Checking Actor Equipment Via Script

Started by Rukaroa, October 04, 2008, 06:10:19 AM

0 Members and 1 Guest are viewing this topic.

Rukaroa

I'm not exactly sure how to do this. Is there a way to check via scripting if an actor has a certain piece of armor/weapon/shield/accessory equipped? And if so, how do you check for that? I'm going to use the code as part of Game_Battler calculations.

Yeyinde

aGame_Actor.weapon_id # Weapon 1
aGame_Actor.armor1_id # Weapon 2/Shield
aGame_Actor.armor2_id # Helmet
aGame_Actor.armor3_id # Armor
aGame_Actor.armor4_id # Accessory


Remember to check for aGame_Actor#two_swords_style before checking aGame_Actor.armor1_id, just for those rare occasions.

Rukaroa