MZ Custom MP Bar

Hi everyone, I'm looking for an RPG Maker MZ plugin that allows me to change the MP bar's name and color per actor. I know I can change the general name in the Database, but I want one character to have a 'Mana' bar and another to have a 'Stamina' bar. I found a plugin like this for MV, but I specifically need one for MZ. Can anyone help?
VisuStella Skill and States Core you can replace your actor gauges with different gauges using notetags.
Hi everyone, I'm looking for an RPG Maker MZ plugin that allows me to change the MP bar's name and color per actor. I know I can change the general name in the Database, but I want one character to have a 'Mana' bar and another to have a 'Stamina' bar. I found a plugin like this for MV, but I specifically need one for MZ. Can anyone help?

I achieved basically the same thing through a combo of VS Core, VS Skills/States Core, and Hakuen Custom Parameters. Are you already using any other plugins that might conflict with any of those?

EDIT: OMGosh, @rpgLord69 is more spot on than I am. If the character(s) you're replacing MP for won't need to use MP for anything whatsoever, you can actually just use Skill/States Core to alias the MP bar entirely. Derp. My way will totally overcomplicate it lol but I can show you how to do the aliasing part
VisuStella Skill and States Core you can replace your actor gauges with different gauges using notetags.
I tested the command to rename the gauge, but it had no effect. The best I could do was make the bar disappear.
I achieved basically the same thing through a combo of VS Core, VS Skills/States Core, and Hakuen Custom Parameters. Are you already using any other plugins that might conflict with any of those?

EDIT: OMGosh, @rpgLord69 is more spot on than I am. If the character(s) you're replacing MP for won't need to use MP for anything whatsoever, you can actually just use Skill/States Core to alias the MP bar entirely. Derp. My way will totally overcomplicate it lol but I can show you how to do the aliasing part
oh yeah, show me please
oh yeah, show me please
Sure thing!

So go into the plugin parameters of Skill States Core, click Skill Cost Types, and copy the existing entry for MP and paste it at the bottom of the list. Click into it and rename it whatever you want (I'll assume Stamina).

In JS: Draw Gauge, I'd make the following changes:
Spoiler: JS: Draw Gauge
Code:
// Declare Settings
const color1 = ColorManager.textColor(x);
const color2 = ColorManager.textColor(y);
const label = "SP";

// Declare Variables
const sprite = this;
const settings = sprite._costSettings;
const bitmap = sprite.bitmap;
const user = sprite._battler;
const currentValue = sprite.currentDisplayedValue();
const bitmapWidth = sprite.bitmapWidth();
const bitmapHeight = sprite.textHeight ? sprite.textHeight() : sprite.bitmapHeight();
const gaugeHeight = sprite.gaugeHeight();

// Draw Gauge
const gx = 0;
const gy = bitmapHeight - gaugeHeight;
const gw = bitmapWidth - gx;
const gh = gaugeHeight;
this.drawFullGauge(color1, color2, gx, gy, gw, gh);

// Draw Label
const lx = 4;
const ly = 0;
const lw = bitmapWidth;
const lh = bitmapHeight;
sprite.setupLabelFont();
bitmap.paintOpacity = 255;
bitmap.drawText(label, lx, ly, lw, lh, "left");

// Draw Value
const vw = bitmapWidth - 2;
const vh = bitmapHeight;
sprite.setupValueFont();
bitmap.textColor = ColorManager.mpColor(user);
bitmap.drawText(currentValue, 0, 0, vw, vh, "right");

Again, I assumed you'd want to call it SP for Stamina Points, but you can make the label anything you want. X and Y at the top can either by colors from your window system image, or hex codes -- these determine what color your aliased gauge is going to be.

Now, in the class or actor page for the character, insert this notetag:

<Replace MP Gauge: Stamina> (or whatever you named it to)

Now, your character should I BELIEVE still use skills with MP costs as normal, but to your player it's going to look like his skills cost a different resource. If you want to change how his "SP" cost looks vs MP costs in the menu, like a different color vs MP, you can edit that in the plugin as well. LMK if you need help with that, too.
Sure thing!

So go into the plugin parameters of Skill States Core, click Skill Cost Types, and copy the existing entry for MP and paste it at the bottom of the list. Click into it and rename it whatever you want (I'll assume Stamina).

In JS: Draw Gauge, I'd make the following changes:
Spoiler: JS: Draw Gauge
Code:
// Declare Settings
const color1 = ColorManager.textColor(x);
const color2 = ColorManager.textColor(y);
const label = "SP";

// Declare Variables
const sprite = this;
const settings = sprite._costSettings;
const bitmap = sprite.bitmap;
const user = sprite._battler;
const currentValue = sprite.currentDisplayedValue();
const bitmapWidth = sprite.bitmapWidth();
const bitmapHeight = sprite.textHeight ? sprite.textHeight() : sprite.bitmapHeight();
const gaugeHeight = sprite.gaugeHeight();

// Draw Gauge
const gx = 0;
const gy = bitmapHeight - gaugeHeight;
const gw = bitmapWidth - gx;
const gh = gaugeHeight;
this.drawFullGauge(color1, color2, gx, gy, gw, gh);

// Draw Label
const lx = 4;
const ly = 0;
const lw = bitmapWidth;
const lh = bitmapHeight;
sprite.setupLabelFont();
bitmap.paintOpacity = 255;
bitmap.drawText(label, lx, ly, lw, lh, "left");

// Draw Value
const vw = bitmapWidth - 2;
const vh = bitmapHeight;
sprite.setupValueFont();
bitmap.textColor = ColorManager.mpColor(user);
bitmap.drawText(currentValue, 0, 0, vw, vh, "right");

Again, I assumed you'd want to call it SP for Stamina Points, but you can make the label anything you want. X and Y at the top can either by colors from your window system image, or hex codes -- these determine what color your aliased gauge is going to be.

Now, in the class or actor page for the character, insert this notetag:

<Replace MP Gauge: Stamina> (or whatever you named it to)

Now, your character should I BELIEVE still use skills with MP costs as normal, but to your player it's going to look like his skills cost a different resource. If you want to change how his "SP" cost looks vs MP costs in the menu, like a different color vs MP, you can edit that in the plugin as well. LMK if you need help with that, too.
It worked! I DID IT!!! 😀
Thank you so much!
I still need to adjust somethings about the text color, but is still working! I'll get it soon.

EDIT: okay okay, can you make me a exemple how to let the font green? I already tried, but or some error appears or font just turn white
It worked! I DID IT!!! 😀
Thank you so much!
I still need to adjust somethings about the text color, but is still working! I'll get it soon.

EDIT: okay okay, can you make me a exemple how to let the font green? I already tried, but or some error appears or font just turn white
I was thinking earlier, and instead of fiddling with the plugin parameters for your cost color (i think that’s the color you wanna change!)it may be easier to use the <Custom Cost Text> note tag.

So say you want an ability to cost 14 Stamina, put 14 in the MP cost in the editor, and within the notetags I think you’d put

<Custom Cost Text>
\C[x]14
</Custom Cost Text>

where x is the number of the color in your window system img (but i think you may can use hex codes too?)

Original thread: https://forums.rpgmakerweb.com/threads/custom-mp-bar.181961/