Does anyone know how to make a skill that you can only have if you wear a certain armour or weapon?

I tried putting the "add skill" trait but that didn't work. Any ideas?
add skill should work - if it doesn't you made a mistake with that.
to use a skill the actor needs to have both skill and skill type for example

alternatively and for weapons only you can have the skill require a weapon type and give it to the actor, then it can only be used if a weapon of that type is equipped - doesn't work for armor or specific weapons however.
Does your Actor have the Skill Type needed in order to learn the skill provided by the equipment?
Does your Actor have the Skill Type needed in order to learn the skill provided by the equipment?
Thank you! I forgot to change the skill type of the spell

Original thread: https://forums.rpgmakerweb.com/threads/does-anyone-know-how-to-make-a-skill-that-you-can-only-have-if-you-wear-a-certain-armour-or-weapon.146720/