pokered/scripts/Route18Gate2F.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

33 lines
780 B
NASM

Route18Gate2F_Script:
jp DisableAutoTextBoxDrawing
Route18Gate2F_TextPointers:
def_text_pointers
dw_const Route18Gate2FYoungsterText, TEXT_ROUTE18GATE2F_YOUNGSTER
dw_const Route18Gate2FLeftBinocularsText, TEXT_ROUTE18GATE2F_LEFT_BINOCULARS
dw_const Route18Gate2FRightBinocularsText, TEXT_ROUTE18GATE2F_RIGHT_BINOCULARS
Route18Gate2FYoungsterText:
text_asm
ld a, TRADE_FOR_MARC
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
Route18Gate2FLeftBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
.Text:
text_far _Route18Gate2FLeftBinocularsText
text_end
Route18Gate2FRightBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
.Text:
text_far _Route18Gate2FRightBinocularsText
text_end