Conquer Club

XML Territory allocation

Topics that are not maps. Discuss general map making concepts, techniques, contests, etc, here.

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.

XML Territory allocation

Postby Premier2k on Sun Feb 22, 2009 7:26 am

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
User avatar
Cadet Premier2k
 
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am

Re: XML Territory allocation

Postby thenobodies80 on Sun Feb 22, 2009 6:52 pm

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 ;)
User avatar
Sergeant 1st Class thenobodies80
 
Posts: 5400
Joined: Wed Sep 05, 2007 4:30 am
Location: Milan

Re: XML Territory allocation

Postby yeti_c on Mon Feb 23, 2009 3:07 pm

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.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: XML Territory allocation

Postby The Neon Peon on Tue Feb 24, 2009 6:06 pm

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.
User avatar
Lieutenant The Neon Peon
 
Posts: 2342
Joined: Sat Jun 14, 2008 12:49 pm

Re: XML Territory allocation

Postby ZeakCytho on Tue Feb 24, 2009 6:28 pm

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.
User avatar
Captain ZeakCytho
 
Posts: 1251
Joined: Wed Sep 12, 2007 4:36 pm

Re: XML Territory allocation

Postby Premier2k on Wed Feb 25, 2009 4:27 am

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()
}
User avatar
Cadet Premier2k
 
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am

Re: XML Territory allocation

Postby yeti_c on Wed Feb 25, 2009 4:38 am

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.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users