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

22 lines
620 B
NASM

CeladonMansionRoofHouse_Script:
jp EnableAutoTextBoxDrawing
CeladonMansionRoofHouse_TextPointers:
def_text_pointers
dw_const CeladonMansionRoofHouseHikerText, TEXT_CELADONMANSION_ROOF_HOUSE_HIKER
dw_const CeladonMansionRoofHouseEeveePokeballText, TEXT_CELADONMANSION_ROOF_HOUSE_EEVEE_POKEBALL
CeladonMansionRoofHouseHikerText:
text_far _CeladonMansionRoofHouseHikerText
text_end
CeladonMansionRoofHouseEeveePokeballText:
text_asm
lb bc, EEVEE, 25
call GivePokemon
jr nc, .party_full
ld a, HS_CELADON_MANSION_EEVEE_GIFT
ld [wMissableObjectIndex], a
predef HideObject
.party_full
jp TextScriptEnd