• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Player Group1 - Player Group 2

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,082
So in my trigger I have 2 Player Groups.
1st all Players controlled by Users
2nd a Player Group made of half of them
The problem is that I don't know how to remove Player Group 2 from Player Group 1

I made up to that but I dont know what to do on the "?" or is it correct.
  • Player Group - Pick every player in Player Group 2 and do (Actions)
    • Loop - Actions
      • Player Group - Remove (????????) from Players
PS: Picked player maybe or matching ?
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Tnx

Another question:
Lets say that player 1,2,3,4,6,10 are Playing they go ot Players
How to add player 1,2,3 to Team 1 and 4,6,10 to Team 2
In that order must be like every other combination of playing players
(First half goes to Team 1 Second half goes to Team 2)
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
Player X ?

X is just the players you mentioned, I should have said Player 1 or 2 or whatever you want.

I will try and make the trigger for you.

<<< DONE >>>

  • Actions
    • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Picked player) Equal to Player 1 (Red)
                • (Picked player) Equal to Player 2 (Blue)
                • (Picked player) Equal to Player 3 (Teal)
          • Then - Actions
            • Player Group - Add (Picked player) to Team_1
          • Else - Actions
            • Player Group - Add (Picked player) to Team_2
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
...I still dont get what you are telling me...


PS: I'll explain what exactly I want to do.
So I have 12 slots each of them User or empty, no AI's.
I got 7 triggers for team setting.
1 for FFA (Gona make it later (easy))
3 for random teams of 6,4 and 3 players (ready and tnx for help again)
The problematic one > 3 for team setting by order (the trigger you showed 3 posts before ?)
The first here splits in 2 teams. The seccond in 3 teams. And the third in 4 teams.
So if player 1,5,7,8 play The first triiger will split them to 1,5 VS. 7,8 And thirs will split them to 1VS. 5 VS. 7 VS. 8 (If the trigger cant split them exactly as the third in this example divide the extra players )
If player 1,3,4,5,6,8,9,11,12 play the first will split them to 1,3,4,5,6 VS. 8,9,11,12

--- WAIT--- Just thought that I understand your method...
So it adds 1 player (The first detected user) to Team 1
Then Loop it with condition picked player does not belong to TEAM 1,2,3,4
Each Loop with Different player (huh... thats not exactly Loop :p) by order 1 then 2 then 3 then 4 then 1 again and so on (Thats for 4 teams)
For 2 teams I gona loop 2 teams And for 3 teams I gona loop 3 teams
Am I correct ?
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
The first here splits in 2 teams. The seccond in 3 teams. And the third in 4 teams.
So if player 1,5,7,8 play The first triiger will split them to 1,5 VS. 7,8 And thirs will split them to 1VS. 5 VS. 7 VS. 8 (If the trigger cant split them exactly as the third in this example divide the extra players )
If player 1,3,4,5,6,8,9,11,12 play the first will split them to 1,3,4,5,6 VS. 8,9,11,12

How many team split do you need ? Three splits ?
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Ah after thinking a bit it rly wont work as i need... Maybe I am thinking of too complicated things...

2players - 1v1 all team number
3players - 2 teams - 2v1
3 teams - 1v1v1
4 teams - ...no idea 1v1v1 maybe ? But who would place 4 teams with 3 players ?
4players - 2teams - 2v2
3 teams - 2v1v1 the extra player goes in the 1st team (you will understand witgh higher player number)
4 teams - 1v1v1v1
5players - 2 teams - 3v2 the extra player goes in the 1st team
3 teams - 2v2v1 (here) the extra player goes in the 1st team with lower players
4 teams - 2v1v1v1
6players - 2 teams - 3v3
3 teams - 2v2v2
4 teams - 2v2v1v1 (here again)
7 players - 2 teams - 4v3
3teams - 3v2v2
4teams - 2v2v2v1(here again)
and so on skip to 11players
2 teams - 6v5
3 teams - 4v4v3 (here again)
4 teams - 3v3v3v2 (here again)

But the players go by order:
For example 11players, player 7 not playing, 4 teams
Team 1 - Player 1,2,3
Team 2 - Player 4,5,6
Team 3 - Player 8,9,10
Team 4 - Player 11,12
Second example 7 players , player 3,6,8,9,11 not playing,
4 teams
Team 1 - 1,2
Team 2 - 4,5
Team 3 - 7,10
Team 4 - 12
3teams
Team 1 - 1,2,4
Team 2 - 5,7
Team - 10,12

PS: Lolz shuffling teams (First post is for shuffle) is easier than teams set by order
 
Status
Not open for further replies.
Top