-ms / -movespeed

jig7c

Stop reading me...-statement
Reaction score
123
i need the code for -ms and/or -movespeed and it tells the movespeed of the unit...

too lazy to make it..
if anyone knows where it is.. tried searching for it | couldn't find it
 

Fire-Wolf

S.P.D Smoke Pot Daily, Legalize It!
Reaction score
54
Trigger:
  • Melee Initialization
    • Events
      • Player - Player 1 (Red) types a chat message containing -ms as An exact match
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: (String((Current movement speed of ("Your Unit Here"))))

EDIT: Got beaten down lol.
EDIT2: Maybe not lol that is not a trigger haha..
 

Romek

Super Moderator
Reaction score
963
Trigger:
  • MoveSpeed
    • Events
      • Player - Player 1 (Red) types a chat message containing -ms as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ms as An exact match
      • [Repeat for other players]
    • Conditions
    • Actions
      • Set TempGroup = (Units currently selected by (Triggering player))
      • Custom script: call DisplayTimedTextToPlayer(GetTriggerPlayer(), 0., 0., 5., "Movement speed of " + GetUnitName(FirstOfGroup(udg_TempGroup)) + ": " + R2S(GetUnitMoveSpeed(FirstOfGroup(udg_TempGroup))))
      • Custom script: call DestroyGroup(udg_TempGroup)


'TempGroup' is a Unit Group variable. If you use a different name, remember to change the 'udg_TempGroup' in the custom scripts.

There doesn't seem to be a GUI action for displaying a message to a single player without using a force, or getting the first unit in a unit group, which is a nuisance.
 

Fire-Wolf

S.P.D Smoke Pot Daily, Legalize It!
Reaction score
54
Mine is simpler lol. Although ours is very similar, but yours does unit groups, mine does a unit which he wants. And yours cleans up leaks, mine has none to clean lol.
 

Romek

Super Moderator
Reaction score
963
> mine does a unit which he wants.
Yours will only work for a 'specific unit', which I seriously doubt is what he wants. My one will display the movement speed of the selected unit.

> And yours cleans up leaks, mine has none to clean lol.
"(Player group((Triggering player)))" is a leak.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top