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

Triggering a Victory when a building is destroyed

Status
Not open for further replies.
Level 1
Joined
Sep 1, 2004
Messages
2
hey,

Im like.. making this new map for me and my friends, and Ive done lots of trigegrs without help, but now I really need some help. it's like this:

Ive made a big castle with 500 000 HP, and its called "Victory!" , and when its destroyed the map schould end. now my problem is: how do I get the map to end and let the killer of the castle be victorious???


thanks for any help.
 
Level 2
Joined
May 31, 2004
Messages
6
This should work.

victory
Events
Unit - Victory! <gen> Dies
Conditions
Actions
Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit))) and do (Game - Defeat (Picked player) with the message: Defeat!
 
Level 13
Joined
May 5, 2004
Messages
1,330
Hm, if all the other players should be defeated, use this trigger:

Events
Unit - A unit dies
Conditions
(dying unit) equal to [the castle]
Actions
Game - Victory (Owner of killing unit)
Player Group - Pick every player in (All players matching ((Owner of killing unit) not equal to (Matching player))) and do actions
  • Actions
    Game - Defeat (Picked player)

didn't test it, but I think it should work
 
Status
Not open for further replies.
Top