pokered/scripts/CeladonDiner.asm

67 lines
1.1 KiB
NASM
Raw Normal View History

CeladonDiner_Script:
2014-05-18 18:19:10 +00:00
call EnableAutoTextBoxDrawing
ret
CeladonDiner_TextPointers:
2014-05-18 18:19:10 +00:00
dw CeladonDinerText1
dw CeladonDinerText2
dw CeladonDinerText3
dw CeladonDinerText4
dw CeladonDinerText5
2016-06-12 00:24:04 +00:00
CeladonDinerText1:
text_far _CeladonDinerText1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CeladonDinerText2:
text_far _CeladonDinerText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CeladonDinerText3:
text_far _CeladonDinerText3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CeladonDinerText4:
text_far _CeladonDinerText4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CeladonDinerText5:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_COIN_CASE
jr nz, .got_item
2014-05-18 18:19:10 +00:00
ld hl, CeladonDinerText_491a7
call PrintText
2015-08-05 21:20:29 +00:00
lb bc, COIN_CASE, 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_COIN_CASE
2014-05-18 18:19:10 +00:00
ld hl, ReceivedCoinCaseText
call PrintText
jr .done
.bag_full
2014-05-18 18:19:10 +00:00
ld hl, CoinCaseNoRoomText
call PrintText
jr .done
.got_item
2014-05-18 18:19:10 +00:00
ld hl, CeladonDinerText_491b7
call PrintText
.done
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
CeladonDinerText_491a7:
text_far _CeladonDinerText_491a7
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
ReceivedCoinCaseText:
text_far _ReceivedCoinCaseText
sound_get_key_item
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CoinCaseNoRoomText:
text_far _CoinCaseNoRoomText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CeladonDinerText_491b7:
text_far _CeladonDinerText_491b7
text_end