summaryrefslogtreecommitdiff
path: root/data/maps/Route119_WeatherInstitute_2F/scripts.inc
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
committerMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
commitac2e4adf2da2f30a741556e20e5bc9a494997581 (patch)
tree1a05a202cfece044d546094581d8463a9b6e452c /data/maps/Route119_WeatherInstitute_2F/scripts.inc
parent87fd6b8dc21b37b656f16e3f11832c6951328750 (diff)
improve goto_if macros
Diffstat (limited to 'data/maps/Route119_WeatherInstitute_2F/scripts.inc')
-rw-r--r--data/maps/Route119_WeatherInstitute_2F/scripts.inc18
1 files changed, 8 insertions, 10 deletions
diff --git a/data/maps/Route119_WeatherInstitute_2F/scripts.inc b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
index 1feda2f60..8cc69383a 100644
--- a/data/maps/Route119_WeatherInstitute_2F/scripts.inc
+++ b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
@@ -87,9 +87,9 @@ Route119_WeatherInstitute_2F_EventScript_27004D:: @ 827004D
setvar VAR_TEMP_1, 385
givemon SPECIES_CASTFORM, 25, ITEM_MYSTIC_WATER, 0x0, 0x0, 0
compare VAR_RESULT, 0
- goto_eq Route119_WeatherInstitute_2F_EventScript_270085
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_270085
compare VAR_RESULT, 1
- goto_eq Route119_WeatherInstitute_2F_EventScript_2700AD
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700AD
goto Route119_WeatherInstitute_2F_EventScript_273811
end
@@ -97,7 +97,7 @@ Route119_WeatherInstitute_2F_EventScript_270085:: @ 8270085
call Route119_WeatherInstitute_2F_EventScript_2700DB
msgbox gUnknown_08273374, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_eq Route119_WeatherInstitute_2F_EventScript_2700EA
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700EA
call Route119_WeatherInstitute_2F_EventScript_27378B
call Route119_WeatherInstitute_2F_EventScript_2723DD
goto Route119_WeatherInstitute_2F_EventScript_2700EA
@@ -107,7 +107,7 @@ Route119_WeatherInstitute_2F_EventScript_2700AD:: @ 82700AD
call Route119_WeatherInstitute_2F_EventScript_2700DB
msgbox gUnknown_08273374, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_eq Route119_WeatherInstitute_2F_EventScript_2700D0
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700D0
call Route119_WeatherInstitute_2F_EventScript_273797
goto Route119_WeatherInstitute_2F_EventScript_2700D0
end
@@ -132,8 +132,7 @@ Route119_WeatherInstitute_2F_EventScript_2700EA:: @ 82700EA
end
Route119_WeatherInstitute_2F_EventScript_2700F7:: @ 82700F7
- checkflag FLAG_SYS_GAME_CLEAR
- goto_eq Route119_WeatherInstitute_2F_EventScript_27010A
+ goto_if_set FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_2F_EventScript_27010A
msgbox Route119_WeatherInstitute_2F_Text_27077E, MSGBOX_DEFAULT
release
end
@@ -145,12 +144,12 @@ Route119_WeatherInstitute_2F_EventScript_27010A:: @ 827010A
checkflag FLAG_0x1BF
call_if 1, Route119_WeatherInstitute_2F_EventScript_270160
compare VAR_0x8004, 2
- goto_eq Route119_WeatherInstitute_2F_EventScript_270166
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_270166
checkflag FLAG_TEMP_2
call_if 0, Route119_WeatherInstitute_2F_EventScript_270159
specialvar VAR_RESULT, sub_813B374
compare VAR_RESULT, 1
- goto_eq Route119_WeatherInstitute_2F_EventScript_27014F
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_27014F
msgbox Route119_WeatherInstitute_2F_Text_2707F1, MSGBOX_DEFAULT
release
end
@@ -212,8 +211,7 @@ Route119_WeatherInstitute_2F_Movement_270187: @ 8270187
Route119_WeatherInstitute_2F_EventScript_27018B:: @ 827018B
lock
faceplayer
- checkflag FLAG_0x097
- goto_eq Route119_WeatherInstitute_2F_EventScript_2700F7
+ goto_if_set FLAG_0x097, Route119_WeatherInstitute_2F_EventScript_2700F7
goto Route119_WeatherInstitute_2F_EventScript_27004D
end