Hiding Attributes from Equip Screen?

So using this script below:
Code:
Window_StatusParams.prototype.maxItems = function() {
    return 5;
};

// Drawing parameters such as attack power
    Window_SrpgStatus.prototype.drawParameters = function(x, y) {
        var lineHeight = this.lineHeight();
        for (var i = 0; i < 5; i++) { // Edited
            var paramId = i + 2;
            var x2 = x + 188 * (i % 2);
            var y2 = y + lineHeight * Math.floor(i / 2);
            this.changeTextColor(ColorManager.systemColor());
            this.drawText(TextManager.param(paramId), x2, y2, 120);
            this.resetTextColor();
            this.drawText(this._battler.param(paramId), x2 + 120, y2, 48, 'right');
        }
    };

I've been able to remove the appearance of the "Luck" stat from the Status Menu, and from playing a role in combat. However, it still seems to be appearing on the Equip Screen. And I can find no such relevant "Params" option or "return" option where Equip is concerned.

Would anyone know what piece of code it is I need to be altering?
View attachment 269702
1689586832663.png

1689586866838.png
I don't know the plugin you're using for the equip screen but in theory it should be identical to the line you edited just under a different plugin heading. Have a dig through the equip screen plugin and you should find something similar.

If the following controls the SrpgStatus properties, then my guess would be you're looking for Window_SrpgEquip if it's from the same family of plugins. And editing the 6 there to a 5 like you've already done for the status window.

Window_SrpgStatus.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 5; i++) { // Edited
I don't know the plugin you're using for the equip screen but in theory it should be identical to the line you edited just under a different plugin heading. Have a dig through the equip screen plugin and you should find something similar.

If the following controls the SrpgStatus properties, then my guess would be you're looking for Window_SrpgEquip if it's from the same family of plugins. And editing the 6 there to a 5 like you've already done for the status window.
That SRPG code is influencing a different menu, a battle window that appears in a strategic mode (it's a plugin that makes the game like Fire Emblem).

The way I got rid of Luck from the Status window was from the top piece of code, which came from a Vanilla file.
In that case this is the code that needs changing.

Swap the 6 out for a 5 and you should be good.
Window_EquipStatus.prototype.drawAllParams = function() {
for (let i = 0; i < 6; i++) {
const x = this.itemPadding();
const y = this.paramY(i);
this.drawItem(x, y, 2 + i);
}
};
In that case this is the code that needs changing.

Swap the 6 out for a 5 and you should be good.
Thanks! That worked! 😀

Now seeing how I missed that though...
For the Status window it's called StatusParams but for the Equip window its called EquipStatus?
And it deviates between drawParameters & drawAllParams?

I'm not sure if I understand javascripts logic xD

Original thread: https://forums.rpgmakerweb.com/threads/hiding-attributes-from-equip-screen.159410/