pokeemerald/data/scripts/abnormal_weather.inc

426 lines
19 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute114North::
2021-11-16 23:12:16 +01:00
setmetatile 7, 3, METATILE_Fallarbor_RedCaveEntrance_Top, TRUE
setmetatile 7, 4, METATILE_Fallarbor_RedCaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute114South::
2021-11-16 23:12:16 +01:00
setmetatile 6, 45, METATILE_Fallarbor_BrownCaveEntrance_Top, TRUE
setmetatile 6, 46, METATILE_Fallarbor_BrownCaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute115West::
2021-11-16 23:12:16 +01:00
setmetatile 21, 5, METATILE_Fallarbor_BrownCaveEntrance_Top, TRUE
setmetatile 21, 6, METATILE_Fallarbor_BrownCaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute115East::
2021-11-16 23:12:16 +01:00
setmetatile 36, 9, METATILE_Fallarbor_BrownCaveEntrance_Top, TRUE
setmetatile 36, 10, METATILE_Fallarbor_BrownCaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute116North::
2021-11-16 23:12:16 +01:00
setmetatile 59, 12, METATILE_General_CaveEntrance_Top, TRUE
setmetatile 59, 13, METATILE_General_CaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute116South::
2021-11-16 23:12:16 +01:00
setmetatile 79, 5, METATILE_General_CaveEntrance_Top, TRUE
setmetatile 79, 6, METATILE_General_CaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute118East::
2021-11-16 23:12:16 +01:00
setmetatile 42, 5, METATILE_General_CaveEntrance_Top, TRUE
setmetatile 42, 6, METATILE_General_CaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute118West::
2021-11-16 23:12:16 +01:00
setmetatile 9, 5, METATILE_General_CaveEntrance_Top, TRUE
setmetatile 9, 6, METATILE_General_CaveEntrance_Bottom, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute105North::
2021-11-16 23:12:16 +01:00
setmetatile 10, 28, METATILE_General_RoughWater, FALSE
setmetatile 11, 28, METATILE_General_RoughWater, FALSE
setmetatile 9, 29, METATILE_General_RoughWater, FALSE
setmetatile 10, 29, METATILE_General_RoughDeepWater, FALSE
setmetatile 11, 29, METATILE_General_RoughDeepWater, FALSE
setmetatile 12, 29, METATILE_General_RoughWater, FALSE
setmetatile 9, 30, METATILE_General_RoughWater, FALSE
setmetatile 10, 30, METATILE_General_RoughDeepWater, FALSE
setmetatile 11, 30, METATILE_General_RoughDeepWater, FALSE
setmetatile 12, 30, METATILE_General_RoughWater, FALSE
setmetatile 10, 31, METATILE_General_RoughWater, FALSE
setmetatile 11, 31, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute105South::
2021-11-16 23:12:16 +01:00
setmetatile 20, 53, METATILE_General_RoughWater, FALSE
setmetatile 21, 53, METATILE_General_RoughWater, FALSE
setmetatile 19, 54, METATILE_General_RoughWater, FALSE
setmetatile 20, 54, METATILE_General_RoughDeepWater, FALSE
setmetatile 21, 54, METATILE_General_RoughDeepWater, FALSE
setmetatile 22, 54, METATILE_General_RoughWater, FALSE
setmetatile 19, 55, METATILE_General_RoughWater, FALSE
setmetatile 20, 55, METATILE_General_RoughDeepWater, FALSE
setmetatile 21, 55, METATILE_General_RoughDeepWater, FALSE
setmetatile 22, 55, METATILE_General_RoughWater, FALSE
setmetatile 20, 56, METATILE_General_RoughWater, FALSE
setmetatile 21, 56, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute125West::
2021-11-16 23:12:16 +01:00
setmetatile 8, 16, METATILE_General_RoughWater, FALSE
setmetatile 9, 16, METATILE_General_RoughWater, FALSE
setmetatile 7, 17, METATILE_General_RoughWater, FALSE
setmetatile 8, 17, METATILE_General_RoughDeepWater, FALSE
setmetatile 9, 17, METATILE_General_RoughDeepWater, FALSE
setmetatile 10, 17, METATILE_General_RoughWater, FALSE
setmetatile 7, 18, METATILE_General_RoughWater, FALSE
setmetatile 8, 18, METATILE_General_RoughDeepWater, FALSE
setmetatile 9, 18, METATILE_General_RoughDeepWater, FALSE
setmetatile 10, 18, METATILE_General_RoughWater, FALSE
setmetatile 8, 19, METATILE_General_RoughWater, FALSE
setmetatile 9, 19, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute125East::
2021-11-16 23:12:16 +01:00
setmetatile 53, 18, METATILE_General_RoughWater, FALSE
setmetatile 54, 18, METATILE_General_RoughWater, FALSE
setmetatile 52, 19, METATILE_General_RoughWater, FALSE
setmetatile 53, 19, METATILE_General_RoughDeepWater, FALSE
setmetatile 54, 19, METATILE_General_RoughDeepWater, FALSE
setmetatile 55, 19, METATILE_General_RoughWater, FALSE
setmetatile 52, 20, METATILE_General_RoughWater, FALSE
setmetatile 53, 20, METATILE_General_RoughDeepWater, FALSE
setmetatile 54, 20, METATILE_General_RoughDeepWater, FALSE
setmetatile 55, 20, METATILE_General_RoughWater, FALSE
setmetatile 53, 21, METATILE_General_RoughWater, FALSE
setmetatile 54, 21, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute127North::
2021-11-16 23:12:16 +01:00
setmetatile 57, 9, METATILE_General_RoughWater, FALSE
setmetatile 58, 9, METATILE_General_RoughWater, FALSE
setmetatile 56, 10, METATILE_General_RoughWater, FALSE
setmetatile 57, 10, METATILE_General_RoughDeepWater, FALSE
setmetatile 58, 10, METATILE_General_RoughDeepWater, FALSE
setmetatile 59, 10, METATILE_General_RoughWater, FALSE
setmetatile 56, 11, METATILE_General_RoughWater, FALSE
setmetatile 57, 11, METATILE_General_RoughDeepWater, FALSE
setmetatile 58, 11, METATILE_General_RoughDeepWater, FALSE
setmetatile 59, 11, METATILE_General_RoughWater, FALSE
setmetatile 57, 12, METATILE_General_RoughWater, FALSE
setmetatile 58, 12, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute127South::
2021-11-16 23:12:16 +01:00
setmetatile 61, 30, METATILE_General_RoughWater, FALSE
setmetatile 62, 30, METATILE_General_RoughWater, FALSE
setmetatile 60, 31, METATILE_General_RoughWater, FALSE
setmetatile 61, 31, METATILE_General_RoughDeepWater, FALSE
setmetatile 62, 31, METATILE_General_RoughDeepWater, FALSE
setmetatile 63, 31, METATILE_General_RoughWater, FALSE
setmetatile 60, 32, METATILE_General_RoughWater, FALSE
setmetatile 61, 32, METATILE_General_RoughDeepWater, FALSE
setmetatile 62, 32, METATILE_General_RoughDeepWater, FALSE
setmetatile 63, 32, METATILE_General_RoughWater, FALSE
setmetatile 61, 33, METATILE_General_RoughWater, FALSE
setmetatile 62, 33, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute129West::
2021-11-16 23:12:16 +01:00
setmetatile 16, 14, METATILE_General_RoughWater, FALSE
setmetatile 17, 14, METATILE_General_RoughWater, FALSE
setmetatile 15, 15, METATILE_General_RoughWater, FALSE
setmetatile 16, 15, METATILE_General_RoughDeepWater, FALSE
setmetatile 17, 15, METATILE_General_RoughDeepWater, FALSE
setmetatile 18, 15, METATILE_General_RoughWater, FALSE
setmetatile 15, 16, METATILE_General_RoughWater, FALSE
setmetatile 16, 16, METATILE_General_RoughDeepWater, FALSE
setmetatile 17, 16, METATILE_General_RoughDeepWater, FALSE
setmetatile 18, 16, METATILE_General_RoughWater, FALSE
setmetatile 16, 17, METATILE_General_RoughWater, FALSE
setmetatile 17, 17, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_PlaceTilesRoute129East::
2021-11-16 23:12:16 +01:00
setmetatile 42, 19, METATILE_General_RoughWater, FALSE
setmetatile 43, 19, METATILE_General_RoughWater, FALSE
setmetatile 41, 20, METATILE_General_RoughWater, FALSE
setmetatile 42, 20, METATILE_General_RoughDeepWater, FALSE
setmetatile 43, 20, METATILE_General_RoughDeepWater, FALSE
setmetatile 44, 20, METATILE_General_RoughWater, FALSE
setmetatile 41, 21, METATILE_General_RoughWater, FALSE
setmetatile 42, 21, METATILE_General_RoughDeepWater, FALSE
setmetatile 43, 21, METATILE_General_RoughDeepWater, FALSE
setmetatile 44, 21, METATILE_General_RoughWater, FALSE
setmetatile 42, 22, METATILE_General_RoughWater, FALSE
setmetatile 43, 22, METATILE_General_RoughWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_HideMapNamePopup::
2019-10-05 16:52:48 +02:00
setflag FLAG_HIDE_MAP_NAME_POPUP
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_StartKyogreWeather::
2019-12-02 01:19:47 +01:00
setweather WEATHER_DOWNPOUR
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_StartGroudonWeather::
2019-10-05 16:52:48 +02:00
setweather WEATHER_DROUGHT
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_EndEventAndCleanup_1::
2019-10-05 16:52:48 +02:00
lockall
goto_if_ge VAR_ABNORMAL_WEATHER_LOCATION, MARINE_CAVE_LOCATIONS_START, AbnormalWeather_EventScript_ShowRainEndedMessage
2019-12-02 01:19:47 +01:00
goto AbnormalWeather_EventScript_ShowSunEndedMessage
2019-10-05 16:52:48 +02:00
end
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_EndEventAndCleanup_2::
2019-10-05 16:52:48 +02:00
closemessage
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_TO_BLACK
2019-10-05 16:52:48 +02:00
setweather WEATHER_SUNNY
doweather
2019-12-02 01:19:47 +01:00
call AbnormalWeather_EventScript_CleanupMapTiles
2019-10-05 16:52:48 +02:00
special DrawWholeMapView
2019-12-02 01:19:47 +01:00
setvar VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_NONE
setvar VAR_SHOULD_END_ABNORMAL_WEATHER, 0
2019-10-05 16:52:48 +02:00
clearflag FLAG_HIDE_MAP_NAME_POPUP
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_FROM_BLACK
2019-10-05 16:52:48 +02:00
releaseall
end
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_ShowRainEndedMessage::
2019-12-02 01:19:47 +01:00
msgbox gText_AbnormalWeatherEnded_Rain, MSGBOX_DEFAULT
goto AbnormalWeather_EventScript_EndEventAndCleanup_2
2019-10-05 16:52:48 +02:00
end
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_ShowSunEndedMessage::
2019-12-02 01:19:47 +01:00
msgbox gText_AbnormalWeatherEnded_Sun, MSGBOX_DEFAULT
goto AbnormalWeather_EventScript_EndEventAndCleanup_2
2019-10-05 16:52:48 +02:00
end
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupMapTiles::
2019-12-02 01:19:47 +01:00
switch VAR_ABNORMAL_WEATHER_LOCATION
case ABNORMAL_WEATHER_ROUTE_114_NORTH, AbnormalWeather_EventScript_CleanupRoute114North
case ABNORMAL_WEATHER_ROUTE_114_SOUTH, AbnormalWeather_EventScript_CleanupRoute114South
case ABNORMAL_WEATHER_ROUTE_115_WEST, AbnormalWeather_EventScript_CleanupRoute115West
case ABNORMAL_WEATHER_ROUTE_115_EAST, AbnormalWeather_EventScript_CleanupRoute115East
case ABNORMAL_WEATHER_ROUTE_116_NORTH, AbnormalWeather_EventScript_CleanupRoute116North
case ABNORMAL_WEATHER_ROUTE_116_SOUTH, AbnormalWeather_EventScript_CleanupRoute116South
case ABNORMAL_WEATHER_ROUTE_118_EAST, AbnormalWeather_EventScript_CleanupRoute118East
case ABNORMAL_WEATHER_ROUTE_118_WEST, AbnormalWeather_EventScript_CleanupRoute118West
case ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_EventScript_CleanupRoute105North
case ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_EventScript_CleanupRoute105South
case ABNORMAL_WEATHER_ROUTE_125_WEST, AbnormalWeather_EventScript_CleanupRoute125West
case ABNORMAL_WEATHER_ROUTE_125_EAST, AbnormalWeather_EventScript_CleanupRoute125East
case ABNORMAL_WEATHER_ROUTE_127_NORTH, AbnormalWeather_EventScript_CleanupRoute127North
case ABNORMAL_WEATHER_ROUTE_127_SOUTH, AbnormalWeather_EventScript_CleanupRoute127South
case ABNORMAL_WEATHER_ROUTE_129_WEST, AbnormalWeather_EventScript_CleanupRoute129West
case ABNORMAL_WEATHER_ROUTE_129_EAST, AbnormalWeather_EventScript_CleanupRoute129East
return
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute114North::
2021-11-16 23:12:16 +01:00
setmetatile 7, 3, METATILE_Fallarbor_RedRockWall, TRUE
setmetatile 7, 4, METATILE_Fallarbor_RedRockWall, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute114South::
2021-11-16 23:12:16 +01:00
setmetatile 6, 45, METATILE_Fallarbor_BrownRockWall, TRUE
setmetatile 6, 46, METATILE_Fallarbor_BrownRockWall, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute115West::
2021-11-16 23:12:16 +01:00
setmetatile 21, 5, METATILE_Fallarbor_BrownRockWall, TRUE
setmetatile 21, 6, METATILE_Fallarbor_BrownRockWall, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute115East::
2021-11-16 23:12:16 +01:00
setmetatile 36, 9, METATILE_Fallarbor_BrownRockWall, TRUE
setmetatile 36, 10, METATILE_Fallarbor_BrownRockWall, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute116North::
2021-11-16 23:12:16 +01:00
setmetatile 59, 12, METATILE_General_RockWall_RockBase, TRUE
setmetatile 59, 13, METATILE_General_RockWall_RockBase, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute116South::
2021-11-16 23:12:16 +01:00
setmetatile 79, 5, METATILE_General_RockWall_RockBase, TRUE
setmetatile 79, 6, METATILE_General_RockWall_RockBase, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute118East::
2021-11-16 23:12:16 +01:00
setmetatile 42, 5, METATILE_General_RockWall_RockBase, TRUE
setmetatile 42, 6, METATILE_General_RockWall_GrassBase, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute118West::
2021-11-16 23:12:16 +01:00
setmetatile 9, 5, METATILE_General_RockWall_RockBase, TRUE
setmetatile 9, 6, METATILE_General_RockWall_GrassBase, TRUE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute105North::
2021-11-16 23:12:16 +01:00
setmetatile 10, 28, METATILE_General_CalmWater, FALSE
setmetatile 11, 28, METATILE_General_CalmWater, FALSE
setmetatile 9, 29, METATILE_General_CalmWater, FALSE
setmetatile 10, 29, METATILE_General_CalmWater, FALSE
setmetatile 11, 29, METATILE_General_CalmWater, FALSE
setmetatile 12, 29, METATILE_General_CalmWater, FALSE
setmetatile 9, 30, METATILE_General_CalmWater, FALSE
setmetatile 10, 30, METATILE_General_CalmWater, FALSE
setmetatile 11, 30, METATILE_General_CalmWater, FALSE
setmetatile 12, 30, METATILE_General_CalmWater, FALSE
setmetatile 10, 31, METATILE_General_CalmWater, FALSE
setmetatile 11, 31, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute105South::
2021-11-16 23:12:16 +01:00
setmetatile 20, 53, METATILE_General_CalmWater, FALSE
setmetatile 21, 53, METATILE_General_CalmWater, FALSE
setmetatile 19, 54, METATILE_General_CalmWater, FALSE
setmetatile 20, 54, METATILE_General_CalmWater, FALSE
setmetatile 21, 54, METATILE_General_CalmWater, FALSE
setmetatile 22, 54, METATILE_General_CalmWater, FALSE
setmetatile 19, 55, METATILE_General_CalmWater, FALSE
setmetatile 20, 55, METATILE_General_CalmWater, FALSE
setmetatile 21, 55, METATILE_General_CalmWater, FALSE
setmetatile 22, 55, METATILE_General_CalmWater, FALSE
setmetatile 20, 56, METATILE_General_CalmWater, FALSE
setmetatile 21, 56, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute125West::
2021-11-16 23:12:16 +01:00
setmetatile 8, 16, METATILE_General_CalmWater, FALSE
setmetatile 9, 16, METATILE_General_CalmWater, FALSE
setmetatile 7, 17, METATILE_General_CalmWater, FALSE
setmetatile 8, 17, METATILE_General_CalmWater, FALSE
setmetatile 9, 17, METATILE_General_CalmWater, FALSE
setmetatile 10, 17, METATILE_General_CalmWater, FALSE
setmetatile 7, 18, METATILE_General_CalmWater, FALSE
setmetatile 8, 18, METATILE_General_CalmWater, FALSE
setmetatile 9, 18, METATILE_General_CalmWater, FALSE
setmetatile 10, 18, METATILE_General_CalmWater, FALSE
setmetatile 8, 19, METATILE_General_CalmWater, FALSE
setmetatile 9, 19, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute125East::
2021-11-16 23:12:16 +01:00
setmetatile 53, 18, METATILE_General_CalmWater, FALSE
setmetatile 54, 18, METATILE_General_CalmWater, FALSE
setmetatile 52, 19, METATILE_General_CalmWater, FALSE
setmetatile 53, 19, METATILE_General_CalmWater, FALSE
setmetatile 54, 19, METATILE_General_CalmWater, FALSE
setmetatile 55, 19, METATILE_General_CalmWater, FALSE
setmetatile 52, 20, METATILE_General_CalmWater, FALSE
setmetatile 53, 20, METATILE_General_CalmWater, FALSE
setmetatile 54, 20, METATILE_General_CalmWater, FALSE
setmetatile 55, 20, METATILE_General_CalmWater, FALSE
setmetatile 53, 21, METATILE_General_CalmWater, FALSE
setmetatile 54, 21, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute127North::
2021-11-16 23:12:16 +01:00
setmetatile 57, 9, METATILE_General_CalmWater, FALSE
setmetatile 58, 9, METATILE_General_CalmWater, FALSE
setmetatile 56, 10, METATILE_General_CalmWater, FALSE
setmetatile 57, 10, METATILE_General_CalmWater, FALSE
setmetatile 58, 10, METATILE_General_CalmWater, FALSE
setmetatile 59, 10, METATILE_General_CalmWater, FALSE
setmetatile 56, 11, METATILE_General_CalmWater, FALSE
setmetatile 57, 11, METATILE_General_CalmWater, FALSE
setmetatile 58, 11, METATILE_General_CalmWater, FALSE
setmetatile 59, 11, METATILE_General_CalmWater, FALSE
setmetatile 57, 12, METATILE_General_CalmWater, FALSE
setmetatile 58, 12, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute127South::
2021-11-16 23:12:16 +01:00
setmetatile 61, 30, METATILE_General_CalmWater, FALSE
setmetatile 62, 30, METATILE_General_CalmWater, FALSE
setmetatile 60, 31, METATILE_General_CalmWater, FALSE
setmetatile 61, 31, METATILE_General_CalmWater, FALSE
setmetatile 62, 31, METATILE_General_CalmWater, FALSE
setmetatile 63, 31, METATILE_General_CalmWater, FALSE
setmetatile 60, 32, METATILE_General_CalmWater, FALSE
setmetatile 61, 32, METATILE_General_CalmWater, FALSE
setmetatile 62, 32, METATILE_General_CalmWater, FALSE
setmetatile 63, 32, METATILE_General_CalmWater, FALSE
setmetatile 61, 33, METATILE_General_CalmWater, FALSE
setmetatile 62, 33, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute129West::
2021-11-16 23:12:16 +01:00
setmetatile 16, 14, METATILE_General_CalmWater, FALSE
setmetatile 17, 14, METATILE_General_CalmWater, FALSE
setmetatile 15, 15, METATILE_General_CalmWater, FALSE
setmetatile 16, 15, METATILE_General_CalmWater, FALSE
setmetatile 17, 15, METATILE_General_CalmWater, FALSE
setmetatile 18, 15, METATILE_General_CalmWater, FALSE
setmetatile 15, 16, METATILE_General_CalmWater, FALSE
setmetatile 16, 16, METATILE_General_CalmWater, FALSE
setmetatile 17, 16, METATILE_General_CalmWater, FALSE
setmetatile 18, 16, METATILE_General_CalmWater, FALSE
setmetatile 16, 17, METATILE_General_CalmWater, FALSE
setmetatile 17, 17, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_EventScript_CleanupRoute129East::
2021-11-16 23:12:16 +01:00
setmetatile 42, 19, METATILE_General_CalmWater, FALSE
setmetatile 43, 19, METATILE_General_CalmWater, FALSE
setmetatile 41, 20, METATILE_General_CalmWater, FALSE
setmetatile 42, 20, METATILE_General_CalmWater, FALSE
setmetatile 43, 20, METATILE_General_CalmWater, FALSE
setmetatile 44, 20, METATILE_General_CalmWater, FALSE
setmetatile 41, 21, METATILE_General_CalmWater, FALSE
setmetatile 42, 21, METATILE_General_CalmWater, FALSE
setmetatile 43, 21, METATILE_General_CalmWater, FALSE
setmetatile 44, 21, METATILE_General_CalmWater, FALSE
setmetatile 42, 22, METATILE_General_CalmWater, FALSE
setmetatile 43, 22, METATILE_General_CalmWater, FALSE
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarp::
2019-12-02 01:19:47 +01:00
switch VAR_ABNORMAL_WEATHER_LOCATION
case ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_Underwater_SetupEscapeWarpRoute105North
case ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_Underwater_SetupEscapeWarpRoute105South
case ABNORMAL_WEATHER_ROUTE_125_WEST, AbnormalWeather_Underwater_SetupEscapeWarpRoute125West
case ABNORMAL_WEATHER_ROUTE_125_EAST, AbnormalWeather_Underwater_SetupEscapeWarpRoute125East
case ABNORMAL_WEATHER_ROUTE_127_NORTH, AbnormalWeather_Underwater_SetupEscapeWarpRoute127North
case ABNORMAL_WEATHER_ROUTE_127_SOUTH, AbnormalWeather_Underwater_SetupEscapeWarpRoute127South
case ABNORMAL_WEATHER_ROUTE_129_WEST, AbnormalWeather_Underwater_SetupEscapeWarpRoute129West
case ABNORMAL_WEATHER_ROUTE_129_EAST, AbnormalWeather_Underwater_SetupEscapeWarpRoute129East
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute105North::
setescapewarp MAP_ROUTE105, 11, 29
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute105South::
setescapewarp MAP_ROUTE105, 21, 54
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute125West::
setescapewarp MAP_ROUTE125, 9, 17
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute125East::
setescapewarp MAP_ROUTE125, 54, 19
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute127North::
setescapewarp MAP_ROUTE127, 58, 10
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute127South::
setescapewarp MAP_ROUTE127, 62, 31
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute129West::
setescapewarp MAP_ROUTE129, 17, 15
2019-10-05 16:52:48 +02:00
return
2019-09-27 20:20:51 +02:00
2021-07-20 21:18:31 +02:00
AbnormalWeather_Underwater_SetupEscapeWarpRoute129East::
setescapewarp MAP_ROUTE129, 43, 20
2019-10-05 16:52:48 +02:00
return