• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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 45
Joined
Feb 27, 2007
Messages
5,578
  • -------- 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