Passive Abilitie Problem

DeathWing

New Member
Reaction score
3
Hello again
[Ye I know: Ability not Abilitie :p]
(Still making WoW map but today question from other group.)

I'm making melee fighting here with 2 damage spells dealing small amounts of damage, one supporting skill and passive ultimate thats:

Assasins Codex
After Nezia deals certain amount of damage to enemy units, cooldown of all her abilties resets.
|n|n|CFF00AEEFLevel 1|r - Requires to deal 700 damage to reset cooldowns.
|n|n|CFF00AEEFLevel 2|r - Requires to deal 550 damage to reset cooldowns.
|n|n|CFF00AEEFLevel 3|r - Requires to deal 400 damage to reset cooldowns.
"When theres work to do, theres no time to rest."

And I met one problem, I wanted to make that when hero deals ANY damage I set his custom vaule to [Custom Vaule of [Damage Source]]+[Damage Dealt by hero]

But I know only how to apply it to damage dealt by spells, not also to attack damage. :(

Can some make trigger for that in GUI?
 

Vassilev

New Member
Reaction score
39
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Equal to Footman
                ((Attacked unit) is in DamageGroup) Equal to True
            Then - Actions
            Else - Actions
                Unit Group - Add (Attacked unit) to DamageGroup
                Trigger - Add to Untitled Trigger 002 <gen> the event (Unit - (Attacked unit) Takes damage)


Untitled Trigger 002
Events
Conditions
Actions
Set DamageVariable = (DamageVariable + (Damage taken))


DamageGroup is a Unit Group type variable
DamageVariable is a Real type variable

Unit type is your hero.
 

DeathWing

New Member
Reaction score
3
Thank you very much :) I'll test if it will work fine and then +rep for ya if will xD

EDIT: Works very well xD +rep as I promised
 

hasslarn

New Member
Reaction score
20
if u want it to reset cooldowns do it like this


Code:
Action
Unit - A unit start theeffect of an abillity
Condtion
(abillity begin cast) equal to reset cooldowns
Action
Unit - Reset (Casting unit) Abillity cooldowns
 
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