MZ Show HP, MP, TP numbers in Main Menu

Im using Visustella plugins and for some reason, the Skillstatescore makes the gauges on the main menu look different and have a different font and I cant for the life of me find a way to even edit them. I have only been able to remove them.

So im wondering if there is a way to add the information with another plugin.

This is roughly what I want. Draw the HP,MP,TP text and then the numbers on the side. The text being the default font. If its not possible without also drawing the gauges/bars then that's fine. (It was the mixing of fonts that drove me nuts xD)

shf.PNG
theoretically yes, practically no - for the same reason you can't edit a visustella plugin: to add anything into the programming you have to be able to edit it, even for another plugin.

your only chance is to completely replace the scene with new code, because you can't read the existing visustella code.

and that needs a bit more info on which plugins you have and what exactly you want from them - or you get into compatibility problems.
theoretically yes, practically no - for the same reason you can't edit a visustella plugin: to add anything into the programming you have to be able to edit it, even for another plugin.

your only chance is to completely replace the scene with new code, because you can't read the existing visustella code.

and that needs a bit more info on which plugins you have and what exactly you want from them - or you get into compatibility problems.

The main menu core lets you edit it but I cant find a way to remove the bars but not the text. And deffo dont have the skills to rewrite it, I did try to by copying sections from rmmz_windows but...Dont know enough to make it work.


Spoiler: Code
// Place Gauges
const sy2 = sy + lineHeight;
const gaugeLineHeight = this.gaugeLineHeight();
this.placeGauge(actor, "hp", sx2, sy2);
this.placeGauge(actor, "mp", sx2, sy2 + gaugeLineHeight);
const roomForTp = (sy2 + gaugeLineHeight * 3) <= rect.y + rect.height;
if ($dataSystem.optDisplayTp && roomForTp) {
this.placeGauge(actor, "tp", sx2, sy2 + gaugeLineHeight * 2);
}

It shows the bars and text as one it seems.

Spoiler: Whole Code
EDIT: I just noticed I said I didn't find a way to edit it. I meant I wasn't able to 😛
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Draw Actor Graphic
const gx = rect.x + (this.graphicType() === 'face' ? 1 : 0);
const gy = rect.y + (this.graphicType() === 'face' ? 1 : 0);
const gw = Math.min(rect.width, ImageManager.faceWidth);
const gh = Math.min(rect.height, ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, gw, gh);

// Draw Status Stuff
const sx = rect.x + 180;
const sy = rect.y + rect.height / 2 - this.lineHeight() * 2;
const lineHeight = this.lineHeight();
const sx2 = sx + 180;
this.drawActorName(actor, sx, sy + lineHeight * 0);
this.drawActorLevel(actor, sx, sy + lineHeight * 1);
this.drawActorIcons(actor, sx, sy + lineHeight * 2);
this.drawActorClass(actor, sx2, sy);
this.contents.fontSize -= 4;

// Place Gauges
const sy2 = sy + lineHeight;
const gaugeLineHeight = this.gaugeLineHeight();
this.placeGauge(actor, "hp", sx2, sy2);
this.placeGauge(actor, "mp", sx2, sy2 + gaugeLineHeight);
const roomForTp = (sy2 + gaugeLineHeight * 3) <= rect.y + rect.height;
if ($dataSystem.optDisplayTp && roomForTp) {
this.placeGauge(actor, "tp", sx2, sy2 + gaugeLineHeight * 2);
}

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
const sx3 = sx2 + 180;
const sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
const pw = Math.floor(sw / 2) - 32;
let px = sx3;
let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2);
let counter = 0;
for (const param of params) {
this.resetFontSettings();
this.drawParamText(px, py, pw, param, true);
this.resetTextColor();
this.contents.fontSize -= 3;
const paramValue = actor.paramValueByName(param, true);
this.contents.drawText(paramValue, px, py, pw, gaugeLineHeight, 'right');
counter++;
if (counter % 2 === 0) {
px = sx3;
py += gaugeLineHeight;
} else {
px += pw + 32;
}
}
}
Spoiler: No Gauge Menu Stats
NoGauge1.png

Spoiler: Replace this
Code:
// Place Gauges
sx += 180;
sy = rect.y + ((rect.height - (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2))) / 2) - 2;
tw = rect.width / 20;
this.contents.fontSize -= 8;
this.contents.drawText("HP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.hp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
this.contents.drawText("MP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.mp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
if ($dataSystem.optDisplayTp)
this.contents.drawText("TP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.tp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sx += 160;
Hope this will be enough to get you started.
EDIT: Updated for alignment
Spoiler: Replace this
Code:
// Place Gauges
sx += 180;
sy = rect.y + ((rect.height - (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2))) / 2) - 2;
tw = rect.width / 20;
this.contents.fontSize -= 8;
this.contents.drawText("HP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.hp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
this.contents.drawText("MP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.mp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
if ($dataSystem.optDisplayTp)
this.contents.drawText("TP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.tp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sx += 160;
Hope this will be enough to get you started.
EDIT: Updated for alignment

Getting these errors. Also tried with an unchanged Mainmenucore.

Spoiler: Error
2354.PNG

4t34.PNG
can you show me you entire code section
VizuMZ_1_MainMenuCore > List-Style Settings > JS: Thicker

i see, you are using default?
can you show me you entire code section
VizuMZ_1_MainMenuCore > List-Style Settings > JS: Thicker
I am using the default one, guess I forgot to mention that xD

Spoiler: Thick
/ Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Draw Actor Graphic
const gx = rect.x + (this.graphicType() === 'face' ? 1 : 0);
const gy = rect.y + (this.graphicType() === 'face' ? 1 : 0);
const gw = Math.min(rect.width, ImageManager.faceWidth);
const gh = Math.min(rect.height, ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, gw, gh);

// Draw Status Stuff
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();
let sx = rect.x + 160;
let sy = rect.y + ((rect.height - (lineHeight * 2)) / 2) - 2;

// Draw Actor Data
this.drawActorLevel(actor, gx+8, rect.y + rect.height - lineHeight +1);
this.drawActorName(actor, sx, sy);
this.drawActorClass(actor, sx, sy + lineHeight);
//this.drawActorLevel(actor, sx, sy + lineHeight);

// Place Gauges
sx += 180;
sy = rect.y + ((rect.height - (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2))) / 2) - 2;
this.placeGauge(actor, "hp", sx, sy);
this.placeGauge(actor, "mp", sx, sy + gaugeLineHeight);
if ($dataSystem.optDisplayTp) this.placeGauge(actor, "tp", sx, sy + (gaugeLineHeight * 2));
sx += 160;

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
const sx3 = sx;
const sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
const pw = Math.floor(sw / 2) - 24;
sy = rect.y + ((rect.height - (gaugeLineHeight * Math.ceil(params.length / 2))) / 2) - 2;
let px = sx3;
let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2);
let counter = 0;
for (const param of params) {
this.resetFontSettings();
this.drawParamText(px, py, pw, param, true);
this.resetTextColor();
this.contents.fontSize -= 8;
const paramValue = actor.paramValueByName(param, true);
this.contents.drawText(paramValue, px, py, pw, gaugeLineHeight, 'right');
counter++;
if (counter % 2 === 0) {
px = sx3;
py += gaugeLineHeight;
} else {
px += pw + 24;
}
}
}

Spoiler: Default
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Draw Actor Graphic
const gx = rect.x + (this.graphicType() === 'face' ? 1 : 0);
const gy = rect.y + (this.graphicType() === 'face' ? 1 : 0);
const gw = Math.min(rect.width, ImageManager.faceWidth);
const gh = Math.min(rect.height, ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, gw, gh);

// Draw Status Stuff
const sx = rect.x + 180;
const sy = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
const lineHeight = this.lineHeight();
const sx2 = sx + 180;
this.drawActorName(actor, sx, sy);
this.drawActorLevel(actor, sx, sy + lineHeight * 1);
this.drawActorIcons(actor, sx, sy + lineHeight * 2);
this.drawActorClass(actor, sx2, sy);

// Place Gauges
sx += 180;
sy = rect.y + ((rect.height - (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2))) / 2) - 2;
tw = rect.width / 20;
this.contents.fontSize -= 8;
this.contents.drawText("HP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.hp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
this.contents.drawText("MP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.mp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sy += gaugeLineHeight;
if ($dataSystem.optDisplayTp)
this.contents.drawText("TP", sx, sy, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.tp, sx + 80, sy, tw, gaugeLineHeight, 'right');
sx += 160;


// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
const sx3 = sx2 + 180;
const sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
const pw = Math.floor(sw / 2) - 24;
let px = sx3;
let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2);
let counter = 0;
for (const param of params) {
this.resetFontSettings();
this.drawParamText(px, py, pw, param, true);
this.resetTextColor();
this.contents.fontSize -= 8;
const paramValue = actor.paramValueByName(param, true);
this.contents.drawText(paramValue, px, py, pw, gaugeLineHeight, 'right');
counter++;
if (counter % 2 === 0) {
px = sx3;
py += gaugeLineHeight;
} else {
px += pw + 24;
}
}
}
Spoiler: Default No Gauge Menu
NoGauge2.png

Spoiler: Default No Gauge
Code:
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Draw Actor Graphic
const gx = rect.x + (this.graphicType() === 'face' ? 1 : 0);
const gy = rect.y + (this.graphicType() === 'face' ? 1 : 0);
const gw = Math.min(rect.width, ImageManager.faceWidth);
const gh = Math.min(rect.height, ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, gw, gh);

// Draw Status Stuff
sx = rect.x + 180;
sy = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
lineHeight = this.lineHeight();
sx2 = sx + 180;
this.drawActorName(actor, sx, sy);
this.drawActorLevel(actor, sx, sy + lineHeight * 1);
this.drawActorIcons(actor, sx, sy + lineHeight * 2);
this.drawActorClass(actor, sx2, sy);

// Place Gauges
sy2 = sy + lineHeight;
gaugeLineHeight = this.gaugeLineHeight();
tw = rect.width / 20;
this.contents.fontSize -= 8;
this.contents.drawText("HP", sx2, sy2, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.hp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
sy2 += gaugeLineHeight;
this.contents.drawText("MP", sx2, sy2, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.mp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
if ($dataSystem.optDisplayTp)
    sy2 += gaugeLineHeight;
    this.contents.drawText("TP", sx2, sy2, tw, gaugeLineHeight, 'left');
    this.contents.drawText(actor.tp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
sx += 160;

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
sx3 = sx2 + 180;
sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
    const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
    const pw = Math.floor(sw / 2) - 24;
    let px = sx3;
    let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2);
    let counter = 0;
    for (const param of params) {
        this.resetFontSettings();
        this.drawParamText(px, py, pw, param, true);
        this.resetTextColor();
        this.contents.fontSize -= 8;
        const paramValue = actor.paramValueByName(param, true);
        this.contents.drawText(paramValue, px, py, pw, gaugeLineHeight, 'right');
        counter++;
        if (counter % 2 === 0) {
            px = sx3;
            py += gaugeLineHeight;
        } else {
            px += pw + 24;
        }
    }
}
Spoiler: Default No Gauge
Code:
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Draw Actor Graphic
const gx = rect.x + (this.graphicType() === 'face' ? 1 : 0);
const gy = rect.y + (this.graphicType() === 'face' ? 1 : 0);
const gw = Math.min(rect.width, ImageManager.faceWidth);
const gh = Math.min(rect.height, ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, gw, gh);

// Draw Status Stuff
sx = rect.x + 180;
sy = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
lineHeight = this.lineHeight();
sx2 = sx + 180;
this.drawActorName(actor, sx, sy);
this.drawActorLevel(actor, sx, sy + lineHeight * 1);
this.drawActorIcons(actor, sx, sy + lineHeight * 2);
this.drawActorClass(actor, sx2, sy);

// Place Gauges
sy2 = sy + lineHeight;
gaugeLineHeight = this.gaugeLineHeight();
tw = rect.width / 20;
this.contents.fontSize -= 8;
this.contents.drawText("HP", sx2, sy2, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.hp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
sy2 += gaugeLineHeight;
this.contents.drawText("MP", sx2, sy2, tw, gaugeLineHeight, 'left');
this.contents.drawText(actor.mp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
if ($dataSystem.optDisplayTp)
    sy2 += gaugeLineHeight;
    this.contents.drawText("TP", sx2, sy2, tw, gaugeLineHeight, 'left');
    this.contents.drawText(actor.tp, sx2 + 80, sy2, tw, gaugeLineHeight, 'right');
sx += 160;

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
sx3 = sx2 + 180;
sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
    const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
    const pw = Math.floor(sw / 2) - 24;
    let px = sx3;
    let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2);
    let counter = 0;
    for (const param of params) {
        this.resetFontSettings();
        this.drawParamText(px, py, pw, param, true);
        this.resetTextColor();
        this.contents.fontSize -= 8;
        const paramValue = actor.paramValueByName(param, true);
        this.contents.drawText(paramValue, px, py, pw, gaugeLineHeight, 'right');
        counter++;
        if (counter % 2 === 0) {
            px = sx3;
            py += gaugeLineHeight;
        } else {
            px += pw + 24;
        }
    }
}

Perfect! Thanks man!

Having two separate fonts on the menu bothered me more then it prolly should have xD
Dang, I didn't think of this but now that the gauge is gone (which is good), I suppose only seeing current HP is odd.

Would it be difficult to add the max value too? like 40/40? If its a pain then no worries.
Not difficult at all..

Where is says drawText(actor.hp,
Change it so it reads (actor.hp + " / " + actor.mhp,

The same method for the other stats..

(actor.mp + " / " + Actor.mmp,
(actor.tp + " / " + "100",
Not difficult at all..

Where is says drawText(actor.hp,
Change it so it reads (actor.hp + " / " + actor.mhp,

The same method for the other stats..

(actor.mp + " / " + Actor.mmp,
(actor.tp + " / " + "100",

Bah! I tried a lot of variations of this based on a code from MV I found in another post but it was pretty different in the end. Thanks again!
What do you mean?
What do you mean?
Found a post of someone else trying to add hp/mhp to a menu, but for MV. So I tried to do it myself by looking at that code. But it was pretty different from what you posted.

I think it was actor.hp * 176 / actor.mhp or something. So I tried a ton of variations of that but nothing worked. Never would have figured out the " signs.

I know nothing about code but sometimes I manage things by sheer trial and error xD

Asking for help is usually my last resort.

Original thread: https://forums.rpgmakerweb.com/threads/show-hp-mp-tp-numbers-in-main-menu.146871/