Local Variable: PlayersFound = new Player Group.
Local Variable: PlayerGroupsFound = 0 (Integer)
Pick each player in playergroup (Active Players)
Actions
If (Not (Picked player in player group (PlayersFound) ) )
Then
Set GlobalVariable_Playergroups[PlayerGroupsFound] = Allies of Player (Picked Player)
Pick Each Player in Player Group (Allies of Player(Picked Player))
Actions
Add Player (Picked Player) to Player Group (PlayersFound)
Modify Variable (PlayerGroupsFound) : + 1
Text Message ( (IntToText(PlayerGroupsFound) + " Teams have been found." )
Well this will result in an array containing the player groups, assuming that all teams are hostile with all other teams at map generation.
you can use triggers to change the teams alliances afterwards.
Kinda curious about this since it came up in a testing session.
you can sortof.
Local Variable: PlayersFound = new Player Group.
Local Variable: PlayerGroupsFound = 0 (Integer)
Pick each player in playergroup (Active Players)
Actions
If (Not (Picked player in player group (PlayersFound) ) )
Then
Set GlobalVariable_Playergroups[PlayerGroupsFound] = Allies of Player (Picked Player)
Pick Each Player in Player Group (Allies of Player(Picked Player))
Actions
Add Player (Picked Player) to Player Group (PlayersFound)
Modify Variable (PlayerGroupsFound) : + 1
Text Message ( (IntToText(PlayerGroupsFound) + " Teams have been found." )
Well this will result in an array containing the player groups, assuming that all teams are hostile with all other teams at map generation.
you can use triggers to change the teams alliances afterwards.
@Helral: Go
Thank you quite so much.
@LemonKing: Go
someone might have an easier way.
@Helral: Go
True, I'm trying atm to find some of the calls you made under Not right now.
@LemonKing: Go
Well, I found a better solution, but was really really hard to find some with really deep calls. /undocumented
@LemonKing: Go
maybe you could list that method here for other people who might want to use it XD
I will in the future, I've found something else thats undocumented which is quite useful too.
Let the future be now :P I also really want/need to know how to get triggers interacting with team structures.