goto_if_eq and switch/case in scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user