Skip to content

Instantly share code, notes, and snippets.

@iwanPlays
Created August 15, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwanPlays/eb38d6184ef79232100519fe22ae1da2 to your computer and use it in GitHub Desktop.
Save iwanPlays/eb38d6184ef79232100519fe22ae1da2 to your computer and use it in GitHub Desktop.
Key-mashing AI for Shining Blades from https://steelraven7.itch.io/shinin-blades by SteelRaven7 and Wronex
F1::
loop {
Random, updown, 0, 5
if (updown < 2 ) {
Send {Up up}
Send {Down down}
} else if (updown < 4) {
Send {Down up}
Send {Up down}
} else {
Send {Down up}
Send {Up up}
}
loop 5 {
if die == 1
break
Random, action, 0, 10
if (action < 1 ) {
Send {RShift down} {RShift up}
}
else if (action < 4){
Send {Left up}
Send {Right down}
}
else if (action < 7){
Send {Right up}
Send {Left down}
}
else {
Send, {RCtrl}
}
}
}
Return
@birdeez
Copy link

birdeez commented Dec 16, 2018

aand where do I put this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment