How can I check if in the region X, were 6 players units fought, who is the one that stand alive, so I ask for a kind of trigger that detects which players are already defeated, and which one is the winner. Suggestions please, I dont know. :S
I made 6 triggers like this one but aint worked T_T:
I made 6 triggers like this one but aint worked T_T:
Trigger:
- Set Temp_Group = (Units in Region de Batalla <gen> matching (((Matching unit) is alive) Igual a True))
- Unit Group - Pick every unit in Temp_Group and do (Actions)
- Bucle: Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If: Conditions
- (Owner of (Picked unit)) Igual a Jugador 1 (rojo)
- Entonces: Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If: Conditions
- (Owner of (Picked unit)) Not equal a Jugador 2 (azul)
- (Owner of (Picked unit)) Not equal Jugador 3 (teja)
- (Owner of (Picked unit)) Not equal Jugador 4 (morado)
- (Owner of (Picked unit)) Not equal Jugador 5 (amarillo)
- (Owner of (Picked unit)) Not equal Jugador 6 (naranja)
- ((This trigger) is on) Igual a True
- Entonces: Acciones
- Detonador - Turn off (This trigger)
- Set Bonus = 1
- Game - Display to (All players) for 8.00 seconds the text: ((Name of Player 1 (red)) + ( is the winner for this round +600 blood points ! + <!>))
- Player - Add 600 to Player 1 (red) Current Wood
- Otros: Acciones
- If: Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Otros: Acciones
- If: Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Bucle: Actions
- Unit Group - Pick every unit in Temp_Group and do (Actions)