• 🏆 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!

[Solved] Change hotkeys with Triggers?

Status
Not open for further replies.
Level 6
Joined
Oct 1, 2012
Messages
166
Heloes, Hive Workshop!
I'm trying to make an action RPG, but I have one simple problem. I want to make custom spells, all with grid-located hotkeys (q, w, e, r for top row, etc.). Because my spells are going to be customly chosen, every free space on the grid on the interface can have any spell, so making fixed hotkeys isn't logical. Is there any way to change a hotkey via triggering, maybe JASS (script would be handy :) ), so I won't have to make multiple copies of same spell just for them to have different hotkeys?
With this question comes another - is there a way to customize icon's location on interface's grid via triggers (or, once again, JASS maybe)?
I didn't find any such question on google, so I assumed there's no in here either.
Thanks for the reply :)
 
Level 7
Joined
Nov 15, 2009
Messages
225
No you can't, but theres a way around this.

You coul copy and paste your spells and changing the hotkey for every situation.
So when the player chooses a spell you simply need to add the right one. :/

Or if you are mad or insane (or even worse), create dummy spells for each hotkey and cast the saved spell for your hotkey.^^
But I don't really think that this will be a great idea.. xD
 
Level 6
Joined
Oct 1, 2012
Messages
166
Well, okay guys. It'll be only 5 possible places for each spell, so making five copies isn't much, I just wanted to make the map weigh less.
Thanks very much :)
 
Status
Not open for further replies.
Top