• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Base damage increase for hero with damage tome

Status
Not open for further replies.
Level 2
Joined
Jun 20, 2020
Messages
17
HI guys! :D
I wanted to know if someone could help me with an ability, this should allow your hero to add base damage (with damage volume) for each death he makes. Could someone show me a simple detonator?
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
hey, I'm assuming that by detonator you mean trigger....

I don't have the editor open right now, but you want to do something like this:

event:
generic unit event -> a unit is killed

condition:
boolean condition-> killing unit is a hero type unit = true

action:
set unit real field -> damage of killing unit = damage of killing unit + x (whatever you want to add)


this should be pretty much what you need.

good luck!
 
Level 2
Joined
Jun 20, 2020
Messages
17
Thanks for the info, i'm new to this ... and how would i set the trigger if i had skill levels?
By improving the level the damage gained would rise
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
take what I called x earlier and before that line: set x = real ->number that you want * level of ability(relevant ability) for killing unit.

this configuration assumes all heroes in your game have this ability. otherwise in conditions you should filter out irrelevant units to make the trigger more efficient.
 
Status
Not open for further replies.
Top