-
Download the
lightning_dodger.py
andtrigger_key.py
files and place them in the same directory -
Install dependencies:
python3 -m pip install -U --user Pillow mss
(Optional, if you need to debug
SCREEN_LOCATION
):python3 -m pip install -U --user opencv-python
-
(If necessary) Configure the
SCREEN_LOCATION
variable to select the part of your screen that will be screenshotted to detect the flash.Also, you may want to change the key pressed, which is "c" by default. You can do this by changing the value of
VK_C
in thetrigger_key.py
script. Alternate key values can be found at https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
-
Load FFX in windowed mode. Make sure the
SCREEN_LOCATION
falls comfortably in the left-side, vertically centered part of the screen, so the in-game map does not throw off detection. -
Run the following from Powershell:
python3 lightning_dodger.py
-
Move your character into position
(I recommend the crater in the southern plains, described in https://www.ign.com/wikis/final-fantasy-x/Lightning_Dancer )
-
(Optional) Use the game boosters to disable encounters, and speed up the game to 4x speed (might need to keep it at normal speed, though, if your computer is struggling to get a good frame rate for the detection)
-
Let the script do the dodging, and you just have to keep moving the character back into the right position.
Thank you very very much my friend! Once again python helps us retain our sanity. Even Remien and Chocobo Catcher I've always been able to manage, but this one is just too much for my attention span. +1 star!