[RMMZ] HOW TO MAKE A CUSTOM STAT?

Posts

Pages: 1
KrimsonKatt
Gamedev by sunlight, magical girl by moonlight
3326
So in my game along with the normal stats HP, MP, ATK, DEF, MAT, MDF, AGI, and LUK I want to add an additional stat called "Skill" or SKL for short that determines hit rate, critical rate, and evasion. How do I accomplish this? What plugins do I need? What formulas do I use? Thanks.
Marrend
Guardian of the Description Thread
21806
I would first look at the EX-parameters of HIT (hit rate), EVA (evasion rate), and CRI (critical rate) to see how, and where, they are implemented.

That aside, the way MZ gets the base parameter of an Actor looks like...
Game_Actor.prototype.paramBase = function(paramId) {
    return this.currentClass().params[paramId][this._level];
};
...this, referring to whatever Class the character is, and their level. Whereas an enemy does...

Game_Enemy.prototype.paramBase = function(paramId) {
    return this.enemy().params[paramId];
};

...this, instead. I'm not 100% how to add a stat to the table in regards to an actor's class. At least in MZ. I've kinda played around with getting stats to not refer to the DB in Ace. Enemies, I fell, could refer to the notes section, since they tend to be more static?
Pages: 1