mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
65 lines
1.2 KiB
NASM
65 lines
1.2 KiB
NASM
SafariZoneEastRestHouse_Script:
|
|
call EnableAutoTextBoxDrawing
|
|
ret
|
|
|
|
SafariZoneEastRestHouse_TextPointers:
|
|
dw SafariZoneRestHouse3Text1
|
|
dw SafariZoneRestHouse3Text2
|
|
dw SafariZoneRestHouse3Text3
|
|
dw SafariZoneRestHouse3Meltan
|
|
|
|
SafariZoneRestHouse3Text1:
|
|
text_far _SafariZoneRestHouse3Text1
|
|
text_end
|
|
|
|
SafariZoneRestHouse3Text2:
|
|
text_far _SafariZoneRestHouse3Text2
|
|
text_end
|
|
|
|
SafariZoneRestHouse3Text3:
|
|
text_far _SafariZoneRestHouse3Text3
|
|
text_end
|
|
|
|
SafariZoneRestHouse3Meltan:
|
|
; Meltan Guy
|
|
; Originally, he was just going to give Meltan.
|
|
; But later on, we added the Mystery Box from GO for something more accurate, and for a possible Living Dex.
|
|
text_asm
|
|
CheckEvent EVENT_GOT_MELTAN
|
|
jr nz, .got_item
|
|
ld hl, MeltanGuyText
|
|
call PrintText
|
|
lb bc, MYSTERY_BOX, 1
|
|
call GiveItem
|
|
jr nc, .bag_full
|
|
ld hl, ReceivedBoxText
|
|
call PrintText
|
|
ld a, SFX_GET_ITEM_1
|
|
call PlaySound
|
|
SetEvent EVENT_GOT_MELTAN
|
|
jr .done
|
|
.bag_full
|
|
ld hl, BoxNoRoom
|
|
call PrintText
|
|
jr .done
|
|
.got_item
|
|
ld hl, MeltanInfo
|
|
call PrintText
|
|
.done
|
|
jp TextScriptEnd
|
|
|
|
MeltanGuyText:
|
|
text_far _MeltanGuyText
|
|
text_end
|
|
|
|
MeltanInfo:
|
|
text_far _MeltanInfo
|
|
text_end
|
|
|
|
ReceivedBoxText:
|
|
text_far _ReceivedBoxText
|
|
text_end
|
|
|
|
BoxNoRoom:
|
|
text_far _BoxNoRoom
|
|
text_end |