Staredit Network

Staredit Network -> UMS Assistance -> Last Player Detection
Report, edit, etc...Posted by ultimater2 on 2004-08-23 at 05:16:52
ok i got this map but in it i have a enemy comp and humans but i want to win game when im last HUMAN comp left how would i go about that
Report, edit, etc...Posted by nyczdigga on 2004-08-23 at 05:22:15
What the hell are you saying? I can't understand one word, I think you are telling me, how to survive last man standing?
Report, edit, etc...Posted by ultimater2 on 2004-08-23 at 05:29:36
wow sorry my grammer was bad there ok what i wanna do is basicly end the scenario in victory once im the last human alive but there computers that are enemies aswell so that complicates matters for me do you know what to do
Report, edit, etc...Posted by Revelade on 2004-08-23 at 07:35:17
QUOTE(ultimater2 @ Aug 23 2004, 04:29 AM)
wow sorry my grammer was bad there    ok what i wanna do is basicly end the scenario in victory once im the last human alive  but there computers that are enemies aswell so that complicates matters for me  do you know what to do

Since when did Humans become computers? (Terminator 4?)

Anyway, you can do it like this. Place a flag in an area away from all the gameplay for each player. Let's say you have 5 players, then place 5 flags away from the action in a isolated area.

Your triggers:

Condition: Force 1 commands exactly 1 flag

Action: Victory

Of course I am assuming all humans are on the same force.
Report, edit, etc...Posted by ultimater2 on 2004-08-23 at 08:18:23
i meant there are humans and comps that are enemies but i dont care if there are still computers there i just want to win when all other humans are dead anyway i figured out what to do simply there are 2 comps left so i did
Conditions;
Current player has exactly 2 opponents remaining

Actions: end scenario in victory
Report, edit, etc...Posted by Cripple on 2004-08-23 at 08:56:54
Try At Most That Might Work
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-23 at 09:02:57
So the comps are impossable to kill? Cause what if you had one comp and one human left?

And when you say defeated them do you mean players who left the game? or do defeated players get to stay in the game and watch?
Report, edit, etc...Posted by KiLLeR2001 on 2004-08-23 at 11:29:07
Place flags like Revelade said.

Then after a human dies, remove his flag, and end him in defeat.
When theres exactly one flag left for the human forces, end victory for current player.

This is the simplest way to put it.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-23 at 13:04:10
Or you could just do this

Force 1 (all humans)
Conditions:
-Always
Actions:
-Set deaths for 'unused unit' to 1 for current player.

Force 1 (all humans)
Conditions:
-Force one suffers exactly 1 death of 'unused unit'
-Elapsed Time is at least 2 seconds
Acitons:
-End in victory for current player.

This might seem sincless at first but let me explain. At the start of the game each player runs a trigger that SETS his death counter to 1. The second trigger requires the FORCE to suffer exactly 1. (all the players deaths are added together). So when there is only one human player left in the game only his death score will be added to the force total and the victory trigger will run.

Also witha little creativity you can addapt this method to allow defeated players to watch the game. (by setting there deaths to 0 when they lose)
Report, edit, etc...Posted by Kow on 2004-08-23 at 18:59:55
I think you mean add deaths, settings in that case will make you win at the start.
Report, edit, etc...Posted by Thermo on 2004-08-23 at 19:21:14
For that to work the doesn't the 2nd trigger have to be first? But besides that that will work cause there should be more players then 1 in the force with the players so when more players have a current death score of 1 the force has more deaths then one problem solved.

And of course when players are defeated and subsiquently booted from the game their death score no longer counts towards the forces total amount of deaths.
Report, edit, etc...Posted by Revelade on 2004-08-23 at 20:48:23
Use the method killer2001 and I suggested, it's the most simple and requires only 1 trigger. It only works if all the human players on 1 team...

Why these weird conditions? What if the player played by himself?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-23 at 22:02:39
Yeah thats the point of it Thermo.

And yeah you were correct about the triggers being in the wrong spot "kinda" if i just switched them then player 2 would get a victory instead of player 1 lol. So i did what i had done when i used this trigger before. Put an elsapsed time on the second trigger. This way the first trigger has a chance to fire for all players before the victory trigger can fire.

Kow: you wouldn't use add unless you ADD for FORCE 1. The idea is that each player has 1 death of the 'unused unit'.

When the conditions for the other trigger is checked it looks at all the deaths that each player has and adds them together. This is because the conditions specify "force 1" and not current player.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-23 at 22:03:03
if the player played by himself, the computers would be there and since he is by himself, the death count will auto be only 1 because hes the only person and he will win...
its not that weird if you understand it
Killer, you dont need to remove the flag when someone leaves because they automatically go to p12
ultimater's way is the easiest
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-23 at 22:07:02
Players: Humans
Conditions: Current Player has at most 2 Opponents remaining in the game.
Actions: Victory

WTF are you complicating this so much for? -_-

DW: That's supposed to happen.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-23 at 22:11:36
i was just explaining it to Mr Revelade
Next Page (1)