Dark Ritual
Events
Unit - A unit Starts the effect of an ability
Conditions
((Casting unit) is A Hero) Equal to True
(Ability being cast) Equal to <Your ability here>
Actions
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Kill (Target unit of ability being cast)
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 30.00)%
Code:Dark Ritual Events Unit - A unit Starts the effect of an ability Conditions ((Casting unit) is A Hero) Equal to True (Ability being cast) Equal to <Your ability here> Actions Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl Special Effect - Destroy (Last created special effect) Unit - Kill (Target unit of ability being cast) Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl Special Effect - Destroy (Last created special effect) Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 30.00)%
Unit - Set mana of (Casting unit) to ((Hitpoints of (Target unit of ability being cast)) * .30 + (Mana of (Casting unit)))
Comment - Just this line right above here needed to be changed ^^
I'm sure that you should be able to set it to target not undead. Set it so it can target organic units. Anyways, Kiddo and perkeyone are just about right. It is based on the hp of the unit it's casted on.
Dark Ritual
Events
Unit - A unit Starts the effect of an ability
Conditions
((Casting unit) is A Hero) Equal to True
(Ability being cast) Equal to Animate Dead
Actions
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Kill (Target unit of ability being cast)
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Set mana of (Casting unit) to ((Hitpoints of (Target unit of ability being cast)) * .30 + (Mana of (Casting unit)))