Idea for a skill to grant armor

I wanted to design a game where the main character could use a skill to auto equip a gear not in the inventory in battles and have it unequipped them after the battle ends. since it is possible to give skills to characters when the armor is equipped this would give a cool utility to different types of encounters. Can someone point me in the right direction on how to accomplish this?

Im new, sorry if this is in the wrong section.
This will probably require a plug-in, or at least a script code to pull off.

Moved to Plug-In Requests

You could use states to do this. Make the states have the same boosts as there armor counterpart and if you want to add skills that can be done in states too

Original thread: https://forums.rpgmakerweb.com/threads/idea-for-a-skill-to-grant-armor.114391/