The problem with this trigger is even though it does work, it doesnt seem to recognise the mutual part of the alliance requirement and so if someone allies someone else, they get victory, even if all the other people havent allied them.
- Condition: If the number of Active Players = Number of Picked Player's Allies
- - Then: Do nothing
- - Else: Skip remaining action, trigger fails.
Do whatever you wish now. As for how to count the number of active players, if there isn't already an established function for it, you can do fine with a loop.
Note that Active Players may include non-human players. If this is the case, then add all human players to a player group and use that instead of "Active Players."
Hi I'm having a problem with figuring out how to trigger this.
Basically I want the game to end for all active players if
1) There are no more enemies to kill or 2) if the active players have all allied together and thus there are no more enemies.
What I have so far is this trigger for each player
The problem with this trigger is even though it does work, it doesnt seem to recognise the mutual part of the alliance requirement and so if someone allies someone else, they get victory, even if all the other people havent allied them.
Any help appreciated!
Event:
Players change alliance stance
Action:
Pick All Active Players
- Condition: If the number of Active Players = Number of Picked Player's Allies
- - Then: Do nothing
- - Else: Skip remaining action, trigger fails.
Do whatever you wish now. As for how to count the number of active players, if there isn't already an established function for it, you can do fine with a loop.
@redmarine: Go
Didnt seem to work for me. Will it count player 0 ? hes set to neutral.
Try this:
@BasharTeg: Go
This just ends the game for any player who allies all the playing players, even if they havent allied him. :(
@ArReaper: Go
This condition is used to verify if the player is playable by a player or not. Edit the conditions in this to reflect your player settings
@ArReaper: Go
Ah, I see. Now that I have a better idea of what you want, try this:
Note that Active Players may include non-human players. If this is the case, then add all human players to a player group and use that instead of "Active Players."
@BasharTeg: Go
This seems to be working well. Thank you very much :)
@ArReaper: Go
Glad to hear it. Good luck.