• 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 to make a timed game?

Status
Not open for further replies.
Level 2
Joined
Dec 4, 2008
Messages
6
Hi there,

Im quite new to making triggers and such.
I want to create a game that is timed and if the countdown time is over team 1 wins.
Im so confused so i really wanna know how to do this, sorry but i know this may be simple to you guys but for me its a nightmare :cry: i dont want to look like im being spoonfed but seriously its been a nightmare for me D:
so can anyone please help me?? it would be really appreciated

cheers.
 
make timer variable (ctrl+B)->add variable->choose timer, named the variable ex time

then make triggers
  • Init Timer
  • Events
  • Map initialization (or whatever you want)
  • Actions
  • Countdown Timer - Start time as One-shot timer that will expire in ... seconds
  • Time Expires
  • Events
  • Time - time Expires
  • Actions
  • Bla Bla Bla Wins ....
If you want make timer window
  • Timer Window
  • Events
  • Time - Elapsed game time is 0.01s (or whatever events except map init)
  • Actions
  • Countdown Timer - Create a timer window for time with title "bla bla"
 
Level 2
Joined
Dec 4, 2008
Messages
6
make timer variable (ctrl+B)->add variable->choose timer, named the variable ex time

then make triggers
  • Init Timer
  • Events
  • Map initialization (or whatever you want)
  • Actions
  • Countdown Timer - Start time as One-shot timer that will expire in ... seconds
  • Time Expires
  • Events
  • Time - time Expires
  • Actions
  • Bla Bla Bla Wins ....
If you want make timer window
  • Timer Window
  • Events
  • Time - Elapsed game time is 0.01s (or whatever events except map init)
  • Actions
  • Countdown Timer - Create a timer window for time with title "bla bla"

Hi,

thanks for your help sir, but im quite confused on the second part especially on the conditions thingy, and the green question mark which says blah blah wins. and the timer window too.
can u kindly provide more screenshots please? or please kindly specify those things sir?
The
timer window and the conditions for the second part is very confusing .

thanks.
 
Level 18
Joined
Sep 27, 2005
Messages
2,069
Untitled Trigger 002
Events
Map initialization
Conditions
Actions
Countdown Timer - Start Timer1 as a One-shot timer that will expire in 9999.00 seconds
Set Timer1 = (Last started timer)
Countdown Timer - Create a timer window for Timer1 with title Timer
Countdown Timer - Show (Last created timer window)


Untitled Trigger 002
Events
Time - Timer1 expires
Conditions
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
http://www.hiveworkshop.com/forums/f283/countdown-timer-reviewed-ralle-66244/

here is a tutorial on timers, just to make it more clear, for the victory action use what bounty hunter2 told you:

  • Force 1 victory
  • Events
    • Time - Timer1 expires
  • Conditions
  • Actions
    • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
    • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
add every player of force 1 to to this trigger
 
Level 2
Joined
Dec 4, 2008
Messages
6
http://www.hiveworkshop.com/forums/f283/countdown-timer-reviewed-ralle-66244/

here is a tutorial on timers, just to make it more clear, for the victory action use what bounty hunter2 told you:

  • Force 1 victory
  • Events
    • Time - Timer1 expires
  • Conditions
  • Actions
    • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
    • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
add every player of force 1 to to this trigger
Thank you so much!! thanks to all that helped, i really mean it :D

cheers!
 
Status
Not open for further replies.
Top