When equiped with a certain item a new skill?

Hey guys, is there a script where when you equip a specific weapon/armor/accessory you will get a skill until you unequip the thing and it will remove it?
This doesn't need a script. 

When you create your weapons or armour/accessory, you will see under 'Skill' on the Features tab that you can add a skill.  That is added when you equip the gear, and removed when you take the gear off. 
To add onto what ksjp17 said, that will work as long as the actor can use said skill. Make sure they have the ability to use skills of the skill type of that skill, else it will do nothing.

Original thread: https://forums.rpgmakerweb.com/threads/when-equiped-with-a-certain-item-a-new-skill.39535/