goto_if_eq and switch/case in scripts

This commit is contained in:
PikalaxALT
2019-05-16 13:30:03 -04:00
parent 006881415d
commit a2d1b854d6
150 changed files with 999 additions and 1231 deletions
@@ -4,14 +4,14 @@ FiveIsland_ResortGorgeous_House_MapScripts:: @ 8171EBD
FiveIsland_ResortGorgeous_House_EventScript_171EBE:: @ 8171EBE
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if 1, EventScript_1A7AE0
goto_if_eq EventScript_1A7AE0
special sub_8112364
lock
faceplayer
checkflag FLAG_0x002
goto_if 1, EventScript_172043
goto_if_eq EventScript_172043
compare_var_to_value VAR_STORAGE_UNKNOWN, 65535
goto_if 1, EventScript_171F0B
goto_if_eq EventScript_171F0B
compare_var_to_value VAR_STORAGE_UNKNOWN, 0
goto_if 5, EventScript_171F19
msgbox gUnknown_81A42A0
@@ -33,7 +33,7 @@ EventScript_171F19:: @ 8171F19
copyvar VAR_0x8004, VAR_STORAGE_UNKNOWN
specialvar VAR_RESULT, sub_80CC48C
compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_171F34
goto_if_eq EventScript_171F34
goto EventScript_171EFE
end
@@ -64,7 +64,7 @@ EventScript_171F34:: @ 8171F34
msgbox gUnknown_81A458E
giveitem VAR_0x403B
compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_172025
goto_if_eq EventScript_172025
setflag FLAG_0x002
setvar VAR_STORAGE_UNKNOWN, 0
release