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
+3 -3
View File
@@ -5,10 +5,10 @@ FuchsiaCity_House2_EventScript_16D817:: @ 816D817
lock
faceplayer
checkflag FLAG_0x244
goto_if 1, EventScript_16D83F
goto_if_eq EventScript_16D83F
msgbox gUnknown_819918E, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 1
goto_if 1, EventScript_16D849
goto_if_eq EventScript_16D849
msgbox gUnknown_8199337
release
end
@@ -22,7 +22,7 @@ EventScript_16D849:: @ 816D849
msgbox gUnknown_8199207
checkitemspace ITEM_GOOD_ROD, 1
compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_16D88A
goto_if_eq EventScript_16D88A
additem ITEM_GOOD_ROD, 1
giveitemfanfaremsg gUnknown_819925E, ITEM_GOOD_ROD
msgbox gUnknown_8199296