Moderator: Cartographers
Code: Select all
<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>my idea is adversive. when you hold France at the first (and bonus for France ofcourse), then bonus for France colonies and then you capture England you will have only bonus for England but not for England colonies. until you have France.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?
it is my bad english....nolefan5311 wrote:Hmm. I'm not 100% sure what you mean.
England = AOneyed 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.
Code: Select all
<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>Code: Select all
<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>
Code: Select all
<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>I need day-two and I will post new map. you can find this thereManBungalow wrote: As nobodies says, this is possible. However, I worry more about how the information will be conveyed on a map.
this sounds as big help to xml codders. good luck with itthenobodies80 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![]()
)
big thanks guys. be patient and wait how I implement this to map.thenobodies80 wrote: Hope it helps, sorry if I missed something.
Nobodies

What I'm saying is that the above is not possible....or at least bad written on the map.Oneyed wrote:"Hold entire states of different Powers, bonus for occupied regions valids only for the first one held."
this is also fine and the right thing which I needs for "holding more entire states of the same Power".thenobodies80 wrote:It could be "only once".
this sounds also fine. just how "the biggest" bonus works? is it depends on current situation or is it which bonus is still higher?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.
No.Oneyed wrote:I have another XML quetsion:
is possible to code that player A receive bonus if player B holds XYZ?
Oneyed

what are blocker? it is something what can be codded in xml?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.
Yes. XML GuideOneyed wrote:what are blocker? it is something what can be codded in xml?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.
thanks.
Oneyed
Code: Select all
<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>
Code: Select all
<continent>
<name>Continent A<name>
<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>
<continent>
<name>Continent B</name>
<bonus>10</bonus>
<components>
<continent>Continent A</continent>
<territory>country 5</territory>
</continent>