Sleeping Spell
Moderator: Cheaters
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Sleeping Spell
Hey everyone, Well I would like to ask for a sleeping spell. Well first of all its a self casting spell, And when casted the casting unit will play the death animation, unable to move and be healing at about 1% health a second.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Sleeping Spell
Basically all you really need to do is make the Sleep spell from Dreadlord, remove some of the targets so its only castable on self. Then create a trigger for whatever, to increase life of casting unit like so.
Set life of Casting unit = (Life of casting unit) + (max life of casting unit/100)
Set life of Casting unit = (Life of casting unit) + (max life of casting unit/100)
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Sleeping Spell
Well I have already tried something like that but there are two main problems,
1) I want it so that it is X% hp per second,
2) I want it so that the unit can stop when someone attacks them (If this is to hard then maybe they can stop by themselves)
1) I want it so that it is X% hp per second,
2) I want it so that the unit can stop when someone attacks them (If this is to hard then maybe they can stop by themselves)
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Sleeping Spell
I dont think thats quite what he wants. You had it right with the self-sleep, but he also wants it so that when its casted on the unit, that the unit goes and plays the units Death Animation.
Also, he wants it so when hes laying on the ground, he gets automatically healed 1% of life per sec the duration of the sleep. Then when he wants it so hes able to wake up on his own as well instead of just the time expiring or being attacked.
Code: Select all
Animation - Play (Casting unit)'s death animation
Also, he wants it so when hes laying on the ground, he gets automatically healed 1% of life per sec the duration of the sleep. Then when he wants it so hes able to wake up on his own as well instead of just the time expiring or being attacked.
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am