Pokémon Mystery Dungeon: Red Rescue Team/Text Formatting: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Started page and added some macros)
 
(improving page and adding more macros)
Line 1: Line 1:
These character sequences can change the text when inserted.
These character sequences can change the text when inserted.
==Escape Character for 1-Byte Characters==
The tilde character "~" (0x7E) can be used to display any 1-byte character. The tilde character must be followed by a hexadecimal code in ascii, written in two characters. Note that those are case-insensitive.
<pre>
<pre>
~XX XX=ASCII code for intended character (example: ~27 = ' )
~XX
</pre>
example: ~27 = '


==Global String Variables==
Note that the string names are case sensitive.
<pre>
$dX - maybe floor number
$dX - maybe floor number
$iX - unknown, maybe item
$iX - unknown, maybe item
Line 8: Line 15:
$nX - given name  X = 0 Player Name
$nX - given name  X = 0 Player Name
$t - team name - defaults to ???? if not known
$t - team name - defaults to ???? if not known
</pre>


#CX - Text Color Change
==Text Macros==
Note that all macros are case insensitive.
===Text Color Change===
One of the following macros must be written before the text to colour:
<pre>
#C0 - White
#C0 - White
#C1 - Blue
#C1 - Blue
Line 26: Line 38:
#CE - Light Blue
#CE - Light Blue
#CF - White
#CF - White
</pre>
The following macro is used to end the coloured text, resetting to the default color. If used on text beginning, will set default color to black.
<pre>
#R
</pre>
===Extra Message Command===
<pre>
#P
</pre>
===Wait For Continue Command===
When the text print reaches this macro, the text print will be suspended until pression of A or B button.
<pre>
#W
</pre>


#R - ends #C
===New Line===
#P - Extra Message Command
Note that this macro makes the line starting more on the left than using a command character.
#W - Wait for continue command
<pre>
#N
</pre>
 
===Center Text Align===
The characters following this macro are written aligned to the textbox center.
<pre>
#+
</pre>
</pre>

Revision as of 17:13, 26 March 2016

These character sequences can change the text when inserted.

Escape Character for 1-Byte Characters

The tilde character "~" (0x7E) can be used to display any 1-byte character. The tilde character must be followed by a hexadecimal code in ascii, written in two characters. Note that those are case-insensitive.

~XX

example: ~27 = '

Global String Variables

Note that the string names are case sensitive.

$dX - maybe floor number
$iX - unknown, maybe item
$mX - species name X = 0 Player Species
$nX - given name   X = 0 Player Name
$t - team name - defaults to ???? if not known

Text Macros

Note that all macros are case insensitive.

Text Color Change

One of the following macros must be written before the text to colour:

#C0 - White
#C1 - Blue
#C2 - Red
#C3 - Black
#C4 - Green 
#C5 - Cyan 
#C6 - Yellow
#C7 - White
#C8 - Darker Gray
#C9 - Dark Gray
#CA - White
#CB - White
#CC - Yellow
#CD - Yellow
#CE - Light Blue
#CF - White

The following macro is used to end the coloured text, resetting to the default color. If used on text beginning, will set default color to black.

#R

Extra Message Command

#P

Wait For Continue Command

When the text print reaches this macro, the text print will be suspended until pression of A or B button.

#W

New Line

Note that this macro makes the line starting more on the left than using a command character.

#N

Center Text Align

The characters following this macro are written aligned to the textbox center.

#+