Yanfly Extension Text Gauge Swap

Essentially what I would like is a script that acts as an add on for Yanfly's skill core that adds a gauge swap which replaces MP with text based on the target's state.


Something like this, in which the text "Fire Stance" could be replaced with something else based on Harold's current state. 


kf3xafy.png



Thank you in advance, and if you need any more information please let me know.
I'm looking at it right now but I'm not entirely sure which area of the plugin updates the gauge with damage and mp/tp usage. If I were to guess, that's the place to be. Then when it's updating, if any of these states are active the text overrides the mp gauge. Would that possible be in the battle core?
OK I've figured out a solution


I deleted the Window_Base.prototype.drawActorTP function in Yanfly's core engine, and added the following snippet into Yanfly's Enhanced TP. Now, instead of writing the gauges name as "TP", it writes the name as the name of the TP mode.

Code:
Window_Base.prototype.drawActorTp = function(actor, x, y, width) {
    width = width || 96;
	var color1 = this.tpGaugeColor1();
    var color2 = this.tpGaugeColor2();
    this.drawGauge(x, y, width, actor.tpRate(), color1, color2);
    this.changeTextColor(this.systemColor());
    this.drawText(actor.tpMode().name
	//TextManager.tpA
	, x, y, 44);
    this.changeTextColor(this.tpColor(actor));
    this.drawText(Yanfly.Util.toGroup(actor.tp), x + width - 64, y, 64,
      'right');
};
OK I've figured out a solution


I deleted the Window_Base.prototype.drawActorTP function in Yanfly's core engine, and added the following snippet into Yanfly's Enhanced TP. Now, instead of writing the gauges name as "TP", it writes the name as the name of the TP mode.



Window_Base.prototype.drawActorTp = function(actor, x, y, width) {
width = width || 96;
var color1 = this.tpGaugeColor1();
var color2 = this.tpGaugeColor2();
this.drawGauge(x, y, width, actor.tpRate(), color1, color2);
this.changeTextColor(this.systemColor());
this.drawText(actor.tpMode().name
//TextManager.tpA
, x, y, 44);
this.changeTextColor(this.tpColor(actor));
this.drawText(Yanfly.Util.toGroup(actor.tp), x + width - 64, y, 64,
'right');
};



So, you've tested it pretty well and it does just what you were wanting then?
Yeah

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-extension-text-gauge-swap.61991/