Civ4MemoryInfos: Difference between revisions
(nYVIAsiQ) |
No edit summary |
||
Line 1: | Line 1: | ||
The '''Civ4MemoryInfos''' file defines the types of actions the AI will remember with regards to diplomacy relations. In Vanilla and Warlords this is contained in [[Civ4BasicInfos]]. | |||
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. | |||
==Tags== | |||
===Headers=== | |||
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data. | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | |||
|- | |||
! style="background:#efefef;" | Tag Name | |||
! style="background:#efefef;" | Description | |||
|- | |||
!MemoryInfos | |||
|This tag surrounds the entries in the file | |||
|- | |||
!MemoryInfo | |||
|Main bracket for each entry | |||
|} | |||
===Text=== | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | |||
|- | |||
! style="background:#efefef;" | Tag Name | |||
! style="background:#efefef;" | Description | |||
|- | |||
!Type | |||
|How the entry is referred to in other files | |||
|- | |||
!Description | |||
|The text for the entry in the game | |||
|} | |||
==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. | |||
<MemoryInfo> | |||
<Type>MEMORY_DECLARED_WAR</Type> | |||
<Description>TXT_KEY_MEMORY_DECLARED_WAR</Description> | |||
</MemoryInfo> | |||
{{Civ4_XML_Files}} |
Latest revision as of 20:57, 8 April 2010
The Civ4MemoryInfos file defines the types of actions the AI will remember with regards to diplomacy relations. In Vanilla and Warlords this is contained in Civ4BasicInfos.
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.
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 |
---|---|
MemoryInfos | This tag surrounds the entries in the file |
MemoryInfo | Main bracket for each entry |
Text
Tag Name | Description |
---|---|
Type | How the entry is referred to in other files |
Description | The text for the entry in the game |
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.
<MemoryInfo> <Type>MEMORY_DECLARED_WAR</Type> <Description>TXT_KEY_MEMORY_DECLARED_WAR</Description> </MemoryInfo>