MV Yanfly SkillCore and BattleStatusWindow - Show MP/TP

Screenshot (156).png


In my game, I am attempting to implement the TP system as something that is unlocked later. Beforehand, I had full-length HP and MP bars. The TP bar would go where the blank space is in the picture above. But, I don't want the MP bar to be shortened in the meantime, before TP is unlocked.

Yanfly's SkillCore gives me notetags that allow me to show "bar 3" (in this case my TP bar) for the battle status window as "null," and then change it to show as "TP" when a certain piece of equipment is equipped (I have a special slot for this).

However, not every character will get the piece of equipment. Only two of the four party members will, and that decision is eventually up to the player. But in the meantime, trying to hide "bar 3" means my HP and MP display like the above photo in battle.

Is anyone proficient with these two plugins and knows how I could make the MP bar stay at full length until the TP bar is activated on a character-by-character basis?
To append onto this and bump it, I am also using most of Yanfly's base plugins, including Core Engine. If any of those may have a hand in fixing this, I can send my entire list of plugins on here.
Try this:
Code:
Window_BattleStatus.prototype.getGaugesDrawn = function(actor) {
    var value = 2;
    if ($dataSystem.optDisplayTp && !["NOTHING", "NULL"].includes(actor.gauge2()) && !["NOTHING", "NULL"].includes(actor.gauge3())) value += 1;
    return value;
};

That should make the lower gauge be full length if either gauge 2 or 3 is currently set to be blank for that specific actor.
Try this:
Code:
Window_BattleStatus.prototype.getGaugesDrawn = function(actor) {
    var value = 2;
    if ($dataSystem.optDisplayTp && !["NOTHING", "NULL"].includes(actor.gauge2()) && !["NOTHING", "NULL"].includes(actor.gauge3())) value += 1;
    return value;
};

That should make the lower gauge be full length if either gauge 2 or 3 is currently set to be blank for that specific actor.
Works exactly as wanted, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skillcore-and-battlestatuswindow-show-mp-tp.163151/