• 🏆 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] How to know if the trigger works

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
Hey I've made and evasion ability trigger but I want to know if there is an absolutely definitive way to know for sure if the unit with the buff is indeed instantly restored of the damage take on the "missed attack"

  • Blade Dance
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Blade Dance l1) Equal to True
        • Then - Actions
          • Set chance = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • chance Less than or equal to 15
            • Then - Actions
              • Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
              • Set loc = (Position of GDD_DamageSource)
              • Floating Text - Create floating text that reads miss at loc with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Blade Dance l2) Equal to True
        • Then - Actions
          • Set chance = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • chance Less than or equal to 25
            • Then - Actions
              • Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
              • Set TempPoint = (Position of GDD_DamageSource)
              • Floating Text - Create floating text that reads miss at TempPoint with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Blade Dance l3) Equal to True
        • Then - Actions
          • Set chance = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • chance Less than or equal to 35
            • Then - Actions
              • Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
              • Set TempPoint2 = (Position of GDD_DamageSource)
              • Floating Text - Create floating text that reads miss at TempPoint2 with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
            • Else - Actions
        • Else - Actions
      • Custom script: call RemoveLocation (udg_loc)
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call RemoveLocation (udg_TempPoint2)
 
Last edited:
Level 20
Joined
Aug 13, 2013
Messages
1,696
Debug func or a GUI function "Game - Display Message ( Auto Timed )" then conversion from real to string then put that life of damaged unit on a parameter before you set it's life then repeat it after you set it's life.
Can't illustrate clearly on device..
^ It will show you 2 display messages, if the values are different then It is sure that it restores the damage.
 
Status
Not open for further replies.
Top