• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Dynamic Hotkeys

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,195
Is it possible to dynamically set hotkeys for abilitys depending on there position in the UI?
I do not think it is possible. I do not know of any cases where hotkey is dynamically set. Command card position can be estimated to some extent based on the rules that govern button precedence.

You can alter hotkeys and button positions using the custom hotkey file but that is not dynamic or shared between players.
 
It isn't possible directly, but some people have implemented this by making an ability for each buttonpos/hotkey. For example, you could make a copy of each ability: one with the hotkey "Q", one with "W", one with "E", etc.

If you have a map with a reasonable amount of abilities per unit (1-5) and not too many abilities in total, this is pretty easy to implement. If you've triggered your spells, just register when any of those abilities are cast rather than just a single one. Similarly, anywhere you reference that particular single ability, you'll have to update it to work with any of the hotkey-copies.
 
Status
Not open for further replies.
Top