- Joined
- Sep 11, 2013
- Messages
- 467
Greetings!
I want to create a passive spell for my tower which reduce basic attack damage of enemy units with 75% when attack the enemy with normal hit. Also, my tower must have a 35% chance to proc this passive on each attack and i want the spell to be MUI. debuff duration must be 15 seconds.
I tried to make it alone, but I am not sure if i did good..
Because my dummy unit do not have big vision (150), when the tower attack a running target, and the target go on fog of war, the dummy will not proc his spell..
I don't want to make huge vision for my dummy because dummy share his vision with me and this will be annying for players. (is like cheating..)
What is the best way to make this type of spell?
I want to create a passive spell for my tower which reduce basic attack damage of enemy units with 75% when attack the enemy with normal hit. Also, my tower must have a 35% chance to proc this passive on each attack and i want the spell to be MUI. debuff duration must be 15 seconds.
I tried to make it alone, but I am not sure if i did good..
-
Untitled Trigger 002
-
Events
-
Unit - A unit Takes damage
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Damage source)) Equal to Tower
-
-
-
-
Actions
-
Game - Display to (All players) the text: 1
-
Set VariableSet IntegerPurgeChange = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IntegerPurgeChange Less than or equal to 35
-
-
Then - Actions
-
Game - Display to (All players) the text: 2
-
Set VariableSet CrippleCursePoint = (Position of (Damage source))
-
Unit - Create 1 Wisp Cripple/Curse Dummy for (Owner of (Damage source)) at CrippleCursePoint facing (Position of (Damage Target))
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Cripple X to (Last created unit)
-
Unit - Set level of Cripple X for (Last created unit) to 1
-
Unit - Order (Last created unit) to Undead Necromancer - Cripple (Damage Target)
-
Special Effect - Create a special effect attached to the origin of (Damage Target) using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_CrippleCursePoint)
-
-
Else - Actions
-
-
-
Because my dummy unit do not have big vision (150), when the tower attack a running target, and the target go on fog of war, the dummy will not proc his spell..
I don't want to make huge vision for my dummy because dummy share his vision with me and this will be annying for players. (is like cheating..)
What is the best way to make this type of spell?