I have used the search function 4-5 times with various requests, and gone through about 20 pages of results, to no avail. I am looking to make a team swap system, so that a player can move from 1 team to another.
the non important stuff: team swaps must be voted on, that is, someone will type -teamswap then 2 other people must type -yes. After that I plan for a box to pop up, where you vote for the player you want swapped to its opposing team. (only from higher to lower teams) I can figure all of this out on my own though; it is just some background on what I have planned.
The Problem:
Actually having a player switch teams without causing problems. Because many things are based on ally of player red, and ally of player green, I was wondering if I could completely change a players team color. Like, make player 1 (red) become an absent player, still on team 1, and moving player 1, and all units to be player 7 or something. If this isnt possible, I could simply say that green and red cannot swap teams; but I would rather not limit what players can do.
So uhh; I'm looking for a non-buggy way to do this. Assuming red and green couldnt swap teams, I could simply say, add Player 2 to (Team2) remove player 2 from (Team1) and re-run my triggers, (Makes team2 treat team1 as enemy) + (makes team1 treat team2 as enemy) and the same things with making everyone in the groups allies with shared vision.
I am not at my WE so cant test this; so I figured I could ask you guys, to ensure I make this right on my first try.
So, please, comment, add things I may have missed. If i am completely wrong, tell me. If anyone knows a much better way of going about this, also chime in.
the non important stuff: team swaps must be voted on, that is, someone will type -teamswap then 2 other people must type -yes. After that I plan for a box to pop up, where you vote for the player you want swapped to its opposing team. (only from higher to lower teams) I can figure all of this out on my own though; it is just some background on what I have planned.
The Problem:
Actually having a player switch teams without causing problems. Because many things are based on ally of player red, and ally of player green, I was wondering if I could completely change a players team color. Like, make player 1 (red) become an absent player, still on team 1, and moving player 1, and all units to be player 7 or something. If this isnt possible, I could simply say that green and red cannot swap teams; but I would rather not limit what players can do.
So uhh; I'm looking for a non-buggy way to do this. Assuming red and green couldnt swap teams, I could simply say, add Player 2 to (Team2) remove player 2 from (Team1) and re-run my triggers, (Makes team2 treat team1 as enemy) + (makes team1 treat team2 as enemy) and the same things with making everyone in the groups allies with shared vision.
I am not at my WE so cant test this; so I figured I could ask you guys, to ensure I make this right on my first try.
So, please, comment, add things I may have missed. If i am completely wrong, tell me. If anyone knows a much better way of going about this, also chime in.