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

BIG question

Status
Not open for further replies.
Level 9
Joined
Oct 6, 2007
Messages
406
I'm making a World Trade Center game, and I want to make a required quest where you have to put out all the fires. You have to do this in 30 minutes, and if you don't when 30 minutes rolls around, you lose.

How can I do this? And, I want a certain sound to play if you lose. How do I do this also?


Thanks:thumbs_up:
 
Level 9
Joined
Oct 6, 2007
Messages
406
Make a timer and set it to expire in 30 mins.

Then when it expires make it check if the fires are still there and if they are show credits/end game.


How do I make it check if all the fires are there?

Oh, and also, this is off topic but, when I make my alliance triggers for all 10 human players, and a computer player, it only allies 3 other human players with me, and I'm not allies with the other 6 human players, and the computer. What could be wrong?
 
Level 13
Joined
Dec 3, 2005
Messages
501
Well depends on how you are simulating the fires. If the fires are units then you do a:

  • Event: FireTimer Expires
  • Conditions:
  • Actions: Unit Group - Pick every unit in (Units of type Footman) and do (If (((Picked unit) is alive) Equal to True) then do (Game - Defeat Player 1 (Red) with the message: Defeat!) else do (Do nothing))
 
Level 9
Joined
Oct 6, 2007
Messages
406
Well depends on how you are simulating the fires. If the fires are units then you do a:

  • Event: FireTimer Expires
  • Conditions:
  • Actions: Unit Group - Pick every unit in (Units of type Footman) and do (If (((Picked unit) is alive) Equal to True) then do (Game - Defeat Player 1 (Red) with the message: Defeat!) else do (Do nothing))

Ok, how did you get the event trigger like that?

Step by step please.
 
Level 9
Joined
Oct 6, 2007
Messages
406
Well depends on how you are simulating the fires. If the fires are units then you do a:

  • Event: FireTimer Expires
  • Conditions:
  • Actions: Unit Group - Pick every unit in (Units of type Footman) and do (If (((Picked unit) is alive) Equal to True) then do (Game - Defeat Player 1 (Red) with the message: Defeat!) else do (Do nothing))

After I pick the footman that I'm going to make be the fire, how do I make it "And do (If (((Picked unit) is alive) Equal to true) then do (game-Defeat player 1 (red) with the message: Defeat!) (Do nothing)???
 
Status
Not open for further replies.
Top