None of my characters use TP and only one of them uses MP. I want to remove them from the menu. I keep seeing things saying to get skill core from yanfly and to add <Swap Gauge 2: null> / <Swap Gauge 3: null> note tags to my characters. They don't work though, what should I do?
MV How do I remove TP and MP bars?
JS Plugin RequestsIn the Database, under "System" find "Options" and uncheck the "Show TP" bit.
Can't help with MP but if nobody uses TP, this disables it globally.
Hope that helps.
Can't help with MP but if nobody uses TP, this disables it globally.
Hope that helps.
This actually doesn't help, this disables it in battle, not outside of battle.
Oops.
Sorry, I kind of thought it would do both. Hopefully someone better than I am at this will come along soon with an answer that actually works.
Good luck.
You can remove it by editing the windows.js in your project files. If you can’t find the code to edit, I can help you later tonight.
ok that'd be cool. I've heard solutions like that, but does that not disable it for all characters? I specifically have only 1 character that uses MP, so I'm trying to see if I can disable it for all but one character.
This should do the trick.
this is exactly what I was doing, but I found out I was putting the tags in the actor notes and not the class notes like I was supposed to. Wish it had specified.
Moved to: Plugin Requests
You could create a new .js file in the plugin folder, copy-past this inside and load it as a plugin:
For MV:
Scene_Menu uses Window_MenuStatus which in turn uses the inherited function drawActorSimpleStatus from Window_Base to display actor status on the menu.
This code will override Window_MenuStatus's copy of drawActorSimpleStatus, allowing us to comment out (hide) any part we don't want with an "//". Also if you comment something out and end up with an empty space, you can adjust the multiplier on lineHeight to fill the gap.
(For anyone who reads this) Notice that the script above will only work with MV as things are a bit different with MZ.
For MZ:
Notice that TP can be hidden from System settings, however I've here commented it out entirely.
For MV:
JavaScript:
Window_MenuStatus.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
var lineHeight = this.lineHeight();
var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
//this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};
Scene_Menu uses Window_MenuStatus which in turn uses the inherited function drawActorSimpleStatus from Window_Base to display actor status on the menu.
This code will override Window_MenuStatus's copy of drawActorSimpleStatus, allowing us to comment out (hide) any part we don't want with an "//". Also if you comment something out and end up with an empty space, you can adjust the multiplier on lineHeight to fill the gap.
(For anyone who reads this) Notice that the script above will only work with MV as things are a bit different with MZ.
For MZ:
JavaScript:
Window_MenuStatus.prototype.drawActorSimpleStatus = function(actor, x, y) {
const lineHeight = this.lineHeight();
const x2 = x + 180;
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
this.placeBasicGauges(actor, x2, y + lineHeight);
};
Window_MenuStatus.prototype.placeBasicGauges = function(actor, x, y) {
this.placeGauge(actor, "hp", x, y);
//this.placeGauge(actor, "mp", x, y + this.gaugeLineHeight());
//if ($dataSystem.optDisplayTp) {
// this.placeGauge(actor, "tp", x, y + this.gaugeLineHeight() * 2);
//}
};
Notice that TP can be hidden from System settings, however I've here commented it out entirely.
It doesn't work for me at all, the gauges don't disappear anyway...
Do you happen to have any custom menu plugins? They may have their own functions for drawing the TP/MP. You'd have to edit them out for battle as well as menus.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-remove-tp-and-mp-bars.136318/