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