CIV4LeaderHeadInfos

This page is incomplete and is missing information, and is badly formatted.
Please do not remove this notice until it is completed.

Summary

LeaderHeadInfos.xml is an XML file that regulate most of the AI leaders' behavior through simple variables. While simple to edit, the tags aren't always so easy to decipher. The guide below is to help figure out what these tags are talking about and how they effect gameplay. Also, so that new custom leaders may fit within vanilla standards, if so desired, the values for the highest and lowest values found among the standard civ leaders are also listed in brackets at the end of the description as Max/Min to help give some perspective on acceptable ranges for these numbers.

Information about some of the war tags is in Is there any logic to AI DOW? on CFC.

Single Line Tags

Text Tags

  • Type = LEADER_(insert leadername) This tag defines the leader's name for the rest of the XML coding.
  • Description = TXT_KEY_LEADER_(insert leadername) This tag references the description of this leader.
  • Civilopedia = TXT_KEY_LEADER_(insert leadername)_PEDIA This tag references the Civilopedia information for this leader.
  • ArtDefineTag = ART_DEF_LEADER_(insert leadername) This tag references the leaderhead art.
  • FavoriteCivic = Indicates the leader's favourite Civic. Hypothetically, you could use this to make a leader who preferred being barbaric & tribal.
  • TraitType = Indicates the trait name. Contained within the Trait Multi-line tag.
  • FlavorType = Indicates the flavours of the leader. Contained within the Flavor Multi-line tag.
  • ContactType = Indicates the behaviour a leader may take upon contact. Contained within both ContactRand & ContactDelay.
  • DemandTributeAttitudeThreshold = UNKNOWN EFFECT (ATTITUDE_CAUTIOUS - for all leaders)
  • HappinessBonusRefuseAttitudeThreshold = UNKNOWN EFFECT (NONE - for all leaders)
  • DemandTributeAttitudeThreshold = UNKNOWN EFFECT (Cautious - for all leaders)
  • NoGiveHelpAttitudeThreshold = UNKNOWN EFFECT (Cautious - for all leaders)
  • TechRefuseAttitudeThreshold = UNKNOWN EFFECT (None, Furious, Annoyed, Cautious)
  • StrategicBonusRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased)
  • HappinessBonusRefuseAttitudeThreshold = UNKNOWN EFFECT (None, Furious, Annoyed, Cautious)
  • HealthBonusRefuseAttitudeThreshold = UNKNOWN EFFECT (None, Furious, Annoyed, Cautious)
  • MapRefuseAttitudeThreshold = UNKNOWN EFFECT (None, Furious, Annoyed, Cautious, Pleased, Friendly)
  • DeclareWarRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased)
  • DeclareWarThemRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased, Friendly)
  • StopTradingRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased)
  • StopTradingThemRefuseAttitudeThreshold = UNKNOWN EFFECT (Furious, Annoyed, Cautious, Pleased)
  • AdoptCivicRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased)
  • ConvertReligionRefuseAttitudeThreshold = UNKNOWN EFFECT (Annoyed, Cautious, Pleased)
  • OpenBordersRefuseAttitudeThreshold = UNKNOWN EFFECT (None, Furious, Annoyed, Cautious)
  • DefensivePactRefuseAttitudeThreshold = UNKNOWN EFFECT (Cautious, Pleased)
  • PermanentAllianceRefuseAttitudeThreshold = UNKNOWN EFFECT (Pleased, Friendly)
  • MemoryType = UNKNOWN EFFECT. Contained within MemoryDecay & MemoryAttitudePercent.
  • AttitudeType = UNKNOWN EFFECT. Contained within NoWarAttitude.
  • UnitAIType = UNKNOWN EFFECT. Contained within UnitAIWeightModifier.
  • ImprovementType = UNKNOWN EFFECT. Contained within ImprovementWeightModifier.

Integer Tags

  • iWonderConstructRand = UNKNOWN EFFECT (50/0)
  • iBaseAttitude = UNKNOWN EFFECT (2/-1)
  • iBasePeaceWeight = UNKNOWN EFFECT (10/0)
  • iPeaceWeightRand = UNKNOWN EFFECT (3 - for all leaders)
  • iWarmongerRespect = UNKNOWN EFFECT (2/0)
  • iRefuseToTalkWarThreshold = UNKNOWN EFFECT (10/6)
  • iNoTechTradeThreshold = UNKNOWN EFFECT (20/5)
  • iTechTradeKnownPercent = UNKNOWN EFFECT (100/0)
  • iMaxGoldTradePercent = UNKNOWN EFFECT (20/5)
  • iMaxGoldPerTurnTradePercent = UNKNOWN EFFECT (10 - for all leaders)
  • iMaxWarRand = UNKNOWN EFFECT (400/50)
  • iMaxWarNearbyPowerRatio = UNKNOWN EFFECT (130/80)
  • iMaxWarDistantPowerRatio = UNKNOWN EFFECT (100/30)
  • iMaxWarMinAdjacentLandPercent = UNKNOWN EFFECT (4/0)
  • iLimitedWarRand = UNKNOWN EFFECT (200/40)
  • iLimitedWarPowerRatio = UNKNOWN EFFECT (130/80)
  • iDogpileWarRand = UNKNOWN EFFECT (100/25)
  • iMakePeaceRand = UNKNOWN EFFECT (80/10)
  • iDeclareWarTradeRand = UNKNOWN EFFECT (40 - for all leaders)
  • iDemandRebukedSneakProb = UNKNOWN EFFECT (100/0)
  • iDemandRebukedWarProb = UNKNOWN EFFECT (50/0)
  • iRazeCityProb = UNKNOWN EFFECT (75/0)
  • iBuildUnitProb = UNKNOWN EFFECT (40/15)
  • iBaseAttackOddsChange = UNKNOWN EFFECT (6/0)
  • iAttackOddsChangeRand = UNKNOWN EFFECT (10 - for all leaders)
  • iWorseRankDifferenceAttitudeChange = UNKNOWN EFFECT (0/-3)
  • iBetterRankDifferenceAttitudeChange = UNKNOWN EFFECT (4/0)
  • iCloseBordersAttitudeChange = UNKNOWN EFFECT (-2/-4)
  • iLostWarAttitudeChange = UNKNOWN EFFECT (-1 - for all leaders)
  • iAtWarAttitudeDivisor = UNKNOWN EFFECT (-5 - for all leaders)
  • iAtWarAttitudeChangeLimit = UNKNOWN EFFECT (5 - for all leaders)
  • iAtPeaceAttitudeDivisor = UNKNOWN EFFECT (60 - for all leaders)
  • iAtPeaceAttitudeChangeLimit = UNKNOWN EFFECT (1 - for all leaders)
  • iSameReligionAttitudeChange = UNKNOWN EFFECT (1 - for all leaders)
  • iSameReligionAttitudeDivisor = UNKNOWN EFFECT (10 - for all leaders)
  • iSameReligionAttitudeChangeLimit = UNKNOWN EFFECT (7/2)
  • iDifferentReligionAttitudeChange = UNKNOWN EFFECT (0/-2)
  • iDifferentReligionAttitudeDivisor = UNKNOWN EFFECT (-5 - for all leaders)
  • iDifferentReligionAttitudeChangeLimit = UNKNOWN EFFECT (-1 - for all leaders)
  • iBonusTradeAttitudeDivisor = UNKNOWN EFFECT (50 - for all leaders)
  • iBonusTradeAttitudeChangeLimit = UNKNOWN EFFECT (2 - for all leaders)
  • iOpenBordersAttitudeDivisor = UNKNOWN EFFECT (25 - for all leaders)
  • iOpenBordersAttitudeChangeLimit = UNKNOWN EFFECT (2 - for all leaders)
  • iDefensivePactAttitudeDivisor = UNKNOWN EFFECT (12 - for all leaders)
  • iDefensivePactAttitudeChangeLimit = UNKNOWN EFFECT (2 - for all leaders)
  • iShareWarAttitudeChange = UNKNOWN EFFECT (1 - for all leaders)
  • iShareWarAttitudeDivisor = UNKNOWN EFFECT (8 - for all leaders)
  • iShareWarAttitudeChangeLimit = UNKNOWN EFFECT (4/2)
  • iFavoriteCivicAttitudeChange = UNKNOWN EFFECT (1 - for all leaders)
  • iFavoriteCivicAttitudeDivisor = UNKNOWN EFFECT (10 - for all leaders)
  • iFavoriteCivicAttitudeChangeLimit = UNKNOWN EFFECT (6/1)
  • iFlavor = Indicates priority/strength of the partnered flavour.
  • iContactRand = UNKNOWN EFFECT. Contained within ContactRand.
  • iContactDelay = UNKNOWN EFFECT. Contained within ContactDelay.
  • iMemoryRand = UNKNOWN EFFECT. Contained within MemoryDecay.
  • iMemoryAttitudePercent = UNKNOWN EFFECT. Contained within MemoryAttitudePercent.
  • iNoWarProb = UNKNOWN EFFECT. Contained within NoWarAttitude.
  • iWeightModifier = UNKNOWN EFFECT. Contained within UnitAIWeightModifiers & ImprovementWeightModifier.

Boolean Tags

  • bTrait = indicates if the partnered trait is actually a trait or not. Contained within the Trait Multi-line tag.

Multi-line Tags

  • Traits = Brackets individual Trait sets.
    • Trait = Bracket that contains the Trait information, TraitType & bTrait.
  • Flavors = Brackets individual Flavor sets.
    • Flavor = Bracket that contains the Flavor information, FlavorType & iFlavor.
  • ContactRands = UNKNOWN EFFECT. Contains ContactRand.
    • ContactRand = UNKNOWN EFFECT. Contains ContactType & iContactRand.
  • ContactDelays = UNKNOWN EFFECT. Contains ContactDelay.
    • ContactDelay = UNKNOWN EFFECT. Contains ContactType & iContactDelay.
  • MemoryDecays = UNKNOWN EFFECT. Contains MemoryDecay.
    • MemoryDecay = UNKNOWN EFFECT. Contains MemoryType & iMemoryRand.
  • MemoryAttitudePercents = UNKNOWN EFFECT. Contains MemoryAttitudePercent.
    • MemoryAttitudePercent = UNKNOWN EFFECT. Contains MemoryType & iMemoryAttitudePercent.
  • NoWarAttitudes = UNKNOWN EFFECT. Contains NoWarAttitude.
    • NoWarAttitude = UNKNOWN EFFECT. Contains AttitudeType & iNoWarProb.
  • UnitAIWeightModifiers = UNKNOWN EFFECT. Contains UnitAIWeightModifier.
    • UnitAIWeightModifier = UNKNOWN EFFECT. Contains UnitAIType & iWeightModifier.
  • ImprovementWeightModifiers = UNKNOWN EFFECT. Contains ImprovementWeightModifier.
    • ImprovementWeightModifier = UNKNOWN EFFECT. Contains ImprovementType & iWeightModifier.

Example

please insert example here
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License