- Joined
- Sep 11, 2013
- Messages
- 467
Greetings!
I want to create a passive ability just lvl 1 that has 75% chance on each attack to slow the enemy movement speed by 35%(non-stacking) for 0.5 seconds.
After few attepts, I managed to do something but is bugged and with problems and I need your help.
So here is what I did:
And the first trigger will hit the target with a 0.1 sec delay and I can saw how my unit is hitted twice instead of once. Once by Rifleman and once by dummy..
I wish to slow the enemy with 1 visual hit per hit not with 2 visual hits per hit. (if that makes sense)
Maybe there is a better way to make this passive, but i need your help to find that!
I'll attach my map with the problem here.
The help will be appreciated!
I want to create a passive ability just lvl 1 that has 75% chance on each attack to slow the enemy movement speed by 35%(non-stacking) for 0.5 seconds.
After few attepts, I managed to do something but is bugged and with problems and I need your help.
So here is what I did:
-
Attack Slow Chance
-
Events
-
Unit - A unit Takes damage
-
-
Conditions
-
(Unit-type of (Damage source)) Equal to Rifleman
-
(Random integer number between 1 and 100) Less than or equal to 75
-
-
Actions
-
Game - Display to (All players) the text: asdasdasdf
-
Set VariableSet AttackSlowPoint = (Position of (Damage source))
-
Unit - Create 1 Wisp Attack Slow Dummy for (Owner of (Damage source)) at AttackSlowPoint facing (Position of (Damage Target))
-
Set VariableSet AttackSlowDummy = (Last created unit)
-
Unit - Add a 0.30 second Generic expiration timer to AttackSlowDummy
-
Unit - Add Slow Poison GOOD to AttackSlowDummy
-
Unit - Order AttackSlowDummy to Attack Once (Damage Target)
-
Custom script: call RemoveLocation(udg_AttackSlowPoint)
-
-
-
Untitled Trigger 002
-
Events
-
Unit - A unit Takes damage
-
-
Conditions
-
(Unit-type of (Damage source)) Equal to Wisp Attack Slow Dummy
-
-
Actions
-
Game - Display to (All players) the text: zz
-
Unit - Kill (Damage source)
-
-
And the first trigger will hit the target with a 0.1 sec delay and I can saw how my unit is hitted twice instead of once. Once by Rifleman and once by dummy..
I wish to slow the enemy with 1 visual hit per hit not with 2 visual hits per hit. (if that makes sense)
Maybe there is a better way to make this passive, but i need your help to find that!
I'll attach my map with the problem here.
The help will be appreciated!