MZ cap a parameter?

Is it possible to make it so that some parameters cannot have a value superior to a given number.
For instance have EVA and MEV reach 90% max even if through various boosts they should be at 100%?
i dont know of any plugins to do that offhand, but it wouldnt be a hard change to make. youd have to be more specific about all that you want to be capped and to what value though
Off the top of my head...
Eva 90%
Mev 90%
Mrf 80%
Cnt 80%
save this as a .js file, add it as a plugin, and it should do what you want
Code:
Game_BattlerBase.prototype.xparam = function(xparamId) {
    if (xparamId == 1 || xparamId == 4)
        return Math.min(this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId), .9);
    if (xparamId == 5 || xparamId == 6)
        return Math.min(this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId), .8);
    return this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId);
};
Awesome, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/cap-a-parameter.169562/