Page 1 of 2

Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 8:52 am
by Qwert
Ok i need some help with these.
I want to create Primarly and secondary objectives(or how you say in english)
I want to TRoadians be primarly objectives,and without these territory you can not achive win, also you have to capture 3 any other Shields and to complete objectives. How its these write in XML?

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 8:53 am
by yeti_c
qwert wrote:Ok i need some help with these.
I want to create Primarly and secondary objectives(or how you say in english)
I want to TRoadians be primarly objectives,and without these territory you can not achive win, also you have to capture 3 any other Shields and to complete objectives. How its these write in XML?


Can you explain better?

For an example of multiple Objectives - then you can look at the XML for Battle of Gazalla.

C.

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 8:58 am
by Qwert
No multiple objectives,ok i will say these in way how will write in bonus box
-Capture Troadians and any 3 other Shields and hold for one turn to win a war-

In any 3 shields combinations ,4th shield need to be Troadians to achive Objectives, do you understand now?

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 9:03 am
by yeti_c
qwert wrote:No multiple objectives,ok i will say these in way how will write in bonus box
-Capture Troadians and any 3 other Shields and hold for one turn to win a war-

In any 3 shields combinations ,4th shield need to be Troadians to achive Objectives, do you understand now?


OK.

To do this you'll just need to write multiple Objective groups.

i.e.

Code: Select all
<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 1</territory>
    <territory>Shield 2</territory>
    <territory>Shield 3</territory>
  </components>
</objective>

<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 1</territory>
    <territory>Shield 3</territory>
    <territory>Shield 4</territory>
  </components>
</objective>

<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 1</territory>
    <territory>Shield 4</territory>
    <territory>Shield 5</territory>
  </components>
</objective>

<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 2</territory>
    <territory>Shield 3</territory>
    <territory>Shield 4</territory>
  </components>
</objective>

<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 2</territory>
    <territory>Shield 3</territory>
    <territory>Shield 5</territory>
  </components>
</objective>

<objective>
  <name>Win</name>
  <components>
    <territory>Troadian 1</territory>
    <territory>Troadian 2</territory>
    <territory>Troadian 3</territory>
    <territory>Shield 2</territory>
    <territory>Shield 4</territory>
    <territory>Shield 5</territory>
  </components>
</objective>


Etc...

C.

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 10:21 am
by edbeard
I think he means there's one shield called Troadians and a bunch of other shields.

You only need 4 shields for the objective but 1 of them HAS to be Troadians


can't he just have a continent with no bonus where it's any three shields (minus the troadians) and put that continent as one of the components?

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 11:10 am
by Ruben Cassar
qwert wrote:No multiple objectives,ok i will say these in way how will write in bonus box
-Capture Troadians and any 3 other Shields and hold for one turn to win a war-

In any 3 shields combinations ,4th shield need to be Troadians to achive Objectives, do you understand now?


I need some extra cash right now qwert.

In these past 2 years that I have known you your English has not improved.

I can give you some online lessons at the rate of 12 Euro per hour if you are interested! :p

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 5:43 pm
by Qwert
i need some extra cash right now qwert.

In these past 2 years that I have known you your English has not improved.

I can give you some online lessons at the rate of 12 Euro per hour if you are interested! :

Ruben i promise,first time when i get serious $ money for mine map,you will get 50%,its these ok :roll:

by edbeard » Mon Apr 06, 2009 5:21 pm

I think he means there's one shield called Troadians and a bunch of other shields.

You only need 4 shields for the objective but 1 of them HAS to be Troadians

Yes these is what im talk
can't he just have a continent with no bonus where it's any three shields (minus the troadians) and put that continent as one of the components?

these map dont have continents.

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 8:31 pm
by edbeard
that's not what I'm saying. I'm saying you make a continent defined as "at least three shields" with no bonus purely to serve the objective in the XML. I don't know if a component of an objective can be a continent though.

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 8:42 pm
by the.killing.44
edbeard wrote:that's not what I'm saying. I'm saying you make a continent defined as "at least three shields" with no bonus purely to serve the objective in the XML. I don't know if a component of an objective can be a continent though.

Wouldn't naming the objective "At Least 3 Shields" and then making the objective just all the territories instead of the continent suffice? I mean, <continent> saves a lot of time, but it's still possible …

.44

Re: Primarly and secondary Objectives

PostPosted: Mon Apr 06, 2009 9:08 pm
by edbeard
you can't just name it at least 3. you have to define it...unless you're talking about making X continents for however many combinations there are of holding any 3 shields which is just silly because it's vastly inferior assuming this is allowable in the XML which I don't see why it wouldn't be.

here's what I think qwert can do. I don't know the names of his territories but it shows what I'm talking about.

continent>
<name>At Least Three Shields</name>
<bonus>0</bonus>
<components>
<territory>Shield 1</territory>
<territory>Shield 2</territory>
<territory>Shield 3</territory>
<territory>Shield 4</territory>
<territory>Shield 5</territory>
<territory>Shield 6</territory>
</components>
<required>3</required>
</continent>

<objective>
<name>Objective</name>
<components>
<territory>Troadians</territory>
<continent>At Least Three Shields</continent>
</components>
</objective>

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 2:50 am
by yeti_c
I've got a feeling that <continent> tags aren't allowed in <objective> tags...

(Although I coded BOB so that it would work with them - I don't think Lack did)

C.

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 8:46 am
by Qwert
continent>
<name>At Least Three Shields</name>
<bonus>0</bonus>
<components>
<territory>Shield 1</territory>
<territory>Shield 2</territory>
<territory>Shield 3</territory>
<territory>Shield 4</territory>
<territory>Shield 5</territory>
<territory>Shield 6</territory>
</components>
<required>3</required>
</continent>

<objective>
<name>Objective</name>
<components>
<territory>Troadians</territory>
<continent>At Least Three Shields</continent>
</components>
</objective>

Its these going to work?
Are you want to tell me that its not possible to create XML code where you have two objectives who must be connected?
<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 1</territory>
<territory>Shield 2</territory>
<territory>Shield 3</territory>
</components>
</objective>

<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 1</territory>
<territory>Shield 3</territory>
<territory>Shield 4</territory>
</components>
</objective>

<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 1</territory>
<territory>Shield 4</territory>
<territory>Shield 5</territory>
</components>
</objective>

<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 2</territory>
<territory>Shield 3</territory>
<territory>Shield 4</territory>
</components>
</objective>

<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 2</territory>
<territory>Shield 3</territory>
<territory>Shield 5</territory>
</components>
</objective>

<objective>
<name>Win</name>
<components>
<territory>Troadian 1</territory>
<territory>Troadian 2</territory>
<territory>Troadian 3</territory>
<territory>Shield 2</territory>
<territory>Shield 4</territory>
<territory>Shield 5</territory>
</components>
</objective>

These XML code confusing me,because i have only one territory Troadians not 3.
Maybe will these work.
<objective>
<name>Capture Troadians and any 3 Shields</name>
<components>
<territory>Troadian</territory>
<territory>Shield 1(name of territory)</territory>
<territory>Shield 2(name of territory)</territory>
<territory>Shield 3(name of territory)</territory>
</components>
</objective>
<objective>
<name>Capture Troadians and any 3 Shields</name>
<components>
<territory>Troadian</territory>
<territory>Shield 1(name of territory)</territory>
<territory>Shield 2(name of territory)</territory>
<territory>Shield 4(name of territory)</territory>
</components>
</objective>
<objective>
<name>Capture Troadians and any 3 Shields</name>
<components>
<territory>Troadian</territory>
<territory>Shield 1(name of territory)</territory>
<territory>Shield 2(name of territory)</territory>
<territory>Shield 5(name of territory)</territory>
</components>
</objective>
<objective>
<name>Capture Troadians and any 3 Shields</name>
<components>
<territory>Troadian</territory>
<territory>Shield 1(name of territory)</territory>
<territory>Shield 2(name of territory)</territory>
<territory>Shield 6(name of territory)</territory>
</components>
</objective>
<objective>
<name>Capture Troadians and any 3 Shields</name>
<components>
<territory>Troadian</territory>
<territory>Shield 1(name of territory)</territory>
<territory>Shield 2(name of territory)</territory>
<territory>Shield 7(name of territory)</territory>
</components>
</objective>
..................................................................................
i need to put all combinations what can create 3 Shields+Troadians?

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 9:06 am
by yeti_c
qwert wrote:i need to put all combinations what can create 3 Shields+Troadians?


Yes - that's what I think you need to do.

C.

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 10:30 am
by edbeard
I decided to look at the XML Tutorial and it says this

"Objectives

Optionally, you can specify winning conditions for your map. An objective is a set of territories and/or continents that when held will give the player an early victory. A map can have several objectives and a held objective ends the game in both Assassin and Terminator games. In the case of a Terminator game points would be earned from all opponents who haven't been terminated. Suppose an objective is to hold both Asia and Alaska. The XML would look like this:"

while it says continents are OK, the XML example they provided only included territories as part of the code so it seems a bit unclear at best. it seems like lack would've put <continent>asia</continent> if that was possible with the code but maybe he didn't. either way, a continent SHOULD be a part of it. sounds like a good XML update to me.

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 11:55 am
by Qwert
Can someon help me how many combination i must write, its possible to use some program who will calculated that?

Finding Combinations

PostPosted: Tue Apr 07, 2009 3:22 pm
by Qwert
Ok, i start creating xml code for Peloponnesians Objectives,and these show me that these objectives in xml can have very large number of combinations, and i hope that someon can find also combination oif im miss some.

Troadians-these need to be in all combinations

Every Combinations must have 3 of these names
Lacademonians
Corinthians
Athenians
Boeotians
Lydians
Erythraeans
Macedonians
----------------------------------------------------------------------------------
-C1
Troadians
Corinthians
Lacedaemonians
Athenians

-C2
Troadians
Corinthians
Lacedaemonians
Boeotians

-C3
Troadians
Corinthians
Lacedaemonians
erythraeans

-C4
Troadians
Corinthians
Lacedaemonians
Lydians

-C5
Troadians
Corinthians
Lacedaemonians
macedonians

-C6
Troadians
Corinthians
Athenians
Boeotians

-C7
Troadians
Corinthians
Athenians
Lydians

-C8
Troadians
Corinthians
Athenians
macedonians

-C9
Troadians
Athenians
Boeotians
lacademonians

-C10
Troadians
Athenians
Boeotians
erythraeans

-C11
Troadians
Athenians
Boeotians
Lydians

-C12
Troadians
Athenians
Boeotians
macedonians

-C13
Troadians
Athenians
erythraeans
lacademonians

-C14
Troadians
Athenians
erythraeans
Lydians

-C15
Troadians
Athenians
erythraeans
macedonians

-C16
Troadians
Athenians
Lydians
macedonians

-C17
Troadians
Athenians
Lydians
lacademonians

-C18
Troadians
Athenians
macedonians
lacademonians

-C19
Troadians
Boeotians
Lydians
Macedonians

Re: Finding Combinations

PostPosted: Tue Apr 07, 2009 3:37 pm
by john9blue
There are supposed to be 35 in total... I don't have time to list them all now. ;)

Re: Finding Combinations

PostPosted: Tue Apr 07, 2009 4:01 pm
by Qwert
by john9blue » Tue Apr 07, 2009 10:37 pm

There are supposed to be 35 in total... I don't have time to list them all now.

are you serious #-o

Re: Finding Combinations

PostPosted: Tue Apr 07, 2009 4:05 pm
by gimil
Since you already have a thread about this qwert there is no need to start a new thread on the subject.

[Merged]

Re: Finding Combinations

PostPosted: Tue Apr 07, 2009 4:42 pm
by the.killing.44
john9blue wrote:There are supposed to be 35 in total... I don't have time to list them all now. ;)

More … many, many more.

.44

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 4:47 pm
by Qwert
by the.killing.44 » Tue Apr 07, 2009 11:42 pm

john9blue wrote:
There are supposed to be 35 in total... I don't have time to list them all now.
More … many, many more.

What im mising?

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 4:55 pm
by the.killing.44
qwert wrote:
by the.killing.44 » Tue Apr 07, 2009 11:42 pm

john9blue wrote:
There are supposed to be 35 in total... I don't have time to list them all now.
More … many, many more.

What im mising?

basically, you have 19 groups, with 4 combinations in each. That right there is more than 35, to say the least. Then you have to bring all the groups together, taking off one at a time (first calculation uses 19 possibilities, second 18 and so on and so forth) that's a lot of combos…

.44

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 5:10 pm
by ZeakCytho
the.killing.44 wrote:
qwert wrote:
by the.killing.44 » Tue Apr 07, 2009 11:42 pm

john9blue wrote:
There are supposed to be 35 in total... I don't have time to list them all now.
More … many, many more.

What im mising?

basically, you have 19 groups, with 4 combinations in each. That right there is more than 35, to say the least. Then you have to bring all the groups together, taking off one at a time (first calculation uses 19 possibilities, second 18 and so on and so forth) that's a lot of combos…

.44


But I think you're skipping the fact that, in a group of elements A, B, C, D, E, F, G, for our purposes, ABC is the same as CAB, which is also the same as ACB, BCA, BAC, and CBA. You only need to count one of those six possibilities. When I calculated it I got 35 total as well.

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 5:44 pm
by the.killing.44
ZeakCytho wrote:
the.killing.44 wrote:
qwert wrote:
by the.killing.44 » Tue Apr 07, 2009 11:42 pm

john9blue wrote:
There are supposed to be 35 in total... I don't have time to list them all now.
More … many, many more.

What im mising?

basically, you have 19 groups, with 4 combinations in each. That right there is more than 35, to say the least. Then you have to bring all the groups together, taking off one at a time (first calculation uses 19 possibilities, second 18 and so on and so forth) that's a lot of combos…

.44


But I think you're skipping the fact that, in a group of elements A, B, C, D, E, F, G, for our purposes, ABC is the same as CAB, which is also the same as ACB, BCA, BAC, and CBA. You only need to count one of those six possibilities. When I calculated it I got 35 total as well.

Ah, yes — you're right. Scapegoat is my friend, who told me the formula :P
Still a lot of coding to be done.

.44

Re: Primarly and secondary Objectives

PostPosted: Tue Apr 07, 2009 6:21 pm
by MrBenn
Hold your horses.... Before we go mad writing XML, I'll find out if a continent can be part of an objective - then we can make this a lot easier by using the <required> tag