3 slot Accessory problem

I'm using 3 slots accessory in the equipment types (by means of yanfly's plugin).

I am planning to have a lot of accessory types that can be equipped in the ACCESSORY like rings, amulets, necklaces, earrings, orbs, gloves and cloaks.

My problem is certain accessories only has to be wear once or twice.
How can I limit the cloak to be able to wear only 1 at a time (if I wear 3 cloaks, I think It's unrealistic).
Gloves and earrings can only be wore 2 at a time.

Yanfly equip requirement's "unique only" can only limit an accessory that has the same name (ex.: though I cannot wear 2pcs of cloak of wisdom but I can wear 1 cloak of wisdom and 1 mirage cloak.).

this is my script inside the accesory's notetag:

<Custom Equip Requirement Condition>

if (user.hasArmor($dataSystem.equipTypes[6])) {

condition = true;

} else {

condition = false;

}

</Custom Equip Requirement Condition>

In the game, all the cloaks are just grayed out.
If I swap the condition to false and then true, nothing happens.


Can anyone please help me?
Moved to: Plugin Support
Please give links to the plugins you're using
Sorry, I thought I posted it in the right place.

Yanfly's Equip Requirements: http://yanfly.moe/2016/02/27/yep-75-equip-requirements/

Yanfly's Equip Core: http://yanfly.moe/2015/10/15/yep-10-equip-core/
Make accessories not so generic? A neck slot could only allow one cloak or necklace or amulet per time.
I think having a neck slot is a good idea, and its kind of unique too (at least for me). But I don't wanna put another slot in the character's equipment. I think I'm fine with the "weapon, shield, head, body, foot, 3x accessories" for now. That's why I'm thinking of ways to still include the cloak, gloves and earrings.
Is it plausible? or maybe I'll just go with items that can be wore multiple times, like rings.
Well, if you want to keep the generic "accessories" slot, maybe cloaks occupy the head slot? But then make them truly different from helmets (helmets increasing DEF, cloaks EVA, amulets MDEF) so the player have a meaningful choice of what to wear instead of just hitting the "optimize" button.

Original thread: https://forums.rpgmakerweb.com/threads/3-slot-accessory-problem.77743/