pokered/scripts/Route16FlyHouse.asm

57 lines
1.1 KiB
NASM
Raw Permalink Normal View History

Route16FlyHouse_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
Route16FlyHouse_TextPointers:
def_text_pointers
dw_const Route16FlyHouseBrunetteGirlText, TEXT_ROUTE16FLYHOUSE_BRUNETTE_GIRL
dw_const Route16FlyHouseFearowText, TEXT_ROUTE16FLYHOUSE_FEAROW
2014-05-18 18:19:10 +00:00
Route16FlyHouseBrunetteGirlText:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_HM02
ld hl, .HM02ExplanationText
jr nz, .got_item
ld hl, .Text
2014-05-18 18:19:10 +00:00
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, HM_FLY, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_HM02
ld hl, .ReceivedHM02Text
jr .got_item
.bag_full
ld hl, .HM02NoRoomText
.got_item
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
.Text:
text_far _Route16FlyHouseBrunetteGirlText
text_end
2014-05-18 18:19:10 +00:00
.ReceivedHM02Text:
text_far _Route16FlyHouseBrunetteGirlReceivedHM02Text
sound_get_key_item
text_end
2014-05-18 18:19:10 +00:00
.HM02ExplanationText:
text_far _Route16FlyHouseBrunetteGirlHM02ExplanationText
text_end
2014-05-18 18:19:10 +00:00
.HM02NoRoomText:
text_far _Route16FlyHouseBrunetteGirlHM02NoRoomText
text_end
2014-05-18 18:19:10 +00:00
Route16FlyHouseFearowText:
text_asm
ld hl, .Text
2014-05-18 18:19:10 +00:00
call PrintText
ld a, FEAROW
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd
.Text:
text_far _Route16FlyHouseFearowText
text_end