RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Checking Actor Equipment Via Script

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 85
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.

*
Rep:
Level 84
Rubber Shark
Code: [Select]
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.

**
Rep:
Level 85
Gotcha, thanks.