summaryrefslogtreecommitdiff
path: root/data/maps/Route111/scripts.inc
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-21 21:32:45 -0500
committerMelody <melody@pallet.town>2018-12-21 21:32:45 -0500
commit55005f1588fed924bb86c420458371bf99a88e0e (patch)
tree26cb92272d19b82cbfb129eea32487b8afcf6d82 /data/maps/Route111/scripts.inc
parentac2e4adf2da2f30a741556e20e5bc9a494997581 (diff)
improve call_if macros
Diffstat (limited to 'data/maps/Route111/scripts.inc')
-rw-r--r--data/maps/Route111/scripts.inc20
1 files changed, 9 insertions, 11 deletions
diff --git a/data/maps/Route111/scripts.inc b/data/maps/Route111/scripts.inc
index eca7e2242..0149299c1 100644
--- a/data/maps/Route111/scripts.inc
+++ b/data/maps/Route111/scripts.inc
@@ -6,10 +6,9 @@ Route111_MapScripts:: @ 81F0CA7
.byte 0
Route111_MapScript1_1F0CBC: @ 81F0CBC
- checkflag FLAG_0x0E4
- call_if 0, Route111_EventScript_1F0CD1
+ call_if_unset FLAG_0x0E4, Route111_EventScript_1F0CD1
compare VAR_0x40CB, 1
- call_if 1, Route111_EventScript_1F0CE4
+ call_if_eq Route111_EventScript_1F0CE4
end
Route111_EventScript_1F0CD1:: @ 81F0CD1
@@ -41,12 +40,11 @@ Route111_EventScript_1F0CE4:: @ 81F0CE4
Route111_MapScript1_1F0D87: @ 81F0D87
setvar VAR_0x40D6, 0
special sub_81BE79C
- checkflag FLAG_0x14E
- call_if 0, Route111_EventScript_1F0E3C
+ call_if_unset FLAG_0x14E, Route111_EventScript_1F0E3C
compare VAR_0x40CB, 1
- call_if 1, Route111_EventScript_1F0DC2
+ call_if_eq Route111_EventScript_1F0DC2
compare VAR_0x40CB, 2
- call_if 1, Route111_EventScript_1F0E40
+ call_if_eq Route111_EventScript_1F0E40
call Route111_EventScript_1F0DE6
call Route111_EventScript_28CCC7
checktrainerflag TRAINER_VICKY
@@ -214,13 +212,13 @@ Route111_EventScript_1F0F45:: @ 81F0F45
msgbox gUnknown_08272C5F, MSGBOX_DEFAULT
closemessage
compare VAR_0x8004, 0
- call_if 1, Route111_EventScript_1F0F7C
+ call_if_eq Route111_EventScript_1F0F7C
compare VAR_0x8004, 1
- call_if 1, Route111_EventScript_1F0F87
+ call_if_eq Route111_EventScript_1F0F87
compare VAR_0x8004, 2
- call_if 1, Route111_EventScript_1F0F92
+ call_if_eq Route111_EventScript_1F0F92
compare VAR_0x8004, 3
- call_if 1, Route111_EventScript_1F0F9D
+ call_if_eq Route111_EventScript_1F0F9D
releaseall
end