zero9x
Active Member
- Reaction score
- 1
I make a trigger like this:
"If you attacks a unit, if that unit has no nearby allied (375 AoE), then slow it 50%"
"Nvm, it worked xD"
"If you attacks a unit, if that unit has no nearby allied (375 AoE), then slow it 50%"
"Nvm, it worked xD"
Trigger:
- Events
- Unit - A unit Is attacked
- Conditions
- (Level of XXXX for Attacking Unit) Greater than (>) 0
- Actions
- Actions
- Set Temp_Point = (Position of Attacked Unit)
- Set Temp_Group = (Units within 350.00 of Temp_Point matching (((Matching unit) Not equal to (!=) Attacked Unit) and ((((Matching unit) is alive) Equal to (==) True) and (((Matching unit) belongs to an ally of (Owner of Attacked Unit)) Equal to (==) True))))
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in Temp_Group) Equal to (==) 0
- Then - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of Attacking Unit) at Temp_Point facing Default building facing (270.0) degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Add Slow to (Last created unit)
- Unit - Set level of Slow for (Last created unit) to (Level of XXXX for AttackingUnit)
- Unit - Order (Last created unit) to Human Sorceress - Slow Attacked Unit
- Else - Actions
- Custom script: call DestroyGroup (udg_Temp_Group)
- Custom script: call RemoveLocation(udg_Temp_Point)