XML Autodeploy

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.
Post Reply
User avatar
Premier2k
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am
Gender: Male
Contact:

XML Autodeploy

Post by Premier2k »

Hi all,

I've trawled through the tutorial but I can't find how to make a bonus autodeploy. I am assuming it would go into the continents branch of the XML.

A section of my XML provided below, could someone show me how to put this in.

Code: Select all

<continent>
    <name>Temple of Poseidon</name>
    <bonus>2</bonus>
    <components>
      <territory>Temple of Poseidon</territory>
    </components>
</continent>
Thanks all.

Premier2k
User avatar
lgoasklucyl
Posts: 526
Joined: Mon Apr 07, 2008 8:49 pm
Gender: Male
Location: Somewhere in the 20th century.

Re: XML Autodeploy

Post by lgoasklucyl »

yeti_c wrote:
qwert wrote:
Again, you'll have to post your XML, but your old lines 94, 95, and 106 had to do with incorrect <continent> tags. Make sure you got them all.
qwert wrote:
thanks now its ok,its very minor things
Now i need new informacion.I read XML tutorial,and i dont find how to write Autodeploy Code. Any body know abouth that?
Yes - all you need is to enter a <bonus>X</bonus> inside the territory tag that you want to assign the bonus to.

C.
:)
Image
User avatar
Premier2k
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am
Gender: Male
Contact:

Re: XML Autodeploy

Post by Premier2k »

Hi,

I'm not sure I understand, can you give me an example?

Would I remove the <bonus>2</bonus> from the continent tag like this;

Code: Select all

<continent>
    <name>Temple of Poseidon</name>
    <components>
      <territory>Temple of Poseidon</territory>
    </components>
</continent>
and put it in here somewhere?

Code: Select all

<territory>
<name>Temple of Poseidon</name>
  <borders>
    <border>Temple 1</border>
    <border>Temple 2</border>
    <border>Temple 3</border>
    <border>Temple 4</border>
  </borders>
  <coordinates>
    <smallx>329</smallx>
    <smally>358</smally>
    <largex>375</largex>
    <largey>459</largey>
  </coordinates>
  <neutral>10</neutral>  
</territory>
Premier2k
User avatar
lgoasklucyl
Posts: 526
Joined: Mon Apr 07, 2008 8:49 pm
Gender: Male
Location: Somewhere in the 20th century.

Re: XML Autodeploy

Post by lgoasklucyl »

I'm just learning XML myself, but figured I could help off a site search :lol:

I imagine you would place it between the <Territory></Territory> tags. I'm not sure if orders matters as to where you place it, though, so you'll have to wait on someone who doesn't suck :D
Image
User avatar
Premier2k
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am
Gender: Male
Contact:

Re: XML Autodeploy

Post by Premier2k »

ok thanks,

Anyone else have any idea?

Premier2k
bryguy
Posts: 4381
Joined: Tue Aug 07, 2007 8:50 am
Location: Lost in a Jigsaw

Re: XML Autodeploy

Post by bryguy »

Premier2k wrote:Hi,

I'm not sure I understand, can you give me an example?

Would I remove the <bonus>2</bonus> from the continent tag like this;

Code: Select all

<continent>
    <name>Temple of Poseidon</name>
    <components>
      <territory>Temple of Poseidon</territory>
    </components>
</continent>
and put it in here somewhere?

Code: Select all

<territory>
<name>Temple of Poseidon</name>
  <borders>
    <border>Temple 1</border>
    <border>Temple 2</border>
    <border>Temple 3</border>
    <border>Temple 4</border>
  </borders>
  <coordinates>
    <smallx>329</smallx>
    <smally>358</smally>
    <largex>375</largex>
    <largey>459</largey>
  </coordinates>
  <neutral>10</neutral>  
</territory>
Premier2k

from what i know, yes, thats exactly what you would do.

the <bonus>2</bonus> tags inside the <continent></continent> gives you a bonus for holding the entire continent. putting it inside of the <territory></territory> tags gives that territory an autodeploy of the amount specified.
User avatar
MrBenn
Posts: 6880
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty

Re: XML Autodeploy

Post by MrBenn »

Autodeploy doesn't go within a continent tag - it sits at the bottom of the territory tag ;-)
Image
PB: 2661 | He's blue... If he were green he would die | No mod would be stupid enough to do that
User avatar
Premier2k
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am
Gender: Male
Contact:

Re: XML Autodeploy

Post by Premier2k »

Brilliant,

Just added it to the bottom of the territory tag and ran the XML through Jota's XML Tool and got no errors so all is good!

Shameless link - http://www.conquerclub.com/forum/viewto ... 41&t=71277
Thanks all!

Premier2k
Post Reply

Return to “Foundry Discussions”