From d001ced41b53271373753de835a9c3b3413dc318 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Thu, 13 Jul 2023 20:27:56 -0500 Subject: 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. --- scripts/Route2Gate.asm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'scripts/Route2Gate.asm') diff --git a/scripts/Route2Gate.asm b/scripts/Route2Gate.asm index 60f6ffe1..a198dbd7 100644 --- a/scripts/Route2Gate.asm +++ b/scripts/Route2Gate.asm @@ -2,10 +2,11 @@ Route2Gate_Script: jp EnableAutoTextBoxDrawing Route2Gate_TextPointers: - dw Route2GateText1 - dw Route2GateText2 + def_text_pointers + dw_const Route2GateOaksAideText, TEXT_ROUTE2GATE_OAKS_AIDE + dw_const Route2GateYoungsterText, TEXT_ROUTE2GATE_YOUNGSTER -Route2GateText1: +Route2GateOaksAideText: text_asm CheckEvent EVENT_GOT_HM05 jr nz, .got_item @@ -25,15 +26,15 @@ Route2GateText1: jr nz, .no_item SetEvent EVENT_GOT_HM05 .got_item - ld hl, Route2GateText_5d616 + ld hl, .FlashExplanationText call PrintText .no_item jp TextScriptEnd -Route2GateText_5d616: - text_far _Route2GateText_5d616 +.FlashExplanationText: + text_far _Route2GateOaksAideFlashExplanationText text_end -Route2GateText2: - text_far _Route2GateText2 +Route2GateYoungsterText: + text_far _Route2GateYoungsterText text_end -- cgit v1.3.1-sl0p