• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Floating Text

Status
Not open for further replies.
Level 3
Joined
Jun 25, 2006
Messages
32
How do I display the damage a skill has done with floating text?

Oh yeah, this is unrelated but this trigger doesn't work:
  • Night Permanent Invisibility
    • Events
      • Game - The in-game time of day becomes Less than 6.00
      • Game - The in-game time of day becomes Greater than or equal to 18.00
    • Conditions
      • (Real((Level of Night Ability for (Triggering unit)))) Greater than or equal to 1.00
    • Actions
      • Unit - Add Permanent Invisibility to (Triggering unit)
      • Unit - Set Level of Permanent Invisibility for (Triggering unit) to (Integer((Real((Level of Night Ability for (Triggering unit))))))
It's supposed to give Perma Invis to a Hero when it's night. Help please :)
 
Last edited by a moderator:
Level 13
Joined
Nov 22, 2006
Messages
1,260
Your trigger won't work because you have an event that is related to time of day, so "triggering unit" event response won't work because it's not the unit that fired the trigger, so you have to put the unit you want in a global or something

Now the floating text, first you have to have a damage detection system, that can detect damage from any unit (blizzard's event can detect only a specific unit), there is such a system on wc3campaigns, just wait till it opens :D (it's Chuckle Brother's, Tutorials)

Anyways you can detect damage of a spell with that system, once you've detected how much it damaged the unit, just display it with a floating text
 
Level 2
Joined
May 31, 2007
Messages
20
Create a new unit variable, you might use an array if needed, then set the variable = your needed unit.
Afterwards replace the triggering unit with the variable and it should work.
 
Level 2
Joined
Jun 10, 2007
Messages
19
Trigger Fixed

The problem with your trigger at top is that you can not have it as "Triggering Unit" You have to select the unit you wish or use a variable.
 
Status
Not open for further replies.
Top