Yeah so as I said in the title lol. I'm trying to make an "emotional" damage bar, where you gotta convince or hype up your enemies enough to defeat them. Enemies can do it too, and I'm trying to make it so you need to be hyped up enough (e.g. have enough MP) to use powerful skills, but not so much you pass out. This is why I'm trying to do it with MP instead of TP.
I'm testing my idea with
this plugin by Moogle, and I changed the script so in theory you'd die at your max MP instead of at 0:
Code:
Moogle_X.DieZeroMp.Game_BattlerBase_refresh =
Game_BattlerBase.prototype.refresh;
Game_BattlerBase.prototype.refresh = function() {
Moogle_X.DieZeroMp.Game_BattlerBase_refresh.call(this);
if (this._mp === this._mmp && this.canDieAtZeroMp()) {
this.addState(this.deathStateId());
}
};
The problem is that for some reason, it simply doesn't work lol. The plugin runs when using other variables (like current MP or HP) so I dunno why it doesn't run when actor/enemy reaches max MP. Should I just use another plugin or maybe there's some way to do it just with reg. eventing? I'm very new to JS lol, so sorry if it turns out I'm doing something dumb . Thanks for any possible help!!