- Joined
- Jun 15, 2018
- Messages
- 178
Hi, I've made a trigger but I'm not sure if it is properly made. Can someone make me sure?
Description:
Has a 15% chance to hurl a poisoned dagger with incredible force at an enemy, dealing x initial damage, and x damage every x seconds for x seconds. The poison slows the attack rate and movement speed of the enemy for a short duration.
Variables:
Temp_Unit - Unit Array
Custom_Value - Integer
Trigger:
Description:
Has a 15% chance to hurl a poisoned dagger with incredible force at an enemy, dealing x initial damage, and x damage every x seconds for x seconds. The poison slows the attack rate and movement speed of the enemy for a short duration.
Variables:
Temp_Unit - Unit Array
Custom_Value - Integer
Trigger:
-
Shadow Strike Dagger
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- IsDamageAttack Equal to True
- (DamageEventSource has an item of type Orb of Venom) Equal to True
- (DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True
- (DamageEventSource is A Hero) Equal to True
- (Random integer number between 1 and 7) Equal to 1
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Unit - Create 1 Dummy Unit for (Owner of DamageEventSource) at (Position of DamageEventTarget) facing Default building facing degrees
- Set VariableSet Custom_Value = (Custom value of (Last created unit))
- Set VariableSet Temp_Unit[Custom_Value] = (Last created unit)
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike DamageEventTarget
- Wait 1.00 seconds
- Unit - Remove Temp_Unit[Custom_Value] from the game
-
Events