pokered/scripts/SafariZoneSecretHouse.asm

47 lines
981 B
NASM
Raw Permalink Normal View History

SafariZoneSecretHouse_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
SafariZoneSecretHouse_TextPointers:
def_text_pointers
dw_const SafariZoneSecretHouseFishingGuruText, TEXT_SAFARIZONESECRETHOUSE_FISHING_GURU
2014-05-18 18:19:10 +00:00
SafariZoneSecretHouseFishingGuruText:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_HM03
jr nz, .got_item
ld hl, .YouHaveWonText
2014-05-18 18:19:10 +00:00
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, HM_SURF, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
ld hl, .ReceivedHM03Text
2014-05-18 18:19:10 +00:00
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_HM03
jr .done
.bag_full
ld hl, .HM03NoRoomText
2014-05-18 18:19:10 +00:00
call PrintText
jr .done
.got_item
ld hl, .HM03ExplanationText
2014-05-18 18:19:10 +00:00
call PrintText
.done
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
.YouHaveWonText:
text_far _SafariZoneSecretHouseFishingGuruYouHaveWonText
text_end
2014-05-18 18:19:10 +00:00
.ReceivedHM03Text:
text_far _SafariZoneSecretHouseFishingGuruReceivedHM03Text
sound_get_item_1
text_end
2014-05-18 18:19:10 +00:00
.HM03ExplanationText:
text_far _SafariZoneSecretHouseFishingGuruHM03ExplanationText
text_end
2014-05-18 18:19:10 +00:00
.HM03NoRoomText:
text_far _SafariZoneSecretHouseFishingGuruHM03NoRoomText
text_end