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

[General] Victory/Defeat by resources

Status
Not open for further replies.
Level 1
Joined
Jul 8, 2014
Messages
4
Hello.
I am making my own map and I need little help with triggers. I want to make player defeat when he gets 6 lumber, but i don't know how to do it. Thanks for help:)
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
  • trigger
    • Events
      • Player - Player 1 (Red)'s Current lumber becomes Equal to 6.00
    • Conditions
    • Actions
      • Game - Defeat Player 1 (Red) with the message: Defeat!
However I do advice that you use either "greater than or equal to" or "less than or equal to", since that covers more area (the trigger right now fires only when you get 6 lumber exactly, not if you have less or more than 6).

If you want it for multiple players, you can do this:
  • trigger
    • Events
      • Player - Player 1 (Red)'s Current lumber becomes Equal to 6.00
      • Player - Player 2 (Blue)'s Current lumber becomes Equal to 6.00
      • Player - Player 3 (Teal)'s Current lumber becomes Equal to 6.00
      • Player - Player 4 (Purple)'s Current lumber becomes Equal to 6.00
      • Player - Player 5 (Yellow)'s Current lumber becomes Equal to 6.00
      • Player - Player 6 (Orange)'s Current lumber becomes Equal to 6.00
      • etc.
    • Conditions
    • Actions
      • Game - Defeat (Triggering player) with the message: Defeat!
 
Status
Not open for further replies.
Top