summaryrefslogtreecommitdiff
path: root/data/maps/Route119_WeatherInstitute_1F/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/Route119_WeatherInstitute_1F/scripts.inc')
-rw-r--r--data/maps/Route119_WeatherInstitute_1F/scripts.inc15
1 files changed, 6 insertions, 9 deletions
diff --git a/data/maps/Route119_WeatherInstitute_1F/scripts.inc b/data/maps/Route119_WeatherInstitute_1F/scripts.inc
index 3b36baf91..b0426ea2e 100644
--- a/data/maps/Route119_WeatherInstitute_1F/scripts.inc
+++ b/data/maps/Route119_WeatherInstitute_1F/scripts.inc
@@ -4,7 +4,7 @@ Route119_WeatherInstitute_1F_MapScripts:: @ 826FA86
Route119_WeatherInstitute_1F_MapScript1_26FA8C: @ 826FA8C
compare VAR_WEATHER_INSTITUTE_STATE, 0
- call_if 1, Route119_WeatherInstitute_1F_EventScript_26FA98
+ call_if_eq Route119_WeatherInstitute_1F_EventScript_26FA98
end
Route119_WeatherInstitute_1F_EventScript_26FA98:: @ 826FA98
@@ -17,7 +17,7 @@ Route119_WeatherInstitute_1F_EventScript_26FAA4:: @ 826FAA4
faceplayer
special GetPlayerBigGuyGirlString
compare VAR_WEATHER_INSTITUTE_STATE, 0
- goto_eq Route119_WeatherInstitute_1F_EventScript_26FABE
+ goto_if_eq Route119_WeatherInstitute_1F_EventScript_26FABE
msgbox Route119_WeatherInstitute_1F_Text_26FCE5, MSGBOX_DEFAULT
release
end
@@ -30,15 +30,12 @@ Route119_WeatherInstitute_1F_EventScript_26FABE:: @ 826FABE
Route119_WeatherInstitute_1F_EventScript_26FAC8:: @ 826FAC8
lock
faceplayer
- checkflag FLAG_SYS_GAME_CLEAR
- goto_if 0, Route119_WeatherInstitute_1F_EventScript_26FB05
+ goto_if_unset FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_1F_EventScript_26FB05
setvar VAR_0x8004, 0
- checkflag FLAG_0x1BE
- call_if 1, Route119_WeatherInstitute_1F_EventScript_26FAFF
- checkflag FLAG_0x1BF
- call_if 1, Route119_WeatherInstitute_1F_EventScript_26FAFF
+ call_if_set FLAG_0x1BE, Route119_WeatherInstitute_1F_EventScript_26FAFF
+ call_if_set FLAG_0x1BF, Route119_WeatherInstitute_1F_EventScript_26FAFF
compare VAR_0x8004, 2
- goto_eq Route119_WeatherInstitute_1F_EventScript_26FB05
+ goto_if_eq Route119_WeatherInstitute_1F_EventScript_26FB05
msgbox Route119_WeatherInstitute_1F_Text_26FDE8, MSGBOX_DEFAULT
release
end