Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR
2022-08-09 20:40:03 -04:00
parent 60fc8c5e22
commit f113da30ad
171 changed files with 1992 additions and 3453 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
PokemonMansion_EventScript_SecretSwitch::
msgbox PokemonMansion_Text_PressSecretSwitch, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq PokemonMansion_EventScript_DontPressSwitch
goto_if_eq VAR_RESULT, NO, PokemonMansion_EventScript_DontPressSwitch
msgbox PokemonMansion_Text_WhoWouldnt
goto_if_set FLAG_POKEMON_MANSION_SWITCH_STATE, PokemonMansion_EventScript_ResetSwitch
setflag FLAG_POKEMON_MANSION_SWITCH_STATE