Page 1 of 1

XML Territory allocation

PostPosted: Sun Feb 22, 2009 7:26 am
by Premier2k
Hi all,

Is it possible to change the allocation of number of territories based on the number of players starting a game?

For example:

In my Atlantis map all players start on the outer islands and these are divided up as such:

2 players = 26 each and 1 random neutral
3 players = 17 each and 2 random neutrals
4 players = 13 each and 1 random neutral
5 players = 10 each and 3 random neutrals
6 players = 8 each and 5 random neutrals
7 players = 7 each and 4 random neutrals
8 players = 6 each and 5 random neutrals

All inner and temple islands start neutral.

Is it possible to reduce the number of territories that 2 players start with but still retaining the number of territories that 8 players would start with?
As I understand it, I assign neutrals into XML, anything that is not designated as neutral is then divided up amongst the starting players. Unless there is something I can add into the XML that dictates that a territory should start neutral only if it is a 2 player game.

If I can do this then how do I do it? (Though I suspect I cannot)

Premier2k

Re: XML Territory allocation

PostPosted: Sun Feb 22, 2009 6:52 pm
by thenobodies80
In my opinion there isn't a way to do what you ask for...
Ask to yeti_c, he could be the right man for you ;)

Re: XML Territory allocation

PostPosted: Mon Feb 23, 2009 3:07 pm
by yeti_c
We can't designate some territories extra neutrals for 2 player games - but we can designate starting territories...

To do this we use the <positions> tags.

C.

Re: XML Territory allocation

PostPosted: Tue Feb 24, 2009 6:06 pm
by The Neon Peon
However, when you play on a 1v1 game on doodle, you have 6 neutrals. When you play an 8 man, you have 2. This is what I am telling him to do in his map, seeing as a 1v1 with almost no neutrals has been proven to be uneven for gameplay.

I have no idea how it is done that only 12 territories are owned by players in a 2 player yet 18 are in an 8 man. Can someone please explain to the OP exactly how to do this, since I can't myself.

Re: XML Territory allocation

PostPosted: Tue Feb 24, 2009 6:28 pm
by ZeakCytho
The Neon Peon wrote:However, when you play on a 1v1 game on doodle, you have 6 neutrals. When you play an 8 man, you have 2. This is what I am telling him to do in his map, seeing as a 1v1 with almost no neutrals has been proven to be uneven for gameplay.

I have no idea how it is done that only 12 territories are owned by players in a 2 player yet 18 are in an 8 man. Can someone please explain to the OP exactly how to do this, since I can't myself.


It has to do with the number of starting territories. Doodle has starting territories 18 territories (well, every territory is a starting territory, but this is not so in certain maps). So...
2 player games: 18/3 = 6 per player + 6 neutral
3 player games: 18/3 = 6 per player
4 player games: 18/4 = 4.5 round down to 4 per player + 2 neutral
5 player games: 18/5 = 3.6 round down to 3 per player + 3 neutral
6 player games: 18/6 = 3 per player
7 player games: 18/7 = 2.5 round down to 2 per player + 4 neutral
8 player games: 18/8 = 2.25 round down to 2 per player + 2 neutral

So for n playered games, divide starting number by n and round down unless n = 2. For two player games, divide by 3 and give 1/3 + remainder to neutral. ie for a 20 territory map, 2 player games start with 6 territories each and 8 neutral.

Re: XML Territory allocation

PostPosted: Wed Feb 25, 2009 4:27 am
by Premier2k
Ok So how do I do that in the XML?

I thought that was the question I asked!!?? Can we assign a certain number of territories as neutral based on number of starting players?

Almost like an IF statement...

if (players == 2)
{
AssignAsNeutral()
}
else
{
AssignAsNormalTerritory()
}

Re: XML Territory allocation

PostPosted: Wed Feb 25, 2009 4:38 am
by yeti_c
Premier2k wrote:Ok So how do I do that in the XML?

I thought that was the question I asked!!?? Can we assign a certain number of territories as neutral based on number of starting players?

Almost like an IF statement...

if (players == 2)
{
AssignAsNeutral()
}
else
{
AssignAsNormalTerritory()
}


No - that's not possible...

For Zeaks solution - just leave the territories as normal.

C.