- Joined
- Jan 21, 2009
- Messages
- 57
I made a trigger that, when a skill (infect) is casted upon a unit it will "infect" them and after 10 seconds the owner of the casting unit gains control over the unit and if its a hero they get defeated aswell.
Heres the Trigger, the skill is based from Bloodlust
- SuperCoke
Heres the Trigger, the skill is based from Bloodlust
-
Infect Unit
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Infect
-
-

Actions
-


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



If - Conditions
-




((Target unit of ability being cast) is A Hero) Equal to True
-
-



Then - Actions
-




Game - Display to (All players) the text: (|cffffcc00 + ((Name of (Owner of (Target unit of ability being cast))) + 's|r |cff808040hero has been infected! He will lose all control of his Hero in 10 seconds|r))
-




Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Virus suc...
-




Wait 10.00 seconds
-




Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Unit succ...
-




Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
-




Unit - Add Infected to (Target unit of ability being cast)
-




Unit - Add Infect to (Target unit of ability being cast)
-




Game - Display to (All players) the text: (|cffff0000 + ((Name of (Owner of (Target unit of ability being cast))) + has been infected and has been defeated.|r))
-




Game - Defeat (Owner of (Target unit of ability being cast)) with the message: You have been Infec...
-
-



Else - Actions
-




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





If - Conditions
-





Then - Actions
-






Game - Display to (Player group((Owner of (Target unit of ability being cast)))) the text: |cffffcc00One of yo...
-






Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Virus suc...
-






Cinematic - Ping minimap for (Player group((Owner of (Target unit of ability being cast)))) at (Position of (Target unit of ability being cast)) for 2.00 seconds
-






Wait 10.00 seconds
-






Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Unit succ...
-






Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
-






Unit - Add Infected to (Target unit of ability being cast)
-






Unit - Add Infect to (Target unit of ability being cast)
-
-





Else - Actions
-
-
-
-
-
-
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
-
Custom Script: call SetUnitOwner( GetSpellTargetUnit(), GetOwningPlayer(GetSpellAbilityUnit()), true )
- SuperCoke

