• 🏆 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] Show Damage(Need help 2 optimiz)

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
Show Damage(Bugged)

Im am not very familiar with those kind of leaks, since this trigger must be multi-instancble!!!

This trigger lag as hell & miss damage on certain hero some time!!!
since trigger is already made could some1 help me to optimize it ??

edit i Re edited trigger is there any way to improve it more?

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Entire map))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Trigger - Add to Execute <gen> the event (Unit - (Picked unit) Takes damage)
      • Custom script: call DestroyGroup(udg_TempGroup)
  • New Units
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
    • Actions
      • Trigger - Add to Execute <gen> the event (Unit - (Entering unit) Takes damage)
  • Execute
    • Events
    • Conditions
    • Actions
      • Set DamageString = (String((Integer((Damage taken)))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Greater than 0.00
        • Then - Actions
          • Floating Text - Create floating text that reads DamageString above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        • Else - Actions
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Set the velocity of (Last created floating text) to 256.00 towards 90.00 degrees
      • Floating Text - Change the fading age of (Last created floating text) to 0.80 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
 
Last edited:
Level 10
Joined
Feb 20, 2008
Messages
448
re editeed trigger but trigger doesnt work at all ........ plz some1 tell me whats wrong

edit : i worked all day on trigger and search on all fucking threads that existed and i finally found something good sigh

this system might glitch if u forget a line >.> plz add this in a tutorial that i saw its show how make it >.>

we can close this topics >.>
 
Last edited:
Status
Not open for further replies.
Top