• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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