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

[Solved] Looping trigger fails after .5 seconds

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
  • Break Loop
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in ZoshiBreakGroup and do (Actions)
        • Loop - Actions
          • Set TempReal = (Load (Key BreakDuration) of (Key (Picked unit)) from AbilityTable)
          • Game - Display to (All players) the text: ((Name of (Picked unit)) + ( has got + ((String(TempReal)) + remaining.)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempReal Greater than 0.00
            • Then - Actions
              • Hashtable - Save (TempReal - 0.10) as (Key BreakDuration) of (Key (Picked unit)) in AbilityTable
            • Else - Actions
It counts down as intended to until there is 5.5 seconds left, after that it immediatly sets it to 0 and executes the "Else" part.
Whaaaaa....?
 
Status
Not open for further replies.
Top