HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Reduce movement speed via Triggers

08-06-2006, 02:25 AM#1
moyack
Hi:

I need to change the speed movement of a unit via triggers, I was looking the unit trigger:
Slow unit via trigger:
Slow my unit with triggers
Events
Conditions
Collapse Actions
Unit - Set (Last created unit) movement speed to 10.00
But it does'nt have any effect over the unit.

Is there any other way to do that?? Thanks.
08-06-2006, 02:50 AM#2
Wyvernoid
Well, don't you think that 10 is too slow ;-) The slowest unit I've ever seen has a speed of 180(the Prison Wagon and Kodo Beast Riderless). And the suggested lowest speed is 150. But Ancients move at a much lower speed of 40. Try 40 and if it's still wrong try 150.
08-06-2006, 03:00 AM#3
moyack
The number that I put in the trigger was only as an example, but I need to reduce the speed really slow. The problem is, when this trigger is applied, it doesn't work. I don't know why. Probably for the limit in slow movement??

I'll try with 150.
08-06-2006, 03:05 AM#4
shadow1500
You need to change the minimum unit speed in either gameplay constants or the unit editor.
08-06-2006, 03:07 AM#5
PipeDream
Altering movement speed through the move speed natives is not recommended. It bugs out with auras and all sorts of other stuff. Save yourself the headache and use abilities.
08-06-2006, 03:50 AM#6
moyack
So... definitely it's not a good idea. Ok, I'll try to figure it out this issue.
08-06-2006, 03:55 AM#7
Rising_Dusk
Add a self-affecting tornado slow aura changed per your needs to the target via triggers.
That's the easiest way to achieve the effect in my honest opinion.
08-06-2006, 02:58 PM#8
emjlr3
add a disabled spellbook with self targetable enurance aura, and that should do the trick for you
08-06-2006, 06:43 PM#9
oNdizZ
isnt just using the item ability "Item Move Speed Bonus" easier? humm, thats not a percentage though.
08-06-2006, 09:31 PM#10
moyack
Heyy guys, thanks for your help. I've changed the movement speed via unit editor to 60 but definitely, the speed must be between 150 ~ 350 more or less.

I'll try it with dummy abilities and any progress I'll post here.
08-06-2006, 10:06 PM#11
The)TideHunter(
I would say tornado aura definatly, thats 1 of the only auras that stacks.
08-07-2006, 02:35 AM#12
EveningStar
SetUnitMoveSpeed() changes your "default" movement speed. It is in no way bugged. I've just confirmed it by testing it with unholy aura and boot of speed. So if you need to restore the unit's original movement speed (with bonus applied), then you just need to use "SetUnitMoveSpeed(unit, GetUnitDefaultMoveSpeed(u))" to restore the unit's original movement speed.
08-07-2006, 04:23 AM#13
moyack
I've tried this function and it only work between a range of values (150 ~ 350) I need to slow the unit to 60 or less, a very slow movement, and this function just doesn't work with those values.
08-07-2006, 05:47 AM#14
The_AwaKening
Quote:
Originally Posted by EveningStar
SetUnitMoveSpeed() changes your "default" movement speed. It is in no way bugged. I've just confirmed it by testing it with unholy aura and boot of speed. So if you need to restore the unit's original movement speed (with bonus applied), then you just need to use "SetUnitMoveSpeed(unit, GetUnitDefaultMoveSpeed(u))" to restore the unit's original movement speed.

You're wrong. It doesn't happen all the time, but I tried using that function myself a while back and it does bug periodically. Stick to using abilities like the others said.
08-07-2006, 06:29 AM#15
Wyvernoid
Quote:
Originally Posted by shadow1500
You need to change the minimum unit speed in either gameplay constants or the unit editor.
Why, 'think he wrote something definitely right, why not consider changing the "Movement - Unit Minimum Speed" to 60 and then use the trigger/jass function?

BTW: I've never encountered the bug ;-)