Windowskin Changer

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

windowskinChanger1

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

Download

Script: download here

Installation

In the script editor, place this script below Materials and above Main

Usage

Place all windowskins in the Graphics/System folder.

To change windowskins, make a script call

set_windowskin(NAME)

Where the NAME is the name of the windowskin that you want to change to.

Example

Suppose you have a windowskin called

grassy

To use this window skin, make the script call

set_windowskin("grassy")

Note the quotes.

Compatibility

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

Cache.system("Window")

and change it to something like this

Cache.system($game_system.windowskin)
Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

11 Responses

  1. Anonymous says:

    Hime, what size does the custom windowskin need to be?

  2. Arsist says:

    When I try using this script, I get the error:

    Script ‘Game_Interpreter’ line 1411: ArgumentError occurred.

    wrong number of arguments (0 for 1)

    I believe the error occurs at the

    $game_system.windowskin = name

    part of

    class Game_Interpreter

    def set_windowskin(name)
    $game_system.windowskin = name
    end
    end

    Would you happen to know why this is?

  3. Anonymous says:

    get error in catch line 88 with this or any other window changer. Using Many of yanfly scripts but not his core system.

    • Hime says:

      You will need to determine whether it is a compatibility issue with another plugin.
      I’m not sure why “line 88” would crash with “any other window changer”, but if that is true, then it probably isn’t this plugin.

  4. Jackie says:

    I don’t have the fucking graphics, where do I get them???

  5. Anonymous says:

    Thanks,it’s very useful for the project I’m making

  6. Anonymous says:

    Is it compatible with Yanfly’s message system?

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax