• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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