zero9x
Active Member
- Reaction score
- 1
Hey guys, i have soooo many problems with spells using dummy to cast it, for example like this:
When you attack, you has 17% chance to move attacked unit to you and slow it.
Like this, but now, it can only slow or move attacked unit, not both of them. Can anyone answer me, how to fix it (
When you attack, you has 17% chance to move attacked unit to you and slow it.
Trigger:
- Events
- Unit - A unit Is attacked
- Conditions
- ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to (==) True
- (Level of Hook Strike for (Attacking unit)) Greater than (>) 0
- Actions
- Set AALoc1 = (Position of (Attacking unit))
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random percentage) Less than or equal to (<=) (((Real((Level of Hook Strike for (Attacking unit)))) x 0.00) + 17.00)
- Then - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Attacked unit) is A structure) Equal to (==) True
- Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (30.00 + (10.00 x (Real((Level of Hook Strike for (Attacking unit)))))) damage of attack type Hero and damage type Normal
- Else - Actions
- Unit - Create 1 Craggy Exterior Dummy for (Owner of (Attacking unit)) at AALoc1 facing Default building facing (270.0) degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Hook Strike Slow to (Last created unit)
- Unit - Order (Last created unit) to Human Sorceress - Slow (Attacked unit)
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (30.00 + (10.00 x (Real((Level of Hook Strike for (Attacking unit)))))) damage of attack type Hero and damage type Normal
- Unit - Move (Attacked unit) instantly to AALoc1
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Custom script: call RemoveLocation(udg_AALoc1)
- Set AALoc1 = (Position of (Attacking unit))
Like this, but now, it can only slow or move attacked unit, not both of them. Can anyone answer me, how to fix it (