SHARE
TWEET

Bloodstained ROTN Accessibility

chemicalvamp Jun 25th, 2019 164 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn  ; Enable warnings to assist with detecting common errors.
  3. #MaxThreadsPerHotkey 1 ; Only 1 thread is needed.
  4. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  5. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  6.  
  7. Combo1Hotkey = 1 ; Change this to your heart's content, Idealy you will only have the combos relavant for your current weapon on hotkey,
  8. Combo2Hotkey = 2 ; so I would delete the hotkeys you dont need.
  9. Combo3Hotkey = 3 ; I'm listing 3 combos for 3 different weapons for the sake of example.
  10.  
  11.  
  12. hotkey, %Combo1Hotkey%, Combo1 ; This can be duplicated for as many unique hotkeys as you wish to define above.
  13. hotkey, %Combo2Hotkey%, Combo2
  14. hotkey, %Combo3Hotkey%, Combo3
  15.  
  16. Facing := "right" ; Just a default for the variable
  17. ~a::Facing := "left" ; Stores direction to a variable while still passing the key to the game.
  18. ~d::Facing := "right"
  19.  
  20. ; Here we establish the labels we will be jumping to by hotkey.
  21. Combo1: ; Down to back, forward, attack
  22. if (Facing = "right")
  23. {
  24.     Send, {s down} ; Down
  25.     Sleep 30
  26.     Send, {a down} ; Down + Left
  27.     Sleep 30
  28.     Send, {s up} ; Left
  29.     Sleep 30
  30.     Send, {a up} ; nothing
  31.     Sleep 30
  32.     Send, {d down} ; Right
  33.     Sleep 30
  34.     Click Down ; Right + Attack
  35.     Sleep 30
  36.     Click Up
  37.     Sleep 30
  38.     Send, {d up} ; Nothing
  39.     return
  40. }
  41. else ; Your facing left..
  42. {
  43.     Send, {s down}
  44.     Sleep 30
  45.     Send, {d down}
  46.     Sleep 30
  47.     Send, {s up}
  48.     Sleep 30
  49.     Send, {d up}
  50.     Sleep 30
  51.     Send, {a down}
  52.     Sleep 30
  53.     Click Down
  54.     Sleep 30
  55.     Click Up
  56.     Sleep 30
  57.     Send, {a up}
  58.     return
  59. }
  60.  
  61. Combo2: ; Down to forward, attack
  62. if (Facing = "right")
  63. {
  64.     Send, {s down}
  65.     Sleep 30
  66.     Send, {d down}
  67.     Sleep 30
  68.     Send, {s up}
  69.     Sleep 30
  70.     Click Down
  71.     Sleep 30
  72.     Click Up
  73.     Sleep 30
  74.     Send, {d up}
  75.     return
  76. }
  77. else
  78. {
  79.     Send, {s down}
  80.     Sleep 30
  81.     Send, {a down}
  82.     Sleep 30
  83.     Send, {s up}
  84.     Sleep 30
  85.     Click Down
  86.     Sleep 30
  87.     Click Up
  88.     Sleep 30
  89.     Send, {a up}
  90.     return
  91. }
  92.  
  93. ; The technique this combo is used for is a cast until attack key is "up" that being said you might want to comment out the Click Up and it will continue to be cast until you send your own click.
  94. Combo3: ; Down, back, up, forward, attack
  95. if (Facing = "right")
  96. {
  97.     Send, {s down}
  98.     Sleep 30
  99.     Send, {s up} {a down}
  100.     Sleep 30
  101.     Send, {a up} {w down}
  102.     Sleep 30
  103.     Send, {w up} {d down}
  104.     Sleep 30
  105.     Click Down
  106.     Sleep 30
  107.     Click Up
  108.     Sleep 30
  109.     Send, {d up}
  110.     return
  111. }
  112. else
  113. {
  114.     Send, {s down}
  115.     Sleep 30
  116.     Send, {s up} {d down}
  117.     Sleep 30
  118.     Send, {d up} {w down}
  119.     Sleep 30
  120.     Send, {w up} {a down}
  121.     Sleep 30
  122.     Click Down
  123.     Sleep 30
  124.     Click Up
  125.     Sleep 30
  126.     Send, {a up}
  127.     return
  128. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top