By default, RPG Maker uses the file called “Window” stored in the Graphics/System folder, and only supports one windowskin throughout the game.
This script allows you to change window skins dynamically during the game using script calls. For example, you can change window skins depending on the character that’s currently speaking, or to reflect the player’s current alignment.
Here’s a video of windowskin changing in action
Script: download here
In the script editor, place this script below Materials and above Main
Place all windowskins in the Graphics/System folder.
To change windowskins, make a script call
Where the NAME is the name of the windowskin that you want to change to.
Suppose you have a windowskin called
To use this window skin, make the script call
Note the quotes.
First, window skin affects the look and feel of the window including the font colours. This means that if you change the skin while a window is open, the fonts do not automatically change because the bitmap has already been created. Instead, I call the
refresh method which is defined in most windows by default. If you are using a window that does not use a
refresh method to redraw the contents, then your fonts will not change automatically.
You can address that by moving all of the drawing methods into a
refresh method. You may need to define the method yourself.
Second, Some scripts assume the window skin is hardcoded. If you find that your game does not load the correct windowskin, look for code like this
and change it to something like this