2021-07-20 21:18:31 +02:00
|
|
|
Route127_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route127_OnTransition
|
2019-11-11 23:19:39 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, Route127_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route127_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_OnTransition:
|
2019-12-02 01:19:47 +01:00
|
|
|
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
|
|
|
|
compare VAR_SHOULD_END_ABNORMAL_WEATHER, 1
|
|
|
|
call_if_eq AbnormalWeather_EventScript_HideMapNamePopup
|
|
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_127_NORTH
|
|
|
|
call_if_eq AbnormalWeather_StartKyogreWeather
|
|
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_127_SOUTH
|
|
|
|
call_if_eq AbnormalWeather_StartKyogreWeather
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_OnLoad:
|
2019-12-02 01:19:47 +01:00
|
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_127_NORTH
|
|
|
|
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute127North
|
|
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_127_SOUTH
|
|
|
|
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute127South
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_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
|
|
|
Route127_EventScript_Camden::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_CAMDEN, Route127_Text_CamdenIntro, Route127_Text_CamdenDefeat
|
|
|
|
msgbox Route127_Text_CamdenPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Donny::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_DONNY, Route127_Text_DonnyIntro, Route127_Text_DonnyDefeat
|
|
|
|
msgbox Route127_Text_DonnyPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Jonah::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_JONAH, Route127_Text_JonahIntro, Route127_Text_JonahDefeat
|
|
|
|
msgbox Route127_Text_JonahPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Henry::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_HENRY, Route127_Text_HenryIntro, Route127_Text_HenryDefeat
|
|
|
|
msgbox Route127_Text_HenryPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Roger::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_ROGER, Route127_Text_RogerIntro, Route127_Text_RogerDefeat
|
|
|
|
msgbox Route127_Text_RogerPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Aidan::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_AIDAN, Route127_Text_AidanIntro, Route127_Text_AidanDefeat
|
|
|
|
msgbox Route127_Text_AidanPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Athena::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_ATHENA, Route127_Text_AthenaIntro, Route127_Text_AthenaDefeat
|
|
|
|
msgbox Route127_Text_AthenaPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_Koji::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_KOJI_1, Route127_Text_KojiIntro, Route127_Text_KojiDefeat, Route127_EventScript_RegisterKoji
|
2017-12-01 21:25:13 +01:00
|
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
2019-11-11 23:19:39 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
goto_if_eq Route127_EventScript_RematchKoji
|
|
|
|
msgbox Route127_Text_KojiPostBattle, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_RegisterKoji::
|
2019-11-01 08:41:55 +01:00
|
|
|
special PlayerFaceTrainerAfterBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-11-11 23:19:39 +01:00
|
|
|
msgbox Route127_Text_KojiRegister, MSGBOX_DEFAULT
|
2018-12-02 12:04:59 +01:00
|
|
|
register_matchcall TRAINER_KOJI_1
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route127_EventScript_RematchKoji::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_rematch TRAINER_KOJI_1, Route127_Text_KojiRematchIntro, Route127_Text_KojiRematchDefeat
|
|
|
|
msgbox Route127_Text_KojiPostRematch, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|