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
本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/more-escape-codes.46760/