2. Create a trigger and add these units into control groups 1,2,3,4
3. Follow the trigger below and do this for each of the other units each for WASD
Press W
Events
Unit Selection - Zealot [56.03, 32.14] is Selected by player Any Player
Local Variables
Conditions
Actions
Variable - Set W[(Triggering player)] = true
Unit Selection - Deselect (Triggering unit) for player triggering player
4. Make a movement trigger with periodic event that checks each of these true false statements and moves your unit by polar offsets. Then set all 4 variables to false
5. Set your hotkeys during the game, for selecting control groups 1,2,3,4 to W,A,S,D respectivefully.
AND BAM NO LAG!!!!
EDIT:
Theory: Its lagless alright but after some testing you still can't press 2 keys at the same time so I am going to add a dumby ability to the W and S units while in the hotkeys change control group for W and S with alternate A and D respectivefully. I'll report back my results.
EDIT 2:
Seems very responsive but havn't figured out how to make 2 keys work at the same time yet. There might be a way either with combining shift + control or other hotkeys could possible make this work with dummy abilities. I'll keep testing when something strikes me.
Are you sure, this is lagless? Afaik the unit selection event in multiplayer has some significant delay as well. Did you test it in Battlenet with multiple players?
Seems very responsive but havn't figured out how to make 2 keys work at the same time yet. There might be a way either with combining shift + control or other hotkeys could possible make this work with dummy abilities. I'll keep testing when something strikes me.
You could use groups 5-0 for those. Example:
1: move up
2: move down
3: move right
4: move left
5: move up+right
6: move up+left
7: move down+right
8: move down+left
9: jump
0: lie down
Great find (yeah, the solution is pretty simple, but you were the first to notice ;P).
If you want even more user-friendly control, then use the number pad at the right of the keyboard (still leave letter options for laptop users).
Lol, that was pretty simple, too, but it's goddamn effective. Some keyboards even have arrows on the number pad numbers, and you wouldn't need to touch any hotkey xDDD.
So, the ideal result is the user playing abilities with letters and movement with the number pad.
what about combining the two concepts of using hotkeys and trigger events? So use what you have here for the 'no lag' and use the 'Key pressed' event to back it up in order to keep track of what keys are pressed down/up so you can have that 8-way directional.
Also, does using the ctrl group keys follow the dummy units giving it that stutter?
Oh, one more thing. Is there a different in delay between control groups and abilities? if not then you can still have dummy abilities that apply buffs which can be constantly checked by that movement trigger.
Afaik unit-selection event suffers internet lag.
I used it in a Koth Obs map for the observer interface and it has delay. Probably just as much as button presses.
I must again say that bnet lag isn't constant. The lag may increase/decrease depending on the number of players, the quality of their internet connection and everyone's connection to the server.
HOLY CRAP!! THIS IS INCREDIBLE!!!!!!
I just figured it out 5 mins ago!!
1. Make 4 Units on the map
2. Create a trigger and add these units into control groups 1,2,3,4
3. Follow the trigger below and do this for each of the other units each for WASD
Press W
Events
Unit Selection - Zealot [56.03, 32.14] is Selected by player Any Player
Local Variables
Conditions
Actions
Variable - Set W[(Triggering player)] = true
Unit Selection - Deselect (Triggering unit) for player triggering player
4. Make a movement trigger with periodic event that checks each of these true false statements and moves your unit by polar offsets. Then set all 4 variables to false
5. Set your hotkeys during the game, for selecting control groups 1,2,3,4 to W,A,S,D respectivefully.
AND BAM NO LAG!!!!
EDIT:
Theory: Its lagless alright but after some testing you still can't press 2 keys at the same time so I am going to add a dumby ability to the W and S units while in the hotkeys change control group for W and S with alternate A and D respectivefully. I'll report back my results.
EDIT 2:
Seems very responsive but havn't figured out how to make 2 keys work at the same time yet. There might be a way either with combining shift + control or other hotkeys could possible make this work with dummy abilities. I'll keep testing when something strikes me.
that requires every person to change the hot keys to wasd for control groups? seems a bit unrealistic
@nevjmac: Go
it could work if you change the hotkey in the text module
Interesting.
Are you sure, this is lagless? Afaik the unit selection event in multiplayer has some significant delay as well. Did you test it in Battlenet with multiple players?
You could use groups 5-0 for those. Example:
Great find (yeah, the solution is pretty simple, but you were the first to notice ;P).
If you want even more user-friendly control, then use the number pad at the right of the keyboard (still leave letter options for laptop users).
Lol, that was pretty simple, too, but it's goddamn effective. Some keyboards even have arrows on the number pad numbers, and you wouldn't need to touch any hotkey xDDD.
So, the ideal result is the user playing abilities with letters and movement with the number pad.
@gamfvr: Go
what about combining the two concepts of using hotkeys and trigger events? So use what you have here for the 'no lag' and use the 'Key pressed' event to back it up in order to keep track of what keys are pressed down/up so you can have that 8-way directional.
Also, does using the ctrl group keys follow the dummy units giving it that stutter?
Oh, one more thing. Is there a different in delay between control groups and abilities? if not then you can still have dummy abilities that apply buffs which can be constantly checked by that movement trigger.
Afaik unit-selection event suffers internet lag.
I used it in a Koth Obs map for the observer interface and it has delay. Probably just as much as button presses.
I must again say that bnet lag isn't constant. The lag may increase/decrease depending on the number of players, the quality of their internet connection and everyone's connection to the server.
@DrHu: Go
once you add one key event it starts lagging, So try to avoid even using one of those ugly bastards.