PDA

View Full Version : Triggering a Victory when a building is destroyed


Ar@knID
09-02-2004, 12:15 PM
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.

coolguy5678
09-02-2004, 01:13 PM
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!

DarkShadow
09-02-2004, 01:20 PM
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

Ar@knID
09-02-2004, 02:59 PM
THX ;)

I got it up and running now I think :)