pokeemerald/data/maps/Route109_SeashoreHouse/scripts.inc

178 lines
6.0 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_MapScripts::
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, Route109_SeashoreHouse_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_OnTransition:
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_SEASHORE_HOUSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_Owner::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-10-26 18:26:16 +02:00
goto_if_set FLAG_RECEIVED_6_SODA_POP, Route109_SeashoreHouse_EventScript_AlreadyReceivedSodaPop
goto_if_set FLAG_DEFEATED_SEASHORE_HOUSE, Route109_SeashoreHouse_EventScript_DefeatedTrainers
goto_if_set FLAG_TEMP_2, Route109_SeashoreHouse_EventScript_AlreadyGaveIntroduction
msgbox Route109_SeashoreHouse_Text_SeashoreHouseIntro, MSGBOX_DEFAULT
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_2
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_AlreadyGaveIntroduction::
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_ShowMeSomeHotMatches, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_DefeatedTrainers::
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_TakeTheseSodaPopBottles, MSGBOX_DEFAULT
giveitem ITEM_SODA_POP, 6
goto_if_eq VAR_RESULT, FALSE, Route109_SeashoreHouse_EventScript_BagFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_6_SODA_POP
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_BagFull::
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_BagFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_AlreadyReceivedSodaPop::
2021-08-05 18:46:11 +02:00
showmoneybox 0, 0
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_WantToBuySodaPop, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route109_SeashoreHouse_EventScript_BuySodaPop
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_ThatsTooBad, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
hidemoneybox
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_BuySodaPop::
2021-08-05 18:46:11 +02:00
checkmoney 300
goto_if_eq VAR_RESULT, FALSE, Route109_SeashoreHouse_EventScript_NotEnoughMoney
2021-08-05 18:46:11 +02:00
checkitemspace ITEM_SODA_POP
goto_if_eq VAR_RESULT, FALSE, Route109_SeashoreHouse_EventScript_NotEnoughSpace
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_HereYouGo, MSGBOX_DEFAULT
2021-08-05 18:46:11 +02:00
removemoney 300
updatemoneybox
giveitem ITEM_SODA_POP
2017-11-10 02:21:31 +01:00
hidemoneybox
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_NotEnoughMoney::
2019-10-26 18:26:16 +02:00
msgbox Route109_SeashoreHouse_Text_NotEnoughMoney, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
hidemoneybox
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_NotEnoughSpace::
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
hidemoneybox
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_Dwayne::
2019-10-26 18:26:16 +02:00
trainerbattle_single TRAINER_DWAYNE, Route109_SeashoreHouse_Text_DwayneIntro, Route109_SeashoreHouse_Text_DwayneDefeated, Route109_SeashoreHouse_EventScript_CheckTrainersCompletion
msgbox Route109_SeashoreHouse_Text_DwaynePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_Johanna::
2019-10-26 18:26:16 +02:00
trainerbattle_single TRAINER_JOHANNA, Route109_SeashoreHouse_Text_JohannaIntro, Route109_SeashoreHouse_Text_JohannaDefeated, Route109_SeashoreHouse_EventScript_CheckTrainersCompletion
msgbox Route109_SeashoreHouse_Text_JohannaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_Simon::
2019-10-26 18:26:16 +02:00
trainerbattle_single TRAINER_SIMON, Route109_SeashoreHouse_Text_SimonIntro, Route109_SeashoreHouse_Text_SimonDefeated, Route109_SeashoreHouse_EventScript_CheckTrainersCompletion
msgbox Route109_SeashoreHouse_Text_SimonPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_CheckTrainersCompletion::
2020-01-13 02:20:02 +01:00
goto_if_not_defeated TRAINER_DWAYNE, Route109_SeashoreHouse_EventScript_TrainersNotCompleted
goto_if_not_defeated TRAINER_JOHANNA, Route109_SeashoreHouse_EventScript_TrainersNotCompleted
goto_if_not_defeated TRAINER_SIMON, Route109_SeashoreHouse_EventScript_TrainersNotCompleted
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_SEASHORE_HOUSE
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_EventScript_TrainersNotCompleted::
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_SeashoreHouseIntro:
2018-12-07 16:41:08 +01:00
.string "I'm the owner of the SEASHORE HOUSE.\n"
2017-11-10 02:21:31 +01:00
.string "But you can call me MR. SEA!\p"
.string "What I love above all is to see hot\n"
.string "POKéMON battles.\p"
.string "Let me see that your heart burns hot!\p"
.string "If you can defeat all the TRAINERS\n"
2018-12-07 16:41:08 +01:00
.string "here, I'll reward your efforts.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_ShowMeSomeHotMatches:
2017-11-10 02:21:31 +01:00
.string "Show me some hot matches!\p"
.string "I run this SEASHORE HOUSE just for\n"
.string "that reason alone!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_TakeTheseSodaPopBottles:
2018-12-07 16:41:08 +01:00
.string "You're scorching hot!\n"
2017-11-10 02:21:31 +01:00
.string "Those battles blazed!\l"
2018-12-07 16:41:08 +01:00
.string "I'm more than just satisfied!\p"
2017-11-10 02:21:31 +01:00
.string "As thanks for showing me your hot\n"
.string "streak, I want you to take these.\p"
2018-12-07 16:41:08 +01:00
.string "It's half a dozen bottles of SODA POP!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_BagFull:
2018-12-07 16:41:08 +01:00
.string "Oh, but hey, your BAG's jammed full.\n"
.string "I'll hang on to these for you.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_WantToBuySodaPop:
2017-11-10 02:21:31 +01:00
.string "Want to buy some SODA POP?\n"
.string "POKéMON love it!\p"
.string "Just ¥300 a bottle!\n"
.string "Buy some!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_HereYouGo:
2017-11-10 02:21:31 +01:00
.string "Here you go!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_NotEnoughMoney:
2018-12-07 16:41:08 +01:00
.string "You don't have the money.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_ThatsTooBad:
2017-11-10 02:21:31 +01:00
.string "No?\n"
2018-12-07 16:41:08 +01:00
.string "That's too bad.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_DwayneIntro:
2018-12-07 16:41:08 +01:00
.string "If you're looking for a battle in the\n"
.string "SEASHORE HOUSE, you'll find no\l"
2017-11-10 02:21:31 +01:00
.string "hotter TRAINER than me, matey!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_DwayneDefeated:
2017-11-10 02:21:31 +01:00
.string "That was a hot battle!\n"
.string "I can accept that loss, matey!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_DwaynePostBattle:
2018-12-07 16:41:08 +01:00
.string "Whenever I'm in SLATEPORT, I enjoy\n"
2017-11-10 02:21:31 +01:00
.string "hot battles and ice-cold SODA POP!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_JohannaIntro:
2018-12-07 16:41:08 +01:00
.string "Boring battles aren't worth the effort.\p"
2017-11-10 02:21:31 +01:00
.string "Fiery hot battles are what toughen up\n"
.string "TRAINERS and POKéMON!$"
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_JohannaDefeated:
2018-12-07 16:41:08 +01:00
.string "That's hot!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_JohannaPostBattle:
2018-12-07 16:41:08 +01:00
.string "Whew, I'm all thirsty.\n"
.string "Maybe I'll have a SODA POP.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_SimonIntro:
2018-12-07 16:41:08 +01:00
.string "I'm going to show you how great\n"
.string "my POKéMON are, but don't cry!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_SimonDefeated:
2018-12-07 16:41:08 +01:00
.string "…I lost, but I won't cry…$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route109_SeashoreHouse_Text_SimonPostBattle:
2017-11-10 02:21:31 +01:00
.string "If one of my POKéMON knew the move\n"
.string "for carrying me across water on its\l"
.string "back, I could get rid of this inner tube.$"