Civ4HurryInfo
The CIV4HurryInfo.xml file defines the possible rush types in the game. In BTS, there are two rush types: the "whip" (rushing costs people) and with gold (rushing costs gold).
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 |
---|---|
HurryInfo | Main bracket for each entry |
Type | Label that is used throughout all other XML files |
Text
Tag Name | Description |
---|---|
Description | References the Text which contains the tooltip for this rush type. The text is specified in any of the Assets\XML\Text files. |
Integers
All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.
Tag Name | Description |
---|---|
iGoldPerProduction | Sets how much gold must be spent per each unity of production to rush. |
iProductionPerPopulation | Sets how much production is obtained by losing a single unit of people. |
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 |
---|---|
bAnger | Defines if this rush type causes unhappiness in the city. |
Art
These tags are directly related to the rendering of art for the entry.
Tag Name | Description |
---|---|
Button | The path of the dds file which contains the symbol for this hurry button. |
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.
<HurryInfo> <Type>HURRY_POPULATION</Type> <Description>TXT_KEY_HURRY_POPULATION</Description> <iGoldPerProduction>0</iGoldPerProduction> <iProductionPerPopulation>30</iProductionPerPopulation> <bAnger>1</bAnger> <Button>Art/Interface/MainScreen/CityScreen/hurry_slavery.dds</Button> </HurryInfo>
Back to XML Reference |