Conditional Borders - AND/OR

How to make a map. Official Handbook, Guides, Tutorials and more...

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.
Post Reply
User avatar
dolomite13
Posts: 1379
Joined: Mon Aug 18, 2008 5:54 pm

Conditional Borders - AND/OR

Post 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=
Where Have I Been? ... Testing a prototype board game that I co-designed called Alien Overrun!
Post Reply

Return to “Tools & Guides”