Fix teams after the game starts

Running_dap

New Member
Reaction score
3
In the new map im making, the team by default are:

Team 1: Player 1, Player 2, NPC troops(wave of creeps)
Team 2: Player 3, Player 4, NPC troops(wave of creeps)
Team 3: Player 5, Player 6, NPC troops(wave of creeps)
Team 4: Player 7, Player 8, NPC troops(wave of creeps)

so the game is 2v2v2v2
The total number of players here are 12(including the waves of creeps ofc), so there is no problem with that.

Now, i want to give the players the ability to alter the number of people in each team like this:

Team 1: Player 1, Player 2, Player 3, NPC
Team 2: Player 4, Player 5, Player 6, NPC
Team 3: Player 7, Player 8, Player 9, NPC

making the game into a 3v3v3
The total number of players here are again 12(including the waves of creeps ofc), so technically speaking there is no problem again.

Do you think that that is possible to make?
Just want to be sure, so that i wont have to make the terrain all over again, if i find out that its impossible to happen.

ty in advance
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, this should work for the player only, and if it's 2vs2 or 3vs3vs3:
Trigger:
  • Change Team Number
    • Events
      • Player - Player 1 (Red) types a chat message containing -change team as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 9, 12)) Equal to 2vs2
        • Then - Actions
          • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision
          • Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally with shared vision
          • Player - Make Player 3 (Teal) treat Player 4 (Purple) as an Ally with shared vision
          • Player - Make Player 4 (Purple) treat Player 3 (Teal) as an Ally with shared vision
          • Player - Make Player 5 (Yellow) treat Player 6 (Orange) as an Ally with shared vision
          • Player - Make Player 8 (Pink) treat Player 7 (Green) as an Ally with shared vision
          • Player - Make Player 7 (Green) treat Player 8 (Pink) as an Ally with shared vision
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 9, 12)) Equal to 3vs3
        • Then - Actions
          • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision
          • Player - Make Player 1 (Red) treat Player 3 (Teal) as an Ally with shared vision
          • Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally with shared vision
          • Player - Make Player 2 (Blue) treat Player 3 (Teal) as an Ally with shared vision
          • Player - Make Player 3 (Teal) treat Player 2 (Blue) as an Ally with shared vision
          • Player - Make Player 3 (Teal) treat Player 1 (Red) as an Ally with shared vision
          • Player - Make Player 4 (Purple) treat Player 5 (Yellow) as an Ally with shared vision
          • Player - Make Player 4 (Purple) treat Player 6 (Orange) as an Ally with shared vision
          • Player - Make Player 5 (Yellow) treat Player 4 (Purple) as an Ally with shared vision
          • Player - Make Player 5 (Yellow) treat Player 6 (Orange) as an Ally with shared vision
          • Player - Make Player 6 (Orange) treat Player 5 (Yellow) as an Ally with shared vision
          • Player - Make Player 6 (Orange) treat Player 4 (Purple) as an Ally with shared vision
          • Player - Make Player 4 (Purple) treat Player 5 (Yellow) as an Ally with shared vision
          • Player - Make Player 7 (Green) treat Player 9 (Gray) as an Ally with shared vision
          • Player - Make Player 8 (Pink) treat Player 7 (Green) as an Ally with shared vision
          • Player - Make Player 8 (Pink) treat Player 9 (Gray) as an Ally with shared vision
          • Player - Make Player 9 (Gray) treat Player 8 (Pink) as an Ally with shared vision
          • Player - Make Player 9 (Gray) treat Player 7 (Green) as an Ally with shared vision
        • Else - Actions


Though, again... No NPC team :(
 

Running_dap

New Member
Reaction score
3
Though, again... No NPC team :(

theres no need to be npc team. just want to be NPC waves(creep waves, like DotA for example), to assist the players and not make the game dull as hell :p

anyway, tyvm for the reply. i know its doable now :D
 
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