4
4
import FFX_Screen
5
5
import FFX_Battle
6
6
import FFX_memory
7
+ import FFX_targetPathing
7
8
8
9
FFXC = FFX_Xbox .FFXC
9
10
@@ -14,7 +15,7 @@ def Entrance():
14
15
FFXC .set_value ('AxisLx' , 0 )
15
16
FFXC .set_value ('AxisLy' , 0 )
16
17
17
- #First, we need to change aeon summons ### MOVE THIS TO LATER
18
+ #First, we need to change aeon summons
18
19
FFX_Xbox .menuY ()
19
20
time .sleep (0.6 )
20
21
FFX_Xbox .menuUp ()
@@ -63,7 +64,23 @@ def Entrance():
63
64
# FFX_Xbox.menuB()
64
65
65
66
#Out of the frying pan, into the furnace
66
- FFX_memory .awaitControl ()
67
+ FFX_memory .clickToControl ()
68
+ checkpoint = 0
69
+ while FFX_memory .getMap () != 63 :
70
+ if FFX_memory .userControl ():
71
+ if checkpoint == 9 :
72
+ FFX_memory .clickToEventTemple (7 )
73
+ #General pathing
74
+ elif FFX_targetPathing .setMovement (FFX_targetPathing .baajHallway (checkpoint )) == True :
75
+ checkpoint += 1
76
+ print ("Checkpoint reached: " , checkpoint )
77
+ else :
78
+ FFXC .set_value ('AxisLy' , 0 )
79
+ FFXC .set_value ('AxisLx' , 0 )
80
+ if FFX_memory .diagSkipPossible ():
81
+ FFX_Xbox .tapB ()
82
+
83
+ def oldHallwayMovement ():
67
84
pos = FFX_memory .getCoords ()
68
85
while FFX_memory .userControl ():
69
86
if pos [1 ] < 85 :
@@ -92,8 +109,49 @@ def Entrance():
92
109
FFXC .set_value ('AxisLy' , 1 )
93
110
pos = FFX_memory .getCoords ()
94
111
95
-
96
112
def Baaj_puzzle ():
113
+ FFX_memory .clickToControl ()
114
+ checkpoint = 0
115
+ while FFX_memory .battleActive () == False :
116
+ if FFX_memory .userControl ():
117
+ #Events
118
+ if checkpoint == 3 :
119
+ time .sleep (0.2 )
120
+ FFX_Xbox .touchSaveSphere ()
121
+ checkpoint += 1
122
+ elif checkpoint == 5 : #Flint room
123
+ FFX_memory .clickToEventTemple (0 )
124
+ checkpoint += 1
125
+ elif checkpoint == 6 : #Obtain Flint
126
+ FFX_memory .clickToEventTemple (0 )
127
+ checkpoint += 1
128
+ elif checkpoint == 7 : #Exit Flint room
129
+ FFX_memory .clickToEventTemple (4 )
130
+ checkpoint += 1
131
+ elif checkpoint == 12 : #Bouquet hallway
132
+ FFX_memory .clickToEventTemple (0 )
133
+ checkpoint += 1
134
+ elif checkpoint == 21 : #Withered bouquet
135
+ FFX_memory .clickToEventTemple (1 )
136
+ checkpoint += 1
137
+ elif checkpoint == 32 : #Back to main room
138
+ FFX_memory .clickToEventTemple (2 )
139
+ checkpoint += 1
140
+ elif checkpoint == 33 : #To the fireplace
141
+ FFX_targetPathing .setMovement ([1 ,1 ])
142
+ FFX_Xbox .menuB ()
143
+
144
+ #General pathing
145
+ elif FFX_targetPathing .setMovement (FFX_targetPathing .baajPuzzle (checkpoint )) == True :
146
+ checkpoint += 1
147
+ print ("Checkpoint reached: " , checkpoint )
148
+ else :
149
+ FFXC .set_value ('AxisLy' , 0 )
150
+ FFXC .set_value ('AxisLx' , 0 )
151
+ if FFX_memory .diagSkipPossible ():
152
+ FFX_Xbox .tapB ()
153
+
154
+ def Baaj_puzzle_old ():
97
155
FFXC .set_value ('AxisLy' , 0 )
98
156
FFXC .set_value ('AxisLx' , 0 )
99
157
FFX_memory .clickToControl ()
@@ -212,7 +270,7 @@ def Klikk_fight() :
212
270
#Before Rikku shows up, we're just going to spam the click button. Simple.
213
271
print ("Waiting on Use tutorial" )
214
272
FFX_Screen .clickToPixel (897 ,295 ,(234 , 199 , 0 ))
215
-
273
+
216
274
print ("Doing Use tutorial" )
217
275
FFX_Screen .clickToBattle ()
218
276
FFX_Battle .useItem (1 ,'none' )
0 commit comments