if Actor has Accessory/Head/Body Armor "Equipped" and "Unequipped"

I want to ask, a script to call "if Actor has Accessory/Head/Body Armor "Equipped" and "Unequipped" ?

when i try this, the error is "undefined 'equips' for nilClass"
$game_party.actors[0].equips.include?($data_weapons)

thank you
$data_weapons is an array containing all of the weapons. An actor cannot have an array equipped. Also, why are you using $data_weapons if you want to know if armor is equipped?

Are you just checking to see if SOMETHING is equipped? So you want to know if the actor has an accessory, head armor and body armor equipped or is missing something in one or more slots?

actor.armor1_id is the shield
actor.armor2_id is the helmet
actor.armor3_id is the body armor
actor.armor4_id is the accessory

So if you just want to know if they have something there, it would be:

Code:
$game_party.actors[0].armor2_id != nil && $game_party.actors[0].armor3_id != nil && $game_party.actors[0].armor4_id != nil

Original thread: https://forums.rpgmakerweb.com/threads/if-actor-has-accessory-head-body-armor-equipped-and-unequipped.118823/