ref: 2b2ed54bbf017943ba2343cd6c1dbe88b8f34a4e
dir: /macros/scripts/text.asm/
text EQUS "db TX_START," ; Start writing text. next EQUS "db \"<NEXT>\"," ; Move a line down. line EQUS "db \"<LINE>\"," ; Start writing at the bottom line. para EQUS "db \"<PARA>\"," ; Start a new paragraph. cont EQUS "db \"<CONT>\"," ; Scroll to the next line. done EQUS "db \"<DONE>\"" ; End a text box. prompt EQUS "db \"<PROMPT>\"" ; Prompt the player to end a text box (initiating some other event). page EQUS "db \"<PAGE>\"," ; Start a new Pokédex page. dex EQUS "db \"<DEXEND>\", \"@\"" ; End a Pokédex entry. ; TextCommandJumpTable indexes (see home/text.asm) enum_start enum TX_START ; $00 text_start: MACRO db TX_START ENDM enum TX_RAM ; $01 text_ram: MACRO db TX_RAM dw \1 ; address to read from ENDM enum TX_BCD ; $02 text_bcd: MACRO db TX_BCD dw \1 ; address to read from db \2 ; number of bytes + print flags ENDM enum TX_MOVE ; $03 text_move: MACRO db TX_MOVE dw \1 ; address of the new location ENDM enum TX_BOX ; $04 text_box: MACRO ; draw box db TX_BOX dw \1 ; address of upper left corner db \2, \3 ; height, width ENDM enum TX_LOW ; $05 text_low: MACRO db TX_LOW ENDM enum TX_PROMPT_BUTTON ; $06 text_promptbutton: MACRO db TX_PROMPT_BUTTON ENDM enum TX_SCROLL ; $07 text_scroll: MACRO db TX_SCROLL ENDM enum TX_START_ASM ; $08 text_asm: MACRO db TX_START_ASM ENDM enum TX_NUM ; $09 text_decimal: MACRO ; print a big-endian decimal number. db TX_NUM dw \1 ; address to read from dn \2, \3 ; number of bytes to read, number of digits to display ENDM enum TX_PAUSE ; $0a text_pause: MACRO db TX_PAUSE ENDM enum TX_SOUND_GET_ITEM_1 ; $0b sound_get_item_1: MACRO db TX_SOUND_GET_ITEM_1 ENDM TX_SOUND_LEVEL_UP EQU TX_SOUND_GET_ITEM_1 sound_level_up EQUS "sound_get_item_1" enum TX_DOTS ; $0c text_dots: MACRO db TX_DOTS db \1 ; number of ellipses to draw ENDM enum TX_LINK_PROMPT_BUTTON ; $0d text_linkpromptbutton: MACRO db TX_LINK_PROMPT_BUTTON ENDM enum TX_SOUND_POKEDEX_RATING ; $0e sound_pokedex_rating: MACRO db TX_SOUND_POKEDEX_RATING ENDM enum TX_SOUND_GET_ITEM_1_DUPLICATE ; $0f sound_get_item_1_duplicate: MACRO db TX_SOUND_GET_ITEM_1_DUPLICATE ENDM enum TX_SOUND_GET_ITEM_2 ; $10 sound_get_item_2: MACRO db TX_SOUND_GET_ITEM_2 ENDM enum TX_SOUND_GET_KEY_ITEM ; $11 sound_get_key_item: MACRO db TX_SOUND_GET_KEY_ITEM ENDM enum TX_SOUND_CAUGHT_MON ; $12 sound_caught_mon: MACRO db TX_SOUND_CAUGHT_MON ENDM enum TX_SOUND_DEX_PAGE_ADDED ; $13 sound_dex_page_added: MACRO db TX_SOUND_DEX_PAGE_ADDED ENDM enum TX_SOUND_CRY_NIDORINA ; $14 sound_cry_nidorina: MACRO db TX_SOUND_CRY_NIDORINA ENDM enum TX_SOUND_CRY_PIDGEOT ; $15 sound_cry_pidgeot: MACRO db TX_SOUND_CRY_PIDGEOT ENDM enum TX_SOUND_CRY_DEWGONG ; $16 sound_cry_dewgong: MACRO db TX_SOUND_CRY_DEWGONG ENDM enum TX_FAR ; $17 text_far: MACRO db TX_FAR dab \1 ; address of text commands ENDM enum_set $50 enum TX_END ; $50 text_end: MACRO db TX_END ENDM ; Text script IDs (see home/text_script.asm) enum_set $f5 enum TX_SCRIPT_VENDING_MACHINE ; $f5 script_vending_machine: MACRO db TX_SCRIPT_VENDING_MACHINE ENDM enum TX_SCRIPT_CABLE_CLUB_RECEPTIONIST ; $f6 script_cable_club_receptionist: MACRO db TX_SCRIPT_CABLE_CLUB_RECEPTIONIST ENDM enum TX_SCRIPT_PRIZE_VENDOR ; $f7 script_prize_vendor: MACRO db TX_SCRIPT_PRIZE_VENDOR ENDM enum_set $f9 enum TX_SCRIPT_POKECENTER_PC ; $f9 script_pokecenter_pc: MACRO db TX_SCRIPT_POKECENTER_PC ENDM enum_set $fc enum TX_SCRIPT_PLAYERS_PC ; $fc script_players_pc: MACRO db TX_SCRIPT_PLAYERS_PC ENDM enum TX_SCRIPT_BILLS_PC ; $fd script_bills_pc: MACRO db TX_SCRIPT_BILLS_PC ENDM enum TX_SCRIPT_MART ; $fe script_mart: MACRO db TX_SCRIPT_MART db _NARG ; number of items rept _NARG db \1 ; item id shift endr db -1 ; end ENDM enum TX_SCRIPT_POKECENTER_NURSE ; $ff script_pokecenter_nurse: MACRO db TX_SCRIPT_POKECENTER_NURSE ENDM