2019-01-01 20:06:23 +00:00
|
|
|
CeladonDiner_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
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:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText1
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText2
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText3
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText4:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText4
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText5:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2015-07-21 17:36:03 +00:00
|
|
|
CheckEvent EVENT_GOT_COIN_CASE
|
2020-07-16 15:19:05 +00:00
|
|
|
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
|
2020-07-16 15:19:05 +00:00
|
|
|
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
|
2020-07-16 15:19:05 +00:00
|
|
|
jr .done
|
|
|
|
.bag_full
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, CoinCaseNoRoomText
|
|
|
|
call PrintText
|
2020-07-16 15:19:05 +00:00
|
|
|
jr .done
|
|
|
|
.got_item
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, CeladonDinerText_491b7
|
|
|
|
call PrintText
|
2020-07-16 15:19:05 +00:00
|
|
|
.done
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText_491a7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText_491a7
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
ReceivedCoinCaseText:
|
2020-07-04 21:09:35 +00:00
|
|
|
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:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CoinCaseNoRoomText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
CeladonDinerText_491b7:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _CeladonDinerText_491b7
|
|
|
|
text_end
|