Save-Point
Custom Text Command Script - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Custom Text Command Script (/thread-2749.html)



Custom Text Command Script - RPG Advocate - 03-03-2008

Custom Text Command Script
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script modifies the Window_Message class to allow for more text commands to be used in messages. This is a list of all the text commands supported by this script. To use the script, simply overwrite the "Window_Message" class with the one provided below.

\a[n] : Automatically closes the message box after n frames.
\b: Banner mode. The text is centered both horizontally and vertically within the window. Can't be used with other tags and works with only one line of text.
\c[n] Changes to one of the eight pre-defined colors. Use \d or \c[0] to change back to the default color.
\d: Returns the font, font size, font color, and line height to default.
\f[n] : Changes the font to font n in a set of pre-defined fonts. Use \d or \f[x], where x is the number of the default font, to return to the default.
\g : Shows a window showing how much money you have.
\h[n] : Changes the line height to n. Useful if you want to show very large text without it clipping vertically. Use \d or \h[32] to return the line height to default.
\i[n] : Shows the icon and item name of the item with ID n
\j[n] : Puts n pixels of whitespace at the current position within the message. Useful if you want precise spacing rather than relying on the font's space length.
\k[n] : Shows the icon and skill name of the skill with ID n.
\m[n] : Shows the icon and armor name of the armor with ID n.
\n[n] : Shows the name of the hero with ID n.
\o[n] : The alpha of the window text is n for this message.
\r: Right-justifies the text on this line. Must be the first thing in the line. \s[n] : Changes the font size to n pixels high.
\v[n] : Displays the value of the variable with ID n.
\w[n] : Shows the icon and weapon name of the weapon with ID n.
\x: Centers the text on this line. Must be the first thing in the line.
\\ : Prints the "\" character.

With the release version, this script has a bug when using the letter "j" with some of these custom text commands. You need to download the update to RGSS100J.dll in order to remedy this problem.


Demo
>Click<


Script
Custom Text Command Script