pokeemerald/data/maps/Route117/scripts.inc

209 lines
6.8 KiB
PHP
Raw Normal View History

.set LOCALID_DAYCARE_MAN, 3
2021-07-20 21:18:31 +02:00
Route117_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route117_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route117_OnTransition:
2019-11-12 07:57:39 +01:00
call Route117_EventScript_TryMoveDayCareMan
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_TryMoveDayCareMan::
2019-11-12 07:57:39 +01:00
goto_if_unset FLAG_PENDING_DAYCARE_EGG, Route117_EventScript_StopMoveDayCareMan
setobjectxyperm LOCALID_DAYCARE_MAN, 47, 6
2021-07-20 21:18:31 +02:00
Route117_EventScript_StopMoveDayCareMan::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route117_EventScript_Woman::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_ArentTheseFlowersPretty, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_LittleBoy::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_AirIsTastyHere, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Girl::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_DayCarePokemonHadNewMove, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RouteSignVerdanturf::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_RouteSignVerdanturf, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RouteSignMauville::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_RouteSignMauville, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_DayCareSign::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_DayCareSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Isaac::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_ISAAC_1, Route117_Text_IsaacIntro, Route117_Text_IsaacDefeat, Route117_EventScript_RegisterIsaac
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchIsaac
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_IsaacPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterIsaac::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_IsaacRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ISAAC_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchIsaac::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_ISAAC_1, Route117_Text_IsaacRematchIntro, Route117_Text_IsaacRematchDefeat
msgbox Route117_Text_IsaacPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Lydia::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LYDIA_1, Route117_Text_LydiaIntro, Route117_Text_LydiaDefeat, Route117_EventScript_RegisterLydia
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchLydia
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_LydiaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterLydia::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_LydiaRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_LYDIA_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchLydia::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_LYDIA_1, Route117_Text_LydiaRematchIntro, Route117_Text_LydiaRematchDefeat
msgbox Route117_Text_LydiaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Dylan::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DYLAN_1, Route117_Text_DylanIntro, Route117_Text_DylanDefeat, Route117_EventScript_RegisterDylan
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchDylan
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_DylanPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterDylan::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_DylanRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_DYLAN_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchDylan::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_DYLAN_1, Route117_Text_DylanRematchIntro, Route117_Text_DylanRematchDefeat
msgbox Route117_Text_DylanPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Maria::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_MARIA_1, Route117_Text_MariaIntro, Route117_Text_MariaDefeat, Route117_EventScript_RegisterMaria
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchMaria
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_MariaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterMaria::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_MariaRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_MARIA_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchMaria::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_MARIA_1, Route117_Text_MariaRematchIntro, Route117_Text_MariaRematchDefeat
msgbox Route117_Text_MariaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Derek::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DEREK, Route117_Text_DerekIntro, Route117_Text_DerekDefeat
msgbox Route117_Text_DerekPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Anna::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_ANNA_AND_MEG_1, Route117_Text_AnnaIntro, Route117_Text_AnnaDefeat, Route117_Text_AnnaNotEnoughMons, Route117_EventScript_RegisterAnna
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchAnna
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_AnnaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterAnna::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_AnnaAndMegRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ANNA_AND_MEG_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchAnna::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch_double TRAINER_ANNA_AND_MEG_1, Route117_Text_AnnaRematchIntro, Route117_Text_AnnaRematchDefeat, Route117_Text_AnnaRematchNotEnoughMons
msgbox Route117_Text_AnnaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Meg::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_ANNA_AND_MEG_1, Route117_Text_MegIntro, Route117_Text_MegDefeat, Route117_Text_MegNotEnoughMons, Route117_EventScript_RegisterMeg
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route117_EventScript_RematchMeg
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_MegPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RegisterMeg::
2019-11-12 07:57:39 +01:00
msgbox Route117_Text_AnnaAndMegRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ANNA_AND_MEG_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_RematchMeg::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch_double TRAINER_ANNA_AND_MEG_1, Route117_Text_MegRematchIntro, Route117_Text_MegRematchDefeat, Route117_Text_MegRematchNotEnoughMons
msgbox Route117_Text_MegPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Melina::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_MELINA, Route117_Text_MelinaIntro, Route117_Text_MelinaDefeat
msgbox Route117_Text_MelinaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Brandi::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BRANDI, Route117_Text_BrandiIntro, Route117_Text_BrandiDefeat
msgbox Route117_Text_BrandiPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_EventScript_Aisha::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_AISHA, Route117_Text_AishaIntro, Route117_Text_AishaDefeat
msgbox Route117_Text_AishaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route117_Text_DayCarePokemonHadNewMove:
2017-11-10 02:21:31 +01:00
.string "I left my POKéMON at the DAY CARE.\p"
.string "When I got it back, it had a new move\n"
2018-12-07 16:41:08 +01:00
.string "that I didn't teach it.\l"
2017-11-10 02:21:31 +01:00
.string "I was really, really surprised.$"
2021-07-20 21:18:31 +02:00
Route117_Text_ArentTheseFlowersPretty:
2017-11-10 02:21:31 +01:00
.string "What do you think?\n"
2018-12-07 16:41:08 +01:00
.string "Aren't these flowers pretty?\p"
2017-11-10 02:21:31 +01:00
.string "I planted them all!$"
2021-07-20 21:18:31 +02:00
Route117_Text_AirIsTastyHere:
2017-11-10 02:21:31 +01:00
.string "The air is tasty here!$"
2021-07-20 21:18:31 +02:00
Route117_Text_RouteSignVerdanturf:
2017-11-10 02:21:31 +01:00
.string "ROUTE 117\n"
.string "{LEFT_ARROW} VERDANTURF TOWN$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route117_Text_RouteSignMauville:
2017-11-10 02:21:31 +01:00
.string "ROUTE 117\n"
.string "{RIGHT_ARROW} MAUVILLE CITY$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route117_Text_DayCareSign:
2017-11-10 02:21:31 +01:00
.string "POKéMON DAY CARE\n"
.string "“Let us raise your POKéMON.”$"