diff options
author | Melody <melody@pallet.town> | 2018-12-21 20:28:24 -0500 |
---|---|---|
committer | Melody <melody@pallet.town> | 2018-12-21 20:28:24 -0500 |
commit | ac2e4adf2da2f30a741556e20e5bc9a494997581 (patch) | |
tree | 1a05a202cfece044d546094581d8463a9b6e452c /data/maps/Route114/scripts.inc | |
parent | 87fd6b8dc21b37b656f16e3f11832c6951328750 (diff) |
improve goto_if macros
Diffstat (limited to 'data/maps/Route114/scripts.inc')
-rw-r--r-- | data/maps/Route114/scripts.inc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/data/maps/Route114/scripts.inc b/data/maps/Route114/scripts.inc index 6adf20870..ad5d57c11 100644 --- a/data/maps/Route114/scripts.inc +++ b/data/maps/Route114/scripts.inc @@ -28,15 +28,14 @@ Route114_EventScript_1F2582:: @ 81F2582 lock faceplayer dodailyevents - checkflag FLAG_0x92B - goto_eq Route114_EventScript_1F25C7 + goto_if_set FLAG_0x92B, Route114_EventScript_1F25C7 msgbox Route114_Text_2A6FCB, MSGBOX_DEFAULT random 5 addvar VAR_RESULT, 15 addvar VAR_RESULT, 133 giveitem_std VAR_RESULT compare VAR_RESULT, 0 - goto_eq Route114_EventScript_272054 + goto_if_eq Route114_EventScript_272054 setflag FLAG_0x92B msgbox Route114_Text_2A7034, MSGBOX_DEFAULT release @@ -50,12 +49,11 @@ Route114_EventScript_1F25C7:: @ 81F25C7 Route114_EventScript_1F25D1:: @ 81F25D1 lock faceplayer - checkflag FLAG_0x0E7 - goto_eq Route114_EventScript_1F2608 + goto_if_set FLAG_0x0E7, Route114_EventScript_1F2608 msgbox Route114_Text_1F2809, MSGBOX_DEFAULT giveitem_std ITEM_TM05 compare VAR_RESULT, 0 - goto_eq Route114_EventScript_272054 + goto_if_eq Route114_EventScript_272054 setflag FLAG_0x0E7 msgbox Route114_Text_1F2872, MSGBOX_DEFAULT release @@ -112,7 +110,7 @@ Route114_EventScript_1F269C:: @ 81F269C trainerbattle_single TRAINER_STEVE_1, Route114_Text_29A943, Route114_Text_29A973, Route114_EventScript_1F26C8 specialvar VAR_RESULT, ShouldTryRematchBattle compare VAR_RESULT, 1 - goto_eq Route114_EventScript_1F26E7 + goto_if_eq Route114_EventScript_1F26E7 msgbox Route114_Text_29A981, MSGBOX_DEFAULT release end @@ -134,7 +132,7 @@ Route114_EventScript_1F26FE:: @ 81F26FE trainerbattle_single TRAINER_BERNIE_1, Route114_Text_29AADB, Route114_Text_29AB1A, Route114_EventScript_1F272A specialvar VAR_RESULT, ShouldTryRematchBattle compare VAR_RESULT, 1 - goto_eq Route114_EventScript_1F2749 + goto_if_eq Route114_EventScript_1F2749 msgbox Route114_Text_29AB36, MSGBOX_DEFAULT release end |