Hide(Skip) Actor Params in RPG Maker MZ Equip Menu

Using ATT_Turan's code and comments in another thread for skipping params in the actor status window as a jumping off point, I want to hide certain actor parameters in the equip menu in rpg maker mz, which by default shows all actor parameters on the left-hand side. I have searched through threads, but there doesn't seem to be one dedicated to this for vanilla MZ.

The loop that draws the actor params in the equip menu, *I think* are these three items:

Window_EquipStatus.prototype.drawItem = function(x, y, paramId) {
const paramX = this.paramX();
const paramWidth = this.paramWidth();
const rightArrowWidth = this.rightArrowWidth();
this.drawParamName(x, y, paramId);
if (this._actor) {
this.drawCurrentParam(paramX, y, paramId);
}
this.drawRightArrow(paramX + paramWidth, y);
if (this._tempActor) {
this.drawNewParam(paramX + paramWidth + rightArrowWidth, y, paramId);
}
};

Window_EquipStatus.prototype.drawParamName = function(x, y, paramId) {
const width = this.paramX() - this.itemPadding() * 2;
this.changeTextColor(ColorManager.systemColor());
this.drawText(TextManager.param(paramId), x, y, width);
};

Window_EquipStatus.prototype.drawCurrentParam = function(x, y, paramId) {
const paramWidth = this.paramWidth();
this.resetTextColor();
this.drawText(this._actor.param(paramId), x, y, paramWidth, "right");
But I have no idea how to then use the javascript to skip params, like ATT_Turan did for the status window. I tried variations of this:

Window_EquipStatus.prototype.drawParamName = function(x, y, paramId) {
const width = this.paramX() - this.itemPadding() * 2;
this.changeTextColor(ColorManager.systemColor());
this.drawText(TextManager.param(paramId), x, y, width);

// Modify the below number to skip the desired parameter
if (paramId == 7 || paramId == 3 || paramId ==5 || paramId == 6)
return;

const name = TextManager.param(paramId);
const value = this._actor.param(paramId);
this.changeTextColor(ColorManager.systemColor());
this.drawText(name, rect.x, rect.y, 160);
this.resetTextColor();
this.drawText(value, rect.x + 160, rect.y, 60, "right");
};

That causes erros rect, undefined etc.

Any suggestions are appreciated.
You would need to put it here.

Code:
Window_EquipStatus.prototype.drawAllParams = function() {
    for (let i = 0; i < 6; i++) {
        const x = this.itemPadding();
        let line = i;
        switch (i)
        {
        // List parameters to be skipped, subtracting 2 from the ID
            case 1:
            case 3:
            case 4:
            case 5:
                continue;
        // Else account for skipped lines
            case 2:
                line--;
                break;
        }
        let y = this.paramY(line);
        this.drawItem(x, y, 2 + i);
    }
};
You would need to put it here.

Code:
Window_EquipStatus.prototype.drawAllParams = function() {
    for (let i = 0; i < 6; i++) {
        const x = this.itemPadding();
        let line = i;
        switch (i)
        {
        // List parameters to be skipped, subtracting 2 from the ID
            case 1:
            case 3:
            case 4:
            case 5:
                continue;
        // Else account for skipped lines
            case 2:
                line--;
                break;
        }
        let y = this.paramY(line);
        this.drawItem(x, y, 2 + i);
    }
};
Thanks very much for that. You've eliminated skipped line spaces here. Would this work in the status menu as well?
You said you were originally working from a post talking about removing parameters from the status screen.

Does that code not work for you? Where's a link to the thread?
You said you were originally working from a post talking about removing parameters from the status screen.

Does that code not work for you? Where's a link to the thread?


Yes. The code worked. The phrasing seems to be a bit different for the status screen, but I don't know anything.
Oh, I think I understand, you're asking how to hide the skipped line because you're not ignoring Luck.

Yes, you'd need to add extra code, no, it's not the same code.

Code:
Window_StatusParams.prototype.drawItem = function(index) {
    const paramId = index + 2;

    if (paramId == 3 || paramId == 5 || paramId == 6 || paramId == 7)
        return;

    let line = paramId == 2 ? index : 1;

    const rect = this.itemLineRect(line);
    const name = TextManager.param(paramId);
    const value = this._actor.param(paramId);
    this.changeTextColor(ColorManager.systemColor());
    this.drawText(name, rect.x, rect.y, 160);
    this.resetTextColor();
    this.drawText(value, rect.x + 160, rect.y, 60, "right");
};
Oh, I think I understand, you're asking how to hide the skipped line because you're not ignoring Luck.

Yes, you'd need to add extra code, no, it's not the same code.

Code:
Window_StatusParams.prototype.drawItem = function(index) {
    const paramId = index + 2;

    if (paramId == 3 || paramId == 5 || paramId == 6 || 7)
        return;

    let line = paramId == 2 ? index : 1;

    const rect = this.itemLineRect(line);
    const name = TextManager.param(paramId);
    const value = this._actor.param(paramId);
    this.changeTextColor(ColorManager.systemColor());
    this.drawText(name, rect.x, rect.y, 160);
    this.resetTextColor();
    this.drawText(value, rect.x + 160, rect.y, 60, "right");
};
Yes, sorry! I should have specified. I'm not ignoring the stats, just wanted to hide them. Thanks

Oh, I think I understand, you're asking how to hide the skipped line because you're not ignoring Luck.

Yes, you'd need to add extra code, no, it's not the same code.

Code:
Window_StatusParams.prototype.drawItem = function(index) {
    const paramId = index + 2;

    if (paramId == 3 || paramId == 5 || paramId == 6 || 7)
        return;

    let line = paramId == 2 ? index : 1;

    const rect = this.itemLineRect(line);
    const name = TextManager.param(paramId);
    const value = this._actor.param(paramId);
    this.changeTextColor(ColorManager.systemColor());
    this.drawText(name, rect.x, rect.y, 160);
    this.resetTextColor();
    this.drawText(value, rect.x + 160, rect.y, 60, "right");
};
Interesting. I copy-pasted this into a js file and implemented it as plugin, but it hid all attributes in status window.
There's just a typo at the end of the condition, I forgot the last paramId ==

Original thread: https://forums.rpgmakerweb.com/threads/hide-skip-actor-params-in-rpg-maker-mz-equip-menu.173792/