edbeard wrote:lanyards wrote:How is this connected territories bonus going to work? How can you code the XML so your bonuses do not overlap, as stated in the legend?
--lanyards
very carefully.
Well basically you'd have to code a whole lot of continents and a whole lot of overrides.
Figuring out what has to override what is probably the hardest part. The XML will be so huge though.
It might be easier to code it backwards. Code all the four connected for one colour. Code all the five connected and override as necessary.
One thing I don't know is if I code a six connected, and it overrides a five connected continent, do I have to override the four connected continent that the five connected continent already overrides. To be a bit simpler.
B overrides A.
C overrides B.
Does C also automatically override A, or do I need to code that into the C continent?
This is a very complicated question Ed... in short yes. (I asked Lack this very question a few months ago)...
However - the beauty of this is you can do some quite funky things with the overrides...
i.e. consider this.
Code: Select all
<continent>
<name>4 reds
<bonus>2
<components>
<territory>Red 1
<territory>Red 2
<territory>Red 3
<territory>Red 4
</components>
</continent>
<continent>
<name>4 reds
<bonus>2
<components>
<territory>Red 2
<territory>Red 3
<territory>Red 4
<territory>Red 5
</components>
</continent>
<continent>
<name>4 reds
<bonus>2
<components>
<territory>Red 3
<territory>Red 4
<territory>Red 5
<territory>Red 6
</components>
</continent>
<continent>
<name>4 reds
<bonus>2
<components>
<territory>Red 4
<territory>Red 5
<territory>Red 6
<territory>Red 7
</components>
</continent>
So lets say that's all the red 4 combos.
Now we can do this...
Code: Select all
<continent>
<name>5 reds
<bonus>3
<components>
<territory>Red 1
<territory>Red 2
<territory>Red 3
<territory>Red 4
<territory>Red 5
</components>
<overrides>
<override>4 reds
</overrides>
</continent>
<continent>
<name>5 reds
<bonus>3
<components>
<territory>Red 2
<territory>Red 3
<territory>Red 4
<territory>Red 5
<territory>Red 6
</components>
<overrides>
<override>4 reds
</overrides>
</continent>
<continent>
<name>5 reds
<bonus>3
<components>
<territory>Red 3
<territory>Red 4
<territory>Red 5
<territory>Red 6
<territory>Red 7
</components>
<overrides>
<override>4 reds
</overrides>
</continent>
Why can we do this?
The overrides will only trigger on the continents that are already owned by the player...
So for instance the first "5 reds" will override all "4 reds" but will only in reality override the first 2 "4 reds"
Of course this will only work if there isn't a place where you can get 4 reds & 5 reds in 2 different locationsi.e. this won't work in this map... this map will most likely require each combination of reds to be defined in it's own continent...
Unless WM changes it to hold X of coloured territories...
C.