HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What is wrong with player 2??

10-29-2006, 02:55 AM#1
Moss
Any idea why this trigger would not work for player 2? (ie. Player 2 does not get control of any ally units when the ally leaves.)

Trigger:
PlayerLeaves Copy
Collapse Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Collapse Actions
Set pg = (All allies of (Triggering player))
Player Group - Remove (Triggering player) from pg
Collapse Player Group - Pick every player in pg and do (Actions)
Collapse Loop - Actions
Player - For (Triggering player), turn Shared units On toward (Picked player)

The forces are players 1,3,4,5,6,7 and 2,8,9,10,11,12. All the settings are the same under Player Properties: Human, User, Fixed Start Location. I don't know of any triggers that could be screwing with player two. But what possible trigger action could muck up player 2's allying like this?
10-29-2006, 02:58 AM#2
TaintedReality
It works for every other player from 1-12, except for player 2? That looks perfectly fine, it must be some other trigger.
10-29-2006, 04:36 AM#3
Naakaloh
Try including the
Trigger:
Player - Player X leaves the game with a defeat
Player - Player X leaves the game with a victory
events as well.
10-29-2006, 05:43 AM#4
Moss
If they leave with a defeat or a victory the game is over so why would I care? I guess you didn't know it is a two team game but now you do.

Would this cause problems? It is run at map init and again after the trigger I already posted.

Trigger:
Player - Make Player 2 (Blue) treat Neutral Extra as an Ally with shared vision
Player - Make Neutral Extra treat Player 2 (Blue) as an Ally with shared vision
Player - Make Neutral Victim treat Player 2 (Blue) as an Enemy
Player - Make Player 2 (Blue) treat Neutral Victim as an Enemy

I only need it for when I am testing because things go wonky if the player 2 slot is empty. I definetly don't need it to run after the Player Leaves trigger but it is just bundled with some other actions that do need to be run. I can't easily test this because I need three players.

What do the Ally Priorities map settings do? Would they have an effect?

EDIT: It looks like it was these actions that caused the bug but why? So problem solved, I think, but that was weird.