XML - Using Conditional Borders
Posted: Fri Aug 02, 2013 12:07 pm
So I have a concept for a map that would heavily rely on conditional borders. This will allow me to simulate rolling the dice in other board games that are more roll-and-move oriented or more worker placement style game. Imagine each turn needing to decide where you want to conquer and then selecting a number that would let you conquer that territory at that distance. Alternately you could conquer a number just to keep it out of your opponents hands if you had a finite pool of numbers. I could see this being great fun and very strategically important in freestyle games.
Please let me know if this seems doable with the current xml.
* I would like to have a group of territories that represent the numbers 1 through 6.
* These territories would be coded as killer 1.
* When you do not have any of them you would be able to assault them from any of your territories.
* When you have conquered one of them you would no longer be able to assault any of them.
* when you have conquered one of them the distance you could assault from each of your territories would change to match the number you conquered.
* if you don't conquer a number you can't assault any territories
I assume I would need a continent called something like "no numbers" and code the conditions something like this.
Thoughts?
=D13=
Territories
Code
Please let me know if this seems doable with the current xml.
* I would like to have a group of territories that represent the numbers 1 through 6.
* These territories would be coded as killer 1.
* When you do not have any of them you would be able to assault them from any of your territories.
* When you have conquered one of them you would no longer be able to assault any of them.
* when you have conquered one of them the distance you could assault from each of your territories would change to match the number you conquered.
* if you don't conquer a number you can't assault any territories
I assume I would need a continent called something like "no numbers" and code the conditions something like this.
Thoughts?
=D13=
Territories
- Code: Select all
[1] [2] [3] [4] [5] [6]
[alpha][beta][delta][gamma][epsilon][omega][theta]
Code
- Code: Select all
<continent>
<name>no numbers</name>
<components>
<territory>number 1</territory>
<territory>number 2</territory>
<territory>number 3</territory>
<territory>number 4</territory>
<territory>number 5</territory>
<territory>number 6</territory>
</components>
<required>0</required>
</continent>
<territory>
<name>number 1</name>
</territory>
<territory>
<name>number 2</name>
</territory>
<territory>
<name>number 3</name>
</territory>
<territory>
<name>number 4</name>
</territory>
<territory>
<name>number 5</name>
</territory>
<territory>
<name>number 6</name>
</territory>
<territory>
<name>generic territory alpha</name>
<borders>
<border condition="no numbers">number 1</border>
<border condition="no numbers">number 2</border>
<border condition="no numbers">number 3</border>
<border condition="no numbers">number 4</border>
<border condition="no numbers">number 5</border>
<border condition="no numbers">number 6</border>
<border condition="number 1">generic territory beta - distance 1</border>
<border condition="number 2">generic territory delta - distance 2</border>
<border condition="number 3">generic territory gamma - distance 3</border>
<border condition="number 4">generic territory epsilon - distance 4</border>
<border condition="number 5">generic territory omega - distance 5</border>
<border condition="number 6">generic territory theta - distance 6</border>
</borders>
</territory>