pokeyellow/scripts/Route16Gate2F.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

48 lines
1014 B
NASM

Route16Gate2F_Script:
jp DisableAutoTextBoxDrawing
Route16Gate2F_TextPointers:
def_text_pointers
dw_const Route16Gate2FLittleBoyText, TEXT_ROUTE16GATE2F_LITTLE_BOY
dw_const Route16Gate2FLittleGirlText, TEXT_ROUTE16GATE2F_LITTLE_GIRL
dw_const Route16Gate2FLeftBinocularsText, TEXT_ROUTE16GATE2F_LEFT_BINOCULARS
dw_const Route16Gate2FRightBinocularsText, TEXT_ROUTE16GATE2F_RIGHT_BINOCULARS
Route16Gate2FLittleBoyText:
text_asm
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text:
text_far _Route16Gate2FLittleBoyText
text_end
Route16Gate2FLittleGirlText:
text_asm
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text:
text_far _Route16Gate2FLittleGirlText
text_end
Route16Gate2FLeftBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
.Text:
text_far _Route16Gate2FLeftBinocularsText
text_end
Route16Gate2FRightBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
.Text:
text_far _Route16Gate2FRightBinocularsText
text_end