I am trying to make a mod that creates a succession law for the Ecumenical Patriarchate. It is meant to be a variation of elective; in the final version, I want the current EP, the Byzantine Emperor (or other top liege), and all bishops in the EP's pentarchate to be electors.
I want eligible candidates to be all Orthodox temple holders within the EP's pentarchate.
For right now, I'm having a lot of trouble with the code, and I'm trying to build it up piece by piece. I've been able to get the new succession law on the k_orthodox title, and I have successfully made the EP and the Emperor as the only two electors; I have written code that I thought would make the other bishops under the EP electors as well, but that doesn't seem to work.
I've also written a wide variety of dummy conditions for the candidate_trigger block to experiment with it, because it doesn't seem to be working as I would expect. Eventually, what I figured out is that it is always restricting the candidate_trigger to my (Byzantine Empire's) direct vassals and their courts. For example, if I set it as candidate_trigger = { always = yes }, it doesn't allow me to select anyone outside the Empire to inherit, and it also doesn't allow me to select anyone who is a vassal of my vassal (count under my duke, etc). There seems to be an exception for characters who BOTH have a claim on k_orthodox AND meet all conditions in the code, regardless of whether or not the code refers to a claim at any point.
Can anyone tell me what I'm doing wrong/how to fix this code so that characters outside the realm or in sub-vassal courts are eligible?
Code below:
candidate_trigger only:
I want eligible candidates to be all Orthodox temple holders within the EP's pentarchate.
For right now, I'm having a lot of trouble with the code, and I'm trying to build it up piece by piece. I've been able to get the new succession law on the k_orthodox title, and I have successfully made the EP and the Emperor as the only two electors; I have written code that I thought would make the other bishops under the EP electors as well, but that doesn't seem to work.
I've also written a wide variety of dummy conditions for the candidate_trigger block to experiment with it, because it doesn't seem to be working as I would expect. Eventually, what I figured out is that it is always restricting the candidate_trigger to my (Byzantine Empire's) direct vassals and their courts. For example, if I set it as candidate_trigger = { always = yes }, it doesn't allow me to select anyone outside the Empire to inherit, and it also doesn't allow me to select anyone who is a vassal of my vassal (count under my duke, etc). There seems to be an exception for characters who BOTH have a claim on k_orthodox AND meet all conditions in the code, regardless of whether or not the code refers to a claim at any point.
Can anyone tell me what I'm doing wrong/how to fix this code so that characters outside the realm or in sub-vassal courts are eligible?
Code below:
candidate_trigger only:
full voting rules code:candidate_trigger = {
FROM = {
AND = {
top_liege = { has_landed_title = e_byzantium }
primary_title = { tier = COUNT }
}
}
}
patriarchal_elective = {
candidate_trigger = {
FROM = {
AND = {
top_liege = { has_landed_title = e_byzantium }
primary_title = { tier = COUNT }
}
}
}
candidate_vote_score = {
days = 0
}
elector_selection = {
days = -5
additive_modifier = { #test modifier to learn syntax, make the emperor hardcoded elector
value = 100
has_landed_title = e_byzantium
}
additive_modifier = { #The patriarch is the first voter
value = 100
FROMFROM = {
holder_scope = {
character = ROOT
}
}
}
additive_modifier = { #The other bishops are secondary voters
value = 90
is_theocracy = yes #Lives in a theocracy
is_ruler = yes #Is the bishop
FROM = { #Same patriarchate
holder_scope = { religion_head = ROOT }
}
}
}
elector_vote_strength = {
days = 1
}
}