Vamperic mana aura?

Nivius

TH.net Regular
so, ben having problem whit an aura of one of my units for my swamp team arena.

easy way of solving what i whana do is reading the tooltip of it.
swamp team arena said:
Nearby friendly melee units gain 1-9%(+1% a level) of ther damage dealt back in mana points when they hit enemy units.
i worked whit this about 1 year ago but irl came in the way so i had to pause the making of his map, but now im back (i hope!) and i remeber the braindamage this dam aura gave me! any ideas of how to do it?

changes might be okay, like changing it to a static amount, or whatever.

Trigger:
  • Activate spir aura
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to White Spiritual Aura <gen> the event (Unit - (Triggering unit) Takes damage)
      • Trigger - Add to Black Spiritual Aura <gen> the event (Unit - (Triggering unit) Takes damage)

Trigger:
  • White Level spir aura
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Learned Hero Skill) Equal to Spiritual Aura (Magea9) (3) (testing)
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 1 (Red)
              • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
              • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
              • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
    • Actions
      • Set Spirauralvl[1] = (Spirauralvl[1] + 1)
      • Game - Display to Player Group - Player 1 (Red) the text: (Level of skill is now: + (String(Spirauralvl[1])))

Trigger:
  • White Spiritual Aura
    • Events
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Attacking unit) has buff Spiritual Aura (Buff)) Equal to True
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Attacking unit)) Equal to Player 1 (Red)
              • (Owner of (Attacking unit)) Equal to Player 2 (Blue)
              • (Owner of (Attacking unit)) Equal to Player 3 (Teal)
              • (Owner of (Attacking unit)) Equal to Player 4 (Purple)
              • (Owner of (Attacking unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit - Set mana of (Attacking unit) to ((Mana of (Attacking unit)) + ((Real(Spirauralvl[1])) x 2.00))


is atm set up for a static value, please give ideas
 

Accname

2D-Graphics enthusiast
first of all, you have to use a damage detection system no matter what you do.
this system will notice if any unit is taking damage.

now you check whether the damage source (attacking unit) has your ability, if so the next step would be to heal a percentage of the damage taken as mana of the damage source. that should be no problem for anybody who knows a little bit about triggering. if you still need help just say so.

(there is a GUI friendly damage detection system in the turtorial sub-forum)
 

HydraRancher

Truth begins in lies
Have you noticed that in White Level spir aura you say the text only to Red? Even though you check if any of the players level the ability.

Oh and a handy note, for a unit takes damage event, use "Damage Source" to detect the attacking unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top