Soul Steal

tanchunhung

New Member
Reaction score
2
* Ability Type: Active
* Targeting Type: Unit
* Ability Hotkey: E
* Casting Range:400
* Not Channeling
* Maximum Target:1

Creates a link to a target unit, transferring life away from you if cast on an ally and to you if cast on an enemy.
Level 1 - 20 Hp per seconds.
Level 2 - 40 Hp per seconds.
Level 3 - 60 Hp per seconds.
Level 4 - 80 Hp per seconds.
Likes DotA Soul Keeper~
Who could help me this???Thanks all the people that help me~
 

Necrach

You can change this now in User CP.
Reaction score
62
I would say an instacast spell creating a lightning effect, putting the caster and the target in unit variables and starting a timer with the duration of the spell (connected with an Array connected to the casting unit (and owner of the unit) and the target). As I guess this spell doesn't need to be more MUI than one hero for each player, you can have 12 arrays on your variables (or however many players you have).

Also, of course, check if the target is an ally or an enemy, putting the caster or the target in the variable for GETTING the hp, and the other one in the unit variable for losing the hp.

After this trigger, you only need 2 more. One periodic event giving life from (EXAMPLE:) UnitDrained[x] to UnitHealed[x] (why not use Integer A loops for the x in the arrays)

And also one trigger (meaning 12 triggers, one for each array) ending the spell when the timer ends (removing all units from the variables), and destroying the lightning effect.

Might be a smoother way, but this would work. If you have no idea what I am talking about, maybe you should give up such a complicated spell for now :eek:
 

tanchunhung

New Member
Reaction score
2
There's so easy?but i don't it works or not~
But i forgot to do this
Can be Turn off Transferring and away from a unit
I made that cannot be turn off transferring and away

Code:
Events
   Unit - A unit starts the effect of an ability
Conditions
   (Ability being cast) Equal to Soul Steal
Actions
   Set SS_Caster = (Casting Unit)
   Set SS_Target = (Target unit of ability being cast)
   If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
      (SS_Target belong to an ally of (Owner of SS_Target))  Equal to True
   Then - Actions
      Trigger - Turn on Transfer <gen>
       Lightning - Create a Drain Life lightning effect from source (Position of SS_Caster) to target (Position os SS_Target)
       Special Effect - Create a special effect attached to the overhead of SS_Caster using DrainCaster.mdl
       Special Effect - Create a special effect attached to the overhead of SS_Target using DrainTarget.mdl
     Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
      (SS_Target belong to an ally of (Owner of SS_Target))  Equal to False
   Then - Actions
      Trigger - Turn on Away <gen>
       Lightning - Create a Drain Life lightning eccet from source (Position of SS_Caster) to target (Position os SS_Target)
       Special Effect - Create a special effect attached to the overhead of SS_Targetr using DrainCaster.mdl
       Special Effect - Create a special effect attached to the overhead of SS_Caster using DrainTarget.mdl
     Else - Actions
The Transfer and Away i already work,but i lazy to write again ~
 

HydraRancher

Truth begins in lies
Reaction score
197
But surely, you'd eventually kill the unit? So is there a timed duration, or will the link snap after a certain distance?
 

tanchunhung

New Member
Reaction score
2
I got a lot of leaks~Lightning no saved,no Check Time and Range

Code:
Events
  Time - Every 0.3 seconds of the game time
Conditions
  SS_Target Is Alive Equal to True
Actions
  Lightning - Destroy SS_Lightning
  Trigger - Turn off Transfer <gen>
  Trigger - Turn off Away <gen>
  Trigger - Turn off (This Trigger)
______________________________________________________________________________________
Code:
Events
   Time - Every 0.3 seconds of the game time
Conditions
Actions
   If (All Conditions are true) then do (Then Actions) else do (Else Actions)
      If - Conditions
         (Position of SS_Target) and (Position of SS_Target) Greater or Equal to 400
      Then - Action
         Turn off Transfer <gen>
         Turn off Away <gen>
         Lightning - Destroy SS_Lightning
         Trigger - Turn off (This Trigger)
 

HydraRancher

Truth begins in lies
Reaction score
197
Your first trigger looks a bit strange. It says that if the target is alive, then snap the chain? That's not what you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top