Passive Ability Help

Draganizer

Member
Reaction score
1
How would i make a passive ability when my unit is attacked by a meele he gains 1 mana per 25 damage taken?
 

ultimate11

Active Member
Reaction score
25
make aq new ability based on bash set al rows to 0
then create this trigger
Trigger:
  • mr learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Mana recovery
    • Actions
      • Trigger - Add to mr event <gen> the event (Unit - (Triggering unit) Takes damage)

Trigger:
  • mr event
    • Events
    • Conditions
      • ((Damage source) is A melee attacker) Equal to True
    • Actions
      • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Damage taken) / 25.00))


sry i forgot this condition thx for remember crazyfanatic.
BTW as u can see you dont must to check distance u may use a boolean condition
 

Draganizer

Member
Reaction score
1
make aq new ability based on bash set al rows to 0
then create this trigger
Trigger:
  • mr learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Mana recovery
    • Actions
      • Trigger - Add to mr event <gen> the event (Unit - (Triggering unit) Takes damage)

Trigger:
  • mr event
    • Events
    • Conditions
      • ((Damage source) is A melee attacker) Equal to True
    • Actions
      • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Damage taken) / 25.00))


sry i forgot this condition thx for remember crazyfanatic.
BTW as u can see you dont must to check distance u may use a boolean condition

how would u make this into a default ability for a hero?
 

ElChupanebre

New Member
Reaction score
7
Hm, use:
Event - Unit Enters Playable Map Area
Condition - Unit type of Triggering Unit is equal to HERO is equal to true
Action - Add to mr event <gen> the event (Unit - (Triggering unit) Takes damage)

This only works if you place the hero in the game, not pre-placed Heroes.
 

Draganizer

Member
Reaction score
1
hmm that sounds goo but it will work if its bought from a tavern? or randomed from a all random hero pick trigger?
 
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