Due to the amount of games with leavers AND the fact that like all games on the bnet dont use such a system, i decided to post my system here, might be common knowledge or whatever, but maybe someone decides to use it:
for a different spawn place, just create an array rect variable with the spawn rects saved within, then check if the unit spawned in rect 1 before, change it to 2 then, and the other way around
-
Balancing
-

Events
-


Player - Player 1 (Red) types a chat message containing -bal as A substring
-
-

Conditions
-


(Substring((Entered chat string), 1, 5)) Equal to -bal
-
-

Actions
-


Set Playernumber = (Integer((Substring((Entered chat string), 6, 7))))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Playernumber Greater than or equal to 2
-




Playernumber Less than or equal to 12
-
-



Then - Actions
-




Set Player = (Player(Playernumber))
-




Set Enemies = (All allies of Player)
-




Set Allies = (All enemies of Player)
-




Player Group - Make Enemies treat (All players matching ((Matching player) Equal to Player)) as an Enemy
-




Player Group - Make Allies treat (All players matching ((Matching player) Equal to Player)) as an Ally with shared vision
-




Player Group - Make (All players matching ((Matching player) Equal to Player)) treat Allies as an Ally with shared vision
-




Player Group - Make (All players matching ((Matching player) Equal to Player)) treat Enemies as an Enemy
-




Player Group - Pick every player in (All allies of Player) and do (Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Unit - Order (Picked unit) to Stop))
-




Set Playernumber = 0
-
-



Else - Actions
-




Do nothing
-
-
-
-
for a different spawn place, just create an array rect variable with the spawn rects saved within, then check if the unit spawned in rect 1 before, change it to 2 then, and the other way around
Last edited by a moderator:
