Land Privateers?

Contox

Chieftain
Joined
Feb 22, 2009
Messages
61
I dont know if this is the correct forum to post this in, but is there a simple way to alter the rules of a unit, say a warrior, so that its nationality is hidden? Not like spies, where they are invisible, but like privateers, which can be attacked, but you can't tell what nationality they are.
A unit like this could be useful in crippling a civ's economy without declaring war. This would be a powerful advantage, so it could be a national unit, that you can only have a limited amount of.
Any info would be much appreciated.:)
 
Go to Assets/XML/Units/CIV4UnitInfos.xml

Find the unit you want to edit. For a warrior, do a search for <Type>UNIT_WARRIOR</Type>

Look through the various tags listed under that unit till you find something that says:

<bHiddenNationality>0</bHiddenNationality>

Change that to:


<bHiddenNationality>1</bHiddenNationality>
 
Hmmm...... When I open that file, theres no units. Just a blank page. I have the files of type thing set to "All Files", but theres nothing there
do i need something installed?
 
If you run windows, you *should* be able to open it with notepad. is that what you tried?
 
Seriously?
I've been thinking of making some units like that for MechaUnits2. I'll definitely check it out!
 
Go to Assets/XML/Units/CIV4UnitInfos.xml

Find the unit you want to edit. For a warrior, do a search for <Type>UNIT_WARRIOR</Type>

Look through the various tags listed under that unit till you find something that says:

<bHiddenNationality>0</bHiddenNationality>

Change that to:


<bHiddenNationality>1</bHiddenNationality>

You also need to set the Always Hostile flag, otherwise the nationality will still come through if you try and attack them.

PS: Oops, beaten to the punch.
 
Back
Top Bottom