I would love to know if that is possible since I didn't find a function for that if not well I would love to find a way to give the defeat screen for all players except X (who is the winner).
Here are my victory conditions:
VictoryConditionsFFAEventsTimer-Every5.0secondsofGameTimeLocalVariablesLosers=(Emptyplayergroup)<PlayerGroup>x=0<Integer>Conditions(Useddialogitem)==ffaActionsGeneral-Foreachintegerxfrom1to8withincrement1,do(Actions)ActionsVariable-SetProtossRooms[x] = (Beacon (Protoss Large) units in (Entire map) owned by player x matching Excluded: Missile, Dead, Hidden, with at most Any Amount)
Variable - Set TerranRooms[x] = (Beacon (Terran Large) units in (Entire map) owned by player x matching Excluded: Missile, Dead, Hidden, with at most Any Amount)
Variable - Set ZergRooms[x] = (Beacon (Zerg Large) units in (Entire map) owned by player x matching Excluded: Missile, Dead, Hidden, with at most Any Amount)
Unit Group - Add all units in ZergRooms[x] to ProtossRooms[x]
Unit Group - Add all units in TerranRooms[x] to ProtossRooms[x]
Variable - Set TotalRoomsN[x] = (Number of Living units in ProtossRooms[x])
General - If (Conditions) then do (Actions) else do (Actions)
If
TotalRoomsN[x] == 45
Then
Variable - Set Losers = (Enemies of player x)
Game - End game in Victory for player x (Show dialogs, Show score screen)
Game - End game in Defeat for the enemies(obviously this doesnt exist :P hence why i am posting)
Else
To answer your question, you should use a Player Group function. i.e.
"Pick every player in Enemies and do (End game in defeat for Picked Player)"
Something like that anyway. The rest of your trigger seems very weird though.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
End Game in Defeat/Win for a player group.
I would love to know if that is possible since I didn't find a function for that if not well I would love to find a way to give the defeat screen for all players except X (who is the winner).
Here are my victory conditions:
Thanks in advance
I'm not sure what you're doing in the actions part, but why is there a (Used dialog item) in the conditions when the event is not a dialog event?
To answer your question, you should use a Player Group function. i.e. "Pick every player in Enemies and do (End game in defeat for Picked Player)" Something like that anyway. The rest of your trigger seems very weird though.