0 of 0

File information

Last updated

Original upload

Created by

Shinway

Uploaded by

Shnway

Virus scan

Safe to use

32 comments

  1. Shnway
    Shnway
    • member
    • 9 kudos
    Locked
    Sticky
    Please consider hitting the Endorse button, would be much appreciated!

    Controls & Mechanics
    -Single Press: Moves your combat stance to the corresponding direction and immediately attacks. (If you are already in that stance, it will simply attack.)
    -Press & Hold: Repeatedly moves your stance in the chosen direction and continuously attacks. (Normally, an attack changes your stance, but this can quickly resets it, allowing for rapid consecutive strikes in the same direction.)
    -Both methods work well with combos, and you can mix single presses with press-and-hold for fluid attacks.


    Current Keybinds

    • Up Arrow → Moves stance Up and attacks.
    • Down Arrow → Moves stance Down and attacks.
    • Left Arrow → Moves stance Left and attacks.
    • Right Arrow → Moves stance Right and attacks.
    • Right Ctrl (Right Control Key) → Mapped to Right Mouse Button for Block/Perfect Block.
    • Right Shift → Mapped to Left Mouse Button for Charged Attack/Attack


    Troubleshooting steps:
    -Make sure you have the newest version of AutoHotkey (Older versions are not compatible with this script due to all the changes made in the new AHK 2.0 and above.) So definitely make sure you are using the newest version.

    -Make sure the script is the most recent version is saved somewhere on the computer where you have full read/write privileges. Maybe move the file to the desktop or in the root C drive in the Temp folder and if you don't have a Temp folder there than make one. May even want to re-download it and save and unzip it in a location where you know you have full read/write access.

    -Run the script as Administrator (Right click on the script and choose Run as Administrator).

    -Make sure you are running the game in Fullscreen mode

    -Make sure your version of Windows is fully updated. Recommended you are on Windows 11.

    -Make sure you are running Windows in a native session and not in a virtual machine (VMWare or Virtual Box).

    -Make sure your system drivers are all up to date. (Doubt this would cause issues but if anything it could be your graphics card drivers that may need to be updated).
  2. threestn
    threestn
    • member
    • 0 kudos
    Hi Shinway
    How can I change wasd instead arrow?
    1. Shnway
      Shnway
      • member
      • 9 kudos
      Since that would just be changing the hotkeys, it's very easy. 

      Are you still wanting to use WASD for moving around and use them like normal still (Keep the keys original functionality)?
      If so, outside of combat WASD will still work like normal but just know that once in combat WASD will still work for movement but also change your combat stance/attack as well. Because of this if you want to disengage from an enemy then you can hold shift which makes the combat stance indicators go away so you can then run away or choose another enemy.
      This was not meant to be used with both movement and stance changes combined and while it does work it can also cause the camera to go kind of wild sometimes and you have to recenter it.
      With all that understood here is how to make the changes:

      Open the script in Notepad.
      Find:           Right:: {
      Change to:  ~*d:: { 

      Find:           Left:: {
      Change to:  ~*a:: { 

      Find:           Up:: {
      Change to:  ~*w:: { 

      Find:           Down:: {
      Change to:  ~*s:: { 

      Save
      Your all done


      Now if you are only going to use WASD for changing combat stance position/attack and will be using the Arrow Keys or something else for your movement (How it was originally intended with both stance changes and movement being separate so less camera craziness) then this is how you would change the script:

      Open the script in Notepad.
      Find:           Right:: {
      Change to:  d:: { 

      Find:           Left:: {
      Change to:  a:: { 

      Find:           Up:: {
      Change to:  w:: { 

      Find:           Down:: {
      Change to:  s:: { 

      Save
      Your all done
      With this method the WASD keys only work for changing combat stance position/attack while in combat so they only focus on doing the combat stance changes when the combat stance indicators are on screen (Less chance the WASD keys will activate the cameras movement.)

      Also, if you rather it only change combat stance position without the auto attack afterwards then remove this from all parts of the script:

      SendInput("{LButton Down}")
      Sleep(40)
      SendInput("{LButton Up}") 



      Let me know if that works how you are wanting.
  3. 2retull
    2retull
    • member
    • 0 kudos
    Hi Shinway.. Have you thought about doing it this way.  ( The 4D boxing way I mentioned before )

    I use Right Ctrl for Crouch, which is disabled in combat. So you make the Crouch Key ( Right Ctrl for me please ;-) 
    The key that Engage and Disengage the script. Also since you can track the Green light. Why not make the script only activate when Henry LOCKS ON. 
    If I'm not locked to an opponent, everything, works as normal, including Crouch. But if I press Ctrl while Locked. I can Strike with the Arrow keys. 

    I can also see an option for using, in my case Right-Ctrl as both Lock On and Script On - Off. Perhaps it will work best with Key HOLD. 
    Move around, select opponent strike with mouse etc but instantly lock on and execute a Longsword Mittelhaw UP - RIGHT - LEFT
    In my case. I would move the Crouch Key to something else, reserved for sneaking and use Ctrl HOLD for Lock ON and Script ON / OFF.    

    Just an idea. BTW. Remember the Black Knight. "Tis but a Scratch" ;-) I sampled Henry and made him say.. "It's only a prank Bro"
    I thought I could be a hilarious dialog option, for all the random times the game punish you for doing something wrong. 
    If you can figure out how to add a Dialog option / Insult. I got the Voiceovers ready to go, including a bunch of insults with Henry as the Black Knight :-)   
     
     
    1. Shnway
      Shnway
      • member
      • 9 kudos
      EDIT 3:

      Ok, think I got a version for ya so that you are no longer "stuck in the mud in the streets of Kuttenberg, swinging the sword like Alexander The Great" LOL

      I uploaded a custom version under "Miscellaneous files" called "Arrow Keys Combat - Custom Request"

      Details:
      The Arrow Keys will now still work for movement both in and out of combat and can still change combat stances / attack.
      Right Ctrl is mapped to Crouch.
      Right Shift is mapped to Attack.

      Give that version a try and let me know if that's better for ya! If it is then the rest of this post has become pointless.
      If the script is still not what you were looking for then come back and read the rest of this post.
      Thanks






      -----------
      -----------
      -----------

      Sorry, I am not fully understanding how you would like it to work.
      I am going to fully explain what the script is currently doing and then I will try and break down why it does what it does and try and understand what you are requesting.

      EDIT:
      Well I ended up rambling on and it ended up being a huge book of text, so here is a chopped/edited version that gets more to the point and doesn't over explain things:

      How the Script Currently Works:

      • The script takes control of the arrow keys, preventing them from functioning as normal.
      • In combat, the script detects the red combat stance indicator and enables the arrow keys to change stances.
      • Out of combat, the arrow keys are disabled (automatically and faster than humanly possible) to prevent unintended camera movement (which happens because they control the mouse in combat).
      • This automation ensures the camera doesn’t go out of control the exact moment an enemy is defeated because in that same moment the red combat indicator goes away. A manual toggle (like a lock-on button) wouldn’t work because when an enemy dies, stance indicators disappear, causing instant camera drift (This issue can still randomly happens but only for a brief moment).


      Key Bindings:

      • Arrow Keys → Used for stance switching only when the red combat stance indicator is detected.
      • Right CtrlBlock (Mapped to Right Mouse Button)
      • Right ShiftAttack (Supports charged attacks)


      Your Requested Changes:

      • You mentioned using Right Ctrl for crouch, but the script overrides it for blocking. If you want to keep Right Ctrl for crouch, what key would you prefer for blocking?
      • You asked “Why not activate the script when Henry locks on?”

        • If you mean triggering arrow keys with the Tab (Lock-On) button, this wouldn’t work well. If an enemy dies while the toggle is still active and the arrow keys were still active, the camera would become uncontrollable the instant the combat indicators disappear or leave view.
        • If you mean detecting the small ring on the stance indicator to know when locked on, this is difficult. That ring is the same color as the stance indicators, and an image search method would only work at a fixed resolution, making the script unreliable for different setups.

      • You suggested using Right Ctrl to both lock on and toggle the script. Unfortunately, manual toggling wouldn’t work for the same reason—if an enemy dies while the toggle is active and the arrow keys were still in use, the camera would go all over the place.


      Possible Adjustments:

      • You mentioned wanting arrow keys to function as movement (like WASD) outside of combat, then switch to stance control in combat. That might be possible—when the stance indicator isn’t detected, they could function as movement keys.
         
      if you could specify exactly how you’d like the key mappings adjusted while keeping the automated combat stance detection intact, I can see what can be changed. The core functionality (ensuring arrow keys don’t interfere with the camera) has to remain, but small adjustments are possible.



      EDIT2:
      ----------------------------------
      ----------------------------------
      ----------------------------------
      Full version for the hell of it LOL:


      When you start the script it more or less takes control of the arrow keys and makes them no longer work as the arrow keys. You will notice that when out of combat the arrow keys will not do anything, well anytime they are used when not in combat they are actually trying to look for the red combat stance indicator (Anytime you are in combat and the combat stance indicators show up at least one of the indicators are red and the script looks for that).

      The main reason for this is because the arrow keys now work as mouse movements and if these mouse movements are done while not in combat and not locked on an enemy then instead the arrow keys controls the games camera, so then the camera ends up moving really fast in the arrow key direction you are holding.
      So for a workaround instead of the arrow keys always working as mouse movements, the red combat stance indicator has to be found by the script first before they will actually do anything.
      For the script to work well with detecting if you are in combat or not it looks for that red indicator because its a color that's always there when in combat and its a distinct color. 

      It is very important that the arrow keys only work while in combat because when they are used outside of combat the arrow keys will then control the camera instead of the combat stances which makes the camera go really fast, so its set up where as soon an enemy goes down it tries to quickly disable the arrow keys so it doesn't make the camera move all over the place.

      So the arrow keys are always disengaged until they find that red stance indicator and will keep working till as soon as that red stance indicator disappears (enemy goes down).
      So if this was not automated like it is and instead was set as a manual activation button like a lock on button and used as a toggle then as soon as you take down an enemy and the stance indicators goes away the camera would be flickering all over the place. 
       
      As far as Right Ctrl, the script is using that key as the block button so you are able to block or perfect block attacks while in combat. So the script maps Right Ctrl as Right Mouse Button.

      As far as Right Shift, the script is using that key as the attack button so if people want to hold Right Shift they can still do charged attacks.

      So currently all 4 arrow keys are either on or off, if they cannot find the red combat stance indicator then the arrow keys will do nothing, if they do find it then they will let you change your combat stance.
      Right Ctrl is set for blocking
      Right Shift is set for charged attacking

      Now with all that being said can you better fully explain your proffered button layout or how you would like to use this?
      Originally this was to allow people to no longer need to use the mouse by allowing you to do all main actions from the keyboard, are you trying to use the mouse still?
      You said you use "Right Ctrl for Crouch" well currently if you run this script then no matter what you have set for Right Ctrl it will be ignored by the script and the script will use that key to be your block button. If you still want to use Right Ctrl for Crouch with the script then what key would you rather use for blocking? Also, I can make the script force Right Ctrl for Crouch but it will just be copying the C key so when you press Right Ctrl the keyboard will think you are pressing C and you will still not be able to couch in combat.

      When you say "Why not make the script only activate when Henry LOCKS ON." are you asking to make it so when the lock on button is press (the Tab key) that should be what activates the arrow keys? 
      As mentioned using a toggle or activation key to switch the arrow keys on and off manually would not work because you would lose track of the camera anytime an enemy goes down or the red stance indicator goes out of sight.
      If you mean you want the script to know when you are locked on an enemy by looking for the small ring that shows up on the stance indicators when locked on. Well that small lock on ring is the same color as the stance indicators so the script won't know the different. (even if I made a image search version instead of a pixel search version that small ring would still be hard to track since its so thin and few pixels, also by using an image search the script would only work on the resolution the image was pulled from so it would restrict the script to only a single resolution and or would add a lot of troubleshooting for people.
      You said "Right-Ctrl as both Lock On and Script On - Off", as mentioned unfortunately the way the mouse movement is implemented with the arrow keys using a manual toggle to enable the the script on or off yourself would not work because the second an enemy dies and the combat stance indicators goes away then your camera view you go flying all over the place.

      Example:
      You are holding the right arrow key to change your stance to the right and do a right attack, well lets say that ends up being the final attack needed to take that enemy out. Well the second they go down the red combat stance indicator goes away and then the arrow key instantly becomes camera control and your view goes all over the place. With how the script currently is, it does a pixel search over and over very fast to make sure that the red combat stance indicator is on screen and faster than humanly possible the moment its not on screen the arrow keys stop working which stops the camera from flying all over the place.

      Well as long as you understand all that and now know the limitations and restriction of how the script works. Let me know if there is any certain way you rather it work and or be set up. There are small changes that could be done like changing certain key buttons around but not much else. One thing I was thinking of though is you said you would like to use the arrow keys both for movement like WASD and once in battle they then work for stance changes. 
      Well currently the arrow keys looks for that red combat stance indicator, if its not found then they do nothing well maybe I could make it so if its not found they will work like normal as movement buttons but as soon as the red combat stance indicator is found then they activate for stance changes.
    2. Shnway
      Shnway
      • member
      • 9 kudos
      Ok, think I got a version for ya so that you are no longer "stuck in the mud in the streets of Kuttenberg, swinging the sword like Alexander The Great" LOL

      I uploaded a custom version under "Miscellaneous files"
      Details:
      The Arrow Keys will now still work for movement both in and out of combat and can still change combat stances / attack.
      Right Ctrl is mapped to Crouch.
      Right Shift is mapped to Attack.

      Give that version a try and let me know if that better for ya!
    3. 2retull
      2retull
      • member
      • 0 kudos
      Wow.. What can I say :-)  I'm in awe for the dedication you show in your reply, a rare gift :-) 
      I Apologise for confusing you with my idea. I only did a brief test of the first version you made and had little understanding how everything works. Had a quick test just now, it worked great but as you mentioned earlier, the mouse camera can be a bit wonky and pointed me away sometimes. Sadly it's all I got tonight. I'm going away tomorrow, ca 2 weeks so I'm terribly sorry I won't be able to provide input until I'm home. Looking forward to masacre Kuttenberg :-) Thanks for making a custom version for me to test out. 
      Until then Sir. Shnway. May the blessed Virgin Mary keep your monitor shining bright. :-) 

      PS. You wrote: One thing I was thinking of though is you said you would like to use the arrow keys both for movement like WASD and once in battle they then work for stance changes. Well currently the arrow keys looks for that red combat stance indicator, if its not found then they do nothing well maybe I could make it so if its not found they will work like normal as movement buttons but as soon as the red combat stance indicator is found then they activate for stance changes. 

      Yes this is how I saw it in my mind. Everything works as normal with Arrow keys (That I use) or WASD as movement until we Lock On.  
      Btw I have a Logitech G502 with 11 buttons, I use them all but can perhaps remap 1 to act as the "Engage Key" if it helps. 
    4. Shnway
      Shnway
      • member
      • 9 kudos
      "I'm in awe for the dedication you show in your reply, a rare gift :-) " LOL that had me cracking up, and indeed that's an understatement. I had just finished a major script project and was on a coders high so wanted more to work on and also had far too much coffee so the fingers wanted to smack the keyboard!

      Great to hear, yup the custom version I uploaded allows the arrow keys to still move around just like WASD both in and out of combat and also still control combat stances. Crouch is also set for Right Ctrl. So it should work just as you needed.
      Enjoy!
  4. AndreD
    AndreD
    • member
    • 0 kudos
    does this work in conjunction with your other mod Combat Cheats Hold and Toggle?
    You not really specified if they will work together on either of these mods
    1. Shnway
      Shnway
      • member
      • 9 kudos
      Yes they work together without issue, they actually pair very well together.
    2. AndreD
      AndreD
      • member
      • 0 kudos
      ok thank you. I wasn't sure. I will add your other mod to use as well.
    3. Shnway
      Shnway
      • member
      • 9 kudos
      Yea the Battle Cry / Taunt Mods work with everything together too, id suggest the combined version with both  taunt and battle cry. All my mods work well together.
      The only one that's not needed and has become obsolete is "Assisted Combat" as it has been replaced with the "Combat Cheats" Mod.
      Enjoy!
    4. AndreD
      AndreD
      • member
      • 0 kudos
      just seen them and downloading them
  5. dokeshi
    dokeshi
    • member
    • 0 kudos
    Arrow Keys Combat 1.1 and Arrow Keys Combat - Stance Change Only 1.1 it is the same file

    1. Shnway
      Shnway
      • member
      • 9 kudos
      Very strange, re-uploaded "Arrow Keys Combat 1.1" so it now has the added attack back. Thanks catching that, much appreciated!
  6. AndreD
    AndreD
    • member
    • 0 kudos
    how does this work for those who uses controller to play, instead of keyboard/mouse? 
    1. Shnway
      Shnway
      • member
      • 9 kudos
      It does not work on a controller (without workaround), all the mapped buttons are keyboard/mouse buttons and the activation keys are the keyboards arrow keys along with other keyboard keys.

      A workaround to use the script with a controller would be to use a button re-mapper which would allow you to map keyboard and mouse buttons to your controller. Could use a program like AntiMicroX, this lets you map your controllers buttons with the keyboard and mouse. By doing this you can then use the script with your controller.
  7. HellishGG
    HellishGG
    • member
    • 0 kudos
    how are you supposed to do master strikes with this it seems more difficult 
    1. Shnway
      Shnway
      • member
      • 9 kudos
      There are some trade offs while using the Arrow Keys. Mainly charged attack but I am planning on adding an extra keybind to maybe Right Shift so it works as Left Mouse button so can use that for charged attacks. Then there is Master Strikes, since this changes your stance and then immediately attacks for you it does not really let you keep your stance to the opposite of theirs.
      To compensate for that you can also use my Combat Cheats (Auto Evade - Perfect Block - Master Strike - Riposte) mod, full details on how to use it are in the mods description tab. There is a hold version and a toggle version.

      But you bring up a good point and so I will be thinking of some other solutions like say make it so if you hold a keybind it will make the arrow keys only change stances without the attack. So that way as long as you are holding the keybind the arrow keys lets you only change stances so you can then keep an opposite stance and if you release the keybind it will then go back to changing stances and attack.
      Just trying to make sure whatever I go with it will also feel smooth and natural for the majority of people. So let me know if you have any ideas that would work to help remove any trade offs.

      Thanks for the feedback!
    2. HellishGG
      HellishGG
      • member
      • 0 kudos
      is there anyway you could aslo do a version where you can just use arrow keys but still have to press the mouse for attack? 
    3. Shnway
      Shnway
      • member
      • 9 kudos
      Ok I made a version that only changes combat stance and uploaded it under optional files. Also made Right Shift mapped to Left Mouse button so it can be used for attacks.
      Let me know how that works, still seem like I need to do some fine tuning to the main script and this one. Weapons with faster animations like short sword might trigger more than once so the stance and attack are done multiple times so might need to find a better balance. Let me know if that stance only version has any responsiveness issues with going from one stance to the next. Keep an eye out on If it takes to long to change stances or seems like its fighting back wanting to stay on your last chosen stance longer than it should.

      Thanks
    4. HellishGG
      HellishGG
      • member
      • 0 kudos
      the stances are a little slow but other than that it's fine you're awesome thank you
    5. Shnway
      Shnway
      • member
      • 9 kudos
      No problem, finally had some time to mess with it some more.
      One of the main reasons it reacts slowly or sometimes goes to the wrong stance is because I have a command in the script that forces the mouse curser back to the center of the screen because if say you were to just hold the down arrow key for too long the mouse curser would be at the bottom of the screen and then you would not be able to change your stance down again unless you press ESC and recenter the mouse curser.
      Still not found a real good solution for that issue but for now I just fully removed the command that moved the curser to the middle of the screen as made the stance changes faster.

      Just uploaded the new version, it should let you make stance changes faster now and more reliably.
      But as mentioned if for some reason it stops wanting to go to a certain stance just press ESC so it shows the main menu and move the curser to the center of the screen.
  8. 1997riccardo
    1997riccardo
    • supporter
    • 0 kudos
    I have to try this!

    Quick question, you said this only works when the Rosette is visible, so this shouldn't interfere with out of combat gameplay, right?

    Would be possible to use RMB+WheelUp+LMB+WheelDown? so that you don't have to leave your mouse
    1. Shnway
      Shnway
      • member
      • 9 kudos
      Yes, this looks for the Rosette before allowing the arrow keys to change combat stances.
      Once you have tried using it let me know what you think, also explain more about what you mean by using the mouse buttonss with the mouse wheel. Not seeing how you would have much control on which stance you are changing to doing it that way or the purpose of that would be.
  9. Malcroix
    Malcroix
    • premium
    • 40 kudos
    Is this better than the automatic Riposte/Masterstrike mod?

    Because I am using that (just for QoL purposes), but fights last long since waiting to parry/MS often takes a long time. This mod may let us win faster by hammering the same spot, which may be more useful when your character already has high main stats and a lot of stamina to keep the attacks going? Furthermore, this mod seems to allow easier rapid chaining of strikes for combos.
    1. Shnway
      Shnway
      • member
      • 9 kudos
      Its not better, they were made to complement each other, this one pairs really well with my Assisted Combat (Auto Perfect Block and Riposte) mod. I am thinking of making a combined version with this added with those features as well as a couple new features like auto evade and auto Riposte without the attack after.

      Instead of waiting for the enemy to attack I normally use the games main key combat mechanics which I explain and go over in the posts tab on my Assisted Combat mod. I have that as a large post and its set as a stickied post at the top.
      But mainly with the Assisted Combat mod hold E or F while attacking into the enemy to force them to counter or attack back while keeping your stance the opposite of theirs. Also watch for the blinking whitish combat stance indicators which kinda flash which gives you combo strings for weak spots in the enemies stance.
      But yea there are ways to force the enemy to attack but you can also do charged attack into a feint where you charge and quickly switch combat stance so then it can trick them for a better chance to hit them. (If using this mod and not mouse then I would bind another keyboard key as the left mouse button to still be able to use charged attack). I might update the script and do that for Right Shift or something.

      There are stamina mods to speed up stamina regeneration, give you more stamina overall, or just make attack use less stamina. Also mods that restrict enemy movement, stop them from evading, stop them from using master strikes, stop them from attack you in groups but instead attack you one at time, also a mod to speed up gameplay which can make waiting for an enemy to attack take less time.
      There are many mods I still need to test myself to get the full combat experience I am looking for. 
      The mudding community for this game is growing fast so no telling what we shall see be released, I keep coming up with ideas but just need to find time to get them done and released.
  10. KamilolPL
    KamilolPL
    • member
    • 0 kudos
    No way!
    As someone who loved the classic arrow key combat in Gothic 1 & 2,
    I'm pretty sure it would be my no.1 mod for KCD2 if I were playing with k&m instead of DualSense.
    Anyway, thanks a lot for creating this!
    1. Shnway
      Shnway
      • member
      • 9 kudos
      No problem, first played Skyrim back when it first came out on console but ever since I got it on PC I had a hard time going back to using a controller. If I end up playing this with a controller I might make a version using the face buttons for easy stance changes with an attack, would just use a controller button mapper so the script can still work off of the keyboard.
  11. 2retull
    2retull
    • member
    • 0 kudos
    It works fantastic. But I have a problem. I'm a Arrow key player already :-) 
    So I'm stuck in the mud in the streets of Kuttenberg, swinging the sword like Alexander The Great :-)
    This is how the combat should have been, but with a Key that Engage & Release the movement keys, either WASD or Arrows.
    It reminds me of 4D Boxing. A classic from the early 90's  It was and still is great fun to play, if you can get it to run.  
    1. Shnway
      Shnway
      • member
      • 9 kudos
      Nice, glad to hear it! Yea I have played other games that had combat stances and were also tied to the mouse, not really seen it done well but luckily with automation tools like AutoHotkey something like this can be accomplished.
      As far as a classic like 4D Sports Boxing, with how far browsers have come with HTML5 and with how simplistic DOS was they have web based versions of it online. There are a few retro game sites that are dedicated to keeping the classics alive so they run them through browser based emulation. Not played a DOS game in many years, was fun to check out. Nice recommendation!