Skip to content

Commit 8de0e42

Browse files
authored
Add files via upload
1 parent 20cad30 commit 8de0e42

18 files changed

+1554
-238
lines changed

FFX_Auto_Main.py

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#Gamestate, "none" for new game, or set to a specific section to start from the first save.
1111
#See the if statement tree below to determine starting position for Gamestate.
12-
#Gamestate = "Sin"
13-
#StepCounter = 3
12+
#Gamestate = "MRR"
13+
#StepCounter = 1
1414
#Gamestate = "Djose"
1515
#StepCounter = 1
1616
Gamestate = "none"
@@ -23,10 +23,6 @@
2323
autoEggHunt = True
2424
print("Game type will be: ", gameLength)
2525

26-
#--------------------------------------------------------------------------------------
27-
tasFinalHit = 0 #TAS-only, final hit will be this character number
28-
#--------------------------------------------------------------------------------------
29-
3026
#Other variables
3127
speedCount = 0
3228
strengthCount = 0
@@ -107,6 +103,7 @@ def reportGamestate():
107103
if Gamestate == "Miihen" and StepCounter == 1: #After the talk with Auron
108104
FFX_LoadGame.LoadMiihenStart()
109105
if Gamestate == "MRR" and StepCounter == 1: #Mi'ihen North after meeting Seymour
106+
FFX_LoadGame.loadOffset(17)
110107
FFX_LoadGame.LoadMRR()
111108
if Gamestate == "MRR" and StepCounter == 2: #Just before the last lift to the battle site
112109
FFX_LoadGame.LoadMRR2()
@@ -117,6 +114,7 @@ def reportGamestate():
117114
if Gamestate == "Moonflow" and StepCounter == 2: #North bank, before Rikku
118115
FFX_LoadGame.moonflow2()
119116
if Gamestate == "Guadosalam" and StepCounter == 2: #After the Farplane
117+
loadOffset(1)
120118
FFX_LoadGame.loadGuadoSkip()
121119
if Gamestate == "Macalania" and StepCounter == 1: #1 = south, 2 = north
122120
FFX_LoadGame.loadOffset(6)
@@ -203,9 +201,14 @@ def reportGamestate():
203201
FFX_Logs.writeStats("Start time:")
204202
FFX_Logs.writeStats(str(startTime))
205203
print("Timer starts now.")
206-
FFX_DreamZan.listenStory()
204+
FFX_DreamZan.listenStory(gameLength)
207205
#Start of the game, up through Sinspawn Ammes fight
208206
StepCounter = 2
207+
#if gameLength == "short":
208+
# FFX_DreamZan.ammesBattleShort()
209+
#else:
210+
FFX_DreamZan.ammesBattle()
211+
209212

210213
if Gamestate == "DreamZan" and StepCounter == 2:
211214
reportGamestate()
@@ -218,6 +221,11 @@ def reportGamestate():
218221
if Gamestate == "DreamZan" and StepCounter == 3:
219222
FFX_DreamZan.AfterAmmes()
220223

224+
#if gameLength == "short":
225+
# FFX_Battle.TankerShort()
226+
#else:
227+
FFX_Battle.Tanker()
228+
221229
#Sin drops us near Baaj temple.
222230
StepCounter = 4
223231
reportGamestate()
@@ -241,7 +249,7 @@ def reportGamestate():
241249
FFX_cheater_cheese.items()
242250
FFX_cheater_cheese.BackToSin()
243251
FFX_Sin.insideSin(gameLength, autoEggHunt)
244-
FFX_Battle.BFA_TASonly(tasFinalHit)
252+
FFX_Battle.BFA_TASonly()
245253
Gamestate = "gameOver"
246254
stepCounter = 999
247255

@@ -472,6 +480,7 @@ def reportGamestate():
472480
if Gamestate == "Macalania" and StepCounter == 2:
473481
reportGamestate()
474482
FFX_mWoods.lakeRoad()
483+
FFX_mWoods.lakeRoad2()
475484
StepCounter = 3
476485

477486
if Gamestate == "Macalania" and StepCounter == 3:
@@ -484,6 +493,7 @@ def reportGamestate():
484493
if Gamestate == "Macalania" and StepCounter == 4:
485494
reportGamestate()
486495
FFX_mTemple.arrival(blitzWin)
496+
FFX_mTemple.seymourFight()
487497
StepCounter = 5
488498

489499
if Gamestate == "Macalania" and StepCounter == 5:
@@ -495,6 +505,7 @@ def reportGamestate():
495505
if Gamestate == "Macalania" and StepCounter == 6:
496506
reportGamestate()
497507
FFX_mTemple.escape()
508+
FFX_mTemple.wendigoFight()
498509
StepCounter = 7
499510
#Gamestate = "manualBreak" # Used for testing only.
500511

@@ -553,6 +564,7 @@ def reportGamestate():
553564
reportGamestate()
554565
FFX_Gagazet.calmLands(blitzWin)
555566
FFX_Gagazet.defenderX()
567+
FFX_Gagazet.toTheRonso()
556568
StepCounter = 2
557569

558570
if Gamestate == "Gagazet" and StepCounter == 2:

0 commit comments

Comments
 (0)