diff --git a/common/laws/NEOW_succession_laws.txt b/common/laws/NEOW_succession_laws.txt new file mode 100644 index 00000000..09ede17c --- /dev/null +++ b/common/laws/NEOW_succession_laws.txt @@ -0,0 +1,29 @@ +title_succession_laws = { + theomonarchy_succession_law = { # For Helvetics and Monarchomachs + can_have = { + government_has_flag = government_is_feudal + OR = { # Rewrite to "has theomonarchy tenet" when that exists + religion = helvetic + #religion = monarchomach #when it is made + } + highest_held_title_tier >= tier_kingdom + } + can_pass = { + can_change_title_law_trigger = yes + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = theomonarchy_elective + } + flag = elective_succession_law + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } +} \ No newline at end of file diff --git a/common/script_values/NEOW_custom_values.txt b/common/script_values/NEOW_custom_values.txt new file mode 100644 index 00000000..3766b92b --- /dev/null +++ b/common/script_values/NEOW_custom_values.txt @@ -0,0 +1,5 @@ +highest_held_title_tier_minus_two_landed = { # for theomonarchy_elective + value = highest_held_title_tier + subtract = 2 + min = tier_barony +} \ No newline at end of file diff --git a/common/scripted_modifiers/NEOW_elective_successions_scripted_modifiers.txt b/common/scripted_modifiers/NEOW_elective_successions_scripted_modifiers.txt new file mode 100644 index 00000000..b0531513 --- /dev/null +++ b/common/scripted_modifiers/NEOW_elective_successions_scripted_modifiers.txt @@ -0,0 +1,1241 @@ +elector_voting_pattern_piety_theomonarchy = { + ########################## Elector voting patterns (prestige/piety) ########################## + modifier = { + desc = tooltip_feudal_elector_vote_piety_negative + this != scope:candidate + ai_zeal > -30 + scope:candidate = { piety_level < 1 } + } + modifier = { + desc = tooltip_feudal_elector_vote_piety_positive + add = { + value = scope:candidate.piety_level + subtract = 1 + multiply = 10 + } + this != scope:candidate + faith = scope:candidate.faith + ai_zeal > -30 + scope:candidate = { piety_level >= 2 } + } +} + +elector_voting_pattern_traits_theomonarchy = { + ########################## Elector voting patterns (traits) ########################## + #Personality Traits compatibility + #Sins vs Virtues + #Crime traits + #Attraction + #Extreme swings + + #Trait compatibility between elector and candidate + compatibility_modifier = { + who = root + compatibility_target = scope:candidate + min = -50 + max = 50 + trigger = { + root != scope:candidate + } + } + modifier = { + desc = tooltip_feudal_elector_vote_sinful + this != scope:candidate #Do not judge yourself. + ai_zeal > -30 + scope:candidate = { num_sinful_traits >= 1 } + add = { + subtract = 5 + if = { #Check specific number... + limit = { + scope:candidate = { num_sinful_traits >= 2 } + } + subtract = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_sinful_traits >= 3 } + } + subtract = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_sinful_traits >= 4 } + } + subtract = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_sinful_traits >= 5 } + } + subtract = 5 + } + multiply = 3 # We can't have a sinful ruler in a theomonarchy + multiply = ai_zeal #...Multiply by Elector Zeal. + multiply = 0.1 #Reduce overall to avoid extreme numbers. + } + } + modifier = { + desc = tooltip_feudal_elector_vote_virtuous + this = scope:candidate #Do not judge yourself. + ai_zeal > -30 + scope:candidate = { num_virtuous_traits >= 1 } + add = { + add = 5 + if = { #Check specific number... + limit = { + scope:candidate = { num_virtuous_traits >= 2 } + } + add = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_virtuous_traits >= 3 } + } + add = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_virtuous_traits >= 4 } + } + add = 5 + } + if = { #Check specific number... + limit = { + scope:candidate = { num_virtuous_traits >= 5 } + } + add = 5 + } + multiply = 3 # ...but we do like pious traits + multiply = ai_zeal #...Multiply by Elector Zeal. + multiply = 0.05 #Reduce overall to avoid extreme numbers. + } + } + #Excommunication + modifier = { + desc = tooltip_feudal_elector_vote_excommunication + this != scope:candidate #Do not judge yourself. + faith = { has_doctrine_parameter = excommunication_active } + faith = scope:candidate.faith + root.faith.religious_head = scope:candidate.faith.religious_head #Must have been excommunicated by the same Pope. + OR = { + NOT = { has_trait = excommunicated } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = excommunicated } + add = { + subtract = 1000 # Can't be a monarch of a theomonarchy if your highest clergy says you are not cool + } + } + #Illegitimate children (excepting the children of consorts, which filter separately) + modifier = { + desc = tooltip_feudal_elector_vote_out_of_wedlock + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_bastardry_none } + } + OR = { + NOR = { + has_trait = bastard + has_trait = legitimized_bastard + has_trait = wild_oat + } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { + OR = { + has_trait = bastard + has_trait = legitimized_bastard + has_trait = wild_oat + } + } + add = { + subtract = 15 + if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_bastardry_legitimization } + } + subtract = 10 + } + if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_bastardry_all } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { + ai_zeal > 10 + } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Children of Consorts + modifier = { + desc = tooltip_feudal_elector_vote_out_of_wedlock + NOR = { + this = scope:candidate #Do not judge yourself. + allowed_concubines = yes + faith = { has_doctrine = doctrine_bastardry_none } #Unlikely to be fussed about such kids + } + OR = { + NOT = { has_trait = child_of_concubine } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = child_of_concubine } + add = { + subtract = 15 + if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_bastardry_legitimization } + } + subtract = 10 + } + if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_bastardry_all } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { + ai_zeal > 10 + } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Sodomy Crime + modifier = { + desc = tooltip_feudal_elector_vote_sodomite + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_homosexuality_accepted } + } + ai_zeal > -30 + OR = { + NOT = { has_trait = sodomite } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = sodomite } + add = { + subtract = 15 + if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_homosexuality_shunned } + } + subtract = 10 + } + else_if = { #Religious gradients. + limit = { + faith = { has_doctrine = doctrine_homosexuality_crime } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { + ai_zeal > 10 + } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Kinslayer Crime + modifier = { + desc = tooltip_feudal_elector_vote_kinslayer + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_kinslaying_accepted } + } + OR = { + NOT = { has_trait = kinslayer } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = kinslayer } + add = { + value = 0 + if = { #Check specific trait, multiply depending on religious doctrine. + limit = { + scope:candidate = { has_trait = kinslayer_1 } + } + subtract = 10 + if = { + limit = { + faith = { has_doctrine = doctrine_kinslaying_any_dynasty_member_crime } + } + multiply = 2 + } + } + else_if = { + limit = { + scope:candidate = { has_trait = kinslayer_2 } + } + subtract = 15 + if = { + limit = { + faith = { + OR = { + has_doctrine = doctrine_kinslaying_any_dynasty_member_crime + has_doctrine = doctrine_kinslaying_extended_family_crime + } + } + } + multiply = 2 + } + } + else_if = { + limit = { + scope:candidate = { has_trait = kinslayer_3 } + } + subtract = 20 + if = { + limit = { + faith = { + OR = { + has_doctrine = doctrine_kinslaying_any_dynasty_member_crime + has_doctrine = doctrine_kinslaying_extended_family_crime + has_doctrine = doctrine_kinslaying_close_kin_crime + } + } + } + multiply = 2 + } + } + #And further add malus depending on Elector's relation to the Kinslaying candidate. + if = { + limit = { + exists = scope:candidate.dynasty + dynasty != scope:candidate.dynasty + } + subtract = 10 + } + else_if = { + limit = { + exists = scope:candidate.dynasty + dynasty = scope:candidate.dynasty + NOT = { is_close_family_of = scope:candidate } + } + subtract = 20 + } + else_if = { + limit = { + exists = scope:candidate.dynasty + dynasty = scope:candidate.dynasty + is_close_family_of = scope:candidate + } + subtract = 30 + } + if = { #Boost for Scandinavian Elective. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 1.5 + } + } + } + + #Deviancy + modifier = { + desc = tooltip_feudal_elector_vote_deviant + NOT = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine_parameter = deviancy_accepted } + } + OR = { + NOT = { has_trait = deviant } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = deviant } + add = { + subtract = 15 + if = { + limit = { + faith = { has_doctrine_parameter = deviancy_shunned } + } + subtract = 10 + } + if = { + limit = { + faith = { has_doctrine_parameter = deviancy_illegal } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { ai_zeal > 10 } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Cannibalism + modifier = { + desc = tooltip_feudal_elector_vote_cannibal + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine_parameter = cannibalism_legal } + } + OR = { + NOT = { has_trait = cannibal } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = cannibal } + add = { + subtract = 30 + if = { #Religious gradients. + limit = { ai_zeal > 10 } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Incest + modifier = { + desc = tooltip_feudal_elector_vote_incestuous + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_consanguinity_unrestricted } + } + OR = { + NOT = { has_trait = incestuous } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { has_trait = incestuous } + add = { + subtract = 25 + if = { #Religious gradients. + limit = { ai_zeal > 10 } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Adultery - males + modifier = { + desc = tooltip_feudal_elector_vote_adulterous_man + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_adultery_men_accepted } + } + OR = { + NOT = { has_trait = adulterer } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { + has_trait = adulterer + is_female = no + } + add = { + subtract = 15 + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_men_shunned } + } + subtract = 10 + } + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_men_crime } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { ai_zeal > 10 } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Adultery - females + modifier = { + desc = tooltip_feudal_elector_vote_adulterous_woman + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_adultery_women_accepted } + } + OR = { + NOT = { has_trait = adulterer } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { + has_trait = adulterer + is_female = yes + } + add = { + subtract = 15 + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_women_shunned } + } + subtract = 10 + } + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_women_crime } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { ai_zeal > 10 } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Fornication - males + modifier = { + desc = tooltip_feudal_elector_vote_fornicating_man + this != scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_adultery_men_accepted } + OR = { + NOT = { has_trait = fornicator } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { + has_trait = fornicator + is_female = no + } + add = { + subtract = 15 + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_men_shunned } + } + subtract = 10 + } + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_men_crime } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { + ai_zeal > 10 + } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Fornication - females + modifier = { + desc = tooltip_feudal_elector_vote_fornicating_woman + this != scope:candidate #Do not judge yourself. + faith = { has_doctrine = doctrine_adultery_women_accepted } + OR = { + NOT = { has_trait = fornicator } + has_trait = arbitrary #No need for consistency + } + scope:candidate = { + has_trait = fornicator + is_female = yes + } + add = { + subtract = 15 + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_women_shunned } + } + subtract = 10 + } + if = { + limit = { + faith = { has_doctrine = doctrine_adultery_women_crime } + } + subtract = 15 + } + if = { #Religious gradients. + limit = { + ai_zeal > 10 + } + subtract = { + value = ai_zeal + multiply = 0.5 + } + } + } + } + #Attraction + modifier = { + desc = tooltip_feudal_elector_vote_attractive + this != scope:candidate #Do not judge yourself, you dirty AI. + is_adult = yes + scope:candidate = { + is_adult = yes + attraction >= 25 + } + add = { + value = 1 + multiply = scope:candidate.attraction + multiply = 0.1 + } + } + modifier = { + desc = tooltip_feudal_elector_vote_ugly + this != scope:candidate #Do not judge yourself. + is_adult = yes + scope:candidate = { + is_adult = yes + attraction <= -25 + } + add = { + value = 0 + multiply = scope:candidate.attraction + multiply = 0.1 + } + } + + #Special cases (ex. deformities, disfigured for Byzantines) + modifier = { + add = -35 + desc = tooltip_feudal_elector_vote_incapable + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = incapable } + } + modifier = { + add = -15 + desc = tooltip_feudal_elector_vote_infirm + this != scope:candidate #Do not judge yourself. + this_is_diplomatic_society_trigger = no + scope:candidate = { has_trait = infirm } + } + modifier = { + add = -30 + desc = tooltip_feudal_elector_vote_infirm_diplomat + this != scope:candidate #Do not judge yourself. + this_is_diplomatic_society_trigger = yes + scope:candidate = { has_trait = infirm } + } + modifier = { + desc = tooltip_feudal_elector_vote_disfigured + this_is_martial_society_trigger = no + NOT = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + scope:candidate = { has_trait = disfigured } + add = -15 + } + modifier = { + desc = tooltip_feudal_elector_vote_disfigured_byzantine + culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } + scope:candidate = { has_trait = disfigured } + add = -100 + } + modifier = { + desc = tooltip_feudal_elector_vote_disfigured_warrior + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = disfigured } + add = { + subtract = 5 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 45 + } + } + } + modifier = { + add = -10 + desc = tooltip_feudal_elector_vote_maimed + this_is_martial_society_trigger = no + scope:candidate = { has_trait = maimed } + } + modifier = { + desc = tooltip_feudal_elector_vote_maimed_warrior + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = maimed } + add = { + subtract = 15 + if = { #Scandinavian elective more unforgiving. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 2 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_born_in_the_purple + this != scope:candidate #Do not judge yourself. + culture = { has_cultural_parameter = children_can_be_born_in_the_purple } + scope:candidate = { has_trait = born_in_the_purple } + add = 50 + } + modifier = { + desc = tooltip_feudal_elector_vote_genius_diplomat + this != scope:candidate #Do not judge yourself. + OR = { + this_is_diplomatic_society_trigger = yes + this_is_spiritual_society_trigger = yes + } + scope:candidate = { + OR = { + has_trait = intellect_good + has_trait = shrewd + } + } + add = { + value = 10 + if = { + limit = { + scope:candidate = { has_trait = intellect_good_1 } + } + add = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = intellect_good_2 + has_trait = shrewd + } + } + } + add = 10 + } + if = { + limit = { + scope:candidate = { has_trait = intellect_good_3 } + } + add = 15 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_genius + this != scope:candidate #Do not judge yourself. + NOR = { + this_is_diplomatic_society_trigger = yes + this_is_spiritual_society_trigger = yes + } + scope:candidate = { + OR = { + has_trait = intellect_good + has_trait = shrewd + } + } + add = { + value = 0 + if = { + limit = { + scope:candidate = { has_trait = intellect_good_1 } + } + add = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = intellect_good_2 + has_trait = shrewd + } + } + } + add = 10 + } + if = { + limit = { + scope:candidate = { has_trait = intellect_good_3 } + } + add = 15 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_strong + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { + OR = { + has_trait = physique_good + has_trait = strong + } + } + add = { + value = 0 + if = { + limit = { + scope:candidate = { has_trait = physique_good_1 } + } + add = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = strong + has_trait = physique_good_2 + } + } + } + add = 10 + } + if = { + limit = { + scope:candidate = { has_trait = physique_good_3 } + } + add = 15 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_strong_warrior + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { + OR = { + has_trait = physique_good + has_trait = strong + } + } + add = { + value = 10 + if = { + limit = { + scope:candidate = { has_trait = physique_good_1 } + } + add = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = strong + has_trait = physique_good_2 + } + } + } + add = 10 + } + if = { + limit = { + scope:candidate = { has_trait = physique_good_3 } + } + add = 15 + } + if = { #Scandinavian elective more unforgiving. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 2 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_imbecile + this != scope:candidate #Do not judge yourself. + this_is_diplomatic_society_trigger = no + scope:candidate = { + OR = { + has_trait = intellect_bad + has_trait = dull + } + } + add = { + value = 0 + if = { + limit = { + scope:candidate = { has_trait = intellect_bad_1 } + } + subtract = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = intellect_bad_2 + has_trait = dull + } + } + } + subtract = 10 + } + if = { + limit = { + scope:candidate = { has_trait = intellect_bad_3 } + } + subtract = 15 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_imbecile_diplomat + this != scope:candidate #Do not judge yourself. + this_is_diplomatic_society_trigger = yes + scope:candidate = { + OR = { + has_trait = intellect_bad + has_trait = dull + } + } + add = { + subtract = 10 + if = { + limit = { + scope:candidate = { has_trait = intellect_bad_1 } + } + subtract = 5 + } + if = { + limit = { + scope:candidate = { + OR = { + has_trait = intellect_bad_2 + has_trait = dull + } + } + } + subtract = 10 + } + if = { + limit = { + scope:candidate = { has_trait = intellect_bad_3 } + } + subtract = 15 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_clubfooted + this != scope:candidate #Do not judge yourself. + scope:candidate = { has_trait = clubfooted } + add = { + subtract = 5 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 10 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_dwarf + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = dwarf } + add = { + subtract = 15 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 20 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_dwarf_warrior + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = dwarf } + add = { + subtract = 30 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 30 + } + if = { #Scandinavian elective more unforgiving. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 2 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_hunchback + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = {has_trait = hunchbacked } + add = { + subtract = 15 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 30 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_hunchback_warrior + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = hunchbacked } + add = { + subtract = 30 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 30 + } + if = { #Scandinavian elective more unforgiving. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 2 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_inbred + this != scope:candidate #Do not judge yourself. + scope:candidate = { + OR = { + has_trait = inbred + has_trait = spindly + has_trait = scaly + has_trait = albino + has_trait = wheezing + has_trait = bleeder + } + } + add = { + subtract = 15 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 60 + } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_lisping + this != scope:candidate #Do not judge yourself. + scope:candidate = { has_trait = lisping } + add = { + subtract = 5 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 10 + } + } + } + modifier = { + add = -5 + desc = tooltip_feudal_elector_vote_stuttering + this != scope:candidate #Do not judge yourself. + scope:candidate = { has_trait = stuttering } + } + modifier = { #Shunned for being Evil + add = -25 + desc = tooltip_feudal_elector_vote_evil_negative + this != scope:candidate #Do not judge yourself. + OR = { + has_trait = arbitrary #No need for consistency + NOT = { has_personality_malicious_trigger = yes } + } + scope:candidate = { has_personality_malicious_trigger = yes } + } + modifier = { #Shunned for being a lunatic + add = -15 + desc = tooltip_feudal_elector_vote_lunatic_negative + this != scope:candidate #Do not judge yourself. + OR = { + has_trait = arbitrary #No need for consistency + NOR = { + has_trait = lunatic + has_trait = possessed + } + } + scope:candidate = { has_trait = lunatic } + } + modifier = { #Shunned for being possessed + add = -15 + desc = tooltip_feudal_elector_vote_possessed_negative + NOR = { + this = scope:candidate #Do not judge yourself. + faith = { has_doctrine_parameter = spirit_possession_active } + } + OR = { + has_trait = arbitrary #No need for consistency + NOR = { + has_trait = lunatic + has_trait = possessed + } + } + scope:candidate = { has_trait = possessed } + } + modifier = { #Praised for being possessed + add = 35 + desc = tooltip_feudal_elector_vote_possessed_positive + this != scope:candidate #Do not judge yourself. + faith = { has_doctrine_parameter = spirit_possession_active } + ai_zeal > 10 + scope:candidate = { has_trait = possessed } + } + modifier = { #Praised for being Pilgrim + add = 10 + desc = tooltip_feudal_elector_vote_pilgrim_positive + this != scope:candidate #Do not judge yourself. + faith = scope:candidate.faith + ai_zeal > 10 + scope:candidate = { has_trait = pilgrim } + } + modifier = { #Praised for being Crusader + add = 10 + desc = tooltip_feudal_elector_vote_crusader_positive + this != scope:candidate #Do not judge yourself. + faith = scope:candidate.faith + ai_zeal > 10 + scope:candidate = { has_trait = faith_warrior } + } + modifier = { #Shunned for being Crusader + add = -15 + desc = tooltip_feudal_elector_vote_crusader_negative + NOR = { + this = scope:candidate #Do not judge yourself. + faith = scope:candidate.faith + } + faith = { + faith_hostility_level = { + target = scope:candidate.faith + value >= faith_hostile_level + } + } + ai_zeal > 10 + scope:candidate = { has_trait = faith_warrior } + } + modifier = { #Praised for being Adventurer + add = 10 + desc = tooltip_feudal_elector_vote_adventurer_positive + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = adventurer } + } + modifier = { #Shunned for being Adventurer + add = -10 + desc = tooltip_feudal_elector_vote_adventurer_negative + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = adventurer } + } + modifier = { #Praised for being Berserker + add = 5 + desc = tooltip_feudal_elector_vote_berserker_positive + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = berserker } + } + modifier = { #Shunned for being Berserker + add = -20 + desc = tooltip_feudal_elector_vote_berserker_negative + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = berserker } + } + modifier = { #Shunned for being blind + desc = tooltip_feudal_elector_vote_blinded_negative + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = blind } + add = { + subtract = 10 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 140 + } + } + } + modifier = { #Shunned for being blind + desc = tooltip_feudal_elector_vote_blinded_negative_warrior + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = blind } + add = { + subtract = 20 + if = { + limit = { culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } } + subtract = 130 + } + if = { #Scandinavian elective more unforgiving. + limit = { + scope:title = { has_title_law = scandinavian_elective_succession_law } + } + multiply = 2 + } + } + } + modifier = { #Shunned for being eunuch + desc = tooltip_feudal_elector_vote_eunuch_negative + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + NOR = { + culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } + faith = { religion_tag = islam_religion } + } + scope:candidate = { is_eunuch_trigger = yes } + add = -25 + } + modifier = { #Shunned for being eunuch + desc = tooltip_feudal_elector_vote_eunuch_negative_warrior + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + NOR = { + culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } + faith = { religion_tag = islam_religion } + } + scope:candidate = { is_eunuch_trigger = yes } + add = -50 + } + modifier = { #Shunned for being eunuch + desc = tooltip_feudal_elector_vote_eunuch_negative_byzantine + this != scope:candidate #Do not judge yourself. + OR = { + culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } + faith = { religion_tag = islam_religion } + } + scope:candidate = { is_eunuch_trigger = yes } + add = -150 + } + modifier = { #Praised for being Giant + add = 10 + desc = tooltip_feudal_elector_vote_giant_positive + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = yes + scope:candidate = { has_trait = giant } + } + modifier = { #Shunned for being Giant + add = -10 + desc = tooltip_feudal_elector_vote_giant_negative + this != scope:candidate #Do not judge yourself. + this_is_martial_society_trigger = no + scope:candidate = { has_trait = giant } + } + modifier = { #Shunned for being unproved courtier in the shadow of the ruler. + add = -10 + desc = tooltip_feudal_elector_vote_spoiled_courtier + scope:candidate = { this = scope:holder_candidate } + this != scope:candidate #Do not judge yourself. + scope:candidate = { + NOR = { + is_ruler = yes + has_council_position = councillor_marshal + has_council_position = councillor_chancellor + has_council_position = councillor_steward + has_council_position = councillor_spymaster + has_council_position = councillor_court_chaplain + } + OR = { + has_trait = deviant + has_trait = lazy + has_trait = lifestyle_reveler + has_trait = seducer + has_trait = drunkard + has_trait = shy + } + } + } +} \ No newline at end of file diff --git a/common/succession_election/NEOW_succession_elections.txt b/common/succession_election/NEOW_succession_elections.txt new file mode 100644 index 00000000..4c363bf2 --- /dev/null +++ b/common/succession_election/NEOW_succession_elections.txt @@ -0,0 +1,126 @@ +theomonarchy_elective = { # Combination of tribal elective and + 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 = { + title_tier = county + development_level > 0 + target_is_de_jure_liege_or_above = scope:title + } + add = { + every_held_title = { + title_tier = county + limit = { + development_level > 0 + target_is_de_jure_liege_or_above = scope:title + } + add = { + value = this.development_level + if = { + limit = { + this.faith != root.faith + } + divide = 2 + } + min = 1 + } + } + } + } + modifier = { #Additional sway from piety level + desc = tooltip_confederation_elective_piety_levels + add = { + value = piety_level + } + } + #Lets see how this looks without + #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 = holder_direct_vassals + limit = { + OR = { #Is either a vassal, or a somewhat respected elder + AND = { + is_adult = yes + piety_level >= 2 + } + AND = { + highest_held_title_tier >= scope:title.holder.highest_held_title_tier_minus_two_landed + target_is_de_facto_liege_or_above = scope:title + } + } + faith = scope:title.holder.faith + NOT = { has_trait = incapable } + } + } + } + + 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_piety_theomonarchy = yes + + ########################## Elector voting patterns (traits) ########################## + lector_voting_pattern_traits_theomonarchy = 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 + faith = scope:title.holder.faith + } + } + add = { + type = holder_direct_vassals + limit = { + feudal_elective_potential_landed_candidate_trigger = yes + highest_held_title_tier >= tier_county + faith = scope:title.holder.faith + } + } + add = { + type = holder_dynasty + limit = { + feudal_elective_potential_landless_dynastic_candidate_trigger = yes + faith = scope:title.holder.faith + } + } + } +} diff --git a/history/titles/k_switzerland.txt b/history/titles/k_switzerland.txt index 07c894b4..11424e80 100644 --- a/history/titles/k_switzerland.txt +++ b/history/titles/k_switzerland.txt @@ -1,7 +1,7 @@ e_alps = { 2100.1.1 = { succession_laws = { - tribal_elective_succession_law + theomonarchy_succession_law } } 2554.1.1 = {