diff options
| author | PikalaxALT <pikalaxalt@gmail.com> | 2019-05-16 13:30:03 -0400 |
|---|---|---|
| committer | PikalaxALT <pikalaxalt@gmail.com> | 2019-05-16 13:30:03 -0400 |
| commit | a2d1b854d678204929580b8d82e507f908261fc1 (patch) | |
| tree | 36166505adf0b81d79f787c32250e0e3a1514944 /data/maps/Route2_EastBuilding | |
| parent | 006881415d315e34876f4d4f3060aca4dcf8e98d (diff) | |
goto_if_eq and switch/case in scripts
Diffstat (limited to 'data/maps/Route2_EastBuilding')
| -rw-r--r-- | data/maps/Route2_EastBuilding/scripts.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/maps/Route2_EastBuilding/scripts.inc b/data/maps/Route2_EastBuilding/scripts.inc index 21b6f9193..9716879a1 100644 --- a/data/maps/Route2_EastBuilding/scripts.inc +++ b/data/maps/Route2_EastBuilding/scripts.inc @@ -6,10 +6,10 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F faceplayer call EventScript_16F70B checkflag FLAG_0x23B - goto_if 1, EventScript_16F701 + goto_if_eq EventScript_16F701 msgbox gUnknown_819D64F, 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 @@ -19,7 +19,7 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F msgbox gUnknown_819D74E checkitemspace ITEM_HM05, 1 compare_var_to_value VAR_RESULT, 0 - goto_if 1, EventScript_1A7AC7 + goto_if_eq EventScript_1A7AC7 additem ITEM_HM05, 1 giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05 setflag FLAG_0x23B |
