Add starting units

Bocator

Chieftain
Joined
May 30, 2011
Messages
57
Location
France, Île-de-France.
Hi,

after a lots of games where the religion can take centuries to spread to civ (especially England and Russia :wallbash:) I decided to add at least one missionary for these civs.

So I've searched into the Python files to edit starting units but i didn't find where it's supposed to be, and i've searched on the forum where it could be but same result.

Could someone help me please ? Thanks :)
 
It's in the Riseandfall.py file, under the method "createStartingUnits". Add the line utils.makeUnit(con.i[whatever]Missionary, iCiv, tPlot, 1) under the civ you want (just replace whatever with the "Christian" or another prefix). Be careful about the indentation, though.
 
Thanks! I'm going to see that
 
So I've modified and save the file with :

if (iCiv == iRussia):
utils.makeUnit(con.iSettler, iCiv, tPlot, 5)
utils.makeUnit(con.iLongbowman, iCiv, tPlot, 2)
utils.makeUnit(con.iSwordsman, iCiv, tPlot, 2)
utils.makeUnit(con.iHorseArcher, iCiv, tPlot, 3)
utils.makeUnit(con.iChristianMissionary, iCiv, tPlot, 3)

And when I try to play I got a popup which says I've been defeated.
Do you know why ?

Edit: It works!
 
Top Bottom