Civ4VictoryInfo: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
m (Protected "Civ4VictoryInfo": Excessive vandalism ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(→‎Text: Added to CityCulture (see talk))
 
(One intermediate revision by one other user not shown)
Line 42: Line 42:
|-
|-
!CityCulture
!CityCulture
|If NONE, there is no prerequisite culture level for iNumCultureCities number of cities in order to achieve victory.  The standard culture victory has the tag CULTURELEVEL_LEGENDARY, indicating that cities need to have Legendary culture to reach victory.
|Sets the minimum culturelevel a city needs to atain to count towards a cultural victory. If NONE, there is no prerequisite culture level for iNumCultureCities number of cities in order to achieve victory.  The standard culture victory has the tag CULTURELEVEL_LEGENDARY, indicating that cities need to have Legendary culture to reach victory.
|-
|-
!VictoryMovie
!VictoryMovie
|This declares a text tag in the Civ4ArtDefines_Movie file which references the movie played after this victory is reached.   
|This declares a text tag in the Civ4ArtDefines_Movie file which references the movie played after this victory is reached.   
|}
|}


===Integers===
===Integers===

Latest revision as of 13:07, 9 April 2013

The Civ4VictoryInfo file defines the settings and triggers of the various victory conditions (Domination, Conquest, Diplomatic, etc.).

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

Headers

These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.

Tag Name Description
VictoryInfos This tag begins and ends the file. All other tags are contained within the opening and closing VictoryInfos tags.
VictoryInfo This contains the information for each victory condition.


Text

Tag Name Description
Type This tag declares the internal name of the victory condition. It is used to refer to this specific victory condition in other files.
Description This text tag is a reference to an entry in the text files that controls the display name in various languages for the victory condition.
Civilopedia Another text tag which refers to the multi-language Civilopedia entry for this victory condition.
CityCulture Sets the minimum culturelevel a city needs to atain to count towards a cultural victory. If NONE, there is no prerequisite culture level for iNumCultureCities number of cities in order to achieve victory. The standard culture victory has the tag CULTURELEVEL_LEGENDARY, indicating that cities need to have Legendary culture to reach victory.
VictoryMovie This declares a text tag in the Civ4ArtDefines_Movie file which references the movie played after this victory is reached.

Integers

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

Tag Name Description
iPopulationPercentLead Presumably how much more population you must have over the next most populous civilization to win.
iLandPercent Indicates the total percentage of land you and your vassals must control to achieve this victory.
iMinLandPercent Indicates the minimum percentage of land that you personally must control to achieve victory.
iReligionPercent Indicates the total percentage of cities that must be following your state religion (when you control the holy city) in order to win.
iNumCultureCities This integer tag contains the number of cities that must meet the CityCulture tag's level of culture points.
iTotalCultureRatio Unknown. All standard victory conditions have a value of 0.
iVictoryDelayTurns Number of turns before the victory is registered officially by the game and a win is triggered. This is used for the Spaceship victory condition.

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
bTargetScore If set to 1, the victory will trigger if a team reaches a target score as defined in a wouldbuildersave file.
bEndScore If set to 1, the victory is based on the player with the highest score at the end of the game (2050 by default).
bConquest If 1, this victory requires the elimination of all enemies and qualifies as a Conquest win.
bDiploVote If 1, this victory requires the player to be elected in a worldwide vote and qualifies as a Diplomatic win.
bPermanent Unknown. The only standard condition with a value of 1 is VICTORY_SCORE.

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.

<VictoryInfos>
 <VictoryInfo>
  <Type>VICTORY_SCORE</Type>
  <Description>TXT_KEY_VICTORY_SCORE</Description>
  <Civilopedia>TXT_KEY_VICTORY_SCORE_PEDIA</Civilopedia>
  <bTargetScore>1</bTargetScore>
  <bEndScore>0</bEndScore>
  <bConquest>0</bConquest>
  <bDiploVote>0</bDiploVote>
  <bPermanent>1</bPermanent>
  <iPopulationPercentLead>0</iPopulationPercentLead>
  <iLandPercent>0</iLandPercent>
  <iMinLandPercent>0</iMinLandPercent>
  <iReligionPercent>0</iReligionPercent>
  <CityCulture>NONE</CityCulture>
  <iNumCultureCities>0</iNumCultureCities>
  <iTotalCultureRatio>0</iTotalCultureRatio>
  <iVictoryDelayTurns>0</iVictoryDelayTurns>
  <VictoryMovie/>
 </VictoryInfo>
</VictoryInfos>


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