• 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.

[Solved] trigger for showing countdown?

Status
Not open for further replies.
Level 6
Joined
Sep 13, 2013
Messages
155
the answer is simple, set a countdown timer that expires in 30 seconds, then create a timer window for your timer titled Creeps spawn. Event should not be map initialization because it doesn't work, use Elapsed time event. Also don't forget to destroy the timer window after the countdown expired.
 
In case you have problems setting it up:
  • Countdown
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • -------- Start the timer to last 30 seconds --------
      • Countdown Timer - Start CreepSpawnTimer as a One-shot timer that will expire in 30.00 seconds
      • -------- Make a timer window to display the time remaining --------
      • Countdown Timer - Create a timer window for CreepSpawnTimer with title Creep Spawn
      • -------- Assign a variable to it --------
      • Set CreepSpawnTimerWindow = (Last created timer window)
  • Expire
    • Events
      • Time - CreepSpawnTimer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy CreepSpawnTimerWindow
      • Custom script: call DestroyTimer(udg_CreepSpawnTimer)
      • -------- Do the creep spawning or whatever --------
You would have a timer variable named CreepSpawnTimer and a timer window variable named CreepSpawnTimerWindow.
 
Status
Not open for further replies.
Top