Hey all! Scroll down or ctrl-F for TLDR.
–Background–
Those of us coming to GD from the “other” ARPG may be used to using MW for movement. First, some find it easier to roll the wheel than to hold a key or LMB (some due to physical limitations, some for convenience). More importantly, there is an autocast mechanic that gets interrupted by holding a key/button down. Therefore, some folks are used that control scheme (using mouse wheel to effectively spam Move) and wanted to import it to GD, myself included.
In GD, binding MW to Move causes the character to move constantly without stopping. My script is just a fix directed at that crowd that wants it to work “properly,” i.e. like other games. The mouse wheel now makes one’s character simply follow the cursor and not attack if the cursor happens to be over an enemy.
May not be up everyone’s alley, but I decided to try and be helpful and share it for folks like the ones here, here, here, here, and here. I chose to make my own thread vice necro’ing a bunch of older ones.
–Disclaimer–
I’m new to GD and you can see this is my first post. First, I hope I’m posting on the right board. Next, I’ve googled this issue ad nauseum and couldn’t find an answer. If this or a better solution is already out there, I apologize!
Moreover, if use of AHK is less than kosher, disregard and I’ll delete the thread. I have, however, seen multiple threads regarding use of scripts. I cannot speak to the use of this script in multiplayer or whether Crate condones.
–Solution–
TLDR
- Download and install AutoHotkey
- Right-Click somewhere, choose New -> AutoHotkey Script from the context menu, and name as you like
- Right-Click your new script and choose Edit Script
- Paste the follow code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.WheelDown::
Send {] down}
Sleep 10
Send {] up}
returnWheelUp::
Send {] down}
Sleep 10
Send {] up}
return^!s::
Suspend, Permit
Suspend, Toggle
ReturnEnd::ExitApp
I’ve assigned ] to Move (not Force Move) in game and “^!s” means I use ctrl-alt-S to toggle the script on and off. Modify as you like.
- Double-Click the script. Test in Notepad as desired.
- Pressing the End key, logging out, or finding the AHK icon in your tray and hitting Exit get you out of the script.
–Final Notes–
I’m not a coder and have only this experience with AHK. Please point out any bloated or unnecessary parts of the script. All I can say is that it works perfectly for me.
Not super interested in the “ur lazi, lul, h0ld dun a k3y 2 mv” responses received by others looking for this exact fix.
Hopefully this helps! Let me know and maybe I can help troubleshoot!
-Vall
Edit: added background section, removed problem section for clarity