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
@@ -20,7 +20,7 @@ EventScript_163F47:: @ 8163F47
FiveIsland_RocketWarehouse_EventScript_163F5A:: @ 8163F5A
lockall
checkflag FLAG_0x2D5
goto_if 1, EventScript_163F6E
goto_if_eq EventScript_163F6E
msgbox gUnknown_817B4E3
releaseall
end
@@ -45,7 +45,7 @@ FiveIsland_RocketWarehouse_EventScript_163F81:: @ 8163F81
FiveIsland_RocketWarehouse_EventScript_163F93:: @ 8163F93
trainerbattle 2, 545, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD
checkflag FLAG_0x844
goto_if 1, EventScript_163FB7
goto_if_eq EventScript_163FB7
msgbox gUnknown_817BCA3, 6
end
@@ -144,7 +144,7 @@ EventScript_1640A2:: @ 81640A2
EventScript_16412E:: @ 816412E
compare_var_to_value VAR_0x8004, 27
goto_if 1, EventScript_1A77A9
goto_if_eq EventScript_1A77A9
applymovement 255, Movement_1A75EB
waitmovement 0
return