XML Objectives

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

Moderators: Global Moderators, Cartographers

Forum rules
Please read the Community Guidelines before posting.

XML Objectives

Postby MrBenn on Fri Apr 02, 2010 2:11 pm

The new XML adjustment to the objectives will allow for much more versatility when setting victory conditions for a map. The new code allows <territory> and <continent> tags to be embedded within the objective components. Any continents can be embedded within the objective, which means that complex victory conditions can be compiled utilising <required> tags and/or nested continents.

Off the top of my head, the adjustment can be used to replace the 16 objectives of the Third Crusade as follows:

Code: Select all
...
   <!-- Objectives Begin-->
   <objective>
      <name>Victory Condition</name>
      <components>
         <continent>Any Starting Territory</continent>
         <territory>Jerusalem</territory>
         <territory>Antioch</territory>
         <continent>The Vatican or Granada</continent>
      </components>
   </objective>
   <!—Objective Continents-->
   <continent>
      <name>Any Starting Territory</name>
      <bonus>0</bonus>
      <components>
         <territory>London</territory>
         <territory>Paris</territory>
         <territory>Ratisbon</territory>
         <territory>Castile</territory>
         <territory>Thessalonica</territory>
         <territory>Tunis</territory>
         <territory>Cairo</territory>
         <territory>Amasia</territory>
      </components>
      <required>1</required>
   </continent>
   <continent>
      <name>The Vatican or Granada</name>
      <bonus>0</bonus>
      <components>
         <territory>The Vatican</territory>
         <territory>Granada</territory>
      </components>
      <required>1</required>
   </continent>
   <!-- Continents Begin-->
...


show: Original Third Crusade Map Objective XML
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
Retired Team Member
 
Posts: 7049
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty
Medals: 67
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (2)
General Achievement (6) Clan Achievement (1) Map Contribution (7) Tournament Contribution (2) General Contribution (15)

Re: XML Objectives

Postby natty dread on Fri Apr 02, 2010 2:20 pm

=D>

I'm sure there are some other maps that could benefit from this...

Well, can't think of any already quenched maps, but Conquer National Bank will have shorter XML thanks to this. And Research & Conquer can have the conquer objective that was planned.
Last edited by natty dread on Fri Apr 02, 2010 2:25 pm, edited 1 time in total.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13320
Joined: Fri Feb 08, 2008 8:58 pm
Location: fucked off
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: XML Objectives

Postby MrBenn on Fri Apr 02, 2010 2:25 pm

natty_dread wrote:=D>

I'm sure there are some other maps that could benefit from this...

Me too - but Third Crusade is the one that jumped to mind. It's also a good example of the type of complex victory condition that can be built-up.
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
Retired Team Member
 
Posts: 7049
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty
Medals: 67
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (2)
General Achievement (6) Clan Achievement (1) Map Contribution (7) Tournament Contribution (2) General Contribution (15)

Re: XML Objectives

Postby yeti_c on Fri Apr 02, 2010 2:30 pm

Yeah - this is definitely a good thing...

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: XML Objectives

Postby Evil DIMwit on Fri Apr 02, 2010 2:35 pm

I'm thinking of Napoleonic Europe, with the objective of holding any 5 of 8 capitals -- that's 336 possible combinations.
ImageImage
User avatar
Captain Evil DIMwit
 
Posts: 1628
Joined: Thu Mar 22, 2007 1:47 pm
Location: Philadelphia, NJ
Medals: 20
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Manual Troops Achievement (1) Fog of War Achievement (2) Cross-Map Achievement (2) Map Contribution (4) General Contribution (3)

Re: XML Objectives

Postby jpcloet on Sun Apr 04, 2010 7:09 am

I think the Objectives should be put back as a game type, essentially the ability to turn it off or on. That would require that all maps have some objective sets.
Image
User avatar
Captain jpcloet
 
Posts: 4421
Joined: Sat Mar 17, 2007 9:18 am
Medals: 69
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Battle Royale Achievement (1)
Ratings Achievement (3) Tournament Achievement (7) General Achievement (7) Clan Achievement (5) Tournament Contribution (8)
General Contribution (8)

Re: XML Objectives

Postby natty dread on Sun Apr 04, 2010 7:14 am

I disagree. Some maps are heavily objective-based and would suck without it. Oasis comes to mind.

If the mapmaker has designed the map to have an objective, we should respect that...
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13320
Joined: Fri Feb 08, 2008 8:58 pm
Location: fucked off
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users

Login