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

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