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
+5 -5
View File
@@ -16,7 +16,7 @@ EventScript_165105:: @ 8165105
EventScript_165109:: @ 8165109
checkflag FLAG_0x2F5
goto_if 1, EventScript_1A77A9
goto_if_eq EventScript_1A77A9
clearflag FLAG_0x09B
return
@@ -35,7 +35,7 @@ EventScript_165120:: @ 8165120
NavelRock_Base_EventScript_165134:: @ 8165134
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
@@ -70,11 +70,11 @@ NavelRock_Base_EventScript_165134:: @ 8165134
clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_1651D9
goto_if_eq EventScript_1651D9
compare_var_to_value VAR_RESULT, 4
goto_if 1, EventScript_1651E7
goto_if_eq EventScript_1651E7
compare_var_to_value VAR_RESULT, 5
goto_if 1, EventScript_1651E7
goto_if_eq EventScript_1651E7
setflag FLAG_0x2F2
release
end