Iniciado
Barra de Salud : 
Mensajes : 9
Reputación : 0 Monedas de oro : 35 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Finalizar juego Miér Jun 04, 2014 12:05 pm | |
| [gui]VictoryL 1 Events Unit - A unit Dies Conditions And - All (Conditions) are true Conditions (Player 7 (Green) slot status) Equal to Has left the game (Player 8 (Pink) slot status) Equal to Has left the game (Player 9 (Gray) slot status) Equal to Has left the game (Player 10 (Light Blue) slot status) Equal to Has left the game (Player 11 (Dark Green) slot status) Equal to Has left the game Actions Game - Victory Player 1 (Red) (Show dialogs, Show scores) Game - Victory Player 2 (Blue) (Show dialogs, Show scores) Game - Victory Player 3 (Teal) (Show dialogs, Show scores) Game - Victory Player 4 (Purple) (Show dialogs, Show scores) Game - Victory Player 5 (Yellow) (Show dialogs, Show scores) Game - Defeat Player 7 (Green) with the message: 失败! Game - Defeat Player 8 (Pink) with the message: 失败! Game - Defeat Player 9 (Gray) with the message: 失败! Game - Defeat Player 10 (Light Blue) with the message: 失败! Game - Defeat Player 11 (Dark Green) with the message: 失败![/gui]
Tengo este trigger pero lo que pasa es que cuando salen todos los jugadores el juego continua. Querian hacer un host bot de este mapa pero no lo aceptan porque cuando todos los jugadores salen el juego continua. que podriamos hacer? para arreglar esto?
Todos los jugadores salen, el juego termina.
[gui]VictoryL 2 Events Unit - A unit Dies Conditions (Black Citadel 0015 is dead) Equal to True Actions Game - Victory Player 1 (Red) (Show dialogs, Show scores) Game - Victory Player 2 (Blue) (Show dialogs, Show scores) Game - Victory Player 3 (Teal) (Show dialogs, Show scores) Game - Victory Player 4 (Purple) (Show dialogs, Show scores) Game - Victory Player 5 (Yellow) (Show dialogs, Show scores) Game - Defeat Player 7 (Green) with the message: 失败! Game - Defeat Player 8 (Pink) with the message: 失败! Game - Defeat Player 9 (Gray) with the message: 失败! Game - Defeat Player 10 (Light Blue) with the message: 失败! Game - Defeat Player 11 (Dark Green) with the message: 失败! [/gui]
[gui]VictoryR 2 Events Unit - A unit Dies Conditions (Castle 0014 is dead) Equal to True Actions Game - Defeat Player 1 (Red) with the message: 失败! Game - Defeat Player 2 (Blue) with the message: 失败! Game - Defeat Player 3 (Teal) with the message: 失败! Game - Defeat Player 4 (Purple) with the message: 失败! Game - Defeat Player 5 (Yellow) with the message: 失败! Game - Victory Player 7 (Green) (Show dialogs, Show scores) Game - Victory Player 8 (Pink) (Show dialogs, Show scores) Game - Victory Player 9 (Gray) (Show dialogs, Show scores) Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores) Game - Victory Player 11 (Dark Green) (Show dialogs, Show scores)[/gui]
Última edición por kolling4 el Miér Jun 04, 2014 12:28 pm, editado 1 vez |
|


Barra de Salud : 
Mensajes : 3666
Reputación : 734 Monedas de oro : 11254 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Finalizar juego Miér Jun 04, 2014 12:25 pm | |
| Cambia tu tag "code" por "gui" para que pueda leer bien los triggers
Edit: puedes usar Pause all units |
|
Iniciado
Barra de Salud : 
Mensajes : 9
Reputación : 0 Monedas de oro : 35 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Finalizar juego Miér Jun 04, 2014 12:30 pm | |
| [gui]Leaver 1 Events Player - Player 1 (Red) leaves the game Conditions (Triggering player) Equal to Player 1 (Red) Actions Set LeaverGoldAver[1] = ((Player 1 (Red) Current gold) / (PlayerCountL - 1)) Set LeaverWoodAver[1] = ((Player 1 (Red) Current lumber) / (PlayerCountL - 1)) Set PlayerCountL = (PlayerCountL - 1) Set PlayerLeft[(Player number of (Triggering player))] = True Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) is A Hero) Equal to True Then - Actions Unit - Move (Picked unit) instantly to (Center of LeaverHum ) Else - Actions Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions) Loop - Actions Player - Make Player 1 (Red) treat (Picked player) as an Ally Player - Make Player 1 (Red) treat Player 6 (Orange) as an Ally Game - Display to (All players) the text: ((***** + (Name of (Triggering player))) + ***** |cffdf0000has left game|r, ) Wait 0.10 game-time seconds Trigger - Turn off (This trigger)[/gui]
Esto es cuando salen los jugadores todos los jugadores tienen su propio trigger
[gui]Leaver 11 Events Player - Player 11 (Dark Green) leaves the game Conditions (Triggering player) Equal to Player 11 (Dark Green) Actions Set LeaverGoldAver[11] = ((Player 11 (Dark Green) Current gold) / (PlayerCountR - 1)) Set LeaverWoodAver[11] = ((Player 11 (Dark Green) Current lumber) / (PlayerCountR - 1)) Set PlayerCountR = (PlayerCountR - 1) Set PlayerLeft[(Player number of (Triggering player))] = True Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) is A Hero) Equal to True Then - Actions Unit - Move (Picked unit) instantly to (Center of LeaverUD ) Else - Actions Player Group - Pick every player in (All allies of Player 7 (Green)) and do (Actions) Loop - Actions Player - Make Player 11 (Dark Green) treat (Picked player) as an Ally Player - Make Player 11 (Dark Green) treat Player 12 (Brown) as an Ally Game - Display to (All players) the text: ((***** + (Name of (Triggering player))) + ***** |cffdf0000has left game|r,) Wait 0.10 game-time seconds Trigger - Turn off (This trigger)[/gui] |
|
Iniciado
Barra de Salud : 
Mensajes : 9
Reputación : 0 Monedas de oro : 35 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Finalizar juego Miér Jun 04, 2014 1:27 pm | |
| [gui]PlayerCount Events Time - Elapsed game time is 1.00 seconds Conditions Actions For each (Integer A) from 1 to 5, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Player((Integer A))) slot status) Equal to Is playing Then - Actions Set PlayerCountL = (PlayerCountL + 1) Else - Actions For each (Integer B) from 7 to 11, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Player((Integer B))) slot status) Equal to Is playing Then - Actions Set PlayerCountR = (PlayerCountR + 1) Else - Actions Set PlayerCountAll = (PlayerCountL + PlayerCountR)[/gui]
|
|
 | (#) Tema: Re: Finalizar juego  | |
| |
|