Maniac
Apolyton Sage
gc.getTeam(0).addTeam(1) doesn't work.
Any idea what's the correct command and syntax??
Any idea what's the correct command and syntax??
gc.getTeam(0).addTeam(1) doesn't work.
Any idea what's the correct command and syntax??
def onBeginPlayerTurn(self, argsList):
'Called at the beginning of a players turn'
iGameTurn, iPlayer = argsList
if iGameTurn == 15:
if gc.getPlayer(iPlayer).isHuman():
gc.getTeam(gc.getPlayer(iPlayer).getTeam()).addTeam(2)
I actually tested this, and it appears that you CAN have more than two players in one team.But to note: A team can't be bigger than 2 members.
So if the human team has already 2 players, the command will just not have an effect.
How did you test it?
Before you start a game, you can pre-set teams with more members, but not ingame.
It's also not possible via normal diplomacy to form a team with more members.
It doesn't work for me.![]()
It doesn't work for me.![]()
For some reason, if you just press ~, you get that- a grey window which looks like the Python console. However, if you try to do anything in it, you get syntax errors.
To bring up the actual console, you must use SHIFT + ~, and sometimes that doesn't even work.
I wonder why shift works so badly for the in-game console. Eg when I type addTeam fast, I get addTEAm or so.