| 04-17-2007, 12:58 PM | #2 |
It is actually a very difficult topic. I couldn't think of a way that didn't require dynamic triggers, you keep registering the Damaged event for every unit in your map. To recognice if the damage was done by an attack we now make all heroes have an orb that leaves a buff to units, if the unit has the buff when damaged then it was attacked, in that case remove the buff and process the Attack Hit event. |
| 04-18-2007, 04:52 AM | #4 |
I would have 2 reals, one before damage is dealt and one just after. Subtract 1-2 and display the result as text. |
| 04-18-2007, 05:03 AM | #5 | |
Quote:
I said something like that in my first post.. but I though that a colour coded hp% left would be more usful rather then damage delt. |
| 04-18-2007, 05:16 AM | #6 |
I believe that this may help you, though it does leak: Show damage using floating text (GUI) |
| 04-18-2007, 05:58 AM | #7 | |
Quote:
I think the remaining HP% of a target would be more usful than the damage delt.. Hence why I am using my other trigger, see above. |
| 04-18-2007, 06:15 AM | #8 |
Try something like: A unit enters the playable map area Trigger - Add ((Triggering Unit) takes damage) to (Trigger) |
| 04-18-2007, 08:33 AM | #9 |
Like I said, I got it working.. But I decided not to use it. |
