okay
🙂 Just had to ask
😉
Can you provide the values for the variable at which you want to change the window colour, and the tone to set it to for each (tone needs to be red, green, blue, grey values).
You'll need to be careful to make sure the text can be clearly seen on each one. Text will be in the colours of the grid in the lower right of the windowskin image.
If you want to continue working on it yourself, I think Window_Base.update_tone would be the method to change - instead of getting the tone from $game_system.window_tone, use if/else, case, or an array to determine what the tone should be (or a calculation).
Something like this works:
Code:
class Window_Base < Window #-------------------------------------------------------------------------- # * Update Tone #-------------------------------------------------------------------------- def update_tone tone = Tone.new(0, 0, 0, 0) rep = $game_variables[15].between?(75, 125) ? $game_variables[15] : 100 tone.red = (100 - rep) * 5 if rep < 100 tone.blue = (rep - 100) * 5 if rep > 100 self.tone.set(tone) endend
Will make the window red for a low rep (75), black for neutral (100) and blue for good (125). I don't think the title window is quite right (seems a little more red than it should). That's based on a range of 75-125 for rep (you put -75 in an earlier post, but that would not make 'neutral' 100, so I figured it was a typo), and either red or blue will be 125 at the extremes. You'd have to adjust the formulae for tone.red and tone.blue if you wanted the colours slightly different. And of course, use the appropriate variable number instead of 15.