I wrote this script when Yakuza 0 was a PS4 exclusive, but I've heard whispers that it works just fine for the PC version. No need for PS4 Remote Play
Using the PS4 Remote Play and AutoHotKey for Windows you can automate leveling up the Legend styles for Kiryu (Dragon of Dojima), and Majima (Mad Dog of Shimano).
The PS4 Remote Play app allows keyboard emulation for the Dpad, and "x" button only—but that's all that's necessary for leveling up!
1 full talent tree takes about 5 minutes to automate.
- PS4 Remote Play (not required for PC version)
- AutoHotKey
- Download
legend.ahk
- Use remote play to open the Legend style in game.
- Move the cursor to the first red skill point.
- Run the script, right click -> "Run Script"
- Click in the Remote Play app and wait
- Press escape to cancel
You've got 2 seconds from "Run Script" to click into the Remote Play app.
Increase the number on line 120
to give yourself more time.
Change the number on line 122
to the number of iterations you want
before you need to rerun the script
Increase the Sleep
on line 6 if you need more a buffer when closing the
skill up display. (See this DaMoggen's fork for examples https://gist.github.com/DaMoggen/9557e31891e1958966c9a67b9b2fb889)
You can't use your PC whilst the script is running, because the key
presses are sent to the foreground window. I tried using ControlSend
to specify which window to send key events to, but I couldn't get it to work for Remote Play.
If you've partially filled out a talent tree already, upgrade it to the next level.
If the script is interrupted for any reason, there's a good chance the Remote Play app will stop responding to the Dpad or the x button. Test them out in game before restarting the script. If they don't work, restarting the Remote Play app will fix it.
It's recommended the machine you're remote playing from, and the PS4 are
connected to the same network with a cable. Random spikes in latency can mess
up the automation.
If your network connection is particularly bad, consider increasing some
of the Loop
and Sleep
values, although this will slow down automation.
Can you make a easy way for a Rapidfire Hotkey?