pokered/scripts/PewterMart.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00

31 lines
602 B
NASM

PewterMart_Script:
call EnableAutoTextBoxDrawing
ld a, TRUE
ld [wAutoTextBoxDrawingControl], a
ret
PewterMart_TextPointers:
def_text_pointers
dw_const PewterMartClerkText, TEXT_PEWTERMART_CLERK
dw_const PewterMartYoungsterText, TEXT_PEWTERMART_YOUNGSTER
dw_const PewterMartSuperNerdText, TEXT_PEWTERMART_SUPER_NERD
PewterMartYoungsterText:
text_asm
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text:
text_far _PewterMartYoungsterText
text_end
PewterMartSuperNerdText:
text_asm
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text:
text_far _PewterMartSuperNerdText
text_end