Armor which reduces MP cost to 1?

This is probably an easy question.
How can you make an armor which decreases the MP cost of all spells to 1?
If I do a trait with "Sp-Parameter - MP Cost Rate *1%" I'm getting close but I can't think of any other way.

I'm also using a lot of YEP plugins if there's a way to accomplish that by using those.
If you're using YEP Skill Core, you could use custom MP costs to set the MP cost to 1 in the notetag of any skill that should be affected.

Code:
<Custom MP Cost>
if(user.hasArmor($dataArmors[n])) //replace 'n' with the ID of your armor
{
  cost = 1;
}
</Custom MP Cost>

While not necessary, if you're gonna do this for many skills, I'd recommend using Victor's Notes Text File. Makes things a lot easier if you need to make changes later.

Alrighty, thanks.
I guess there is no easier way?
Just asking before I edit 300 skills. 🙂
All of the skill cost information is contained in the skills. The armor has no way of knowing whether a skill costs more than 1 MP, or TP, or anything else.

You could write a plugin that integrates the check for the armor into the cost calculation, but presuming you're not versed in JavaScript, what Amaranth said is the way to do it that I know of.
@unknownnumber
Try putting this into a file and saving it as a plugin and putting it at the top of your list.

Code:
Game_BattlerBase.prototype.skillMpCost = function(skill) {
    if (this.isActor) {
        if (this.equips().includes($dataArmors[16])) {
            return 1
        }
        else {
            skill.mpCost
        }
    }
    else {
        skill.mpCost
    }
}

You will want to edit the "16" to whatever ID is for the armor you have the 1 MP cost on in the database. This worked when I tested... made ALL of the characters spells cost 1 MP when used, while everyone else kept normal spell costs.

Original thread: https://forums.rpgmakerweb.com/threads/armor-which-reduces-mp-cost-to-1.146107/