1414import xbox
1515
1616gameVars = vars .varsHandle ()
17+ FFXC = xbox .controllerHandle ()
1718
1819# Process Permissions
1920PROCESS_QUERY_INFORMATION = 0x0400
@@ -425,7 +426,6 @@ def clickToControl3():
425426
426427
427428def clickToControlSpecial ():
428- FFXC = xbox .controllerHandle ()
429429 waitCounter = 0
430430 print ("Awaiting control (clicking)" )
431431 while not userControl ():
@@ -443,7 +443,6 @@ def clickToControlSpecial():
443443
444444
445445def clickToEvent ():
446- FFXC = xbox .controllerHandle ()
447446 while userControl ():
448447 FFXC .set_value ('BtnB' , 1 )
449448 if gameVars .usePause ():
@@ -459,7 +458,6 @@ def clickToEvent():
459458
460459
461460def clickToEventTemple (direction ):
462- FFXC = xbox .controllerHandle ()
463461 if direction == 0 :
464462 FFXC .set_movement (0 , 1 )
465463 if direction == 1 :
@@ -1386,7 +1384,6 @@ def saveMenuOpen():
13861384
13871385
13881386def backToMainMenu ():
1389- gameVars = vars .varsHandle ()
13901387 while menuNumber () not in [1 , 2 , 3 , 4 , 5 ]:
13911388 if menuOpen ():
13921389 xbox .tapA ()
@@ -1397,7 +1394,6 @@ def backToMainMenu():
13971394
13981395
13991396def openMenu ():
1400- FFXC = xbox .controllerHandle ()
14011397 menuCounter = 0
14021398 while not (userControl () and menuOpen () and menuNumber () == 5 ):
14031399 if menuOpen () and not userControl ():
@@ -1701,7 +1697,6 @@ def awaitMenuControl():
17011697
17021698
17031699def clickToStoryProgress (destination ):
1704- FFXC = xbox .controllerHandle ()
17051700 counter = 0
17061701 currentState = getStoryProgress ()
17071702 print ("Story goal:" , destination , "| Awaiting progress state:" , currentState )
@@ -1754,7 +1749,6 @@ def getCharacterIndexInMainMenu(character):
17541749
17551750
17561751def fullPartyFormat (frontLine , * , fullMenuClose = True ):
1757- gameVars = vars .varsHandle ()
17581752 order = getOrderSeven ()
17591753 partyMembers = len (order )
17601754 frontLine = frontLine .lower ()
@@ -1782,7 +1776,6 @@ def fullPartyFormat(frontLine, *, fullMenuClose=True):
17821776 while not menuOpen ():
17831777 if not openMenu ():
17841778 return
1785- FFXC = xbox .controllerHandle ()
17861779 FFXC .set_neutral ()
17871780 while getMenuCursorPos () != 7 :
17881781 menuDirection (getMenuCursorPos (), 7 , 11 )
@@ -2883,7 +2876,6 @@ def checkThunderStrike() -> int:
28832876
28842877def checkZombieStrike ():
28852878 ability = 0x8032
2886- gameVars = vars .varsHandle ()
28872879
28882880 charWeaps = weaponArrayCharacter (0 ) # Tidus
28892881 while len (charWeaps ) > 0 :
@@ -3093,7 +3085,6 @@ def customizeMenuArray():
30933085
30943086def checkNEArmor ():
30953087 ability = 0x801D
3096- gameVars = vars .varsHandle ()
30973088
30983089 charWeaps = armorArrayCharacter (0 ) # Tidus
30993090 while len (charWeaps ) > 0 :
@@ -3655,7 +3646,6 @@ def touchSaveSphere(saveCursorNum: int = 0):
36553646 clearSaveMenuCursor2 ()
36563647
36573648 ssDetails = getSaveSphereDetails ()
3658- FFXC = xbox .controllerHandle ()
36593649 while userControl ():
36603650 targetPathing .setMovement ([ssDetails [0 ], ssDetails [1 ]])
36613651 xbox .tapB ()
@@ -3708,7 +3698,6 @@ def touchSaveSphere_notWorking(saveCursorNum: int = 0):
37083698 print ("MEM - Touch Save Sphere" )
37093699
37103700 ssDetails = getSaveSphereDetails ()
3711- FFXC = xbox .controllerHandle ()
37123701 while userControl ():
37133702 targetPathing .setMovement ([ssDetails [0 ], ssDetails [1 ]])
37143703 xbox .tapB ()
@@ -3753,7 +3742,6 @@ def csrBaajSaveClear():
37533742 print ("No need to clear. User is in control." )
37543743 else :
37553744 print ("Save dialog has popped up for some reason. Attempting clear." )
3756- FFXC = xbox .controllerHandle ()
37573745 try :
37583746 FFXC .set_neutral ()
37593747 except Exception :
0 commit comments