Conquer Club

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.

XML Autodeploy

Postby Premier2k on Tue Jan 06, 2009 1:27 pm

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

Re: XML Autodeploy

Postby lgoasklucyl on Tue Jan 06, 2009 1:37 pm

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
Sergeant 1st Class lgoasklucyl
 
Posts: 526
Joined: Mon Apr 07, 2008 8:49 pm
Location: Somewhere in the 20th century.

Re: XML Autodeploy

Postby Premier2k on Tue Jan 06, 2009 1:45 pm

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

Re: XML Autodeploy

Postby lgoasklucyl on Tue Jan 06, 2009 2:22 pm

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
Sergeant 1st Class lgoasklucyl
 
Posts: 526
Joined: Mon Apr 07, 2008 8:49 pm
Location: Somewhere in the 20th century.

Re: XML Autodeploy

Postby Premier2k on Tue Jan 06, 2009 2:31 pm

ok thanks,

Anyone else have any idea?

Premier2k
User avatar
Cadet Premier2k
 
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am

Re: XML Autodeploy

Postby bryguy on Tue Jan 06, 2009 2:42 pm

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.
Corporal bryguy
 
Posts: 4381
Joined: Tue Aug 07, 2007 8:50 am
Location: Lost in a Jigsaw

Re: XML Autodeploy

Postby MrBenn on Tue Jan 06, 2009 2:59 pm

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
Lieutenant MrBenn
 
Posts: 6880
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty

Re: XML Autodeploy

Postby Premier2k on Tue Jan 06, 2009 3:02 pm

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


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users

cron