• 🏆 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!

floating text

Status
Not open for further replies.
Level 4
Joined
Jul 18, 2008
Messages
73
this trigger was made for a spell called execute, kills if below 15/22/29/36 health
so, this trigger supposed to notify you when there is a enemy heroes on low health near you, and its not working :angry:
plz help

  • Execute
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint_Execute = (Position of (Triggering unit))
      • Custom script: call DestroyGroup(udg_ExecuteGroup)
      • Set ExecuteGroup = (Units within 650.00 of Temp_Point_Execute matching ((((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of ExecuteCaster)) Equal to True)) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit is a Hero) Equal to True) and (((TempUnit has buff Invisibility) Equal to False) and (((Percantage life of (Matching unit)) Less then or equal to ((7.00 * (Real(Level of Execute for Triggering unit ))))) + 8.00)))
      • Unit Group - Pick every unit in ExecuteGroup and do (Actions)
        • Loop - Actions
          • Set TempUnit_Execute = (Picked unit)
          • Floating Text - Create floating text that reads (Execute + (Name of (Owner of TempUnit_Execute))) above TempUnit_Execute with Z offset 0.00, using font size (Random real number between 12.00 and 12.00), color (100.00%, 0.00%, 0.00%), and 10.00% transparency
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Set the velocity of (Last created floating text) to 128.00 towards 90.00 degrees
          • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Set TempUnit_Execute = No unit

ps. sry if its a lil too long
 
Level 12
Joined
Aug 22, 2008
Messages
911
You should put all these actions in a unit group loop, and use "Picked Unit" instead of "Triggering Unit", like this:
  • Actions
    • Set group - (Units in (Playable Map Area) matching ((((Matching Unit) is a Hero) equal to True) and ((Matching Unit) is alive equal to True))
    • Unit Group - Pick every unit in group and do (All Actions)
      • Loop - Actions
 
Status
Not open for further replies.
Top