National Units

IrishDragon

Legend
Joined
Mar 1, 2006
Messages
522
Is there any way to designate a national unit that can only be built by 1 civ. I have added the bismark battleship and set it as a unique unit for germany. I set it to a national unit so they could only build one at a time but now all nations can build it. any ideas on how to stop this. thanks
 
IrishDragon said:
Is there any way to designate a national unit that can only be built by 1 civ. I have added the bismark battleship and set it as a unique unit for germany. I set it to a national unit so they could only build one at a time but now all nations can build it. any ideas on how to stop this. thanks

You can create a unique tech that you cant research or trade, give it to the germans and have the ship require it. You can add a check to the cannotTrain function to block it for everyone else. Or you can use the civilization file to block it for all the other civs.
 
"Or you can use the civilization file to block it for all the other civs."


In the civ file I set it as a uu for germany. is this what you mean or is ther another way to block all other civs building it.
 
Nah, check out the follwoing from the CIV4CivilizationInfos.xml file:

Code:
			<Units>
				<Unit>
					<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_DISCIPLE_RUNES_OF_KILMORPH</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_DISCIPLE_FELLOWSHIP_OF_LEAVES</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_DISCIPLE_THE_ASHEN_VEIL</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_DISCIPLE_OCTOPUS_OVERLORDS</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_DISCIPLE_THE_ORDER</UnitClassType>
					<UnitType>NONE</UnitType>
				</Unit>
			</Units>

This is a listing of untis that civ isn't able to build. Notice how it replaces each of these Unitclasses with NONE. Its the same system that is used to set UU's (where you would set one of these Unitclasses to a given unit, only here it is set to NONE).
 
IrishDragon said:
if I change the NONE to bismark will the germans still be able to build it?

They will be able to build it instead of the unticlass you are replacing (ie: it will become a UU for them). That may not be desired, especially as it is a limited production unit.
 
Back
Top Bottom