From 166ca79d22d65f38674f3bd097ecf6f991ec43b3 Mon Sep 17 00:00:00 2001 From: Grekopithikos <70974452+Grekopithikos@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:48:33 +0300 Subject: [PATCH] some stuff I missed --- common/casus_belli_types/00_civil_war.txt | 3 + common/casus_belli_types/00_dejure_war.txt | 23 + common/casus_belli_types/00_invasion_war.txt | 48 ++ common/casus_belli_types/00_religious_war.txt | 8 +- common/culture/eras/00_culture_eras.txt | 30 +- .../innovations/00_fp3_innovations.txt | 66 -- .../innovations/01_fp1_innovations.txt | 5 +- .../traditions/00_combat_traditions.txt | 8 + .../traditions/00_regional_traditions.txt | 1 - .../traditions/00_ritual_traditions.txt | 2 +- .../traditions/00_societal_traditions.txt | 10 +- .../culture/traditions/01_fp1_traditions.txt | 4 + .../culture/traditions/03_fp2_traditions.txt | 82 +- .../culture/traditions/03_fp3_traditions.txt | 33 +- .../culture/traditions/04_ep2_traditions.txt | 95 --- .../traditions/wc_realm_traditions.txt | 12 + ...lective_successions_scripted_modifiers.txt | 12 +- .../00_faction_modifiers.txt | 705 +++++++++++++++++- .../00_marriage_scripted_modifiers.txt | 2 +- .../00_religion_scripted_modifiers.txt | 40 +- 20 files changed, 901 insertions(+), 288 deletions(-) delete mode 100644 common/culture/innovations/00_fp3_innovations.txt delete mode 100644 common/culture/traditions/04_ep2_traditions.txt diff --git a/common/casus_belli_types/00_civil_war.txt b/common/casus_belli_types/00_civil_war.txt index 9fa031c12e..940f0d4bf3 100644 --- a/common/casus_belli_types/00_civil_war.txt +++ b/common/casus_belli_types/00_civil_war.txt @@ -1664,6 +1664,9 @@ independence_war = { # } #} + # LEGITIMACY FROM LOSING FACTION WAR + faction_war_end_defeat_legitimacy_effect = yes + resolve_title_and_vassal_change = scope:change } diff --git a/common/casus_belli_types/00_dejure_war.txt b/common/casus_belli_types/00_dejure_war.txt index 1f1cda8066..0d2d3796c0 100644 --- a/common/casus_belli_types/00_dejure_war.txt +++ b/common/casus_belli_types/00_dejure_war.txt @@ -9,6 +9,9 @@ has_innovation = innovation_divine_right } } + NOT = { + government_has_flag = government_is_landless_adventurer + } } allowed_against_character = { @@ -637,6 +640,26 @@ individual_duchy_de_jure_cb = { } } } + scope:target = { + trigger_if = { + limit = { + scope:attacker = { + is_ai = yes + } + } + any_in_de_jure_hierarchy = { + continue = { tier > tier_county } + count >= 2 + tier = tier_county + holder ?= { + OR = { + this = scope:defender + is_vassal_or_below_of = scope:defender + } + } + } + } + } } cost = { diff --git a/common/casus_belli_types/00_invasion_war.txt b/common/casus_belli_types/00_invasion_war.txt index db479c31ac..28e0c7e6f6 100644 --- a/common/casus_belli_types/00_invasion_war.txt +++ b/common/casus_belli_types/00_invasion_war.txt @@ -1497,6 +1497,54 @@ mongol_realm_invasion_war = { } } + show_as_tooltip = { + every_in_list = { + list = target_titles + if = { + limit = { + scope:defender.primary_title.tier >= scope:attacker.primary_title.tier + } + custom_tooltip = invasion_title_transfer_tt + custom_tooltip = invasion_title_transfer_2_tt + } + every_in_de_jure_hierarchy = { + limit = { + holder.top_liege = scope:defender + } + change_title_holder = { + holder = scope:attacker + change = scope:change + } + } + } + scope:defender = { + every_sub_realm_county = { + limit = { + county_controller = scope:attacker + } + change_title_holder = { + holder = scope:attacker + change = scope:change + } + } + # Vassal transfer tooltip for display + every_vassal = { + limit = { + primary_title = { + any_this_title_or_de_jure_above = { + is_in_list = target_titles + } + } + } + custom = invasion_vassal_transfer_tt + change_liege = { + liege = scope:attacker + change = scope:change + } + } + } + } + # Most of the title transfers are handled here setup_invasion_cb = { titles = target_titles diff --git a/common/casus_belli_types/00_religious_war.txt b/common/casus_belli_types/00_religious_war.txt index 4292d888a5..b3bfb0d16c 100644 --- a/common/casus_belli_types/00_religious_war.txt +++ b/common/casus_belli_types/00_religious_war.txt @@ -1138,10 +1138,10 @@ major_religious_war = { } } } - piety_level >= 3 + piety_level >= 2 } trigger_else = { - piety_level >= 4 + piety_level >= 3 } } trigger_if = { @@ -1915,10 +1915,6 @@ flowery_war_cb = { group = religious_disorganised ai_only_against_neighbors = yes allow_hostages = no - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 # Root is the title # scope:attacker is the attacker diff --git a/common/culture/eras/00_culture_eras.txt b/common/culture/eras/00_culture_eras.txt index e514ffa27b..cde0fb7d44 100644 --- a/common/culture/eras/00_culture_eras.txt +++ b/common/culture/eras/00_culture_eras.txt @@ -19,11 +19,11 @@ culture_era_early_medieval = { # Cultural ## Longbowmen - #maa_upgrade = { - # men_at_arms = longbowmen - # damage = 8 - # toughness = 2 - #} + maa_upgrade = { + men_at_arms = longbowmen + damage = 10 + toughness = 2 + } # Accolade ## Accolade Archers @@ -73,11 +73,11 @@ culture_era_high_medieval = { # Cultural ## Longbowmen - #maa_upgrade = { - # men_at_arms = longbowmen - # damage = 8 - # toughness = 2 - #} + maa_upgrade = { + men_at_arms = longbowmen + damage = 10 + toughness = 2 + } # Accolade ## Accolade Archers @@ -150,11 +150,11 @@ culture_era_late_medieval = { # Cultural ## Longbowmen - #maa_upgrade = { - # men_at_arms = longbowmen - # damage = 8 - # toughness = 2 - #} + maa_upgrade = { + men_at_arms = longbowmen + damage = 10 + toughness = 2 + } # Accolade ## Accolade Archers diff --git a/common/culture/innovations/00_fp3_innovations.txt b/common/culture/innovations/00_fp3_innovations.txt deleted file mode 100644 index 70c1c9aa0a..0000000000 --- a/common/culture/innovations/00_fp3_innovations.txt +++ /dev/null @@ -1,66 +0,0 @@ -#### Local Types #### -@administration_1 = "gfx/interface/icons/culture_innovations/innovation_administration_01.dds" -@administration_2 = "gfx/interface/icons/culture_innovations/innovation_administration_02.dds" -@administration_3 = "gfx/interface/icons/culture_innovations/innovation_administration_03.dds" -@civil_construction_1 = "gfx/interface/icons/culture_innovations/innovation_civil_construction_01.dds" -@civil_construction_2 = "gfx/interface/icons/culture_innovations/innovation_civil_construction_02.dds" -@leadership_1 = "gfx/interface/icons/culture_innovations/innovation_leadership_01.dds" -@leadership_2 = "gfx/interface/icons/culture_innovations/innovation_leadership_02.dds" -@raised_banner = "gfx/interface/icons/culture_innovations/innovation_raised_banner.dds" -@fortifications = "gfx/interface/icons/culture_innovations/innovation_fortifications.dds" -@siege_weapons = "gfx/interface/icons/culture_innovations/innovation_siege_weapons.dds" -@levy_building = "gfx/interface/icons/culture_innovations/innovation_levy_building.dds" -@maa_01 = "gfx/interface/icons/culture_innovations/innovation_maa_01.dds" -@maa_02 = "gfx/interface/icons/culture_innovations/innovation_maa_02.dds" -@weapons_and_armor_01 = "gfx/interface/icons/culture_innovations/innovation_weapons_and_armor_01.dds" -@weapons_and_armor_02 = "gfx/interface/icons/culture_innovations/innovation_weapons_and_armor_02.dds" -@knight = "gfx/interface/icons/culture_innovations/innovation_knight.dds" -@hird = "gfx/interface/icons/culture_innovations/innovation_hird.dds" -@longboats = "gfx/interface/icons/culture_innovations/innovation_longboats.dds" -@majesty_01 = "gfx/interface/icons/culture_innovations/innovation_majesty_01.dds" -@majesty_02 = "gfx/interface/icons/culture_innovations/innovation_majesty_02.dds" -@majesty_03 = "gfx/interface/icons/culture_innovations/innovation_majesty_03.dds" -@nobility_01 = "gfx/interface/icons/culture_innovations/innovation_nobility_01.dds" -@nobility_02 = "gfx/interface/icons/culture_innovations/innovation_nobility_02.dds" -@nobility_03 = "gfx/interface/icons/culture_innovations/innovation_nobility_03.dds" -@nobility_04 = "gfx/interface/icons/culture_innovations/innovation_nobility_04.dds" -@misc_inventions = "gfx/interface/icons/culture_innovations/innovation_misc_inventions.dds" - -@camel = "gfx/interface/icons/culture_innovations/innovation_camel.dds" -@elephant = "gfx/interface/icons/culture_innovations/innovation_elephant.dds" -@special_maa_01 = "gfx/interface/icons/culture_innovations/innovation_special_maa_01.dds" -@special_maa_02 = "gfx/interface/icons/culture_innovations/innovation_special_maa_02.dds" - -# Innovations that can only be discovered by a court scholar -fp3_innovation_mural_sextant = { - group = culture_group_regional - culture_era = culture_era_early_medieval - icon = @misc_inventions - - potential = { - has_fp3_dlc_trigger = yes - has_innovation = fp3_innovation_mural_sextant - } - - character_modifier = { - monthly_learning_lifestyle_xp_gain_mult = 0.05 - character_capital_county_monthly_development_growth_add = 0.2 - } -} - -fp3_innovation_fritware = { - group = culture_group_regional - culture_era = culture_era_late_medieval - icon = @misc_inventions - - potential = { - has_fp3_dlc_trigger = yes - has_innovation = fp3_innovation_fritware - } - - character_modifier = { - domain_tax_mult = 0.05 - } - - custom = fp3_innovation_fritware_tooltip -} diff --git a/common/culture/innovations/01_fp1_innovations.txt b/common/culture/innovations/01_fp1_innovations.txt index d8e6945e93..6ab94f5395 100644 --- a/common/culture/innovations/01_fp1_innovations.txt +++ b/common/culture/innovations/01_fp1_innovations.txt @@ -42,7 +42,10 @@ innovation_varangian_adventurers = { has_fp1_dlc_trigger = yes # Warcraft - like_north_germanic_group_trigger = yes + OR = { + like_north_germanic_group_trigger = yes + like_norman_culture_trigger + } has_viking_adventurers_era_trigger = yes } diff --git a/common/culture/traditions/00_combat_traditions.txt b/common/culture/traditions/00_combat_traditions.txt index c6a5cefd80..870cf7207b 100644 --- a/common/culture/traditions/00_combat_traditions.txt +++ b/common/culture/traditions/00_combat_traditions.txt @@ -2293,6 +2293,14 @@ tradition_adaptive_skirmishing = { } multiply = 0.25 } + else_if = { + limit = { + scope:character ?= { + ai_has_warlike_personality = yes + } + } + multiply = 2 + } # Warcraft if = { limit = { diff --git a/common/culture/traditions/00_regional_traditions.txt b/common/culture/traditions/00_regional_traditions.txt index 3bc1f2f73c..5da42c739a 100644 --- a/common/culture/traditions/00_regional_traditions.txt +++ b/common/culture/traditions/00_regional_traditions.txt @@ -646,7 +646,6 @@ tradition_saharan_nomads = { } } } - can_pick = { any_culture_county = { title_province = { diff --git a/common/culture/traditions/00_ritual_traditions.txt b/common/culture/traditions/00_ritual_traditions.txt index ecb015bd66..eabb73d918 100644 --- a/common/culture/traditions/00_ritual_traditions.txt +++ b/common/culture/traditions/00_ritual_traditions.txt @@ -666,7 +666,7 @@ tradition_festivities = { limit = { # Warcraft NOR = { - scope:character = { + scope:character ?= { has_trait = lifestyle_reveler } has_cultural_tradition = tradition_life_is_just_a_joke diff --git a/common/culture/traditions/00_societal_traditions.txt b/common/culture/traditions/00_societal_traditions.txt index a3325eed1e..df38ff6421 100644 --- a/common/culture/traditions/00_societal_traditions.txt +++ b/common/culture/traditions/00_societal_traditions.txt @@ -209,7 +209,7 @@ tradition_chivalry = { } ai_will_do = { - value = 100 + value = 200 # Warcraft if = { limit = { @@ -874,7 +874,7 @@ tradition_vegetarianism = { } ai_will_do = { - value = 75 + value = 800 if = { limit = { # Warcraft @@ -2683,6 +2683,12 @@ tradition_practiced_pirates = { ai_will_do = { value = 100 + if = { + limit = { # Should be fairly rare for cultures outside of a Berber-like heritage + like_heritage_berber_trigger = yes + } + multiply = 5 + } if = { limit = { NOR = { diff --git a/common/culture/traditions/01_fp1_traditions.txt b/common/culture/traditions/01_fp1_traditions.txt index 670b15c43a..f7e61bbb0d 100644 --- a/common/culture/traditions/01_fp1_traditions.txt +++ b/common/culture/traditions/01_fp1_traditions.txt @@ -68,11 +68,15 @@ tradition_fp1_coastal_warriors = { strong_traits_more_common = yes trade_ports_stationed_maa_bonus = yes trade_ports_enabled_for_tribals = yes + unlock_voluntary_laampdom = yes + more_likely_to_be_laamps = yes } character_modifier = { sea_travel_danger = medium_sea_danger_reduction coastal_sea_travel_danger = medium_sea_danger_reduction + taiga_provisions_use_mult = -0.1 + forest_provisions_use_mult = -0.1 } cost = { diff --git a/common/culture/traditions/03_fp2_traditions.txt b/common/culture/traditions/03_fp2_traditions.txt index 19fe423836..6459be666a 100644 --- a/common/culture/traditions/03_fp2_traditions.txt +++ b/common/culture/traditions/03_fp2_traditions.txt @@ -1,5 +1,5 @@ ########################### -# FP2 CULTURAL TRADITIONS +# FP2 CULTURAL TRADITIONS ########################### ####################### @@ -14,14 +14,14 @@ tradition_fp2_state_ransoming = { 1 = western 4 = state_ransoming.dds } - + is_shown = { # DLC check. has_fp2_dlc_trigger = yes } # Anyone can take this. - + parameters = { knights_die_less_but_are_captured_more = yes characters_more_likely_to_be_captured_in_sieges = yes @@ -37,7 +37,7 @@ tradition_fp2_state_ransoming = { # Naturally, people are more keen to turn up to serve. levy_size = 0.1 } - + cost = { prestige = { # Base cost. @@ -81,45 +81,9 @@ tradition_fp2_state_ransoming = { multiply = tradition_replacement_cost_if_relevant } } - + ai_will_do = { value = 100 - - if = { - limit = { exists = culture_head } - culture_head = { - # Some traits make you want to codify this more... - if = { - limit = { has_trait = generous } - add = 25 - } - if = { - limit = { has_trait = compassionate } - add = 25 - } - if = { - limit = { has_trait = profligate } - add = 25 - } - if = { - limit = { has_trait = improvident } - add = 25 - } - # ... and others less. - if = { - limit = { has_trait = greedy } - add = -50 - } - if = { - limit = { has_trait = callous } - add = -25 - } - if = { - limit = { has_trait = sadistic } - add = -25 - } - } - } } } @@ -135,14 +99,14 @@ tradition_fp2_strategy_gamers = { 1 = western 4 = board_gamers.dds } - + is_shown = { # DLC check. has_fp2_dlc_trigger = yes } # Anyone can take this. - + parameters = { commanders_likelier_to_gain_commander_traits = yes may_challenge_to_board_games = yes @@ -154,7 +118,7 @@ tradition_fp2_strategy_gamers = { prowess = medium_skill_penalty martial = medium_skill_bonus } - + cost = { prestige = { # Base cost. @@ -195,14 +159,14 @@ tradition_fp2_strategy_gamers = { } } } - + multiply = tradition_replacement_cost_if_relevant } } - + ai_will_do = { value = 0 - + if = { limit = { exists = culture_head } culture_head = { @@ -220,7 +184,7 @@ tradition_fp2_strategy_gamers = { limit = { any_character_artifact = { has_variable = can_be_used_for_board_games } } - add = 25 + add = 100 } } } @@ -239,7 +203,7 @@ tradition_fp2_malleable_subjects = { 1 = mena 4 = malleable_subjects.dds } - + is_shown = { # DLC check. has_fp2_dlc_trigger = yes @@ -251,7 +215,7 @@ tradition_fp2_malleable_subjects = { has_cultural_pillar = heritage_goblin # End of Warcraft } - + parameters = { doesnt_care_about_culture_faith_in_factions = yes wants_to_learn_liege_language = yes @@ -294,11 +258,11 @@ tradition_fp2_malleable_subjects = { desc = not_egalitarian_or_courtly_desc } } - + multiply = tradition_replacement_cost_if_relevant } } - + ai_will_do = { value = 0 # Players might want this, but the AI never does. @@ -317,7 +281,7 @@ tradition_fp2_ritualised_friendship = { 1 = western 4 = ritualised_friendship.dds } - + is_shown = { # DLC check. #has_fp2_dlc_trigger = yes @@ -344,7 +308,7 @@ tradition_fp2_ritualised_friendship = { } # End of Warcraft } - + parameters = { automatic_befriend_access = yes may_propose_best_friendship = yes @@ -353,10 +317,10 @@ tradition_fp2_ritualised_friendship = { } character_modifier = { - scheme_power_against_friend_add = 20 - scheme_power_against_best_friend_add = 40 + scheme_phase_duration_against_friend_add = 20 + scheme_phase_duration_against_best_friend_add = 40 } - + cost = { prestige = { # Base cost. @@ -384,11 +348,11 @@ tradition_fp2_ritualised_friendship = { } } } - + multiply = tradition_replacement_cost_if_relevant } } - + ai_will_do = { value = 0 diff --git a/common/culture/traditions/03_fp3_traditions.txt b/common/culture/traditions/03_fp3_traditions.txt index 520e3738c6..396b28c118 100644 --- a/common/culture/traditions/03_fp3_traditions.txt +++ b/common/culture/traditions/03_fp3_traditions.txt @@ -50,6 +50,7 @@ tradition_fp3_frontier_warriors = { scope:character = { OR = { has_culture = culture:blood_elf + has_culture = culture:arathorian has_faith = faith:scarlet_light } } @@ -66,8 +67,6 @@ tradition_fp3_frontier_warriors = { character_modifier = { mercenary_hire_cost_mult = -0.10 movement_speed = 0.05 - tolerance_advantage_mod = 5 - raid_speed = 0.3 } cost = { @@ -254,7 +253,7 @@ tradition_fp3_irrigation_experts = { } ai_will_do = { - value = 100 + value = 400 if = { limit = { NOT = { #if the realm isn't very dry, the AI won't pick this @@ -274,6 +273,20 @@ tradition_fp3_irrigation_experts = { } multiply = 0 } + else_if = { + limit = { + any_culture_county = { + percent >= 0.6 + any_county_province = { + OR = { + terrain = drylands + terrain = desert + } + } + } + } + multiply = 4 + } } } @@ -382,7 +395,7 @@ tradition_fp3_beacon_of_learning = { # Offshoot of tradition_philosopher_culture } ai_will_do = { - value = 33 + value = 200 if = { limit = { NOR = { @@ -490,7 +503,7 @@ tradition_fp3_enlightened_magnates = { } ai_will_do = { - value = 26 + value = 125 if = { limit = { # AI should avoid stacking traditions for courtly court positions culture_tradition:tradition_music_theory = { is_in_list = traits } @@ -627,8 +640,8 @@ tradition_fp3_pragmatic_creed = { commanders_likelier_to_gain_commander_traits = yes } character_modifier = { - skirmishers_toughness_mult = 0.15 - skirmishers_maintenance_mult = -0.2 + skirmishers_toughness_mult = 0.10 + skirmishers_maintenance_mult = -0.15 heavy_cavalry_maintenance_mult = 0.15 light_cavalry_maintenance_mult = 0.15 } @@ -677,7 +690,7 @@ tradition_fp3_pragmatic_creed = { } ai_will_do = { - value = 33 + value = 100 if = { limit = { OR = { # Don't pick this if the culture have Light Cavalry or Heavy Cavalry MaAs @@ -767,7 +780,7 @@ tradition_fp3_fierce_independence = { } ai_will_do = { - value = 100 + value = 400 if = { limit = { NOR = { @@ -778,4 +791,4 @@ tradition_fp3_fierce_independence = { multiply = 0.5 } } -} \ No newline at end of file +} diff --git a/common/culture/traditions/04_ep2_traditions.txt b/common/culture/traditions/04_ep2_traditions.txt deleted file mode 100644 index 32365dbd88..0000000000 --- a/common/culture/traditions/04_ep2_traditions.txt +++ /dev/null @@ -1,95 +0,0 @@ -########################### -# EP2 CULTURAL TRADITIONS -########################### - -####################### -# Generic -####################### - -tradition_ep2_avid_falconers = { - category = societal - - layers = { - 0 = diplo - 1 = mena - 4 = hunter.dds - } - - is_shown = { - # DLC check. - has_dlc_feature = tours_and_tournaments - } - - can_pick = { - culture_not_pacifistic_trigger = yes - custom_tooltip = { - text = cannot_have_tradition_vegetarianism - NOT = { culture_tradition:tradition_vegetarianism = { is_in_list = traits } } - } - } - - parameters = { - more_frequent_hunts = yes - hunting_traits_more_valued = yes - falconer_traits_more_common = yes - always_unlock_legendary_hunting_lodge = yes - } - - province_modifier = { - stationed_maa_pursuit_mult = 0.15 - } - - cost = { - prestige = { - # Base cost. - add = { - value = tradition_base_cost - desc = BASE - format = "BASE_VALUE_FORMAT" - } - # Ethos requirement. - if = { - limit = { - NOR = { - culture_pillar:ethos_courtly = { is_in_list = traits } - culture_pillar:ethos_stoic = { is_in_list = traits } - } - } - add = { - value = tradition_incompatible_ethos_penalty - desc = not_stoic_or_courtly_desc - } - } - # General replacement stuff. - multiply = tradition_replacement_cost_if_relevant - } - } - - ai_will_do = { - value = 100 - - if = { - limit = { exists = culture_head } - culture_head = { - # Some traits make you want to codify this more... - if = { - limit = { has_trait = arrogant } - add = 25 - } - if = { - limit = { has_trait = diligent } - add = 25 - } - # ... and others less. - if = { - limit = { has_trait = lazy } - add = -50 - } - if = { - limit = { has_trait = humble } - add = -25 - } - } - } - } -} diff --git a/common/culture/traditions/wc_realm_traditions.txt b/common/culture/traditions/wc_realm_traditions.txt index a9eb12af09..83e67fb22f 100644 --- a/common/culture/traditions/wc_realm_traditions.txt +++ b/common/culture/traditions/wc_realm_traditions.txt @@ -120,5 +120,17 @@ tradition_zandalari_cities = { } multiply = 0.25 } + else_if = { + limit = { + any_culture_county = { + percent >= 0.6 + any_county_province = { + terrain = wetlands + } + } + } + multiply = 8 + } + } } diff --git a/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt b/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt index c7e8177678..55d6833bf5 100644 --- a/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt @@ -838,7 +838,15 @@ elector_voting_pattern_circumstances_feudal_elective_modifier = { add = 30 desc = tooltip_feudal_elector_vote_strong_claimant NOT = { this = scope:candidate } - scope:candidate = { has_strong_claim_on = scope:title } + scope:candidate = { + OR = { + has_strong_claim_on = scope:title + AND = { + NOT = { has_trait = bastard } + is_child_of = scope:holder + } + } + } } modifier = { add = 15 @@ -2276,7 +2284,7 @@ elector_voting_pattern_traits_feudal_elective_modifier = { # Warcraft faith = { like_islam_religion_trigger = yes } } - scope:candidate = { has_trait = eunuch } + scope:candidate = { is_eunuch_trigger = yes } add = -150 } modifier = { #Praised for being Giant diff --git a/common/scripted_modifiers/00_faction_modifiers.txt b/common/scripted_modifiers/00_faction_modifiers.txt index c2cb86f117..48904c4cae 100644 --- a/common/scripted_modifiers/00_faction_modifiers.txt +++ b/common/scripted_modifiers/00_faction_modifiers.txt @@ -2255,18 +2255,16 @@ claimant_faction_modifiers = { } } add = { - value = 0 - if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = increased_factions } } - add = 10 - } - else_if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = very_increased_factions } } - add = 20 - } - else_if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = massively_increased_factions } } - add = 30 + value = 10 + $FACTION_TARGET$ = { + if = { + limit = { has_legitimacy_flag = very_increased_factions } + add = 10 + } + else_if = { + limit = { has_legitimacy_flag = massively_increased_factions } + add = 20 + } } } } @@ -2276,28 +2274,25 @@ claimant_faction_modifiers = { desc = "FACTION_REASON_HIGH_LEGITIMACY" $FACTION_TARGET$ = { OR = { - has_legitimacy_flag = increased_factions - has_legitimacy_flag = very_increased_factions - has_legitimacy_flag = massively_increased_factions + has_legitimacy_flag = reduced_factions + has_legitimacy_flag = very_reduced_factions + has_legitimacy_flag = extra_reduced_factions } } add = { - value = 0 - if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = reduced_factions } } - add = -10 - } - else_if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = very_reduced_factions } } - add = -20 - } - else_if = { - limit = { $FACTION_TARGET$ = { has_legitimacy_flag = extra_reduced_factions } } - add = -30 + value = -10 + $FACTION_TARGET$ = { + if = { + limit = { has_legitimacy_flag = very_reduced_factions } + add = -10 + } + else_if = { + limit = { has_legitimacy_flag = extra_reduced_factions } + add = -20 + } } } } -} # struggle_faction_modifiers = { Warcraft - not needed but kept for parity # # Struggle Modifiers. @@ -2344,3 +2339,657 @@ claimant_faction_modifiers = { # } # } # } + +join_faction_stacking_modifiers = { + ########################## + # Faction 'Stacking' Factors, attempts to cluster AI rulers into several powerful factions instead of many weak ones. + modifier = { + desc = "FACTION_REASON_POWER_MINIMAL" + scope:faction.faction_power < scope:faction.faction_power_minimal + liege = { + any_targeting_faction = { + faction_is_type = independence_faction + faction_power >= faction_power_minimal + } + } + factor = faction_weight_factor_power_minimal_penalty + } + modifier = { + desc = "FACTION_REASON_POWER_HALFWAY_THRESHOLD" + scope:faction.faction_power >= scope:faction.faction_power_halfway_threshold + scope:faction.faction_power < scope:faction.faction_power_pushing_threshold + factor = faction_weight_factor_power_halfway_threshold + } + modifier = { + desc = "FACTION_REASON_POWER_PUSHING_THRESHOLD" + scope:faction.faction_power >= scope:faction.faction_power_pushing_threshold + scope:faction.faction_power < scope:faction.faction_power_threshold + factor = faction_weight_factor_power_pushing_threshold + } + modifier = { + desc = "FACTION_REASON_POWER_THRESHOLD" + scope:faction.faction_power >= scope:faction.faction_power_threshold + factor = faction_weight_factor_power_exceeds_threshold + } +} + +# Modifiers specific to Admin realms +admin_faction_modifiers = { + # Reign duration + modifier = { # Encourage factions during short reigns + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$.primary_title.title_held_years > 5 + add = { + subtract = $FACTION_TARGET$.primary_title.title_held_years + add = 5 + multiply = 5 + } + desc = FACTION_REASON_ADMIN_SHORT_REIGN_REASON + } + # Discourage factions of the same type as an existing much stronger faction + modifier = { + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + exists = joined_faction + joined_faction = { save_temporary_scope_as = joined_faction_temp } + $FACTION_TARGET$ = { + any_targeting_faction = { + NOT = { this = scope:joined_faction_temp } + faction_is_type = $FACTION_TYPE$ + faction_power > scope:joined_faction_temp.faction_power_existing_threshold_value + } + } + factor = -0.5 + desc = FACTION_REASON_ADMIN_EXISTING_STRONGER_FACTION_OF_SAME_TYPE_REASON + } + # Poor Liege Skill + modifier = { + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$.sum_of_all_skills_and_prowess_value < 30 + add = { + value = 30 + subtract = $FACTION_TARGET$.sum_of_all_skills_and_prowess_value + min = 0 + multiply = 2 + } + desc = FACTION_REASON_ADMIN_LIEGE_POOR_SKILL + } + # Negative Traits + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = deviant + any_secret = { secret_type = secret_deviant } + } + $FACTION_TARGET$ = { + has_trait = deviant + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_TARGET$ } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_DEVIANT_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = incestuous + any_secret = { secret_type = secret_incest } + } + $FACTION_TARGET$ = { + has_trait = incestuous + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_TARGET$ } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_INCESTUOUS_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = sodomite + any_secret = { secret_type = secret_homosexual } + } + $FACTION_TARGET$ = { + has_trait = sodomite + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_SODOMITE_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = cannibal + any_secret = { secret_type = secret_cannibal } + } + $FACTION_TARGET$ = { + has_trait = cannibal + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_CANNIBAL_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { has_trait = kinslayer } + $FACTION_TARGET$ = { + has_trait = kinslayer_1 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = kinslayer_1 FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_KINSLAYER_1_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { has_trait = kinslayer } + $FACTION_TARGET$ = { + has_trait = kinslayer_2 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = kinslayer_2 FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 30 + desc = FACTION_REASON_ADMIN_LIEGE_KINSLAYER_2_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { has_trait = kinslayer } + $FACTION_TARGET$ = { + has_trait = kinslayer_3 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = kinslayer_3 FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 40 + desc = FACTION_REASON_ADMIN_LIEGE_KINSLAYER_3_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = witch + any_secret = { secret_type = secret_witch } + } + $FACTION_TARGET$ = { + has_trait = witch + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_WITCH_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOR = { + has_trait = adulterer + any_secret = { secret_type = secret_lover } + } + $FACTION_TARGET$ = { + has_trait = adulterer + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_ADULTERER_AND_CRIMINAL + } + modifier = { # Criminal Liege's are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { has_trait = fornicator } + $FACTION_TARGET$ = { + has_trait = fornicator + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = top_liege.primary_title.state_faith GENDER_CHARACTER = root } + } + add = 20 + desc = FACTION_REASON_ADMIN_LIEGE_FORNICATOR_AND_CRIMINAL + } +} + +# Modifiers specific to claimant factions in Admin realms +admin_claimant_faction_modifiers = { + # State Faith + modifier = { # State Faith is preferred if Liege does not follow it + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { faith = $FACTION_TARGET$.faith } + faith = $FACTION_CLAIMANT$.faith + $FACTION_TARGET$.primary_title.state_faith ?= faith + add = 75 + desc = FACTION_REASON_ADMIN_CLAIMANT_STATE_FAITH + } + modifier = { # Don't push a claimaint who doesn't follow the State Faith, especially when a zealot + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$.primary_title.state_faith ?= faith + $FACTION_CLAIMANT$.faith != faith + add = { + value = -40 + if = { + limit = { has_vassal_stance = zealot } + multiply = 2 + } + } + desc = FACTION_REASON_ADMIN_CLAIMANT_NOT_STATE_FAITH + } + # Stances + modifier = { # Courtly want diplomatic Lieges + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + has_vassal_stance = courtly + add = { + value = $FACTION_CLAIMANT$.diplomacy + subtract = $FACTION_TARGET$.diplomacy + multiply = 5 + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = gregarious } + NOT = { $FACTION_TARGET$ = { has_trait = gregarious } } + } + add = 10 + } + else_if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = shy } + NOT = { $FACTION_TARGET$ = { has_trait = shy } } + } + add = -10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = august } + NOT = { $FACTION_TARGET$ = { has_trait = august } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = family_first } + NOT = { $FACTION_TARGET$ = { has_trait = family_first } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = diplomat } + NOT = { $FACTION_TARGET$ = { has_trait = diplomat } } + } + add = 10 + } + } + desc = FACTION_REASON_ADMIN_COURTLY + } + modifier = { # Glory Hounds want martial Lieges + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + has_vassal_stance = glory_hound + add = { + value = $FACTION_CLAIMANT$.martial + subtract = $FACTION_TARGET$.martial + multiply = 5 + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = brave } + NOT = { $FACTION_TARGET$ = { has_trait = brave } } + } + add = 10 + } + else_if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = craven } + NOT = { $FACTION_TARGET$ = { has_trait = craven } } + } + add = -10 + } + add = { + value = $FACTION_CLAIMANT$.number_of_commander_traits + subtract = $FACTION_TARGET$.number_of_commander_traits + multiply = 5 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = gallant } + NOT = { $FACTION_TARGET$ = { has_trait = gallant } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = overseer } + NOT = { $FACTION_TARGET$ = { has_trait = overseer } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = strategist } + NOT = { $FACTION_TARGET$ = { has_trait = strategist } } + } + add = 10 + } + } + desc = FACTION_REASON_ADMIN_GLORY_HOUND + } + modifier = { # Parochial want stewardly Lieges + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + has_vassal_stance = parochial + add = { + value = $FACTION_CLAIMANT$.stewardship + subtract = $FACTION_TARGET$.stewardship + multiply = 5 + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = zealous } + NOT = { $FACTION_TARGET$ = { has_trait = zealous } } + } + add = 10 + } + else_if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = cynical } + NOT = { $FACTION_TARGET$ = { has_trait = cynical } } + } + add = -10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = architect } + NOT = { $FACTION_TARGET$ = { has_trait = architect } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = administrator } + NOT = { $FACTION_TARGET$ = { has_trait = administrator } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = avaricious } + NOT = { $FACTION_TARGET$ = { has_trait = avaricious } } + } + add = 10 + } + } + desc = FACTION_REASON_ADMIN_PAROCHIAL + } + modifier = { # Zealots want learned Lieges + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + has_vassal_stance = zealot + faith = $FACTION_CLAIMANT$.faith + faith = $FACTION_TARGET$.faith # Dislike of other faiths handled already + add = { + value = $FACTION_CLAIMANT$.learning + subtract = $FACTION_TARGET$.learning + multiply = 2 + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = diligent } + NOT = { $FACTION_TARGET$ = { has_trait = diligent } } + } + add = 10 + } + else_if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = lazy } + NOT = { $FACTION_TARGET$ = { has_trait = lazy } } + } + add = -10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = whole_of_body } + NOT = { $FACTION_TARGET$ = { has_trait = whole_of_body } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = scholar } + NOT = { $FACTION_TARGET$ = { has_trait = scholar } } + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = theologian } + NOT = { $FACTION_TARGET$ = { has_trait = theologian } } + } + add = 10 + } + } + desc = FACTION_REASON_ADMIN_ZEALOT + } + modifier = { # Minorities want representative Lieges + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + has_vassal_stance = minority + OR = { + AND = { + culture != $FACTION_TARGET$.culture + culture = $FACTION_CLAIMANT$.culture + } + AND = { + faith != $FACTION_TARGET$.faith + faith = $FACTION_CLAIMANT$.faith + } + } + add = { + value = 10 + if = { + limit = { + culture = $FACTION_CLAIMANT$.culture + faith = $FACTION_CLAIMANT$.faith + } + add = 10 + } + if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = just } + NOT = { $FACTION_TARGET$ = { has_trait = just } } + } + add = 10 + } + else_if = { + limit = { + $FACTION_CLAIMANT$ = { has_trait = arbitrary } + NOT = { $FACTION_TARGET$ = { has_trait = arbitrary } } + } + add = -10 + } + } + desc = FACTION_REASON_ADMIN_MINORITY + } + # Skill Relative + modifier = { # Directly compare the governor efficiency of liege to claimant + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + NOT = { this = $FACTION_CLAIMANT$ } + add = { + value = $FACTION_CLAIMANT$.governor_efficiency + subtract = $FACTION_TARGET$.governor_efficiency + multiply = 200 # Let's make sure this has a fairly high impact + } + desc = FACTION_REASON_ADMIN_RELATIVE_SKILL + } + # Family Reasons + modifier = { # Don't support a claimant who doesn't belong to a powerful family (unless same house as claimant) + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + exists = $FACTION_CLAIMANT$.house + NOT = { house ?= $FACTION_CLAIMANT$.house } + $FACTION_CLAIMANT$.house = { is_powerful_family = no } + add = -30 + desc = FACTION_REASON_ADMIN_POWERFUL_FAMILY # Needs better loc + } + modifier = { # Dominant Family members are preferred Claimants + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + exists = $FACTION_CLAIMANT$.house + $FACTION_CLAIMANT$.house = { is_dominant_family = yes } + add = 20 + desc = FACTION_REASON_ADMIN_DOMINANT_FAMILY + } + modifier = { # Less likely to support other houses when their own house is powerful/dominant + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + exists = $FACTION_CLAIMANT$.house + house ?= { + OR = { + is_powerful_family = yes + is_dominant_family = yes + } + NOT = { this = $FACTION_CLAIMANT$.house } + } + add = -20 + desc = MY_HOUSE_IS_POWERFUL # Needs better loc + } + modifier = { # Less likely to support other houses when their own house is on the throne + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + exists = $FACTION_CLAIMANT$.house + exists = $FACTION_TARGET$.house + house ?= { + NOT = { this = $FACTION_CLAIMANT$.house } + this = $FACTION_TARGET$.house + } + add = -20 + desc = FACTION_REASON_CLAIMANT_HOUSE # Needs better loc + } + # Negative Traits + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = deviant + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_DEVIANT_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = incestuous + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_INCESTUOUS_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = sodomite + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_SODOMITE_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = cannibal + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_CANNIBAL_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = kinslayer_1 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -10 + desc = FACTION_REASON_ADMIN_CLAIMANT_KINSLAYER_1_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = kinslayer_2 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_KINSLAYER_2_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = kinslayer_3 + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -30 + desc = FACTION_REASON_ADMIN_CLAIMANT_KINSLAYER_3_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = witch + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_WITCH_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = adulterer + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_ADULTERER_AND_CRIMINAL + } + modifier = { # Criminal Claimants are not desirable + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_CLAIMANT$ = { + has_trait = fornicator + exists = top_liege.primary_title.state_faith + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = $FACTION_TARGET$.primary_title.state_faith GENDER_CHARACTER = $FACTION_CLAIMANT$ } + } + add = -20 + desc = FACTION_REASON_ADMIN_CLAIMANT_FORNICATOR_AND_CRIMINAL + } + # Born in Purple + modifier = { # Prefer a claimant who is born in the purple when the liege is not + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$.primary_title = title:e_byzantium + $FACTION_CLAIMANT$ = { has_trait = born_in_the_purple } + NOT = { + $FACTION_TARGET$ = { has_trait = born_in_the_purple } + } + add = 25 + desc = FACTION_REASON_ADMIN_BORN_IN_PURPLE + } + ## Unpreferred heir + #modifier = { # Admin realms have extra trouble with Unpreferred Heirs + # ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + # culture = { has_cultural_parameter = byzantine_faction_preffered_claimants } + # was_preferred_heir = $FACTION_TARGET$ + # factor = 1.2 + # desc = "FACTION_REASON_BYZANTINE" + #} + # Co-Emperor + modifier = { # Making Claimant your Co-Emperor defuses the faction somewhat + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$ = { + has_diarchy_type = co_emperorship + has_active_diarchy = yes + diarch = $FACTION_CLAIMANT$ + } + factor = 0.5 + desc = "FACTION_REASON_ADMIN_CLAIMANT_CO_EMPEROR" + } + modifier = { # Making Claimant your Co-Emperor defuses the faction somewhat + ep3_admin_faction_trigger = { FACTION_TARGET = $FACTION_TARGET$ } # Required for dlc context + $FACTION_TARGET$ = { + has_diarchy_type = junior_emperorship + has_active_diarchy = yes + diarch = $FACTION_CLAIMANT$ + } + factor = 0.5 + desc = "FACTION_REASON_ADMIN_CLAIMANT_JUNIOR_EMPEROR" + } +} diff --git a/common/scripted_modifiers/00_marriage_scripted_modifiers.txt b/common/scripted_modifiers/00_marriage_scripted_modifiers.txt index 2e5028dcfc..2bfd6800f9 100644 --- a/common/scripted_modifiers/00_marriage_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_marriage_scripted_modifiers.txt @@ -1798,7 +1798,7 @@ desc = EVENT_BONUS_INTERMARRYING_ADMIN } ################ - # STRUGGLES # + # STRUGGLES # ################ # modifier = { # Warcraft - commented out because it's throwing an error # add = 25 diff --git a/common/scripted_modifiers/00_religion_scripted_modifiers.txt b/common/scripted_modifiers/00_religion_scripted_modifiers.txt index 4a165dd2fb..c2250f94c2 100644 --- a/common/scripted_modifiers/00_religion_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_religion_scripted_modifiers.txt @@ -258,7 +258,45 @@ religion_demand_conversion_default_modifier = { } desc = ASK_FOR_CONVERSION_RECIPIENT_IS_PIOUS } - + + modifier = { + add = -150 + scope:recipient= { + government_allows = administrative + top_liege = { + government_allows = administrative + government_allows = state_faith + exists = primary_title.state_faith + } + faith = top_liege.primary_title.state_faith + } + desc = EP3_STATE_FAITH_CONVERSION + } + modifier = { + add = 100 + scope:recipient= { + government_allows = administrative + top_liege = { + government_allows = administrative + government_allows = state_faith + exists = primary_title.state_faith + } + faith != top_liege.primary_title.state_faith + } + desc = EP3_STATE_FAITH_CONVERSION_NEG + } + modifier = { + add = 25 + exists = scope:influence_send_option + scope:influence_send_option = yes + desc = INFLUENCE_INTERACTION_ACCEPTANCE_SEND_OPTION + } + modifier = { + desc = ASK_FOR_CONVERSION_RECIPIENT_WILL_NOT_ACCEPT + add = -1500 + scope:recipient = { + has_character_flag = ai_will_not_convert + } # Warcraft modifier = { add = -1000