diff options
| author | vulcandth <vulcandth@gmail.com> | 2023-07-13 20:27:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-13 21:27:56 -0400 |
| commit | d001ced41b53271373753de835a9c3b3413dc318 (patch) | |
| tree | ff2db7f403bddfcdeb12e50def8411cafedcdd5e /scripts/Route2Gate.asm | |
| parent | Make wCurrentBoxNum a byte instead of word (#414) (diff) | |
| download | pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.gz pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.xz pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.zip | |
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.
Diffstat (limited to 'scripts/Route2Gate.asm')
| -rw-r--r-- | scripts/Route2Gate.asm | 17 |
1 files changed, 9 insertions, 8 deletions
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 |
