pokeemerald/data/maps/Route115/scripts.inc

146 lines
5.0 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route115_MapScripts::
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route115_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, Route115_OnTransition
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route115_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route115_OnLoad:
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_115_WEST, AbnormalWeather_EventScript_PlaceTilesRoute115West
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_115_EAST, AbnormalWeather_EventScript_PlaceTilesRoute115East
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_OnTransition:
call_if_eq VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_HideMapNamePopup
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_115_WEST, AbnormalWeather_StartGroudonWeather
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_115_EAST, AbnormalWeather_StartGroudonWeather
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_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
Route115_EventScript_Woman::
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_NeverKnowWhenCavePokemonWillAppear, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RouteSignRustboro::
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_RouteSignRustboro, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_MeteorFallsSign::
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_MeteorFallsSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Timothy::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_TIMOTHY_1, Route115_Text_TimothyIntro, Route115_Text_TimothyDefeat, Route115_EventScript_RegisterTimothy
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route115_EventScript_RematchTimothy
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_TimothyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RegisterTimothy::
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 Route115_Text_TimothyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_TIMOTHY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RematchTimothy::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_TIMOTHY_1, Route115_Text_TimothyRematchIntro, Route115_Text_TimothyRematchDefeat
msgbox Route115_Text_TimothyPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Koichi::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_KOICHI, Route115_Text_KoichiIntro, Route115_Text_KoichiDefeat
msgbox Route115_Text_KoichiPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Nob::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_NOB_1, Route115_Text_NobIntro, Route115_Text_NobDefeat, Route115_EventScript_RegisterNob
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route115_EventScript_RematchNob
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_NobPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RegisterNob::
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 Route115_Text_NobRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_NOB_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RematchNob::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_NOB_1, Route115_Text_NobRematchIntro, Route115_Text_NobRematchDefeat
msgbox Route115_Text_NobPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Cyndy::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CYNDY_1, Route115_Text_CyndyIntro, Route115_Text_CyndyDefeat, Route115_EventScript_RegisterCyndy
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route115_EventScript_RematchCyndy
2019-11-12 07:57:39 +01:00
msgbox Route115_Text_CyndyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RegisterCyndy::
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 Route115_Text_CyndyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_CYNDY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_RematchCyndy::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_CYNDY_1, Route115_Text_CyndyRematchIntro, Route115_Text_CyndyRematchDefeat
msgbox Route115_Text_CyndyPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Hector::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_HECTOR, Route115_Text_HectorIntro, Route115_Text_HectorDefeat
msgbox Route115_Text_HectorPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Kyra::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_KYRA, Route115_Text_KyraIntro, Route115_Text_KyraDefeat
msgbox Route115_Text_KyraPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Jaiden::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_JAIDEN, Route115_Text_JaidenIntro, Route115_Text_JaidenDefeat
msgbox Route115_Text_JaidenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Alix::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_ALIX, Route115_Text_AlixIntro, Route115_Text_AlixDefeat
msgbox Route115_Text_AlixPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Helene::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_HELENE, Route115_Text_HeleneIntro, Route115_Text_HeleneDefeat
msgbox Route115_Text_HelenePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_EventScript_Marlene::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_MARLENE, Route115_Text_MarleneIntro, Route115_Text_MarleneDefeat
msgbox Route115_Text_MarlenePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route115_Text_NeverKnowWhenCavePokemonWillAppear:
2018-12-07 16:41:08 +01:00
.string "Exploring a cave isn't like walking\n"
2017-11-10 02:21:31 +01:00
.string "on a road.\p"
.string "You never know when wild POKéMON will\n"
2018-12-07 16:41:08 +01:00
.string "appear. It's full of suspense.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route115_Text_RouteSignRustboro:
2017-11-10 02:21:31 +01:00
.string "ROUTE 115\n"
.string "{DOWN_ARROW} RUSTBORO CITY$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route115_Text_MeteorFallsSign:
2017-11-10 02:21:31 +01:00
.string "METEOR FALLS\n"
.string "FALLARBOR TOWN THROUGH HERE$"