Need help removing Matk, Mdef, Luck, Defense from all menus they appear in.

I am using Yanflys status menu core.  I need to remove certain parameters from appearing in the status menu and equip menu.

Parameters I use: Level, HP, MP, ATK, AGI

Parameters I need to remove: Def, Matk, Mdef, Luk

Can someone tell me how to remove certain parameters from the game or at least hide them from menus?  

I have spent all night looking scouring the internet for posts or support on this and I can only find help for previous versions of rpgmaker.
I've moved this thread to JS Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


Posting IN Yanfly's plugin thread would get your question noticed by Yanfly more quickly. Please do not do this now, but remember it in case you need help with plugins in the future.
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'); }};In this code it loops through all the parameters and draws them on the status page.

You would just have to change is so it only draws a few parameters.
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'); }};In this code it loops through all the parameters and draws them on the status page.

You would just have to change is so it only draws a few parameters.
Thanks for the reply

I need it to draw specific parameters, if I tell it to draw fewer parameters that won't let me choose which ones to keep and which ones not.  I could decrease the loop runs but that wont get rid of the specific parameters I don't want, namely Def, Matk, Mdef and Luk.
Thanks for the reply

I need it to draw specific parameters, if I tell it to draw fewer parameters that won't let me choose which ones to keep and which ones not.  I could decrease the loop runs but that wont get rid of the specific parameters I don't want, namely Def, Matk, Mdef and Luk.
Then try something like this:

Window_Status.prototype.drawParameters = function(x, y) { var lineHeight = this.lineHeight(); for (var i = 0; i < 6; i++) { var paramId = i + 2; if((paramId >= 3 && paramId <= 5) || paramId === 7) continue; // <-- Check for the unwanted paramIds 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'); }};With this check it shouldn't draw Def (param(3)), Matk (param(4)), Mdef (param(5)), and Luk (param(7)).
Killout, did kiriseo's answer solve your problem? Would be good to know 🙂
Then try something like this:

Window_Status.prototype.drawParameters = function(x, y) { var lineHeight = this.lineHeight(); for (var i = 0; i < 6; i++) { var paramId = i + 2; if((paramId >= 3 && paramId <= 5) || paramId === 7) continue; // <-- Check for the unwanted paramIds 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'); }};With this check it shouldn't draw Def (param(3)), Matk (param(4)), Mdef (param(5)), and Luk (param(7)).
I tried it and I've got this.
I've changed some numbers 'cause i'm using DEF.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-removing-matk-mdef-luck-defense-from-all-menus-they-appear-in.52952/