How do I edit the following do do what I want?

bigphesta

Chieftain
Joined
Nov 3, 2005
Messages
38
Location
Des Moines, IA
Two things really bug me with the game. The first is that missionaries can't go into other lands w/o a open boarders treaty. I find this to be a bit unrealistic and i"d like to make it so that they can go anywhere, like a spy. Is this possible? If so, what line of code do I edit in the missionary's code in the unit's xml file to allow it?

The second thing is that the SDI and Bunkers are TOO powerful. I'd like to see these reduced GREATLY. Like the SDI having a 25% chance to hit the incoming nuke, instead of 75%, and the bunker's power decreased by AT LEAST half. What lines to I edit to make this happen?

I would like these changes to be perminant on my game as they always bug me and I don't play online so there's no concerns there.

Finally, every-once-in-a-while, I like to play a one-city challenge. How can I set it up so that the AI is held to the same restrictions? What would I have to change in the settler's description so that they can no longer be produced after the initial settlers?

Thank you in advance for your help.
 
bigphesta said:
Two things really bug me with the game. The first is that missionaries can't go into other lands w/o a open boarders treaty. I find this to be a bit unrealistic and i"d like to make it so that they can go anywhere, like a spy. Is this possible? If so, what line of code do I edit in the missionary's code in the unit's xml file to allow it?

Find this line for the missionary in CIV4UnitInfos.xml:

<bRivalTerritory>0</bRivalTerritory>

And change it to this:

<bRivalTerritory>1</bRivalTerritory>

Now your missionaries will be able to enter foreign territory.

The second thing is that the SDI and Bunkers are TOO powerful. I'd like to see these reduced GREATLY. Like the SDI having a 25% chance to hit the incoming nuke, instead of 75%, and the bunker's power decreased by AT LEAST half. What lines to I edit to make this happen?

Find this line under SDI in CIV4ProjectInfo.xml:

<iNukeInterception>75</iNukeInterception>

And chance the '75' to whatever you want the chance to be.

Max
 
Ok, for the missionary, look in the Units\CIV4UnitInfors.xml file, search for "missionary" (there is one for each religion). You'll see a line like "<bRivalTerritory>0</bRivalTerritory>", change the zero to a 1 and it will be able cross borders.

Edit: Too slow on the post button :)
 
You were not too slow, just others were faster :)

Thanks for the help!!

Any idea on how to stop settlers from being created after the initial one per civ?
 
Units\CIV4UnitClassInfos.xml

Change either of these lines:

<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>

Team limits will limit a team (if used), I think player will limit each player regardless of the team. It won't stop them from creating more than one but it will only allow one at a time. You may have to find another way of limiting it to a single settler such as giving one for free when a particular tech is discovered or getting into the python scripts (can't help you there).

Edit: After re-reading your initial post, you can go into the Units\CIV4UnitInfos.xml file and find the "<iCost>" line, change it to -1 and nobody will be able to build the unit. You'll also want to find the handicap settings (for difficutly levels) and remove settlers from the goodie hut list for each difficulty level.
 
Back
Top Bottom