Autobalance Teams

0zaru

Learning vJASS ;)
Reaction score
60
hmmm is there a way to do that ?

Ex: You have one team with 3 players and another with 5 players.. and in the some moment Rebalance the teams (Or when someone quits the game)
 
R

Ricky

Guest
Hi

Hi~Ricky

Hi it might just be me or is there actually a meaning in this thread?:)
 
K

Kota

Guest
Event-
Number of players in (Group 1) is not equal to (Group 2)

Conditions
Wutever u want

Actions
Set Variable 1= (Group with less players)
Set Variable 2= (Group with Most Players)
Move ((1)(Random)) Player from (Variable 2) to (Variable 1)


OR

Event- Every 10 seconds of game

Conditions
Number of players in Group 1 not equal to Group 2 equal to true

Same Actions

VARIABLES
SET EACH PERSON IN GROUP 1 TO GROUP 1
SAME WITH GROUP 2
PUT IN INITILIZATION TRIGGER
 
R

Ricky

Guest
Ok

Ok~Ricky

Ok......Im getting terably confused is he asking how to make people change team?:confused: :confused:
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
I do believe he is asking how to make the team with 3 players, stronger than normal, so they have a chance on still winning VS 5 players in the other.
If so, add an upgrade on all heroes, then if someone leaves, increase the upgrade level of that upgrade you have put on all heroes, that for example, gives 50 hp, 1 dmg and 1 % attack speed.. (depends on the map l0l..);)
OR, if im wrong, yes, just switch one player from the team that has 5 players, over to the team that has 3 players. :)
Cheerio;)
 
T

toast

Guest
Do some math or whatnot to figure who should go where, then use Player - Set Alliance. While the moved players are not technically on the same team (I don't believe) you should be fine as long as you have player group variables tracking the teams you've made.
 

Kenoriga

Ultra Cool Member
Reaction score
34
You are thinking of the autobalancing like those Counterstrike games?

Then I suggest you check each team's number of players and move them accordingly.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top