pokeemerald/data/maps/Route114/scripts.inc

212 lines
6.7 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route114_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route114_OnTransition
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route114_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route114_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route114_OnTransition:
2019-12-02 01:19:47 +01:00
compare VAR_SHOULD_END_ABNORMAL_WEATHER, 1
call_if_eq AbnormalWeather_EventScript_HideMapNamePopup
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_NORTH
call_if_eq AbnormalWeather_StartGroudonWeather
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_SOUTH
call_if_eq AbnormalWeather_StartGroudonWeather
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_OnLoad:
2019-12-02 01:19:47 +01:00
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_NORTH
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute114North
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_SOUTH
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute114South
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_OnFrame:
2019-12-02 01:19:47 +01:00
map_script_2 VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_EndEventAndCleanup_1
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
Route114_EventScript_Man::
2017-11-10 02:21:31 +01:00
lock
faceplayer
dotimebasedevents
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_DAILY_ROUTE_114_RECEIVED_BERRY, Route114_EventScript_ReceivedBerry
msgbox Route114_Text_LoveUsingBerryCrushShareBerry, MSGBOX_DEFAULT
random NUM_ROUTE_114_MAN_BERRIES
addvar VAR_RESULT, NUM_ROUTE_114_MAN_BERRIES_SKIPPED
2019-09-16 05:47:07 +02:00
addvar VAR_RESULT, FIRST_BERRY_INDEX
giveitem VAR_RESULT
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-03 02:54:55 +01:00
setflag FLAG_DAILY_ROUTE_114_RECEIVED_BERRY
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_TryBerryCrushWithFriends, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_ReceivedBerry::
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_FunToThinkAboutBerries, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_RoarGentleman::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_RECEIVED_TM05, Route114_EventScript_ReceivedRoar
msgbox Route114_Text_AllMyMonDoesIsRoarTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM05
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM05
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_ExplainRoar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_ReceivedRoar::
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_ExplainRoar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Poochyena::
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
playmoncry SPECIES_POOCHYENA, 2
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_Poochyena, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_MeteorFallsSign::
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_MeteorFallsSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_FossilManiacsHouseSign::
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_FossilManiacsHouseSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_LanettesHouseSign::
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_LanettesHouse, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Lenny::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LENNY, Route114_Text_LennyIntro, Route114_Text_LennyDefeat
msgbox Route114_Text_LennyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Lucas::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LUCAS_1, Route114_Text_LucasIntro, Route114_Text_LucasDefeat
msgbox Route114_Text_LucasPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Shane::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_SHANE, Route114_Text_ShaneIntro, Route114_Text_ShaneDefeat
msgbox Route114_Text_ShanePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Nancy::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_NANCY, Route114_Text_NancyIntro, Route114_Text_NancyDefeat
msgbox Route114_Text_NancyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Steve::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_STEVE_1, Route114_Text_SteveIntro, Route114_Text_SteveDefeat, Route114_EventScript_RegisterSteve
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route114_EventScript_RematchSteve
msgbox Route114_Text_StevePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_RegisterSteve::
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 Route114_Text_SteveRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_STEVE_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_RematchSteve::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_STEVE_1, Route114_Text_SteveRematchIntro, Route114_Text_SteveRematchDefeat
msgbox Route114_Text_StevePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Bernie::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BERNIE_1, Route114_Text_BernieIntro, Route114_Text_BernieDefeat, Route114_EventScript_RegisterBernie
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route114_EventScript_RematchBernie
msgbox Route114_Text_BerniePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_RegisterBernie::
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 Route114_Text_BernieRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_BERNIE_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_RematchBernie::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_BERNIE_1, Route114_Text_BernieRematchIntro, Route114_Text_BernieRematchDefeat
msgbox Route114_Text_BerniePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Claude::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CLAUDE, Route114_Text_ClaudeIntro, Route114_Text_ClaudeDefeat
msgbox Route114_Text_ClaudePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Nolan::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_NOLAN, Route114_Text_NolanIntro, Route114_Text_NolanDefeat
msgbox Route114_Text_NolanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Tyra::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_TYRA_AND_IVY, Route114_Text_TyraIntro, Route114_Text_TyraDefeat, Route114_Text_TyraNotEnoughMons
msgbox Route114_Text_TyraPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Ivy::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_TYRA_AND_IVY, Route114_Text_IvyIntro, Route114_Text_IvyDefeat, Route114_Text_IvyNotEnoughMons
msgbox Route114_Text_IvyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Angelina::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_ANGELINA, Route114_Text_AngelinaIntro, Route114_Text_AngelinaDefeat
msgbox Route114_Text_AngelinaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Charlotte::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CHARLOTTE, Route114_Text_CharlotteIntro, Route114_Text_CharlotteDefeat
msgbox Route114_Text_CharlottePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_EventScript_Kai::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_KAI, Route114_Text_KaiIntro, Route114_Text_KaiDefeat
msgbox Route114_Text_KaiPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_Text_AllMyMonDoesIsRoarTakeThis:
2017-11-10 02:21:31 +01:00
.string "All my POKéMON does is ROAR…\n"
.string "No one dares to come near me…\p"
.string "Sigh… If you would, please take\n"
.string "this TM away…$"
2021-07-20 21:18:31 +02:00
Route114_Text_ExplainRoar:
2017-11-10 02:21:31 +01:00
.string "TM05 contains ROAR.\n"
.string "A ROAR sends POKéMON scurrying.$"
2021-07-20 21:18:31 +02:00
Route114_Text_Poochyena:
2017-11-10 02:21:31 +01:00
.string "Bow! Bowwow!$"
2021-07-20 21:18:31 +02:00
Route114_Text_MeteorFallsSign:
2017-11-10 02:21:31 +01:00
.string "METEOR FALLS\n"
.string "RUSTBORO CITY THROUGH HERE$"
2021-07-20 21:18:31 +02:00
Route114_Text_FossilManiacsHouseSign:
2018-12-07 16:41:08 +01:00
.string "FOSSIL MANIAC'S HOUSE\n"
2017-11-10 02:21:31 +01:00
.string "“Fossils gratefully accepted!”$"
2021-07-20 21:18:31 +02:00
Route114_Text_LanettesHouse:
2018-12-07 16:41:08 +01:00
.string "LANETTE'S HOUSE$"
2017-11-10 02:21:31 +01:00