You can use the player manager to edit many player related attributes.
Here's an example of how to view a player and edit their starting civilization, architecture and resources.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Players have many attributes, below is a list of most of their attributes which you can change.
You can also set the active players with the player manager. Unfortunately, the game does not support enabling players in 'gaps'. If you want p4 enabled, you need to have p1, p2 and p3 enabled. This is why the 'active' attribute in the player object is read-only.
You can set the active player like:
Disables are used to disable units, buildings and technologies for a certain player.
For example, if you want to disable
siege workshops for player two,
and you want to disable the
market, the tech
Paladins for the fifth player, you can do so like this:
1 2 3 4 5 6 7 8 9 10 11
You can also copy the list of units from one player to another:
1 2 3 4
You can set diplomacy through the player manager or directly per player.
Set diplomacy teams¶
If you want to quickly set the diplomacy in teams where everyone is allied to the rest of the team, you can use the
It accepts a list of lists with integers or
The code below creates four teams of two. This sets the players to ally as you can see with the final
1 2 3 4
Set diplomacy directly¶
You can also set the diplomacy directly for a single player. For example, below you can see that player one is set to enemy with player 5 and player 2, 3 and 4 are set to ally.
This is not mutual!
These function calls will only set the diplomacy one-way.
All 'target' players (2, 3, 4 and 5) are still on the default Enemy stance.
1 2 3