goto_if_eq and switch/case in scripts
This commit is contained in:
@@ -131,16 +131,16 @@ SilphCo_7F_EventScript_161AC8:: @ 8161AC8
|
||||
lock
|
||||
faceplayer
|
||||
checkflag FLAG_0x246
|
||||
goto_if 1, EventScript_161B8D
|
||||
goto_if_eq EventScript_161B8D
|
||||
msgbox gUnknown_8176266
|
||||
setvar VAR_0x4001, SPECIES_LAPRAS
|
||||
givemon SPECIES_LAPRAS, 25, ITEM_NONE, 0, 0, 0
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_if 1, EventScript_161B12
|
||||
goto_if_eq EventScript_161B12
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
goto_if 1, EventScript_161B45
|
||||
goto_if_eq EventScript_161B45
|
||||
compare_var_to_value VAR_RESULT, 2
|
||||
goto_if 1, EventScript_1A927C
|
||||
goto_if_eq EventScript_1A927C
|
||||
release
|
||||
end
|
||||
|
||||
@@ -153,7 +153,7 @@ EventScript_161B12:: @ 8161B12
|
||||
getspeciesname 0, SPECIES_LAPRAS
|
||||
msgbox gUnknown_81A56A7, MSGBOX_YESNO
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_if 1, EventScript_161B7E
|
||||
goto_if_eq EventScript_161B7E
|
||||
call EventScript_1A8C27
|
||||
call EventScript_1A74EB
|
||||
goto EventScript_161B7E
|
||||
@@ -170,7 +170,7 @@ EventScript_161B45:: @ 8161B45
|
||||
getspeciesname 0, SPECIES_LAPRAS
|
||||
msgbox gUnknown_81A56A7, MSGBOX_YESNO
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_if 1, EventScript_161B73
|
||||
goto_if_eq EventScript_161B73
|
||||
call EventScript_1A8C33
|
||||
goto EventScript_161B73
|
||||
|
||||
|
||||
Reference in New Issue
Block a user