mymod_dynastic_primo_voting = {
...copy other things from base game eldership...
# Determines who can be voted for.
# ROOT is the title holder, FROM is the potential candidate, FROMROM is the title.
# *** RULE: Candidates are only valid if they are same dynasty as the ruler ***
candidate_trigger = {
dynasty = FROM
}
# Determines the score an elector will assign to a candidate.
# The candidate with the highest score will recieve the elector's votes.
# ROOT is the elector, FROM is the candidate. Undocumented: FROMFROM is the title.
candidate_vote_score = {
...copy other things from base game eldership, so that voting can proceed as normal if these massive modifiers are ineffective...
additive_modifier = { # Eldest child of first-preference gender
value = 100000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
}
}
}
}
additive_modifier = { # Eldest child of first-preference gender of eldest child of first-preference gender
value = 99000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
}
}
}
}
}
additive_modifier = { # Second child of first-preference gender of eldest child of first-preference gender
value = 98000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 1 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # Third child of first-preference gender of eldest child of first-preference gender
value = 97000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 2 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # Fourth child of first-preference gender of eldest child of first-preference gender
value = 96000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 3 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # First child of second-preference gender of eldest child of first-preference gender
value = 95000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
}
}
}
}
}
additive_modifier = { # Second child of second-preference gender of eldest child of first-preference gender
value = 94000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 1 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # Third child of second-preference gender of eldest child of first-preference gender
value = 93000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 2 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # Fourth child of second-preference gender of eldest child of first-preference gender
value = 92000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_second_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 3 # There are exactly this many **older** children
}
}
}
}
}
}
additive_modifier = { # Second child of first-preference gender
value = 90000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 1 # There are exactly this many **older** children
}
}
}
}
}
additive_modifier = { # Eldest child of first-preference gender of second child of first-preference gender
value = 99000
localisation_key = mymod_voting_weight_explanation_generic # Replace this with a custom loc tailored to each level, if you can be bothered
FROMFROM = {
holder_scope = {
any_child_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
count == 1
}
any_child_even_if_dead = {
character = FROM
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
NOT = {
any_sibling_even_if_dead = {
mymod_this_character_is_first_preference_under_fromfroms_gender_law = yes
is_older_than = PREV
}
}
}
}
}
}
}
...etc...
}
...copy other things from base game eldership...
}