From 3202c4f3dfeac64d815e3b5ee3ee8e891c2b1ba2 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 17 Nov 2018 13:33:03 -0500 Subject: Resolve issue #575: Rename text commands --- docs/bugs_and_glitches.md | 8 ++-- docs/text_commands.md | 106 +++++++++++++++++++++++++--------------------- 2 files changed, 62 insertions(+), 52 deletions(-) (limited to 'docs') diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index c086562fb..76aea54e6 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -632,16 +632,16 @@ This can bring Pokémon straight from level 1 to 100 by gaining just a few exper text_start line "a boosted" cont "@" -- deciram wStringBuffer2, 2, 4 -+ deciram wStringBuffer2, 2, 5 +- text_decimal wStringBuffer2, 2, 4 ++ text_decimal wStringBuffer2, 2, 5 text " EXP. Points!" prompt Text_StringBuffer2ExpPoints:: text_start line "@" -- deciram wStringBuffer2, 2, 4 -+ deciram wStringBuffer2, 2, 5 +- text_decimal wStringBuffer2, 2, 4 ++ text_decimal wStringBuffer2, 2, 5 text " EXP. Points!" prompt ``` diff --git a/docs/text_commands.md b/docs/text_commands.md index df9af1908..36a470cb8 100644 --- a/docs/text_commands.md +++ b/docs/text_commands.md @@ -3,47 +3,12 @@ Defined in [macros/scripts/text.asm](/macros/scripts/text.asm) and [home/text.asm:TextCommands](/home/text.asm). -## `$00`: text text - -Start writing text until `"@"`. - - -## `$4E`: next text - -Move a line down. - - -## `$4F`: line text - -Start writing at the bottom line. - - -## `$50`: page text - -Start a new Pokédex page. - - -## `$51`: para text - -Start a new paragraph. - - -## `$55`: cont text - -Scroll to the next line. - - -## `$57`: `done` - -End a text box. - - -## `$58`: `prompt` +## `$00`: `text_start` -Prompt the player to end a text box (initiating some other event). +Start writing text until `"@"`. The text can use [control characters](#control-characters). -## `$01`: text_from_ram address +## `$01`: text_ram address Write text from a RAM address. @@ -81,19 +46,19 @@ Pushes text up two lines and sets the `bc` cursor to the border tile below the first character column of the text box. -## `$08`: `start_asm` +## `$08`: `text_asm` Start interpreting assembly code. -## `$09`: deciram address, bytes, digits +## `$09`: text_decimal address, bytes, digits Read *bytes* bytes from *address* and print them as a *digits*-digit number. -## `$0A`: `interpret_data` +## `$0A`: `text_pause` -Exit. +Pause for 30 frames unless A or B is pressed. ## `$0B`: `sound_dex_fanfare_50_79` @@ -101,12 +66,12 @@ Exit. Play `SFX_DEX_FANFARE_50_79`. -## `$0C`: limited_interpret_data n +## `$0C`: text_dots n -Print *n* `"…"`s. +Print *n* `"…"`s, pausing for 10 frames after each; interrupt if A or B is pressed. -## `$0D`: `link_wait_button` +## `$0D`: `text_linkwaitbutton` Wait for button press; show arrow. @@ -154,7 +119,7 @@ Write text from one of the following addresses (listed in [data/text_buffers.asm 6. `BattleMonNick` -## `$15`: `current_day` +## `$15`: `text_today` Print the weekday. @@ -164,6 +129,51 @@ Print the weekday. Write text from a different bank. -## `$00`: `text_start` +## `$50`: `text_end` + +Stops processing text commands. + -Start writing regular text again after a special command. +# Control characters + +These get interpreted in the context of printing regular text. Macros exist to conveniently place the control characters. + + +## `$00`: text text + +Start writing text until `"@"`. (Not actually a control character, but shorter than `text_start` followed by `db`.) + + +## `$4E`, `""`: next text + +Move a line down. + + +## `$4F`, `""`: line text + +Start writing at the bottom line. + + +## `$50`, `"@"`: page text + +Start a new Pokédex page. + + +## `$51`, `""`: para text + +Start a new paragraph. + + +## `$55`, `""`: cont text + +Scroll to the next line. + + +## `$57`, `""`: `done` + +End a text box. + + +## `$58`, `""`: `prompt` + +Prompt the player to end a text box (initiating some other event). -- cgit v1.2.3