Improved Spellcasting with AHK (Key Combos and Modifiers) and Full Controller Support
Tired of switching spell sets and having to change which set you’re using on the fly during combat? Look no further! This mod (AHK script) allows you to use a two-key sequence or key combinations to cast or simply switch between different spell sets with ease! This mod is actively being developed, and is the first to feature controller support!
Are you getting tired of switching spell sets and having to change which set you’re using on the fly during combat? Look no further! This mod (AHK script) allows you to use a two-key sequence or key combinations to cast or simply switch between different spell sets with ease! Three versions exist; in the basic version, tapping 1 and then 2 will cast the 2nd spell in your first set; similarly, 3 and 1 will cast the 1st spell in your 3rd set! In the modifier version, 1-4 will cast from the first spellset, holding ` while tapping 1-4 will cast from the second spell set, holding SHIFT while tapping 1-4 will cast from the third spell set, and holding SHIFT + TAB and tapping 1-4 will cast from the fourth spell set. Additionally, an “alternative” version exists, which allows you to hold ` and tap 1-4 to change which spell set you are using. Each version has some universal keybinds for convenience (instant mounts / broom, suspend hotkeys, quit program, etc.)
The aim of this mod is to be a more refined version of other similar mods, offering a sequential key combination version (1 then 3 for 3rd spell in 1st set, 4 then 1 for 1st spell in 4th set, etc.), a modifier key version (1-4, `+1-4, SHIFT+1-4, and SHIFT+TAB+1-4), and also an alternative version that allows the player to hold ` and tap 1-4 to quick change spell sets without having to use F keys, 5-8 keys, or the (inaccurate and frustrating) scroll wheel method. It is also the first mod of it’s kind for Hogwarts Legacy to feature full controller support!
To install and use the scripts, first you must install AutoHotKey by downloading the linked file (or under the “Required Mods” tab of this mod’s page), and following the on-screen installation dialogue prompts. From there, you’ll notice the .ahk files for this mod now have an icon other than the default white unknown filetype icon – you can simply double-click them to launch them and they should work.
To get the scripts working with a controller, follow these steps:
- Right-click Hogwarts Legacy in Steam, go to Properties, click on Controller, and in the Override dropdown, select “Enable Steam Input”
- Import the custom Steam Controller Configuration
- Apply the Configuration
- Launch the Base Version of this Mod
- Launch the Game
To use the mod on controller, hold RT, and then your four right-side buttons match with your spell sets and spells. This means (on XBox) that holding RT and double-tappying Y would cast the top spell of the top spell set, RT and A then B would be the right-side spell of the bottom spell set, etc. RT also acts as a modifier for the DPad, so RT + DPad Left is Ground Mount, RT + DPad Up is Flying Mount, and RT + DPad Right is Broom.
Update: A to-do list has been posted and stickied in the comments for this mod. Thanks for your patience!
Update: Removed any .exe files / .zip files containing .exes for safety purposes in alignment with guidelines. To run the scripts, you will need to install AutoHotKey v2.0. In the future, I may post external links to the pre-compiled binaries via GitHub. Happy modding!
Update: Controller Support has arrived!
Universal Keybinds (both Versions)
- SHIFT+F12 | Closes the Script
- SHIFT+F11 | Suspend All Hotkeys
- 0 Key | Instant Ground Mount
- – Key | Instant Flying Mount
- = Key | Instant Broom
Base Version
- Allows User to Define their own Key Combination Delay (how long the script listens after an initial 1-4 keypress for the second key in the combination)
- First Keypress identifies the Spell Set
- Second Keypress identifies the Spell in the specified Spell Set
- Full Controller Support
Modifier Version
- 1-4 is Spell Set #1’s casts
- ` + 1-4 is Spell Set #2’s casts
- SHIFT + 1-4 is Spell Set #3’s casts
- SHIFT + TAB + 1-4 is Spell Set #4’s casts
Alternative Version
- `+1 changes to First Spell Set
- `+2 changes to Second Spell Set
- `+3 changes to Third Spell Set
- `+4 changes to Fourth Spell Set