Created
June 1, 2019 00:21
-
-
Save dcragusa/a5a524cd0bdebba817fc1c44ecfbcb87 to your computer and use it in GitHub Desktop.
A way to trigger skills in Shadow Warrior with single buttonpresses instead of movement key combos. See https://steamcommunity.com/app/233130/discussions/0/1643164649202538416/ for further details.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#Warn | |
#SingleInstance Force | |
#InstallKeybdHook | |
#UseHook On | |
SendMode Input | |
Release() { | |
Send {w up} | |
Send {a up} | |
Send {s up} | |
Send {d up} | |
Return | |
} | |
Resume() { | |
if GetKeyState("W", "P") | |
Send {w down} | |
if GetKeyState("A", "P") | |
Send {a down} | |
if GetKeyState("S", "P") | |
Send {s down} | |
if GetKeyState("D", "P") | |
Send {d down} | |
Return | |
} | |
; heal | |
Z:: | |
Release() | |
Send {d} | |
Sleep 20 | |
Send {d} | |
Send {RButton down} | |
Sleep 20 | |
Resume() | |
KeyWait Z | |
Send {RButton up} | |
Return | |
; roar | |
V:: | |
Release() | |
Send {w} | |
Sleep 20 | |
Send {w} | |
Send {RButton down} | |
Sleep 20 | |
Resume() | |
KeyWait V | |
Send {RButton up} | |
Return | |
; flux | |
B:: | |
Release() | |
Send {s} | |
Sleep 20 | |
Send {s} | |
Send {RButton down} | |
Sleep 20 | |
Resume() | |
KeyWait B | |
Send {RButton up} | |
Return | |
; divider of heavens (stab) | |
MButton:: | |
Release() | |
Send {w} | |
Sleep 20 | |
Send {w} | |
Send {LButton down} | |
Sleep 20 | |
Resume() | |
KeyWait MButton | |
Send {LButton up} | |
Return | |
; circle of iron (circle swing) | |
G:: | |
Release() | |
Send {a} | |
Sleep 20 | |
Send {a} | |
Send {LButton down} | |
Sleep 20 | |
Resume() | |
KeyWait G | |
Send {LButton up} | |
Return | |
; wing of crane (projectile) | |
F:: | |
Release() | |
Send {s} | |
Sleep 20 | |
Send {s} | |
Send {LButton down} | |
Sleep 20 | |
Resume() | |
KeyWait F | |
Send {LButton up} | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment