Damage Conversion Aura

C

chrisISrad

Guest
Hey guys, I used to have an account on here a while back. Only thing is, I had some trouble retrieving it, so I made a new. Anyway, I'm working on this ability for my hero "The Chromatic Bear". The ability consists of adding armor to the hero (easy) but returning 10%, 15%, etc of the damage done to the hero back to him. Seems logical, but having trouble with it actually doing what I want it to do. Please help! Thanks in advance!

Code:
Events
    Unit - A unit is attacked
Conditions
Actions
    If (All conditions are True) the do (The Actions) else do (Else Actions)
       If - Conditions
          (Unit type of (Attacked unit)) Equal to Chromatic Bear
          ((Attacked Unit) has buff Flesh of the Timeless) Equal to True
       Then - Actions
           Unit - Set life of (Attacked Unit) to ((Life of (Attacked Unit)) + ((Real ((Point-Value of (Damage Source)))) x 0.15))
        Else - Actions
           Do Nothing
 

robinremue

Member
Reaction score
16
What's with the If stuff...

Just put the conditions in the condition part and the action in the action part :p
 

Flare

Stops copies me!
Reaction score
662
1) Unit is attacked doesn't register a damage source. The event occurs when attack animation commenes.

2) Point value is defined in Object Editor, there's no point using it there.

3) Do Nothing is a waste of space. Leaving the Else block empty works exactly the same, doesn't use a BJ and saves on having to add another line of code
 
1

131ackout

Guest
If you meant an aura that drains life from a unit -
use Vampiric Aura. (note that the aura works on melee units)

if you meant an aura that returns the damage -
use Thorns Aura.
 
0

00Nobody

Guest
He wants his aura to be a cross of thorns aura and devotion aura, i think.
 
1

131ackout

Guest
AH, a combination aura.

Why don't you make two aura, the one armor and one returning damage.

If you don't want to waste the hero's ability capactiy, make em into a non-hero ability, for a hero..
 

PrisonLove

Hard Realist
Reaction score
78
if youre combining thorns and devotion aura and you want it only for your hero not other units then just used spiked carapace it does exactly what you want. adds armor and returns damage. (although its just melee damage i dont know if you can accomodate it for ranged attacks)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top