How do I perform a check if gear slots are filled on actor.

I have a mansion in a town and the rich lady who lives there will only let the party in if an actor (I could do all actors too, but only one recently lost his gear) has something equipped to his head, body, and accessory. If not, she will tell the party that she won't let people run naked in her house.

However, under conditional branches, I only see options to check if specific equipment is equipped. I want to check if the actors have any equipment on in those slots. You could throw on level 1 gear and she would let you in or you can buy the replacement gear from the shop first.


How do I check if actors have something equipped rather than checking if they have specific gear equipped?
You would need to use a script call as a condition but I can't provide you with one for the time being.
You would need to use a script call as a condition but I can't provide you with one for the time being.
Why not?
an easy way to check if the player has absolutely no armor is..

$game_party.leader.armors.size == 0

use this in a script call in a conditional branch.

this snippet will return true when the player character has no armor equipped.

just be aware this will only work for the first character in your party, and this will ONLY execxute if absolutely NO armor pieces are equipped. If there is 1 armor equipped even if it's just a helmet, or an accessory, whatever you run in the conditional branch will not be executed.

EDIT: Alternatively, if you need to know this value for a specific actor, you can use..

$game_actors[1].armors.size == 0

EDIT2: OR if you want to know if ANY member in your party is not wearing any gear... you can use this instead....

$game_party.members.any? { |m| m.armors.size == 0 }

this last one will check every member of your party, and if any party member has no gear, than it will return true. lol... not sure which one you needed but yeah, hoefully one of these helps.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-perform-a-check-if-gear-slots-are-filled-on-actor.158687/