List of Control Characters: Difference between revisions

RRad (talk | contribs)
No edit summary
RRad (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|~
|~
|0x7E
|0x7E
|Reads the following 2 characters '''as hex''' and prints the result. Can be used to print normally unprintable characters such as brackets and 0x7E itself. Example: <code>~5B ~5D</code> will result in <code>[ ]</code> in-game.<br>Note: <code>~7E</code> results in a second small tilde (<code>˜</code>) in-game. Use the Shift-JIS character described below for a full tilde.
|Reads the following 2 characters '''as hex''' and prints the result using the game's [https://en.wikipedia.org/wiki/Windows-1252#Code_page_layout Windows-1252]-derived character encoding (see <code>FONT/kanji.dat</code> or <code>FONT/kanji_rd.dat</code> in SkyTemple for the game's customized code page). Can be used to print normally unprintable characters such as brackets and 0x7E itself. Example: <code>~5B ~5D</code> will result in <code>[ ]</code> in-game.<br>Note: <code>~7E</code> results in a second small tilde (<code>˜</code>) in-game. Use the Shift-JIS character described below for a full tilde.
|-
|-
|
|
Line 48: Line 48:
== Lowercase Text Tags ==
== Lowercase Text Tags ==
<TODO: parameters, (technical) descriptions, potential organization>
<TODO: parameters, (technical) descriptions, potential organization>
<We should probably specify which of these tags pull from the preprocessor_args struct, and if so, what field. And explain what that means. (AKA: requires ASM to be useful for scripting).>


{| class="wikitable"
{| class="wikitable"
Line 69: Line 71:
|-
|-
|[c_i:#]
|[c_i:#]
|
|Seems to be used for ability names, based on the id in the preprocessor_args struct?
|-
|-
|[c_name:<actor>]
|[c_name:<actor>]
|
|Prints the name of the actor, using the appropriate color text for that actor (usually [CS:N], but differs for special actors like the hero and partner)
|-
|-
|style=white-space:nowrap|[c_stammer:<actor>]
| style="white-space:nowrap" |[c_stammer:<actor>]
|Prints the first character of the specified actor's name. Used only in JP.
|Prints the first character of the specified actor's name. Used only in JP.
|-
|-
Line 87: Line 89:
|-
|-
|[dungeon:#]
|[dungeon:#]
|
|Substitutes a dungeon name with [CS:P], based on the preprocessor_args struct.
|-
|-
|[equip_list]
|[equip_list]
Line 114: Line 116:
|-
|-
|[item:#]
|[item:#]
|
|Substitutes a properly formatted item name, based on the preprocessor_args struct.
|-
|-
|[kind:]<br>[kind:#]
|[kind:]<br>[kind:#]
|
|Same as c_kind, except uses the preprocessor_args struct.
|-
|-
|[move:]<br>[move:#]
|[move:]<br>[move:#]
Line 123: Line 125:
|-
|-
|[me_play:#]
|[me_play:#]
|
|Substitutes with an instance of [ME_PLAY:id], based on an id pulled from the preprocessor_args struct.
|-
|-
|[move_hit_ratio]
|[move_hit_ratio]
|
|Used in move descriptions, to substitute in the actual move hit ratio (in stars) for the move.
|-
|-
|[move_power]
|[move_power]
|
|Used in move descriptions, to substitute in the actual move power (in stars) for the move.
|-
|-
|[name:#]
|[name:#]
|
|Same as n_kind, except uses the preprocessor_args struct.
|-
|-
|[now_team]
|[now_team]
Line 156: Line 158:
|-
|-
|[s_item:#]
|[s_item:#]
|
|Substitutes this text tag with a properly formatted item given by slot in the set_Item family of opcodes.
|-
|-
|[string0]
|[string0]
Line 162: Line 164:
|-
|-
|[string:#]
|[string:#]
|
|Substitutes a generic string stored in the preprocessor_args struct.
|-
|-
|[se_play:#]
|[se_play:#]
|
|Substitutes with an instance of [SE_PLAY:id], based on an id pulled from the preprocessor_args struct.
|-
|-
|[type:#]
|[type:#]
|
|Substitutes a pokemon type name (Fire, Water, Grass, etc.), based on the preprocessor_args struct.
|-
|-
|[trap:#]
|[trap:#]
|
|Substitutes a trap name with [CS:H], based on the preprocessor_args struct.
|-
|-
|[tactics:#]
|[tactics:#]
|
|Substitutes a team tactics name based on the preprocessor_args struct.
|-
|-
|[team]<br>[team:]<br>[team:#]
|[team]<br>[team:]<br>[team:#]
Line 195: Line 197:
|-
|-
|[wiseness:]<br>[wiseness:#]
|[wiseness:]<br>[wiseness:#]
|
|Substitutes the tag with an IQ skill name by id, pulled from the preprocessor_args struct.
|}
|}


Line 816: Line 818:
|0x97
|0x97
|0x97
|0x97
|r and e condensed to one superscript character, a feminine ordinal indicator for number 1. Unused
|r and e condensed to one superscript character, a feminine ordinal indicator for number 1. Used in a single preset phrase for Friend Rescues in French: <code>La 1[F:RE] équipe gagne!</code>
|-
|-
|[F:O]
|[F:O]
Line 830: Line 832:
|0x8D
|0x8D
|0x8D
|0x8D
|Superscript "e", a feminine ordinal indicator for numbers 2+. Used in French when referring to Sky Peak Station Pass 2+
|Superscript "e", an ordinal indicator for numbers 2+. Used in French when referring to Sky Peak Station Pass 2+.
|-
|-
|[F:RQ]
|[F:RQ]