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

Timer countdown and waves problem

Status
Not open for further replies.
Level 4
Joined
Jul 18, 2008
Messages
76
Hey guys, I've got an question.. again.

How to I create a timer that starts from 2 minutes and counts down to 0?

And how do I do, when I've got monster waves that are attacking, and want to change monsters when the timer reaches 0, and then it resets to 2 again and starts over, going on forever with new waves.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Just use:

  • Events
    • Every 120 seconds of game time
  • Actions
    • Set Wave = Wave + 1
    • Create monsters depending on which wave it is
    • If Wave = 1 then create noob monsters
    • If Wave = 2 then ...
As you can see, every 120 seconds, a wave integer will be increased, allowing you to know what wave it is and create monsters depending on that.
 
Status
Not open for further replies.
Top