HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Slowing Units Speed

07-05-2004, 04:11 PM#1
nightterror
I have an a spell based off the serpent ward only it is firing cold arrows. What I want it to do is slow the units it attaks. Here is my trigger:

Code:
Event - A unit is attacked
Condition - Unit type of attacking unit = to frost ward
Actions - Unit set triggering unit movement speed to current movement speed of triggering unit - 150

This does not seem to work. I tried adding 150 to current speed and that does work as the untis speed up. Any thoughts?
07-05-2004, 04:40 PM#2
ChinShu
Quote:
Originally Posted by nightterror
I have an a spell based off the serpent ward only it is firing cold arrows. What I want it to do is slow the units it attaks. Here is my trigger:

Code:
Event - A unit is attacked
Condition - Unit type of attacking unit = to frost ward
Actions - Unit set triggering unit movement speed to current movement speed of triggering unit - 150

This does not seem to work. I tried adding 150 to current speed and that does work as the untis speed up. Any thoughts?


See if this works:

Event:
Unit - A unit is attacked

Condition:
(Attacked Unit) Equal to (Frost Ward)

Action:
Unit - Set (Attacking Unit) movement speed to (x)

I believe you just have the trigger a little mixed up. The game probably thinks that you want to alter the movement speed of the Serpent Ward, even though the ward cannot move. Since "Trigger unit" is pretty generic.

Hope this helps. :>
07-05-2004, 05:23 PM#3
GaDDeN
Why not just add frost attack to the ward itself?

Chinshu: No you mixed it up=) He said he wanted so when the wards attack somebody it should be slowed, ill quote:

Quote:
What I want it to do is slow the units it attaks. Here is my trigger:

BUT if you still want to do the thing by triggers (which u dont have to) you need to replace "triggering unit" with "attacked unit". Fixed one:

Code:
Event - A unit is attacked
Condition - Unit type of attacking unit = to frost ward
Actions - Unit set (attacked unit) movement speed to current movement speed of (attacked unit) unit - 150

Note: If you do this using your code, they will be slowed by 150 forever. You need to either use the "frost attack" ability, OR you have to remove the movement speed slow a few secs after. Or maybe it was intended to slow forever?

Did this help? For instant help in your problems, visit my new triggering forums! Link in my sig
07-05-2004, 10:06 PM#4
nightterror
I did not even think about adding a frost attack! Thanks man. And thank you for adding in the trigger anyway. These forums rock!