Woah! I didn't mean any harm here, I was just only thinking that there is some script that handles the control group script, it is important to my project if I can get this to work, so it isn't a waste of time to me.
Because it's no feature of Jass. Jass is the script language of maps, managing map specific events. It does not contain the internal Wc3 mechanics. You also won't find how the graphics are rendered for example.
You can still use the way Diablo Builder uses. AFAIK its resources are free to use, you may take a look at them.
It simply ask you to press Ctrl and setups the hotkeys for belt slots. Simple but yet good way.
Why do you even need this? Tell us your problem and we can solve it differently. I also had this kind of issue, but I went the other way around.
And F keys aren't that good:
- it removes the possibility of heroes
- it's limited to 5
- if you are used the whole life to numbers for group it's hard to adapt, plus the autosave button is dangerously close
- how you would even detect when the group is being memorized (note that this must be done in fraction of second)
I'm sorry, I should have been more clear. This is for my Orpg project, I am using DGUI to create action bars, and I'm having difficulty finding a way to actually use them easily, i.e 1 through 0, but as it seems you cannot add units to control groups manually with Jass. So we are discussing an alternative to this.
Basically I want when you press a key linked to that action in the action bar it runs the code. Just like other MMO's. I though control groups would be perfect, and I can still use it, but it might be a hassle for players to constantly push cntrl when they add spells to the bar.
I was talking about F keys before because I had a system before that had the action bar be the Hero UI on the left side, and players could press f1 through f5 to use them. But I'm curious if you hide the UI can you still press f1 through f5 to select the "hero dummy" so I can call the code. If I can, I can just have dummy hero's linked to each action in the bar and players can use f1 through f10 to cast spells.
I think that's because you thought that when you change the texture of a button a new unit is created. Well, that's not the case; the unit remains the same, only the texture is changed (Grab Tree trick).
I'm not reputation hungry, so it doesn't matter. I'm happy cuz I could help someone else
🔨 Hive's 3D Viewer has been updated! 🔨 It now supports MDX1100 which should fix a lot of issues when viewing HD models in our 3D Viewer. We encourage you to check it out for yourself and report any issues you find in the Site Discussion board.