goto_if_eq and switch/case in scripts

This commit is contained in:
PikalaxALT committed 2019-05-16 13:30:03 -04:00
1 parent 006881415d
commit a2d1b854d6
150 files changed
+999 -1231

No files matched your search

@@ -22,10 +22,10 @@ Route15_WestEntrance_2F_EventScript_1700B9:: @ 81700B9
faceplayer
call EventScript_170145
checkflag FLAG_0x256
goto_if 1, EventScript_17013B
goto_if_eq EventScript_17013B
msgbox gUnknown_819F5AB, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AD1
goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006
@@ -35,7 +35,7 @@ Route15_WestEntrance_2F_EventScript_1700B9:: @ 81700B9
msgbox gUnknown_819F6AA
checkitemspace ITEM_EXP_SHARE, 1
compare_var_to_value VAR_RESULT, 0
goto_if 1, EventScript_1A7AC7
goto_if_eq EventScript_1A7AC7
additem ITEM_EXP_SHARE, 1
giveitemfanfaremsg gUnknown_819F6FD, ITEM_EXP_SHARE
setflag FLAG_0x256