Are there any expoits one can use to allow people from other realms to be voters or candidates? The rules on succession modding seem very unclear and i was not able to find info about it limitations.
cenarion_law = {
elector_selection = {
days = -5 # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
max_amount = 50 # Determines max amount of electors, with the lower scoring ones being excluded (limit is optional)
additive_modifier = { #
value = 10
society_rank = { society = cenarion_circle rank >= 4 }
society_member_of = cenarion_circle
OR = {
any_liege = {
character = ROOT
}
is_ruler = no
ROOT_FROMFROM = { holder_scope = { independent = yes } }
}
}
}
elector_vote_strength = { #Affects the voting strength of each elector.
days = 1 # 1 elector = 1 vote.
}
candidate_vote_score = { #Chance of an Elector voting for a candidate over the other. The candidate with the highest value will be picked.
days = 1
########################## Elector voting himself ##########################
additive_modifier = {
value = 15
localisation_key = tooltip_feudal_elector_vote_myself
character = FROM
NOR = {
trait = humble
trait = content
trait = craven
trait = slothful
trait = stressed
trait = depressed
trait = ambitious
}
NOT = {
FROMFROM = {
holder_scope = {
is_parent_of = ROOT
}
}
}
}
}
candidate_trigger = { #Trigger to determine what characters are valid candidates that can be voted by electors.
FROM = {
society_member_of = cenarion_circle
OR = {
any_liege = {
character = ROOT
}
is_ruler = no
ROOT_FROMFROM = { holder_scope = { independent = yes } }
}
}
}
}
any_liege = {
character = ROOT
cenarion_law = {
elector_selection = {
days = -5 # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
max_amount = 50 # Determines max amount of electors, with the lower scoring ones being excluded (limit is optional)
additive_modifier = { #
value = 10
OR = {
society_rank = { society = cenarion_circle rank >= 4 }
society_member_of = cenarion_circle
OR = {
any_liege = {
character = ROOT
}
is_ruler = no
ROOT_FROMFROM = { holder_scope = { independent = yes } }
}
}
}
}
elector_vote_strength = { #Affects the voting strength of each elector.
days = 1 # 1 elector = 1 vote.
}
candidate_vote_score = { #Chance of an Elector voting for a candidate over the other. The candidate with the highest value will be picked.
days = 1
########################## Elector voting himself ##########################
additive_modifier = {
value = 15
localisation_key = tooltip_feudal_elector_vote_myself
character = FROM
NOR = {
trait = humble
trait = content
trait = craven
trait = slothful
trait = stressed
trait = depressed
trait = ambitious
}
NOT = {
FROMFROM = {
holder_scope = {
is_parent_of = ROOT
}
}
}
}
}
candidate_trigger = { #Trigger to determine what characters are valid candidates that can be voted by electors.
FROM = {
OR = {
society_member_of = cenarion_circle
OR = {
any_liege = {
character = ROOT
}
is_ruler = no
ROOT_FROMFROM = { holder_scope = { independent = yes } }
}
}
}
}
}
Only for rulers that are not independent. Plus i don't really see the difference in your codes besides the fact it changed it so chars in realm don't have to be in society.If I'm not mistaken, the part in code below limits it to current realm.
As I'm reading it your original code enables an elector:Only for rulers that are not independent.
Hopefully my code in the elector_selection part skips the possible calculation twister gotten by the part where it requires an elector to have itself as a liege somewhere up the line when he/she is of greater or equal to level 4 of the cenarion_circle. In the candidate_trigger part candidates are either member of cenarion_circle OR are in the current realm AND not a ruler AND while the current titleholder is independent.Plus i don't really see the difference in your codes besides the fact it changed it so chars in realm don't have to be in society.
elector_selection = {
days = -5 # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
additive_modifier = { #
value = 10
FROM = { society_rank = { society = cenarion_circle rank >= 4 } }
}
}