Civ4BuildingInfos: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(Created page with '== Text Tags == • Advisor = Defines the type of Advisor that would recommend this Building. • ArtDefineTag = Specifies the tag in CIV4ArtDefines_Building.xml that provides ...')
 
No edit summary
Line 1: Line 1:
== Text Tags ==
The '''Civ4BuildingInfos''' file defines all of the game's buildings (city improvements) as well as their effects, like providing extra health and happiness or allowing production of certain units.
 
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
 
<font color=red>This page is missing information.
Do not remove this notice until it is complete.</font>
 
 
==Tags==
===Text===
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}
 
 
===Integers===
 
All of these tags have a numerical value.  Though it sometimes can be negative, it usually is not.
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}
 
 
===Boolean===
 
All of these can either be 1 (on, or true) or 0 (off, or false).  Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}
 
 
===Lists (Multi-line)===
 
All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}
 
 


• Advisor = Defines the type of Advisor that would recommend this Building.
• Advisor = Defines the type of Advisor that would recommend this Building.
Line 55: Line 129:
• VictoryPrereq = Victory type required for construction of the building.
• VictoryPrereq = Victory type required for construction of the building.


== Boolean Tags ==
Boolean Tags  


• bAreaCleanPower = Provides clean power to all cities a la Three Gorges Dam.
• bAreaCleanPower = Provides clean power to all cities a la Three Gorges Dam.
Line 96: Line 170:




== Integer Tags ==
Integer Tags  


• iAirlift = Distance from city units can be airlifted.
• iAirlift = Distance from city units can be airlifted.
Line 200: Line 274:
• iWorkerSpeedModifier = % change in worker speed.
• iWorkerSpeedModifier = % change in worker speed.


== Floating-Point Tags ==
Floating-Point Tags  


• fVisibilityPriority = Priority for the building to be seen on the map.
• fVisibilityPriority = Priority for the building to be seen on the map.




== Multi-Line Tags ==
Multi-Line Tags  


• BonusHappinessChanges = Changes to healthiness provided by the building if you have the specified resources.
• BonusHappinessChanges = Changes to healthiness provided by the building if you have the specified resources.
Line 365: Line 439:




== Unsorted ==
Unsorted  




Line 373: Line 447:


• UnitCombatFreeExperiences
• UnitCombatFreeExperiences
==Example==
In the following example of code, please note that there is a specific order of all of the tags.  You ''must'' list the tags in this order for the game to properly interpret your file.
<BuildingInfos>
  <BuildingInfo>
  <BuildingClass>BUILDINGCLASS_PALACE</BuildingClass>
  <Type>BUILDING_PALACE</Type>
  <SpecialBuildingType>NONE</SpecialBuildingType>
  <Description>TXT_KEY_BUILDING_PALACE</Description>
  <Civilopedia>TXT_KEY_BUILDING_PALACE_PEDIA</Civilopedia>
  <Strategy>TXT_KEY_BUILDING_PALACE_STRATEGY</Strategy>
  <Advisor>ADVISOR_ECONOMY</Advisor>
  <ArtDefineTag>ART_DEF_BUILDING_PALACE</ArtDefineTag>
  <MovieDefineTag>NONE</MovieDefineTag>
  <HolyCity>NONE</HolyCity>
  <ReligionType>NONE</ReligionType>
  <StateReligion>NONE</StateReligion>
  <bStateReligion>0</bStateReligion>
  <PrereqReligion>NONE</PrereqReligion>
  <PrereqCorporation>NONE</PrereqCorporation>
  <FoundsCorporation>NONE</FoundsCorporation>
  <GlobalReligionCommerce>NONE</GlobalReligionCommerce>
  <GlobalCorporationCommerce>NONE</GlobalCorporationCommerce>
  <VictoryPrereq>NONE</VictoryPrereq>
  <FreeStartEra>NONE</FreeStartEra>
  <MaxStartEra>NONE</MaxStartEra>
  <ObsoleteTech>NONE</ObsoleteTech>
  <PrereqTech>NONE</PrereqTech>
  <TechTypes/>
  <Bonus>NONE</Bonus>
  <PrereqBonuses/>
  <ProductionTraits/>
  <HappinessTraits/>
  <NoBonus>NONE</NoBonus>
  <PowerBonus>NONE</PowerBonus>
  <FreeBonus>NONE</FreeBonus>
  <iNumFreeBonuses>0</iNumFreeBonuses>
  <FreeBuilding>NONE</FreeBuilding>
  <FreePromotion>NONE</FreePromotion>
  <CivicOption>NONE</CivicOption>
  <GreatPeopleUnitClass>NONE</GreatPeopleUnitClass>
  <iGreatPeopleRateChange>0</iGreatPeopleRateChange>
  <iHurryAngerModifier>0</iHurryAngerModifier>
  <bBorderObstacle>0</bBorderObstacle>
  <bTeamShare>0</bTeamShare>
  <bWater>0</bWater>
  <bRiver>0</bRiver>
  <bPower>0</bPower>
  <bDirtyPower>0</bDirtyPower>
  <bAreaCleanPower>0</bAreaCleanPower>
  <DiploVoteType>NONE</DiploVoteType>
  <bForceTeamVoteEligible>0</bForceTeamVoteEligible>
  <bCapital>1</bCapital>
  <bGovernmentCenter>1</bGovernmentCenter>
  <bGoldenAge>0</bGoldenAge>
  <bAllowsNukes>0</bAllowsNukes>
  <bMapCentering>0</bMapCentering>
  <bNoUnhappiness>0</bNoUnhappiness>
  <bNoUnhealthyPopulation>0</bNoUnhealthyPopulation>
  <bBuildingOnlyHealthy>0</bBuildingOnlyHealthy>
  <bNeverCapture>0</bNeverCapture>
  <bNukeImmune>1</bNukeImmune>
  <bPrereqReligion>0</bPrereqReligion>
  <bCenterInCity>0</bCenterInCity>
  <iAIWeight>0</iAIWeight>
  <iCost>160</iCost>
  <iHurryCostModifier>50</iHurryCostModifier>
  <iAdvancedStartCost>-1</iAdvancedStartCost>
  <iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
  <iMinAreaSize>-1</iMinAreaSize>
  <iConquestProb>0</iConquestProb>
  <iCitiesPrereq>4</iCitiesPrereq>
  <iTeamsPrereq>0</iTeamsPrereq>
  <iLevelPrereq>0</iLevelPrereq>
  <iMinLatitude>0</iMinLatitude>
  <iMaxLatitude>90</iMaxLatitude>
  <iGreatPeopleRateModifier>0</iGreatPeopleRateModifier>
  <iGreatGeneralRateModifier>0</iGreatGeneralRateModifier>
  <iDomesticGreatGeneralRateModifier>0</iDomesticGreatGeneralRateModifier>
  <iGlobalGreatPeopleRateModifier>0</iGlobalGreatPeopleRateModifier>
  <iAnarchyModifier>0</iAnarchyModifier>
  <iGoldenAgeModifier>0</iGoldenAgeModifier>
  <iGlobalHurryModifier>0</iGlobalHurryModifier>
  <iExperience>0</iExperience>
  <iGlobalExperience>0</iGlobalExperience>
  <iFoodKept>0</iFoodKept>
  <iAirlift>0</iAirlift>
  <iAirModifier>0</iAirModifier>
  <iAirUnitCapacity>0</iAirUnitCapacity>
  <iNukeModifier>0</iNukeModifier>
  <iNukeExplosionRand>0</iNukeExplosionRand>
  <iFreeSpecialist>0</iFreeSpecialist>
  <iAreaFreeSpecialist>0</iAreaFreeSpecialist>
  <iGlobalFreeSpecialist>0</iGlobalFreeSpecialist>
  <iMaintenanceModifier>0</iMaintenanceModifier>
  <iWarWearinessModifier>0</iWarWearinessModifier>
  <iGlobalWarWearinessModifier>0</iGlobalWarWearinessModifier>
  <iEnemyWarWearinessModifier>0</iEnemyWarWearinessModifier>
  <iHealRateChange>0</iHealRateChange>
  <iHealth>0</iHealth>
  <iAreaHealth>0</iAreaHealth>
  <iGlobalHealth>0</iGlobalHealth>
  <iHappiness>1</iHappiness>
  <iAreaHappiness>0</iAreaHappiness>
  <iGlobalHappiness>0</iGlobalHappiness>
  <iStateReligionHappiness>0</iStateReligionHappiness>
  <iWorkerSpeedModifier>0</iWorkerSpeedModifier>
  <iMilitaryProductionModifier>0</iMilitaryProductionModifier>
  <iSpaceProductionModifier>0</iSpaceProductionModifier>
  <iGlobalSpaceProductionModifier>0</iGlobalSpaceProductionModifier>
  <iTradeRoutes>0</iTradeRoutes>
  <iCoastalTradeRoutes>0</iCoastalTradeRoutes>
  <iGlobalTradeRoutes>0</iGlobalTradeRoutes>
  <iTradeRouteModifier>0</iTradeRouteModifier>
  <iForeignTradeRouteModifier>0</iForeignTradeRouteModifier>
  <iGlobalPopulationChange>0</iGlobalPopulationChange>
  <iFreeTechs>0</iFreeTechs>
  <iDefense>0</iDefense>
  <iBombardDefense>0</iBombardDefense>
  <iAllCityDefense>0</iAllCityDefense>
  <iEspionageDefense>0</iEspionageDefense>
  <iAsset>0</iAsset>
  <iPower>0</iPower>
  <fVisibilityPriority>10000.0</fVisibilityPriority>
  <SeaPlotYieldChanges/>
  <RiverPlotYieldChanges/>
  <GlobalSeaPlotYieldChanges/>
  <YieldChanges>
    <iYield>0</iYield>
    <iYield>0</iYield>
    <iYield>8</iYield>
  </YieldChanges>
  <CommerceChanges>
    <iCommerce>0</iCommerce>
    <iCommerce>0</iCommerce>
    <iCommerce>0</iCommerce>
    <iCommerce>4</iCommerce>
  </CommerceChanges>
  <ObsoleteSafeCommerceChanges>
    <iCommerce>0</iCommerce>
    <iCommerce>0</iCommerce>
    <iCommerce>2</iCommerce>
  </ObsoleteSafeCommerceChanges>
  <CommerceChangeDoubleTimes/>
  <CommerceModifiers/>
  <GlobalCommerceModifiers/>
  <SpecialistExtraCommerces/>
  <StateReligionCommerces/>
  <CommerceHappinesses/>
  <ReligionChanges/>
  <SpecialistCounts/>
  <FreeSpecialistCounts/>
  <CommerceFlexibles/>
  <CommerceChangeOriginalOwners/>
  <ConstructSound/>
  <BonusHealthChanges/>
  <BonusHappinessChanges/>
  <BonusProductionModifiers/>
  <UnitCombatFreeExperiences/>
  <DomainFreeExperiences/>
  <DomainProductionModifiers/>
  <BuildingHappinessChanges/>
  <PrereqBuildingClasses/>
  <BuildingClassNeededs/>
  <SpecialistYieldChanges/>
  <BonusYieldModifiers/>
  <ImprovementFreeSpecialists/>
  <Flavors/>
  <HotKey/>
  <bAltDown>0</bAltDown>
  <bShiftDown>0</bShiftDown>
  <bCtrlDown>0</bCtrlDown>
  <iHotKeyPriority>0</iHotKeyPriority>
  </BuildingInfo>
</BuildingInfos>
{{Civ4_XML_Files}}

Revision as of 02:07, 27 May 2009

The Civ4BuildingInfos file defines all of the game's buildings (city improvements) as well as their effects, like providing extra health and happiness or allowing production of certain units.

All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.

This page is missing information. Do not remove this notice until it is complete.


Tags

Text

Tag Name Description
Tag name enter text here
Tag name enter text here


Integers

All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.

Tag Name Description
Tag name enter text here
Tag name enter text here


Boolean

All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".

Tag Name Description
Tag name enter text here
Tag name enter text here


Lists (Multi-line)

All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).

Tag Name Description
Tag name enter text here
Tag name enter text here


• Advisor = Defines the type of Advisor that would recommend this Building.

• ArtDefineTag = Specifies the tag in CIV4ArtDefines_Building.xml that provides graphic data for this building.

• Bonus = Bonus type that speeds production..

• BuildingClass = The class (name) of the Building (see CIV4BuildingClassInfos.xml)

• CivicOption = Free civics allowed with building. used by Pyramids.

• Civilopedia = Refers to a tag in CIV4GameText_Civilopedia_BuildingsProjects.xml which stores the Civilopedia description for the Building

• ConstructSound = Sound used when building finished. See the AudioDefines, Audio2DScripts, & Audio3DScripts files.

• Description = Refers to a tag in CIV4GameTextInfos_Objects.xml that stores the in-game name of the Building

• FreeBonus = i.e. BONUS_DRAMA - Provides the city with # (this number is based on the tag iFreeBonus) Hit Musicals. Other choices for this tag include BONUS_MUSIC and BONUS_MOVIES but I'm not sure if these are the only three that can go here.

• FreeBuilding = Provides the listed building free to every city. eg: Is used by Three Gorges Dam to give Hydro Station to each city.

• FreePromotion = Allows building to give listed promotion to all units built in that city.

• FreeStartEra = Building is free if you start in this Era or later.

• GlobalReligionCommerce = Earns gold from every city with this religion.

• GreatPeopleUnitClass = Type of Great Person building creates.

• HolyCity = If set, the Building can only be constructed in the Holy City of the Religion type specified.

• MaxStartEra = Latest Era the building can be constructed .

• MovieDefineTag = Specifies the tag in CIV4ArtDefines_Movie.xml that will play with this building is constructed.

• ObsoleteTech = Tech that makes the building obsolete.

• PowerBonus = i.e. BONUS_COAL - any building with this bonus supplies the city power with coal

• PrereqBonuses = Bonus type required for production.

• PrereqReligion = Defines Religion needed for production.

• ReligionType = If set, the Building can only be constructed if the specified Religion type is present in a city within the Civilization (Not necessarily in the city where it is being constructed)

• SpecialBuildingType = Whether or not the building is one the special types listed in CIV4SpecialBuildingInfos.xml

• StateReligion = If set, the Building can only be constructed while the specified Religion type is the Civilization's State Religion.

• Strategy = Refers to a tag in CIV4GameText_Strategy.xml that stores the strategic or usage info on the Building, displayed in mouseover pop-ups.

• Type = The type of Building (see CIV4ArtDefines_Building.xml)

• VictoryPrereq = Victory type required for construction of the building.

Boolean Tags

• bAreaCleanPower = Provides clean power to all cities a la Three Gorges Dam.

• bBuildingOnlyHealthy = Removes unhealthiness caused by buildings. Used by Recycling Centre.

• bCapital = Sets Capitol city. Can only have one.

• bCenterInCity =

• bDiploVote = Allows diplomatic votes.

• bDirtyPower = Power provided is polluting.

• bForceTeamVoteEligible = Forces team members to vote with you.

• bGoldenAge = Starts a golden age. Used by Taj Mahal.

• bGovernmentCenter = Center of Government (multiple allowed). Used by Versailles.

• bMapCentering = On completion, centers the map.

• bNeverCapture = Indicates if the building is destroyed when the city is captured.

• bNoUnhappiness = Removes all unhappiness from the city. Used by the Globe Theatre.

• bNoUnhealthyPopulation = Removes unhealthiness. Used by ???.

• bNukeImmune = Makes the building immune to nuking.

• bPower = Provides power.

• bPrereqReligion = Indicates if a Religion must be present.

• bRiver = Requires river.

• bTeamShare = Allows team members to build together.

• bWater = Requires water.


Integer Tags

• iAirlift = Distance from city units can be airlifted.

• iAirModifier = Damage change from air units.

• iAIWeight = Importance of building to the AI.

• iAllCityDefense = % change in defence in all cities.

• iAnarchyModifier = % change in anarchy length.

• iAreaHappiness = Change in happiness in all cities on this continent.

• iAreaHealth = Change in healthiness in all cities on this continent.

• iAreaFreeSpecialist = Free specialists allowed in all cities on this continent.

• iAsset = Point value of building for victory score.

• iCitiesPrereq = Pre required number of cities.

• iCoastalTradeRoutes = Change in coastal trade routes in all cities.

• iConquestProb = Percentage chance building will survive if city is captured.

• iCost = Building cost.

• iDefense = % change in defence in this city.

• iExperience = Experience bonus to units built in this city.

• iFoodKept = % of food kept after city grows.

• iFreeSpecialist = Free specialists allowed in this city.

• iFreeTechs = Number of free techs provided when built.

• iGlobalExperience = Experience bonus to units built in all cities.

• iGlobalFreeSpecialist = Free specialists allow in all cities.

• iGlobalGreatPeopleRateModifier = % increase of Great Person rate for civilization.

• iGlobalHappiness = Change in happiness in all cities.

• iGlobalHealth = Change in healthiness in all cities.

• iGlobalHurryModifier = % change in hurry cost in all cities.

• iGlobalPopulationChange = Change in population globally.

• iGlobalSpaceProductionModifier % change in SS part production in all cities.

• iGlobalTradeRoutes = Change in trade routes in all cities.

• iGlobalWarWearinessModifier = % change in war weariness in all cities.

• iGreatPeopleRateChange = Integer change in Great Person birth rate.

• iGreatPeopleRateModifier = % increase of Great Person rate in this city.

• iHappiness = Change in happiness in this city.

• iHealRateChange = % change in healing rates.

• iHealth = Change in healthiness in this city.

• iHurryCostModifier = Building hurry cost modifier.

• iLevelPrereq = Pre required unit level.

• iMaintenanceModifier = % change in maintenance cost.

• iMaxLatitude = Maximum distance from equator.

• iMilitaryProductionModifier = % change in military production.

• iMinAreaSize = Size of adjacent body of water for sea buildings (usually 10).

• iMinLatitude = Minimum distance from equator.

• iNukeModifier = Damage change from nukes.

• iNukeExplosionRand = Chance that a nuclear power plant will randomly blow up (default 1 in 1000).

• iNumFreeBonuses = -1 gives 5 of the above bonuses. Any number >= 0 is itself, i.e. 10 here with a BONUS_DRAMA in the FreeBonus tag means 10 Hit Musicals from your city. Anything below -1 shows up as that negative number

• iPower = Value used by AI to calculate a player's relative strength (forge, heroic epic, etc).

• iSpaceProductionModifier = % change in SS part production.

• iStateReligionHappiness = Change in happiness with state religion.

• iTeamsPrereq = Instances among a team in multiplay.

• iTradeRouteModifier = % change in trade routes in this city.

• iTradeRoutes = Change in trade routes in this city.

• iWarWearinessModifier = % change in war weariness.

• iWorkerSpeedModifier = % change in worker speed.

Floating-Point Tags

• fVisibilityPriority = Priority for the building to be seen on the map.


Multi-Line Tags

• BonusHappinessChanges = Changes to healthiness provided by the building if you have the specified resources.

           BonusHappinessChange = Bracketed by BonusHappinessChanges, contains each individual resource and its effect.
                       BonusType = Type of resource (Text tag).
                       iHappinessChange = Amount of change to happiness (Integer tag).

• BonusHealthChanges = Changes to healthiness provided by the building if you have the specified resources.

           BonusHealthChange = Bracketed by BonusHealthChanges, contains each individual resource and its effect. 
                       BonusType = Type of resource (Text tag).
                       iHealthChange = Amount of change to healthiness (Integer tag).

• BonusProductionModifiers = Bonus to production for the building if you have the specified resources.

           BonusProductionModifier = Bracketed by BonusProductionModifiers, contains each individual resource and its effect.
                       BonusType = Type of resource (Text tag).
                       iProductionModifier = Amount of change to production (Integer tag).

• BonusYieldModifiers = Bonuses to resource yield from a building.

           BonusYieldModifier = Defines each resource. 
                       BonusType = Type of resource (Text tag).
                       YieldModifiers = Bracket that covers the 3 Yield tags. 
                                   iYield = There are three of these tags. The first is for Food change, the second for Production change, and the third for Trade change (Integer tag).

• BuildingClassNeededs = Building required in city to construct.

           BuildingClassNeeded = Defines individual building classes and if thier needed in that city or not. 
                       BuildingClassType = Building type.
                       bNeededInCity = If it's needed in this city.
                       BuildingInfo = Brackets entire building group.

• CommerceChangeDoubleTimes = Defines how many turns must pass before a given Commerce output is doubled. ie: Versailles starts giving 10 Culture, but after 1000 turns, begins giving 20 Culture. Uses iCommerce.

• CommerceChangeOriginalOwners = UNKNWON EFFECT ??? ??? ???.

           bCommerceChangeOriginalOwner = UNKNWON EFFECT ??? ??? ???. Boolean tag.

• CommerceChanges = Additions to commerce/science/culture that the building provides, uses iCommerce. (Adds fourth tag as of BtS for Espionage)

• CommerceHappinesses = Determines change in tax/research/culture rates that produce happy faces, uses iCommerce.

           iCommerce = There are three of these tags. The first is for Commerce (tax), the second for Research, and the third for Culture (Integer tag).

• CommerceModifiers = Percentage change to that commerce production for the entire city (e.g., 25 is 25% increase), uses iCommerce.

• DomainFreeExperiences = Experience bonus to a specified unit type.

           DomainFreeExperience = Bracketed by DomainFreeExperiences, contains each individual unit type and its XP bonus. 
                       DomainType = Type of unit (land/sea) (Text tag). (Includes Air as of BtS)
                       iExperience = Amount of experience provided (Integer tag).

• DomainProductionModifiers = Construction bonus to a specified unit type.

           DomainProductionModifier = Bracketed by DomainProductionModifiers, contains each individual unit type and its production bonus. 
                       DomainType = Type of unit (land/sea) (Text tag). (Includes Air as of BtS)
                       iProductionModifier = Bonus as a percent given to construction (Integer tag).

• Flavors = Unsure (Determines which advisor asks to build?)

           Flavor = Contains each religion & flavour strength. 
                       FlavorType = Religion (Text tag).
                       iFlavor = UNKNOWN EFFECT ??? ??? ???

• FreeSpecialistCounts = Free specialists allocated to city by the building.

           FreeSpecialistCount = Bracketed by FreeSpecialistCounts, brackets each individual Specialist granted. Can have multiple entries. 
                       SpecialistType = Type of specialist. (Text tag).
                       iFreeSpecialistCount = Amount allowed. (Integer tag).

• GlobalSeaPlotYieldChanges = Change in sea square yield for all cities, uses iYield.

• HotKey = Unsure (Hotkeys for building?)

           bAltDown = UNKNOWN EFFECT ??? ??? ???
           bShiftDown = UNKNOWN EFFECT ??? ??? ???
           bCtrlDown = UNKNOWN EFFECT ??? ??? ???

• ObsoleteSafeCommerceChanges = Additions to commerce that aren't affected by other changes (usually culture), uses iCommerce.

• PrereqBuildingClasses = Amount of certain building class needed to construct.

           PrereqBuildingClass = defines individual building class types & amounts. 
                       BuildingClassType = Building type.
                       iNumBuildingNeeded = Amount of building class required.

• ProductionTraits = Contains all the Traits and their production bonus effects for the building.

           ProductionTrait = Contains an individual trait it's production bonus effect. Is nested within the ProductionTraits tags. 
                       ProductionTraitType = Trait type (Text tag).
                       iProductionTrait = % bonus to construction (Integer tag).

• ReligionChanges = UNKNOWN EFFECT ??? ??? ???

           ReligionChange = Bracketed by ReligionChanges. UNKNOWN EFFECT ??? ??? ??? 
                       ReligionType = Inidicates the individual religion affecting the change. UNKNOWN EFFECT ??? ??? ??? (Text tag).
                       iReligionChange = UNKNOWN EFFECT ??? ??? ???. (Integer tag).

• SeaPlotYieldChanges = Change in sea square yield, uses iYield.

• SpecialistCounts = Specialist allowances.

           SpecialistCount = Bracketed by SpecialistCounts, brackets each individual Specialist allowed. Can have multiple entries. 
                       SpecialistType = Type of specialist (Text tag).
                       iSpecialistCount = Amount of specialists allowed.

• SpecialistExtraCommerces = Bonus provided to specialists by the building, uses iCommerce.

• SpecialistYieldChanges = Bonuses to specialist yield from a building.

           SpecialistYieldChange = Defines each specialist. 
                       SpecialistType = Type of specialist (Text tag).
                       YieldChanges = Bracket that covers the 3 Yield tags. 
                                   iYield = There are three of these tags. The first is for Commerce change, the second for Research change, and the third for Culture change (Integer tag).

• StateReligionCommerces = Bonus provided by buildings of the state religion, uses iCommerce.

• TechTypes = Lists all Techs that are required to allow construction (functionality is AND).

           PrereqTech = Tech that is required to allow construction of the building (Text tag).

• YieldChanges = Change in city yield, uses iYield.

           iYield = There are three of these tags. The first is for Food change, the second for Production change, and the third for Trade change (Integer tag).


Unsorted


• BuildingHappinessChanges

• CommerceFlexibles

• UnitCombatFreeExperiences

Example

In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.

<BuildingInfos>
 <BuildingInfo>
  <BuildingClass>BUILDINGCLASS_PALACE</BuildingClass>
  <Type>BUILDING_PALACE</Type>
  <SpecialBuildingType>NONE</SpecialBuildingType>
  <Description>TXT_KEY_BUILDING_PALACE</Description>
  <Civilopedia>TXT_KEY_BUILDING_PALACE_PEDIA</Civilopedia>
  <Strategy>TXT_KEY_BUILDING_PALACE_STRATEGY</Strategy>
  <Advisor>ADVISOR_ECONOMY</Advisor>
  <ArtDefineTag>ART_DEF_BUILDING_PALACE</ArtDefineTag>
  <MovieDefineTag>NONE</MovieDefineTag>
  <HolyCity>NONE</HolyCity>
  <ReligionType>NONE</ReligionType>
  <StateReligion>NONE</StateReligion>
  <bStateReligion>0</bStateReligion>
  <PrereqReligion>NONE</PrereqReligion>
  <PrereqCorporation>NONE</PrereqCorporation>
  <FoundsCorporation>NONE</FoundsCorporation>
  <GlobalReligionCommerce>NONE</GlobalReligionCommerce>
  <GlobalCorporationCommerce>NONE</GlobalCorporationCommerce>
  <VictoryPrereq>NONE</VictoryPrereq>
  <FreeStartEra>NONE</FreeStartEra>
  <MaxStartEra>NONE</MaxStartEra>
  <ObsoleteTech>NONE</ObsoleteTech>
  <PrereqTech>NONE</PrereqTech>
  <TechTypes/>
  <Bonus>NONE</Bonus>
  <PrereqBonuses/>
  <ProductionTraits/>
  <HappinessTraits/>
  <NoBonus>NONE</NoBonus>
  <PowerBonus>NONE</PowerBonus>
  <FreeBonus>NONE</FreeBonus>
  <iNumFreeBonuses>0</iNumFreeBonuses>
  <FreeBuilding>NONE</FreeBuilding>
  <FreePromotion>NONE</FreePromotion>
  <CivicOption>NONE</CivicOption>
  <GreatPeopleUnitClass>NONE</GreatPeopleUnitClass>
  <iGreatPeopleRateChange>0</iGreatPeopleRateChange>
  <iHurryAngerModifier>0</iHurryAngerModifier>
  <bBorderObstacle>0</bBorderObstacle>
  <bTeamShare>0</bTeamShare>
  <bWater>0</bWater>
  <bRiver>0</bRiver>
  <bPower>0</bPower>
  <bDirtyPower>0</bDirtyPower>
  <bAreaCleanPower>0</bAreaCleanPower>
  <DiploVoteType>NONE</DiploVoteType>
  <bForceTeamVoteEligible>0</bForceTeamVoteEligible>
  <bCapital>1</bCapital>
  <bGovernmentCenter>1</bGovernmentCenter>
  <bGoldenAge>0</bGoldenAge>
  <bAllowsNukes>0</bAllowsNukes>
  <bMapCentering>0</bMapCentering>
  <bNoUnhappiness>0</bNoUnhappiness>
  <bNoUnhealthyPopulation>0</bNoUnhealthyPopulation>
  <bBuildingOnlyHealthy>0</bBuildingOnlyHealthy>
  <bNeverCapture>0</bNeverCapture>
  <bNukeImmune>1</bNukeImmune>
  <bPrereqReligion>0</bPrereqReligion>
  <bCenterInCity>0</bCenterInCity>
  <iAIWeight>0</iAIWeight>
  <iCost>160</iCost>
  <iHurryCostModifier>50</iHurryCostModifier>
  <iAdvancedStartCost>-1</iAdvancedStartCost>
  <iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
  <iMinAreaSize>-1</iMinAreaSize>
  <iConquestProb>0</iConquestProb>
  <iCitiesPrereq>4</iCitiesPrereq>
  <iTeamsPrereq>0</iTeamsPrereq>
  <iLevelPrereq>0</iLevelPrereq>
  <iMinLatitude>0</iMinLatitude>
  <iMaxLatitude>90</iMaxLatitude>
  <iGreatPeopleRateModifier>0</iGreatPeopleRateModifier>
  <iGreatGeneralRateModifier>0</iGreatGeneralRateModifier>
  <iDomesticGreatGeneralRateModifier>0</iDomesticGreatGeneralRateModifier>
  <iGlobalGreatPeopleRateModifier>0</iGlobalGreatPeopleRateModifier>
  <iAnarchyModifier>0</iAnarchyModifier>
  <iGoldenAgeModifier>0</iGoldenAgeModifier>
  <iGlobalHurryModifier>0</iGlobalHurryModifier>
  <iExperience>0</iExperience>
  <iGlobalExperience>0</iGlobalExperience>
  <iFoodKept>0</iFoodKept>
  <iAirlift>0</iAirlift>
  <iAirModifier>0</iAirModifier>
  <iAirUnitCapacity>0</iAirUnitCapacity>
  <iNukeModifier>0</iNukeModifier>
  <iNukeExplosionRand>0</iNukeExplosionRand>
  <iFreeSpecialist>0</iFreeSpecialist>
  <iAreaFreeSpecialist>0</iAreaFreeSpecialist>
  <iGlobalFreeSpecialist>0</iGlobalFreeSpecialist>
  <iMaintenanceModifier>0</iMaintenanceModifier>
  <iWarWearinessModifier>0</iWarWearinessModifier>
  <iGlobalWarWearinessModifier>0</iGlobalWarWearinessModifier>
  <iEnemyWarWearinessModifier>0</iEnemyWarWearinessModifier>
  <iHealRateChange>0</iHealRateChange>
  <iHealth>0</iHealth>
  <iAreaHealth>0</iAreaHealth>
  <iGlobalHealth>0</iGlobalHealth>
  <iHappiness>1</iHappiness>
  <iAreaHappiness>0</iAreaHappiness>
  <iGlobalHappiness>0</iGlobalHappiness>
  <iStateReligionHappiness>0</iStateReligionHappiness>
  <iWorkerSpeedModifier>0</iWorkerSpeedModifier>
  <iMilitaryProductionModifier>0</iMilitaryProductionModifier>
  <iSpaceProductionModifier>0</iSpaceProductionModifier>
  <iGlobalSpaceProductionModifier>0</iGlobalSpaceProductionModifier>
  <iTradeRoutes>0</iTradeRoutes>
  <iCoastalTradeRoutes>0</iCoastalTradeRoutes>
  <iGlobalTradeRoutes>0</iGlobalTradeRoutes>
  <iTradeRouteModifier>0</iTradeRouteModifier>
  <iForeignTradeRouteModifier>0</iForeignTradeRouteModifier>
  <iGlobalPopulationChange>0</iGlobalPopulationChange>
  <iFreeTechs>0</iFreeTechs>
  <iDefense>0</iDefense>
  <iBombardDefense>0</iBombardDefense>
  <iAllCityDefense>0</iAllCityDefense>
  <iEspionageDefense>0</iEspionageDefense>
  <iAsset>0</iAsset>
  <iPower>0</iPower>
  <fVisibilityPriority>10000.0</fVisibilityPriority>
  <SeaPlotYieldChanges/>
  <RiverPlotYieldChanges/>
  <GlobalSeaPlotYieldChanges/>
  <YieldChanges>
   <iYield>0</iYield>
   <iYield>0</iYield>
   <iYield>8</iYield>
  </YieldChanges>
  <CommerceChanges>
   <iCommerce>0</iCommerce>
   <iCommerce>0</iCommerce>
   <iCommerce>0</iCommerce>
   <iCommerce>4</iCommerce>
  </CommerceChanges>
  <ObsoleteSafeCommerceChanges>
   <iCommerce>0</iCommerce>
   <iCommerce>0</iCommerce>
   <iCommerce>2</iCommerce>
  </ObsoleteSafeCommerceChanges>
  <CommerceChangeDoubleTimes/>
  <CommerceModifiers/>
  <GlobalCommerceModifiers/>
  <SpecialistExtraCommerces/>
  <StateReligionCommerces/>
  <CommerceHappinesses/>
  <ReligionChanges/>
  <SpecialistCounts/>
  <FreeSpecialistCounts/>
  <CommerceFlexibles/>
  <CommerceChangeOriginalOwners/>
  <ConstructSound/>
  <BonusHealthChanges/>
  <BonusHappinessChanges/>
  <BonusProductionModifiers/>
  <UnitCombatFreeExperiences/>
  <DomainFreeExperiences/>
  <DomainProductionModifiers/>
  <BuildingHappinessChanges/>
  <PrereqBuildingClasses/>
  <BuildingClassNeededs/>
  <SpecialistYieldChanges/>
  <BonusYieldModifiers/>
  <ImprovementFreeSpecialists/>
  <Flavors/>
  <HotKey/>
  <bAltDown>0</bAltDown>
  <bShiftDown>0</bShiftDown>
  <bCtrlDown>0</bCtrlDown>
  <iHotKeyPriority>0</iHotKeyPriority>
 </BuildingInfo>
</BuildingInfos>


GlobalDefinesGlobalDefinesAltGlobalTypesPythonCallbackDefines

Art:

Civ4ArtDefines_BonusCiv4ArtDefines_BuildingCiv4ArtDefines_CivilizationCiv4ArtDefines_FeatureCiv4ArtDefines_ImprovementCiv4ArtDefines_InterfaceCiv4ArtDefines_LeaderheadCiv4ArtDefines_MiscCiv4ArtDefines_MovieCiv4ArtDefines_TerrainCiv4ArtDefines_UnitCiv4MainMenusCiv4RiverModelInfosCiv4RouteModelInfos

Audio; Buildings:

Audio2DScriptsAudio3DScriptsAudioDefinesAudioSoundscapeScriptsCiv4BuildingClassInfosCiv4BuildingInfosCiv4CityLSystemCiv4PlotLSystemCiv4SpecialBuildingInfos

BasicInfos:

Civ4AttitudeInfosCiv4BasicInfosCiv4CalendarInfosCiv4CityTabInfosCiv4DenialInfosCiv4DomainInfosCiv4InvisibleInfosCiv4MemoryInfosCiv4MonthInfosCiv4NewConceptInfosCiv4SeasonInfosCiv4UnitAIInfosCiv4UnitCombatInfos

Civilizations; Events:

Civ4CivilizationInfosCiv4LeaderHeadInfosCiv4TraitInfosCiv4UnitArtStyleTypeInfosCiv4EventInfosCiv4EventTriggerInfos

GameInfo:

Civ4CivicInfosCiv4CivicOptionInfosCiv4ClimateInfoCiv4CommerceInfoCiv4CorporationInfoCiv4CultureLevelInfoCiv4CursorInfoCiv4DiplomacyInfosCiv4EmphasizeInfosCiv4EspionageMissionInfoCiv4EraInfosCiv4ForceControlInfosCiv4GameOptionInfosCiv4GameSpeedInfoCiv4GoodyInfoCiv4GraphicOptionInfosCiv4HandicapInfoCiv4HintsCiv4MPOptionInfosCiv4PlayerOptionInfosCiv4ProcessInfoCiv4ReligionInfoCiv4SeaLevelInfoCiv4SpecialistInfosCiv4TurnTimerInfoCiv4UpKeepInfoCiv4VictoryInfoCiv4VoteInfoCiv4VoteSourceInfosCiv4WorldInfo

Interface:

Civ4AdvisorInfosCiv4CameraInfosCiv4ColorValsCiv4InterfaceModeInfosCiv4PlayerColorInfosCiv4SlideShowInfosCiv4SlideShowRandomInfosCiv4SpaceShipInfosCiv4ThroneRoomeInfosCiv4ThroneRoomCameraInfosCiv4ThroneRoomStyleInfosCiv4WorldPickerInfos

Misc:

Civ4AttachableInfosCiv4CameraOverlayInfosCiv4DetailManagerCiv4EffectInfosCiv4QuestInfosCiv4RiverInfosCiv4RouteInfosCiv4TerrainPlainInfosCiv4TutorialInfosCiv4WaterPlaneInfos

Technologies:

Civ4TechInfos

Terrain:

Civ4BonusClassInfosCiv4BonusInfosCiv4FeatureInfosCiv4ImprovementInfosCiv4SymbolMeshPathsCiv4TerrainInfosCiv4TerrainSettingsCiv4YieldInfos

Units:

Civ4AnimationInfosCiv4AnimationPathInfosCiv4AutomateInfosCiv4BuildInfosCiv4CommandInfosCiv4ControlInfosCiv4EntityEventInfosCiv4FormationInfosCiv4MissionInfosCiv4PromotionInfosCiv4SpecialUnitInfosCiv4UnitClassInfosCiv4UnitInfos

Schemas:

Civ4GlobalDefinesSchemaCiv4GlobalTypesSchemaCiv4ArtDefinesSchemaAudioDefinesSchemaAudioScriptSchemaCiv4BasicInfoSchemaCiv4BuildingSchemaCiv4LSystemSchemaCiv4CivilizationSchemaCiv4EventSchemaCiv4GameInfoSchemaCiv4InterfaceSchemaCiv4MiscSchemaCiv4TutorialSchemaCiv4DetailManagerSchemaCiv4TechnologiesSchemaCiv4TerrainSchemaCiv4FormationSchemaCiv4UnitSchema

Italics: Beyond the Sword only