Conditional Borders - AND/OR

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

Moderators: Cartographers, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Conditional Borders - AND/OR

Postby dolomite13 on Mon Nov 18, 2013 6:34 pm

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=
User avatar
Cook dolomite13
Cartography Assistant
Cartography Assistant
 
Posts: 1459
Joined: Mon Aug 18, 2008 5:54 pm
Medals: 35
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (1) Teammate Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)
General Achievement (2) Map Contribution (4) General Contribution (4)

Return to Tools & Guides

Who is online

Users browsing this forum: No registered users

Login