• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Dynamic Hotkeys

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,223
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