Warcraft III resources & community, 2003–2006 · archived

Showing Damage Text (Trigger Help)

5 posts
#1

Showing Damage Text (Trigger Help)

regularattack
    Events
        Unit - Forest Troll Trapper 0099 <gen> Takes damage
    Conditions
    Actions
        Floating Text - Create floating text that reads (String((Integer((Damage taken))))) at (Position of (Triggering unit)) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
        Floating Text - Change (Last created floating text): Disable permanence
        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
        Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
        Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds



This trigger displays the exact damage of any attack against the troll trapper that's specified in the event. The problem is, I'd like it to work for attacks against any unit in the game, and not just the troll trapper. How would I go about doing this?
#2
u will have to give every unit a critical strike based spell with '1' as damage multiplier
#3
That won't give him floating text for spells, though.
#4
I actually just found out that WEU 1.20 has the option of "when any unit takes damage" as an event. Unfortunuately its not working with my action triggers atm ;\
Maybe I need a newer version of weu?
#5
no, yesterday i found out how to do it, u can display Every kind of damage with create floating text => conversion - convert real to string (at real fill in 'event response - damage taken')