• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] About movement speed via triggers.

Status
Not open for further replies.
Level 4
Joined
Dec 10, 2008
Messages
59
Hi again.

I'm currently working on an aura that slows down the movement speed of various units in a 1000 AoE of the caster (think Degen Aura from DoTA)

problem is: i managed to slow everyone down yes, but even when the picked units are out of the AoE (meaning the picked units no longer have the buff; i used a check every second wait to make sure that the picked units no longer have the buff), their movement speed remains slowed.

I stored their DEFAULT (not CURRENT) as a variable, so that after they no longer have the buff, the movement speed gets reverted....however, this does not appear to be the case. instead, their movement speed REMAINS slowed.

Any1 can help?

my formula for the slow was:

current movespeed of the picked units - (minus) [40% x current movespeed of picked units]

Help is MUCH appreciated, thx in advance
 
Level 14
Joined
Jun 3, 2005
Messages
209
Firstly, would Endurance Aura with a negative speed value targeting enemies work better for you?

If a unit has 400 cms (current movement speed), and you slow it by 40%, the unit will now have 240 cms. If you speed it up by 40%, it will now have 336 cms.

One way to solve this would be to store the reduction value for each unit (in this case, 160), and add that (160) at the end to return to the original speed. Reverting to the default should also work (but then this aura could not be MUI) - if neither of these do then you should check if you're detecting the buff's removal correctly, and that you are storing variables correctly.

Another way would be to add the Slow Aura ability to each unit with 0 AoE; it doesn't have an icon and you can remove the ability/buff afterwards to undo the slow. This has the advantage of stacking with other slows, and can be removed instantly.

I hope some of this helps.
 
Level 4
Joined
Dec 10, 2008
Messages
59
Firstly, would Endurance Aura with a negative speed value targeting enemies work better for you?

If a unit has 400 cms (current movement speed), and you slow it by 40%, the unit will now have 240 cms. If you speed it up by 40%, it will now have 336 cms.

One way to solve this would be to store the reduction value for each unit (in this case, 160), and add that (160) at the end to return to the original speed. Reverting to the default should also work (but then this aura could not be MUI) - if neither of these do then you should check if you're detecting the buff's removal correctly, and that you are storing variables correctly.

Another way would be to add the Slow Aura ability to each unit with 0 AoE; it doesn't have an icon and you can remove the ability/buff afterwards to undo the slow. This has the advantage of stacking with other slows, and can be removed instantly.

I hope some of this helps.

Hmm, i understand now.

After checking the removal, i found out that i placed it on the wrong placement. Of course, now that you mentioned in, making the whole thing MUI would be much more convenient (for future use). I'll keep that in mind then.

Though i have another request: Could you elaborate what you meant in the Slow Aura part? maybe it's just me after a long day, but i don't seem to get it D=
 
Status
Not open for further replies.
Top