• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(189386)

Second Lieutenant
4 Badges
Jan 6, 2010
166
0
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • For The Glory
Do provinces have any data on when they were conquered?

If not is it possible to create a modified province that does have such a field?

If so what field stores that data?

Ideally I'd like to take two popular rules in multiplayer and write them as non-random events for every country namely:

1) If any country owns a province for 100 years they get a core on that province

and

2) If any country owns at least 80% of the provinces with a particular culture for 100 years they get that culture as an accepted type.

However, I definitely want to do this as something that the AI can benefit from as well rather than something that the player takes advantage of.
 
The date of the last time the province changed owners could be exposed in a trigger, but is not currently. But the events you describe would be difficult even with the trigger; #1 would have to be implemented for every province for every country (unless there's a clever way to do it with triggered commands and such), and #2 couldn't be done in a generic way.
 
Trigger

How does one expose the trigger?

Is it at all possible to do it for all countries at once (i.e. no country tag in the event)? (I'm guessing no because owned and addcore don't appear in any generic files).

The random events aren't specific to countries, and as far as I'm aware they affect the AI too?

Basically what I want is something like:

event {id = SomeNumber
trigger = { owned = provinceID AND
date = {day= lastconquereddaypID, month= lastconqueredmonthpID, year = lastconqueredyearpID + 100}
random = no
country = SomeCountry
name = "EVENTNAMESOMENUMBER"
desc = "EVENTHISTORYSOMENUMBER"
action_a = { name = ACTIONNAMESOMENUMBER
command = {type =addcore which = provinceID}
}}

How can I generate lastconquereddaypID, lastconqueredmonthpId and lastconqueredyearpID. Can events have dynamic times determined by variables or must they be static?

Does triggering an event with a delay of 365,000 work? I.E. an event like:

We have gained control of province X triggers -> Our ownership of province X is finally accepted. Or will the event fire before the delay ends?