• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Floating Text

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2006
Messages
3,406
Give it a Critical Strike with 100% chance to strike and x1 damage modifier. Name it something like Damage Rating.

:grin: I win.
 
Level 5
Joined
Jul 26, 2004
Messages
99
You can create floating text at any point (say, the position of the unit taking/dealing the damage). If you look carefully at the other text "actions" available to you in the editor, you will see ones that allow you to change velocity, color, and even duration (though I don't believe it's labeled "duration", but rather lifetime or something to that effect). Changing the floating text to have a lifetime automatically removes the floating text when it's lifetime expires, so you don't have to worry about trying to keep track of it and removing it when you want to.

For the event, simply use "Unit takes Damage".
For the condition, simply use something like "Unit classification of damaging unit equal to hero".


To help prevent lag, you may want to create a point variable at wherever you want the text to appear, and then immediately delete that point once you have your text created (otherwise, I think the game "saves" all the points used to create floating text).
 
Status
Not open for further replies.
Top