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
@@ -5,7 +5,7 @@ PalletTown_PlayersHouse_1F_EventScript_168C09:: @ 8168C09
lock
faceplayer
checkflag FLAG_0x258
goto_if 1, EventScript_168C4A
goto_if_eq EventScript_168C4A
checkplayergender
compare_var_to_value VAR_RESULT, 0
call_if 1, EventScript_168C38
@@ -36,7 +36,7 @@ EventScript_168C4A:: @ 8168C4A
PalletTown_PlayersHouse_1F_EventScript_168C62:: @ 8168C62
lockall
compare_var_to_value VAR_FACING, 2
goto_if 1, EventScript_168C78
goto_if_eq EventScript_168C78
msgbox gUnknown_818D4F9
releaseall
end