Something I found I'm sure someone can use :)

Taranthor

Chieftain
Joined
Dec 24, 2001
Messages
53
I've finally found a way to restrict a building/unit based on civ.

This helps me immensely for my MOM mod. So I can now restrict things to races.

Here is how I did it :)

in the Civ4CivilizationInfos.xml file change the following lines.

Code:
<BUILDINGS/>

to this

Code:
        <Buildings>
		<Building>
		      <BuildingClassType>BUILDINGCLASS_NAME</BuildingClassType>
		      <BuildingType>NONE</BuildingType>
		</Building>
	</Buildings>


That worked for me :)

Edited once I found an even easier way :P
 
I am just curious as to whether something like that exists in the Civics file as well. Sure would make MY life a lot easier ;).

Yours,
Aussie_Lurker.
 
Nope, just checked it and it doesn't. Seems like scripting is currently the only way to produce 'government-specific' buildings.

Yours,
Aussie_Lurker.
 
Back
Top Bottom