- Joined
- Sep 11, 2013
- Messages
- 391
Is possible to make this command for all units? [like in dota]
--- without jass !
--- without jass !
But that doesn't work as he wants movement speed of all units selected..Just make variable with arrays number the number of players and every time a player chooses a hero store the hero in the variable with index Number of (Owner of Hero). You will need this not only for the -ms command, but for many other things. Make this trigger for the command:
Event:
Player 1 (Red) types a chat message containing -ms as An exact match.
Player 1 (Red) types a chat message containing -movespeed as An exact match.
Condition:
(Number of units (Owned by Triggering Player) of type Hero) equal to 1
Action:
Game - Display to (Player group((Triggering player))) the text: Current movespeed of (Name of Hero[Number of Triggering Player] + is + String((Integer((Current movement speed of Hero[Number of Triggering Player]))))
Oops, well, pick every unit selected and display name and speed of picked unit.![]()
function GetForceOfPlayer takes player whichPlayer returns force
local force f = CreateForce()
call ForceAddPlayer(f, whichPlayer)
return f
endfunction