List of Control Characters: Difference between revisions
mNo edit summary |
|||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Stub}} | {{Stub}} | ||
== Control Characters == | |||
{| class="wikitable" | |||
!Character | |||
!Hex | |||
!Description | |||
|- | |||
|~ | |||
|0x7E | |||
|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. | |||
|- | |||
| | |||
|0x81 | |||
|Shift-JIS activator. Used normally in Japanese, but the international versions also use it to display the following extra characters from <code>kanji.dat/table 129</code>: | |||
{| class="wikitable" | |||
!Character | |||
!Hex | |||
!Note | |||
|- | |||
|~ | |||
|0x8160 | |||
|The only way to display a full tilde in-game. To input in SkyTemple, enter a Japanese wave dash (<code>〜</code>). | |||
|- | |||
|→ | |||
|0x81A8 | |||
|This character can be entered normally in SkyTemple. | |||
|- | |||
|← | |||
|0x81A9 | |||
|This character can be entered normally in SkyTemple. | |||
|- | |||
|↑ | |||
|0x81AA | |||
|This character can be entered normally in SkyTemple. | |||
|- | |||
|↓ | |||
|0x81AB | |||
|This character can be entered normally in SkyTemple. | |||
|- | |||
|♪ | |||
|0x81F4 | |||
|This character can be entered normally in SkyTemple. | |||
|} | |||
|} | |||
== 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 11: | Line 58: | ||
| | | | ||
|- | |- | ||
|adverb | |[adverb:#] | ||
|Unused. | |Unused. | ||
|- | |- | ||
| Line 24: | 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. | ||
|- | |- | ||
|class | |[class:#] | ||
|Unused. | |Unused. | ||
|- | |- | ||
| Line 42: | Line 89: | ||
|- | |- | ||
|[dungeon:#] | |[dungeon:#] | ||
| | |Substitutes a dungeon name with [CS:P], based on the preprocessor_args struct. | ||
|- | |- | ||
|[equip_list] | |[equip_list] | ||
| Line 54: | Line 101: | ||
|- | |- | ||
|[gadget_bag] | |[gadget_bag] | ||
|Prints the current name of the player's inventory. Used | |Prints the current name of the player's inventory. Used by the base game to specify the One-Item Inventory or Treasure Bag depending on the player's progress. | ||
|- | |- | ||
|[gender:#] | |[gender:#] | ||
| Line 66: | Line 113: | ||
|- | |- | ||
|[hero] | |[hero] | ||
|Prints the hero's name | |Prints the hero's name. Special Episodes instead use <code>[c_name:NPC_HERO_FIRST]</code>. | ||
|- | |- | ||
|[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 78: | 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 93: | Line 140: | ||
|- | |- | ||
|[partner] | |[partner] | ||
|Prints the partner's name | |Prints the partner's name. Special Episodes instead use <code>[c_name:NPC_PARTNER_FIRST]</code>. | ||
|- | |- | ||
|partner2 | |[partner2] | ||
|Unused. | |Unused. <code>[partner2]</code> and <code>[partner2:0]</code> both seem to invariably crash the game. | ||
|- | |- | ||
|[player] | |[player] | ||
|Prints the current leader's name using a blue text color. | |Prints the current leader's name using a blue text color. | ||
|- | |- | ||
|purpose | |[purpose:#] | ||
|Unused. | |Unused. Seems to print "Recover the stolen item." as seen within the "Mission objectives" menu inside Beach Cave on the first visit, regardless of the player's progress. | ||
|- | |- | ||
|[rank:#] | |[rank:#] | ||
| | | | ||
|- | |- | ||
|range | |[range:#] | ||
|Unused. | |Unused. | ||
|- | |- | ||
|[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 117: | 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 143: | Line 190: | ||
| | | | ||
|- | |- | ||
|value_i | |[value_i:#]<br>[value_i:#:#] | ||
|Unused. | |Unused. | ||
|- | |- | ||
| Line 150: | 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 454: | Line 501: | ||
|[M:T5] | |[M:T5] | ||
|[M:65] | |[M:65] | ||
|未 'Mi' ( | |未 'Mi' (unimplemented) | ||
|colspan="2" style="text-align:center; background-color:#808080;" | [[File:M-T5.png]] | |colspan="2" style="text-align:center; background-color:#808080;" | [[File:M-T5.png]] | ||
|- | |- | ||
| Line 771: | Line 818: | ||
|0x97 | |0x97 | ||
|0x97 | |0x97 | ||
|r and e condensed to one superscript character, a feminine ordinal indicator for number 1. | |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 785: | Line 832: | ||
|0x8D | |0x8D | ||
|0x8D | |0x8D | ||
|Superscript "e", | |Superscript "e", an ordinal indicator for numbers 2+. Used in French when referring to Sky Peak Station Pass 2+. | ||
|- | |- | ||
|[F:RQ] | |[F:RQ] | ||