- Joined
- Aug 3, 2011
- Messages
- 220
i wanna to make a life Drain that can move when moving , but ....
Trigger 1 =
http://www.servimg.com/image_preview.php?i=33&u=16679454
Trigger picture 2 :
http://www.servimg.com/image_preview.php?i=34&u=16679454

Trigger 1 =
-
Mosquito Brother skill 1
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Blood Drain
-
-

Actions
-


Set Draining_Caster = (Casting unit)
-


Set Draining_Target = (Target unit of ability being cast)
-


Lightning - Create a Drain Life lightning effect from source (Position of Draining_Caster) to target (Position of Draining_Target)
-


Set Draining_Lightning = (Last created lightning effect)
-


Lightning - Change color of Draining_Lightning to (1.00 0.00 0.00) with 1.00 alpha
-


Trigger - Turn on Mosquito Brother Skill1 <gen>
-


Trigger - Run Mosquito Brother Skill1 <gen> (checking conditions)
-


Wait 4.00 seconds
-


Trigger - Turn off Mosquito Brother Skill1 <gen>
-


Lightning - Destroy Draining_Lightning
-
-
-
Mosquito Brother Skill1
-

Events
-


Time - Every 0.20 seconds of game time
-
-

Conditions
-

Actions
-


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



If - Conditions
-




(All units of (Units owned by (Owner of Draining_Caster) of type |cff540081Mosquito Brother|r) are in (Region centered at (Position of Dragon_Fist_Caster) with size (450.00, 450.00))) Equal to True
-
-



Then - Actions
-




Lightning - Move Draining_Lightning to source (Position of Draining_Caster) and target (Position of Draining_Target)
-




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





If - Conditions
-






((Triggering unit) is Magic Immune) Equal to False
-






(Draining_Caster is alive) Equal to True
-






(Draining_Target is alive) Equal to True
-
-





Then - Actions
-






Special Effect - Create a special effect attached to the chest of Draining_Caster using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-






Unit - Cause Draining_Caster to damage Draining_Target, dealing (15.00 + (5.00 x (Real((Level of Blood Drain for Draining_Caster))))) damage of attack type Spells and damage type Magic
-






Special Effect - Destroy (Last created special effect)
-






Special Effect - Create a special effect attached to the chest of Draining_Target using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-






Unit - Set life of Draining_Caster to ((Life of Draining_Caster) + (15.00 + (5.00 x (Real((Level of Blood Drain for Draining_Caster))))))
-






Special Effect - Destroy (Last created special effect)
-
-





Else - Actions
-
-
-



Else - Actions
-
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






(All units of (Units owned by (Owner of Draining_Caster) of type |cff540081Mosquito Brother|r) are in (Region centered at (Position of Dragon_Fist_Caster) with size (450.00, 450.00))) Equal to False
-






((Triggering unit) is Magic Immune) Equal to True
-
-
-
-



Then - Actions
-




Lightning - Destroy Draining_Lightning
-




Trigger - Turn off (This trigger)
-




Special Effect - Create a special effect attached to the chest of Draining_Caster using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-




Special Effect - Destroy (Last created special effect)
-




Special Effect - Create a special effect attached to the chest of Draining_Target using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
-




Special Effect - Destroy (Last created special effect)
-
-



Else - Actions
-
-
-
http://www.servimg.com/image_preview.php?i=33&u=16679454
Trigger picture 2 :
http://www.servimg.com/image_preview.php?i=34&u=16679454
Last edited:

