Page 1 of 1

Conditional Borders - AND/OR

PostPosted: Mon Nov 18, 2013 6:34 pm
by dolomite13
When dealing with Conditional Borders we discovered something that I think mapmakers should be aware of.

If you have two conditions that both link the same territory then the engine treats it as an "AND" not an "OR" condition.

In this example the connection to Alabama would not open unless you held both New York AND Alaska.

Code: Select all
<territory>
    <name>Texas</name>
    <borders>
       <border>Oklahoma</border>
       <border>Arizona</border>
       <border condition="New York">Alabama</border>
       <border condition="Alaska">Alabama</border>
    </borders>
    <coordinates>
    ...
    </coordinates>
</territory>


To accomplish the OR you would need to do something like this...

Code: Select all
<continent>
   <name>New Your or Alaska</name>
   <bonus>0</bonus>
   <territories>
      <territory>New York</territory>
      <territory>Alaska</territory>
   </territories>
   <required>1</required>
<continent>


Code: Select all
<territory>
    <name>Texas</name>
    <borders>
       <border>Oklahoma</border>
       <border>Arizona</border>
       <border condition="New York or Alaska">Alabama</border>
    </borders>
    <coordinates>
    ...
    </coordinates>
</territory>


Hope this helps :D

=D13=