CIV4BuildInfos
Table of Contents
|
Summary
This files defines the parameters for building tile improvements (e.g., farm, quarry)
Other Files
Each <BuildInfo> needs an <ImprovementInfo> in ImprovementInfos.xml and vice versa. The order of <BuildInfos> in this file determines the order in which worker action buttons appear on the action button bar. The order of <BuildInfo>s and <ImprovementInfo>s needs to match, or else some actions might not appear on the button bar. Workers or other units need a <Build> in their <UnitInfo> for each build.
Single-Line Tags
Text Tags
- Type = The internal tag (name) for the improvement type.
- Description = What the text entry is named for that improvement type.
- Help = Additional info about the improvement. Not used in standard game.
- PrereqTech = The technology required before that improvement can be built.
- ImprovementType = What sort of improvement will be produced by the action.
- RouteType = What Route Type will be produced by the action (road or railroad).
- EntityEvent = UNKNOWN EFFECT
- HotKey = The hotkey associated with the build action.
- Button = Links to a dds file, used as 'button' for this improvement.
Boolean Tags
- bKill = The building action will use up (destroy) the unit (work boat).
- bAltDown = If '1', the ALT key is need with the hotkey for a shortcut (e.g., ALT+F).
- bShiftDown = If '1', the SHIFT key is need with the hotkey for a shortcut (e.g., SHIFT+F).
- bCtrlDown = If '1', the CTRL key is need with the hotkey for a shortcut (e.g., CTRL+F).
Integer Tags
- iTime = Base time needed to produce the improvement.
- iHotKeyPriority = Defines priority of using the same hotkey.
Multi-Line Tags
- FeatureStructs = This is used to determine additional building modifiers in certain feature types. In stock Civ, this means what happens when the improvement is built in Forest or Jungle.
Example
Mine
<BuildInfo>
<Type>BUILD_MINE</Type>
<Description>TXT_KEY_BUILD_MINE</Description>
<Help/>
<PrereqTech>TECH_MINING</PrereqTech>
<iTime>400</iTime>
<bKill>0</bKill>
<ImprovementType>IMPROVEMENT_MINE</ImprovementType>
<RouteType>NONE</RouteType>
<EntityEvent>ENTEVENT_MINE</EntityEvent>
<FeatureStructs>
<FeatureStruct>
<FeatureType>FEATURE_JUNGLE</FeatureType>
<PrereqTech>TECH_IRON_WORKING</PrereqTech>
<iTime>400</iTime>
<iProduction>0</iProduction>
<bRemove>1</bRemove>
</FeatureStruct>
<FeatureStruct>
<FeatureType>FEATURE_FOREST</FeatureType>
<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
<iTime>250</iTime>
<iProduction>30</iProduction>
<bRemove>1</bRemove>
</FeatureStruct>
</FeatureStructs>
<HotKey>KB_M</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<Button>,Art/Interface/Buttons/Builds/BuildMine.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,6,7</Button>
</BuildInfo>
page revision: 4, last edited: 07 May 2009 16:43