How to add MinorCiv? AddPlayer works for me only for Major Civs.
--Game.addPlayer(PlayerTypes eNewPlayer, LeaderHeadTypes eLeader, CivilizationTypes eCiv);
Game.AddPlayer(2, 13, 11); --2 next free player index, 11japan, 13oda
player = Players[2];
local x= 1;
local y= 1;
local plot = Map.GetPlot(x, y);
NewLandPlayerStartPlot = plot:GetNearestLandPlot();
player:SetStartingPlot(NewLandPlayerStartPlot);
This code adds Japan, but if I want to add Helsinki:
Game.AddPlayer(26, 3, 11); --26 next free player index, 3minor 11helsinki
player = Players[26];
player:SetOption(IsMinorCiv, true); --it doesn't work
player:SetOption(IsPlayable, false); --it doesn't work
local x= 1;
local y= 1;
local plot = Map.GetPlot(x, y);
NewLandPlayerStartPlot = plot:GetNearestLandPlot();
player:SetStartingPlot(NewLandPlayerStartPlot);
It adds Barbarian, not Helsinki?
Map Script: ------------------------------- CIVS:
Map Script: NEF: GetID(): 0 playerStartPlot: x- 13 y- 11 GetLeaderType(): 8 GetMinorCivTrait(): -1 Team: 0 Personality: -1 PersonalityType: 8 Playable: 1 GetName(): Gandhi
Map Script: NEF: GetID(): 1 playerStartPlot: x- 21 y- 8 GetLeaderType(): 19 GetMinorCivTrait(): -1 Team: 1 Personality: -1 PersonalityType: 19 Playable: 1 GetName(): Nebuchadnezzar II
Map Script: NEF: GetID(): 22 playerStartPlot: x- 19 y- 3 GetLeaderType(): 3 GetMinorCivTrait(): 2 Team: 22 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Cape Town
Map Script: NEF: GetID(): 23 playerStartPlot: x- 15 y- 16 GetLeaderType(): 3 GetMinorCivTrait(): 1 Team: 23 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Edinburgh
Map Script: NEF: GetID(): 24 playerStartPlot: x- 10 y- 16 GetLeaderType(): 3 GetMinorCivTrait(): 2 Team: 24 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Copenhagen
Map Script: NEF: GetID(): 25 playerStartPlot: x- 24 y- 3 GetLeaderType(): 3 GetMinorCivTrait(): 0 Team: 25 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Monaco
Map Script: NEF: GetID(): 26 playerStartPlot: x- 4 y- 8 GetLeaderType(): 3 GetMinorCivTrait(): -1 Team: 26 Personality: -1 PersonalityType: 3 Playable: 1 GetName(): Barbarian
Map Script: -------------------------------
--Game.addPlayer(PlayerTypes eNewPlayer, LeaderHeadTypes eLeader, CivilizationTypes eCiv);
Game.AddPlayer(2, 13, 11); --2 next free player index, 11japan, 13oda
player = Players[2];
local x= 1;
local y= 1;
local plot = Map.GetPlot(x, y);
NewLandPlayerStartPlot = plot:GetNearestLandPlot();
player:SetStartingPlot(NewLandPlayerStartPlot);
This code adds Japan, but if I want to add Helsinki:
Game.AddPlayer(26, 3, 11); --26 next free player index, 3minor 11helsinki
player = Players[26];
player:SetOption(IsMinorCiv, true); --it doesn't work
player:SetOption(IsPlayable, false); --it doesn't work
local x= 1;
local y= 1;
local plot = Map.GetPlot(x, y);
NewLandPlayerStartPlot = plot:GetNearestLandPlot();
player:SetStartingPlot(NewLandPlayerStartPlot);
It adds Barbarian, not Helsinki?
Map Script: ------------------------------- CIVS:
Map Script: NEF: GetID(): 0 playerStartPlot: x- 13 y- 11 GetLeaderType(): 8 GetMinorCivTrait(): -1 Team: 0 Personality: -1 PersonalityType: 8 Playable: 1 GetName(): Gandhi
Map Script: NEF: GetID(): 1 playerStartPlot: x- 21 y- 8 GetLeaderType(): 19 GetMinorCivTrait(): -1 Team: 1 Personality: -1 PersonalityType: 19 Playable: 1 GetName(): Nebuchadnezzar II
Map Script: NEF: GetID(): 22 playerStartPlot: x- 19 y- 3 GetLeaderType(): 3 GetMinorCivTrait(): 2 Team: 22 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Cape Town
Map Script: NEF: GetID(): 23 playerStartPlot: x- 15 y- 16 GetLeaderType(): 3 GetMinorCivTrait(): 1 Team: 23 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Edinburgh
Map Script: NEF: GetID(): 24 playerStartPlot: x- 10 y- 16 GetLeaderType(): 3 GetMinorCivTrait(): 2 Team: 24 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Copenhagen
Map Script: NEF: GetID(): 25 playerStartPlot: x- 24 y- 3 GetLeaderType(): 3 GetMinorCivTrait(): 0 Team: 25 Personality: -1 PersonalityType: 3 Playable: 0 GetName(): Monaco
Map Script: NEF: GetID(): 26 playerStartPlot: x- 4 y- 8 GetLeaderType(): 3 GetMinorCivTrait(): -1 Team: 26 Personality: -1 PersonalityType: 3 Playable: 1 GetName(): Barbarian
Map Script: -------------------------------