In my game mana is set to zero at the beginning of every encounter so there is no reason to have the Mana bar shown in the Menus. Is there a simple way to remove/hide the Mana bar in the menus but still have it in encounters?
Remove MP from Menu
JS Plugin RequestsBump
Im on the phone right now but I can tell you find this in Window_Menu object in rpg_windows.js file, find
this.drawMp or something like that and erase it. In the morning when i get back from work i provide you more details
this.drawMp or something like that and erase it. In the morning when i get back from work i provide you more details
You are better off writing a plugin that overwrites that method. Otherwise, if you get an update to MV and you update your project, your change will be lost.
Actually, the drawMP is used by both the menus and the battles, so clearing it completely will cause it to not show in battles either. I'm assuming you do still want it to show in battles, as you said they START each battle with 0MP, not that you don't use it at all?
In that case, you'd need to alias the function, do a check to see if you're in battle, and if you are, call the aliased function.
Actually, the drawMP is used by both the menus and the battles, so clearing it completely will cause it to not show in battles either. I'm assuming you do still want it to show in battles, as you said they START each battle with 0MP, not that you don't use it at all?
In that case, you'd need to alias the function, do a check to see if you're in battle, and if you are, call the aliased function.
The best way to do this would require a plugin, so I'm moving this to Plugin Requests.
@Shaz yes you are correct in the assumption that i want it to be shown in battle.
I have a mana charging combat system where you start at 0 and each basic attack
charges up your mana and decreases when using a skill.
So there is no reason to have it show in the menu.
I guess i do need a plugin to resolve this then...
I have a mana charging combat system where you start at 0 and each basic attack
charges up your mana and decreases when using a skill.
So there is no reason to have it show in the menu.
I guess i do need a plugin to resolve this then...
@D-D-D-Dan
save this as plugin and you will have no MP - https://prnt.sc/qkzxyo
Code:
Window_Base.prototype.drawActorMp = function(actor, x, y, width) {
// NOTHING!!!
};
save this as plugin and you will have no MP - https://prnt.sc/qkzxyo
Here's something along the lines of what Shaz suggested, i.e. draw only when in battle:
Haven't tested but I think that'll work. Just save as a .js file (Save As > File Type: All Files, Filename: whateverYouLike.js) and import as a plugin.
JavaScript:
(function(alias) {
Window_Base.prototype.drawActorMp = function() {
if (SceneManager._scene instanceof Scene_Battle) {
alias.apply(this, arguments);
}
};
})(Window_Base.prototype.drawActorMp);
Again, that will remove MP from battles as well, but the OP only wants it removed from the menu screen.
This! Thank you! Ill be testing to see if it breaks other stuff but it seems to be working sofar!
Great, happy RPG Making! 😂
Original thread: https://forums.rpgmakerweb.com/threads/remove-mp-from-menu.116884/