- Burned -

How do i change the MP starting numbers to 0

Trying to do the rage type mp thing

I was able to make a skill generate mp and other skills to cost mp, but i want my mp to start at 0 so i can build up the mp with a skill then spend the mp using other skills that cost mp
<After Battle Recover MP: -actor.mp>
<Recover All HP: 0>

Edit: If it helps, here's a rage template I've used in a few games. Feel free to tweak the numbers/etc:

<MP Gauge Color: 10, 18>
<MP Cost Color: 18>
<MP Name: RP>
<MP Full Name: Rage>
<Recover All MP: 0.2>
<Offensive MP Gain: 1 + 100 * damage / actor.mhp>
<Defensive MP Gain: 1 + 50 * damage / actor.mhp>
<After Battle Recover MP: actor.setMp(20); 0>
<Hide MP Regen>

Note that this doesn't fully reduce MP to 0, but instead takes it down to 20% because I wanted the player to have a bit to start with.
<After Battle Recover MP: -actor.mp>
<Recover All HP: 0>

doesn't seem to work, i put it in the class notes

Ok it seems to work if the actor starts out as the class with that feature (warrior) but on the character select screen if i choose another class, the feature will still be there.

Or if the initial class is not a warrior and i select warrior as the class on the class select screen then the feature will not show
<After Battle Recover MP: -actor.mp>
<Recover All HP: 0>

doesn't seem to work, i put it in the class notes

Ok it seems to work if the actor starts out as the class with that feature (warrior) but on the character select screen if i choose another class, the feature will still be there.

Or if the initial class is not a warrior and i select warrior as the class on the class select screen then the feature will not show
If you change classes, it should drop to 0 after executing a Recover All or after a battle. It won't automatically drop to 0 upon changing classes though.
also changing this
const color1 = ColorManager.mpGaugeColor1();

const color2 = ColorManager.mpGaugeColor2();

const label = TextManager.mpA;

to

const color1 = sprite._color1;

const color2 = sprite._color2;

const label = user.mpA;

gives me this error
View attachment 261364
I'm a year late, but I fixed this by moving the declare settings under the declare variables in VisuStella SkillsStatesCore.
To be exact, I went to: VisuStella SkillsStatesCore -> Skil Cost Types -> Find the skill cost type "MP" and edit it -> JS: Draw Gauge (at the bottom).

This is the JS code I have:
Spoiler: JS: Draw Gauge
JavaScript:
// 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();

// Declare Settings
const color1 = sprite._color1;
const color2 = sprite._color2;
const label = user.mpA;

// 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");

Original thread: https://forums.rpgmakerweb.com/threads/burned.125894/