(Lua) Player / Team

ntr0py

Chieftain
Joined
Mar 30, 2011
Messages
45
Location
Switzerland
So after reading the modding guide, searching the web and browsing through the wikis (what is with the missing picture spam, it's really hard to read) I think I understand the basic stuff, but the Objects, Instances are explained quite poorly for a game this heavily modded.

One basic thing I haven't found any specific information on is what is the difference between "Player" and "Team", what do these instances represent. As an example, "Declaration of Friendship" isn't available for Player and you need to access Team to get it.

I'm confused. Any help is appreciated.
 
Assume a 4 player, single player game

Players are playerA, playerB, playerC and playerD

If you don't change anything in the setup screen, each of these players is in a single player team - playerA in team1, playerB in team2 etc

However, you could decide to play "A and B" vs "C and D", in which case both playerA and playerB would be in team1 and both playerC and playerD would be in team2

Techs are known by teams (not players), wars are declared between teams, etc

So if playerA declares war on playerD what actually happens is that team1 declares war on team2, so playerB will also find themselves at war with playerC
 
Back
Top Bottom