summaryrefslogtreecommitdiff
path: root/data/scripts/apprentice.inc
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-12-25 15:03:13 -0600
committerDiegoisawesome <diego@domoreaweso.me>2018-12-25 15:03:13 -0600
commitd8948a5cda2e385c1d4b5c6190c4fe0fb53359fb (patch)
treefa882b0733f88cc17dcbaef8c25c30c7198bdca1 /data/scripts/apprentice.inc
parentdea41e1a7e6e73789431153d6c28dac3a3a73ac6 (diff)
parenta54aa03d20dacc88879404b87a5f6a7eb7babc54 (diff)
Merge remote-tracking branch 'pret/master' into trade
Diffstat (limited to 'data/scripts/apprentice.inc')
-rw-r--r--data/scripts/apprentice.inc41
1 files changed, 20 insertions, 21 deletions
diff --git a/data/scripts/apprentice.inc b/data/scripts/apprentice.inc
index 4ce7489c2..034732db2 100644
--- a/data/scripts/apprentice.inc
+++ b/data/scripts/apprentice.inc
@@ -28,27 +28,26 @@ EventScript_Apprentice:: @ 82B688D
setvar VAR_0x8004, 0
special CallApprenticeFunction
compare VAR_RESULT, 0
- goto_eq Script_Apprentice_FirstMeeting
+ goto_if_eq Script_Apprentice_FirstMeeting
setvar VAR_0x8004, 10
special CallApprenticeFunction
compare VAR_0x8004, 0
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B68BE
- checkflag FLAG_0x934
- goto_eq Script_Apprentice_ReleaseAndEnd
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B68BE
+ goto_if_set FLAG_0x934, Script_Apprentice_ReleaseAndEnd
BattleFrontier_BattleTowerLobby_EventScript_2B68BE:
setvar VAR_0x8004, 11
special CallApprenticeFunction
compare VAR_RESULT, 2
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B69D3
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B69D3
compare VAR_RESULT, 4
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6ACF
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6ACF
compare VAR_RESULT, 3
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6C77
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6C77
compare VAR_RESULT, 1
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6D5C
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6D5C
compare VAR_RESULT, 5
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6DD4
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6DD4
release
releaseall
end
@@ -60,7 +59,7 @@ Script_Apprentice_FirstMeeting:
Script_Apprentice_FirstMeetingNag:
apprentice_menu APPRENTICE_ASK_YES_NO
compare VAR_RESULT, 1
- goto_eq Script_Apprentice_FirstMeetingAskAgain
+ goto_if_eq Script_Apprentice_FirstMeetingAskAgain
apprentice_msg FALSE, 2
apprentice_menu APPRENTICE_ASK_WHICH_LEVEL
setvar VAR_0x8004, 1
@@ -93,9 +92,9 @@ BattleFrontier_BattleTowerLobby_EventScript_2B69D3:
apprentice_menu APPRENTICE_ASK_2SPECIES
copyvar VAR_0x8005, VAR_RESULT
compare VAR_0x8005, 0
- call_if 1, BattleFrontier_BattleTowerLobby_EventScript_2B6ABA
+ call_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6ABA
compare VAR_0x8005, 1
- call_if 1, BattleFrontier_BattleTowerLobby_EventScript_2B6AC0
+ call_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6AC0
setvar VAR_0x8004, 12
special CallApprenticeFunction
copyvar VAR_0x8006, VAR_RESULT
@@ -106,7 +105,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B69D3:
setvar VAR_0x8004, 12
special CallApprenticeFunction
compare VAR_RESULT, 3
- call_if 1, BattleFrontier_BattleTowerLobby_EventScript_2B6AC6
+ call_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6AC6
setvar VAR_0x8004, 16
setvar VAR_0x8005, 0
copyvar VAR_0x8006, VAR_0x8007
@@ -151,11 +150,11 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6B09:
special CallApprenticeFunction
waitstate
compare VAR_RESULT, 0
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B81
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B81
setvar VAR_0x8004, 20
special CallApprenticeFunction
compare VAR_RESULT, 0
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6C0C
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6C0C
apprentice_buff 0, APPRENTICE_BUFF_ITEM
apprentice_msg TRUE, 12
setvar VAR_0x8004, 5
@@ -178,7 +177,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6B81:
setvar VAR_0x8004, 15
special CallApprenticeFunction
compare VAR_RESULT, 0
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B09
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B09
BattleFrontier_BattleTowerLobby_EventScript_2B6BD4:
apprentice_msg TRUE, 14
@@ -203,7 +202,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6C0C:
setvar VAR_0x8004, 15
special CallApprenticeFunction
compare VAR_RESULT, 0
- goto_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B09
+ goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6B09
goto BattleFrontier_BattleTowerLobby_EventScript_2B6BD4
end
@@ -218,9 +217,9 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6C77:
apprentice_menu APPRENTICE_ASK_MOVES
copyvar VAR_0x8005, VAR_RESULT
compare VAR_0x8005, 0
- call_if 1, BattleFrontier_BattleTowerLobby_EventScript_2B6D50
+ call_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6D50
compare VAR_0x8005, 1
- call_if 1, BattleFrontier_BattleTowerLobby_EventScript_2B6D56
+ call_if_eq BattleFrontier_BattleTowerLobby_EventScript_2B6D56
setvar VAR_0x8004, 17
special CallApprenticeFunction
setvar VAR_0x8004, 5
@@ -297,7 +296,7 @@ Script_Apprentice_LeaveGoRight:
setvar VAR_0x8004, 24
special CallApprenticeFunction
compare VAR_0x8004, 0
- goto_eq Script_Apprentice_End
+ goto_if_eq Script_Apprentice_End
applymovement 6, BattleFrontier_BattleTowerLobby_Movement_2B6E94
waitmovement 0
end
@@ -306,7 +305,7 @@ Script_Apprentice_Leave:
setvar VAR_0x8004, 24
special CallApprenticeFunction
compare VAR_0x8004, 0
- goto_eq Script_Apprentice_End
+ goto_if_eq Script_Apprentice_End
applymovement 6, BattleFrontier_BattleTowerLobby_Movement_2B6E95
waitmovement 0
end