Removing certain stats?

Hello, my dears.
Again I need help, is any way to remove/ hide unused stats? The thing is I do not want to use stats such as MagicDefense(mdf), Agility(agi) and Luck(luk). Will you help me?
Have a nice day, darlings <3
@LynXXX This is copied and pasted from my thread. Just paste the edited portion onto notepad ++ follow directions and save into your plugins folder for your game and dont forget to turn on in maker plugin directory.

----------Remove Stats From Status Menu------------- [Please read notes below for more details on code.]


Via rpg_windows.js


Default:


Window_Status.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 6; i++) {
var paramId = i + 2;
var y2 = y + lineHeight * i;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y2, 160);
this.resetTextColor();
this.drawText(this._actor.param(paramId), x + 160, y2, 60, 'right');
}
};


Edit:


Window_Status.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 4; i++) {
var paramId = i + 2;
var y2 = y + lineHeight * i;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y2, 160);
this.resetTextColor();
this.drawText(this._actor.param(paramId), x + 160, y2, 60, 'right');
}
};


IMPORTANT NOTE! This is somewhat of limited choices. As you can see you change the number here " for (var i = 0; i < 4; i++) {". It goes 1-6 and displays stats in this order. Here I have chosen 4.


1 attack


2 defense


3 m. attk


4 m def


5 agility


6 luck


So if you just wanted to leave out luck you would enter for "(var i = 0; i < 5; i++) {" but if you understand this you wouldn't be able to edit defense to disappear and still have any stat afterwards as in higher number on the table posted above.
You can also tell it exactly which parameters you want it to draw like this:

Code:
Window_Status.prototype.drawParameters = function(x, y) {
    var lineHeight = this.lineHeight();
    var paramsToDraw = [2, 3, 6];  // This would draw just ATK, DEF, AGI for example
    for (var i = 0; i < paramsToDraw.length; i++) {
        var y2 = y + lineHeight * i;
        this.changeTextColor(this.systemColor());
        this.drawText(TextManager.param(paramsToDraw[i]), x, y2, 160);
        this.resetTextColor();
        this.drawText(this._actor.param(paramsToDraw[i]), x + 160, y2, 60, 'right');
    }
};

0 --> Max HP (MHP)
1 --> Max MP (MMP)
2 --> Attack (ATK)
3 --> Defense (DEF)
4 --> Magic Attack (MAT)
5 --> Magic Defense (MDF)
6 --> Agility (AGI)
7 --> Luck (LUK)
@LynXXX This is copied and pasted from my thread. Just paste the edited portion onto notepad ++ follow directions and save into your plugins folder for your game and dont forget to turn on in maker plugin directory.

----------Remove Stats From Status Menu------------- [Please read notes below for more details on code.]


Via rpg_windows.js


Default:


Window_Status.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 6; i++) {
var paramId = i + 2;
var y2 = y + lineHeight * i;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y2, 160);
this.resetTextColor();
this.drawText(this._actor.param(paramId), x + 160, y2, 60, 'right');
}
};


Edit:


Window_Status.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 4; i++) {
var paramId = i + 2;
var y2 = y + lineHeight * i;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y2, 160);
this.resetTextColor();
this.drawText(this._actor.param(paramId), x + 160, y2, 60, 'right');
}
};


IMPORTANT NOTE! This is somewhat of limited choices. As you can see you change the number here " for (var i = 0; i < 4; i++) {". It goes 1-6 and displays stats in this order. Here I have chosen 4.


1 attack


2 defense


3 m. attk


4 m def


5 agility


6 luck


So if you just wanted to leave out luck you would enter for "(var i = 0; i < 5; i++) {" but if you understand this you wouldn't be able to edit defense to disappear and still have any stat afterwards as in higher number on the table posted above.

You can also tell it exactly which parameters you want it to draw like this:

Code:
Window_Status.prototype.drawParameters = function(x, y) {
    var lineHeight = this.lineHeight();
    var paramsToDraw = [2, 3, 6];  // This would draw just ATK, DEF, AGI for example
    for (var i = 0; i < paramsToDraw.length; i++) {
        var y2 = y + lineHeight * i;
        this.changeTextColor(this.systemColor());
        this.drawText(TextManager.param(paramsToDraw[i]), x, y2, 160);
        this.resetTextColor();
        this.drawText(this._actor.param(paramsToDraw[i]), x + 160, y2, 60, 'right');
    }
};

0 --> Max HP (MHP)
1 --> Max MP (MMP)
2 --> Attack (ATK)
3 --> Defense (DEF)
4 --> Magic Attack (MAT)
5 --> Magic Defense (MDF)
6 --> Agility (AGI)
7 --> Luck (LUK)
OH YESSS...
You did well darlings.
@Leon Kennedy - Thank you for showing easy way. It's really easy to remember which numbers are useless 😉 and leave for loop forever in perfect state.
@Aloe Guvner - Thank you for showing brilliant way. It's harder to remember which number what means, but it gives me absolutely beautiful 🙂 way of choosing stats to display.
Like I said before you both did very well.
Have a nice day, darlings <3
Yanfly's Level Up Aftermath seems a little more complicated. Can't seem to get rid of max MP.
You can also tell it exactly which parameters you want it to draw like this:

Code:
Window_Status.prototype.drawParameters = function(x, y) {
    var lineHeight = this.lineHeight();
    var paramsToDraw = [2, 3, 6];  // This would draw just ATK, DEF, AGI for example
    for (var i = 0; i < paramsToDraw.length; i++) {
        var y2 = y + lineHeight * i;
        this.changeTextColor(this.systemColor());
        this.drawText(TextManager.param(paramsToDraw[i]), x, y2, 160);
        this.resetTextColor();
        this.drawText(this._actor.param(paramsToDraw[i]), x + 160, y2, 60, 'right');
    }
};

0 --> Max HP (MHP)
1 --> Max MP (MMP)
2 --> Attack (ATK)
3 --> Defense (DEF)
4 --> Magic Attack (MAT)
5 --> Magic Defense (MDF)
6 --> Agility (AGI)
7 --> Luck (LUK)

Hi thanks for this, it helped me a lot. Also i found out that if u change the order of the numbers in brackets, for example [ 3, 6, 1,], the stat order changes accordingly [ Def, Agi, Max MP].

I still have a question though. Is there a number for the other stats, liek Crit chance? Or are those 8 the only stats that can be shown in the status window?
This change gets completely ignored since im using Yanfly's Core Engine. Is there any way someone could help me with that?

Edit: Nevermind i fixed it.

@Heracrotix , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removing-certain-stats.89603/