From Civilization Modding Wiki
Jump to navigationJump to search
|
|
Line 366: |
Line 366: |
| | TechType || Text || Technologies(Type) | | | TechType || Text || Technologies(Type) |
| |} | | |} |
| | |
| | {{Civ5_XML_Files}} |
Revision as of 19:28, 27 September 2010
CIV5Units.xml
- The CIV5Units.xml file contains definitions for the units. The tables below indicate the structure of the entries in the CIV5Units file.
- The reference field in the tables below indicates the table and column the entry is linked to.
- This information is taken from the CIV5Units.xml file.
Units
Units Table
Name
|
Type
|
Default
|
Reference
|
Notes
|
ID |
integer |
|
|
Primary Key, Auto-Incremented
|
Type |
Text |
|
|
|
Description |
Text |
NULL |
|
|
Civilopedia |
Text |
NULL |
|
|
Help |
Text |
NULL |
|
|
Requirements |
integer |
|
|
|
Combat |
integer |
0 |
|
|
RangedCombat |
integer |
0 |
|
|
Cost |
integer |
0 |
|
|
Moves |
integer |
0 |
|
|
Immobile |
boolean |
FALSE |
|
|
Range |
integer |
0 |
|
|
BaseSightRange |
integer |
2 |
|
|
Class |
Text |
NULL |
UnitClasses(Type) |
|
Special |
Text |
NULL |
SpecialUnits(Type) |
|
Capture |
Text |
NULL |
UnitClasses(Type) |
|
CombatClasss |
Text |
NULL |
UnitCombatInfos(Type) |
|
Domain |
Text |
NULL |
Domains(Type) |
|
DefaultUnitAI |
Text |
NULL |
UnitAIInfos(Type) |
|
Food |
boolean |
FALSE |
|
|
NoBadGoodies |
boolean |
FALSE |
|
|
RivalTerritory |
boolean |
FALSE |
|
|
MilitarySupport |
boolean |
FALSE |
|
|
MilitaryProduction |
boolean |
FALSE |
|
|
Pillage |
boolean |
FALSE |
|
|
Found |
boolean |
FALSE |
|
|
CultureBombRadius |
integer |
0 |
|
|
GoldenAgeTurns |
integer |
0 |
|
|
IgnoreBuildingDefense |
boolean |
FALSE |
|
|
PrereqResources |
boolean |
FALSE |
|
|
Mechanized |
boolean |
FALSE |
|
|
Suicide |
boolean |
FALSE |
|
|
PrereqTech |
Text |
NULL |
Technologies(Type) |
|
ObsoleteTech |
Text |
NULL |
Technologies(Type) |
|
GoodyHutUpgradeUnitClass |
Text |
NuLL |
UnitClasses(Type) |
|
HurryCostModifier |
integer |
0 |
|
|
AdvancedStartCost |
integer |
0 |
|
|
MinAreaSize |
integer |
-1 |
|
|
AirUnitCap |
integer |
0 |
|
|
NukeDamageLevel |
integer |
-1 |
|
|
WorkRate |
integer |
0 |
|
|
NumFreeTechs |
integer |
0 |
|
|
RushBuilding |
boolean |
FALSE |
|
|
BaseHurry |
integer |
0 |
|
|
HurryMultiplier |
integer |
0 |
|
|
BaseGold |
integer |
0 |
|
|
NumGoldPerEra |
integer |
0 |
|
|
SpreadReligion |
boolean |
FALSE |
|
|
IsReligious |
boolean |
FALSE |
|
|
CombatLimit |
integer |
100 |
|
|
RangeAttackOnlyInDomain |
boolean |
FALSE |
|
|
RangeAttackIgnoreLOS |
boolean |
FALSE |
|
|
RangedCombatLimit |
integer |
0 |
|
|
XPValueAttack |
integer |
0 |
|
|
XPValueDefense |
integer |
0 |
|
|
SpecialCargo |
Text |
NULL |
SpecialUnits(Type) |
|
DomainCargo |
Text |
NULL |
Domains(Type) |
|
Conscription |
integer |
0 |
|
|
ExtraMaintenanceCost |
integer |
0 |
|
|
NoMaintenance |
boolean |
0 |
|
|
Unhappiness |
integer |
0 |
|
|
UnitArtInfo |
Text |
NULL |
|
|
UnitArtInfoCulturalVariation |
boolean |
FALSE |
|
|
UnitArtInfoEraVariation |
boolean |
FALSE |
|
|
ProjectPrereq |
Text |
NULL |
Projects(Type) |
|
SpaceshipProject |
Text |
NULL |
Projects(Type) |
|
LeaderPromotion |
Text |
NULL |
UnitPromotions(Type) |
|
LeaderExperience |
integer |
0 |
|
|
ShowInPedia |
boolean |
TRUE |
|
|
MoveRate |
Text |
BIPED |
MovementRates(Type) |
|
UnitFlagIconOffset |
integer |
0 |
|
|
PortraitIndex |
integer |
-1 |
|
|
IconAtlas |
Text |
NULL |
IconTextureAtlases(Atlas) |
|
UnitFlagAtlas |
Text |
UNIT_FLAG_ATLAS |
IconTextureAtlases(Atlas) |
|
Unit_AITypes
- CIV5UnitAIInfos contains the definitions of the UnitAIInfos used in this table
Unit_AITypes Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
UnitAIType |
Text |
UnitAIInfos(Type)
|
Unit_Buildings
- CIV5Buildings contains the definitions of the Buildings used in this table
Unit_Buildings Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
BuildingType |
Text |
Buildings(Type)
|
Unit_BuildingClassRequireds
Unit_BuildingClassRequireds Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
BuildingClassType |
Text |
BuildingClasses(Type)
|
Unit_ProductionModifierBuildings
- CIV5Buildings contains the definitions of the Buildings used in this table
Unit_ProductionModifierBuildings Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
BuildingType |
Text |
Buildings(Type)
|
ProductionModifier |
Integer |
|
Unit_Builds
- CIV5Builds contains the definitions of the Builds used in this table
Unit_Builds Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
BuildType |
Text |
Builds(Type)
|
Unit_ClassUpgrades
- CIV5UnitClasses contains the definitions of the UnitClasses used in this table
Unit_ClassUpgrades Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
UnitClassType |
Text |
UnitClasses(Type)
|
Unit_FreePromotions
Unit_FreePromotions Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
PromotionType |
Text |
UnitPromotions(Type)
|
Unit_Flavors
- CIV5Flavors contains the definitions of the Flavors used in this table
Unit_Flavors Table
Name
|
Type
|
Reference
|
Notes
|
UnitType |
Text |
Units(Type) |
|
FlavorType |
Text |
Flavors(Type) |
|
Flavor |
Integer |
|
Not Null
|
Unit_GreatPersons
- CIV5Specialists contains the definitions of the Specialists used in this table
Unit_GreatPersons Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
GreatPersonType |
Text |
Specialists(Type)
|
Unit_ResourceQuantityRequirements
- CIV5Resources contains the definitions of the Resources used in this table
Unit_ResourceQuantityRequirements Table
Name
|
Type
|
Reference
|
Default
|
UnitType |
Text |
Units(Type) |
|
ResourceType |
Text |
Resources(Type) |
|
Cost |
Integer |
|
1
|
Unit_UniqueNames
Unit_UniqueNames Table
Name
|
Type
|
Reference
|
Notes
|
UnitType |
Text |
Units(Type) |
|
UniqueName |
Text |
Language_en_US(Tag) |
Not Null
|
Unit_NotAITypes
- This table might not be used according to the xml file.
- CIV5UnitAIInfos contains the definitions of the UnitAIInfos used in this table
Unit_NotAITypes Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
UnitAIType |
Text |
UnitAIInfos(Type)
|
Unit_ProductionTraits
- This table might not be used according to the xml file.
- CIV5Traits contains the definitions of the Traits used in this table
Unit_ProductionTraits Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
TraitType |
Text |
Traits(Type)
|
Trait |
Integer |
|
Unit_TechTypes
- This table might not be used according to the xml file.
- CIV5Technologies contains the definitions of the Technologies used in this table
Unit_TechTypes Table
Name
|
Type
|
Reference
|
UnitType |
Text |
Units(Type)
|
TechType |
Text |
Technologies(Type)
|