Changing Starts

whyhellothere

Chieftain
Joined
Jun 17, 2014
Messages
3
How would i go about changing the amount of starting settlers every player gets? For example 7.
Also changing the number of plot a city is founded with.
 
You can change what units a player starts with by adding rows in the Civilization_FreeUnits table.

As for changing the number of plots a city starts with, I'm not sure if there is a simple XML value you can change, but you can probably use plot:SetOwner when a city is founded (this would require some lua).
 
So before: {
<Table name="Civilization_FreeUnits">
<Column name="CivilizationType" type="text" reference="Civilizations(Type)"/>
<Column name="UnitClassType" type="text" reference="UnitClasses(Type)"/>
<Column name="UnitAIType" type="text" reference="UnitAIInfos(Type)"/>
<Column name="Count" type="integer"/>
</Table>
}
After:{
<Table name="Civilization_FreeUnits">
<Column name="CivilizationType" type="text" reference="Civilizations(Type)"/>
<Column name="UnitClassType" type="text" reference="UnitClasses(Type)"/>
<Column name="UnitAIType" type="text" reference="UnitAIInfos(Type)"/>
<Column name="Count" type="integer"/>
<Row><Count>7</Count></Row>
</Table>
}
Not really familiar with xml, don't really understand it at all. Lua on the other hand I almost know what i'm doing
 
for i = 0, GameDefines.MAX_CIV_PLAYERS-1, 1 do
if Players:IsEverAlive() then

pPlayer = Players;
pTeam = Teams[pPlayer:GetTeam()];
pcapital = pPlayer:GetCapitalCity();
iUnitID = GameInfoTypes["UNIT_SETTLER"];


unit:JumpToNearestValidPlot();

end

i=i+1;
end

tried this but it crashs the game
 
Also changing the number of plot a city is founded with.
Provided you only want to add plots (ie all ring 0 and ring 1 plots as standard and then some more) you can just give every player the bit of the Shoshone trait that does this
 
Back
Top Bottom