Moderator: Cartographers
<continent>
<bonuses>
<bonus required="5">5</bonus>
<bonus required="8">15</bonus>
<bonus required="11">45</bonus>
</bonuses>
<components>
<component type="mandatory">essential country 1</component>
<component type="mandatory">essential country 2</component>
<component type="blocker">bad country!</component>
<component>variable country 1</component>
<component>variable country 2</component>
<component>variable country 3</component>
<component>variable country 4</component>
<component>variable country 5</component>
<component>variable country 6</component>
<component>variable country 7/component>
<component>variable country 8</component>
<component>variable country 9</component>
</components>
</continent>
nolefan5311 wrote:What this does, is say you hold all of France (that's would go under the "mandatory tag". You also hold French colonies (that would also go under the mandatory tag). But, if you put a "blocker" territory in there, let's say in this case England, you would then lose the bonus for France until you no longer held England. Is this what you mean Oneyed?
nolefan5311 wrote:Hmm. I'm not 100% sure what you mean.
Oneyed wrote:France +3, +1 for every 2 French colonies
England +2, +1 for every 2 English colonies
so player holds France. then he conquer 4 French colonies. so he gains +5.
latter he conquer England. so he gains also +2. then he conquer 2 English colonies, but he does not has bonus for them beause he holds bonus for French colonies.
<continent>
<name>England</name>
<bonus>2</bonus>
<components>
<territory>TerrA</territory>
etc etc
</components>
</continent>
<continent>
<name>France</name>
<bonus>3</bonus>
<components>
<territory>TerrB</territory>
etc etc
</components>
</continent>
<continent>
<name>2 English Colonies<name>
<bonus>0</bonus>
<components>
<territory>Eng Colony 1</territory>
<territory>Eng Colony 2</territory>
<territory>Eng Colony 3</territory>
<territory>Eng Colony 4</territory>
<territory>Eng Colony 5</territory>
<territory>Eng Colony 6</territory>
</components>
<required>2</required>
</continent>
<continent>
<name>4 English Colonies<name>
<bonus>0</bonus>
<components>
<territory>Eng Colony 1</territory>
<territory>Eng Colony 2</territory>
<territory>Eng Colony 3</territory>
<territory>Eng Colony 4</territory>
<territory>Eng Colony 5</territory>
<territory>Eng Colony 6</territory>
</components>
<required>4</required>
<overrides>
<override>2 English Colonies</override>
</overrides>
</continent>
<continent>
<name>6 English Colonies<name>
<bonus>0</bonus>
<components>
<territory>Eng Colony 1</territory>
<territory>Eng Colony 2</territory>
<territory>Eng Colony 3</territory>
<territory>Eng Colony 4</territory>
<territory>Eng Colony 5</territory>
<territory>Eng Colony 6</territory>
</components>
<required>6</required>
<overrides>
<override>2 English Colonies</override>
<override>4 English Colonies</override>
</overrides>
</continent>
<continent>
<name>2 French Colonies<name>
<bonus>0</bonus>
<components>
<territory>Fr Colony 1</territory>
<territory>Fr Colony 2</territory>
<territory>Fr Colony 3</territory>
<territory>Fr Colony 4</territory>
<territory>Fr Colony 5</territory>
<territory>Fr Colony 6</territory>
</components>
<required>2</required>
</continent>
<continent>
<name>4 French Colonies<name>
<bonus>0</bonus>
<components>
<territory>Fr Colony 1</territory>
<territory>Fr Colony 2</territory>
<territory>Fr Colony 3</territory>
<territory>Fr Colony 4</territory>
<territory>Fr Colony 5</territory>
<territory>Fr Colony 6</territory>
</components>
<required>4</required>
<overrides>
<override>2 French Colonies</override>
</overrides>
</continent>
<continent>
<name>6 French Colonies<name>
<bonus>0</bonus>
<components>
<territory>Fr Colony 1</territory>
<territory>Fr Colony 2</territory>
<territory>Fr Colony 3</territory>
<territory>Fr Colony 4</territory>
<territory>Fr Colony 5</territory>
<territory>Fr Colony 6</territory>
</components>
<required>6</required>
<overrides>
<override>2 French Colonies</override>
<override>4 French Colonies</override>
</overrides>
</continent>
<continent>
<name> England and 2 Colonies</name>
<bonus>3</bonus>
<components>
<continent>England</continent>
<continent>2 English Colonies</continent>
<components>
<overrides>
<override>England</override>
<override>2 English Colonies</override>
</overrides>
</continent>
<continent>
<name> England and 4 Colonies</name>
<bonus>4</bonus>
<components>
<continent>England</continent>
<continent>4 English Colonies</continent>
<components>
<overrides>
<override>England</override>
<override>4 English Colonies</override>
<override>England and 2 Colonies</override>
<override>France and 2 Colonies</override>
</overrides>
</continent>
<continent>
<name> England and 6 Colonies</name>
<bonus>5</bonus>
<components>
<continent>England</continent>
<continent>6 English Colonies</continent>
<components>
<overrides>
<override>England</override>
<override>6 English Colonies</override>
<override>England and 4 Colonies</override>
<override>France and 2 Colonies</override>
<override>France and 4 Colonies</override>
</overrides>
</continent>
<continent>
<name>France and 2 Colonies</name>
<bonus>4</bonus>
<components>
<continent>France</continent>
<continent>2 French Colonies</continent>
<components>
<overrides>
<override>France</override>
<override>2 French Colonies</override>
<override>England and 2 Colonies</override>
</overrides>
</continent>
<continent>
<name> France and 4 Colonies</name>
<bonus>5</bonus>
<components>
<continent>France</continent>
<continent>4 French Colonies</continent>
<components>
<overrides>
<override>France</override>
<override>4 French Colonies</override>
<override>France and 2 Colonies</override>
<override>England and 2 Colonies</override>
<override>England and 4 Colonies</override>
</overrides>
</continent>
<continent>
<name> France and 6 Colonies</name>
<bonus>6</bonus>
<components>
<continent>France</continent>
<continent>6 French Colonies</continent>
<components>
<overrides>
<override>France</override>
<override>6 French Colonies</override>
<override>France and 4 Colonies</override>
<override>England and 2 Colonies</override>
<override>England and 4 Colonies</override>
<override>England and 6 Colonies</override>
</overrides>
</continent>
ManBungalow wrote:As nobodies says, this is possible. However, I worry more about how the information will be conveyed on a map.
thenobodies80 wrote:Now, probably you can clean the code, afterall it's just an example.
It would be quicker if collection would allow to use the <continent> tag as component but actually it's not possible (i'm working to have it allowed![]()
)
thenobodies80 wrote:Hope it helps, sorry if I missed something.
Nobodies
Oneyed wrote:"Hold entire states of different Powers, bonus for occupied regions valids only for the first one held."
thenobodies80 wrote:It could be "only once".
thenobodies80 wrote:EDIT: a solution could be to set overrides so you give away only one bonus (not the first) and it is always the biggest the player holds. It can be done with overrides, like koontz said.
Oneyed wrote:I have another XML quetsion:
is possible to code that player A receive bonus if player B holds XYZ?
Oneyed
ender516 wrote:Make a continent, "Can Bombard X", with components A and B and blocker components C and D. Use that as the condition for bombarding X. Make another continent, "Can Bombard Y" with components C and D, and use it as the condition for bombarding Y.
Oneyed wrote:ender516 wrote:Make a continent, "Can Bombard X", with components A and B and blocker components C and D. Use that as the condition for bombarding X. Make another continent, "Can Bombard Y" with components C and D, and use it as the condition for bombarding Y.
what are blocker? it is something what can be codded in xml?
thanks.
Oneyed
<continent>
<bonuses>
<bonus required="1">1</bonus>
<bonus required="2">3</bonus>
<bonus required="3">5</bonus>
</bonuses>
<components>
<territory type="blocker">country 1</territory>
<territory>country 2</territory>
<territory>country 3</territory>
<territory>country 4</territory>
</components>
</continent>
Users browsing this forum: No registered users