2017-11-10 02:21:31 +01:00
|
|
|
Route129_MapScripts:: @ 81F7284
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route129_OnTransition
|
2019-02-22 08:28:32 +01:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, Route129_MapScript1_1F7294
|
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route129_MapScript2_1F72E2
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
|
|
|
Route129_MapScript1_1F7294: @ 81F7294
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129West
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_EAST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129East
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
Route129_OnTransition: @ 81F72AB
|
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-08-05 17:23:45 +02:00
|
|
|
compare VAR_SOOTOPOLIS_CITY_STATE, 4
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_ge Route129_EventScript_1F72D8
|
2019-02-27 09:42:04 +01:00
|
|
|
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_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_129_EAST
|
2019-02-27 10:27:54 +01:00
|
|
|
call_if_eq UnusualWeather_StartKyogreWeather
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route129_EventScript_1F72D8:: @ 81F72D8
|
2019-02-23 01:52:11 +01:00
|
|
|
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetWeather15
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
Route129_MapScript2_1F72E2: @ 81F72E2
|
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
|
|
|
|
|
|
|
|
Route129_EventScript_1F72EC:: @ 81F72EC
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_CHASE, Route129_Text_2A2F66, Route129_Text_2A2F9D
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route129_Text_2A2FB9, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route129_EventScript_1F7303:: @ 81F7303
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_ALLISON, Route129_Text_2A2FF2, Route129_Text_2A3034
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route129_Text_2A3048, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route129_EventScript_1F731A:: @ 81F731A
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_REED, Route129_Text_2A30CD, Route129_Text_2A30F1
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route129_Text_2A3114, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route129_EventScript_1F7331:: @ 81F7331
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_TISHA, Route129_Text_2A314E, Route129_Text_2A317D
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route129_Text_2A31A6, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route129_EventScript_1F7348:: @ 81F7348
|
2018-12-02 19:54:48 +01:00
|
|
|
trainerbattle_single TRAINER_CLARENCE, Route129_Text_2A3204, Route129_Text_2A3239
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route129_Text_2A3252, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|