- Joined
- May 29, 2013
- Messages
- 1,566
I'm trying to make a Fear spell that makes an enemy unit run out of control for a duration of time and prevents it from attacking and casting spells.
I absolutely suck at making triggers, so I've tried to make it as simple as possible. Anyway, I based my custom Fear spell on Drunken Haze, since it has an option to prevent attacks and spells (like Silence).
I want the targeted enemy unit(s) to run around, so I made a trigger that adds the Tornado Wander ability (with edited AoE) to all units that have the custom Fear buff (edited Drunken Haze buff). I know adding the Tornado Wander ability turns the unit's collision off, so I turn it back on in a trigger.
The problem is, when I add the Tornado Wander to the enemy units, they immediately start to follow my units, even though they can't do anything because their attacks and abilities are disabled.
Why does this happen, and how can I make them run around without following my units?
I tried this but it didn't work.
I absolutely suck at making triggers, so I've tried to make it as simple as possible. Anyway, I based my custom Fear spell on Drunken Haze, since it has an option to prevent attacks and spells (like Silence).
I want the targeted enemy unit(s) to run around, so I made a trigger that adds the Tornado Wander ability (with edited AoE) to all units that have the custom Fear buff (edited Drunken Haze buff). I know adding the Tornado Wander ability turns the unit's collision off, so I turn it back on in a trigger.
The problem is, when I add the Tornado Wander to the enemy units, they immediately start to follow my units, even though they can't do anything because their attacks and abilities are disabled.
Why does this happen, and how can I make them run around without following my units?
I tried this but it didn't work.
-
FearWander
-
Events
-
Time - Every 0.25 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Drunken Haze) Equal to True)) and do (Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by (Random real number between 200.00 and 400.00) towards (Random angle) degrees))
-
-
Last edited: