Base stats over 999?

One of my character's agility stat reaches 1,031 but now I can't figure, even with Yanfly's Base Parameter plugin, how to make it get to 1,031... Mega headache, mega discouragement... Cause I'll need this for many other characters in my game and if I can't get this to work I'll have to scale everything with it... Which would force me to re-make a good portion of my entire game.

I've moved this thread to Plug-In Support. Thank you.



Note that it will never say anything over 999 in the editor, it will only in game.
bgillisp has a point. But what do you mean that it hits 1031? You mean that it should, but it doesn't?
bgillisp has a point. But what do you mean that it hits 1031? You mean that it should, but it doesn't?

I have to admit "hits" wasn't the right word. It reaches 1,031. The agility stat reaches 1,031. I'm simply looking for a way to get 1,031 in-game, within the editor it doesn't matter.
I have to admit "hits" wasn't the right word. It reaches 1,031. The agility stat reaches 1,031. I'm simply looking for a way to get 1,031 in-game, within the editor it doesn't matter.
Oh, I get it. So you are sure that it doesn't do it in game, regardless of whatever it does in the editor?
All of the parameters (actor and enemy) are capped at 999 except for Max HP and Max MP in the game as well as the editor.

Spoiler: RMMV code that limits you to 999
Code:
Game_BattlerBase.prototype.param = function(paramId) {
    var value = this.paramBase(paramId) + this.paramPlus(paramId);
    value *= this.paramRate(paramId) * this.paramBuffRate(paramId);
    var maxValue = this.paramMax(paramId);
    var minValue = this.paramMin(paramId);
    return Math.round(value.clamp(minValue, maxValue));
};

Game_BattlerBase.prototype.paramMax = function(paramId) {
    if (paramId === 0) {
        return 999999;  // MHP
    } else if (paramId === 1) {
        return 9999;    // MMP
    } else {
        return 999;
    }
};
When the game calculates the character's agility, it clamps it between the min and max allowed values, which are 1 and 999.

Agility is parameter #6 so you'd have to alias the 'paramMax' method in order to let the character get more than 999 for parameter #6.
Fortunately this isn't very hard.
Let's do it at the Game_Actor (lower level) instead of the Game_BattlerBase (higher level). The Game_BattlerBase is for both enemies and actors so let's just do it for your heroes at this point.

Spoiler: New Code to Break the 999 Agility Limit!
Code:
(function() {

var alias_Game_Actor_paramMax = Game_Actor.prototype.paramMax;
Game_Actor.prototype.paramMax = function(paramId) {
    if (paramId === 6) {
        return 9999;    // AGI
    }
    return alias_Game_Actor_paramMax.call(this, paramId);
};

})();
First we alias the existing 'paramMax' method because we don't want to overwrite it for compatibility purposes. We're just adding to it.
If it's parameter #6 (Agility) then the max is 9999 but for any other parameter we're not changing the max.
Save this as a .js in your plugins folder and turn it on.

Just curious, how do you plan to increase it above 999 when you cannot do such a thing in the editor? By using in-game event commands?

Original thread: https://forums.rpgmakerweb.com/threads/base-stats-over-999.88169/