violent assault on admin
This commit is contained in:
parent
e36f3835ea
commit
8f04b459c7
20 changed files with 6989 additions and 0 deletions
154
common/succession_election/00_feudal_elective.txt
Normal file
154
common/succession_election/00_feudal_elective.txt
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
feudal_elective = {
|
||||
elector_vote_strength = {
|
||||
base = 1
|
||||
modifier = { #Sicilian Parliamentary Support
|
||||
desc = tooltip_feudal_vote_strength_parliament
|
||||
add = 1
|
||||
is_landed_or_landless_administrative = yes
|
||||
exists = capital_county
|
||||
capital_county.county_opinion > 25
|
||||
capital_county = { exists = var:variable_sicilian_parliament_county }
|
||||
}
|
||||
modifier = { #Imperial Dignity
|
||||
desc = tooltip_feudal_vote_strength_emperor_tier
|
||||
add = 3
|
||||
highest_held_title_tier = 5
|
||||
}
|
||||
modifier = { #Royal Dignity
|
||||
desc = tooltip_feudal_vote_strength_king_tier
|
||||
add = 2
|
||||
highest_held_title_tier = 4
|
||||
}
|
||||
modifier = { #Princely Dignity
|
||||
desc = tooltip_feudal_vote_strength_duke_tier
|
||||
add = 1
|
||||
highest_held_title_tier = 3
|
||||
}
|
||||
modifier = { #Powerful Vassal
|
||||
desc = tooltip_feudal_vote_strength_powerful_vassal
|
||||
add = {
|
||||
value = 1
|
||||
if = { #Additional point if the vassal is more powerful than the current ruler (Vassal King who meets this condition will have more voting power than the Emperor himself (1+1+1+2 = 5))
|
||||
limit = {
|
||||
max_military_strength > scope:holder.max_military_strength
|
||||
}
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
NOT = { this = scope:holder }
|
||||
is_powerful_vassal = yes
|
||||
liege = scope:holder
|
||||
}
|
||||
modifier = { #Clerical Influence
|
||||
desc = tooltip_feudal_vote_strength_theocrat
|
||||
add = 1
|
||||
NOT = { this = scope:holder }
|
||||
OR = {
|
||||
government_has_flag = government_is_theocracy
|
||||
has_council_position = councillor_court_chaplain
|
||||
}
|
||||
faith = scope:holder.faith
|
||||
faith = { has_doctrine = doctrine_theocracy_lay_clergy }
|
||||
}
|
||||
modifier = { #Regent Influence
|
||||
desc = tooltip_feudal_vote_strength_is_diarch
|
||||
add = 1
|
||||
is_diarch_of_target = scope:holder
|
||||
}
|
||||
}
|
||||
|
||||
electors = {
|
||||
add = holder
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
OR = { #1 or 2 tiers of difference for Electors.
|
||||
scope:title = { tier = tier_county }
|
||||
AND = {
|
||||
scope:title = { tier = tier_duchy }
|
||||
highest_held_title_tier >= 1
|
||||
}
|
||||
AND = {
|
||||
scope:title = { tier = tier_kingdom }
|
||||
highest_held_title_tier >= 2
|
||||
}
|
||||
AND = {
|
||||
scope:title = { tier = tier_empire }
|
||||
highest_held_title_tier >= 3
|
||||
}
|
||||
}
|
||||
OR = { #Either de facto direct vassal, or independent ruler who is de jure vassal. (no sub-vassals)
|
||||
is_vassal_of = scope:holder
|
||||
is_independent_ruler = yes
|
||||
}
|
||||
any_held_title = { #Elector title must be a de jure vassal of the title being voted on; multi-Dukes (or similar) might have two duchies in multiple electoral domains, which they should be able to vote on. This is only valid for the highest-tier title (so a Duke-Elector who also owns a County which is an electoral title for another title does not get a vote from that county).
|
||||
tier = root.highest_held_title_tier
|
||||
exists = de_jure_liege
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = holder_direct_vassals
|
||||
limit = {
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
is_independent_ruler = yes #De jure vassals of the title who are not de facto vassals of the current ruler.
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_claimants
|
||||
limit = {
|
||||
feudal_elective_potential_landless_claimant_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = holder_close_or_extended_family
|
||||
limit = {
|
||||
is_close_family_of = scope:holder
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
226
common/succession_election/01_princely_elective.txt
Normal file
226
common/succession_election/01_princely_elective.txt
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
princely_elective = { #HRE Elective.
|
||||
elector_vote_strength = {
|
||||
base = 1
|
||||
modifier = { #Imperial Dignity
|
||||
desc = tooltip_feudal_vote_strength_emperor_tier
|
||||
add = 2
|
||||
highest_held_title_tier = 5
|
||||
}
|
||||
modifier = { #Royal Dignity
|
||||
desc = tooltip_feudal_vote_strength_king_tier
|
||||
add = 1
|
||||
highest_held_title_tier = 4
|
||||
}
|
||||
modifier = { #Powerful Vassal
|
||||
desc = tooltip_feudal_vote_strength_powerful_vassal
|
||||
add = {
|
||||
value = 1
|
||||
if = { #Additional point if the vassal is more powerful than the current ruler (Vassal King who meets this condition will have more voting power than the Emperor himself (1+1+1+2 = 5))
|
||||
limit = {
|
||||
max_military_strength > scope:holder.max_military_strength
|
||||
}
|
||||
add = 2
|
||||
}
|
||||
}
|
||||
NOT = { this = scope:holder }
|
||||
is_powerful_vassal = yes
|
||||
liege = scope:holder
|
||||
}
|
||||
modifier = { #Clerical Influence
|
||||
desc = tooltip_feudal_vote_strength_theocrat
|
||||
add = 2
|
||||
NOT = { this = scope:holder }
|
||||
OR = {
|
||||
government_has_flag = government_is_theocracy
|
||||
has_council_position = councillor_court_chaplain
|
||||
}
|
||||
faith = scope:holder.faith
|
||||
faith = { has_doctrine = doctrine_theocracy_lay_clergy }
|
||||
NOT = { root = scope:holder.faith.religious_head }
|
||||
}
|
||||
modifier = { #Papal Influence
|
||||
desc = tooltip_feudal_vote_strength_pope
|
||||
add = 4 #If the Pope is an elector, his vote is the most important of all.
|
||||
NOT = { this = scope:holder }
|
||||
root = scope:holder.faith.religious_head
|
||||
}
|
||||
modifier = { #Regent Influence
|
||||
desc = tooltip_feudal_vote_strength_is_diarch
|
||||
add = 1
|
||||
is_diarch_of_target = scope:holder
|
||||
}
|
||||
}
|
||||
|
||||
electors = {
|
||||
max = 8 #Seven Prince-Electors + 1 Emperor.
|
||||
add = holder #The Emperor
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
scope:title = { #Either title is higher than Duke-tier, or must be primary.
|
||||
OR = {
|
||||
tier >= tier_kingdom
|
||||
holder = { has_primary_title = prev }
|
||||
}
|
||||
}
|
||||
OR = { #Either de facto direct vassal, or independent ruler who is de jure vassal. (no sub-vassals)
|
||||
is_vassal_of = scope:holder
|
||||
is_independent_ruler = yes
|
||||
}
|
||||
trigger_if = { #Must be true priests
|
||||
limit = { government_has_flag = government_is_theocracy }
|
||||
trigger_if = {
|
||||
limit = { is_female = yes }
|
||||
faith_dominant_gender_female_or_equal = yes
|
||||
}
|
||||
trigger_else = { faith_dominant_gender_male_or_equal = yes }
|
||||
}
|
||||
}
|
||||
}
|
||||
priority = {
|
||||
base = 1
|
||||
modifier = { # The Emperor is always picked.
|
||||
add = 200
|
||||
this = scope:holder
|
||||
}
|
||||
modifier = { # Prince-Electors. (specific titles, held by rulers of the same faith as the current holder)
|
||||
add = 75
|
||||
faith = scope:holder.faith
|
||||
any_held_title = {
|
||||
is_target_in_global_variable_list = { name = hre_elector_list target = this }
|
||||
}
|
||||
}
|
||||
|
||||
modifier = { #Fallback Electors
|
||||
add = {
|
||||
value = 10
|
||||
if = { #Slightly favor same faith first.
|
||||
limit = {
|
||||
faith = scope:holder.faith
|
||||
}
|
||||
add = 15
|
||||
}
|
||||
if = { #Or compatible faith at least.
|
||||
limit = {
|
||||
faith = {
|
||||
faith_hostility_level = {
|
||||
target = scope:holder.faith
|
||||
value = faith_fully_accepted_level
|
||||
}
|
||||
}
|
||||
}
|
||||
add = 5
|
||||
}
|
||||
if = { #Slightly favor theocracies of same faith.
|
||||
limit = {
|
||||
government_has_flag = government_is_theocracy
|
||||
faith = scope:holder.faith
|
||||
}
|
||||
add = 4
|
||||
}
|
||||
if = { #Malus for other governments.
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
subtract = 5
|
||||
}
|
||||
if = { #Malus for other governments.
|
||||
limit = {
|
||||
OR = {
|
||||
government_has_flag = government_is_tribal
|
||||
government_has_flag = government_is_clan
|
||||
government_has_flag = government_is_mercenary
|
||||
government_has_flag = government_is_holy_order
|
||||
}
|
||||
}
|
||||
subtract = 4
|
||||
}
|
||||
if = { #Slight prioritization for same culture.
|
||||
limit = {
|
||||
culture = scope:holder.culture
|
||||
}
|
||||
add = 4
|
||||
}
|
||||
# Favor higher tier titles
|
||||
if = {
|
||||
limit = {
|
||||
highest_held_title_tier >= tier_kingdom
|
||||
}
|
||||
add = 5
|
||||
}
|
||||
# Disfavor non-theocratic counts
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_is_theocracy }
|
||||
highest_held_title_tier < tier_duchy
|
||||
}
|
||||
subtract = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
#Princely Elective uses very similar behavior to Feudal Elective. The few changes to the modifiers are already accounted for in the scripted_modifiers themselves.
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = holder_direct_vassals
|
||||
limit = {
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
is_independent_ruler = yes #De jure vassals of the title who are not de facto vassals of the current ruler.
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_claimants
|
||||
limit = {
|
||||
feudal_elective_potential_landless_claimant_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = holder_close_or_extended_family
|
||||
limit = {
|
||||
is_close_family_of = scope:holder
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
113
common/succession_election/02_gaelic_elective.txt
Normal file
113
common/succession_election/02_gaelic_elective.txt
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
gaelic_elective = { #Tanistry
|
||||
elector_vote_strength = {
|
||||
base = 1
|
||||
modifier = { #Current ruler gets a total of 2.
|
||||
desc = tooltip_elective_current_ruler
|
||||
add = 1
|
||||
this = scope:holder
|
||||
}
|
||||
modifier = { #Current house head gets further boost.
|
||||
desc = tooltip_gaelic_vote_strength_current_house_head
|
||||
add = 1
|
||||
exists = scope:holder.house.house_head
|
||||
this = scope:holder.house.house_head
|
||||
}
|
||||
modifier = { #Current dynast gets further boost.
|
||||
desc = tooltip_gaelic_vote_strength_current_dynast
|
||||
add = 2
|
||||
exists = scope:holder.dynasty.dynast
|
||||
this = scope:holder.dynasty.dynast
|
||||
}
|
||||
modifier = { #Powerful Vassal
|
||||
desc = tooltip_feudal_vote_strength_powerful_vassal
|
||||
add = {
|
||||
value = 1
|
||||
if = { #Additional point if the vassal is more powerful than the current ruler.
|
||||
limit = {
|
||||
max_military_strength > scope:holder.max_military_strength
|
||||
}
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
NOT = { this = scope:holder }
|
||||
is_powerful_vassal = yes
|
||||
liege = scope:holder
|
||||
}
|
||||
modifier = { #Regent Influence
|
||||
desc = tooltip_feudal_vote_strength_is_diarch
|
||||
add = 1
|
||||
is_diarch_of_target = scope:holder
|
||||
}
|
||||
}
|
||||
|
||||
electors = {
|
||||
add = holder
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
OR = { #1 or 2 tiers of difference for Electors.
|
||||
scope:title = { tier = tier_county }
|
||||
AND = {
|
||||
scope:title = { tier = tier_duchy }
|
||||
highest_held_title_tier >= 1
|
||||
}
|
||||
AND = {
|
||||
scope:title = { tier = tier_kingdom }
|
||||
highest_held_title_tier >= 2
|
||||
}
|
||||
AND = {
|
||||
scope:title = { tier = tier_empire }
|
||||
highest_held_title_tier >= 3
|
||||
}
|
||||
}
|
||||
any_held_title = { #Elector title must be a de jure vassal of the title being voted on; multi-Dukes (or similar) might have two duchies in multiple electoral domains, which they should be able to vote on. This is only valid for the highest-tier title (so a Duke-Elector who also owns a County which is an electoral title for another title does not get a vote from that county).
|
||||
tier = root.highest_held_title_tier
|
||||
exists = de_jure_liege
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_gaelic_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = holder_dynasty
|
||||
limit = {
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
115
common/succession_election/04_saxon_elective.txt
Normal file
115
common/succession_election/04_saxon_elective.txt
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
saxon_elective = { #Witenagemot
|
||||
elector_vote_strength = {
|
||||
base = 1
|
||||
modifier = { #Imperial Dignity
|
||||
desc = tooltip_feudal_vote_strength_emperor_tier
|
||||
add = 3
|
||||
highest_held_title_tier = 5
|
||||
}
|
||||
modifier = { #Royal Dignity
|
||||
desc = tooltip_feudal_vote_strength_king_tier
|
||||
add = 2
|
||||
highest_held_title_tier = 4
|
||||
}
|
||||
modifier = { #Princely Dignity
|
||||
desc = tooltip_feudal_vote_strength_duke_tier
|
||||
add = 1
|
||||
highest_held_title_tier = 3
|
||||
}
|
||||
modifier = { #Powerful Vassal
|
||||
desc = tooltip_feudal_vote_strength_powerful_vassal
|
||||
add = {
|
||||
value = 1
|
||||
if = { #Additional point if the vassal is more powerful than the current ruler
|
||||
limit = {
|
||||
max_military_strength > scope:holder.max_military_strength
|
||||
}
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
NOT = { this = scope:holder }
|
||||
is_powerful_vassal = yes
|
||||
liege = scope:holder
|
||||
}
|
||||
modifier = { #Regent Influence
|
||||
desc = tooltip_feudal_vote_strength_is_diarch
|
||||
add = 1
|
||||
is_diarch_of_target = scope:holder
|
||||
}
|
||||
}
|
||||
|
||||
electors = {
|
||||
add = holder
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
is_vassal_of = scope:holder #All direct de jure vassals, no matter the tier.
|
||||
is_adult = yes
|
||||
NOT = { has_trait = incapable }
|
||||
any_held_title = { #Elector title must be a de jure vassal of the title being voted on; multi-Dukes (or similar) might have two duchies in multiple electoral domains, which they should be able to vote on. This is only valid for the highest-tier title (so a Duke-Elector who also owns a County which is an electoral title for another title does not get a vote from that county).
|
||||
tier = root.highest_held_title_tier
|
||||
exists = de_jure_liege
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_feudal_elective_modifier = yes
|
||||
elector_voting_pattern_circumstances_saxon_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
is_vassal_of = scope:holder #Only Powerful, direct, de jure vassals are potential candidates.
|
||||
is_powerful_vassal = yes
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_claimants
|
||||
limit = {
|
||||
feudal_elective_potential_landless_claimant_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = holder_close_or_extended_family
|
||||
limit = {
|
||||
is_child_of = scope:holder #In Saxon Elective filter only the children of the current holder.
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
123
common/succession_election/05_scandinavian_elective.txt
Normal file
123
common/succession_election/05_scandinavian_elective.txt
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
scandinavian_elective = { #Thing
|
||||
elector_vote_strength = {
|
||||
base = 0
|
||||
modifier = { #Each voter is the "representative" of all the free men living in his domain. The larger the domain, the more voting power he has.
|
||||
desc = tooltip_scandinavian_elective_development
|
||||
is_landed_or_landless_administrative = yes
|
||||
domain_size >= 1
|
||||
any_held_title = {
|
||||
tier = tier_county
|
||||
development_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
every_held_title = {
|
||||
limit = {
|
||||
tier = tier_county
|
||||
development_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
value = this.development_level
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { this.faith = root.faith }
|
||||
}
|
||||
divide = 2
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { this.culture = { has_same_culture_heritage = root.culture } }
|
||||
}
|
||||
divide = 2
|
||||
}
|
||||
min = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
modifier = { #Further boost/reduction is given depending on capital county's opinion.
|
||||
desc = tooltip_scandinavian_elective_capital_opinion
|
||||
is_landed_or_landless_administrative = yes
|
||||
exists = capital_county
|
||||
OR = {
|
||||
capital_county.county_opinion <= -5
|
||||
capital_county.county_opinion >= 5
|
||||
}
|
||||
add = {
|
||||
value = capital_county.county_opinion
|
||||
multiply = 0.2
|
||||
}
|
||||
}
|
||||
min = 1
|
||||
}
|
||||
|
||||
electors = {
|
||||
add = holder
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
target_is_liege_or_above = scope:holder #All de jure vassals, no matter the tier, sub-vassals included.
|
||||
is_ruler = yes
|
||||
is_landed_or_landless_administrative = yes
|
||||
exists = capital_county
|
||||
highest_held_title_tier > 1 #Barons excluded.
|
||||
domain_size >= 1
|
||||
any_held_title = { #Elector title must be a de jure vassal of the title being voted on; multi-Dukes (or similar) might have two duchies in multiple electoral domains, which they should be able to vote on. This is only valid for the highest-tier title (so a Duke-Elector who also owns a County which is an electoral title for another title does not get a vote from that county).
|
||||
tier = root.highest_held_title_tier
|
||||
exists = de_jure_liege
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_feudal_elective_modifier = yes
|
||||
elector_voting_pattern_circumstances_scandinavian_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = title_claimants
|
||||
limit = {
|
||||
feudal_elective_potential_landless_claimant_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = holder_close_or_extended_family
|
||||
limit = {
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
136
common/succession_election/06_tribal_elective.txt
Normal file
136
common/succession_election/06_tribal_elective.txt
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
|
||||
# Root scope - Elector, the character voting in the election.
|
||||
# scope:candidate scope - Candidate, Character considered for the title.
|
||||
# scope:title scope - Title, The title the nomination is for.
|
||||
# scope:holder scope - Ruler, The ruler currently holding the title.
|
||||
# scope:holder_candidate scope - Favored Candidate, The title owner's candidate.
|
||||
# The voter will vote for the top score candidate calculated from this script.
|
||||
|
||||
#Addition for FP3
|
||||
|
||||
tribal_elective = { #Loya Jirga
|
||||
elector_vote_strength = {
|
||||
base = 0
|
||||
modifier = { #Each voter is the "representative" of all the free men living in his domain. The larger the domain, the more voting power he has.
|
||||
desc = tooltip_tribal_elective_development
|
||||
is_landed_or_landless_administrative = yes
|
||||
domain_size >= 1
|
||||
any_held_title = {
|
||||
tier = tier_county
|
||||
development_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
every_held_title = {
|
||||
limit = {
|
||||
tier = tier_county
|
||||
development_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
value = this.development_level
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { this.faith = root.faith }
|
||||
}
|
||||
divide = 2
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { this.culture = { has_same_culture_heritage = root.culture } }
|
||||
}
|
||||
divide = 2
|
||||
}
|
||||
min = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
modifier = { #Further boost/reduction is given depending on capital county's opinion.
|
||||
desc = tooltip_tribal_elective_capital_opinion
|
||||
is_landed_or_landless_administrative = yes
|
||||
exists = capital_county
|
||||
OR = {
|
||||
capital_county.county_opinion <= -5
|
||||
capital_county.county_opinion >= 5
|
||||
}
|
||||
add = {
|
||||
value = capital_county.county_opinion
|
||||
multiply = 0.2
|
||||
}
|
||||
}
|
||||
min = 1
|
||||
}
|
||||
|
||||
electors = {
|
||||
add = holder
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
OR = { #Is either a dynasty head, or a somewhat respected elder
|
||||
AND = {
|
||||
is_house_head = yes
|
||||
exists = dynasty
|
||||
}
|
||||
AND = {
|
||||
is_adult = yes
|
||||
piety_level >= 2
|
||||
}
|
||||
}
|
||||
NOT = { has_trait = incapable }
|
||||
any_held_title = { #Elector title must be a de jure vassal of the title being voted on; multi-Dukes (or similar) might have two duchies in multiple electoral domains, which they should be able to vote on. This is only valid for the highest-tier title (so a Duke-Elector who also owns a County which is an electoral title for another title does not get a vote from that county).
|
||||
tier = root.highest_held_title_tier
|
||||
exists = de_jure_liege
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
candidate_score = {
|
||||
base = 0
|
||||
###################### Elector self-voting pattern ##########################
|
||||
elector_self_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Holder voting pattern ##########################
|
||||
holder_voting_pattern_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (circumstances) ##########################
|
||||
elector_voting_pattern_circumstances_feudal_elective_modifier = yes
|
||||
elector_voting_pattern_circumstances_tribal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (prestige/piety) ##########################
|
||||
elector_voting_pattern_prestige_piety_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (traits) ##########################
|
||||
elector_voting_pattern_traits_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (opinion) ##########################
|
||||
elector_voting_pattern_opinion_feudal_elective_modifier = yes
|
||||
|
||||
########################## Elector voting patterns (misc) ##########################
|
||||
elector_voting_pattern_circumstances_misc_elective_modifier = yes
|
||||
}
|
||||
|
||||
#scope:candidate = Candidate, scope:title = Title, scope:holder_candidate = Candidate currently selected by ruler.
|
||||
candidates = {
|
||||
add = {
|
||||
type = title_claimants
|
||||
limit = {
|
||||
feudal_elective_potential_landless_claimant_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = title_dejure_vassals
|
||||
limit = {
|
||||
feudal_elective_potential_landed_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
add = {
|
||||
type = holder_dynasty
|
||||
limit = {
|
||||
feudal_elective_potential_landless_dynastic_candidate_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
45
common/succession_election/_succession_election.info
Normal file
45
common/succession_election/_succession_election.info
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
== Structure ==
|
||||
|
||||
feudal_elective = {
|
||||
# Characters that can be elected
|
||||
# In addition to the scripted limitations, the gender and faith laws are taken into account. Also the current title holder can never be a candidate.
|
||||
candidates = {
|
||||
# A set of candidates. Can list multiple sets. If a character matches any of them they will be a valid candidate.
|
||||
add = {
|
||||
type = holder_direct_vassals/... # see Candidate Set Types below
|
||||
limit = {} # trigger that must be true for the character in the set; scope: root = candidate character, scope:title = the title under election, scope:holder = current title holder; default: always = yes
|
||||
}
|
||||
add = holder_direct_vassals # short version for add = { type = holder_direct_vassals }
|
||||
|
||||
# See "limit" inside "add", checked for all character sets
|
||||
limit = {}
|
||||
}
|
||||
|
||||
# Characters that can vote in the election
|
||||
# Note that only rulers can be electors.
|
||||
electors = {
|
||||
# all elements from "candidates" are valid
|
||||
|
||||
max = 10 # optional maximum number of electors, <0 for no limitation; default: -1
|
||||
priority = {} # optional MTTH to calculate a character's priority; only relevant when there is a max; scope: see "limit"; default: base = 1
|
||||
}
|
||||
|
||||
# Optional MTTH to calculate the score an elector should add with their vote; scope: root = elector, scope:title = the title under election, scope:holder = current title holder; default: base = 1
|
||||
elector_vote_strength = {}
|
||||
|
||||
# MTTH to calculate the AI voting behavior. AI electors will choose the candidate with the highest score.
|
||||
# Scope: root = elector, scope:candidate = the considered candidate, scope:title = the title under election, scope:holder = current title holder, scope:holder_candidate = the title holder's candidate
|
||||
# default: base = 1
|
||||
candidate_score = {}
|
||||
}
|
||||
|
||||
== Candidate Set Types ==
|
||||
|
||||
- title_claimants # any claimants of the title
|
||||
- title_dejure_vassals # direct & indirect vassals in the dejure hierarchy under the title, lowest level: minimum playable tier (county)
|
||||
- holder # current holder of the title
|
||||
- holder_direct_vassals # direct vassals of the current holder of the title
|
||||
- holder_spouses
|
||||
- holder_close_family
|
||||
- holder_close_or_extended_family
|
||||
- holder_dynasty
|
||||
BIN
common/succession_election/common - Shortcut.lnk
Normal file
BIN
common/succession_election/common - Shortcut.lnk
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue