Difference between revisions of "Showing text over units"

From HIVE
Jump to navigation Jump to search
m (1 revision: StarEdit.net Wiki)
m (Testing Trigger template)
 
Line 1: Line 1:
 
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:
 
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:
  
 +
{{Trigger
 +
|events=Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
 +
|variables=Damage dealt = (Triggering damage amount) <Real>
 +
|actions=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
  
http://vgshorts.com/BBCode/BBCode3.php?ID=148
+
Text Tag - Set Duration time for (Last created text tag) to 1.5 seconds
Display damage dealt
+
}}
    Events
 
        Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
 
    Local Variables
 
        Damage dealt = (Triggering damage amount) <Real>
 
    Conditions
 
    Actions
 
        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
 
  
 
[[Category:StarCraft II]]
 
[[Category:StarCraft II]]

Latest revision as of 00:51, 28 April 2011

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:

StarCraft 2 Trigger [template]
Events:

Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)

Variables:

Damage dealt = (Triggering damage amount) <Real>

Conditions:

None.

Actions:

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