Vampiric Embrace Spell

Spray-

Member
Reaction score
1
Trying to make a spell that when cast on enemies, all damage done to them will heal everyone around the damaged unit for the amount of damage taken.
This is what i've come up with so far, the Special Effect works, but not the actual heal.

Code:
Events
    Unit - A unit Is attacked
Conditions
    ((Attacked unit) has buff Vampiric Embrace ) Equal to True
    ((Attacking unit) belongs to an enemy of Player 12 (Brown)) Equal to True
Actions
    Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True)) and do (Actions)
        Loop - Actions
            Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (Damage taken))
            Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
Any help? :)
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
You say "all damage done", not all damage out of attacks.
So, let's see it:

Trigger:
  • Trigger1
    • Events
      • A unit starts the effect of an ability
    • Conditions
      • Ability being cast Equal to Vampiric Embrace
    • Actions
      • Set Unit_G = (Units in (Playable Map Area) matching (((Matching unit) belongs to Player 12 (Brown)) and ((Matching unit) has buff X))
      • Unit Group - Pick up every unit in Unit_G and do (Actions)
        • Loop - Actions
          • Set Unit1 = (Picked unit)
          • Trigger - Turn on (Trigger3 <gen>)
          • Trigger - Add to Trigger2 <gen> the event ((Unit1) takes damage)
      • Custom script: call DestroyGroup (udg_Unit_G)


Trigger:
  • Trigger2
    • Events
    • Conditions
    • Actions
      • Set DamageTaken1 = (Damage taken)


Trigger:
  • Trigger3
    • Events
      • Time - Every 0.1 seconds of game-time
    • Conditions
    • Actions
      • Set Point1 = (Position of (Unit1))
      • Set Temp_G = (Units within 1000.00 of (Point1) matching ((Matching unit) belongs to an ally of (Owner of (Casting unit)))
      • Unit Group - Pick up every unit in (Temp_G) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (DamageTaken1))
          • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
          • Special Effect - Destroy (Last created special Effect)
      • Custom script: call RemoveLocation (udg_Point1)
      • Custom script: call DestroyGroup (udg_Temp_G)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    That sounds like fun!
    +1
  • The Helper The Helper:
    it was a blast!
  • The Helper The Helper:
    I am going to post the Youtube of the investigation in the forums when it is ready
    +1
  • jonas jonas:
    cool!
  • vypur85 vypur85:
    Sounds cool TH.
  • tom_mai78101 tom_mai78101:
    I was on a Legend of Zelda marathon...
  • tom_mai78101 tom_mai78101:
    Am still doing it now
    +1
  • jonas jonas:
    which one(s) are you playing?
  • jonas jonas:
    I played a little bit of the switch title two weeks ago and found it quite boring
  • The Helper The Helper:
    just got back from San Antonio this weekend had the best Buffalo Chicken Cheesesteak sandwhich in Universal City, TX - place was called Yous Guys freaking awesome! Hope everyone had a fantastic weekend!
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • The Helper The Helper:
    We have been getting crazy numbers reported by the forum of people online the bots are going crazy on us I think it is AI training bots going at it at least that is what it looks like to me.
  • The Helper The Helper:
    Most legit traffic is tracked on multiple Analytics and we have Cloud Flare setup to block a ton of stuff but still there is large amount of bots that seem to escape detection and show up in the user list of the forum. I have been watching this bullshit for a year and still cannot figure it out it is drving me crazy lol.
    +1
  • Ghan Ghan:
    Beep boop
    +1
  • The Helper The Helper:
    hears robot sounds while 250 bots are on the forum lol
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    and then it was Thursday...
    +2
  • tom_mai78101 tom_mai78101:
    And then Monday
    +1
  • The Helper The Helper:
    I got the day off today!
    +1
  • tom_mai78101 tom_mai78101:
    How...? (T-T)
  • The Helper The Helper:
    I took the day off. I work for myself so I can do that.
    +1
  • Varine Varine:
    Well I'm already over summer
  • jonas jonas:
    varine! good to see you
  • jonas jonas:
    what's going on, what's got you going
  • The Helper The Helper:
    good to see you varine hope you are well my friend

    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