More Escape Codes
2015.10.21
by Shaz
Introduction
This plugin allows additional escape codes to be used in message boxes. The escape codes are configurable, in an effort to provide compatibility with other scripts that add their own new escape codes.
How to use
Add to your plugins folder (file name should be MoreEscapeCodes.js).
If you want to use faces for message boxes rather than manually choosing a face graphic, enter the escape code for the face selection. Default is f. Then in your message box, add \f[1, 2] where 1 is the actor id from the actor's tab, and 2 is the index in the face graphic (remember the top left is index 0 in the faceset image).
You could use this when you allow the player to choose an actor graphic, or choose a gender or class and you use the Change Actor Graphic command to assign a graphic (including face) to that actor.
You can also use the code multiple times in a single text box to make your actor change expressions. For example:
\f[1,2]blah blah blah
\f[1,5]blah blah blah
will show the face at index 2, show the rest of the text on that line, then change the face to the one at index 5 and show the remaining text.
If you want to use actor nicknames in message boxes, enter the escape code for the nickname. Default is h (for handle, as n is already used by the default scripts for name). Then in your message box, add \h[1] to show actor 1's nickname.
Plugin
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
2015.10.21
by Shaz
Introduction
This plugin allows additional escape codes to be used in message boxes. The escape codes are configurable, in an effort to provide compatibility with other scripts that add their own new escape codes.
How to use
Add to your plugins folder (file name should be MoreEscapeCodes.js).
If you want to use faces for message boxes rather than manually choosing a face graphic, enter the escape code for the face selection. Default is f. Then in your message box, add \f[1, 2] where 1 is the actor id from the actor's tab, and 2 is the index in the face graphic (remember the top left is index 0 in the faceset image).
You could use this when you allow the player to choose an actor graphic, or choose a gender or class and you use the Change Actor Graphic command to assign a graphic (including face) to that actor.
You can also use the code multiple times in a single text box to make your actor change expressions. For example:
\f[1,2]blah blah blah
\f[1,5]blah blah blah
will show the face at index 2, show the rest of the text on that line, then change the face to the one at index 5 and show the remaining text.
If you want to use actor nicknames in message boxes, enter the escape code for the nickname. Default is h (for handle, as n is already used by the default scripts for name). Then in your message box, add \h[1] to show actor 1's nickname.
Plugin
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
Last edited by a moderator: