What I don't completely understand, and principally for the modifications which I have planned in the event files for AGCEEP 1.59, is to which extent we can use that -4 for countries? Which are the commands able to target -4?
I know that breakvassal -1 has been implemented towards
any suzerain but what about the other commands?
independence -1 and -4? breakoverlord -1 and -4?
Here is what MichaelM said about
values targeting countries:
MichaelM said:
-1 = random
-2 = not implemented
-3 = last randomly picked country
-4 = a country that has not been randomly picked in this action
-5 = not implemented
-6 = emperor
-7 = random elector
-2 and -5 could be implemented in this way for an eventually coming 1.3 patch:
-2 targeting countries with "minimal" provinces in revolt.txt which are owned by the country receiving the events that has no national/claim/cb core on them.
-5 targeting countries with "extra" provinces in revolt.txt which are owned by the country receiving the events that has no national/claim/cb core on them.
The country receiving the event (eventually after a peace treaty or whatever else...) would give a random province ("national core" or "claim core") to the country with proper revolt.txt entries.
Since the
values targeting provinces are:
Third Angel said:
-1 means a random province
-2 is used to target the capital province of the country receiving the event
-3 is used to target again the province that was randomly picked in the last command
-4 is used to not target again a province that was already randomly picked in the same action
-5 is used to not target the capital province of the country receiving the event
And you can also target a random province in a specific continent/region/area by adding 1000 to its id number. Id's can be found in \Db\Map\geography.txt. So we'd have:
-1004 for a province in Europe
-1013 for a province in West Africa
-1151 for a province in Quebec
-6 could be implemented for targeting "national core" provinces of other countries and owned by the country receiving the events that has no national/claim/cb core on them
-7 could be implemented for targeting "claim core" provinces of other countries and owned by the country receiving the events that has no national/claim/cb core on them
--------------------------------------------------------------------
Here is the command:
command = { type = cedeprovince which = aaa value = x }
Cedes province x to country aaa.
As for the first case the implementation I suggest could then be this example:
France owns Piemonte (prov. #404) and Piemonte is a core national of Savoy (SAV),
and France only owns this kind of provinces without having any core on it.
Code:
command = { type = cedeprovince which = -2 value = -6 }
With this command France cedes province Piemonte (-6) to country Savoy (-2).
However, considering random provinces if France has got, let's say, also Schwyz (prov. # 1612), she would either cede Schwyz to Switzerland (388 Bern and 1612 Schwyz are minimum province of HEL in revolt.txt) or Piemonte to SAV.
But
Code:
command = { type = cedeprovince which = -2 value = -6 }
command = { type = cedeprovince which = -2 value = -6 }
or
Code:
command = { type = cedeprovince which = -2 value = -6 }
command = { type = cedeprovince which = -4 value = -6 }
would mean that France cedes both provinces to both countries.
In case France owns Marche (prov. # 392 is extra province for Papal States PAP) we would have:
Code:
command = { type = cedeprovince which = -5 value = -7 }
All commands should give France a boost in relations with both countries (+25?) and BB (-1 each province?) reduction or minor boost (+15?) with all other countries.