With normal events you could do the following:
- Set requirements for how long the country currently owning the province must have owned it to get a claim.
- Set requirements for how long the country currently controlling the province must have controlled it to get a claim.
- Modify the requirements above depending on whether the province has an accepted culture or religion.
- Modify the requirements above according to domestic sliders.
You can't make special rules for REB, and you also can't remove cores. That is to say, you
can remove cores but you can't check for how long a country has lost control over a specific province, so you won't know
when to remove cores.
Also these events require the ownerchange/controlchange trigger which is currently broken. So you can write the events now, but they'll only work properly with the next patch.
Here's an example event for a random province:
Code:
event = {
id = 1000001547
province = 1547
trigger = {
NOT = {
core_claim = { province = 1547 data = -1 }
core_national = { province = 1547 data = -1 }
}
atwar = no
control = { province = 1547 data = -1 }
ownerchange = { province = 1547 years = 30 } # at least 30 years owned (no nationalism)
SOMEOF = {
number = 10
NOT = { command = { type = domestic which = centralization value = 10 } }
NOT = { command = { type = domestic which = centralization value = 9 } }
NOT = { command = { type = domestic which = centralization value = 8 } }
NOT = { command = { type = domestic which = centralization value = 7 } }
NOT = { command = { type = domestic which = centralization value = 6 } }
NOT = { command = { type = domestic which = centralization value = 5 } }
NOT = { command = { type = domestic which = centralization value = 4 } }
NOT = { command = { type = domestic which = centralization value = 3 } }
NOT = { command = { type = domestic which = centralization value = 2 } }
NOT = { command = { type = domestic which = centralization value = 1 } }
ownerchange = { province = 1547 years = 32 }
ownerchange = { province = 1547 years = 34 }
ownerchange = { province = 1547 years = 36 }
ownerchange = { province = 1547 years = 38 }
ownerchange = { province = 1547 years = 40 }
ownerchange = { province = 1547 years = 42 }
ownerchange = { province = 1547 years = 44 }
ownerchange = { province = 1547 years = 46 }
ownerchange = { province = 1547 years = 48 }
ownerchange = { province = 1547 years = 50 }
}
}
deathdate = 9999
persistent = yes
name = "Blah"
desc = "Blah"
action = {
name = "Blah"
command = { type = addcore_claim which = 1547 }
}
}
I considered adding a requirement for 10 years or so of uninterrupted control, but honestly I think it makes more sense without it, and with the atwar = no requirement instead. So peace agreements may "acknowledge" the claims, even if control over the province is temporarily lost during the war.
Is this sufficiently close to what you want? The events for the other provinces can easily be created with batch processing.