Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
What is the best way to have an Item reduce the holder's movement speed by half? Is there a good way to do it in Object Editor, or would it have to be Triggers?
(Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
Actions
Unit - Set (Triggering unit) movement speed to ((Current movement speed of (Triggering unit)) / 2.00)
If you just want to do default movement speed then you can set it to default. That might be better in case the unit acquires the item while under a slow or something.
Or you can just make an item ability that gives movement speed bonus -0.5 in %.
I think that should do better.
In order to enter a negative value -> You have to allow negative values in the WE preferences. THen - Shift+Click the field you want to enter a negative and it works... mostly.
Rather than doing a periodic loop, you should use the event "Unit drops item" and check to see if the item is the flag. If the unit picks up the flag half its movement speed, if a unit drops the flag then reset it back to normal.
Custom script: call DestroyGroup(udg_<Your Group Variable>)
Where you set the group to a variable first, then destroy it after use.
However, if you do as Berbanog says and use the Unit Drops Item event, you won't need to do this.
Also, why use a Trigger Turn On/Off with a loop, when you can just Run the trigger?
From what I see, you turn a trigger on, which then runs its first loop, then turns itself off. Why not just tell your first trigger to simply run the other?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.