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
+8 -14
View File
@@ -8,13 +8,10 @@ BirthIsland_Harbor_EventScript_1653E7:: @ 81653E7
waitmessage
setvar VAR_0x8004, 10
multichoice 20, 8, 61, 0
copyvar VAR_0x8000, VAR_RESULT
compare_var_to_value VAR_0x8000, 0
goto_if 1, EventScript_1A91D5
compare_var_to_value VAR_0x8000, 1
goto_if 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_1A90F6
switch VAR_RESULT
case 0, EventScript_1A91D5
case 1, EventScript_1A90F6
case 127, EventScript_1A90F6
end
NavelRock_Harbor_MapScripts:: @ 8165420
@@ -27,11 +24,8 @@ NavelRock_Harbor_EventScript_165421:: @ 8165421
waitmessage
setvar VAR_0x8004, 9
multichoice 20, 8, 61, 0
copyvar VAR_0x8000, VAR_RESULT
compare_var_to_value VAR_0x8000, 0
goto_if 1, EventScript_1A91D5
compare_var_to_value VAR_0x8000, 1
goto_if 1, EventScript_1A90F6
compare_var_to_value VAR_0x8000, 127
goto_if 1, EventScript_1A90F6
switch VAR_RESULT
case 0, EventScript_1A91D5
case 1, EventScript_1A90F6
case 127, EventScript_1A90F6
end