I'm making a map that includes custom heroes, that is to say a hero goes to a shop and 'buys' abilities. Problem is that it's impossible to set the hotkeys via object editor because hotkeys will end up overlapping. Ideally, I want whatever abilities a hero has to be set to Q W E R as hotkeys, like the LoL layout.
I've searched on the forums a lot and I've seen the solution of making 4 different abilities for each letter (Q W E R) and I've read a bit about Lua Object Generation, though I'm very unfamiliar with it, it seems to be a possible solution as well.
The solution I find most suitable however would be to use Jass or some variant to change the hotkey of the spell during the game using some bit of code. Problem is I just don't know how to retrieve the hotkey of an ability nor how to change it. I'm a beginner in Jass, though I'm not new to programming, so I can do the rest myself, I just don't know the actual functions I should be using. I don't even know if such a function exists, so I don't know if this is even possible. If someone could shed a little light on this, it would be greatly appreciated. Thanks.
I've searched on the forums a lot and I've seen the solution of making 4 different abilities for each letter (Q W E R) and I've read a bit about Lua Object Generation, though I'm very unfamiliar with it, it seems to be a possible solution as well.
The solution I find most suitable however would be to use Jass or some variant to change the hotkey of the spell during the game using some bit of code. Problem is I just don't know how to retrieve the hotkey of an ability nor how to change it. I'm a beginner in Jass, though I'm not new to programming, so I can do the rest myself, I just don't know the actual functions I should be using. I don't even know if such a function exists, so I don't know if this is even possible. If someone could shed a little light on this, it would be greatly appreciated. Thanks.