2017-11-10 02:21:31 +01:00
|
|
|
Route125_MapScripts:: @ 81F6748
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route125_OnTransition
|
2019-02-22 08:28:32 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, Route125_MapScript1_1F6783
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route125_MapScript2_1F679A
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
Route125_OnTransition: @ 81F6758
|
2019-02-23 01:52:11 +01:00
|
|
|
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetWeather15
|
2019-02-27 20:42:32 +01:00
|
|
|
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
|
2019-10-07 17:29:14 +02:00
|
|
|
call_if_eq UnusualWeather_EventScript_HideMapNamePopup
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_WEST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_StartKyogreWeather
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_EAST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_StartKyogreWeather
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_MapScript1_1F6783: @ 81F6783
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_WEST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute125West
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_EAST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute125East
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_MapScript2_1F679A: @ 81F679A
|
2019-02-27 20:42:32 +01:00
|
|
|
map_script_2 VAR_SHOULD_END_UNUSUAL_WEATHER, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
|
|
|
Route125_EventScript_1F67A4:: @ 81F67A4
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_NOLEN, Route125_Text_2A1527, Route125_Text_2A155A
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A1567, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F67BB:: @ 81F67BB
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_STAN, Route125_Text_2A159F, Route125_Text_2A15C7
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A15D5, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F67D2:: @ 81F67D2
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_TANYA, Route125_Text_2A1615, Route125_Text_2A164D
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A165E, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F67E9:: @ 81F67E9
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_SHARON, Route125_Text_2A1686, Route125_Text_2A16C5
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A16CE, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F6800:: @ 81F6800
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_ERNEST_1, Route125_Text_2A16FC, Route125_Text_2A173A, Route125_EventScript_1F682C
|
2017-12-01 21:25:13 +01:00
|
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route125_EventScript_1F684B
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A1755, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F682C:: @ 81F682C
|
|
|
|
special sub_80B4808
|
|
|
|
waitmovement 0
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A17CF, MSGBOX_DEFAULT
|
2018-12-02 12:04:59 +01:00
|
|
|
register_matchcall TRAINER_ERNEST_1
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F684B:: @ 81F684B
|
2018-12-02 13:17:54 +01:00
|
|
|
trainerbattle_rematch TRAINER_ERNEST_1, Route125_Text_2A180E, Route125_Text_2A1851
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A187A, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F6862:: @ 81F6862
|
2018-12-02 13:17:54 +01:00
|
|
|
trainerbattle_double TRAINER_KIM_AND_IRIS, Route125_Text_2A192B, Route125_Text_2A1989, Route125_Text_2A19F8
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A19A6, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F687D:: @ 81F687D
|
2018-12-02 13:17:54 +01:00
|
|
|
trainerbattle_double TRAINER_KIM_AND_IRIS, Route125_Text_2A1A35, Route125_Text_2A1A71, Route125_Text_2A1AD9
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A1A92, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F6898:: @ 81F6898
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_PRESLEY, Route125_Text_2A1B1A, Route125_Text_2A1B4E
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A1B70, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route125_EventScript_1F68AF:: @ 81F68AF
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_AURON, Route125_Text_2A1BCE, Route125_Text_2A1BFD
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route125_Text_2A1C2A, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|