How do i create a passive aoe lifedrain

Trollvottel

never aging title
Reaction score
262
what do you mean with passive? does it automatically drain life from all units in range? or a random unit? pls describe it more
 

jnZ

I
Reaction score
64
i created a MUI life drain aura for you, if you want it to have visual drain effects tell me.

EDIT: added drain effects, but sometimes it looks kinda odd if the paladin moves

SET GROUP
Code:
Life Drain Aura Group
    Events
        Unit - A unit Learns a skill
    Conditions
        (Level of Life Drain Aura  for (Triggering unit)) Equal to 1
    Actions
        Unit Group - Add (Triggering unit) to LifeDrainAuraGrp

SPELL
Code:
Life Drain Aura
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in LifeDrainAuraGrp and do (Actions)
            Loop - Actions
                Set TempUnit = (Picked unit)
                Set TempReal = (5.00 + (5.00 x (Real((Level of Life Drain Aura  for TempUnit)))))
                Set TempPoint = (Position of TempUnit)
                Set TempGroup = (Units within 400.00 of TempPoint matching (((Owner of (Matching unit)) is an enemy of (Owner of TempUnit)) Equal to True))
                Unit Group - Pick every unit in TempGroup and do (Actions)
                    Loop - Actions
                        Unit - Cause TempUnit to damage (Picked unit), dealing TempReal damage of attack type Spells and damage type Normal
                        Set TempPoint2 = (Position of (Picked unit))
                        Unit - Create 1 Dummy for (Owner of TempUnit) at TempPoint facing TempPoint2
                        Set LastCreated = (Last created unit)
                        Unit - Add Life Drain Aura Effect  to LastCreated
                        Unit - Add a 2.00 second Generic expiration timer to LastCreated
                        Unit - Order LastCreated to Orc Far Seer - Chain Lightning (Picked unit)
                Set TempInteger = ((Number of units in TempGroup) x (Integer(TempReal)))
                Unit - Set life of TempUnit to ((Life of TempUnit) + (Real(TempInteger)))
                Custom script:   call RemoveLocation( udg_TempPoint )
                Custom script:   call RemoveLocation( udg_TempPoint2 )
                Custom script:   call DestroyGroup( udg_TempGroup )
 

Attachments

  • LifeDrainAura.w3x
    18.6 KB · Views: 103
  • LifeDrainAurav2.w3x
    19.1 KB · Views: 114
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