mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +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.
36 lines
850 B
NASM
36 lines
850 B
NASM
LavenderCuboneHouse_Script:
|
|
call EnableAutoTextBoxDrawing
|
|
ret
|
|
|
|
LavenderCuboneHouse_TextPointers:
|
|
def_text_pointers
|
|
dw_const LavenderCuboneHouseCuboneText, TEXT_LAVENDERCUBONEHOUSE_CUBONE
|
|
dw_const LavenderCuboneHouseBrunetteGirlText, TEXT_LAVENDERCUBONEHOUSE_BRUNETTE_GIRL
|
|
|
|
LavenderCuboneHouseCuboneText:
|
|
text_far _LavenderCuboneHouseCuboneText
|
|
text_asm
|
|
ld a, CUBONE
|
|
call PlayCry
|
|
jp TextScriptEnd
|
|
|
|
LavenderCuboneHouseBrunetteGirlText:
|
|
text_asm
|
|
CheckEvent EVENT_RESCUED_MR_FUJI
|
|
jr nz, .rescued_mr_fuji
|
|
ld hl, .PoorCubonesMotherText
|
|
call PrintText
|
|
jr .done
|
|
.rescued_mr_fuji
|
|
ld hl, .TheGhostIsGoneText
|
|
call PrintText
|
|
.done
|
|
jp TextScriptEnd
|
|
|
|
.PoorCubonesMotherText:
|
|
text_far _LavenderCuboneHouseBrunetteGirlPoorCubonesMotherText
|
|
text_end
|
|
|
|
.TheGhostIsGoneText:
|
|
text_far _LavenderCuboneHouseBrunetteGirlGhostIsGoneText
|
|
text_end
|