mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
d001ced41b
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.
53 lines
999 B
NASM
53 lines
999 B
NASM
Route1_Script:
|
|
jp EnableAutoTextBoxDrawing
|
|
|
|
Route1_TextPointers:
|
|
def_text_pointers
|
|
dw_const Route1Youngster1Text, TEXT_ROUTE1_YOUNGSTER1
|
|
dw_const Route1Youngster2Text, TEXT_ROUTE1_YOUNGSTER2
|
|
dw_const Route1SignText, TEXT_ROUTE1_SIGN
|
|
|
|
Route1Youngster1Text:
|
|
text_asm
|
|
CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
|
|
jr nz, .got_item
|
|
ld hl, .MartSampleText
|
|
call PrintText
|
|
lb bc, POTION, 1
|
|
call GiveItem
|
|
jr nc, .bag_full
|
|
ld hl, .GotPotionText
|
|
jr .done
|
|
.bag_full
|
|
ld hl, .NoRoomText
|
|
jr .done
|
|
.got_item
|
|
ld hl, .AlsoGotPokeballsText
|
|
.done
|
|
call PrintText
|
|
jp TextScriptEnd
|
|
|
|
.MartSampleText:
|
|
text_far _Route1Youngster1MartSampleText
|
|
text_end
|
|
|
|
.GotPotionText:
|
|
text_far _Route1Youngster1GotPotionText
|
|
sound_get_item_1
|
|
text_end
|
|
|
|
.AlsoGotPokeballsText:
|
|
text_far _Route1Youngster1AlsoGotPokeballsText
|
|
text_end
|
|
|
|
.NoRoomText:
|
|
text_far _Route1Youngster1NoRoomText
|
|
text_end
|
|
|
|
Route1Youngster2Text:
|
|
text_far _Route1Youngster2Text
|
|
text_end
|
|
|
|
Route1SignText:
|
|
text_far _Route1SignText
|
|
text_end
|