Dancing Hoskuld
Deity
I have been using SaibotLieh's Female missionary mod but I usually have my missionaries start automated and when a female unit is created instead of a male one they are not automated. The good thing is that I actually get tom see the units but I would like to "fix" it.
The reason for the problem is that when a missionary (or CEO) is built for which there is a female equivalent then a random number is rolled and based on civics if successful the created unit is killed and a new female unit created.
We tried using the doCommand() function but what we have is not working. It is being called, it is just not automating the unit.
My BUG version of the code is attached, just in case it is something in the surrounding code.
This discussion was on the general forum but has stopped. So I am asking for more help here.
The reason for the problem is that when a missionary (or CEO) is built for which there is a female equivalent then a random number is rolled and based on civics if successful the created unit is killed and a new female unit created.
We tried using the doCommand() function but what we have is not working. It is being called, it is just not automating the unit.
Code:
if oldunit.isAutomated():
#Automate the new unit also
pFemaleUnit.doCommand(gc.getInfoTypeForString('COMMAND_AUTOMATE'),gc.getInfoTypeForString('AUTOMATE_RELIGION'),0)
My BUG version of the code is attached, just in case it is something in the surrounding code.
This discussion was on the general forum but has stopped. So I am asking for more help here.