mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 19:24:16 +01:00
Name most event scripts related to unusual weather
This commit is contained in:
parent
fe55580fe1
commit
c1348d22f3
@ -2707,10 +2707,10 @@ gUnknown_08273594:: @ 8273594
|
||||
gUnknown_082735F2:: @ 82735F2
|
||||
.string "It appears to be for use at\nthe LILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$"
|
||||
|
||||
gUnknown_08273656:: @ 8273656
|
||||
gText_UnusualWeatherEnded_Rain:: @ 8273656
|
||||
.string "The massive downpour appears to\nhave stopped…$"
|
||||
|
||||
gUnknown_08273684:: @ 8273684
|
||||
gText_UnusualWeatherEnded_Sun:: @ 8273684
|
||||
.string "The intense sunshine appears to\nhave subsided…$"
|
||||
|
||||
EventScript_2736B3:: @ 82736B3
|
||||
@ -2999,47 +2999,47 @@ EventScript_2738FF:: @ 82738FF
|
||||
releaseall
|
||||
end
|
||||
|
||||
Route114_EventScript_273913:: @ 8273913
|
||||
UnusualWeather_EventScript_PlaceTilesRoute114North:: @ 8273913
|
||||
setmetatile 7, 3, 839, 1
|
||||
setmetatile 7, 4, 847, 0
|
||||
return
|
||||
|
||||
Route114_EventScript_273926:: @ 8273926
|
||||
UnusualWeather_EventScript_PlaceTilesRoute114South:: @ 8273926
|
||||
setmetatile 6, 45, 601, 1
|
||||
setmetatile 6, 46, 609, 0
|
||||
return
|
||||
|
||||
Route115_EventScript_273939:: @ 8273939
|
||||
UnusualWeather_EventScript_PlaceTilesRoute115West:: @ 8273939
|
||||
setmetatile 21, 5, 601, 1
|
||||
setmetatile 21, 6, 609, 0
|
||||
return
|
||||
|
||||
Route115_EventScript_27394C:: @ 827394C
|
||||
UnusualWeather_EventScript_PlaceTilesRoute115East:: @ 827394C
|
||||
setmetatile 36, 9, 601, 1
|
||||
setmetatile 36, 10, 609, 0
|
||||
return
|
||||
|
||||
Route116_EventScript_27395F:: @ 827395F
|
||||
UnusualWeather_EventScript_PlaceTilesRoute116North:: @ 827395F
|
||||
setmetatile 59, 12, 159, 1
|
||||
setmetatile 59, 13, 167, 0
|
||||
return
|
||||
|
||||
Route116_EventScript_273972:: @ 8273972
|
||||
UnusualWeather_EventScript_PlaceTilesRoute116South:: @ 8273972
|
||||
setmetatile 79, 5, 159, 1
|
||||
setmetatile 79, 6, 167, 0
|
||||
return
|
||||
|
||||
Route118_EventScript_273985:: @ 8273985
|
||||
UnusualWeather_EventScript_PlaceTilesRoute118East:: @ 8273985
|
||||
setmetatile 42, 5, 159, 1
|
||||
setmetatile 42, 6, 167, 0
|
||||
return
|
||||
|
||||
Route118_EventScript_273998:: @ 8273998
|
||||
UnusualWeather_EventScript_PlaceTilesRoute118West:: @ 8273998
|
||||
setmetatile 9, 5, 159, 1
|
||||
setmetatile 9, 6, 167, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_2739AB:: @ 82739AB
|
||||
UnusualWeather_EventScript_PlaceTilesRoute105North:: @ 82739AB
|
||||
setmetatile 10, 28, 334, 0
|
||||
setmetatile 11, 28, 334, 0
|
||||
setmetatile 9, 29, 334, 0
|
||||
@ -3054,7 +3054,7 @@ Route105_EventScript_2739AB:: @ 82739AB
|
||||
setmetatile 11, 31, 334, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_273A18:: @ 8273A18
|
||||
UnusualWeather_EventScript_PlaceTilesRoute105South:: @ 8273A18
|
||||
setmetatile 20, 53, 334, 0
|
||||
setmetatile 21, 53, 334, 0
|
||||
setmetatile 19, 54, 334, 0
|
||||
@ -3069,7 +3069,7 @@ Route105_EventScript_273A18:: @ 8273A18
|
||||
setmetatile 21, 56, 334, 0
|
||||
return
|
||||
|
||||
Route125_EventScript_273A85:: @ 8273A85
|
||||
UnusualWeather_EventScript_PlaceTilesRoute125West:: @ 8273A85
|
||||
setmetatile 8, 16, 334, 0
|
||||
setmetatile 9, 16, 334, 0
|
||||
setmetatile 7, 17, 334, 0
|
||||
@ -3084,7 +3084,7 @@ Route125_EventScript_273A85:: @ 8273A85
|
||||
setmetatile 9, 19, 334, 0
|
||||
return
|
||||
|
||||
Route125_EventScript_273AF2:: @ 8273AF2
|
||||
UnusualWeather_EventScript_PlaceTilesRoute125East:: @ 8273AF2
|
||||
setmetatile 53, 18, 334, 0
|
||||
setmetatile 54, 18, 334, 0
|
||||
setmetatile 52, 19, 334, 0
|
||||
@ -3099,7 +3099,7 @@ Route125_EventScript_273AF2:: @ 8273AF2
|
||||
setmetatile 54, 21, 334, 0
|
||||
return
|
||||
|
||||
Route127_EventScript_273B5F:: @ 8273B5F
|
||||
UnusualWeather_EventScript_PlaceTilesRoute127North:: @ 8273B5F
|
||||
setmetatile 57, 9, 334, 0
|
||||
setmetatile 58, 9, 334, 0
|
||||
setmetatile 56, 10, 334, 0
|
||||
@ -3114,7 +3114,7 @@ Route127_EventScript_273B5F:: @ 8273B5F
|
||||
setmetatile 58, 12, 334, 0
|
||||
return
|
||||
|
||||
Route127_EventScript_273BCC:: @ 8273BCC
|
||||
UnusualWeather_EventScript_PlaceTilesRoute127South:: @ 8273BCC
|
||||
setmetatile 61, 30, 334, 0
|
||||
setmetatile 62, 30, 334, 0
|
||||
setmetatile 60, 31, 334, 0
|
||||
@ -3129,7 +3129,7 @@ Route127_EventScript_273BCC:: @ 8273BCC
|
||||
setmetatile 62, 33, 334, 0
|
||||
return
|
||||
|
||||
Route129_EventScript_273C39:: @ 8273C39
|
||||
UnusualWeather_EventScript_PlaceTilesRoute129West:: @ 8273C39
|
||||
setmetatile 16, 14, 334, 0
|
||||
setmetatile 17, 14, 334, 0
|
||||
setmetatile 15, 15, 334, 0
|
||||
@ -3144,7 +3144,7 @@ Route129_EventScript_273C39:: @ 8273C39
|
||||
setmetatile 17, 17, 334, 0
|
||||
return
|
||||
|
||||
Route129_EventScript_273CA6:: @ 8273CA6
|
||||
UnusualWeather_EventScript_PlaceTilesRoute129East:: @ 8273CA6
|
||||
setmetatile 42, 19, 334, 0
|
||||
setmetatile 43, 19, 334, 0
|
||||
setmetatile 41, 20, 334, 0
|
||||
@ -3170,35 +3170,27 @@ Route129_EventScript_273D13:: @ 8273D13
|
||||
setflag FLAG_SPECIAL_FLAG_0x4000
|
||||
return
|
||||
|
||||
Route105_EventScript_273D17:: @ 8273D17
|
||||
Route125_EventScript_273D17:: @ 8273D17
|
||||
Route127_EventScript_273D17:: @ 8273D17
|
||||
Route129_EventScript_273D17:: @ 8273D17
|
||||
UnusualWeather_StartKyogreWeather:: @ 8273D17
|
||||
setweather WEATHER_RAIN_HEAVY
|
||||
return
|
||||
|
||||
Route114_EventScript_273D1B:: @ 8273D1B
|
||||
Route115_EventScript_273D1B:: @ 8273D1B
|
||||
Route116_EventScript_273D1B:: @ 8273D1B
|
||||
Route118_EventScript_273D1B:: @ 8273D1B
|
||||
UnusualWeather_StartGroudonWeather:: @ 8273D1B
|
||||
setweather WEATHER_DROUGHT
|
||||
return
|
||||
|
||||
gUnknown_08273D1F:: @ 8273D1F
|
||||
|
||||
gUnknown_08273D1F:: @ 8273D1F
|
||||
UnusualWeather_EventScript_EndEventAndCleanup_1:: @ 8273D1F
|
||||
lockall
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_KYOGRE_LOCATIONS_START
|
||||
goto_if_ge Route105_EventScript_273D51
|
||||
goto Route105_EventScript_273D5F
|
||||
goto_if_ge UnusualWeather_EventScript_ShowRainEndedMessage
|
||||
goto UnusualWeather_EventScript_ShowSunEndedMessage
|
||||
end
|
||||
|
||||
Route105_EventScript_273D31:: @ 8273D31
|
||||
UnusualWeather_EventScript_EndEventAndCleanup_2:: @ 8273D31
|
||||
closemessage
|
||||
fadescreenswapbuffers 1
|
||||
setweather WEATHER_SUNNY
|
||||
doweather
|
||||
call Route105_EventScript_273D6D
|
||||
call UnusualWeather_EventScript_CleanupMapTiles
|
||||
special DrawWholeMapView
|
||||
setvar VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_NONE
|
||||
setvar VAR_0x4039, 0
|
||||
@ -3207,77 +3199,77 @@ Route105_EventScript_273D31:: @ 8273D31
|
||||
releaseall
|
||||
end
|
||||
|
||||
Route105_EventScript_273D51:: @ 8273D51
|
||||
msgbox gUnknown_08273656, MSGBOX_DEFAULT
|
||||
goto Route105_EventScript_273D31
|
||||
UnusualWeather_EventScript_ShowRainEndedMessage:: @ 8273D51
|
||||
msgbox gText_UnusualWeatherEnded_Rain, MSGBOX_DEFAULT
|
||||
goto UnusualWeather_EventScript_EndEventAndCleanup_2
|
||||
end
|
||||
|
||||
Route105_EventScript_273D5F:: @ 8273D5F
|
||||
msgbox gUnknown_08273684, MSGBOX_DEFAULT
|
||||
goto Route105_EventScript_273D31
|
||||
UnusualWeather_EventScript_ShowSunEndedMessage:: @ 8273D5F
|
||||
msgbox gText_UnusualWeatherEnded_Sun, MSGBOX_DEFAULT
|
||||
goto UnusualWeather_EventScript_EndEventAndCleanup_2
|
||||
end
|
||||
|
||||
Route105_EventScript_273D6D:: @ 8273D6D
|
||||
UnusualWeather_EventScript_CleanupMapTiles:: @ 8273D6D
|
||||
switch VAR_UNUSUAL_WEATHER_LOCATION
|
||||
case UNUSUAL_WEATHER_ROUTE_114_NORTH, Route105_EventScript_273E23
|
||||
case UNUSUAL_WEATHER_ROUTE_114_SOUTH, Route105_EventScript_273E36
|
||||
case UNUSUAL_WEATHER_ROUTE_115_WEST, Route105_EventScript_273E49
|
||||
case UNUSUAL_WEATHER_ROUTE_115_EAST, Route105_EventScript_273E5C
|
||||
case UNUSUAL_WEATHER_ROUTE_116_NORTH, Route105_EventScript_273E6F
|
||||
case UNUSUAL_WEATHER_ROUTE_116_SOUTH, Route105_EventScript_273E82
|
||||
case UNUSUAL_WEATHER_ROUTE_118_EAST, Route105_EventScript_273E95
|
||||
case UNUSUAL_WEATHER_ROUTE_118_WEST, Route105_EventScript_273EA8
|
||||
case UNUSUAL_WEATHER_ROUTE_105_NORTH, Route105_EventScript_273EBB
|
||||
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, Route105_EventScript_273F28
|
||||
case UNUSUAL_WEATHER_ROUTE_125_WEST, Route105_EventScript_273F95
|
||||
case UNUSUAL_WEATHER_ROUTE_125_EAST, Route105_EventScript_274002
|
||||
case UNUSUAL_WEATHER_ROUTE_127_NORTH, Route105_EventScript_27406F
|
||||
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, Route105_EventScript_2740DC
|
||||
case UNUSUAL_WEATHER_ROUTE_129_WEST, Route105_EventScript_274149
|
||||
case UNUSUAL_WEATHER_ROUTE_129_EAST, Route105_EventScript_2741B6
|
||||
case UNUSUAL_WEATHER_ROUTE_114_NORTH, UnusualWeather_EventScript_CleanupRoute114North
|
||||
case UNUSUAL_WEATHER_ROUTE_114_SOUTH, UnusualWeather_EventScript_CleanupRoute114South
|
||||
case UNUSUAL_WEATHER_ROUTE_115_WEST, UnusualWeather_EventScript_CleanupRoute115West
|
||||
case UNUSUAL_WEATHER_ROUTE_115_EAST, UnusualWeather_EventScript_CleanupRoute115East
|
||||
case UNUSUAL_WEATHER_ROUTE_116_NORTH, UnusualWeather_EventScript_CleanupRoute116North
|
||||
case UNUSUAL_WEATHER_ROUTE_116_SOUTH, UnusualWeather_EventScript_CleanupRoute116South
|
||||
case UNUSUAL_WEATHER_ROUTE_118_EAST, UnusualWeather_EventScript_CleanupRoute118East
|
||||
case UNUSUAL_WEATHER_ROUTE_118_WEST, UnusualWeather_EventScript_CleanupRoute118West
|
||||
case UNUSUAL_WEATHER_ROUTE_105_NORTH, UnusualWeather_EventScript_CleanupRoute105North
|
||||
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, UnusualWeather_EventScript_CleanupRoute105South
|
||||
case UNUSUAL_WEATHER_ROUTE_125_WEST, UnusualWeather_EventScript_CleanupRoute125West
|
||||
case UNUSUAL_WEATHER_ROUTE_125_EAST, UnusualWeather_EventScript_CleanupRoute125East
|
||||
case UNUSUAL_WEATHER_ROUTE_127_NORTH, UnusualWeather_EventScript_CleanupRoute127North
|
||||
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, UnusualWeather_EventScript_CleanupRoute127South
|
||||
case UNUSUAL_WEATHER_ROUTE_129_WEST, UnusualWeather_EventScript_CleanupRoute129West
|
||||
case UNUSUAL_WEATHER_ROUTE_129_EAST, UnusualWeather_EventScript_CleanupRoute129East
|
||||
return
|
||||
|
||||
Route105_EventScript_273E23:: @ 8273E23
|
||||
UnusualWeather_EventScript_CleanupRoute114North:: @ 8273E23
|
||||
setmetatile 7, 3, 617, 1
|
||||
setmetatile 7, 4, 617, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E36:: @ 8273E36
|
||||
UnusualWeather_EventScript_CleanupRoute114South:: @ 8273E36
|
||||
setmetatile 6, 45, 613, 1
|
||||
setmetatile 6, 46, 613, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E49:: @ 8273E49
|
||||
UnusualWeather_EventScript_CleanupRoute115West:: @ 8273E49
|
||||
setmetatile 21, 5, 613, 1
|
||||
setmetatile 21, 6, 613, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E5C:: @ 8273E5C
|
||||
UnusualWeather_EventScript_CleanupRoute115East:: @ 8273E5C
|
||||
setmetatile 36, 9, 613, 1
|
||||
setmetatile 36, 10, 613, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E6F:: @ 8273E6F
|
||||
UnusualWeather_EventScript_CleanupRoute116North:: @ 8273E6F
|
||||
setmetatile 59, 12, 124, 1
|
||||
setmetatile 59, 13, 124, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E82:: @ 8273E82
|
||||
UnusualWeather_EventScript_CleanupRoute116South:: @ 8273E82
|
||||
setmetatile 79, 5, 124, 1
|
||||
setmetatile 79, 6, 124, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273E95:: @ 8273E95
|
||||
UnusualWeather_EventScript_CleanupRoute118East:: @ 8273E95
|
||||
setmetatile 42, 5, 124, 1
|
||||
setmetatile 42, 6, 121, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273EA8:: @ 8273EA8
|
||||
UnusualWeather_EventScript_CleanupRoute118West:: @ 8273EA8
|
||||
setmetatile 9, 5, 124, 1
|
||||
setmetatile 9, 6, 121, 1
|
||||
return
|
||||
|
||||
Route105_EventScript_273EBB:: @ 8273EBB
|
||||
UnusualWeather_EventScript_CleanupRoute105North:: @ 8273EBB
|
||||
setmetatile 10, 28, 368, 0
|
||||
setmetatile 11, 28, 368, 0
|
||||
setmetatile 9, 29, 368, 0
|
||||
@ -3292,7 +3284,7 @@ Route105_EventScript_273EBB:: @ 8273EBB
|
||||
setmetatile 11, 31, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_273F28:: @ 8273F28
|
||||
UnusualWeather_EventScript_CleanupRoute105South:: @ 8273F28
|
||||
setmetatile 20, 53, 368, 0
|
||||
setmetatile 21, 53, 368, 0
|
||||
setmetatile 19, 54, 368, 0
|
||||
@ -3307,7 +3299,7 @@ Route105_EventScript_273F28:: @ 8273F28
|
||||
setmetatile 21, 56, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_273F95:: @ 8273F95
|
||||
UnusualWeather_EventScript_CleanupRoute125West:: @ 8273F95
|
||||
setmetatile 8, 16, 368, 0
|
||||
setmetatile 9, 16, 368, 0
|
||||
setmetatile 7, 17, 368, 0
|
||||
@ -3322,7 +3314,7 @@ Route105_EventScript_273F95:: @ 8273F95
|
||||
setmetatile 9, 19, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_274002:: @ 8274002
|
||||
UnusualWeather_EventScript_CleanupRoute125East:: @ 8274002
|
||||
setmetatile 53, 18, 368, 0
|
||||
setmetatile 54, 18, 368, 0
|
||||
setmetatile 52, 19, 368, 0
|
||||
@ -3337,7 +3329,7 @@ Route105_EventScript_274002:: @ 8274002
|
||||
setmetatile 54, 21, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_27406F:: @ 827406F
|
||||
UnusualWeather_EventScript_CleanupRoute127North:: @ 827406F
|
||||
setmetatile 57, 9, 368, 0
|
||||
setmetatile 58, 9, 368, 0
|
||||
setmetatile 56, 10, 368, 0
|
||||
@ -3352,7 +3344,7 @@ Route105_EventScript_27406F:: @ 827406F
|
||||
setmetatile 58, 12, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_2740DC:: @ 82740DC
|
||||
UnusualWeather_EventScript_CleanupRoute127South:: @ 82740DC
|
||||
setmetatile 61, 30, 368, 0
|
||||
setmetatile 62, 30, 368, 0
|
||||
setmetatile 60, 31, 368, 0
|
||||
@ -3367,7 +3359,7 @@ Route105_EventScript_2740DC:: @ 82740DC
|
||||
setmetatile 62, 33, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_274149:: @ 8274149
|
||||
UnusualWeather_EventScript_CleanupRoute129West:: @ 8274149
|
||||
setmetatile 16, 14, 368, 0
|
||||
setmetatile 17, 14, 368, 0
|
||||
setmetatile 15, 15, 368, 0
|
||||
@ -3382,7 +3374,7 @@ Route105_EventScript_274149:: @ 8274149
|
||||
setmetatile 17, 17, 368, 0
|
||||
return
|
||||
|
||||
Route105_EventScript_2741B6:: @ 82741B6
|
||||
UnusualWeather_EventScript_CleanupRoute129East:: @ 82741B6
|
||||
setmetatile 42, 19, 368, 0
|
||||
setmetatile 43, 19, 368, 0
|
||||
setmetatile 41, 20, 368, 0
|
||||
@ -3397,50 +3389,47 @@ Route105_EventScript_2741B6:: @ 82741B6
|
||||
setmetatile 43, 22, 368, 0
|
||||
return
|
||||
|
||||
Underwater3_EventScript_274223:: @ 8274223
|
||||
Underwater5_EventScript_274223:: @ 8274223
|
||||
Underwater6_EventScript_274223:: @ 8274223
|
||||
Underwater7_EventScript_274223:: @ 8274223
|
||||
UnusualWeather_Underwater_SetupEscapeWarp:: @ 8274223
|
||||
switch VAR_UNUSUAL_WEATHER_LOCATION
|
||||
case UNUSUAL_WEATHER_ROUTE_105_NORTH, Underwater3_EventScript_274281
|
||||
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, Underwater3_EventScript_27428A
|
||||
case UNUSUAL_WEATHER_ROUTE_125_WEST, Underwater3_EventScript_274293
|
||||
case UNUSUAL_WEATHER_ROUTE_125_EAST, Underwater3_EventScript_27429C
|
||||
case UNUSUAL_WEATHER_ROUTE_127_NORTH, Underwater3_EventScript_2742A5
|
||||
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, Underwater3_EventScript_2742AE
|
||||
case UNUSUAL_WEATHER_ROUTE_129_WEST, Underwater3_EventScript_2742B7
|
||||
case UNUSUAL_WEATHER_ROUTE_129_EAST, Underwater3_EventScript_2742C0
|
||||
case UNUSUAL_WEATHER_ROUTE_105_NORTH, UnusualWeather_Underwater_SetupEscapeWarpRoute105North
|
||||
case UNUSUAL_WEATHER_ROUTE_105_SOUTH, UnusualWeather_Underwater_SetupEscapeWarpRoute105South
|
||||
case UNUSUAL_WEATHER_ROUTE_125_WEST, UnusualWeather_Underwater_SetupEscapeWarpRoute125West
|
||||
case UNUSUAL_WEATHER_ROUTE_125_EAST, UnusualWeather_Underwater_SetupEscapeWarpRoute125East
|
||||
case UNUSUAL_WEATHER_ROUTE_127_NORTH, UnusualWeather_Underwater_SetupEscapeWarpRoute127North
|
||||
case UNUSUAL_WEATHER_ROUTE_127_SOUTH, UnusualWeather_Underwater_SetupEscapeWarpRoute127South
|
||||
case UNUSUAL_WEATHER_ROUTE_129_WEST, UnusualWeather_Underwater_SetupEscapeWarpRoute129West
|
||||
case UNUSUAL_WEATHER_ROUTE_129_EAST, UnusualWeather_Underwater_SetupEscapeWarpRoute129East
|
||||
return
|
||||
|
||||
Underwater3_EventScript_274281:: @ 8274281
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute105North:: @ 8274281
|
||||
setescapewarp MAP_ROUTE105, 255, 11, 29
|
||||
return
|
||||
|
||||
Underwater3_EventScript_27428A:: @ 827428A
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute105South:: @ 827428A
|
||||
setescapewarp MAP_ROUTE105, 255, 21, 54
|
||||
return
|
||||
|
||||
Underwater3_EventScript_274293:: @ 8274293
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute125West:: @ 8274293
|
||||
setescapewarp MAP_ROUTE125, 255, 9, 17
|
||||
return
|
||||
|
||||
Underwater3_EventScript_27429C:: @ 827429C
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute125East:: @ 827429C
|
||||
setescapewarp MAP_ROUTE125, 255, 54, 19
|
||||
return
|
||||
|
||||
Underwater3_EventScript_2742A5:: @ 82742A5
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute127North:: @ 82742A5
|
||||
setescapewarp MAP_ROUTE127, 255, 58, 10
|
||||
return
|
||||
|
||||
Underwater3_EventScript_2742AE:: @ 82742AE
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute127South:: @ 82742AE
|
||||
setescapewarp MAP_ROUTE127, 255, 62, 31
|
||||
return
|
||||
|
||||
Underwater3_EventScript_2742B7:: @ 82742B7
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute129West:: @ 82742B7
|
||||
setescapewarp MAP_ROUTE129, 255, 17, 15
|
||||
return
|
||||
|
||||
Underwater3_EventScript_2742C0:: @ 82742C0
|
||||
UnusualWeather_Underwater_SetupEscapeWarpRoute129East:: @ 82742C0
|
||||
setescapewarp MAP_ROUTE129, 255, 43, 20
|
||||
return
|
||||
|
||||
|
@ -7,9 +7,9 @@ Route105_MapScripts:: @ 81EE1DB
|
||||
Route105_MapScript1_1EE1EB: @ 81EE1EB
|
||||
call_if_unset FLAG_REGI_DOORS_OPENED, Route105_EventScript_1EE20B
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_NORTH
|
||||
call_if_eq Route105_EventScript_2739AB
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute105North
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_SOUTH
|
||||
call_if_eq Route105_EventScript_273A18
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute105South
|
||||
end
|
||||
|
||||
Route105_EventScript_1EE20B:: @ 81EE20B
|
||||
@ -21,13 +21,13 @@ Route105_MapScript1_1EE21E: @ 81EE21E
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route105_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_NORTH
|
||||
call_if_eq Route105_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_SOUTH
|
||||
call_if_eq Route105_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
end
|
||||
|
||||
Route105_MapScript2_1EE240: @ 81EE240
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route105_EventScript_1EE24A:: @ 81EE24A
|
||||
|
@ -8,20 +8,20 @@ Route114_MapScript1_1F253F: @ 81F253F
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route114_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_NORTH
|
||||
call_if_eq Route114_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_SOUTH
|
||||
call_if_eq Route114_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
end
|
||||
|
||||
Route114_MapScript1_1F2561: @ 81F2561
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_NORTH
|
||||
call_if_eq Route114_EventScript_273913
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute114North
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_SOUTH
|
||||
call_if_eq Route114_EventScript_273926
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute114South
|
||||
end
|
||||
|
||||
Route114_MapScript2_1F2578: @ 81F2578
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route114_EventScript_1F2582:: @ 81F2582
|
||||
|
@ -6,22 +6,22 @@ Route115_MapScripts:: @ 81F2920
|
||||
|
||||
Route115_MapScript1_1F2930: @ 81F2930
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_WEST
|
||||
call_if_eq Route115_EventScript_273939
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute115West
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_EAST
|
||||
call_if_eq Route115_EventScript_27394C
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute115East
|
||||
end
|
||||
|
||||
Route115_MapScript1_1F2947: @ 81F2947
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route115_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_WEST
|
||||
call_if_eq Route115_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_EAST
|
||||
call_if_eq Route115_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
end
|
||||
|
||||
Route115_MapScript2_1F2969: @ 81F2969
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route115_EventScript_1F2973:: @ 81F2973
|
||||
|
@ -9,9 +9,9 @@ Route116_MapScript1_1F2C1C: @ 81F2C1C
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route116_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_NORTH
|
||||
call_if_eq Route116_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_SOUTH
|
||||
call_if_eq Route116_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
end
|
||||
|
||||
Route116_EventScript_1F2C47:: @ 81F2C47
|
||||
@ -20,13 +20,13 @@ Route116_EventScript_1F2C47:: @ 81F2C47
|
||||
|
||||
Route116_MapScript1_1F2C4F: @ 81F2C4F
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_NORTH
|
||||
call_if_eq Route116_EventScript_27395F
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute116North
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_SOUTH
|
||||
call_if_eq Route116_EventScript_273972
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute116South
|
||||
end
|
||||
|
||||
Route116_MapScript2_1F2C66: @ 81F2C66
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route116_EventScript_1F2C70:: @ 81F2C70
|
||||
|
@ -9,20 +9,20 @@ Route118_MapScript1_1F3DCC: @ 81F3DCC
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route118_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_EAST
|
||||
call_if_eq Route118_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_WEST
|
||||
call_if_eq Route118_EventScript_273D1B
|
||||
call_if_eq UnusualWeather_StartGroudonWeather
|
||||
end
|
||||
|
||||
Route118_MapScript1_1F3DF3: @ 81F3DF3
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_EAST
|
||||
call_if_eq Route118_EventScript_273985
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute118East
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_WEST
|
||||
call_if_eq Route118_EventScript_273998
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute118West
|
||||
end
|
||||
|
||||
Route118_MapScript2_1F3E0A: @ 81F3E0A
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route118_EventScript_1F3E14:: @ 81F3E14
|
||||
|
@ -131,43 +131,43 @@ Route119_WeatherInstitute_2F_EventScript_2700EA:: @ 82700EA
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_2F_EventScript_2700F7:: @ 82700F7
|
||||
goto_if_set FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_2F_EventScript_27010A
|
||||
goto_if_set FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_2F_EventScript_TryStartUnusualWeather
|
||||
msgbox Route119_WeatherInstitute_2F_Text_27077E, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_2F_EventScript_27010A:: @ 827010A
|
||||
Route119_WeatherInstitute_2F_EventScript_TryStartUnusualWeather:: @ 827010A
|
||||
@ This code uses VAR_0x8004 to count the number of legendaries the player has defeated
|
||||
@ already.
|
||||
setvar VAR_0x8004, 0
|
||||
call_if_set FLAG_DEFEATED_KYOGRE, WeatherInstitute_UnusualWeather_IncrementLegendCount
|
||||
call_if_set FLAG_DEFEATED_GROUDON, WeatherInstitute_UnusualWeather_IncrementLegendCount
|
||||
call_if_set FLAG_DEFEATED_KYOGRE, WeatherInstitute_UnusualWeather_EventScript_IncrementLegendCount
|
||||
call_if_set FLAG_DEFEATED_GROUDON, WeatherInstitute_UnusualWeather_EventScript_IncrementLegendCount
|
||||
compare VAR_0x8004, 2
|
||||
goto_if_eq WeatherInstitute_UnusualWeather_LegendariesAlreadyDefeated
|
||||
call_if_unset FLAG_TEMP_2, Route119_WeatherInstitute_2F_EventScript_270159
|
||||
specialvar VAR_RESULT, sub_813B374
|
||||
goto_if_eq WeatherInstitute_UnusualWeather_EventScript_ShowLegendariesAlreadyDefeated
|
||||
call_if_unset FLAG_TEMP_2, WeatherInstitute_UnusualWeather_EventScript_DoCreateUnusualWeather
|
||||
specialvar VAR_RESULT, GetUnusualWeatherMapNameAndType
|
||||
compare VAR_RESULT, 1
|
||||
goto_if_eq Route119_WeatherInstitute_2F_EventScript_27014F
|
||||
msgbox Route119_WeatherInstitute_2F_Text_2707F1, MSGBOX_DEFAULT
|
||||
goto_if_eq WeatherInstitute_UnusualWeather_EventScript_ShowKyogreWeatherMessage
|
||||
msgbox WeatherInstitute_UnusualWeather_GroudonWeatherText, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_2F_EventScript_27014F:: @ 827014F
|
||||
msgbox Route119_WeatherInstitute_2F_Text_270873, MSGBOX_DEFAULT
|
||||
WeatherInstitute_UnusualWeather_EventScript_ShowKyogreWeatherMessage:: @ 827014F
|
||||
msgbox WeatherInstitute_UnusualWeather_KyogreWeatherText, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_2F_EventScript_270159:: @ 8270159
|
||||
WeatherInstitute_UnusualWeather_EventScript_DoCreateUnusualWeather:: @ 8270159
|
||||
special CreateUnusualWeatherEvent
|
||||
setflag FLAG_TEMP_2
|
||||
return
|
||||
|
||||
WeatherInstitute_UnusualWeather_IncrementLegendCount:: @ 8270160
|
||||
WeatherInstitute_UnusualWeather_EventScript_IncrementLegendCount:: @ 8270160
|
||||
addvar VAR_0x8004, 1
|
||||
return
|
||||
|
||||
WeatherInstitute_UnusualWeather_LegendariesAlreadyDefeated:: @ 8270166
|
||||
msgbox WeatherInstitute_UnusualWeather_LegendariesAlreadyDefeatedText, MSGBOX_DEFAULT
|
||||
WeatherInstitute_UnusualWeather_EventScript_ShowLegendariesAlreadyDefeated:: @ 8270166
|
||||
msgbox WeatherInstitute_UnusualWeather_EventScript_ShowLegendariesAlreadyDefeatedText, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
@ -311,7 +311,7 @@ Route119_WeatherInstitute_2F_Text_27077E: @ 827077E
|
||||
.string "years, but it's ridiculous to think that\l"
|
||||
.string "humans can freely change the weather.$"
|
||||
|
||||
Route119_WeatherInstitute_2F_Text_2707F1: @ 82707F1
|
||||
WeatherInstitute_UnusualWeather_GroudonWeatherText: @ 82707F1
|
||||
.string "I track weather patterns over\n"
|
||||
.string "the HOENN region.\p"
|
||||
.string "Presently, a drought has been recorded\n"
|
||||
@ -319,7 +319,7 @@ Route119_WeatherInstitute_2F_Text_2707F1: @ 82707F1
|
||||
.string "Could that mean, somewhere near\n"
|
||||
.string "{STR_VAR_1}…$"
|
||||
|
||||
Route119_WeatherInstitute_2F_Text_270873: @ 8270873
|
||||
WeatherInstitute_UnusualWeather_KyogreWeatherText: @ 8270873
|
||||
.string "I track weather patterns over\n"
|
||||
.string "the HOENN region.\p"
|
||||
.string "Presently, heavy rainfall has been\n"
|
||||
@ -327,7 +327,7 @@ Route119_WeatherInstitute_2F_Text_270873: @ 8270873
|
||||
.string "Could that mean, somewhere near\n"
|
||||
.string "{STR_VAR_1}…$"
|
||||
|
||||
WeatherInstitute_UnusualWeather_LegendariesAlreadyDefeatedText: @ 82708FC
|
||||
WeatherInstitute_UnusualWeather_EventScript_ShowLegendariesAlreadyDefeatedText: @ 82708FC
|
||||
.string "Abnormal weather conditions are\n"
|
||||
.string "no longer being reported.\p"
|
||||
.string "The occasional rainfall is a blessing,\n"
|
||||
|
@ -9,20 +9,20 @@ Route125_MapScript1_1F6758: @ 81F6758
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route125_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_WEST
|
||||
call_if_eq Route125_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_EAST
|
||||
call_if_eq Route125_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
end
|
||||
|
||||
Route125_MapScript1_1F6783: @ 81F6783
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_WEST
|
||||
call_if_eq Route125_EventScript_273A85
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute125West
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_EAST
|
||||
call_if_eq Route125_EventScript_273AF2
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute125East
|
||||
end
|
||||
|
||||
Route125_MapScript2_1F679A: @ 81F679A
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route125_EventScript_1F67A4:: @ 81F67A4
|
||||
|
@ -9,20 +9,20 @@ Route127_MapScript1_1F69E9: @ 81F69E9
|
||||
compare VAR_0x4039, 1
|
||||
call_if_eq Route127_EventScript_273D13
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_NORTH
|
||||
call_if_eq Route127_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_SOUTH
|
||||
call_if_eq Route127_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
end
|
||||
|
||||
Route127_MapScript1_1F6A14: @ 81F6A14
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_NORTH
|
||||
call_if_eq Route127_EventScript_273B5F
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute127North
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_SOUTH
|
||||
call_if_eq Route127_EventScript_273BCC
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute127South
|
||||
end
|
||||
|
||||
Route127_MapScript2_1F6A2B: @ 81F6A2B
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route127_EventScript_1F6A35:: @ 81F6A35
|
||||
|
@ -6,9 +6,9 @@ Route129_MapScripts:: @ 81F7284
|
||||
|
||||
Route129_MapScript1_1F7294: @ 81F7294
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
|
||||
call_if_eq Route129_EventScript_273C39
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129West
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_EAST
|
||||
call_if_eq Route129_EventScript_273CA6
|
||||
call_if_eq UnusualWeather_EventScript_PlaceTilesRoute129East
|
||||
end
|
||||
|
||||
Route129_MapScript1_1F72AB: @ 81F72AB
|
||||
@ -17,9 +17,9 @@ Route129_MapScript1_1F72AB: @ 81F72AB
|
||||
compare VAR_0x405E, 4
|
||||
call_if_ge Route129_EventScript_1F72D8
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
|
||||
call_if_eq Route129_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_EAST
|
||||
call_if_eq Route129_EventScript_273D17
|
||||
call_if_eq UnusualWeather_StartKyogreWeather
|
||||
end
|
||||
|
||||
Route129_EventScript_1F72D8:: @ 81F72D8
|
||||
@ -27,7 +27,7 @@ Route129_EventScript_1F72D8:: @ 81F72D8
|
||||
return
|
||||
|
||||
Route129_MapScript2_1F72E2: @ 81F72E2
|
||||
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
|
||||
map_script_2 VAR_0x4039, 1, UnusualWeather_EventScript_EndEventAndCleanup_1
|
||||
.2byte 0
|
||||
|
||||
Route129_EventScript_1F72EC:: @ 81F72EC
|
||||
|
@ -3,6 +3,6 @@ Underwater3_MapScripts:: @ 81F7724
|
||||
.byte 0
|
||||
|
||||
Underwater3_MapScript1_1F772A: @ 81F772A
|
||||
call Underwater3_EventScript_274223
|
||||
call UnusualWeather_Underwater_SetupEscapeWarp
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,6 @@ Underwater5_MapScripts:: @ 81F7731
|
||||
.byte 0
|
||||
|
||||
Underwater5_MapScript1_1F7737: @ 81F7737
|
||||
call Underwater5_EventScript_274223
|
||||
call UnusualWeather_Underwater_SetupEscapeWarp
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,6 @@ Underwater6_MapScripts:: @ 81F773D
|
||||
.byte 0
|
||||
|
||||
Underwater6_MapScript1_1F7743: @ 81F7743
|
||||
call Underwater6_EventScript_274223
|
||||
call UnusualWeather_Underwater_SetupEscapeWarp
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,6 @@ Underwater7_MapScripts:: @ 81F7749
|
||||
.byte 0
|
||||
|
||||
Underwater7_MapScript1_1F774F: @ 81F774F
|
||||
call Underwater7_EventScript_274223
|
||||
call UnusualWeather_Underwater_SetupEscapeWarp
|
||||
end
|
||||
|
||||
|
@ -500,7 +500,7 @@ gSpecials:: @ 81DBA64
|
||||
def_special SetMatchCallRegisteredFlag
|
||||
def_special sub_8175280
|
||||
def_special CreateUnusualWeatherEvent
|
||||
def_special sub_813B374
|
||||
def_special GetUnusualWeatherMapNameAndType
|
||||
def_special sub_813B490
|
||||
def_special sub_80A08CC
|
||||
def_special Unused_SetWeatherSunny
|
||||
|
@ -564,7 +564,7 @@ extern const u8 EventScript_FallDownHole[];
|
||||
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8[];
|
||||
extern const u8 EventScript_Poison[];
|
||||
extern const u8 EventScript_EggHatch[];
|
||||
extern const u8 gUnknown_08273D1F[];
|
||||
extern const u8 UnusualWeather_EventScript_EndEventAndCleanup_1[];
|
||||
extern const u8 IslandCave_EventScript_238EAF[];
|
||||
extern const u8 MauvilleCity_EventScript_1DF7BA[];
|
||||
extern const u8 Route119_EventScript_1F49EC[];
|
||||
|
@ -559,7 +559,7 @@ static bool8 TryStartStepCountScript(u16 metatileBehavior)
|
||||
}
|
||||
if (sub_813B3B0() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(gUnknown_08273D1F);
|
||||
ScriptContext1_SetupScript(UnusualWeather_EventScript_EndEventAndCleanup_1);
|
||||
return TRUE;
|
||||
}
|
||||
if (ShouldDoBrailleRegicePuzzle() == TRUE)
|
||||
|
@ -3446,15 +3446,17 @@ void CreateUnusualWeatherEvent(void)
|
||||
}
|
||||
}
|
||||
|
||||
bool32 sub_813B374(void)
|
||||
// Saves the map name for the current unusual weather location in gStringVar1, then
|
||||
// returns TRUE if the weather is for Kyogre, and FALSE if it's for Groudon.
|
||||
bool32 GetUnusualWeatherMapNameAndType(void)
|
||||
{
|
||||
static const u8 gUnknown_085B3400[] = { 0x1d, 0x1d, 0x1e, 0x1e, 0x1f, 0x1f, 0x21, 0x21, 0x14, 0x14, 0x28, 0x28, 0x2a, 0x2a, 0x2c, 0x2c };
|
||||
static const u8 sUnusualWeatherMapNumbers[] = { 0x1d, 0x1d, 0x1e, 0x1e, 0x1f, 0x1f, 0x21, 0x21, 0x14, 0x14, 0x28, 0x28, 0x2a, 0x2a, 0x2c, 0x2c };
|
||||
|
||||
u16 var = VarGet(VAR_UNUSUAL_WEATHER_LOCATION);
|
||||
u16 unusualWeather = VarGet(VAR_UNUSUAL_WEATHER_LOCATION);
|
||||
|
||||
GetMapName(gStringVar1, gUnknown_085B3400[var - 1], 0);
|
||||
GetMapName(gStringVar1, sUnusualWeatherMapNumbers[unusualWeather - 1], 0);
|
||||
|
||||
if (var < 9)
|
||||
if (unusualWeather < UNUSUAL_WEATHER_KYOGRE_LOCATIONS_START)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@ -3466,7 +3468,8 @@ bool32 sub_813B374(void)
|
||||
|
||||
bool8 sub_813B3B0(void)
|
||||
{
|
||||
static const u8 sUnusualWeatherMapNumbers[] = { 0x1d, 0x1d, 0x1e, 0x1e, 0x1f, 0x1f, 0x21, 0x21, 0x14, 0x14, 0x28, 0x28, 0x2a, 0x2a, 0x2c, 0x2c };
|
||||
// Duplicate array.
|
||||
static const u8 sUnusualWeatherMapNumbers_2[] = { 0x1d, 0x1d, 0x1e, 0x1e, 0x1f, 0x1f, 0x21, 0x21, 0x14, 0x14, 0x28, 0x28, 0x2a, 0x2a, 0x2c, 0x2c };
|
||||
|
||||
u16 var1 = VarGet(VAR_0x4038);
|
||||
u16 unusualWeather = VarGet(VAR_UNUSUAL_WEATHER_LOCATION);
|
||||
@ -3510,7 +3513,7 @@ bool8 sub_813B3B0(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (gSaveBlock1Ptr->location.mapNum == sUnusualWeatherMapNumbers[unusualWeather - 1] &&
|
||||
if (gSaveBlock1Ptr->location.mapNum == sUnusualWeatherMapNumbers_2[unusualWeather - 1] &&
|
||||
gSaveBlock1Ptr->location.mapGroup == 0)
|
||||
{
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user