Village attribution in campaigns

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
jaeslin
Posts: 19
Joined: May 1st, 2020, 5:56 pm

Village attribution in campaigns

Post by jaeslin »

Hi,
I am currently polishing my add-on campaign and trying to change my sloppy coding in something a little cleaner. I just have an issue with villages. I know there is a [village] tag but it is only one village per tag making the code very long. I see that mainline campaigns (HttT,TtB) use {STARTING_VILLAGES 1 12} or {STARTING_VILLAGES_AREA 6 7 10 6} but I don't understand what the numbers stand for. The first one seems to refer to the side who gets the villages but then what are the other numbers for (they are uneven so they don't seem to refer to x,y) ?
I suppose it's quite a simple problem but I can't find it on the WML wiki. Could someone please explain me how this macro works ?
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Village attribution in campaigns

Post by Pentarctagon »

The macro is defined here. The number of arguments isn't what you're expecting since one of them is a radius.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
jaeslin
Posts: 19
Joined: May 1st, 2020, 5:56 pm

Re: Village attribution in campaigns

Post by jaeslin »

Oh yes ! Of course I understand now. Thanks a lot
Post Reply