• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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 :)
 
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
 
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.
Back
Top