summaryrefslogtreecommitdiff
path: root/data/maps/Route119_WeatherInstitute_2F
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-02-27 04:27:54 -0500
committerPhlosioneer <mattmdrr2@gmail.com>2019-02-27 04:27:54 -0500
commitc1348d22f3d85cbc7425e8498a023b9b525f7207 (patch)
tree9c85b2eefdfc355405f7a99c65e299a62c42aa5e /data/maps/Route119_WeatherInstitute_2F
parentfe55580fe1e51c669033939125c939ed13a555d0 (diff)
Name most event scripts related to unusual weather
Diffstat (limited to 'data/maps/Route119_WeatherInstitute_2F')
-rw-r--r--data/maps/Route119_WeatherInstitute_2F/scripts.inc36
1 files changed, 18 insertions, 18 deletions
diff --git a/data/maps/Route119_WeatherInstitute_2F/scripts.inc b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
index 2eaeceb2f..fa2664d68 100644
--- a/data/maps/Route119_WeatherInstitute_2F/scripts.inc
+++ b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
@@ -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"