Page 1 of 1

XML Autodeploy

PostPosted: Tue Jan 06, 2009 1:27 pm
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

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 1:37 pm
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.


:)

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 1:45 pm
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

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 2:22 pm
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

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 2:31 pm
by Premier2k
ok thanks,

Anyone else have any idea?

Premier2k

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 2:42 pm
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.

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 2:59 pm
by MrBenn
Autodeploy doesn't go within a continent tag - it sits at the bottom of the territory tag ;-)

Re: XML Autodeploy

PostPosted: Tue Jan 06, 2009 3:02 pm
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/viewtopic.php?f=241&t=71277
Thanks all!

Premier2k