Greetings once again to the lovely Hive Community!
I have a trigger here that should seem to be straight forward but i currently cannot seem to fix this and my brain has started to hurt.
All in all what its supposed to do is take the amount of players and divide them into wether it should be 1, 2, 3 or 4 teams and it does just that, but, hitting an uneven number after 5 means someone is left out.
Example:
1. 5 players enter the game, all 5 players hit "Team1"
2. 7 players enter the game, 3 players go on "Team1" and "Team2" but then 1 person goes on "Team3" because of how i made it, obviously i see whats going wrong, but the only solution i can come up with is writing all the "equal to" individually, and that is not going to happen, any ideas on how to fix this?
(Individually i mean like if playertotal = 20 then set teamsize to 5, and if playertotal = 19 set teamsize to 5 and stuff like that, reeeeaally dont wanna do that)
I have a trigger here that should seem to be straight forward but i currently cannot seem to fix this and my brain has started to hurt.
All in all what its supposed to do is take the amount of players and divide them into wether it should be 1, 2, 3 or 4 teams and it does just that, but, hitting an uneven number after 5 means someone is left out.
Example:
1. 5 players enter the game, all 5 players hit "Team1"
2. 7 players enter the game, 3 players go on "Team1" and "Team2" but then 1 person goes on "Team3" because of how i made it, obviously i see whats going wrong, but the only solution i can come up with is writing all the "equal to" individually, and that is not going to happen, any ideas on how to fix this?
(Individually i mean like if playertotal = 20 then set teamsize to 5, and if playertotal = 19 set teamsize to 5 and stuff like that, reeeeaally dont wanna do that)
-
TeamSizeControl
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerTotal Greater than 15
-
-
Then - Actions
-
Set VariableSet TeamSize = (PlayerTotal / 4)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerTotal Greater than 10
-
PlayerTotal Less than or equal to 15
-
-
Then - Actions
-
Set VariableSet TeamSize = (PlayerTotal / 3)
-
Set VariableSet TeamSize = (PlayerTotal / 3)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerTotal Greater than 5
-
PlayerTotal Less than or equal to 10
-
-
Then - Actions
-
Set VariableSet TeamSize = (PlayerTotal / 2)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerTotal Greater than 0
-
PlayerTotal Less than or equal to 5
-
-
Then - Actions
-
Set VariableSet TeamSize = PlayerTotal
-
-
Else - Actions
-
-
-
-
-
-
-
-
-