Part of an ahistorical mod that I've created features a new titular empire with 7 titular duchies contained within it - designed to allow an elective succession system with floating seats as I expand outward. The game begins with 5 seats in existence, but the potential for 2 more. In order to create these extra seats, and to replace seats that are destroyed from time to time as titular titles tend to be, I want to create a decision that allows any Duke or King within the Empire that is not already a Seatholder to create one of the missing seats (preferably in order). To that end, I have written the following decision:
I am having trouble with it - specifically the bolded line: NOT = { any_province_lord = { has_landed_title = d_e2 } }
What I want that line to do is to check to see if any lord anywhere currently holds that title and prevent the decision so long as someone holds the title. What is happening is that the game instead looks to see if it can find any lord that does not have that title... in other words its always true and therefore it is always possible for titles to be stolen. I have tried using the is_active line, but that remains true so long as the title has existed at some point in the past, which is useless to me if I am looking to allow the recreation of destroyed seats.
Any thoughts on a way to write that line that will achieve the ends I seek?
Code:
create_seat_2 = {
is_high_prio = yes
potential = {
is_ruler = yes
is_feudal = yes
}
allow = {
OR = {
has_landed_title = c_1A
has_landed_title = c_1B
has_landed_title = c_1C
has_landed_title = c_1D
has_landed_title = c_2A
has_landed_title = c_2B
has_landed_title = c_2C
has_landed_title = c_2D
has_landed_title = c_3A
has_landed_title = c_3B
has_landed_title = c_3C
has_landed_title = c_3D
}
NOT = {
OR = {
has_landed_title = d_e1
has_landed_title = d_e2
has_landed_title = d_e3
has_landed_title = d_e4
has_landed_title = d_e5
has_landed_title = d_e6
has_landed_title = d_e7
}
}
OR = {
primary_title = { tier = KING }
primary_title = { tier = DUKE }
}
NOT = { primary_title = { tier = EMPEROR } }
liege = { has_landed_title = e_aesland }
[B]NOT = { any_province_lord = { has_landed_title = d_e2 } }[/B]
AND = {
is_title_active = d_e1
}
treasury = 300
piety = 200
prestige = 300
}
effect = {
treasury = -300
piety = -200
d_e2 = {
gain_title = FROM
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 100
}
}
I am having trouble with it - specifically the bolded line: NOT = { any_province_lord = { has_landed_title = d_e2 } }
What I want that line to do is to check to see if any lord anywhere currently holds that title and prevent the decision so long as someone holds the title. What is happening is that the game instead looks to see if it can find any lord that does not have that title... in other words its always true and therefore it is always possible for titles to be stolen. I have tried using the is_active line, but that remains true so long as the title has existed at some point in the past, which is useless to me if I am looking to allow the recreation of destroyed seats.
Any thoughts on a way to write that line that will achieve the ends I seek?