Saving Text Window Color

My project sometimes changes the tint of the Window Color to signify a change in area or the equipment they're using to display a UI. Whenever the player returns back to normalcy, the Window Color is set back to its base settings.

If possible, I'd like to know if there's a way to lower the risk of accidentally leaving the Window Color a different tint than what it's expected to be if the player ends up in odd situations.

For example, let's say the base tint of the window is 100, 100, 100. When accessing a tablet, it changes to 100, 100, 200. If the player was in a desert area, the base tint would change to 150, 50, 50, and the problem would come from them accessing the tablet and returning back to the base setting, resetting it back to 100, 100, 100.

It's pretty similar to the Save Screen Tint plugin, except for the Window color.
How are you changing the window color currently? as in what method/s are you using.

Without knowing the full details i would suggest having like a variable that is used to check the type of map you are in. Then you would change this variable when transfering to another type of map.

I'm not sure what this "tablet" is, is it like a evented menu or something? you could have another variable to keep track of that.

Then when you want to change the window color you could call a common event which has a list organized by the priority of the cases you want to change the window color.
Currently, it's only being manually changed via the default Change Window Color event command. And yes, it is akin to an evented menu.

As for that concept, that's not a bad idea! It seems like I would have to keep track of each case for the variable for every type of Window Color it could possibly change to however, but it's not that complicated to do as the count won't be that high.

This all is only for convenience's sake, so I'll resort to that while there exists no other better method.

Original thread: https://forums.rpgmakerweb.com/threads/saving-text-window-color.174162/