Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR committed 2022-08-09 20:41:54 -04:00
1 parent 60fc8c5e22
commit f113da30ad
171 files changed
+1992 -3453

No files matched your search

+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