View Full Version : Free Missionary Units & Religion Spread


DrJambo
Sep 25, 2006, 07:35 AM
Hi,

I have a couple of (hopefully) quick questions -

1. In the CIV4Religion.xml file some of the religions award a free missionary unit upon discovery of the religion, e.g.:
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
Is there any way give 2 or more free units? I've tried duplicating this line two or three times and it doesn't seem to work. Maybe there's a way using commas or...?!

2. Religion Spread. All religions have a spread value of 100:
<iSpreadFactor>100</iSpreadFactor>

What's the effect of increasing or decreasing this value? Is this value a percentage? And presumably, does increasing it increase the spread?

Thanks in advance.

Kael
Sep 25, 2006, 10:26 AM
Hi,

I have a couple of (hopefully) quick questions -

1. In the CIV4Religion.xml file some of the religions award a free missionary unit upon discovery of the religion, e.g.:

Is there any way give 2 or more free units? I've tried duplicating this line two or three times and it doesn't seem to work. Maybe there's a way using commas or...?!

Not with XML. You would need to create a python function to award the extra untis.

2. Religion Spread. All religions have a spread value of 100:


What's the effect of increasing or decreasing this value? Is this value a percentage? And presumably, does increasing it increase the spread?

Thanks in advance.

Increasing incresases the liklihood of the religion spreading through natural means (aka: without missionaries). The value is a modifier to the spread chance, so you can assume that making it 200 will make the religion twice as likely to spread as the default. And making it 50 will make it half as likely to spread.

Officer Reene
Sep 25, 2006, 10:49 AM
Hi,

I have a couple of (hopefully) quick questions -

1. In the CIV4Religion.xml file some of the religions award a free missionary unit upon discovery of the religion, e.g.:

Is there any way give 2 or more free units? I've tried duplicating this line two or three times and it doesn't seem to work. Maybe there's a way using commas or...?!



you can do it... (well add one more missionary anyway :p ) through XML

NOTE: This will allow 1 extra missionary... although you can add more (see below)

you can give a free missionary to the TECH where the religion is discovered

basically who ever discovers the Tech first gets to discover the religion first and the religion provides the missionary...

however with my fix because you discovered the Tech first... the tech ITSELF gives you the free missionary (as well as the religion discovery itself providing the missionary :goodjob: )

check out the CIV4TechInfos.xml for details (follow the free artist example)

Technically you can assign the free missionary to any tech so who ever discovers that tech can get the missionary... even if they did not discover the religion (but that is just crazy :crazyeye: )


I dont think you can give a free missionary any other way through XML... you would have to do it by python/sdk


my way is a "workaround" and easy to implement because it only changes one line in the tech file...



I know this works because I use it in my mod (see my sig) :goodjob:


I hope that helps ;)