- Joined
- Mar 21, 2007
- Messages
- 155
hi, i am making an area of my map where it is desert. and when a unit enters the desert, thier movement speed is slowed, they take 1 damage per 2 seconds, and they have a special effect on them. and when they come out of the desert, all of that goes away within 30 seconds (or somthing like that)
but i confuzzle myself every time i try this, these are my current triggers, they will hold if only 1 unit is in the desert, but more than 1 and i think it could get messy, can anyone see a solution??
ty
but i confuzzle myself every time i try this, these are my current triggers, they will hold if only 1 unit is in the desert, but more than 1 and i think it could get messy, can anyone see a solution??
-
desert
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in desert1 <gen>) and do (Actions)
-
Loop - Actions
- Unit - Remove All buffs from (Picked unit)
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing 1.00 damage of attack type Chaos and damage type Normal
- Unit - Set (Picked unit) movement speed to 100.00
- Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\Doom\DoomTarget.mdl
- Wait 1.80 seconds
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in desert1 <gen>) and do (Actions)
-
Events
-
desert canceling
-
Events
- Time - Every 30.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Wind Running ) Equal to False
-
Then - Actions
- Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
ty
Last edited by a moderator: