• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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
781
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