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

[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!
 
Level 5
Joined
Jan 4, 2007
Messages
103
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:)
 
Level 3
Joined
Nov 1, 2004
Messages
24
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.
 
Level 5
Joined
Jan 4, 2007
Messages
103
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:)
 
Level 3
Joined
Nov 1, 2004
Messages
24
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: 91
  • wacraft2.jpg
    wacraft2.jpg
    281.5 KB · Views: 81
Level 5
Joined
Jan 4, 2007
Messages
103
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:)
 
Level 3
Joined
Nov 1, 2004
Messages
24
Still doesn't work.. i added the attachment maybe you can find out whats the problem.

thanks 1000 times:D
 

Attachments

  • Darkthrone custom map1.w3x
    1.3 MB · Views: 62
Status
Not open for further replies.
Top