summaryrefslogtreecommitdiff
path: root/data/maps/Route118/scripts.inc
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
committerMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
commitac2e4adf2da2f30a741556e20e5bc9a494997581 (patch)
tree1a05a202cfece044d546094581d8463a9b6e452c /data/maps/Route118/scripts.inc
parent87fd6b8dc21b37b656f16e3f11832c6951328750 (diff)
improve goto_if macros
Diffstat (limited to 'data/maps/Route118/scripts.inc')
-rw-r--r--data/maps/Route118/scripts.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/data/maps/Route118/scripts.inc b/data/maps/Route118/scripts.inc
index e7aac8ac8..09d188971 100644
--- a/data/maps/Route118/scripts.inc
+++ b/data/maps/Route118/scripts.inc
@@ -28,13 +28,12 @@ Route118_MapScript2_1F3E0A: @ 81F3E0A
Route118_EventScript_1F3E14:: @ 81F3E14
lock
faceplayer
- checkflag FLAG_0x0E3
- goto_eq Route118_EventScript_1F3E69
+ goto_if_set FLAG_0x0E3, Route118_EventScript_1F3E69
msgbox Route118_Text_1F427B, MSGBOX_YESNO
compare VAR_RESULT, 1
- goto_eq Route118_EventScript_1F3E3E
+ goto_if_eq Route118_EventScript_1F3E3E
compare VAR_RESULT, 0
- goto_eq Route118_EventScript_1F3E5F
+ goto_if_eq Route118_EventScript_1F3E5F
end
Route118_EventScript_1F3E3E:: @ 81F3E3E
@@ -190,7 +189,7 @@ Route118_EventScript_1F3F87:: @ 81F3F87
trainerbattle_single TRAINER_ROSE_1, Route118_Text_29D290, Route118_Text_29D2D8, Route118_EventScript_1F3FB3
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
- goto_eq Route118_EventScript_1F3FD2
+ goto_if_eq Route118_EventScript_1F3FD2
msgbox Route118_Text_29D2FA, MSGBOX_DEFAULT
release
end
@@ -222,7 +221,7 @@ Route118_EventScript_1F4017:: @ 81F4017
trainerbattle_single TRAINER_DALTON_1, Route118_Text_29D6AF, Route118_Text_29D6CD, Route118_EventScript_1F4043
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
- goto_eq Route118_EventScript_1F4062
+ goto_if_eq Route118_EventScript_1F4062
msgbox Route118_Text_29D6D8, MSGBOX_DEFAULT
release
end