Changing the HP, MP and TP color in Yanfly's battle engine

How do I change the colors of the health, mana and technical bars in Yanfly's Battle Engine?
This would change bar colors displayed everywhere - in menu, in battle etc.

class Window_Base < Window def hp_gauge_color1; text_color(23); end; # HP gauge 1 def hp_gauge_color2; text_color(27); end; # HP gauge 2 def mp_gauge_color1; text_color(13); end; # MP gauge 1 def mp_gauge_color2; text_color(26); end; # MP gauge 2 def tp_gauge_color1; text_color(16); end; # TP gauge 1 def tp_gauge_color2; text_color(7); end; # TP gauge 2endChange numbers in text_colors to colors from index.

paste that snippet in your script editor.
Are the colours defined in the script? Normally you'd just export and edit the Windowskin image.


If that doesn't work, post a link to the script so we can take a look at it (do not copy and paste the script into this thread)
Rikifive's script works but I still don't understand the order of the colors. Like which one in the system window image is 1? And from that point on which one is 2?
Look at the windowskin (and in the help file, where it's explained). The first colour is 0, second is 1, etc. text_color(7) will be the colour of the 8th block - the one on the far right, in the top row.
Alright, thank you.
I did something like this some time ago to help me out, perhaps it will be useful for you as well. =)

It's the default color index.

O7xJYY2.png
thank you very much Rikifive.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-hp-mp-and-tp-color-in-yanflys-battle-engine.43219/