Happysmiley
New Member
- Reaction score
- 22
Hi, I wanted to create an ability that deals damage and stuns and then regenerates X hp to the caster every second for 8 seconds.
I began basing the ability on Stormbolt, and modified damage and stun duration to an appropriate amount. Then I made 2 scripts to allow the caster to be healed. They are as follows:
Script 1.
(Enabled and Initially on)
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Heart and Steel
Actions
Trigger - Run Heart and Steel 2 <gen> (checking conditions)
Wait 8.00 seconds
Trigger - Turn off Heart and Steel 2 <gen>
Script 2.
(Enable, not initially on)
Events
Time - Every 1.00 seconds of game time
Actions
Unit - Set life of (Casting unit) to ((Life of Casting unit)) + (10 ((Real((Level of Heart and Steel for (Casting unit))))x 10.00)))
Could any1 tell me what I am doing wrong here?
Thanks on behalf, Happy
I began basing the ability on Stormbolt, and modified damage and stun duration to an appropriate amount. Then I made 2 scripts to allow the caster to be healed. They are as follows:
Script 1.
(Enabled and Initially on)
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Heart and Steel
Actions
Trigger - Run Heart and Steel 2 <gen> (checking conditions)
Wait 8.00 seconds
Trigger - Turn off Heart and Steel 2 <gen>
Script 2.
(Enable, not initially on)
Events
Time - Every 1.00 seconds of game time
Actions
Unit - Set life of (Casting unit) to ((Life of Casting unit)) + (10 ((Real((Level of Heart and Steel for (Casting unit))))x 10.00)))
Could any1 tell me what I am doing wrong here?
Thanks on behalf, Happy