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

How can I use a timer with texttag?

Status
Not open for further replies.
Level 1
Joined
Oct 3, 2019
Messages
1
I'm trying to create a text tag without a countdown. I want to use a timer instead of using the 'Wait' command. How can I use a timer to actively wait 1 second between changing the text tag's text?
 
Level 39
Joined
Feb 27, 2007
Messages
5,013
  • -------- create flaring text here --------
  • Set CDText = (Last Created Floating Text)
  • Set CD = 10
  • Floating Text - Set text of CDText to String(CD)
  • Countdown Timer - Start CDTimer as a repeating timer that will expire in 1.00 seconds
  • Events
    • Countdown Timer - CDTimer expires
  • Conditions
  • Actions
    • Set CD = CD - 1
    • Floating Text - Set text of CDText to String(CD)
    • If (All conditions are true) then do (Then actions) else do (Else actions)
      • If - Conditions
        • CD less than or equal to 0
      • Then - Actions
        • Countdown Timer - Pause CDTimer
        • -------- Do whatever else here, probably clean up floating text --------
      • Else - Actions
 
Status
Not open for further replies.
Top