- Joined
- Sep 11, 2013
- Messages
- 560
Greetings!
I tried to create a passive spell (just level 1) that has 75% chance on each attack to proc Envenomed Spears on enemy units in order to poison them with damage over time and with slow movement speed over time.
I had 2 ideas, but non of them work as I wanted..
I set dummy unit every animation to 0 seconds, but IDK why.. the dummy unit attack with delay approx 0.35 seconds. Weapon type is set to instant.
That ~ 0.35 sec delay is the problem and I don't know how to fix that.
Here I tried a new strategy, but did not work and idk why. (nothing happen)

The help will be appreciated!
I tried to create a passive spell (just level 1) that has 75% chance on each attack to proc Envenomed Spears on enemy units in order to poison them with damage over time and with slow movement speed over time.
I had 2 ideas, but non of them work as I wanted..
-
All Critical Strike Strygwyr
-

Events
-


Unit - A unit Takes damage
-
-

Conditions
-


(Unit-type of (Damage source)) Equal to Strygwyr X
-


(Damage From Normal Attack) Equal to True
-


(Random integer number between 1 and 100) Less than or equal to 75
-
-

Actions
-


Set VariableSet AttackSlowPointStryg = (Position of (Damage source))
-


Unit - Create 1 Wisp Attack Slow Stryg Dummy for (Owner of (Damage source)) at AttackSlowPointStryg facing (Position of (Damage Target))
-


Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-


Unit - Add Envenomed Spears X to (Last created unit)
-


Unit - Order (Last created unit) to Attack Once (Damage Target)
-


Custom script: call RemoveLocation(udg_AttackSlowPointStryg)
-
-
-
Untitled Trigger 002
-

Events
-


Unit - A unit Takes damage
-
-

Conditions
-


(Unit-type of (Damage source)) Equal to Wisp Attack Slow Stryg Dummy
-
-

Actions
-


Event Response - Set Damage of Unit Damaged Event to 0.00
-


Unit - Remove (Damage source) from the game
-
-
I set dummy unit every animation to 0 seconds, but IDK why.. the dummy unit attack with delay approx 0.35 seconds. Weapon type is set to instant.
That ~ 0.35 sec delay is the problem and I don't know how to fix that.
Here I tried a new strategy, but did not work and idk why. (nothing happen)
-
Try 2
-

Events
-


Unit - A unit Takes damage
-
-

Conditions
-


(Unit-type of (Damage source)) Equal to Strygwyr X
-


(Damage From Normal Attack) Equal to True
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Random integer number between 1 and 100) Less than or equal to 75
-
-



Then - Actions
-




Game - Display to (All players) the text: enabled
-




Unit - For (Damage source), Ability Envenomed Spears X , Disable ability: False, Hide UI: False
-
-



Else - Actions
-




Unit - For (Damage source), Ability Envenomed Spears X , Disable ability: True, Hide UI: True
-




Game - Display to (All players) the text: disabled
-
-
-
-
The help will be appreciated!