QUOTE(Hurricane @ May 11 2006, 10:20 AM)
Six people flagging and respawning, you tell me how to do it without switches lol.
[right][snapback]484279[/snapback][/right]
I wasn't saying to do it without Switches just look for a more effecent way. But I do appreciate the challenge.
So let me think 2 flags one for each time, I need to keep track of who owns the flag, and it needs to work when players are missing.
==Flag 1==
| Trigger |
| Description: |
| A person picks up the flag |
|
| Players: |
| ¤ Force 1 |
| Conditions: |
| ¤ Current Player brings at least one dude to {flag1} |
| Actions: |
¤ Remove all flag for Comp1
|
¤ Set Deaths of 'unused unit' to 1 for current player
|
| ¤ Preserve Trigger |
| Trigger |
| Description: |
| Centering Location on flag holder |
|
| Players: |
| ¤ Force 1 |
| Conditions: |
| ¤ Current Player suffers exactly one death of 'unused unit' |
| Actions: |
¤ Center Location {flag1} on dude for current player
|
| ¤ Preserve Trigger |
| Trigger |
| Description: |
| Flag Holder Dies / Respawn |
|
| Players: |
| ¤ Force 1 |
| Conditions: |
¤ Current Player commands exactly 0 dude
|
| ¤ Current Player suffers exactly one death of 'unused unit' |
| Actions: |
¤ Create 1 flag for Comp1 at {flag}
|
¤ Set Deaths of 'unused unit' to 0 for current player
|
¤ Create one dude for current player at {team1 respawn}
|
| ¤ Preserve Trigger |
For a respawn for a player who wasn't holding the flag use the same trigger without the first two actions. The second condition would require exactly 0 deaths.
| Trigger |
| Description: |
| Flag Carrier Leaves Game |
|
| Players: |
| ¤ Computer1 |
| Conditions: |
¤ P12 commands at least 1 dude
|
¤ Force 1 suffers exactly 0 deaths of 'unused unit'
|
| ¤ Comp1 commands exactly 0 flag |
| Actions: |
¤ Kill/Remove dude owned by P12 at {flag}
|
¤ Create 1 flag for Comp1 at {flag}
|
| ¤ Preserve Trigger |
I think that forde 1 wouldn't have the death satsified after the player left. However if that isn't true then create a trigger owned by the comp for each player so that if they control exactly 0 dude, set their deaths to 0. Make sure it runs before the above trigger and you should be set.
Also to remove non flag carrier P12 units make sure that trigger is checked after the above trigger.
| Trigger |
| Description: |
| Point for Team 1 |
|
| Players: |
| ¤ Force 1 |
| Conditions: |
¤ Current Player brings at least 1 dude to {team1 flag respawn}
|
¤ Comp2 brings at least one flag to {team1 flag respawn}
|
| ¤ Current Player suffers exactly one death of 'unused unit' |
| Actions: |
¤ Create 1 flag for Comp1 at {team2 flag respawn}
|
¤ Center location {flag1} on flag owned by Comp1
|
¤ Set Deaths of 'unused unit' to 0 for current player
|
¤ Add 1 point to whatever score keeping thing your using.
|
| ¤ Preserve Trigger |
I think this should basicly cover it, other stuff can be done the same way or used independantly. No switches but it would use one death counter per team/flag