Problem with MP/TP bar during battles. Using Yanfly's plugins.

Hi guys! Need a bit of the help with clearing MP bar for a specific character in RPGMaker MV. I tried out Yanfly's SkillCore plugin in the class section: swapped MP (original bar 2) for TP, then swapped real TP (original bar 3) for null. This accomplished half of the goal - now my special characters don't have MP during exploration and inside menu tabs.

The problem is: after swaps, there is an empty gap under character's portrait during battles, right there the classic TP bar was. The original view was HP bar above for the full length and MP and TP bars directly below it with half the length. I want to increase current TP bar's length to the full - like the HP bar.

Sadly, I can't find a way to do it. Tried updating all the plugins. Looked through my plugins and couldn't find an instruction/tag to ignore MP for a specific character. Tried to lower total MP to 0 - the bar still persists. Tried switching both 2nd and 3rd bars to TP - this spawned two separate TP bars on the row. I'm lost at the moment... Any ideas?

My full list of plugins: YEP_CoreEngine, YEP_BattleEngineCore, YEP_BattleStatusWindow, YEP_BuffsStatesCore, YEP_SkillCore, YEP_EquipCore, YEP_SaveCore and the main menu manager.

Thank you!
Moved to: Javascript/Plugin Support
This is the best idea I can give you: Learn some javascript.
Inside Battle status menu, replace the original function with this one:

Code:
Window_BattleStatus.prototype.drawGaugeArea = function(rect, actor) {
    this.contents.fontSize = Yanfly.Param.BSWParamFontSize;
    this._enableYBuffer = true;
    var wy = rect.y + rect.height - this.lineHeight();
    var wymod = (Imported.YEP_CoreEngine) ? Yanfly.Param.GaugeHeight : 6;
    var wymod = Math.max(16, wymod);
    this.drawActorHp(actor, rect.x, wy - wymod, rect.width);
    if (this.getGaugesDrawn(actor) <= 2) {
      this.drawActorMp(actor, rect.x, wy, rect.width);
    } else {
      var ww = rect.width;
      this.drawActorTp(actor, rect.x, wy, ww);
    }
    this._enableYBuffer = false;
};

Not sure if it is the exact medicine, because I don't know how much plugin commands influence the meter placement. But if the above doesn't work properly, then maybe this will.

Code:
Window_BattleStatus.prototype.drawGaugeArea = function(rect, actor) {
    this.contents.fontSize = Yanfly.Param.BSWParamFontSize;
    this._enableYBuffer = true;
    var wy = rect.y + rect.height - this.lineHeight();
    var wymod = (Imported.YEP_CoreEngine) ? Yanfly.Param.GaugeHeight : 6;
    var wymod = Math.max(16, wymod);
    this.drawActorHp(actor, rect.x, wy - wymod, rect.width);
    if (this.getGaugesDrawn(actor) <= 2) {
      this.drawActorMp(actor, rect.x, wy, rect.width);
    } else {
      var ww = rect.width;
      this.drawActorTp(actor, rect.x + ww/2, wy, ww);
    }
    this._enableYBuffer = false;
};
There is a plugin extension by DreamX you can use to add more features and modification to Yanfly's Battle Status Window.

https://forums.rpgmakerweb.com/index.php?threads/yep-battle-status-window-extension.65531/
This is the best idea I can give you: Learn some javascript.
Inside Battle status menu, replace the original function with this one:

Thank you! You almost did it! I tried both variants - the first one completely erases MP bar and increases the TB bar's length to the full for all characters. That's like 99% of what I wanted. Can we somehow limit the effect of this code to a specific character? Like with an id or I can switch max MP to 0 to filter the rest out.

The second option repeated the same effect from swapping bars around - MP is gone but TP holds only half of the maximum length.

There is a plugin extension by DreamX you can use to add more features and modification to Yanfly's Battle Status Window.

https://forums.rpgmakerweb.com/index.php?threads/yep-battle-status-window-extension.65531/

Thanks fot the tip. Tried to fiddle with it but only got the same result as before for now - MP bar is gone but TP holds only half of the maximum length. Still checking the options tho.
Code:
Window_BattleStatus.prototype.drawGaugeArea = function(rect, actor) {
    this.contents.fontSize = Yanfly.Param.BSWParamFontSize;
    this._enableYBuffer = true;
    var wy = rect.y + rect.height - this.lineHeight();
    var wymod = (Imported.YEP_CoreEngine) ? Yanfly.Param.GaugeHeight : 6;
    var wymod = Math.max(16, wymod);
    this.drawActorHp(actor, rect.x, wy - wymod, rect.width);
    if (this.getGaugesDrawn(actor) <= 2) {
      this.drawActorMp(actor, rect.x, wy, rect.width);
    } else {
if (actor.mmp == 0){
this.drawActorTp (actor, rect.x, wy, rect.width);
}else {
      var ww = rect.width / 2;
      this.drawActorMp(actor, rect.x, wy, ww);
      this.drawActorTp(actor, rect.x + ww, wy, ww);
}
    }
    this._enableYBuffer = false;
};
Limits based on max mana being 0. As I said, the best is to learn javascript 😛 since it took me about 2 minutes to do and you had to wait for some time for your answer 🙂
Code:
Window_BattleStatus.prototype.drawGaugeArea = function(rect, actor) {
    this.contents.fontSize = Yanfly.Param.BSWParamFontSize;
    this._enableYBuffer = true;
    var wy = rect.y + rect.height - this.lineHeight();
    var wymod = (Imported.YEP_CoreEngine) ? Yanfly.Param.GaugeHeight : 6;
    var wymod = Math.max(16, wymod);
    this.drawActorHp(actor, rect.x, wy - wymod, rect.width);
    if (this.getGaugesDrawn(actor) <= 2) {
      this.drawActorMp(actor, rect.x, wy, rect.width);
    } else {
if (actor.mmp == 0){
this.drawActorTp (actor, rect.x, wy, rect.width);
}else {
      var ww = rect.width / 2;
      this.drawActorMp(actor, rect.x, wy, ww);
      this.drawActorTp(actor, rect.x + ww, wy, ww);
}
    }
    this._enableYBuffer = false;
};
Limits based on max mana being 0. As I said, the best is to learn javascript 😛 since it took me about 2 minutes to do and you had to wait for some time for your answer 🙂

Bullseye! Thank you very much, worked like a charm. Yeah, you are right about learning the code. Thing is - it's a long way to learn and I picked up RPGMaker as an easy-to-start way to see if I can even make anything interesting. In the long run, your suggestion is 100% right.
I learned javascript in 7 days, the rest is months of experience. But you are right, it's a long way to go.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-mp-tp-bar-during-battles-using-yanflys-plugins.87618/