Showing text over units

Revision as of 06:16, 21 November 2010 by DevliN (talk | contribs) (1 revision: Wiki)
Jump to navigation Jump to search

It is as simple as this trigger, which will display the amount of any damage (at 2 decimals precision) taken by any units from any player at any time:

Display damage dealt
       Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
   Local Variables
       Damage dealt = (Triggering damage amount) <Real>
       Text Tag - Create a text tag with the text (Text(Damage dealt) with 2 decimal places) for (All players), using a font size of 10, at (Position of (Triggering unit)) and height offset 1.0, initially Visible, and fog of war enforcement set to true
       Text Tag - Set Duration time for (Last created text tag) to 1.5 seconds