Triggering a Victory when a building is destroyed

Status
Not open for further replies.

Ar@knID

A

Ar@knID

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.
 
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!
 
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.
Back
Top