• 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.

Event Damage

Status
Not open for further replies.
Level 1
Joined
Jan 6, 2012
Messages
3
Hello, first time here.
I was trying to make a map that uses a unique exp system, which gives exp to the hero based on damage dealt. I used a trigger like such:

Events:
A unit is attacked

Conditions:
Attacking unit = Hero

Actions:
Add Integer(Damage Taken)/Hero level of triggering unit experience to Attacking Unit)

But it doesnt work

I added an action that displays the damage:

Display to all players the text String(Damage Taken)

And it displays 0.000 everytime i hit a unit. Is there a way to fix this? Or is there a better way to do it than this?
 
Level 11
Joined
Nov 15, 2007
Messages
800
Download the map, open it, open trigger editor, right click -> copy the folder with the necessary triggers, open your map, open trigger editor, right click -> paste.
 
Status
Not open for further replies.
Top