sovereignx/data/maps/Route129/scripts.inc

58 lines
2.2 KiB
PHP
Raw Normal View History

2017-11-10 01:21:31 +00:00
Route129_MapScripts:: @ 81F7284
map_script MAP_SCRIPT_ON_TRANSITION, Route129_OnTransition
2019-11-11 22:19:39 +00:00
map_script MAP_SCRIPT_ON_LOAD, Route129_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route129_OnFrame
2017-11-10 01:21:31 +00:00
.byte 0
2019-11-11 22:19:39 +00:00
Route129_OnLoad: @ 81F7294
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129West
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_EAST
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129East
2017-11-10 01:21:31 +00:00
end
Route129_OnTransition: @ 81F72AB
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
2019-10-07 16:29:14 +01:00
call_if_eq UnusualWeather_EventScript_HideMapNamePopup
2019-08-05 16:23:45 +01:00
compare VAR_SOOTOPOLIS_CITY_STATE, 4
2019-11-11 22:19:39 +00:00
call_if_ge Route129_EventScript_CheckSetAlternatingWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
call_if_eq UnusualWeather_StartKyogreWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_EAST
call_if_eq UnusualWeather_StartKyogreWeather
2017-11-10 01:21:31 +00:00
end
2019-11-11 22:19:39 +00:00
Route129_EventScript_CheckSetAlternatingWeather:: @ 81F72D8
2019-11-08 08:37:46 +00:00
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAlternatingWeather
2017-11-10 01:21:31 +00:00
return
2019-11-11 22:19:39 +00:00
Route129_OnFrame: @ 81F72E2
map_script_2 VAR_SHOULD_END_UNUSUAL_WEATHER, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
2017-11-10 01:21:31 +00:00
.2byte 0
2019-11-11 22:19:39 +00:00
Route129_EventScript_Chase:: @ 81F72EC
trainerbattle_single TRAINER_CHASE, Route129_Text_ChaseIntro, Route129_Text_ChaseDefeat
msgbox Route129_Text_ChasePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 01:21:31 +00:00
end
2019-11-11 22:19:39 +00:00
Route129_EventScript_Allison:: @ 81F7303
trainerbattle_single TRAINER_ALLISON, Route129_Text_AllisonIntro, Route129_Text_AllisonDefeat
msgbox Route129_Text_AllisonPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 01:21:31 +00:00
end
2019-11-11 22:19:39 +00:00
Route129_EventScript_Reed:: @ 81F731A
trainerbattle_single TRAINER_REED, Route129_Text_ReedIntro, Route129_Text_ReedDefeat
msgbox Route129_Text_ReedPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 01:21:31 +00:00
end
2019-11-11 22:19:39 +00:00
Route129_EventScript_Tisha:: @ 81F7331
trainerbattle_single TRAINER_TISHA, Route129_Text_TishaIntro, Route129_Text_TishaDefeat
msgbox Route129_Text_TishaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 01:21:31 +00:00
end
2019-11-11 22:19:39 +00:00
Route129_EventScript_Clarence:: @ 81F7348
trainerbattle_single TRAINER_CLARENCE, Route129_Text_ClarenceIntro, Route129_Text_ClarenceDefeat
msgbox Route129_Text_ClarencePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 01:21:31 +00:00
end