emobroken22
Member
- Reaction score
- 3
first of all, i made a spell like life drain...
but unlike the original spell, its doesnt need to be channeled...but can be canceled when the target unit gets too far (certain distance).it can also target allies(which in this case the caster will give life to the target).
my problem is that i cant stop the spell when i want to, so my hero sometimes end up killing himself when giving life to his allies...is there a way to give an ability to stop the not so channeling spell(replacing the initial spell's icon and position)?
but i tried replacing the ability and it ends up canceling both the trigger and the spell...
HELP!!!!!
Heres the trigger:
but unlike the original spell, its doesnt need to be channeled...but can be canceled when the target unit gets too far (certain distance).it can also target allies(which in this case the caster will give life to the target).
my problem is that i cant stop the spell when i want to, so my hero sometimes end up killing himself when giving life to his allies...is there a way to give an ability to stop the not so channeling spell(replacing the initial spell's icon and position)?
but i tried replacing the ability and it ends up canceling both the trigger and the spell...
HELP!!!!!
Heres the trigger:
Trigger:
- Soul Steal
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Soul Steal
- Actions
- Trigger - Turn off Soul Steal Loop <gen>
- Set SS_Caster = (Triggering unit)
- Set SS_Integer = 0.00
- Set SS_Target = (Target unit of ability being cast)
- Trigger - Turn on Soul Steal Loop <gen>
- Events
Trigger:
- Soul Steal Loop
- Events
- Time - Every 0.50 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- SS_Integer Not equal to (2.50 + (0.50 x (Real((Level of Soul Steal for (Triggering unit))))))
- (SS_Target is alive) Equal to True
- (SS_Caster is alive) Equal to True
- (Distance between (Position of SS_Caster) and (Position of SS_Target)) Less than or equal to 650.00
- Conditions
- And - All (Conditions) are true
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (SS_Target belongs to an ally of (Owner of SS_Caster)) Equal to True
- Then - Actions
- Set SS_Integer = (SS_Integer + 0.50)
- Unit - Set life of SS_Target to ((Life of SS_Target) + (0.75 x (Real((Strength of SS_Caster (Include bonuses))))))
- Unit - Set life of SS_Caster to ((Life of SS_Caster) - (0.75 x (Real((Strength of SS_Caster (Include bonuses))))))
- Special Effect - Create a special effect attached to the chest of SS_Caster using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the origin of SS_Target using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Set SS_Integer = (SS_Integer + 0.50)
- Unit - Set life of SS_Caster to ((Life of SS_Caster) + (0.75 x (Real((Strength of SS_Caster (Include bonuses))))))
- Unit - Cause SS_Caster to damage SS_Target, dealing (0.75 x (Real((Strength of SS_Caster (Include bonuses))))) damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the origin of SS_Caster using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the origin of SS_Target using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
- Special Effect - Destroy (Last created special effect)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Set SS_Integer = 0.00
- Trigger - Turn off (This trigger)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events