MZ Visustella Skills/States Core alternative for hiding MP or TP or both per actor

Hey all,

So I'm a bit tired of the Visustella stuff. I've only used the battle core and the skills/states core out of necessity for a few functions they offer. Looks like I can find a great replacement for most things here which is AWESOME. However I'm looking for a plugin that will use notetags, preferably to show or hide or swap the MP and TP bars per actor, as I have some that only use one or the other, and some that only have HP. Swapping would mean that if the MP bar is gone, I can bump the TP bar up to where the MP bar was originally.

Unfortunately I've already built a bunch of my coding around that specific functionality from Visustella, so figuring out how to do it another way would be a pain.

So if anyone knows of a plugin that does the same, I'd love to know about it! Thanks!
Figured it out! This is what I've got and it works as it should! I didn't include checking if the global TP option was enabled because in my case it is and I won't be disabling it. TP will show if you make a character's MP 0. Edit as you like.

I also use the notetag <noTP:true> in desired classes to exclude TP being shown as well. In this case, all characters have HP shown, but a character has either MP or TP or none at all, only HP.

Code:
Window_StatusBase.prototype.placeBasicGauges = function(actor, x, y) {
    const gaugeXpos = x;
    const gaugeYpos = y;
    this.placeGauge(actor, "hp", gaugeXpos, y);
    if (actor.mmp > 0) {
        this.placeGauge(actor, "mp", gaugeXpos, gaugeYpos + this.gaugeLineHeight());
    } else if (actor.currentClass().meta.noTP == 'true'){
        return null;
    } else {
        this.placeGauge(actor, "tp", gaugeXpos, gaugeYpos + this.gaugeLineHeight());
    }
    /*if ($dataSystem.optDisplayTp) {
        this.placeGauge(actor, "tp", gaugeXpos, gaugeYpos + this.gaugeLineHeight() * 2);
    }*/
};
This thread is closed due to being indicated as solved. Report the next one so it’s easier to find~ If you need this one reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skills-states-core-alternative-for-hiding-mp-or-tp-or-both-per-actor.176066/