Trying to end battle when MP is full - how to set MP at 0 automatically?
BMM Archive · July 15, 2026
Original Source
- Original title: Trying to end battle when MP is full - how to set MP at 0 automatically?
- Original author: Oroworo
- Original date: January 17, 2026
- Source thread: https://forums.rpgmakerweb.com/threads/trying-to-end-battle-when-mp-is-full-how-to-set-mp-at-0-automatically.182007/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
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...
Archived First Post
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:
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!!
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...