Civ4VoteInfo: Difference between revisions
(Created page with 'The '''Civ4VoteInfo''' file defines the types of votes that can be initiated via the UN and the AP. All tags must be opened and closed; the first is the "open", the second the "...') |
Ginger Ale (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The '''Civ4VoteInfo''' file defines the types of votes that can be initiated via the | The '''Civ4VoteInfo''' file defines the types of votes that can be initiated via the United Nations and the Apostolic Palace. | ||
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. | 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. |
Latest revision as of 20:36, 16 June 2009
The Civ4VoteInfo file defines the types of votes that can be initiated via the United Nations and the Apostolic Palace.
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 |
---|---|
VoteInfos | This tag surrounds all entries of the file |
VoteInfo | Main bracket for each entry |
Text
Tag Name | Description |
---|---|
Type | How the entry is referenced in files |
Description | The text for the entry in the game |
Integers
All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.
Tag Name | Description |
---|---|
iPopulationThreshold | unknown |
iMinVoters | Number of voting members necessary for the vote to be voted on |
iStateReligionVotePercent | unknown |
iTradeRoutes | Number of trade routes granted to each member if vote passes |
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 |
---|---|
bSecretaryGeneral | Whether vote is for the leader of the UN/AP |
bVictory | Whether vote is for diplomatic victory |
bFreeTrade | Whether vote is for free trade between members |
bNoNukes | Whether vote is to ban nukes |
bDefensivePact | Whether vote is for a defensive pact between members |
bOpenBorders | Whether vote is for open borders between members |
bForcePeace | Whether vote is to end a war between members |
bForceNoTrade | Whether vote is to create an embargo against a non-member |
bForceWar | Whether vote is to have members declare war against a non-member |
bAssignCity | Whether vote is to change the ownership of a city from one member to another (return control after conquest) |
Lists (Multi-line)
All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).
Tag Name | Description |
---|---|
ForceCivics | The vote will require the members to use any civics defined here if passed
<ForceCivic> <CivicType>CIVIC_UNIVERSAL_SUFFRAGE</CivicType> <bForce>1</bForce> </ForceCivic> |
DiploVotes | The vote can be initiated from any vote source defined here (options are DIPLOVOTE_UN and DIPLOVOTE_POPE by default)
<DiploVote> <DiploVoteType>DIPLOVOTE_UN</DiploVoteType> <bValid>1</bValid> </DiploVote> |
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.
<VoteInfo> <Type>VOTE_UNIVERSAL_SUFFRAGE</Type> <Description>TXT_KEY_VOTE_UNIVERSAL_SUFFRAGE</Description> <iPopulationThreshold>51</iPopulationThreshold> <bCityVoting>0</bCityVoting> <bCivVoting>0</bCivVoting> <iMinVoters>3</iMinVoters> <iStateReligionVotePercent>0</iStateReligionVotePercent> <iTradeRoutes>0</iTradeRoutes> <bSecretaryGeneral>0</bSecretaryGeneral> <bVictory>0</bVictory> <bFreeTrade>0</bFreeTrade> <bNoNukes>0</bNoNukes> <bDefensivePact>0</bDefensivePact> <bOpenBorders>0</bOpenBorders> <bForcePeace>0</bForcePeace> <bForceNoTrade>0</bForceNoTrade> <bForceWar>0</bForceWar> <bAssignCity>0</bAssignCity> <ForceCivics> <ForceCivic> <CivicType>CIVIC_UNIVERSAL_SUFFRAGE</CivicType> <bForce>1</bForce> </ForceCivic> </ForceCivics> <DiploVotes> <DiploVote> <DiploVoteType>DIPLOVOTE_UN</DiploVoteType> <bValid>1</bValid> </DiploVote> </DiploVotes> </VoteInfo>