• 🏆 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 countdown problem.

Status
Not open for further replies.
Level 2
Joined
Mar 28, 2021
Messages
7
A certain timer with an integer variable is set. It works fine in game - counting from fifty to around twenty. However, numbers stop appearing at approximately fifteen 'second' mark. I cannot see why.

  • Events
    • Unit - A unit enters Vicinity of Arena <gen>
  • Conditions
  • Actions
    • Set VariableSet IntegerCountdown = 49
    • Floating Text - Create floating text that reads Countdown reset; ne... at (Center of Countdown Timer1 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    • Wait 1.00 seconds
    • Floating Text - Destroy (Last created floating text)
    • For each (Integer A) from 1 to IntegerCountdown, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • IntegerCountdown Greater than or equal to 0
          • Then - Actions
            • Floating Text - Create floating text that reads (String(IntegerCountdown)) at (Center of Countdown Timer1 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
            • Wait 1.00 seconds
            • Floating Text - Destroy (Last created floating text)
            • Set VariableSet IntegerCountdown = (IntegerCountdown - 1)
          • Else - Actions
Edit: wrong forum. I am unsure how to delete my post.
 
Last edited:
Status
Not open for further replies.
Top