- Joined
- Feb 6, 2011
- Messages
- 177
okey brothers
i have tried to make the Lich's Dark Ritual Ability cast on alive units but it never worked from the spell itself
so i recreated it based on the sleep spell
and it works fine
i have tried to make the Lich's Dark Ritual Ability cast on alive units but it never worked from the spell itself
so i recreated it based on the sleep spell
and it works fine
-
-code Dark Ritual(Lich)
-
A unit Begins The Effect of An Ability
-
-Ability Being Cast is equal to Dark Ritual(lich)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Dark Ritual (Lich) for (Casting unit)) Equal to 1
-
-
Then - Actions
-
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + ((Life of (Target unit of ability being cast)) / 4.00))
-
Unit - Kill (Target unit of ability being cast)
-
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-
Floating Text - Create floating text that reads (String(((Integer((Life of (Target unit of ability being cast)))) / 4))) at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Wait 1.50 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Dark Ritual (Lich) for (Casting unit)) Equal to 2
-
-
Then - Actions
-
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + ((Life of (Target unit of ability being cast)) / 3.00))
-
Unit - Kill (Target unit of ability being cast)
-
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-
Floating Text - Create floating text that reads (String(((Integer((Life of (Target unit of ability being cast)))) / 3))) at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Wait 1.50 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Dark Ritual (Lich) for (Casting unit)) Equal to 3
-
-
Then - Actions
-
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + ((Life of (Target unit of ability being cast)) / 2.00))
-
Unit - Kill (Target unit of ability being cast)
-
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-
Floating Text - Create floating text that reads (String(((Integer((Life of (Target unit of ability being cast)))) / 2))) at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Wait 1.50 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Dark Ritual (Lich) for (Casting unit)) Equal to 4
-
-
Then - Actions
-
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + ((Life of (Target unit of ability being cast)) / 1.00))
-
Unit - Kill (Target unit of ability being cast)
-
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-
Floating Text - Create floating text that reads (String(((Life of (Target unit of ability being cast)) / 1.00))) at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Wait 1.50 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
-
-
-
-
-
-