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

133 lines
3.3 KiB
NASM

CeladonCity_Script:
call EnableAutoTextBoxDrawing
ResetEvents EVENT_1B8, EVENT_1BF
ResetEvent EVENT_67F
ret
CeladonCity_TextPointers:
def_text_pointers
dw_const CeladonCityLittleGirlText, TEXT_CELADONCITY_LITTLE_GIRL
dw_const CeladonCityGramps1Text, TEXT_CELADONCITY_GRAMPS1
dw_const CeladonCityGirlText, TEXT_CELADONCITY_GIRL
dw_const CeladonCityGramps2Text, TEXT_CELADONCITY_GRAMPS2
dw_const CeladonCityGramps3Text, TEXT_CELADONCITY_GRAMPS3
dw_const CeladonCityFisherText, TEXT_CELADONCITY_FISHER
dw_const CeladonCityPoliwrathText, TEXT_CELADONCITY_POLIWRATH
dw_const CeladonCityRocket1Text, TEXT_CELADONCITY_ROCKET1
dw_const CeladonCityRocket2Text, TEXT_CELADONCITY_ROCKET2
dw_const CeladonCityTrainerTips1Text, TEXT_CELADONCITY_TRAINER_TIPS1
dw_const CeladonCitySignText, TEXT_CELADONCITY_SIGN
dw_const PokeCenterSignText, TEXT_CELADONCITY_POKECENTER_SIGN
dw_const CeladonCityGymSignText, TEXT_CELADONCITY_GYM_SIGN
dw_const CeladonCityMansionSignText, TEXT_CELADONCITY_MANSION_SIGN
dw_const CeladonCityDeptStoreSignText, TEXT_CELADONCITY_DEPTSTORE_SIGN
dw_const CeladonCityTrainerTips2Text, TEXT_CELADONCITY_TRAINER_TIPS2
dw_const CeladonCityPrizeExchangeSignText, TEXT_CELADONCITY_PRIZEEXCHANGE_SIGN
dw_const CeladonCityGameCornerSignText, TEXT_CELADONCITY_GAMECORNER_SIGN
CeladonCityLittleGirlText:
text_far _CeladonCityLittleGirlText
text_end
CeladonCityGramps1Text:
text_far _CeladonCityGramps1Text
text_end
CeladonCityGirlText:
text_far _CeladonCityGirlText
text_end
CeladonCityGramps2Text:
text_far _CeladonCityGramps2Text
text_end
CeladonCityGramps3Text:
text_asm
CheckEvent EVENT_GOT_TM41
jr nz, .gotTM41
ld hl, .Text
call PrintText
lb bc, TM_SOFTBOILED, 1
call GiveItem
jr c, .Success
ld hl, .TM41NoRoomText
call PrintText
jr .Done
.Success
ld hl, .ReceivedTM41Text
call PrintText
SetEvent EVENT_GOT_TM41
jr .Done
.gotTM41
ld hl, .TM41ExplanationText
call PrintText
.Done
jp TextScriptEnd
.Text:
text_far _CeledonCityGramps3Text
text_end
.ReceivedTM41Text:
text_far _CeledonCityGramps3ReceivedTM41Text
sound_get_item_1
text_end
.TM41ExplanationText:
text_far _CeledonCityGramps3TM41ExplanationText
text_end
.TM41NoRoomText:
text_far _CeledonCityGramps3TM41NoRoomText
text_end
CeladonCityFisherText:
text_far _CeladonCityFisherText
text_end
CeladonCityPoliwrathText:
text_far _CeladonCityPoliwrathText
text_asm
ld a, POLIWRATH
call PlayCry
jp TextScriptEnd
CeladonCityRocket1Text:
text_far _CeladonCityRocket1Text
text_end
CeladonCityRocket2Text:
text_far _CeladonCityRocket2Text
text_end
CeladonCityTrainerTips1Text:
text_far _CeladonCityTrainerTips1Text
text_end
CeladonCitySignText:
text_far _CeladonCitySignText
text_end
CeladonCityGymSignText:
text_far _CeladonCityGymSignText
text_end
CeladonCityMansionSignText:
text_far _CeladonCityMansionSignText
text_end
CeladonCityDeptStoreSignText:
text_far _CeladonCityDeptStoreSignText
text_end
CeladonCityTrainerTips2Text:
text_far _CeladonCityTrainerTips2Text
text_end
CeladonCityPrizeExchangeSignText:
text_far _CeladonCityPrizeExchangeSignText
text_end
CeladonCityGameCornerSignText:
text_far _CeladonCityGameCornerSignText
text_end