- Joined
- Mar 17, 2012
- Messages
- 105
solved
Take a 5 player game where each player has an allied Computer player, such that:
Player 1 (Red) allied to Player 6 (Orange)
Player 2 (Blue) allied to Player 7 (Green)
Player 3 (Teal) allied to Player 8 (Pink)
In a trigger, a Human controlled unit does an action (lets say, casts an ability). When this ability is cast, a Footman is created, owned by the appropriate allied Computer player. This function works for each player (Red, Blue, Teal, Purple, Yellow). I'd like this to be able to work without an If/Then/Else statement for each player. I've tried using Array Player variables and Player Group variables but have been unable to figure anything out. Does anyone have any ideas?
Take a 5 player game where each player has an allied Computer player, such that:
Player 1 (Red) allied to Player 6 (Orange)
Player 2 (Blue) allied to Player 7 (Green)
Player 3 (Teal) allied to Player 8 (Pink)
In a trigger, a Human controlled unit does an action (lets say, casts an ability). When this ability is cast, a Footman is created, owned by the appropriate allied Computer player. This function works for each player (Red, Blue, Teal, Purple, Yellow). I'd like this to be able to work without an If/Then/Else statement for each player. I've tried using Array Player variables and Player Group variables but have been unable to figure anything out. Does anyone have any ideas?
Last edited: