Difference between revisions of "Template:VisuMZ Message Core Text Codes"

From Yanfly.moe Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>VisuMZ Message Core Text Codes</noinclude> The following are text codes that you may use with this plugin. Some of these are original...")
 
(Choice Window-Only Hard-Coded Text Codes)
 
(40 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
---
 
---
  
<pre>
+
==== Default MZ Text Codes ====
------------------  -------------------------------------------------------
 
Text Code            Effect (Global)
 
------------------  -------------------------------------------------------
 
\V[x]                Replaced by the value of variable 'x'.
 
\N[x]                Replaced by the name of actor 'x'.
 
\P[x]                Replaced by the name of party member 'x'.
 
\C[x]                Draw the subsequent text with window skin color 'x'.
 
\I[x]                Draw icon 'x'.
 
  
\PX[x]               Moves text x position to 'x'.
+
{| class="wikitable" style="width:800px"
\PY[x]               Moves text y position to 'y'.
+
! Text Code !! Effect (Global)
 +
|-
 +
| style="padding: 10px;"| <nowiki>\V[x]</nowiki>
 +
| style="padding: 10px;"| Replaced by the value of variable 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\N[x]</nowiki>
 +
| style="padding: 10px;"| Replaced by the name of actor 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\P[x]</nowiki>
 +
| style="padding: 10px;"| Replaced by the name of party member 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\C[x]</nowiki>
 +
| style="padding: 10px;"| Draw the subsequent text with window skin color 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\I[x]</nowiki>
 +
| style="padding: 10px;"| Draw icon 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\PX[x]</nowiki>
 +
| style="padding: 10px;"| Moves text x position to 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\PY[x]</nowiki>
 +
| style="padding: 10px;"| Moves text y position to 'y'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\G</nowiki>
 +
| style="padding: 10px;"| Replaced by the currency unit.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\{</nowiki>
 +
| style="padding: 10px;"| Increase the text font size by one step.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\}</nowiki>
 +
| style="padding: 10px;"| Decrease the text font size by one step.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\FS[x]</nowiki>
 +
| style="padding: 10px;"| Changes the text font size to 'x'.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\\</nowiki>
 +
| style="padding: 10px;"| Replaced by the backslash character.
 +
|}
  
\G                  Replaced by the currency unit.
+
---
  
\{                  Increase the text font size by one step.
+
==== Default MZ Message-Only Text Codes ====
\}                  Decrease the text font size by one step.
 
\FS[x]              Changes the text font size to 'x'.
 
  
\\                   Replaced by the backslash character.
+
{| class="wikitable" style="width:800px"
</pre>
+
! Text Code !! Effect (Message Window Only)
 +
|-
 +
| style="padding: 10px;"| <nowiki>\$</nowiki>
 +
| style="padding: 10px;"| Opens the gold window.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\.</nowiki>
 +
| style="padding: 10px;"| Waits a 1/4 second.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\|</nowiki>
 +
| style="padding: 10px;"| Waits a full second.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\!</nowiki>
 +
| style="padding: 10px;"| Waits for button input.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\></nowiki>
 +
| style="padding: 10px;"| Display remaining text on same line all at once.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\<</nowiki>
 +
| style="padding: 10px;"| Cancel the effect that displays text all at once.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\^</nowiki>
 +
| style="padding: 10px;"| Do not wait for input after displaying text to move on.
 +
|}
  
 
---
 
---
  
<pre>
+
=== Message Core Hard-Coded Text Codes ===
------------------  -------------------------------------------------------
+
 
Text Code            Effect (Message Window Only)
+
[[File:MessageCoreAlignment.png|600px]]
------------------  -------------------------------------------------------
+
 
\$                  Opens the gold window.
+
The following text codes are hard-coded into VisuStella MZ Message Core's
\.                   Waits a 1/4 second.
+
code. These text codes cannot be edited through the Plugin Parameters.
\|                   Waits a full second.
 
\!                  Waits for button input.
 
\>                  Display remaining text on same line all at once.
 
\<                  Cancel the effect that displays text all at once.
 
\^                  Do not wait for input after displaying text to move on.
 
</pre>
 
  
 
---
 
---
  
=== Message Core Hard-Coded Text Codes ===
+
==== Global Hard-Coded Text Codes ====
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Effect (Global)
 +
|-
 +
| style="padding: 10px;"| <nowiki><b></nowiki>
 +
| style="padding: 10px;"| Makes subsequent text bold.
 +
|-
 +
| style="padding: 10px;"| <nowiki></b></nowiki>
 +
| style="padding: 10px;"| Removes bold from subsequent text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><i></nowiki>
 +
| style="padding: 10px;"| Makes subsequent text italic.
 +
|-
 +
| style="padding: 10px;"| <nowiki></i></nowiki>
 +
| style="padding: 10px;"| Removes italic from subsequent text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><left></nowiki>
 +
| style="padding: 10px;"| Makes subsequent text left-aligned. *Note1*
 +
|-
 +
| style="padding: 10px;"| <nowiki></left></nowiki>
 +
| style="padding: 10px;"| Removes left-alignment for subsequent text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><center></nowiki>
 +
| style="padding: 10px;"| Makes subsequent text center-aligned. *Note1*
 +
|-
 +
| style="padding: 10px;"| <nowiki></center></nowiki>
 +
| style="padding: 10px;"| Removes center-alignment for subsequent text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><right></nowiki>
 +
| style="padding: 10px;"| Makes subsequent text right-aligned. *Note1*
 +
|-
 +
| style="padding: 10px;"| <nowiki></right></nowiki>
 +
| style="padding: 10px;"| Removes right-alignment for subsequent text.
 +
|}
 +
 
 +
'''Note1:''' Use at line-start. Does not work with Word Wrap.
 +
 
 +
 
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Effect (Global)
 +
|-
 +
| style="padding: 10px;"| <nowiki><ColorLock></nowiki>
 +
| style="padding: 10px;"| Text codes can't change text color for subsequent text.
 +
|-
 +
| style="padding: 10px;"| <nowiki></ColorLock></nowiki>
 +
| style="padding: 10px;"| Removes Color Lock property.
 +
|-
 +
| style="padding: 10px;"| <nowiki><WordWrap></nowiki>
 +
| style="padding: 10px;"| Enables Word Wrap for this window. *Note2*
 +
|-
 +
| style="padding: 10px;"| <nowiki></WordWrap></nowiki>
 +
| style="padding: 10px;"| Disables Word Wrap for this window. *Note2*
 +
|-
 +
| style="padding: 10px;"| <nowiki><br></nowiki>
 +
| style="padding: 10px;"| Adds a line break. Requires Word Wrap enabled.
 +
|-
 +
| style="padding: 10px;"| <nowiki><line break></nowiki>
 +
| style="padding: 10px;"| Adds a line break. Requires Word Wrap enabled.
 +
|}
 +
 
 +
'''Note2''': <nowiki>Some windows cannot use Word Wrap such as the Choice Window.
 +
Word Wrap also cannot be used together with <left>, <center>, or <right> and
 +
will disable itself if text alignment text codes are detected.</nowiki>
 +
 
 +
 
  
The following text codes are hard-coded into VisuStella MZ Message Core's
+
{| class="wikitable" style="width:800px"
code. These text codes cannot be edited through the Plugin Parameters.
+
! Text Code !! Effect (Global)
 +
|-
 +
| style="padding: 10px;"| <nowiki>\picture<x></nowiki>
 +
| style="padding: 10px;"| Draws picture x (filename) at current text position.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\CenterPicture<x></nowiki>
 +
| style="padding: 10px;"| Draws picture x (filename) centered at the window.
 +
|}
  
 
---
 
---
  
<pre>
+
==== Message Window Only Hard-Coded Text Codes ====
------------------  -------------------------------------------------------
+
 
Text Code           Effect (Global)
+
[[File:MessageCoreAutoSize.png]]
------------------  -------------------------------------------------------
+
 
<b>                 Makes subsequent text bold.
+
{| class="wikitable" style="width:800px"
</b>                 Removes bold from subsequent text.
+
! Text Code !! Effect (Message Window Only)
<i>                 Makes subsequent text italic.
+
|-
</i>                 Removes italic from subsequent text.
+
| style="padding: 10px;"| <nowiki>\CommonEvent[x]</nowiki>
 +
| style="padding: 10px;"| Runs common event x when text code is reached.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Wait[x]</nowiki>
 +
| style="padding: 10px;"| Makes the message wait x frames before continuing.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Next Page></nowiki>
 +
| style="padding: 10px;"| Ends the current message page at this line. This is used for messages when rows are at 5 or above and the message lines don't match the amount. This is used to prevent grabbing message windows from following message events. Any lines following <Next Page> in the same message event will be ignored.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto></nowiki>
 +
| style="padding: 10px;"| Resizes message window dimensions to fit text. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Width></nowiki>
 +
| style="padding: 10px;"| Resizes message window width to fit text. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Height></nowiki>
 +
| style="padding: 10px;"| Resizes message window height to fit text. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Actor: x></nowiki>
 +
| style="padding: 10px;"| Resizes message window and positions it over actor x sprite's head. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Party: x></nowiki>
 +
| style="padding: 10px;"| Resizes message window and positions it over party member x sprite's head. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Player></nowiki>
 +
| style="padding: 10px;"| Map-Only. Resizes message window and positions it over the player sprite's head. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Event: x></nowiki>
 +
| style="padding: 10px;"| Map-Only. Resizes message window and positions it over event x sprite's head. *Note3*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Auto Enemy: x></nowiki>
 +
| style="padding: 10px;"| Battle-Only. Resizes message window and positions it over enemy x sprite's head. *Note3*
 +
|}
  
<left>              Makes subsequent text left-aligned. *Note1*
+
'''Note3:''' Upon using these text codes, the message window's settings will be
</left>              Removes left-alignment for subsequent text.
+
reset for the upcoming message. These effects do not work with Word Wrap.
<center>            Makes subsequent text center-aligned. *Note1*
 
</center>            Removes center-alignment for subsequent text.
 
<right>              Makes subsequent text right-aligned. *Note1*
 
</right>            Removes right-alignment for subsequent text.
 
  
Note1: Use at line-start. Does not work with Word Wrap.
+
---
  
<ColorLock>          Text codes can't change text color for subsequent text.
+
==== Battle-Only Hard-Coded Text Codes ====
</ColorLock>        Removes Color Lock property.
 
  
<WordWrap>           Enables Word Wrap for this window. *Note2*
+
{| class="wikitable" style="width:800px"
</WordWrap>         Disables Word Wrap for this window. *Note2*
+
! Text Code !! Effect (Battle Only)
<br>                 Adds a line break. Requires Word Wrap enabled.
+
|-
<line break>         Adds a line break. Requires Word Wrap enabled.
+
| style="padding: 10px;"| <nowiki><Current Battle Target></nowiki>
 +
| style="padding: 10px;"| Replaces text code with the current target of an action in battle.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Current Battle User></nowiki>
 +
| style="padding: 10px;"| Replaces text code with the currently active user in battle.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Current Battle Action></nowiki>
 +
| style="padding: 10px;"| Replaces text code with the current battle action's name with an icon in front.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Current Battle Action Name></nowiki>
 +
| style="padding: 10px;"| Replaces text code with the current battle action's name without an icon.
 +
|}
  
Note2: Some windows cannot use Word Wrap such as the Choice Window.
+
If there is no battle, no target, no user, or no action, then the text code
 +
will just be replaced with no text.
  
\picture<x>          Draws picture x (filename) at current text position.
+
These text codes are NOT recommended to be used inside of Help Descriptions.
\CenterPicture<x>    Draws picture x (filename) centered at the window.
+
They are best used with "Show Text" event commands.
</pre>
 
  
 
---
 
---
  
<pre>
+
==== Choice Window-Only Hard-Coded Text Codes ====
------------------   -------------------------------------------------------
+
 
Text Code           Effect (Message Window Only)
+
{| class="wikitable" style="width:800px"
------------------   -------------------------------------------------------
+
! Text Code !! Effect (Choice Window Only)
\CommonEvent[x]      Runs common event x when text code is reached.
+
|-
\Wait[x]            Makes the message wait x frames before continuing.
+
| style="padding: 10px;"| <nowiki><Show></nowiki>
 +
| style="padding: 10px;"| Choice is always shown.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Show Switch: x></nowiki>
 +
| style="padding: 10px;"| Choice shown if switch x is ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Show Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice shown if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Show All Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice shown if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Show Any Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice shown if any of x switches are ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Hide></nowiki>
 +
| style="padding: 10px;"| Choice is always hidden.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Hide Switch: x></nowiki>
 +
| style="padding: 10px;"| Choice hidden if switch x is ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Hide Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice hidden if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Hide All Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice hidden if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Hide Any Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice hidden if any of x switches are ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Enable></nowiki>
 +
| style="padding: 10px;"| Choice is always enabled.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Enable Switch: x></nowiki>
 +
| style="padding: 10px;"| Choice enabled if switch x is ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Enable Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice enabled if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Enable All Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice enabled if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Enable Any Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice enabled if any of x switches are ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Disable></nowiki>
 +
| style="padding: 10px;"| Choice is always disabled.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Disable Switch: x></nowiki>
 +
| style="padding: 10px;"| Choice disabled if switch x is ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Disable Switches: x,x,x></nowiki>
 +
| style="padding: 10px;"| Choice disabled if the x switches are all ON.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Choice Width: x></nowiki>
 +
| style="padding: 10px;"| Sets the minimum text area width to x. Applies to whole choice window.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Choice Indent: x></nowiki>
 +
| style="padding: 10px;"| Sets the indent to x value. Applies to current choice selection only.
 +
|}
 +
 
 +
[[File:MessageCore_BgColor.png]]
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Effect (Choice Window Only)
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgColor: x></nowiki>
 +
| style="padding: 10px;"| Requires VisuMZ_0_CoreEngine! Sets background color of this choice to 'x' text color. This will be combined with a fading
 +
|-
 +
| style="padding: 10px;"| <nowiki><BgColor: x,y></nowiki>
 +
| style="padding: 10px;"| Requires VisuMZ_0_CoreEngine! Sets background color of this choice to 'x' to 'y' gradient text color.
 +
|-
 +
| style="padding: 10px;"| <nowiki><BgColor: #rrggbb></nowiki>
 +
| style="padding: 10px;"| Requires VisuMZ_0_CoreEngine! Sets background color of this choice to '#rrggbb' color using hex color values.
 +
|-
 +
| style="padding: 10px;"| <nowiki><BgColor: #rrggbb, #rrggbb></nowiki>
 +
| style="padding: 10px;"| Requires VisuMZ_0_CoreEngine! Sets background color of this choice to '#rrggbb' gradient using hex color values.
 +
|}
 +
 
 +
[[File:MessageCore_Update123_Preview.png]]
 +
 
 +
 
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Effect (Choice Window Only)
 +
|-
 +
| style="width: 300px; padding: 10px;"| <nowiki><Help> text </Help></nowiki>
 +
| style="padding: 10px;"| Makes a help window appear and have it show 'text' in its contents. The help window will disappear if no text is displayed.
 +
|}
 +
 
 +
 
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Effect (Choice Window Only)
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><Shuffle></nowiki>
 +
| style="padding: 10px;"| Shuffles the order of all choices. Any cancel shortcuts other than "Branch" will be undone.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Shuffle: x></nowiki>
 +
| style="padding: 10px;"| Shuffles the order of all choices and only x number of them will appear. Any cancel shortcuts other than "Branch" will be undone. Hidden choices do not count towards x number.
 +
|}
 +
 
 +
 
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Background Effects (Choice Window Only)
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ stretched across the choice rectangle.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg LowerLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the lower left of choice rect. scaled to the lower center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg LowerRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the lower right of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg MidLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the middle left of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg Center: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg MidRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the middle right of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg UpperLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the upper left of choice rect. scaled to the upper center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><BgImg UpperRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a background image from img/pictures/ scaled to the upper right of choice rect.
 +
|}
 +
 
 +
'''Note:''' For the <BgImg: filename> text code variants, even if the background
 +
image is smaller than the choice contents, it will overscale to match its
 +
choice rectangle dimensions.
 +
 
 +
'''Note:''' Using a background image will clear the dimmed background rectangle
 +
that is normally behind each selectable choice.
 +
 
 +
'''Note:''' Each choice can only have one background image but can use a
 +
combination of one background and one foreground image.
 +
 
 +
'''Note:''' Images in the background will appear behind the select cursor.
 +
 
 +
 
 +
 
 +
{| class="wikitable" style="width:800px"
 +
! Text Code !! Foreground Effects (Choice Window Only)
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ stretched across the choice rectangle.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg LowerLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the lower left of choice rect. scaled to the lower center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg LowerRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the lower right of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg MidLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the middle left of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg Center: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg MidRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the middle right of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg UpperLeft: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the upper left of choice rect. scaled to the upper center of choice rect.
 +
|-
 +
| style="width: 200px; padding: 10px;"| <nowiki><FgImg UpperRight: filename></nowiki>
 +
| style="padding: 10px;"| Creates a foreground image from img/pictures/ scaled to the upper right of choice rect.
 +
|}
 +
 
 +
'''Note:''' For the <FgImg: filename> text code variants, unlike the background
 +
variant, the foreground image will not overscale past its original size.
 +
Instead, it will maintain its original size or be smaller, so long as it can
 +
be scaled to exist within the choice rectangle unless it is intended to be
 +
stretched by using the <FgImg: filename> variant.
 +
 
 +
'''Note:''' Text is then written on top of the foreground image.
 +
 
 +
'''Note:''' Each choice can only have one foreground image but can use a
 +
combination of one background and one foreground image.
 +
 
 +
'''Note:''' Images in the foreground will appear behind the select cursor.
  
 
---
 
---
  
-----------------------------  ---------------------------------------------
+
==== Name Window-Only Hard-Coded Text Codes ====
Text Code                     Effect (Choice Window Only)
+
 
-----------------------------  ---------------------------------------------
+
{| class="wikitable" style="width:800px"
<Show>                         Choice is always shown.
+
! Text Code !! Effect (Name Window Only)
<Show Switch: x>               Choice shown if switch x is ON.
+
|-
<Show Switches: x,x,x>        Choice shown if the x switches are all ON.
+
| style="padding: 10px;"| <nowiki><Left></nowiki>
<Show All Switches: x,x,x>     Choice shown if the x switches are all ON.
+
| style="padding: 10px;"| Positions the name box window to the left.
<Show Any Switches: x,x,x>    Choice shown if any of x switches are ON.
+
|-
 +
| style="padding: 10px;"| <nowiki><Center></nowiki>
 +
| style="padding: 10px;"| Positions the name box window to the center.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Right></nowiki>
 +
| style="padding: 10px;"| Positions the name box window to the right.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Position: x></nowiki>
 +
| style="padding: 10px;"| Replace 'x' with a number from 0 to 10. This positions the name box window on the screen relative to the position of the value 'x' represents.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\NormalBG</nowiki>
 +
| style="padding: 10px;"| Changes background type of window to normal type.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\DimBG</nowiki>
 +
| style="padding: 10px;"| Changes background type of window to dim type.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\TransparentBG</nowiki>
 +
| style="padding: 10px;"| Changes background type of window to transparent type.
 +
|}
 +
 
 +
---
  
<Hide>                        Choice is always hidden.
+
==== Message-Only Position Hard-Coded Text Codes ====
<Hide Switch: x>              Choice hidden if switch x is ON.
 
<Hide Switches: x,x,x>        Choice hidden if the x switches are all ON.
 
<Hide All Switches: x,x,x>    Choice hidden if the x switches are all ON.
 
<Hide Any Switches: x,x,x>    Choice hidden if any of x switches are ON.
 
  
<Enable>                       Choice is always enabled.
+
{| class="wikitable" style="width:800px"
<Enable Switch: x>             Choice enabled if switch x is ON.
+
! Text Code !! Effect (Message Window Only)
<Enable Switches: x,x,x>       Choice enabled if the x switches are all ON.
+
|-
<Enable All Switches: x,x,x>   Choice enabled if the x switches are all ON.
+
| style="width: 200px; padding: 10px;"| <nowiki><Position: x, y, width, height></nowiki>
<Enable Any Switches: x,x,x>   Choice enabled if any of x switches are ON.
+
| style="padding: 10px;"| Forces the message window to exact listed coordinates and dimensions. Replace each of the arguments with numbers. *Note*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Coordinates: x, y></nowiki>
 +
| style="padding: 10px;"| Forces the message window to the exact listed coordinates. Replace each of the arguments with numbers. *Note*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Dimensions: width, height></nowiki>
 +
| style="padding: 10px;"| Forces the message window size to the exact listed dimensions. Replace each of the arguments with numbers. *Note*
 +
|-
 +
| style="padding: 10px;"| <nowiki><Offset: +x, +y></nowiki>
 +
| style="padding: 10px;"| Quickly adjust the message window offset
 +
|-
 +
| style="padding: 10px;"| <nowiki><Offset: -x, -y></nowiki>
 +
| style="padding: 10px;"| values to the x and y amounts. The values
 +
|-
 +
| style="padding: 10px;"| <nowiki><Offset: +x, -y></nowiki>
 +
| style="padding: 10px;"| will replace the previous offset settings
 +
|-
 +
| style="padding: 10px;"| <nowiki><Offset: -x, +y></nowiki>
 +
| style="padding: 10px;"| if there were any.
 +
|}
  
<Disable>                      Choice is always disabled.
+
'''*NOTE:*''' These text codes do not work with Word Wrap.
<Disable Switch: x>            Choice disabled if switch x is ON.
 
<Disable Switches: x,x,x>      Choice disabled if the x switches are all ON.
 
<Disable All Switches: x,x,x>  Choice disabled if the x switches are all ON.
 
<Disable Any Switches: x,x,x>  Choice disabled if any of x switches are ON.
 
</pre>
 
  
 
---
 
---
  
=== Message Core Customizable Text Codes ===
+
==== Controls-Related Hard-Coded Text Codes ====
 +
 
 +
[[File:MessageCore_ControllerButtons.png]]
  
The following text codes can be altered through the Message Core's various
+
{| class="wikitable" style="width:800px"
Plugin Parameters to adjust replacements and actions.
+
! Text Code !! Effect (Requires VisuMZ_0_CoreEngine)
 +
|-
 +
| style="padding: 10px;"| <nowiki><Up Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Left Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Right Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Down Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Ok Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Cancel Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Shift Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Menu Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Page Up Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|-
 +
| style="padding: 10px;"| <nowiki><Page Down Button></nowiki>
 +
| style="padding: 10px;"| Display's VisuMZ_0_CoreEngine's button assist text.
 +
|}
  
 
---
 
---
 +
 +
==== Random Text Pool ====
 +
 +
[[File:MessageCore_RngTextCode.png]]
 +
 +
[[File:MessageCore_RngTextExample.png|600px]]
  
 
<pre>
 
<pre>
------------------  -------------------------------------------------------
+
<RNG> text1 | text2 | text3 </RNG>
Text Code            Effect (Global)
+
</pre>
------------------  -------------------------------------------------------
 
\Class[x]            Draws class x's icon (if have) and name.
 
\ClassName[x]        Draws class x's name only.
 
  
\Skill[x]            Draws skill x's icon (if have) and name.
+
Using the above text code format in a Show Message entry, you can get a
\SkillName[x]        Draws skill x's name only.
+
random result out of the various inserted texts. Use "|" (without quotes) as
 +
a separator between text entries. You can have unlimited entries. The result
 +
will have any excess white space trimmed.
  
\Item[x]            Draws item x's icon (if have) and name.
+
This text code cannot be inserted into a macro and parsed properly.
\ItemName[x]        Draws item x's name only.
 
\ItemQuantity[x]    Inserts the number of item x's owned by the party.
 
  
\Weapon[x]          Draws weapon x's icon (if have) and name.
+
---
\WeaponName[x]      Draws weapon x's name only.
 
\WeaponQuantity[x]  Inserts the number of weapon x's owned by the party.
 
  
\Armor[x]            Draws armor x's icon (if have) and name.
+
=== Message Core Customizable Text Codes ===
\ArmorName[x]        Draws armor x's name only.
 
\ArmorQuantity[x]    Inserts the number of armor x's owned by the party.
 
  
\LastGainObj        Draws the icon + name of the last party-gained object.
+
[[File:MessageCoreLastGained.png|600px]]
\LastGainObjName    Draws the name of the last party-gained object.
 
\LastGainObjQuantity Inserts the quantity of the last party-gained object.
 
  
\State[x]            Draws state x's icon (if have) and name.
+
The following text codes can be altered through the Message Core's various
\StateName[x]        Draws state x's name only.
+
Plugin Parameters to adjust replacements and actions.
  
\Enemy[x]            Draws enemy x's icon (if have) and name.
+
---
\EnemyName[x]        Draws enemy x's name only.
 
  
\Troop[x]            Draws troop x's icon (if have) and name.
+
==== Default Customizable Text Codes ====
\TroopName[x]        Draws troop x's name only.
 
  
\TroopMember[x]     Draws troop member x's icon (if have) and name. *Note1*
+
{| class="wikitable" style="width:800px"
\TroopNameMember[x] Draws troop member x's name only. *Note1*
+
! Text Code !! Effect (Global)
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Class[x]</nowiki>
 +
| style="padding: 10px;"| Draws class x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ClassName[x]</nowiki>
 +
| style="padding: 10px;"| Draws class x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Skill[x]</nowiki>
 +
| style="padding: 10px;"| Draws skill x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\SkillName[x]</nowiki>
 +
| style="padding: 10px;"| Draws skill x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Item[x]</nowiki>
 +
| style="padding: 10px;"| Draws item x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ItemName[x]</nowiki>
 +
| style="padding: 10px;"| Draws item x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ItemQuantity[x]</nowiki>
 +
| style="padding: 10px;"| Inserts the number of item x's owned by the party.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Weapon[x]</nowiki>
 +
| style="padding: 10px;"| Draws weapon x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\WeaponName[x]</nowiki>
 +
| style="padding: 10px;"| Draws weapon x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\WeaponQuantity[x]</nowiki>
 +
| style="padding: 10px;"| Inserts the number of weapon x's owned by the party.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Armor[x]</nowiki>
 +
| style="padding: 10px;"| Draws armor x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ArmorName[x]</nowiki>
 +
| style="padding: 10px;"| Draws armor x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ArmorQuantity[x]</nowiki>
 +
| style="padding: 10px;"| Inserts the number of armor x's owned by the party.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\LastGainObj</nowiki>
 +
| style="padding: 10px;"| Draws the icon + name of the last party-gained object.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\LastGainObjName</nowiki>
 +
| style="padding: 10px;"| Draws the name of the last party-gained object.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\State[x]</nowiki>
 +
| style="padding: 10px;"| Draws state x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\StateName[x]</nowiki>
 +
| style="padding: 10px;"| Draws state x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Enemy[x]</nowiki>
 +
| style="padding: 10px;"| Draws enemy x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\EnemyName[x]</nowiki>
 +
| style="padding: 10px;"| Draws enemy x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\Troop[x]</nowiki>
 +
| style="padding: 10px;"| Draws troop x's icon (if have) and name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\TroopName[x]</nowiki>
 +
| style="padding: 10px;"| Draws troop x's name only.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\TroopMember[x]</nowiki>
 +
| style="padding: 10px;"| Draws troop member x's icon (if have) and name. *Note1*
 +
|}
  
Note1: Only works in battle.
+
'''Note1:''' Only works in battle.
  
\NormalBG            Changes background type of window to normal type.
 
\DimBG              Changes background type of window to dim type.
 
\TransparentBG      Changes background type of window to transparent type.
 
  
\FontChange<x>      Changes font face to x font name.
 
\ResetFont          Resets font settings.
 
  
\ResetColor         Resets color settings.
+
{| class="wikitable" style="width:800px"
\HexColor<x>         Changes text color to x hex color (ie. #123abc).
+
! Text Code !! Effect (Global)
\OutlineColor[x]     Changes outline color to text color x.
+
|-
\OutlineHexColor<x> Changes outline color to x hex color (ie. #123abc).
+
| style="padding: 10px;"| <nowiki>\NormalBG</nowiki>
\OutlineWidth[x]     Changes outline width to x thickness.
+
| style="padding: 10px;"| Changes background type of window to normal type.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\DimBG</nowiki>
 +
| style="padding: 10px;"| Changes background type of window to dim type.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\TransparentBG</nowiki>
 +
| style="padding: 10px;"| Changes background type of window to transparent type.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\FontChange<x></nowiki>
 +
| style="padding: 10px;"| Changes font face to x font name.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ResetFont</nowiki>
 +
| style="padding: 10px;"| Resets font settings.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ResetColor</nowiki>
 +
| style="padding: 10px;"| Resets color settings.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\HexColor<x></nowiki>
 +
| style="padding: 10px;"| Changes text color to x hex color (ie. #123abc).
 +
|-
 +
| style="padding: 10px;"| <nowiki>\OutlineColor[x]</nowiki>
 +
| style="padding: 10px;"| Changes outline color to text color x.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\OutlineWidth[x]</nowiki>
 +
| style="padding: 10px;"| Changes outline width to x thickness.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\WindowMoveTo<?></nowiki>
 +
| style="padding: 10px;"| Moves window to exact coordinates. *Note2*
 +
|-
 +
| style="padding: 10px;"| <nowiki>\WindowMoveBy<?></nowiki>
 +
| style="padding: 10px;"| Moves window by relative values. *Note2*
 +
|-
 +
| style="padding: 10px;"| <nowiki>\WindowReset</nowiki>
 +
| style="padding: 10px;"| Resets window position to original position.
 +
|}
  
\WindowMoveTo<x>    Moves window to exact coordinates. *Note2*
+
'''Note2:''' Replace '?' with the following format:
\WindowMoveBy<x>    Moves window by relative values. *Note2*
 
\WindowReset        Resets window position to original position.
 
  
Note2: Replace 'x' with the following format:
+
<pre>
 
   targetX, targetY, targetWidth, targetHeight, duration, easingType
 
   targetX, targetY, targetWidth, targetHeight, duration, easingType
   Only targetX and targetY are required arguments.
+
 
 +
   Only targetX and targetY are required arguments. These will only alter the
 +
  window dimensions when the text has arrived at that point. They will not
 +
  alter the window preemptively. This is not used as a window positioner.
 +
  Use the <Position: x, y, width, height> text code for that.
 
</pre>
 
</pre>
  
 
---
 
---
  
<pre>
+
==== Default Message Effect Text Codes ====
------------------  -------------------------------------------------------
 
Text Code            Effect (Message Window Only)
 
------------------  -------------------------------------------------------
 
\ActorFace[x]        Inserts actor x's face into the Message Window.
 
\PartyFace[x]        Inserts party member x's face into the Message Window.
 
\ChangeFace<x,y>    Changes message face to x filename, y index.
 
\FaceIndex[x]        Changes message face index to x.
 
  
\TextDelay[x]       Sets delay in frames between characters to x frames.
+
{| class="wikitable" style="width:800px"
</pre>
+
! Text Code !! Effect (Message Window Only)
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ActorFace[x]</nowiki>
 +
| style="padding: 10px;"| Inserts actor x's face into the Message Window.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\PartyFace[x]</nowiki>
 +
| style="padding: 10px;"| Inserts party member x's face into the Message Window.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\ChangeFace<x,y></nowiki>
 +
| style="padding: 10px;"| Changes message face to x filename, y index.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\FaceIndex[x]</nowiki>
 +
| style="padding: 10px;"| Changes message face index to x.
 +
|-
 +
| style="padding: 10px;"| <nowiki>\TextDelay[x]</nowiki>
 +
| style="padding: 10px;"| Sets delay in frames between characters to x frames.
 +
|}
  
 
---
 
---

Latest revision as of 11:21, 17 January 2024

The following are text codes that you may use with this plugin. Some of these are original text codes provided by RPG Maker MZ, while others are new text codes added through this plugin. You may even add your own text codes through the plugin parameters.

RPG Maker MZ Text Codes

The following are text codes that come with RPG Maker MZ. These text codes cannot be edited through the Plugin Parameters.

---

Default MZ Text Codes

Text Code Effect (Global)
\V[x] Replaced by the value of variable 'x'.
\N[x] Replaced by the name of actor 'x'.
\P[x] Replaced by the name of party member 'x'.
\C[x] Draw the subsequent text with window skin color 'x'.
\I[x] Draw icon 'x'.
\PX[x] Moves text x position to 'x'.
\PY[x] Moves text y position to 'y'.
\G Replaced by the currency unit.
\{ Increase the text font size by one step.
\} Decrease the text font size by one step.
\FS[x] Changes the text font size to 'x'.
\\ Replaced by the backslash character.

---

Default MZ Message-Only Text Codes

Text Code Effect (Message Window Only)
\$ Opens the gold window.
\. Waits a 1/4 second.
\| Waits a full second.
\! Waits for button input.
\> Display remaining text on same line all at once.
\< Cancel the effect that displays text all at once.
\^ Do not wait for input after displaying text to move on.

---

Message Core Hard-Coded Text Codes

MessageCoreAlignment.png

The following text codes are hard-coded into VisuStella MZ Message Core's code. These text codes cannot be edited through the Plugin Parameters.

---

Global Hard-Coded Text Codes

Text Code Effect (Global)
<b> Makes subsequent text bold.
</b> Removes bold from subsequent text.
<i> Makes subsequent text italic.
</i> Removes italic from subsequent text.
<left> Makes subsequent text left-aligned. *Note1*
</left> Removes left-alignment for subsequent text.
<center> Makes subsequent text center-aligned. *Note1*
</center> Removes center-alignment for subsequent text.
<right> Makes subsequent text right-aligned. *Note1*
</right> Removes right-alignment for subsequent text.

Note1: Use at line-start. Does not work with Word Wrap.


Text Code Effect (Global)
<ColorLock> Text codes can't change text color for subsequent text.
</ColorLock> Removes Color Lock property.
<WordWrap> Enables Word Wrap for this window. *Note2*
</WordWrap> Disables Word Wrap for this window. *Note2*
<br> Adds a line break. Requires Word Wrap enabled.
<line break> Adds a line break. Requires Word Wrap enabled.

Note2: Some windows cannot use Word Wrap such as the Choice Window. Word Wrap also cannot be used together with <left>, <center>, or <right> and will disable itself if text alignment text codes are detected.


Text Code Effect (Global)
\picture<x> Draws picture x (filename) at current text position.
\CenterPicture<x> Draws picture x (filename) centered at the window.

---

Message Window Only Hard-Coded Text Codes

MessageCoreAutoSize.png

Text Code Effect (Message Window Only)
\CommonEvent[x] Runs common event x when text code is reached.
\Wait[x] Makes the message wait x frames before continuing.
<Next Page> Ends the current message page at this line. This is used for messages when rows are at 5 or above and the message lines don't match the amount. This is used to prevent grabbing message windows from following message events. Any lines following <Next Page> in the same message event will be ignored.
<Auto> Resizes message window dimensions to fit text. *Note3*
<Auto Width> Resizes message window width to fit text. *Note3*
<Auto Height> Resizes message window height to fit text. *Note3*
<Auto Actor: x> Resizes message window and positions it over actor x sprite's head. *Note3*
<Auto Party: x> Resizes message window and positions it over party member x sprite's head. *Note3*
<Auto Player> Map-Only. Resizes message window and positions it over the player sprite's head. *Note3*
<Auto Event: x> Map-Only. Resizes message window and positions it over event x sprite's head. *Note3*
<Auto Enemy: x> Battle-Only. Resizes message window and positions it over enemy x sprite's head. *Note3*

Note3: Upon using these text codes, the message window's settings will be reset for the upcoming message. These effects do not work with Word Wrap.

---

Battle-Only Hard-Coded Text Codes

Text Code Effect (Battle Only)
<Current Battle Target> Replaces text code with the current target of an action in battle.
<Current Battle User> Replaces text code with the currently active user in battle.
<Current Battle Action> Replaces text code with the current battle action's name with an icon in front.
<Current Battle Action Name> Replaces text code with the current battle action's name without an icon.

If there is no battle, no target, no user, or no action, then the text code will just be replaced with no text.

These text codes are NOT recommended to be used inside of Help Descriptions. They are best used with "Show Text" event commands.

---

Choice Window-Only Hard-Coded Text Codes

Text Code Effect (Choice Window Only)
<Show> Choice is always shown.
<Show Switch: x> Choice shown if switch x is ON.
<Show Switches: x,x,x> Choice shown if the x switches are all ON.
<Show All Switches: x,x,x> Choice shown if the x switches are all ON.
<Show Any Switches: x,x,x> Choice shown if any of x switches are ON.
<Hide> Choice is always hidden.
<Hide Switch: x> Choice hidden if switch x is ON.
<Hide Switches: x,x,x> Choice hidden if the x switches are all ON.
<Hide All Switches: x,x,x> Choice hidden if the x switches are all ON.
<Hide Any Switches: x,x,x> Choice hidden if any of x switches are ON.
<Enable> Choice is always enabled.
<Enable Switch: x> Choice enabled if switch x is ON.
<Enable Switches: x,x,x> Choice enabled if the x switches are all ON.
<Enable All Switches: x,x,x> Choice enabled if the x switches are all ON.
<Enable Any Switches: x,x,x> Choice enabled if any of x switches are ON.
<Disable> Choice is always disabled.
<Disable Switch: x> Choice disabled if switch x is ON.
<Disable Switches: x,x,x> Choice disabled if the x switches are all ON.
<Choice Width: x> Sets the minimum text area width to x. Applies to whole choice window.
<Choice Indent: x> Sets the indent to x value. Applies to current choice selection only.

MessageCore BgColor.png

Text Code Effect (Choice Window Only)
<BgColor: x> Requires VisuMZ_0_CoreEngine! Sets background color of this choice to 'x' text color. This will be combined with a fading
<BgColor: x,y> Requires VisuMZ_0_CoreEngine! Sets background color of this choice to 'x' to 'y' gradient text color.
<BgColor: #rrggbb> Requires VisuMZ_0_CoreEngine! Sets background color of this choice to '#rrggbb' color using hex color values.
<BgColor: #rrggbb, #rrggbb> Requires VisuMZ_0_CoreEngine! Sets background color of this choice to '#rrggbb' gradient using hex color values.

MessageCore Update123 Preview.png


Text Code Effect (Choice Window Only)
<Help> text </Help> Makes a help window appear and have it show 'text' in its contents. The help window will disappear if no text is displayed.


Text Code Effect (Choice Window Only)
<Shuffle> Shuffles the order of all choices. Any cancel shortcuts other than "Branch" will be undone.
<Shuffle: x> Shuffles the order of all choices and only x number of them will appear. Any cancel shortcuts other than "Branch" will be undone. Hidden choices do not count towards x number.


Text Code Background Effects (Choice Window Only)
<BgImg: filename> Creates a background image from img/pictures/ stretched across the choice rectangle.
<BgImg LowerLeft: filename> Creates a background image from img/pictures/ scaled to the lower left of choice rect. scaled to the lower center of choice rect.
<BgImg LowerRight: filename> Creates a background image from img/pictures/ scaled to the lower right of choice rect.
<BgImg MidLeft: filename> Creates a background image from img/pictures/ scaled to the middle left of choice rect.
<BgImg Center: filename> Creates a background image from img/pictures/ scaled to the center of choice rect.
<BgImg MidRight: filename> Creates a background image from img/pictures/ scaled to the middle right of choice rect.
<BgImg UpperLeft: filename> Creates a background image from img/pictures/ scaled to the upper left of choice rect. scaled to the upper center of choice rect.
<BgImg UpperRight: filename> Creates a background image from img/pictures/ scaled to the upper right of choice rect.

Note: For the <BgImg: filename> text code variants, even if the background image is smaller than the choice contents, it will overscale to match its choice rectangle dimensions.

Note: Using a background image will clear the dimmed background rectangle that is normally behind each selectable choice.

Note: Each choice can only have one background image but can use a combination of one background and one foreground image.

Note: Images in the background will appear behind the select cursor.


Text Code Foreground Effects (Choice Window Only)
<FgImg: filename> Creates a foreground image from img/pictures/ stretched across the choice rectangle.
<FgImg LowerLeft: filename> Creates a foreground image from img/pictures/ scaled to the lower left of choice rect. scaled to the lower center of choice rect.
<FgImg LowerRight: filename> Creates a foreground image from img/pictures/ scaled to the lower right of choice rect.
<FgImg MidLeft: filename> Creates a foreground image from img/pictures/ scaled to the middle left of choice rect.
<FgImg Center: filename> Creates a foreground image from img/pictures/ scaled to the center of choice rect.
<FgImg MidRight: filename> Creates a foreground image from img/pictures/ scaled to the middle right of choice rect.
<FgImg UpperLeft: filename> Creates a foreground image from img/pictures/ scaled to the upper left of choice rect. scaled to the upper center of choice rect.
<FgImg UpperRight: filename> Creates a foreground image from img/pictures/ scaled to the upper right of choice rect.

Note: For the <FgImg: filename> text code variants, unlike the background variant, the foreground image will not overscale past its original size. Instead, it will maintain its original size or be smaller, so long as it can be scaled to exist within the choice rectangle unless it is intended to be stretched by using the <FgImg: filename> variant.

Note: Text is then written on top of the foreground image.

Note: Each choice can only have one foreground image but can use a combination of one background and one foreground image.

Note: Images in the foreground will appear behind the select cursor.

---

Name Window-Only Hard-Coded Text Codes

Text Code Effect (Name Window Only)
<Left> Positions the name box window to the left.
<Center> Positions the name box window to the center.
<Right> Positions the name box window to the right.
<Position: x> Replace 'x' with a number from 0 to 10. This positions the name box window on the screen relative to the position of the value 'x' represents.
\NormalBG Changes background type of window to normal type.
\DimBG Changes background type of window to dim type.
\TransparentBG Changes background type of window to transparent type.

---

Message-Only Position Hard-Coded Text Codes

Text Code Effect (Message Window Only)
<Position: x, y, width, height> Forces the message window to exact listed coordinates and dimensions. Replace each of the arguments with numbers. *Note*
<Coordinates: x, y> Forces the message window to the exact listed coordinates. Replace each of the arguments with numbers. *Note*
<Dimensions: width, height> Forces the message window size to the exact listed dimensions. Replace each of the arguments with numbers. *Note*
<Offset: +x, +y> Quickly adjust the message window offset
<Offset: -x, -y> values to the x and y amounts. The values
<Offset: +x, -y> will replace the previous offset settings
<Offset: -x, +y> if there were any.

*NOTE:* These text codes do not work with Word Wrap.

---

Controls-Related Hard-Coded Text Codes

MessageCore ControllerButtons.png

Text Code Effect (Requires VisuMZ_0_CoreEngine)
<Up Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Left Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Right Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Down Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Ok Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Cancel Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Shift Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Menu Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Page Up Button> Display's VisuMZ_0_CoreEngine's button assist text.
<Page Down Button> Display's VisuMZ_0_CoreEngine's button assist text.

---

Random Text Pool

MessageCore RngTextCode.png

MessageCore RngTextExample.png

<RNG> text1 | text2 | text3 </RNG>

Using the above text code format in a Show Message entry, you can get a random result out of the various inserted texts. Use "|" (without quotes) as a separator between text entries. You can have unlimited entries. The result will have any excess white space trimmed.

This text code cannot be inserted into a macro and parsed properly.

---

Message Core Customizable Text Codes

MessageCoreLastGained.png

The following text codes can be altered through the Message Core's various Plugin Parameters to adjust replacements and actions.

---

Default Customizable Text Codes

Text Code Effect (Global)
\Class[x] Draws class x's icon (if have) and name.
\ClassName[x] Draws class x's name only.
\Skill[x] Draws skill x's icon (if have) and name.
\SkillName[x] Draws skill x's name only.
\Item[x] Draws item x's icon (if have) and name.
\ItemName[x] Draws item x's name only.
\ItemQuantity[x] Inserts the number of item x's owned by the party.
\Weapon[x] Draws weapon x's icon (if have) and name.
\WeaponName[x] Draws weapon x's name only.
\WeaponQuantity[x] Inserts the number of weapon x's owned by the party.
\Armor[x] Draws armor x's icon (if have) and name.
\ArmorName[x] Draws armor x's name only.
\ArmorQuantity[x] Inserts the number of armor x's owned by the party.
\LastGainObj Draws the icon + name of the last party-gained object.
\LastGainObjName Draws the name of the last party-gained object.
\State[x] Draws state x's icon (if have) and name.
\StateName[x] Draws state x's name only.
\Enemy[x] Draws enemy x's icon (if have) and name.
\EnemyName[x] Draws enemy x's name only.
\Troop[x] Draws troop x's icon (if have) and name.
\TroopName[x] Draws troop x's name only.
\TroopMember[x] Draws troop member x's icon (if have) and name. *Note1*

Note1: Only works in battle.


Text Code Effect (Global)
\NormalBG Changes background type of window to normal type.
\DimBG Changes background type of window to dim type.
\TransparentBG Changes background type of window to transparent type.
\FontChange<x> Changes font face to x font name.
\ResetFont Resets font settings.
\ResetColor Resets color settings.
\HexColor<x> Changes text color to x hex color (ie. #123abc).
\OutlineColor[x] Changes outline color to text color x.
\OutlineWidth[x] Changes outline width to x thickness.
\WindowMoveTo<?> Moves window to exact coordinates. *Note2*
\WindowMoveBy<?> Moves window by relative values. *Note2*
\WindowReset Resets window position to original position.

Note2: Replace '?' with the following format:

  targetX, targetY, targetWidth, targetHeight, duration, easingType

  Only targetX and targetY are required arguments. These will only alter the
  window dimensions when the text has arrived at that point. They will not
  alter the window preemptively. This is not used as a window positioner.
  Use the <Position: x, y, width, height> text code for that.

---

Default Message Effect Text Codes

Text Code Effect (Message Window Only)
\ActorFace[x] Inserts actor x's face into the Message Window.
\PartyFace[x] Inserts party member x's face into the Message Window.
\ChangeFace<x,y> Changes message face to x filename, y index.
\FaceIndex[x] Changes message face index to x.
\TextDelay[x] Sets delay in frames between characters to x frames.

---

As these text codes can be added, removed, and/or altered, their functions may or may not be the same depending on how you've altered them. VisuStella is not responsible for any errors caused by changes made to pre-made text codes nor any new text codes they did not make.