Alter buildings through other buildings?

LietIbmaSad

Chieftain
Joined
Sep 19, 2009
Messages
5
Example: Building the Great Walls would result in all existing Walls providing +1 :c5happy:. Is such a thing possible?

I'm in the state of collecting ideas for my mod and just wonder wether this can be done or not. I already missed such a possibility when modding Civ IV a few years ago.
 
Seems to be a good idea for the Walls, but I'm looking for a possibility of modifying buildings through buildings in general. Another Example: Building the Great Library results in all existing Libraries providing +1 :c5science: and so on.

No problem if it's too difficult or not possible at all, but it would be really nice.
 
There is a tag called:
<Building_BuildingClassYieldChanges>

That will work for everything except happiness. For that, you use:
<Building_BuildingClassHappiness>


As an example, here's how Neuschwanstein uses it from CIV5Buildings_Expansion.xml:
Spoiler :
<Building_BuildingClassYieldChanges>
<Row>
<BuildingType>BUILDING_NEUSCHWANSTEIN</BuildingType>
<BuildingClassType>BUILDINGCLASS_CASTLE</BuildingClassType>
<YieldType>YIELD_GOLD</YieldType>
<YieldChange>3</YieldChange>
</Row>
<Row>
<BuildingType>BUILDING_NEUSCHWANSTEIN</BuildingType>
<BuildingClassType>BUILDINGCLASS_CASTLE</BuildingClassType>
<YieldType>YIELD_CULTURE</YieldType>
<YieldChange>2</YieldChange>
</Row>
</Building_BuildingClassYieldChanges>
<Building_BuildingClassHappiness>
<Row>
<BuildingType>BUILDING_NEUSCHWANSTEIN</BuildingType>
<BuildingClassType>BUILDINGCLASS_CASTLE</BuildingClassType>
<Happiness>1</Happiness>
</Row>
</Building_BuildingClassHappiness>
 
Back
Top Bottom