summaryrefslogtreecommitdiff
path: root/data/scripts/gabby_and_ty.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/scripts/gabby_and_ty.inc
parent87fd6b8dc21b37b656f16e3f11832c6951328750 (diff)
improve goto_if macros
Diffstat (limited to 'data/scripts/gabby_and_ty.inc')
-rw-r--r--data/scripts/gabby_and_ty.inc14
1 files changed, 6 insertions, 8 deletions
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index f95cfa0ab..bcb8e517c 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -2,7 +2,7 @@ EventScript_28CCAA:: @ 828CCAA
setvar VAR_0x8005, 8
special InterviewBefore
compare VAR_RESULT, 1
- goto_eq EventScript_28CCC6
+ goto_if_eq EventScript_28CCC6
setvar VAR_0x8005, 8
special InterviewAfter
return
@@ -220,8 +220,7 @@ Route111_EventScript_28CF56:: @ 828CF56
call_if 1, Route111_EventScript_28CF9F
compare VAR_FACING, 4
call_if 1, Route111_EventScript_28CFB1
- checkflag FLAG_TEMP_1
- goto_eq Route111_EventScript_28D0EE
+ goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
msgbox Route111_Text_28B042, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
end
@@ -254,11 +253,10 @@ Route120_EventScript_28CFC3:: @ 828CFC3
call_if 1, Route111_EventScript_28CF9F
compare VAR_FACING, 4
call_if 1, Route111_EventScript_28CFB1
- checkflag FLAG_TEMP_1
- goto_eq Route111_EventScript_28D0EE
+ goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
specialvar VAR_RESULT, GabbyAndTyGetLastQuote
compare VAR_RESULT, 0
- goto_eq Route111_EventScript_28D053
+ goto_if_eq Route111_EventScript_28D053
msgbox Route111_Text_28B137, MSGBOX_DEFAULT
specialvar VAR_RESULT, GabbyAndTyGetLastBattleTrivia
switch VAR_RESULT
@@ -313,14 +311,14 @@ Route111_EventScript_28D099:: @ 828D099
Route111_EventScript_28D0A7:: @ 828D0A7
compare VAR_RESULT, 0
- goto_eq Route111_EventScript_28D0E1
+ goto_if_eq Route111_EventScript_28D0E1
msgbox Route111_Text_28B433, MSGBOX_DEFAULT
setvar VAR_0x8004, 10
call Route111_EventScript_271E7C
lock
faceplayer
compare VAR_RESULT, 0
- goto_eq Route111_EventScript_28D0E1
+ goto_if_eq Route111_EventScript_28D0E1
msgbox Route111_Text_28B4AB, MSGBOX_DEFAULT
special GabbyAndTyAfterInterview
setflag FLAG_TEMP_1