| 07-25-2003, 04:38 AM | #1 |
I'm trying to make a trigger which makes it so when a Player leaves, the other players get control of their units. Here is what I'm doing, but it isn't working, what am I doing wrong? (This is just for Player 2) Code:
Events - Time - Every 5.00 seconds of game time Conditions - ((Player 2 (Blue) slot status) Equal to Has left the game) or ((Player 2 (Blue) slot status) Equal to Is unused) Actions - Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Unit - Change ownership of (Triggering unit) to (Random player from (All allies of Player 1 (Red))) and Change Color Won't work, Player 2's units won't go to other players. What am I doing wrong? |
| 07-25-2003, 04:50 AM | #2 |
Code:
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Unit - Change ownership of (Picked unit) to (Random player from (All allies of Player 1 (Red))) and Change color))
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Leaderboard - Change the label for (Picked player) in (Last created leaderboard) to <Player has Left>)
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Player - Add ((Picked player) Current gold) to (Random player from (All allies of Player 1 (Red))) Current gold))
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Player - Set (Picked player) Current gold to 0)that solves all of the stuff dealing wit players leaving and distributing there stuff |
| 07-25-2003, 04:50 AM | #3 |
Thanks, I'll see if that works... |
