Armor needed for a skill.

Greetings and salutations, sages of the boards! I come to you in the time of great need. I am currently creating a combat system which relies on mastery to give you access to specific skills.
1733779061616.png

However, whilst I can add a trait to each armor that grants a specific ability, this is very unintuitive and limiting. For example, with this system I cannot make weapons with unique attacks, because both the mastery and the weapon do not "check" each other.

1733779230793.png


This could be easily fixed, if I found a plugin or another way to make a skill require a specific armor to work.
I thank all the responses in advance.
if you use yanfly's skill core plugin you can use a notetag to make wearing the armor a requirement to use said skills.

So if you wanted an actor to have atleast an expert mastery in unarmed to be able to use a skill, youd use
Code:
<custom requirement>
[4,5,6].some(eq => user.isEquipped($dataArmors[eq]))
</custom requirement>
and if you need changes youd just put the ids of the relevant armors between the brackets.
if you use yanfly's skill core plugin you can use a notetag to make wearing the armor a requirement to use said skills.

So if you wanted an actor to have atleast an expert mastery in unarmed to be able to use a skill, youd use
Code:
<custom requirement>
[4,5,6].some(eq => user.isEquipped($dataArmors[eq]))
</custom requirement>
and if you need changes youd just put the ids of the relevant armors between the brackets.
I see! Though, if you could answer me one things. I'm sorry, but I want to make sure as I am not proficient in coding.
What does "[4,5,6]" mean?
What does "[4,5,6]" mean?
Those are the armor IDs that would allow you to use the skill - in this case armor 4, 5, or 6.

Also, there's a slight typo in what @Robro33 provided. It would need to be:
Code:
<custom requirement>
value = [4,5,6].some(eq => user.isEquipped($dataArmors[eq]));
</custom requirement>

If there's only one armor you care about, then it's simply:
Code:
<Custom Requirement>
value = user.isEquipped($dataArmors[42]);
</Custom Requirement>
to be enabled if they have armor ID 42 equipped.
there's a slight typo
i had a feeling i was forgetting something important 🤣
i had a feeling i was forgetting something important 🤣
Probably your underwear 😉
1733854713978.png

1733854744631.png

1733854788636.png

Update on the situation: a rather strange development, in the form that now the abilities do become unavailable, yes, however they never enable themselves.
If this helps with anything, the set up is as follows:
1733854880159.png

The character needs the "ability" armor to equip a certain type of equipment.
1733854922257.png

Certain type of equipment then adds all five ranks of basic attack that is attached to the weapon class.
1733854993858.png

The skill also demands the specific weapon type to be equipped.

1733855233996.png

1733855250748.png

Also, since I saw it is a rather common question, here is my plugin list.

Original thread: https://forums.rpgmakerweb.com/threads/armor-needed-for-a-skill.173794/