Skip to content

Commit ef8c6a8

Browse files
authored
Add files via upload
1 parent 8de0e42 commit ef8c6a8

31 files changed

+9011
-1639
lines changed

FFX_Auto_Main.py

Lines changed: 487 additions & 473 deletions
Large diffs are not rendered by default.

FFX_Baaj.py

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import FFX_Screen
55
import FFX_Battle
66
import FFX_memory
7+
import FFX_targetPathing
78

89
FFXC = FFX_Xbox.FFXC
910

@@ -14,7 +15,7 @@ def Entrance():
1415
FFXC.set_value('AxisLx', 0)
1516
FFXC.set_value('AxisLy', 0)
1617

17-
#First, we need to change aeon summons ### MOVE THIS TO LATER
18+
#First, we need to change aeon summons
1819
FFX_Xbox.menuY()
1920
time.sleep(0.6)
2021
FFX_Xbox.menuUp()
@@ -63,7 +64,23 @@ def Entrance():
6364
# FFX_Xbox.menuB()
6465

6566
#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():
6784
pos = FFX_memory.getCoords()
6885
while FFX_memory.userControl():
6986
if pos[1] < 85:
@@ -92,8 +109,49 @@ def Entrance():
92109
FFXC.set_value('AxisLy', 1)
93110
pos = FFX_memory.getCoords()
94111

95-
96112
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():
97155
FFXC.set_value('AxisLy', 0)
98156
FFXC.set_value('AxisLx', 0)
99157
FFX_memory.clickToControl()
@@ -212,7 +270,7 @@ def Klikk_fight() :
212270
#Before Rikku shows up, we're just going to spam the click button. Simple.
213271
print("Waiting on Use tutorial")
214272
FFX_Screen.clickToPixel(897,295,(234, 199, 0))
215-
273+
216274
print("Doing Use tutorial")
217275
FFX_Screen.clickToBattle()
218276
FFX_Battle.useItem(1,'none')

0 commit comments

Comments
 (0)