HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] Defeat & Victory Conditions

12-08-2007, 02:15 AM#1
cheekyvimto
Hi guys me again.

I've almost finished the beta versionof my stronghold style map, the only thing left to do is the victory and defeat conditions, could someone assist me with this?

The defeat condition for a single player = lose of structure sitting inside region Player # HQ

The Defeat condition for the team is if all players on that team are defeated

The victory condition is for the last team standing.


I cant get it round my head in words but not in triggers, all help much appreciated.

/cheeky
12-08-2007, 10:45 AM#2
Silvenon
Depends on the map, but people who are making maps and don't have a clue how to make victory/defeat conditions are kinda weird to me. Making a whole map is much to do and 90% maps never get completed, why do you think yours will be a success? You don't seem to know triggering at all, if you do, you would be able to make it in about 30 seconds.

Trigger:
SinglePlayer Defeat
Collapse Events
Unit - A unit dies
Collapse Conditions
Unit-type of (Triggering unit) Is equal to <that structure type>
<some region> contains (Triggering unit)
Collapse Actions
Custom script: call DestroyTrigger(GetTriggeringTrigger())
Game - Display defeat to (Owning player of (Triggering unit))
Player - Remove (Owning player of (Triggering unit)) from <its corresponding team, we'll make a force array called Force>
------ I don't know if this is under "Game", find it somewhere ------

Trigger:
Team Defeat
Collapse Events
Unit - A unit dies
Collapse Conditions
Number of players in Force[1] is Equal to (or less than) 0
Collapse Actions
Custom script: call DestroyTrigger(GetTriggeringTrigger())
Game - Display defeat to <that team, Force[1]>

Trigger:
Collapse Events
Unit - A unit dies
Collapse Conditions
Number of players in Force[1] is Equal to (or less than) 0
Number of players in Force[2] is Equal to (or less than) 0
Number of players in Force[3] is Equal to (or less than) 0
----- ...... ------
Number of players in Force[N] is greater than 0
Collapse Actions
Custom script: call DestroyTrigger(GetTriggeringTrigger())
Game - Display victory to <that team, Force[N]>

Where Force is an array variable that hold teams.

But this totally depends on how your map is made, so probably no one will be able to give you a correct answer, but what did you expect? You can't just ask a question like that, you gave us no base idea for answering you.
12-08-2007, 11:21 AM#3
cheekyvimto
Quote:
Originally Posted by Silvenon
Depends on the map, but people who are making maps and don't have a clue how to make victory/defeat conditions are kinda weird to me. Making a whole map is much to do and 90% maps never get completed, why do you think yours will be a success? You don't seem to know triggering at all, if you do, you would be able to make it in about 30 seconds.

But this totally depends on how your map is made, so probably no one will be able to give you a correct answer, but what did you expect? You can't just ask a question like that, you gave us no base idea for answering you.

Sorry for the the crap way I asked the question. This is my first map and I do admit I assumed the defeat and victory conditions would be a bit more simple to make. Just needed a working demonstration to get my head around it.

Thank you for providing me with something to go on, I will try adding this now. And that should be the beta version of my map ready to test.

+rep

/cheeky