goto_if_eq and switch/case in scripts
This commit is contained in:
@@ -12,7 +12,7 @@ IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65:: @ 816EA65
|
||||
|
||||
EventScript_16EA79:: @ 816EA79
|
||||
checkflag FLAG_0x844
|
||||
goto_if 1, EventScript_1A77A9
|
||||
goto_if_eq EventScript_1A77A9
|
||||
setobjectxyperm 4, 4, 2
|
||||
return
|
||||
|
||||
@@ -21,14 +21,14 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A
|
||||
faceplayer
|
||||
specialvar VAR_RESULT, sub_806E25C
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
goto_if 1, EventScript_16EAA6
|
||||
goto_if_eq EventScript_16EAA6
|
||||
msgbox gUnknown_819A8D8
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16EAA6:: @ 816EAA6
|
||||
checkflag FLAG_0x844
|
||||
goto_if 1, EventScript_16EAB9
|
||||
goto_if_eq EventScript_16EAB9
|
||||
msgbox gUnknown_819A943
|
||||
release
|
||||
end
|
||||
@@ -45,7 +45,7 @@ IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3
|
||||
IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC
|
||||
special sub_8110AB4
|
||||
compare_var_to_value VAR_RESULT, 2
|
||||
goto_if 1, EventScript_1A7AE0
|
||||
goto_if_eq EventScript_1A7AE0
|
||||
lock
|
||||
faceplayer
|
||||
message Text_1A6211
|
||||
|
||||
Reference in New Issue
Block a user