I'm making a map where there's 1 force, and a random player from that force is chosen to be the 'Launcher' of a map I'm working on. At the start, it randomizes 3 switches, 1 setting sets Player 1, another sets 2, etc (There are 5 players) and the extra 3 rerandomize it.
NOW, my problem. When I try randomizing the players, it occured that it sometimes gives the 'Launcher' units to a player isn't there (If there's players 1-4, it MIGHT give it to Player 5). Here are my triggers:
| Trigger |
| Conditions: |
| ¤ Always |
| Actions: |
¤ Randomize Switch 1
|
¤ Randomize Switch 2
|
| ¤ Randomize Switch 3 |
| Trigger |
| Conditions: |
¤ Switch 1 is Set
|
¤ Switch 2 is Set
|
| ¤ Switch 3 is Set |
| Actions: |
¤ Give all Launcher owned by Player 7 at Anywhere to Player 1
|
¤ Modify death counts for Player 1: Set to 0 for '1 = Victim'
|
| ¤ Modify death counts for Players 2-5: Set to 1 for '1 = Victim' |
| Trigger |
| Conditions: |
¤ Current Player Commands at least 1 Launcher
|
| ¤ Current Player Commands exactly 0 Ban Player |
| Actions: |
¤ Give all Launcher owned by Players at Anywhere to Player 7
|
¤ Randomize Switch 1
|
¤ Randomize Switch 2
|
| ¤ Randomize Switch 3 |
SO, at the start, it randomizes the switches. Through normal randomizing processes, it gives units to players accordingly. What's SUPPOSED to happen, is that a player gets a defeat (banned) if they do not have the 'Ban Trigger' unit. By default, if a player isn't there, any preplaced units for that player won't be placed.
When I play the map, Randomizing ALWAYS chooses Player 5. There is nothing I can find that's wrong with the triggering, but it always chooses Player 5 to be the Launcher player. Not only that, the last trigger doesn't work (Not all conditions are satisfied?). But Player 5 in fact does not have the Ban Player unit and DOES have the Launcher Unit.
FINALLY, can anybody see if there's anything wrong? I can provide the map, but triggering is very complicated (At least 400 triggers) and you might not be able to find/understand it all.