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
@@ -4,18 +4,18 @@ FiveIsland_WaterLabyrinth_MapScripts:: @ 816884D
FiveIsland_WaterLabyrinth_EventScript_16884E:: @ 816884E
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
checkflag FLAG_0x2DA
goto_if 1, EventScript_1688E3
goto_if_eq EventScript_1688E3
checkflag FLAG_0x2DB
goto_if 1, EventScript_16892C
goto_if_eq EventScript_16892C
msgbox gUnknown_818A80D
specialvar VAR_RESULT, sub_80CA76C
compare_var_to_value VAR_RESULT, 6
goto_if 1, EventScript_1688AC
goto_if_eq EventScript_1688AC
msgbox gUnknown_818A88F
release
end
@@ -36,7 +36,7 @@ EventScript_1688AC:: @ 81688AC
EventScript_1688BA:: @ 81688BA
countpokemon
compare_var_to_value VAR_RESULT, 6
goto_if 1, EventScript_16891F
goto_if_eq EventScript_16891F
setflag FLAG_0x2DA
giveegg SPECIES_TOGEPI
textcolor 3
@@ -53,12 +53,12 @@ EventScript_1688E3:: @ 81688E3
setvar VAR_0x8004, 175
specialvar VAR_RESULT, sub_80CD0F4
compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168895
goto_if_eq EventScript_168895
getspeciesname 1, SPECIES_TOGETIC
setvar VAR_0x8004, 176
specialvar VAR_RESULT, sub_80CD0F4
compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_168895
goto_if_eq EventScript_168895
msgbox gUnknown_818A9C0
release
end