MV TSR_TextColorAddon plugin support / Temporary Skill Type text color change

Hello, RPGM community; I am currently utilizing the "TSR_TextColorAddon" plugin (link below). While using the said plugin, I can change the text color of "skill type 8" permanently, but I cannot achieve my desired effect:

I want the "skill type 8" field to change to text color #27 when an actor's TP = 100 and then return to default text color #0 when their TP is less than 100.

Also, I am utilizing several of Yanfly's plugins (including YEP_SkillCore & EnhancedTP to name a few) in case there is an alternate method I am unaware of.

Unfortunately, I lack the advanced scripting knowledge to reach the desired outcome. I have been beating my head against a wall seeking a solution. Community assistance is appreciated. 🙂

While I know that plugin, the effect you want could be achieved, not
sure if it was default, but TSR might a way if you asked him on the forum 🙂
if @TSR have the time and is busy, you probably need to add a function
or it could be doable with lunatic code that draws the skills.
Hello @Guy_Fightmaster,
this is something that has to be coded in the relevant window object (not necessarily in my plugin).
I can show you how, but you need to tell in what window/scene you want that; skill window in the main menu or in battle, or both?
Also, you want that for skill types or skills (just to be sure: Magic is a skill type and fire spell is a skill)?
Maybe showing us a mockup of what you want might help.

Regards.
Hello @Guy_Fightmaster,
this is something that has to be coded in the relevant window object (not necessarily in my plugin).
I can show you how, but you need to tell in what window/scene you want that; skill window in the main menu or in battle, or both?
Also, you want that for skill types or skills (just to be sure: Magic is a skill type and fire spell is a skill)?
Maybe showing us a mockup of what you want might help.

Regards.
Awesome, thank you!

Essentially, I want the effect to occur only in battle. Specifically, when an actor's TP = 100, their skill type 8 (in the database; Adrenal skill type) text would change to text color #27, and then return to normal text color #0 if TP is less than or equal to 99. Screen-shot below.

Basically, it would be a temporary effect.
Essentially, I want the effect to occur only in battle. Specifically, when an actor's TP = 100, their skill type 8 (in the database; Adrenal skill type) text would change to text color #27, and then return to normal text color #0 if TP is less than or equal to 99. Screen-shot below.
Ok, I see...

Here, I made you a specific drawItem method for the actorCommand window:
Code:
Window_ActorCommand.prototype.drawItem = function(index) {
  var rect = this.itemRectForText(index);
  var align = this.itemTextAlign();
  this.resetTextColor();
  this.changePaintOpacity(this.isCommandEnabled(index));
  // added this part:
  if (this._actor && this._actor._tp > 99 && this._list[index].ext === 8) {
    this.changeTextColor(this.textColor(27));
  }
  //
  this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};
Basically, it check if the window has an actor assigned to it, if the actor has tp above 99 and if the command is skill type 8. If so, it change the text color to 27.

You can copy that method in any plugin (including mine). Should do what you asked.

Regards.
Ok, I see...

Here, I made you a specific drawItem method for the actorCommand window:
Code:
Window_ActorCommand.prototype.drawItem = function(index) {
  var rect = this.itemRectForText(index);
  var align = this.itemTextAlign();
  this.resetTextColor();
  this.changePaintOpacity(this.isCommandEnabled(index));
  // added this part:
  if (this._actor && this._actor._tp > 99 && this._list[index].ext === 8) {
    this.changeTextColor(this.textColor(27));
  }
  //
  this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};
Basically, it check if the window has an actor assigned to it, if the actor has tp above 99 and if the command is skill type 8. If so, it change the text color to 27.

You can copy that method in any plugin (including mine). Should do what you asked.

Regards.
SWEET!!! Thank you so much! Solved.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tsr_textcoloraddon-plugin-support-temporary-skill-type-text-color-change.153559/