• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Looking for a custom countdown

Status
Not open for further replies.
Level 3
Joined
Nov 1, 2004
Messages
24
I'm working on a map and I can't figure the countdown timer out.

i already made it so that the 1st wave comes when i type -start. the 2nd wave i have to do manual by "-next 1"

on topic, how to make a timer that activates when all off the wave 1 creatures are down and it counts down to wave 2 for example.

Hope someone understands what I mean, most tower defense maps have this system.

Thanks!
 
You need to put a variable(Integer Variable) when the wave starts. Set the variable to a number of how many units spawn. Then create a trigger, a Unit dies, then codition, dying unit-type equal to your wave unit, then action Set Your Variable=(Your Variable)-1))
Then an If-then-else
If Your Variable Equals to 0
Start Timer for the next wave. If that is what you meant.:)
As for the timer to wait, just add a Wait action and instead of the seconds put Remaining Time for Your Timer. ect. Hope it helps:)
 
Thanks for your response, but this is a bit to hard for me too understand:p im really beginner with triggering, so if you know a step by step guide about this somewhere i would be very happy.

if you can explain it to me on msn or something like that, that would be very usefull. but thats up to you of course.
 
Hm...well here are the triggers, will tell you what to do:):

  • Events
    • Map initialization
  • Conditions
  • Actions
    • Set Wave1(Integer Variable) = (20)
    • Set Wave2(Integer Variable) = (30)
    • Set Wave3(Integer Variable) = (40)
    • ect.
    • Countdown Timer - Start Start(Timer Variable) as a One-shot timer that will expire in 45.00 seconds
    • Countdown Timer - Create a timer window for Start with title Will Start in:
    • Wait (Remaining time for Start) seconds
    • Unit - Create 5 Your Units1 for Player 12 (Brown) at (Center of (Your Region)) facing Default building facing degrees
    • Countdown Timer - Destroy (Last created timer window)
Wave variables are Integer Variables, Start Variable is a Timer Variable. Then this trigger:
  • Events
    • Unit - A unit Dies
  • Conditions
    • (Unit-type of (Dying unit)) Equal to Your Unit1
  • Actions
    • Set Wave1 = ((Wave1)-1)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Wave1 Equal to 0
      • Then - Actions
        • Game - Display to (All players) the text: First Wave Over
        • Countdown Timer - Start Start2 as a One-shot timer that will expire in 45.00 seconds
        • Countdown Timer - Create a timer window for Start2 with title Second Wave in:
        • Wait (Remaining time for Start2) seconds
        • Unit - Create 5 Your Units2 for Player 12 (Brown) at (Center of (Your Region)) facing Default building facing degrees
        • Countdown Timer - Destroy (Last created timer window)
      • Else - Actions
ect. Maybe there's a way to do it with less trigger, maybe someone else helps:) Will need to make 1 trigger for each wave. Hope it helps:)
 
Thanks alot, only i have some problem understanding the wave1=15 etc what that means.. i tried 2 units spawns in 1 wave but it automatically jumps over to the second wave timer after i killed the footmans..

look at the screenshot..

and the other screenshot shows the wave 2 trigger
 

Attachments

  • warcraft1.jpg
    warcraft1.jpg
    69.3 KB · Views: 129
  • wacraft2.jpg
    wacraft2.jpg
    281.5 KB · Views: 125
Wave1-15 are the number of units that spawn in each wave. Wave1=15 that means when 15 units of that class are killed it will jump to the second wave. You've put Wave1=15 but you also put that in Wave1 it spawn 2x 15 unit which is 30:) change the Wave1=30 and when all 30 are dead, the second wave will start ect.:) It's just a number which shows how many unit should be killed before the second wave if you've put 30 to spawn and Wave1=15 it will start the second wave after the 15 are dead.:) np for the help:)
 
Status
Not open for further replies.
Back
Top