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
+6 -6
View File
@@ -26,9 +26,9 @@ EventScript_163975:: @ 8163975
MtEmber_Exterior_EventScript_16397F:: @ 816397F
lock
checktrainerflag FLAG_0x219
goto_if 1, EventScript_16399E
goto_if_eq EventScript_16399E
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4
goto_if 1, EventScript_1639A8
goto_if_eq EventScript_1639A8
msgbox gUnknown_817A82A
release
end
@@ -46,7 +46,7 @@ EventScript_1639A8:: @ 81639A8
trainerbattle 3, 537, 0, Text_17AA34
msgbox gUnknown_817AA3F
checktrainerflag FLAG_0x21A
goto_if 1, EventScript_1639DB
goto_if_eq EventScript_1639DB
release
end
@@ -64,9 +64,9 @@ MtEmber_Exterior_EventScript_1639F0:: @ 81639F0
lock
faceplayer
checktrainerflag FLAG_0x21A
goto_if 1, EventScript_163A1B
goto_if_eq EventScript_163A1B
compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 4
goto_if 1, EventScript_163A25
goto_if_eq EventScript_163A25
msgbox gUnknown_817A88C
closemessage
applymovement 3, Movement_1A75E5
@@ -85,7 +85,7 @@ EventScript_163A25:: @ 8163A25
trainerbattle 3, 538, 0, Text_17AA8A
msgbox gUnknown_817AA99
checktrainerflag FLAG_0x219
goto_if 1, EventScript_1639DB
goto_if_eq EventScript_1639DB
release
end