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/Route16/scripts.inc | |
parent | 006881415d315e34876f4d4f3060aca4dcf8e98d (diff) |
goto_if_eq and switch/case in scripts
Diffstat (limited to 'data/maps/Route16/scripts.inc')
-rw-r--r-- | data/maps/Route16/scripts.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/maps/Route16/scripts.inc b/data/maps/Route16/scripts.inc index dba835410..e5fd83934 100644 --- a/data/maps/Route16/scripts.inc +++ b/data/maps/Route16/scripts.inc @@ -37,11 +37,11 @@ Route16_EventScript_168121:: @ 8168121 goto_if 0, EventScript_1681A3 special sub_8110AB4 compare_var_to_value VAR_RESULT, 2 - goto_if 1, EventScript_1A7AE0 + goto_if_eq EventScript_1A7AE0 special sub_8112364 msgbox gUnknown_81853CC, MSGBOX_YESNO compare_var_to_value VAR_RESULT, 0 - goto_if 1, EventScript_168197 + goto_if_eq EventScript_168197 call EventScript_1A924B setwildbattle SPECIES_SNORLAX, 30, ITEM_NONE waitse @@ -54,11 +54,11 @@ Route16_EventScript_168121:: @ 8168121 clearflag FLAG_0x807 specialvar VAR_RESULT, sub_80CA74C compare_var_to_value VAR_RESULT, 1 - goto_if 1, EventScript_168199 + goto_if_eq EventScript_168199 compare_var_to_value VAR_RESULT, 4 - goto_if 1, EventScript_168199 + goto_if_eq EventScript_168199 compare_var_to_value VAR_RESULT, 5 - goto_if 1, EventScript_168199 + goto_if_eq EventScript_168199 release end |