summaryrefslogtreecommitdiff
path: root/data/scripts/gabby_and_ty.inc
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-01-06 10:03:30 -0800
committerGitHub <noreply@github.com>2018-01-06 10:03:30 -0800
commit7bf330e9f2b048a9b3d7882c80c9aa413c55484a (patch)
treed04ef83bc1ef18ceea4177fd7444b454291a81bc /data/scripts/gabby_and_ty.inc
parentb396c6038cec6eba5eed46ed8f70f6a465acc2a6 (diff)
parent43b4ba34dc05dc6be31b58f0b18df1b3d57f608d (diff)
Merge pull request #508 from huderlem/friendly_macros
call_if and goto_if macros
Diffstat (limited to 'data/scripts/gabby_and_ty.inc')
-rw-r--r--data/scripts/gabby_and_ty.inc18
1 files changed, 8 insertions, 10 deletions
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index ad7a3d3c5..5ddcf4a65 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -203,13 +203,12 @@ Route111_EventScript_1AE5A2:: @ 81AE5A2
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToFieldObjectLocalIds
compare FACING, 2
- call_if 1, Route111_EventScript_1AE5E0
+ call_if_eq Route111_EventScript_1AE5E0
compare FACING, 1
- call_if 1, Route111_EventScript_1AE5EB
+ call_if_eq Route111_EventScript_1AE5EB
compare FACING, 4
- call_if 1, Route111_EventScript_1AE5FD
- checkflag FLAG_TEMP_1
- goto_if_eq Route111_EventScript_1AE73A
+ call_if_eq Route111_EventScript_1AE5FD
+ goto_if_set FLAG_TEMP_1, Route111_EventScript_1AE73A
msgbox Route111_Text_1AC015, MSGBOX_YESNO
goto Route111_EventScript_1AE6F3
end
@@ -237,13 +236,12 @@ Route120_EventScript_1AE60F:: @ 81AE60F
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToFieldObjectLocalIds
compare FACING, 2
- call_if 1, Route111_EventScript_1AE5E0
+ call_if_eq Route111_EventScript_1AE5E0
compare FACING, 1
- call_if 1, Route111_EventScript_1AE5EB
+ call_if_eq Route111_EventScript_1AE5EB
compare FACING, 4
- call_if 1, Route111_EventScript_1AE5FD
- checkflag FLAG_TEMP_1
- goto_if_eq Route111_EventScript_1AE73A
+ call_if_eq Route111_EventScript_1AE5FD
+ goto_if_set FLAG_TEMP_1, Route111_EventScript_1AE73A
specialvar RESULT, GabbyAndTyGetLastQuote
compare RESULT, 0
goto_if_eq Route111_EventScript_1AE69F