Defined in macros/scripts/text.asm and home/text.asm:TextCommands.
$00: text_startStart writing text until "@". The text can use control characters.
$01: text_ram addressWrite text from a RAM address.
$02: text_bcd address, flagsWrite BCD from an address, typically RAM.
$03: text_move addressMove to a new tile.
$04: text_box address, height, widthDraw a box.
$05: text_lowWrite text at (1, 16).
$06: text_promptbuttonWait for button press; show arrow.
$07: text_scrollPushes text up two lines and sets the bc cursor to the border tile below the
first character column of the text box.
$08: text_asmStart interpreting assembly code.
$09: text_decimal address, bytes, digitsRead bytes bytes from address and print them as a digits-digit number.
$0A: text_pausePause for 30 frames unless A or B is pressed.
$0B: sound_dex_fanfare_50_79Play SFX_DEX_FANFARE_50_79.
$0C: text_dots nPrint n "…"s, pausing for 10 frames after each; interrupt if A or B is pressed.
$0D: text_waitbuttonWait for button press; don't show arrow.
$0E: sound_dex_fanfare_20_49Play SFX_DEX_FANFARE_20_49.
$0F: sound_itemPlay SFX_ITEM.
$10: sound_caught_monPlay SFX_CAUGHT_MON.
$11: sound_dex_fanfare_80_109Play SFX_DEX_FANFARE_80_109.
$12: sound_fanfarePlay SFX_FANFARE.
$13: sound_slot_machine_startPlay SFX_SLOT_MACHINE_START.
$14: text_buffer idWrite text from one of the following addresses (listed in data/text_buffers.asm):
wStringBuffer3wStringBuffer4wStringBuffer5wStringBuffer2wStringBuffer1wEnemyMonNicknamewBattleMonNickname$15: text_todayPrint the weekday.
$16: text_far addressWrite text from a different bank.
$50: text_endStops processing text commands.
These get interpreted in the context of printing regular text. Macros exist to conveniently place the control characters.
$00: text textStart writing text until "@". (Not actually a control character, but shorter than text_start followed by db.)
$4E, "<NEXT>": next textMove a line down.
$4F, "<LINE>": line textStart writing at the bottom line.
$50, "@": page textStart a new Pokédex page.
$51, "<PARA>": para textStart a new paragraph.
$55, "<CONT>": cont textScroll to the next line.
$57, "<DONE>": doneEnd a text box.
$58, "<PROMPT>": promptPrompt the player to end a text box (initiating some other event).