pokeemerald/data/maps/MauvilleCity_House2/scripts.inc

69 lines
2.0 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
MauvilleCity_House2_MapScripts:: @ 8210C5C
.byte 0
MauvilleCity_House2_EventScript_210C5D:: @ 8210C5D
lock
faceplayer
2019-01-02 22:12:43 +01:00
goto_if_set FLAG_RECEIVED_COIN_CASE, MauvilleCity_House2_EventScript_210CDA
msgbox MauvilleCity_House2_Text_210CEE, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
checkitem ITEM_HARBOR_MAIL, 1
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq MauvilleCity_House2_EventScript_210C82
2017-11-10 02:21:31 +01:00
release
end
MauvilleCity_House2_EventScript_210C82:: @ 8210C82
playse SE_PIN
applymovement VAR_LAST_TALKED, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement VAR_LAST_TALKED, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox MauvilleCity_House2_Text_210D76, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq MauvilleCity_House2_EventScript_210CB8
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq MauvilleCity_House2_EventScript_210CE4
2017-11-10 02:21:31 +01:00
end
MauvilleCity_House2_EventScript_210CB8:: @ 8210CB8
msgbox MauvilleCity_House2_Text_210DB3, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
takeitem ITEM_HARBOR_MAIL, 1
giveitem_std ITEM_COIN_CASE
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_COIN_CASE
2017-11-10 02:21:31 +01:00
goto MauvilleCity_House2_EventScript_210CDA
end
MauvilleCity_House2_EventScript_210CDA:: @ 8210CDA
msgbox MauvilleCity_House2_Text_210DE7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
MauvilleCity_House2_EventScript_210CE4:: @ 8210CE4
msgbox MauvilleCity_House2_Text_210E16, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
MauvilleCity_House2_Text_210CEE: @ 8210CEE
2018-12-07 16:41:08 +01:00
.string "If I had a BIKE, it'd be easy to cycle to\n"
2017-11-10 02:21:31 +01:00
.string "SLATEPORT for some shopping.\p"
2018-12-07 16:41:08 +01:00
.string "I'd be able to buy HARBOR MAIL at the\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON MART in SLATEPORT…$"
MauvilleCity_House2_Text_210D76: @ 8210D76
.string "Oh! You have HARBOR MAIL?\n"
.string "Will you trade it for a COIN CASE?$"
MauvilleCity_House2_Text_210DB3: @ 8210DB3
2018-12-07 16:41:08 +01:00
.string "Oh, I'm so happy!\n"
.string "Okay, I'll trade you a COIN CASE!$"
2017-11-10 02:21:31 +01:00
MauvilleCity_House2_Text_210DE7: @ 8210DE7
.string "That COIN CASE can be used\n"
.string "at the GAME CORNER.$"
MauvilleCity_House2_Text_210E16: @ 8210E16
2018-12-07 16:41:08 +01:00
.string "Oh, that's disappointing.\p"
2017-11-10 02:21:31 +01:00
.string "A COIN CASE is needed for the\n"
.string "GAME CORNER.$"