How do I change unit nationality?

Deamoclese

Chieftain
Joined
Oct 30, 2005
Messages
4
Is there a way to edit a unit so it can be used by another country?

For example, how would I make the Navy Seal useable by Japan?
 
1. Make a copy of the XML/Civilizations/CIV4CivilizationsInfo.xml file
2. Put it in the CustomAssets/XML/Civilizations folder if you want to use the setting for all your games - otherwise it should go in your MODS folder.
3. Open the file, scroll down to the Japanese Civilization entry. Find their <Units> element, which will look like this.
Code:
<Units>
	<Unit>
		<UnitClassType>UNITCLASS_MACEMAN</UnitClassType>
		<UnitType>UNIT_JAPAN_SAMURAI</UnitType>
	</Unit>
</Units>

Add this (from the American <Units> entry)
Code:
	<Unit>
		<UnitClassType>UNITCLASS_MARINE</UnitClassType>
		<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
	</Unit>


So the entire entry ends up looking like this.
Code:
<Units>
	<Unit>
		<UnitClassType>UNITCLASS_MACEMAN</UnitClassType>
		<UnitType>UNIT_JAPAN_SAMURAI</UnitType>
	</Unit>
	<Unit>
		<UnitClassType>UNITCLASS_MARINE</UnitClassType>
		<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
	</Unit>
</Units>

This makes the game replace the Marine with Navy Seal for the Japanese too.

If you don't want the Marine to be replaced, it will take a bit more effort, as you'll then have to seperate the Marine and Navy Seal, so that they no longer belong to the same UnitClass. But I assume that this was not what you wanted.
 
Back
Top Bottom