| 11-24-2003, 06:04 PM | #1 |
Everything I do with player 1 is done for ALL other USER-controlled players too. I tested the map with 2 players, one of us left and I got only 1/4 of his gold. Code:
TRIGGER 1:
E: Player 1 leaves
A: Game - Grant shared vision and full shared unit control of (triggering player) units with his/her allies
A: Game - Display to (All players) the text: ((Name of (triggering player)) + has left the game.)
A: Player Group - Add (triggering player) to "HumanLeavers"
TRIGGER 2:
E: Time - Every 60.00 second of the game time
A: Set "HumanPlayerInGame" = 0
A: If (Player 1 (Red) Slot status) Equal to Is Playing
TA: Set "HumanPlayersInGame" = ("HumanPlayersInGame"+1)
A: If (Player 1 (Red) is in HumanLeavers) Equal to True
TA: Set "HumanLeaversGold" = ("HumanLeaversGold" + (Player 1 (Red) Current gold))
TA: Player - Set Player 1(Red) Current gold to 0
A:If (Player 1 (Red) Slot status) Equal to Is Playing
TA: Player - Add ("HumanLeaversGold" / "HumanPlayersInGame") to Player 1 (Red) Current gold
A: If ("HumanLeaversGold" / "HumanPlayersInGame") Not equal to 0
TA: Game - Display to (All allies of Player 1 (Red)) the text: (You recieved + ((String(("HumanLeaverGold" / "HumanPlayersInGame"))) + gold from the leavers in your team.))
A: Set "HumanLeaversGold" = 0 |
| 11-24-2003, 06:11 PM | #2 |
Trigger 1: The event dont work, make E-every 1 second of game time C-Player slot status(player 1 has left the game) |
| 11-24-2003, 08:03 PM | #3 |
You have wrong! This is an umswe event and the message "blahblahblah has left the game." works. I asked what was wrong with the triggers, not if I can make them... I know they work but what makes me get 1/4 instead of 1/1? |
| 11-25-2003, 02:27 PM | #4 |
PLZ HELP ME, DONT LET THIS FALL DOWN! |
