diff --git a/Warcraft-Guardians-of-Azeroth-2.mod b/Warcraft-Guardians-of-Azeroth-2.mod index 74efd61416..62b76fb432 100644 --- a/Warcraft-Guardians-of-Azeroth-2.mod +++ b/Warcraft-Guardians-of-Azeroth-2.mod @@ -1,5 +1,5 @@ name="Warcraft: Guardians of Azeroth Reforged (Release Alpha)" -version="0.3.2" +version="0.4" picture="thumbnail.png" tags={ "Total Conversion" @@ -17,6 +17,7 @@ replace_path="history/characters" replace_path="history/cultures" replace_path="history/province_mapping" replace_path="history/provinces" +replace_path="history/struggles" replace_path="history/titles" replace_path="history/wars" replace_path="common/culture/cultures" @@ -26,5 +27,5 @@ replace_path="common/religion/religion_families" replace_path="common/religion/holy_sites" replace_path="common/bookmark_portraits" replace_path="common/bookmarks" -supported_version="1.10.2" +supported_version="1.11.1" path="mod/Warcraft-Guardians-of-Azeroth-2" diff --git a/common/accolade_types/04_ep2_common_attributes.txt b/common/accolade_types/04_ep2_common_attributes.txt index a77f4b8d93..d2a0f827b5 100644 --- a/common/accolade_types/04_ep2_common_attributes.txt +++ b/common/accolade_types/04_ep2_common_attributes.txt @@ -226,7 +226,7 @@ marauder_attribute = { uncontrolled_province_advantage = 5 } liege_modifier = { - monthly_prestige_gain_per_dread_mult = 0.005 + monthly_prestige_gain_per_dread_mult = 0.003 } } 2100 = { # rank 6 @@ -234,7 +234,7 @@ marauder_attribute = { uncontrolled_province_advantage = 5 } liege_modifier = { - monthly_prestige_gain_per_dread_mult = 0.005 + monthly_prestige_gain_per_dread_mult = 0.003 } } } diff --git a/common/achievements/fp3_achievements.txt b/common/achievements/fp3_achievements.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/achievements/fp3_achievements.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/achievements/msgrdk_achievements.json b/common/achievements/msgrdk_achievements.json index 2e05620ee5..e98b640862 100644 --- a/common/achievements/msgrdk_achievements.json +++ b/common/achievements/msgrdk_achievements.json @@ -387,6 +387,126 @@ { "pdx_id": "fp2_el_cid_achievement", "xbla_id": "97" - } + }, + { + "pdx_id": "ep2_01_the_grandest_tour_achievement", + "xbla_id": "98" + }, + { + "pdx_id": "ep2_02_your_eternal_reward_achievement", + "xbla_id": "99" + }, + { + "pdx_id": "ep2_03_imperial_march_achievement", + "xbla_id": "100" + }, + { + "pdx_id": "ep2_04_black_dinner_achievement", + "xbla_id": "101" + }, + { + "pdx_id": "ep2_05_there_and_back_again_achievement", + "xbla_id": "102" + }, + { + "pdx_id": "ep2_06_the_very_best_achievement", + "xbla_id": "103" + }, + { + "pdx_id": "ep2_07_like_no_one_ever_was_achievement", + "xbla_id": "104" + }, + { + "pdx_id": "ep2_08_a_thousand_and_one_nights_achievement", + "xbla_id": "105" + }, + { + "pdx_id": "ep2_09_a_knights_tale_achievement", + "xbla_id": "106" + }, + { + "pdx_id": "ep2_10_hunting_accident_achievement", + "xbla_id": "107" + }, + { + "pdx_id": "ep2_11_lions_and_tigers_and_bears_oh_my_achievement", + "xbla_id": "108" + }, + { + "pdx_id": "ep2_12_fly_my_pretty_achievement", + "xbla_id": "109" + }, + { + "pdx_id": "ep2_13_pathway_to_heaven_achievement", + "xbla_id": "110" + }, + { + "pdx_id": "ep2_14_sir_lance_a_lot_achievement", + "xbla_id": "111" + }, + { + "pdx_id": "ep2_15_im_in_my_elements_achievement", + "xbla_id": "112" + }, + { + "pdx_id": "ep2_16_ahab_achievement", + "xbla_id": "113" + }, + { + "pdx_id": "ep2_17_little_william_marshal_achievement", + "xbla_id": "114" + }, + { + "pdx_id": "ep2_18_a_true_and_perfect_knight_achievement", + "xbla_id": "115" + }, + { + "pdx_id": "ep2_19_a_e_i_o_u_and_me_achievement", + "xbla_id": "116" + }, + { + "pdx_id": "ep2_20_the_iron_and_golden_king_achievement", + "xbla_id": "117" + }, + { + "pdx_id": "fp3_rich_in_diversity_achievement", + "xbla_id": "118" + }, + { + "pdx_id": "fp3_abassid_strong_achievement", + "xbla_id": "119" + }, + { + "pdx_id": "fp3_royal_flush_achievement", + "xbla_id": "120" + }, + { + "pdx_id": "fp3_rekindle_iran_achievement", + "xbla_id": "121" + }, + { + "pdx_id": "fp3_challenger_caliphate_achievement", + "xbla_id": "122" + }, + { + "pdx_id": "fp3_vassalize_the_caliph_achievement", + "xbla_id": "123" + }, + { + "pdx_id": "fp3_mulct_them_dry_achievement", + "xbla_id": "124" + }, + { + "pdx_id": "fp3_fiscal_res_achievement", + "xbla_id": "125" + }, + { + "pdx_id": "fp3_the_umma_strikes_back_achievement", + "xbla_id": "126" + }, + { + "pdx_id": "fp3_darius_revenge_achievement", + "xbla_id": "127" + } ] -} \ No newline at end of file +} diff --git a/common/activities/activity_locales/tournament_locales.txt b/common/activities/activity_locales/tournament_locales.txt index 193a5d1240..5fc8958dc6 100644 --- a/common/activities/activity_locales/tournament_locales.txt +++ b/common/activities/activity_locales/tournament_locales.txt @@ -75,6 +75,7 @@ tournament_locale_tournament_grounds = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } @@ -88,6 +89,7 @@ tournament_locale_tournament_grounds = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } @@ -136,6 +138,7 @@ tournament_locale_settlement = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } @@ -198,6 +201,7 @@ tournament_locale_visitor_camp = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } @@ -320,6 +324,7 @@ tournament_locale_tavern = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } @@ -382,6 +387,7 @@ tournament_locale_artisans = { activity_location.culture = { OR = { has_graphical_mena_culture_group_trigger = yes + has_graphical_iranian_culture_group_trigger = yes has_graphical_african_culture_group_trigger = yes has_graphical_steppe_culture_group_trigger = yes } diff --git a/common/activities/activity_types/feast.txt b/common/activities/activity_types/feast.txt index e5e5a5e633..61879a1723 100644 --- a/common/activities/activity_types/feast.txt +++ b/common/activities/activity_types/feast.txt @@ -16,7 +16,10 @@ activity_feast = { is_ai = yes } is_at_war = no - short_term_gold >= feast_activity_cost + OR = { + has_character_flag = feasts_a_lot + short_term_gold >= feast_activity_cost + } } } @@ -3142,7 +3145,6 @@ activity_feast = { # is_diff_faith_or_culture_trigger = { # CHAR = scope:host # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle # } # } # } diff --git a/common/activities/activity_types/hunt.txt b/common/activities/activity_types/hunt.txt new file mode 100644 index 0000000000..fcfa7eb97a --- /dev/null +++ b/common/activities/activity_types/hunt.txt @@ -0,0 +1,3297 @@ +activity_hunt = { + is_shown = { + highest_held_title_tier > tier_barony + is_landed = yes + trigger_if = { + limit = { + is_ai = yes + } + is_at_war = no + OR = { + has_character_flag = hunts_a_lot + short_term_gold >= hunt_activity_base_cost + AND = { + gold >= hunt_activity_base_cost + ai_has_warlike_personality = yes + } + } + } + } + + can_start_showing_failures_only = { + is_available_adult = yes + can_hunt_trigger = yes + } + + is_valid = { + scope:host = { + is_alive = yes + is_imprisoned = no + is_landed = yes + NOT = { is_incapable = yes } + } + NOT = { has_variable = hunt_invalidated } + trigger_if = { + limit = { exists = var:hunt_started } + exists = var:animal_type + } + # If no one shows up + trigger_if = { + limit = { + is_current_phase_active = yes + } + has_attending_activity_guests = yes + } + } + + on_invalidated = { + # Save scopes for flavor events + scope:activity = { + var:hunt_invalidated_flavor ?= { save_scope_as = invalidated_flavor } + var:hunt_invalidated_culprit ?= { save_scope_as = invalidated_culprit } + every_attending_character = { + limit = { + is_ai = no + is_alive = yes + NOR = { + this = scope:invalidated_culprit + this = scope:activity.activity_host + } + } + add_to_list = attendees + } + if = { # Wound + limit = { var:hunt_invalidated ?= flag:wounded } + save_scope_as = wounded_invalidation + every_in_list = { + list = attendees + trigger_event = hunt.0086 + } + } + else_if = { # Death + limit = { var:hunt_invalidated ?= flag:death } + save_scope_as = death_invalidation + every_in_list = { + list = attendees + trigger_event = hunt.0080 + } + } + else_if = { # Assassination Attempt + limit = { var:hunt_invalidated ?= flag:assassination_attempt } + save_scope_as = assassination_invalidation + every_in_list = { + list = attendees + trigger_event = hunt.0083 + } + } + else_if = { # Abduction Attempt + limit = { var:hunt_invalidated ?= flag:abduction_attempt } + save_scope_as = abduction_attempt_invalidation + every_in_list = { + list = attendees + trigger_event = hunt.0084 + } + } + else_if = { # Abduction + limit = { var:hunt_invalidated ?= flag:abduction } + save_scope_as = abduction_invalidation + every_in_list = { + list = attendees + trigger_event = hunt.0085 + } + } + else_if = { # Host Imprisoned + limit = { + scope:host = { is_imprisoned = yes} + } + every_in_list = { + list = attendees + trigger_event = hunt.0082 + } + } + # Host becomes unlanded + else_if = { + limit = { + scope:host = { is_landed = no } + } + scope:activity = { + activity_type = { save_scope_as = activity_type } + } + every_in_list = { + list = attendees + limit = { NOT = { this = scope:host } } + trigger_event = activity_system.0320 + } + } + else_if = { + limit = { + scope:host = { is_incapable = yes } + } + scope:activity = { + activity_type = { save_scope_as = activity_type } + } + scope:host = { + trigger_event = activity_system.0330 + } + every_in_list = { + list = attendees + limit = { NOT = { this = scope:host } } + trigger_event = activity_system.0331 + } + } + else_if = { # No one shows up + limit = { + has_attending_activity_guests = no + } + scope:activity = { + activity_type = { save_scope_as = activity_type } + activity_location = { save_scope_as = location } + } + scope:host = { trigger_event = activity_system.0100 } + } + + hunt_remove_variables_effect = yes + } + } + + cooldown = { years = standard_hunting_cooldown_time } # 4 years + + cost = { + gold = { + add = { + add = { + value = hunt_activity_base_cost #Base level + desc = hunt_base_cost + } + add = { + value = hunt_activity_base_cost + multiply = activity_cost_scale_by_era + subtract = hunt_activity_base_cost + desc = activity_cost_scale_by_era_desc + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = 0 + add = { + value = hunt_activity_base_cost + add = { + value = hunt_activity_base_cost + multiply = activity_cost_scale_by_era + subtract = hunt_activity_base_cost + } + } + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + + ui_predicted_cost = { + # All costs are balanced on County/Early Era starting point + gold = { + add = { # Base cost, scaled by era + value = hunt_activity_base_cost + multiply = activity_cost_scale_by_era + } + + # Options + add = { # Attendants + value = 0 # Local Game Keepers Cost + add = 10 # Search Parties Cost + add = 35 # Flushing Gangs Cost + # Scale option costs by tier and era + multiply = activity_cost_scale_by_tier + multiply = activity_cost_scale_by_era + # Divide by the number of option levels to get an average option cost + divide = 3 + } + add = { # Party Size + value = 0 # Intimate Party Cost + add = 10 # Reasonable Party Cost + add = 35 # Substantial Party Cost + # Scale option costs by tier and era + multiply = activity_cost_scale_by_tier + multiply = activity_cost_scale_by_era + # Divide by the number of option levels to get an average option cost + divide = 3 + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = hunt_activity_base_cost + multiply = law_legacy_cost_reduction_mult + } + } + + # Make it a multiple of 5 (rounded up) + divide = 5 + ceiling = yes + multiply = 5 + + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + + on_host_death = { + scope:activity = { + save_scope_as = death_invalidation + if = { + limit = { + has_activity_option = { category = special_type option = hunt_type_legendary } + } + save_scope_as = legendary_invalidation + } + } + scope:host = { + save_scope_as = invalidated_flavor + player_heir ?= { + save_scope_as = heir + add_character_flag = { + flag = hunt_heir + weeks = 1 + } + trigger_event = { id = hunt.0080 days = 1 } + } + } + } + + is_location_valid = { + custom_tooltip = { + text = activity_location_any_game_tt + hunt_animal_small_available_trigger = yes + } + trigger_if = { + limit = { scope:special_option ?= flag:hunt_type_legendary } + custom_tooltip = { + text = activity_hunt_location_legendary_sighting_tt + county = { + has_county_modifier = hunt_sighting_legendary_modifier + var:sighting_owner ?= scope:host + } + } + } + } + + ai_will_do = { + value = 0 + + # Base + add = { + value = 30 + desc = "base" + } + # ai_value + add = { + value = ai_greed + multiply = -0.5 + desc = "ai_greed" + } + add = { + value = ai_boldness + desc = "ai_boldness" + } + add = { + value = ai_sociability + multiply = 0.5 + desc = "ai_sociability" + } + if = { + limit = { + ai_energy < 0 + } + add = { + add = ai_energy + desc = "ai_energy" + } + } + # Dharmic Pacificism + if = { + limit = { + hunt_dharmic_pacificist_trigger = yes + NOT = { has_trait = sadistic } + } + add = { + value = -40 + desc = tenet_dharmic_pacifism_name + } + } + # Personality + if = { # Avoids responsibilities + limit = { has_trait = lazy } + add = { + value = 20 + desc = lazy + } + } + if = { + limit = { has_trait = ambitious } + add = { + value = 20 + desc = ambitious + } + } + else_if = { # Better things to do + limit = { has_trait = diligent } + add = { + value = -10 + desc = diligent + } + } + if = { # Likes hurting things + limit = { has_trait = sadistic } + add = { + value = 20 + desc = sadistic + } + } + else_if = { # Empathetic + limit = { has_trait = compassionate } + add = { + value = -10 + desc = compassionate + } + } + if = { # Likes to socialize + limit = { has_trait = gregarious } + add = { + value = 20 + desc = gregarious + } + } + else_if = { + limit = { has_trait = shy } + add = { + value = -10 + desc = shy + } + } + if = { + limit = { has_trait = reclusive } + add = { + value = -25 + desc = reclusive + } + } + # Prestige + if = { + limit = { prestige < 0 } + add = { + value = 30 + desc = "Very low prestige" + } + } + if = { + limit = { prestige_level <= 1 } + add = { + value = 5 + desc = "Low prestige level" + } + } + if = { + limit = { + prestige_level <= 2 + can_use_conquest_cbs_trigger = yes + ai_has_warlike_personality = yes + } + add = { + value = 15 + desc = "Can use conquest but has low prestige_level" + } + } + if = { + limit = { + prestige <= 500 + can_use_conquest_cbs_trigger = yes + ai_has_warlike_personality = yes + } + add = { + value = 25 + desc = "Can use conquest but has low prestige" + } + } + # Court + if = { + limit = { + has_royal_court = yes + has_court_type = court_warlike + } + add = { + value = 15 + desc = court_warlike + } + } + # Education + if = { + limit = { has_trait = education_martial } + add = { + value = 25 + desc = education_martial + } + } + # Culture + if = { # Prolific Hunters + limit = { + culture = { has_cultural_parameter = hunting_traits_more_common } + } + add = { + value = 20 + desc = "hunting_traits_more_common" + } + } + if = { # Prolific Hunters + limit = { + culture = { has_cultural_parameter = hunting_traits_more_valued } + } + add = { + value = 20 + desc = "hunting_traits_more_valued" + } + } + if = { # Sacred Hunts + limit = { + culture = { has_cultural_parameter = hunting_traits_more_pious } + } + add = { + value = 20 + desc = "hunting_traits_more_pious" + } + } + if = { # Bellicose + limit = { + culture = { has_cultural_pillar = ethos_bellicose } + } + add = { + value = 15 + desc = ethos_bellicose + } + } + # Lifestyle + if = { + limit = { has_trait = lifestyle_hunter } + add = { + value = 25 + desc = lifestyle_hunter + } + } + if = { + limit = { + has_trait = lifestyle_hunter + OR = { + has_trait_xp = { + trait = lifestyle_hunter + track = hunter + value >= trait_second_level + } + has_trait_xp = { + trait = lifestyle_hunter + track = falconer + value >= trait_second_level + } + } + } + add = { + value = 25 + desc = "experienced hunter" + } + } + # Stress + if = { # Low Stress + limit = { stress >= lower_than_baseline_stress } + add = { + value = 30 + desc = "lower_than_baseline_stress" + } + } + if = { # High Stress + limit = { stress >= higher_than_baseline_stress } + add = { + value = 30 + desc = "higher_than_baseline_stress" + } + } + if = { # Very High Stress + limit = { stress >= high_stress } + add = { + value = 30 + desc = "high_stress" + } + } + # Economic Archetype + if = { # Too busy booming the economy + limit = { + OR = { + ai_has_economical_boom_personality = yes + has_character_flag = ai_boom + } + } + add = { + value = -200 + desc = "Builder" + } + } + if = { + limit = { + is_independent_ruler = no + has_vassal_stance = glory_hound + } + add = { + value = 10 + desc = glory_hound + } + } + if = { + limit = { ai_has_warlike_personality = yes } + add = { + value = 25 + desc = "Warlike" + } + } + # Economy Sanity + if = { # Work first, play later + limit = { + exists = capital_county + capital_county.title_province = { free_building_slots > 0 } + } + add = { + value = -35 + desc = "Work first, play later" + } + } + # Sightings + if = { + limit = { + any_sub_realm_county = { + OR = { + has_county_modifier = hunt_sighting_standard_modifier + has_county_modifier = hunt_sighting_dangerous_modifier + has_county_modifier = hunt_sighting_falconry_modifier + } + var:sighting_owner ?= root + } + } + add = { + value = 25 + desc = "Sighting" + } + } + if = { + limit = { + any_sub_realm_county = { + has_county_modifier = hunt_sighting_legendary_modifier + var:sighting_owner ?= root + } + } + add = { + value = 50 + desc = "Legendary Sighting" + } + } + if = { + limit = { + short_term_gold >= hunt_activity_base_cost + short_term_gold >= major_gold_value + } + add = { + value = 30 + desc = "Got gold to burn" + } + } + if = { + limit = { has_character_flag = hunts_a_lot } + add = { + value = 500 + desc = "hunts a lot" + } + } + } + + host_description = { + desc = activity_hunt_host_desc + first_valid = { + triggered_desc = { + trigger = { + culture = { has_cultural_parameter = sacred_hunts } + } + desc = activity_hunt_host_desc_piety + } + desc = activity_hunt_host_desc_prestige + } + first_valid = { + triggered_desc = { + trigger = { has_trait = lifestyle_hunter } + desc = activity_hunt_host_desc_trait_xp + } + desc = activity_hunt_host_desc_trait + } + triggered_desc = { + trigger = { + has_dlc_feature = accolades + } + desc = activity_hunt_guest_desc_accolade + } + triggered_desc = { + trigger = { + NOT = { employs_court_position = master_of_hunt_court_position } + } + desc = activity_hunt_host_desc_moh + } + triggered_desc = { + trigger = { + NOT = { + any_held_county = { + any_county_province = { + NOT = { exists = var:recent_hunt_held } + } + } + } + } + desc = activity_hunt_host_desc_recent + } + } + + guest_description = { + first_valid = { + triggered_desc = { + trigger = { + culture = { has_cultural_parameter = sacred_hunts } + } + desc = activity_hunt_host_desc_piety + } + desc = activity_hunt_host_desc_prestige + } + first_valid = { + triggered_desc = { + trigger = { has_trait = lifestyle_hunter } + desc = activity_hunt_host_desc_trait_xp + } + desc = activity_hunt_host_desc_trait + } + desc = activity_hunt_guest_desc_accolade + } + + conclusion_description = { + first_valid = { + triggered_desc = { + trigger = { + scope:activity.var:hunt_success_chance >= 50 + scope:activity.var:hunt_success_chance_event >= hunt_activity_success_increase_medium_value + } + desc = hunt.9001.desc_good + } + triggered_desc = { + trigger = { + scope:activity.var:hunt_success_chance >= 50 + scope:activity.var:hunt_success_chance_event < hunt_activity_success_decrease_minor_value + } + desc = hunt.9001.desc_good_bad + } + triggered_desc = { + trigger = { + scope:activity.var:hunt_success_chance < 50 + scope:activity.var:hunt_success_chance_event < hunt_activity_success_decrease_minor_value + } + desc = hunt.9001.desc_bad + } + triggered_desc = { + trigger = { + scope:activity.var:hunt_success_chance < 50 + scope:activity.var:hunt_success_chance_event >= hunt_activity_success_increase_medium_value + } + desc = hunt.9001.desc_bad_good + } + desc = hunt.9001.desc_same + } + first_valid = { + triggered_desc = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_legendary } + } + } + desc = activity_hunt_conclusion_desc_legendary_success + } + triggered_desc = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_legendary } + } + } + desc = activity_hunt_conclusion_desc_legendary + } + triggered_desc = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + desc = activity_hunt_conclusion_desc_falconry_success + } + triggered_desc = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + desc = activity_hunt_conclusion_desc_falconry + } + triggered_desc = { + trigger = { scope:activity.var:hunt_success ?= flag:yes } + desc = activity_hunt_conclusion_desc_standard_success + } + desc = activity_hunt_conclusion_desc_standard + } + } + + ################### + # PARAMETERS + ################### + + is_grand_activity = no + + is_single_location = yes + + ################### + # LOCATION + ################### + + province_filter = realm + ai_province_filter = domain + + province_description = { + desc = activity_hunt_province_desc + # +++ / triple plus good + triggered_desc = { + trigger = { + scope:special_option ?= flag:hunt_type_standard + county ?= { has_county_modifier = hunt_sighting_standard_modifier } + } + desc = activity_hunt_province_desc_standard_sighting + } + triggered_desc = { + trigger = { + scope:special_option ?= flag:hunt_type_standard + county ?= { has_county_modifier = hunt_sighting_dangerous_modifier } + } + desc = activity_hunt_province_desc_dangerous_sighting + } + triggered_desc = { + trigger = { + scope:special_option ?= flag:hunt_type_falconry + county ?= { has_county_modifier = hunt_sighting_falconry_modifier } + } + desc = activity_hunt_province_desc_falconry_sighting + } + triggered_desc = { + trigger = { has_building = royal_forest_03 } + desc = activity_hunt_province_desc_royal_forest_major + } + triggered_desc = { + trigger = { has_building_or_higher = hunting_grounds_06 } + desc = activity_hunt_province_desc_hunting_grounds_major + } + #triggered_desc = { + # trigger = { has_building_or_higher = rainbow_mountains_01 } + # desc = activity_hunt_province_desc_rainbow_mountains_major + #} + triggered_desc = { + trigger = { + OR = { + terrain = taiga + terrain = forest + terrain = mountains + terrain = jungle + } + } + desc = activity_hunt_province_desc_terrain_great + } + # --- / triple minus bad + triggered_desc = { + trigger = { + OR = { + terrain = farmlands + terrain = floodplains + } + } + desc = activity_hunt_province_desc_terrain_terrible + } + triggered_desc = { + trigger = { + exists = county + county.development_level >= medium_development_level + } + desc = activity_hunt_province_desc_development_terrible + } + triggered_desc = { + trigger = { has_building_or_higher = logging_camps_06 } + desc = activity_hunt_province_desc_logging_camps_major + } + triggered_desc = { + trigger = { + exists = var:recent_hunt_held + var:recent_hunt_held >= 5 + } + desc = activity_hunt_province_desc_recent_hunt_major + } + # ++ / double plus good + triggered_desc = { + trigger = { has_holding = no } + desc = activity_hunt_province_desc_no_holding + } + triggered_desc = { + trigger = { has_building = royal_forest_02 } + desc = activity_hunt_province_desc_royal_forest_medium + } + triggered_desc = { + trigger = { + has_building_or_higher = hunting_grounds_03 + NOT = { has_building_or_higher = hunting_grounds_06 } + } + desc = activity_hunt_province_desc_hunting_grounds_medium + } + # -- / double minus bad + triggered_desc = { + trigger = { + OR = { + terrain = desert + terrain = desert_mountains + terrain = oasis + } + } + desc = activity_hunt_province_desc_terrain_bad + } + triggered_desc = { + trigger = { + exists = county + county.development_level < medium_development_level + county.development_level >= bad_development_level + } + desc = activity_hunt_province_desc_development_bad + } + triggered_desc = { + trigger = { + has_building_or_higher = logging_camps_03 + NOT = { has_building_or_higher = logging_camps_06 } + } + desc = activity_hunt_province_desc_logging_camps_medium + } + triggered_desc = { + trigger = { + exists = var:recent_hunt_held + var:recent_hunt_held >= 2 + var:recent_hunt_held <= 4 + } + desc = activity_hunt_province_desc_recent_hunt_medium + } + # + / plus good + triggered_desc = { + trigger = { has_building = royal_forest_01 } + desc = activity_hunt_province_desc_royal_forest_minor + } + triggered_desc = { + trigger = { + has_building_or_higher = hunting_grounds_01 + NOT = { has_building_or_higher = hunting_grounds_03 } + } + desc = activity_hunt_province_desc_hunting_grounds_minor + } + triggered_desc = { + trigger = { + county ?= { has_county_modifier = hunt_mismanaged_game_modifier } + } + desc = activity_hunt_province_desc_punished_poachers + } + triggered_desc = { + trigger = { + OR = { + terrain = hills + terrain = wetlands + } + } + desc = activity_hunt_province_desc_terrain_good + } + triggered_desc = { + trigger = { + scope:host.culture ?= { + OR = { + AND = { # Forests + has_cultural_parameter = forest_hunt_success_chance + root = { + OR = { + terrain = forest + terrain = taiga + } + } + } + AND = { # Hills + has_cultural_parameter = hills_hunt_success_chance + root = { terrain = hills } + } + AND = { # Deserts + has_cultural_parameter = desert_hunt_success_chance + root = { + OR = { + terrain = desert + terrain = oasis + } + } + } + AND = { # Steppes + has_cultural_parameter = steppe_hunt_success_chance + root = { terrain = steppe } + } + AND = { # Mountains + has_cultural_parameter = mountains_hunt_success_chance + root = { + OR = { + terrain = mountains + terrain = desert_mountains + } + } + } + AND = { # Drylands + has_cultural_parameter = drylands_hunt_success_chance + root = { + OR = { + terrain = drylands + terrain = desert + } + } + } + AND = { # Jungle + has_cultural_parameter = jungle_hunt_success_chance + root = { terrain = jungle } + } + AND = { # Wetlands + has_cultural_parameter = wetlands_hunt_success_chance + root = { + OR = { + terrain = wetlands + terrain = floodplains + } + } + } + } + } + } + desc = activity_hunt_province_desc_culture + } + # - / minus bad + triggered_desc = { + trigger = { + exists = county + county.development_level < bad_development_level + county.development_level >= terrible_development_level + } + desc = activity_hunt_province_desc_development + } + triggered_desc = { + trigger = { + county ?= { has_county_modifier = hunt_mismanaged_game_modifier } + } + desc = activity_hunt_province_desc_mismanaged_game + } + triggered_desc = { + trigger = { + has_building_or_higher = logging_camps_01 + NOT = { has_building_or_higher = logging_camps_03 } + } + desc = activity_hunt_province_desc_logging_camps_minor + } + triggered_desc = { + trigger = { + exists = var:recent_hunt_held + var:recent_hunt_held <= 1 + } + desc = activity_hunt_province_desc_recent_hunt_minor + } + } + + max_province_icons = 5 + + province_score = { + add = hunt_province_reference_value + # SIGHTINGS + if = { + limit = { + OR = { + # Standard + AND = { + OR = { + county = { has_county_modifier = hunt_sighting_standard_modifier } + county = { has_county_modifier = hunt_sighting_dangerous_modifier } + } + scope:special_option ?= flag:hunt_type_standard + } + # Falconry + AND = { + county = { has_county_modifier = hunt_sighting_falconry_modifier } + scope:special_option ?= flag:hunt_type_falconry + } + } + } + add = 20 + } + # Stop AI stealing sightings + if = { + limit = { + scope:host = { is_ai = yes } + exists = county.var:animal_type + NOT = { var:sighting_owner ?= scope:host } + } + add = -1000 + } + } + + ################### + # GRAPHICS + ################### + + map_entity = { + trigger = { + activity_location.culture = { + OR = { + has_graphical_mena_culture_group_trigger = yes + has_graphical_steppe_culture_group_trigger = yes + has_graphical_african_culture_group_trigger = yes + } + } + } + reference = "building_mena_hunt_01_entity" + } + + map_entity = { + trigger = { + activity_location.culture = { + has_graphical_india_culture_group_trigger = yes + } + } + reference = "building_indian_hunt_01_entity" + } + + map_entity = "building_western_hunt_01_entity" + + # Travel + background = { # Bridge + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + is_riverside_province = yes + geographical_region = world_europe + OR = { + terrain = farmlands + terrain = plains + terrain = mountains + terrain = hills + } + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_bridge.dds" + environment = "environment_travel_bridge" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + + background = { # Farmland, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + terrain = farmlands + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_farm.dds" + environment = "environment_travel_farmlands" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + background = { # Farmland, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + terrain = farmlands + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/farms.dds" + environment = "environment_event_farms" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + + background = { #Desert, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_desert_trigger = yes + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_desert.dds" + environment = "environment_travel_desert" + ambience = "event:/SFX/Events/Backgrounds/desert_day" + } + background = { #Desert, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_desert_trigger = yes + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/desert.dds" + environment = "environment_event_bp1_desert" + ambience = "event:/SFX/Events/Backgrounds/desert_day" + } + + background = { #forest snowy + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location ?= { hunt_snowy_forest_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_hunt_snowy_forest.dds" + environment = "environment_hunt_snowy_forest" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + + background = { #forest_pine + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_forest_pine_trigger = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/forest_pine.dds" + environment = "environment_event_forest_pine" + ambience = "event:/SFX/Events/Backgrounds/coniferous_forest_day" + } + + background = { #forest + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_forest_trigger = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/forest.dds" + environment = "environment_event_forest" + ambience = "event:/SFX/Events/Backgrounds/deciduous_forest_day" + } + + background = { #mountains, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_mountains_trigger = yes + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_mountains.dds" + environment = "environment_travel_mountain_settlement" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + background = { #mountains, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_mountains_trigger = yes + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/mountains.dds" + environment = "environment_event_mountains" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + + background = { #steppe, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_steppe_trigger = yes + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_steppe.dds" + environment = "environment_travel_steppe_settlement" + ambience = "event:/SFX/Events/Backgrounds/steppe_day" + } + background = { #steppe, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_steppe_trigger = yes + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/steppe.dds" + environment = "environment_event_steppe" + ambience = "event:/SFX/Events/Backgrounds/steppe_day" + } + + background = { #drylands (formerly desert) + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_drylands_trigger = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/drylands.dds" + environment = "environment_event_desert" + ambience = "event:/SFX/Events/Backgrounds/desert_day" + } + + background = { #wetlands + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_wetlands_trigger = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/bp1_wetlands.dds" + environment = "environment_event_bp1_wetlands" + ambience = "event:/SFX/Events/Backgrounds/deciduous_forest_day" + } + + background = { #jungle + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_wilderness_jungle_trigger = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/bp1_jungle.dds" + environment = "environment_event_bp1_jungle" + ambience = "event:/SFX/Events/Backgrounds/deciduous_forest_day" + } + + background = { #plains, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_plains_trigger = yes + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_hills.dds" + environment = "environment_travel_hills_settlement" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + background = { #plains, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_plains_trigger = yes + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/bp1_plains.dds" + environment = "environment_event_bp1_plains" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + + background = { #hills, settled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_hills_trigger = yes + exists = province_owner + } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_travel_hills.dds" + environment = "environment_travel_hills_settlement" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + background = { #hills, unsettled + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + graphical_hills_trigger = yes + NOT = { exists = province_owner } + } + } + texture = "gfx/interface/illustrations/event_scenes/bp1_hills.dds" + environment = "environment_event_bp1_hills" + ambience = "event:/SFX/Events/Backgrounds/fields_farms_day" + } + + background = { #sea + trigger = { + NOT = { scope:host.location = scope:activity.activity_location } + scope:host.location = { + is_sea_province = yes + } + } + texture = "gfx/interface/illustrations/event_scenes/fp1_ocean.dds" + environment = "environment_event_fp1_ocean" + ambience = "event:/DLC/FP1/SFX/Events/event_ocean_longship" + } + + # End Travel + + background = { # Snowy Forest + trigger = { + activity_location = { hunt_snowy_forest_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/ep2_hunt_snowy_forest.dds" + environment = "environment_hunt_snowy_forest" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + + background = { # Mountains + trigger = { + activity_location = { graphical_wilderness_mountains_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/mountains.dds" + environment = "environment_event_mountains" + ambience = "event:/SFX/Events/Backgrounds/mountains_day" + } + + background = { # Steppe + trigger = { + activity_location = { graphical_wilderness_steppe_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/steppe.dds" + environment = "environment_event_steppe" + ambience = "event:/SFX/Events/Backgrounds/steppe_day" + } + + background = { #Desert + trigger = { + activity_location = { graphical_wilderness_desert_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/desert.dds" + environment = "environment_event_bp1_desert" + ambience = "event:/SFX/Events/Backgrounds/desert_day" + } + + background = { # Jungle + trigger = { + activity_location = { graphical_wilderness_jungle_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/bp1_jungle.dds" + environment = "environment_event_bp1_jungle" + ambience = "event:/SFX/Events/Backgrounds/deciduous_forest_day" + } + + background = { # Drylands + trigger = { + activity_location = { graphical_drylands_trigger = yes } + } + texture = "gfx/interface/illustrations/event_scenes/drylands.dds" + environment = "environment_event_desert" + ambience = "event:/SFX/Events/Backgrounds/desert_day" + } + + background = { # Camp + texture = "gfx/interface/illustrations/event_scenes/ep2_hunt_poachers_camp.dds" + environment = "environment_event_forest_pine" + ambience = "event:/SFX/Events/Backgrounds/coniferous_forest_day" + } + + ### Plug in widgets + activity_window_widgets = { + hunt_success_chance = "activity_plugin_widgets_summary" + artifact_rewards = "activity_plugin_widgets_conclusion" + trait_rewards = "activity_plugin_widgets_conclusion" + } + + window_characters = { + hunter = { + camera = camera_body + + effect = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + scope:player ?= { + NOR = { + this = scope:host + AND = { + exists = scope:host.court_position:master_of_hunt_court_position + this = scope:host.court_position:master_of_hunt_court_position + } + AND = { + exists = var:animal_slayer + this = var:animal_slayer + } + } + } + } + scope:player ?= { add_to_list = characters } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + exists = scope:host.intent_target + any_attending_character = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + this = scope:host.intent_target + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + this = scope:host.intent_target + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + OR = { + has_relation_lover = scope:host + has_relation_friend = scope:host + } + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + OR = { + has_relation_lover = scope:host + has_relation_friend = scope:host + } + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + add_to_list = characters + } + } + else = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOR = { + this = scope:host + has_court_position = master_of_hunt_court_position + } + } + add_to_list = characters + } + } + } + } + scripted_animation = { + triggered_animation = { + trigger = { + exists = scope:host.intent_target + scope:host = { + has_activity_intent = woo_attendee_intent + } + scope:character = scope:host.intent_target + } + animation = { love flirtation } + } + triggered_animation = { + trigger = { + exists = scope:host.intent_target + scope:host = { + has_activity_intent = murder_attendee_intent + } + scope:character = scope:host.intent_target + } + animation = { dismissal worry paranoia } + } + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + NOR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start throne_room_two_handed_passive_1 lantern marshal throne_room_one_handed_passive_1 } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + OR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start hunting_shortbow_rest_arrow_default lantern marshal } + } + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + animation = { idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + NOR = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + } + animation = { lantern worry lunatic stress } + } + #Fallback + animation = hunting_knife_start + } + } + + host = { + camera = camera_body + + effect = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + } + scope:host = { + add_to_list = characters + } + } + } + scripted_animation = { + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + animation = hunting_falcon + } + triggered_animation = { + trigger = { + scope:activity.var:animal_slayer ?= scope:character + scope:activity.var:animal_type ?= flag:hare + } + animation = hunting_carcass_start + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + NOT = { + scope:host = { + employs_court_position = master_of_hunt_court_position + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + } + animation = hunting_horn + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + NOR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:host = { + employs_court_position = master_of_hunt_court_position + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start throne_room_two_handed_passive_1 throne_room_one_handed_passive_1 idle } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + OR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:host = { + employs_court_position = master_of_hunt_court_position + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start hunting_longbow_rest_arrow_default idle } + } + #Fallback + animation = idle + } + } + + travel_host = { + camera = camera_body + + effect = { + if = { + limit = { + NOT = { + scope:host.location = scope:activity.activity_location + } + } + scope:host = { + add_to_list = characters + } + } + } + + scripted_animation = { + triggered_animation = { + trigger = { + scope:character.location = { is_sea_province = yes } + } + animation = { idle } + } + triggered_animation = { + trigger = { scope:character = { has_trait = impatient } } + animation = { jockey_gallop } + } + animation = jockey_walk + } + } + + master_of_hunt = { + camera = camera_body + + effect = { + scope:host.court_position:master_of_hunt_court_position ?= { + if = { + limit = { + scope:host.location = scope:activity.activity_location + is_participant_in_activity = scope:activity + location = scope:activity.activity_location + } + add_to_list = characters + } + } + } + scripted_animation = { + animation = hunting_horn + } + } + + animal_slayer = { + camera = camera_body + + effect = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + } + var:animal_slayer ?= { add_to_list = characters } + } + } + scripted_animation = { + triggered_animation = { + trigger = { scope:activity.var:animal_type ?= flag:hare } + animation = hunting_carcass_start + } + animation = marshal + } + } + + hunter = { + camera = camera_body + + effect = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + NOT = { exists = var:animal_slayer } + } + if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 2 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 2 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 2 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + add_to_list = characters + } + } + else = { + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOR = { + this = scope:host + has_court_position = master_of_hunt_court_position + } + } + add_to_list = characters + } + } + } + } + + scripted_animation = { + triggered_animation = { + trigger = { + scope:activity = { has_activity_option = { category = special_type option = hunt_type_falconry } } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + OR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:character = { + culture = { has_innovation = innovation_advanced_bowmaking } + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_longbow_aim_arrow_default hunting_shortbow_aim_arrow_default crossbow } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + OR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + NOT = { + scope:host.culture = { has_innovation = innovation_advanced_bowmaking } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_longbow_aim_arrow_default hunting_shortbow_aim_arrow_default } + } + triggered_animation = { + trigger = { + scope:activity = { + NOT = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + # Only show weapons in the active part + exists = var:hunt_activity_story + NOR = { + var:hunt_activity_story = flag:ambush + var:hunt_activity_story = flag:stealth + } + NOT = { exists = var:hunt_success } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start throne_room_two_handed_passive_1 throne_room_one_handed_passive_1 idle } + } + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:character = { + NOT = { can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } } + } + } + animation = { idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + scope:activity = { NOT = { has_activity_option = { category = special_type option = hunt_type_falconry } } } + scope:character = { + NOT = { can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } } + } + } + animation = { shock paranoia fear } + } + #Fallback + animation = hunting_shortbow_rest_arrow_default + } + } + + hunter = { + camera = camera_body + + effect = { + if = { + limit = { + scope:host.location = scope:activity.activity_location + } + if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 3 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + is_councillor_of = scope:host + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 3 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_duchy + } + add_to_list = characters + } + } + else_if = { + limit = { + scope:host.location = scope:activity.activity_location + any_attending_character = { + count >= 3 + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + } + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOT = { + this = scope:host + } + highest_held_title_tier >= tier_county + } + add_to_list = characters + } + } + else = { + every_attending_character = { + limit = { + location = scope:activity.activity_location + NOR = { + this = scope:host + has_court_position = master_of_hunt_court_position + } + } + add_to_list = characters + } + } + } + } + + scripted_animation = { + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_knife_start idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + NOT = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + scope:host.culture = { has_innovation = innovation_advanced_bowmaking } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_longbow_aim_arrow_default hunting_shortbow_aim_arrow_default crossbow } + } + triggered_animation = { + trigger = { + NOR = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:host.culture = { has_innovation = innovation_advanced_bowmaking } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + animation = { hunting_longbow_aim_arrow_default hunting_shortbow_aim_arrow_default } + } + triggered_animation = { + trigger = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + NOT = { + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + } + animation = { idle happiness laugh admiration worry } + } + triggered_animation = { + trigger = { + NOR = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + scope:character = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + } + animation = { shock paranoia fear } + } + #Fallback + animation = hunting_knife_start + } + } + } + + ################### + # OPTIONS + ################### + + special_option_category = special_type + + options = { + # option example + special_type = { + hunt_type_standard = { + default = yes + ai_will_do = { + add = { + value = 30 + desc = "base" + } + # Personality + if = { + limit = { has_trait = craven } + add = { + value = 10 + desc = "Cowardly" + } + } + # Gender + if = { + limit = { + save_temporary_scope_as = host_temp + NOT = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host_temp } + } + } + add = { + value = -25 + desc = "martial gender" + } + } + # Sighting + if = { + limit = { + any_sub_realm_county = { + has_county_modifier = hunt_sighting_standard_modifier + var:sighting_owner ?= root + } + } + add = { + value = 15 + desc = hunt_sighting_standard_modifier + } + } + # Trait + if = { + limit = { + has_trait = lifestyle_hunter + has_trait_xp = { + trait = lifestyle_hunter + track = hunter + value >= 10 + } + } + add = { + value = 10 + desc = hunter + } + } + } + } + hunt_type_falconry = { + is_shown = { has_dlc_feature = tours_and_tournaments } + cost = { + gold = { + add = { + add = { + value = hunt_activity_base_cost #Base level + desc = hunt_type_falconry + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = 0 + add = { + value = hunt_activity_base_cost + add = { + value = hunt_activity_base_cost + multiply = activity_cost_scale_by_era + subtract = hunt_activity_base_cost + } + } + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + ai_will_do = { + value = 15 + add = { + value = ai_greed + multiply = -0.25 + desc = "ai_greed" + } + add = { + value = ai_sociability + multiply = 0.25 + desc = "ai_sociability" + } + add = { + value = ai_boldness + multiply = -0.25 + desc = "ai_boldness" + } + # Cowardice + if = { + limit = { has_trait = brave } + add = { + value = -25 + desc = "Brave" + } + } + else_if = { + limit = { has_trait = craven } + add = { + value = 25 + desc = "Cowardly" + } + } + # Economic Archetype + if = { + limit = { ai_has_cautious_personality = yes } + add = { + value = -25 + desc = "cautious" + } + } + if = { + limit = { ai_has_economical_boom_personality = yes } + add = { + value = -25 + desc = "builder" + } + } + # Gender + if = { + limit = { + save_temporary_scope_as = host_temp + NOT = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host_temp } + } + } + add = { + value = 50 + desc = "martial gender" + } + } + # Sighting + if = { + limit = { + any_sub_realm_county = { + has_county_modifier = hunt_sighting_falconry_modifier + var:sighting_owner ?= root + } + } + add = { + value = 15 + desc = hunt_sighting_falconry_modifier + } + } + # Trait + if = { + limit = { + has_trait = lifestyle_hunter + has_trait_xp = { + trait = lifestyle_hunter + track = falconer + value >= 10 + } + } + add = { + value = 25 + desc = falconer + } + } + # Court + if = { + limit = { + has_royal_court = yes + has_court_type = court_diplomatic + } + add = { + value = 25 + desc = court_diplomatic + } + } + # Culture + if = { + limit = { + culture = { has_cultural_pillar = ethos_courtly } + } + add = { + value = 25 + desc = ethos_courtly + } + } + } + } + hunt_type_legendary = { + is_valid = { + custom_tooltip = { + text = hunt_any_county_legendary_sighting_tt + any_sub_realm_county = { + has_county_modifier = hunt_sighting_legendary_modifier + var:sighting_owner ?= root + } + } + } + ai_will_do = { + add = { + value = 50 + desc = "base" + } + add = { + value = ai_boldness + desc = ai_boldness + } + add = { + value = ai_vengefulness + min = 0 + desc = ai_vengefulness + } + # Personality + if = { + limit = { has_trait = stubborn } + add = { + value = 25 + desc = stubborn + } + } + # Gender + if = { + limit = { + save_temporary_scope_as = host_temp + NOT = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host_temp } + } + } + add = { + value = -25 + desc = "martial gender" + } + } + # Trait + if = { + limit = { + has_trait = lifestyle_hunter + has_trait_xp = { + trait = lifestyle_hunter + track = hunter + value >= 10 + } + } + add = { + value = 25 + desc = hunter + } + } + } + } + } + + ######### + # ATTENDANTS NUMBER + ######### + hunt_option_attendants = { + hunt_attendants_few = { + + is_shown = { has_dlc_feature = advanced_activities } + + # desc is only shown in debug AI watch window + ai_will_do = { + value = 25 + # Economic Archetype + if = { # Cautious + limit = { ai_has_cautious_personality = yes } + add = { + value = 25 + desc = "Cautious" + } + } + if = { # Builder + limit = { + OR = { + ai_has_economical_boom_personality = yes + has_character_flag = ai_boom + } + } + add = { + value = 25 + desc = "Builder" + } + } + # Economy Sanity + if = { # Work first, play later + limit = { + exists = capital_county + capital_county.title_province = { free_building_slots > 0 } + } + add = { + value = 25 + desc = "Work first, play later" + } + } + } + } + hunt_attendants_normal = { + default = yes + + is_valid = { + can_make_expensive_purchase_trigger = { + PRICE = root.hunt_normal_option_cost + } + } + + cost = { + gold = { + add = { + add = { + value = hunt_normal_option_cost + desc = hunt_attendants_normal + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = hunt_normal_option_cost + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + + # desc is only shown in debug AI watch window + ai_will_do = { + add = { + value = 25 + desc = hunt_attendants_normal + } + if = { # Cautious + limit = { gold >= major_gold_value } + add = { + value = 25 + desc = "Rich" + } + } + if = { # Ambitious + limit = { has_trait = ambitious } + add = { + value = 10 + desc = "Ambitious" + } + } + if = { # Ambitious + limit = { has_trait = greedy } + add = { + value = -10 + desc = "Greedy" + } + } + if = { # Warlike + limit = { ai_has_warlike_personality = yes } + add = { + value = 25 + desc = "Warlike" + } + } + } + } + hunt_attendants_many = { + + is_shown = { has_dlc_feature = advanced_activities } + + is_valid = { + can_make_expensive_purchase_trigger = { + PRICE = root.hunt_good_option_cost + } + } + + cost = { + gold = { + add = { + add = { + value = hunt_good_option_cost #Base level + desc = hunt_attendants_many + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = hunt_good_option_cost + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + + # desc is only shown in debug AI watch window + ai_will_do = { + add = { + value = 10 + desc = hunt_attendants_many + } + if = { # Cautious + limit = { gold >= major_gold_value } + add = { + value = 25 + desc = "Rich" + } + } + if = { # Cautious + limit = { gold >= monumental_gold_value } + add = { + value = 25 + desc = "Rich" + } + } + if = { # Ambitious + limit = { has_trait = ambitious } + add = { + value = 10 + desc = "Ambitious" + } + } + if = { # Ambitious + limit = { has_trait = greedy } + add = { + value = -10 + desc = "Greedy" + } + } + if = { # Warlike + limit = { ai_has_warlike_personality = yes } + add = { + value = 25 + desc = "Warlike" + } + } + } + } + } + + ######### + # GUEST NUMBER + ######### + hunt_option_party_size = { # TODO_CD_EP2 awaiting code support TIT-43076 + hunt_party_size_few = { + is_shown = { has_dlc_feature = advanced_activities } + + # Entourage option grabbing suitable bodyguards & maybe someone from court who really likes you, + randos. + travel_entourage_selection = { + weight = hunt_entourage_base_set_weighting_value + max = 5 + invite_rule_order = 2 + } + + # desc is only shown in debug AI watch window + ai_will_do = { + value = 0 + # Economic Archetype + if = { # Cautious + limit = { ai_has_cautious_personality = yes } + add = { + value = 25 + desc = "Cautious" + } + } + if = { # Builder + limit = { + OR = { + ai_has_economical_boom_personality = yes + has_character_flag = ai_boom + } + } + add = { + value = 25 + desc = "Builder" + } + } + # Economy Sanity + if = { # Work first, play later + limit = { + exists = capital_county + capital_county.title_province = { free_building_slots > 0 } + } + add = { + value = 25 + desc = "Work first, play later" + } + } + } + } + hunt_party_size_normal = { + default = yes + + cost = { + gold = { + add = { + add = { + value = hunt_normal_option_cost + desc = hunt_party_size_normal + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = hunt_normal_option_cost + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + + #Entourage option grabbing most people suitable from court, + randos. + travel_entourage_selection = { + weight = { + add = hunt_entourage_base_set_weighting_value + add = hunt_entourage_extras_set_weighting_value + } + max = 8 + invite_rule_order = 2 + } + + # desc is only shown in debug AI watch window + ai_will_do = { + add = { + value = 25 + desc = hunt_party_size_normal + } + } + } + hunt_party_size_many = { + is_shown = { has_dlc_feature = advanced_activities } + + cost = { + gold = { + add = { + add = { + value = hunt_good_option_cost + desc = hunt_party_size_many + } + if = { + limit = { + dynasty ?= { + has_dynasty_perk = law_legacy_1 + } + } + subtract = { + value = hunt_good_option_cost + multiply = law_legacy_cost_reduction_mult + desc = law_legacy_1_name + } + } + if = { + limit = { + has_character_flag = free_hunt + } + multiply = 0 + } + } + } + } + + #Entourage option grabbing sodding everyone suitable from court, + every grabbable rando in the duchy and maybe a few extra. + travel_entourage_selection = { + weight = { + add = hunt_entourage_base_set_weighting_value + add = hunt_entourage_extras_set_weighting_value + add = hunt_entourage_sodding_everyone_set_weighting_value + } + + max = 15 + invite_rule_order = 2 + } + + # desc is only shown in debug AI watch window + ai_will_do = { + add = { + value = 10 + desc = hunt_party_size_many + } + if = { # Cautious + limit = { gold >= monumental_gold_value } + add = { + value = 25 + desc = "Rich" + } + } + if = { # Ambitious + limit = { has_trait = ambitious } + add = { + value = 10 + desc = "Ambitious" + } + } + if = { # Ambitious + limit = { has_trait = greedy } + add = { + value = -10 + desc = "Greedy" + } + } + if = { # Warlike + limit = { ai_has_warlike_personality = yes } + add = { + value = 25 + desc = "Warlike" + } + } + } + } + } + } + + ################### + # PHASES + ################### + + max_guest_arrival_delay_time = { months = 8 } + + phases = { + hunt_phase = { + is_predefined = yes + + is_shown = {} + + on_phase_active = { # Fires for every attendee + if = { + limit = { this = scope:host } + scope:activity = { progress_activity_phase_after = { weeks = 6 } } + + trigger_event = { on_action = hunt_start_events } + trigger_event = { + on_action = hunt_outcome_start_events + days = 21 + } + trigger_event = { + on_action = hunt_outcome_complication_events + days = 28 + } + trigger_event = { + on_action = hunt_outcome_end_events + days = 35 + } + scope:activity = { + every_attending_character = { + limit = { is_ai = no } + trigger_event = { + on_action = hunt_random_pulse + days = 7 + } + trigger_event = { + on_action = hunt_random_pulse + days = 14 + } + } + } + } + } + + on_weekly_pulse = { # Fires for every attendee + trigger_event = hunt.0081 # Invalidation + } + + on_end = { # Fires for every attendee + if = { + limit = { + is_alive = yes + trigger_if = { + limit = { + NOT = { + scope:activity = { + has_activity_option = { category = special_type option = hunt_type_falconry } + } + } + } + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host } + } + } + target_weight_modifier_effect = { VALUE = hunt_weight_modifier_value } + } + scope:activity.activity_location = { save_scope_as = activity_location } + if = { + limit = { this = scope:host } + scope:activity = { + random_list = { + 10 = { # Success + trigger = { + # Only fired for legendary if a proxy animal was hunted + trigger_if = { + limit = { + has_activity_option = { category = special_type option = hunt_type_legendary } + } + exists = var:legendary_proxy + } + trigger_if = { + limit = { exists = var:hunt_success } + var:hunt_success = flag:yes + } + } + if = { + limit = { exists = var:hunt_credit_taker } + var:hunt_credit_taker = { save_scope_as = credit_taker } + } + set_variable = { + name = hunt_success + value = flag:yes + } + # Create trophy artifact + scope:host = { + if = { + limit = { + NOT = { exists = scope:activity.var:animal_spared } + } + hunt_create_trophy_effect = yes + } + } + # Prestige etc. + if = { + limit = { exists = scope:newly_created_artifact } + add_activity_log_entry = { + key = hunt_completed_success_log + score = 80 + tags = { complete good } + character = scope:host + show_in_conclusion = yes + artifact = scope:newly_created_artifact + # EFFECT + scope:host = { disburse_hunt_activity_rewards = yes } + } + } + else = { + add_activity_log_entry = { + key = hunt_completed_success_log + score = 80 + tags = { complete good } + character = scope:host + show_in_conclusion = yes + # EFFECT + scope:host = { disburse_hunt_activity_rewards = yes } + } + } + scope:host = { trigger_event = hunt.9001 } + } + 3 = { # Great Success + trigger = { + has_activity_option = { category = special_type option = hunt_type_legendary } + NOT = { exists = var:legendary_proxy } + trigger_if = { + limit = { exists = var:hunt_success } + var:hunt_success = flag:yes + } + } + if = { + limit = { exists = var:hunt_credit_taker } + var:hunt_credit_taker = { save_scope_as = credit_taker } + } + set_variable = { + name = hunt_success + value = flag:yes + } + # Create trophy artifact + save_scope_as = impressive_trophy + add_activity_log_entry = { + key = hunt_completed_success_log + score = 80 + tags = { complete good } + character = scope:host + show_in_conclusion = yes + artifact = scope:newly_created_artifact + + # EFFECT + scope:host = { + end_hunt_mystical_animal_story_cycle_effect = yes + disburse_hunt_activity_rewards = yes + } + } + scope:host = { trigger_event = hunt.4004 } + } + 10 = { # Failure + trigger = { + trigger_if = { + limit = { exists = var:hunt_success } + var:hunt_success = flag:no + } + } + set_variable = { + name = hunt_success + value = flag:no + } + add_activity_log_entry = { + key = hunt_completed_failure_log + score = 80 + tags = { complete bad } + character = scope:host + show_in_conclusion = yes + + # EFFECT + scope:host = { disburse_hunt_activity_rewards = yes } + } + scope:host = { trigger_event = hunt.9002 } + } + } + } + } + } + } + } + + ai_check_interval = 60 + + ai_will_select_province = { + value = 50 + add = { + value = scope:score # Derived from province_score + multiply = 10 + } + } + + ################### + # GUEST HANDLING + ################### + + guest_invite_rules = { + rules = { + 2 = activity_invite_rule_rivals + 2 = activity_invite_rule_lovers + 3 = activity_invite_rule_close_family + 3 = activity_invite_rule_extended_family + 3 = activity_invite_rule_knights + 4 = activity_invite_rule_guests + + # MP + 6 = activity_invite_mp + } + defaults = { + 3 = activity_invite_rule_liege + 3 = activity_invite_rule_vassals + 1 = activity_invite_rule_friends + 2 = activity_invite_rule_glory_hounds + 1 = activity_invite_rule_hunters + 4 = activity_invite_rule_courtiers + 4 = activity_invite_rule_fellow_vassals + } + } + + max_guests = 20 + + can_be_activity_guest = { + is_adult = yes + NOT = { has_trait = incapable } + can_hunt_trigger = yes + in_diplomatic_range = scope:host + } + + host_intents = { + intents = { reduce_stress_intent slay_beast_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent } + default = reduce_stress_intent + player_defaults = { reduce_stress_intent slay_beast_intent } + } + + guest_intents = { + intents = { reduce_stress_intent slay_beast_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent } + default = reduce_stress_intent + player_defaults = { reduce_stress_intent slay_beast_intent } + } + + guest_join_chance = { + base = 10 + base_activity_modifier = yes + + # Scripted Modifiers + activity_guest_shared_ai_accept_modifier = yes + activity_guest_hunt_ai_accept_modifier = yes + } + + ################### + # ACTIVITY-SPECIFIC PULSES + ################### + + pulse_actions = { + entries = { guest_friendship guest_insulted hunt_tracks_character hunt_tracks_option hunt_tracks_dog hunt_tracks_building hunt_hunters_bond hunt_dog_bond hunt_knowledge_sharing hunt_small_game hunt_moh_positive hunt_moh_negative hunt_poetic_inspiration hunt_fervor_gain hunt_distinguished_ability hunt_annoyed_owner hunt_impressive_grounds hunt_eggs_found } + chance_of_no_event = 3 + } + + on_start = { + if = { + limit = { + exists = activity_location.county.var:animal_type + OR = { + AND = { + has_activity_option = { category = special_type option = hunt_type_standard } + activity_location.county = { + OR = { + has_county_modifier = hunt_sighting_standard_modifier + has_county_modifier = hunt_sighting_dangerous_modifier + } + } + } + AND = { + has_activity_option = { category = special_type option = hunt_type_legendary } + activity_location.county = { has_county_modifier = hunt_sighting_legendary_modifier } + } + AND = { + has_activity_option = { category = special_type option = hunt_type_falconry } + activity_location.county = { has_county_modifier = hunt_sighting_falconry_modifier } + } + } + } + set_variable = { + name = animal_type + value = scope:activity.activity_location.county.var:animal_type + } + } + set_variable = { + name = hunt_success_chance + value = hunt_success_chance_value + } + scope:host = { + if = { + limit = { + ai_sociability > 0 + is_ai = yes + } + random = { + chance = { + value = 0.5 # One in 200 hunts + if = { + limit = { + has_trait = lifestyle_hunter + } + add = 1 + } + if = { + limit = { + ai_rationality <= -25 + has_personality_dominant_trigger = yes + } + add = 0.5 + } + } + add_character_flag = hunts_a_lot + } + } + if = { + limit = { + has_character_flag = free_hunt + } + remove_character_flag = free_hunt + } + } + } + allow_zero_guest_invites = yes + + on_enter_passive_state = { + scope:activity = { + if = { + limit = { + NOT = { has_variable = progressed_to_active } + # Everyone who accepted is here + any_attending_character = { + count = all + location = scope:activity.activity_location + } + # There are no open invitations + any_invited_character = { + count = 0 + } + } + set_variable = progressed_to_active + scope:activity = { progress_activity_phase_after = { days = 1 } } + } + } + trigger_event = hunt.0550 + if = { + limit = { + this = scope:host + NOT = { employs_court_position = master_of_hunt_court_position } + involved_activity = { + any_attending_character = { + location = root.location + save_temporary_scope_as = potential_moh + + } + } + can_appoint_char_to_court_position = { CHAR = scope:potential_moh COURT_POS = master_of_hunt_court_position } + } + trigger_event = { + id = hunt.0540 + days = { 3 9 } + } + } + if = { + limit = { + this = scope:host + involved_activity = { + has_activity_option = { category = special_type option = hunt_type_legendary } + } + } + random = { + chance = 5 + trigger_event = { + id = hunt.8540 + days = { 10 12 } + } + } + } + } + + on_enter_active_state = { + if = { + limit = { this = scope:host } + trigger_event = { id = hunt.0110 } + } + trigger_event = { + id = hunt.7200 # Do you murder or not? + days = 3 + } + trigger_event = { + id = hunt.7400 # Do you abduct or not? + days = 3 + } + } + + on_complete = { + # Struggle Catalysts + #fp3_struggle_catalysts_for_activities_effect = yes + + hunt_remove_variables_effect = yes + scope:activity.activity_location = { + if = { + limit = { exists = var:recent_hunt_held } + save_scope_value_as = { + name = recent_hunt_held_count + value = var:recent_hunt_held + } + set_variable = { + name = recent_hunt_held + value = { + value = scope:recent_hunt_held_count + add = 1 + } + years = 4 + } + } + else = { + set_variable = { + name = recent_hunt_held + value = 1 + years = 4 + } + } + } + } +} diff --git a/common/activities/activity_types/pilgrimage.txt b/common/activities/activity_types/pilgrimage.txt index 3efbbf7076..cd2e3c7f07 100644 --- a/common/activities/activity_types/pilgrimage.txt +++ b/common/activities/activity_types/pilgrimage.txt @@ -2118,6 +2118,12 @@ # ambience = "event:/SFX/Events/Backgrounds/town_market_middleeastern_day" #} #Generic holy sites + background = { + trigger = { scope:host = { like_zoroastrianism_religion_trigger = yes } } + texture = "gfx/interface/illustrations/event_scenes/fp3_temple.dds" + environment = "environment_event_fp3_temple" + ambience = "event:/DLC/FP1/SFX/Events/event_temple" + } background = { trigger = { activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } @@ -2155,8 +2161,8 @@ OR = { activity_location.province_owner ?= { OR = { - has_government = clan_government - has_government = tribal_government + government_has_flag = government_is_clan + government_has_flag = government_is_tribal } } activity_location.culture = { has_graphical_steppe_culture_group_trigger = yes } diff --git a/common/activities/activity_types/tour.txt b/common/activities/activity_types/tour.txt index a026dbeb60..341ea44b91 100644 --- a/common/activities/activity_types/tour.txt +++ b/common/activities/activity_types/tour.txt @@ -810,7 +810,6 @@ } } is_valid = { - gold > minor_gold_value custom_tooltip = { text = more_than_5_courtiers any_courtier_or_guest = { count > 5 } @@ -845,7 +844,6 @@ } tour_entourage_grand = { is_valid = { - gold > medium_gold_value custom_tooltip = { text = more_than_10_courtiers any_courtier_or_guest = { count > 10 } @@ -978,9 +976,6 @@ } tour_luxuries_normal = { default = yes - is_valid = { - gold > tiny_gold_value - } cost = { gold = { add = { @@ -1012,7 +1007,6 @@ } tour_luxuries_good = { is_valid = { - gold > tiny_gold_value NOT = { government_has_flag = government_is_tribal } } @@ -1076,7 +1070,6 @@ tour_furniture_normal = { default = yes is_valid = { - gold > medium_gold_value NOT = { government_has_flag = government_is_tribal } } @@ -1116,7 +1109,6 @@ } tour_furniture_good = { is_valid = { - gold > major_gold_value NOT = { government_has_flag = government_is_tribal } } @@ -2792,7 +2784,7 @@ activity_location = { is_coastal = yes province_owner ?= { - has_government = tribal_government + government_has_flag = government_is_tribal } } } @@ -2854,7 +2846,7 @@ background = { #FP1 Tribal trigger = { activity_location.culture ?= { has_building_gfx = norse_building_gfx } - activity_location.barony.holder = { has_government = tribal_government } + activity_location.barony.holder = { government_has_flag = government_is_tribal } } texture = "gfx/interface/illustrations/event_scenes/fp1_throneroom_tribal.dds" environment = "environment_event_fp1_throneroom_tribal" @@ -2871,7 +2863,7 @@ background = { #FP1 Non-Tribal trigger = { activity_location.culture ?= { has_building_gfx = norse_building_gfx } - activity_location.barony.holder = { NOT = { has_government = tribal_government } } + activity_location.barony.holder = { NOT = { government_has_flag = government_is_tribal } } } texture = "gfx/interface/illustrations/event_scenes/fp1_throneroom_nontribal.dds" environment = "environment_event_fp1_throneroom_nontribal" diff --git a/common/activities/activity_types/tournament.txt b/common/activities/activity_types/tournament.txt index 16e2dc0d79..c6d7a4c742 100644 --- a/common/activities/activity_types/tournament.txt +++ b/common/activities/activity_types/tournament.txt @@ -1251,10 +1251,24 @@ locale_background = { #MENA Background trigger = { - activity_location.culture = { + activity_location = { OR = { - has_graphical_mena_culture_group_trigger = yes - has_graphical_african_culture_group_trigger = yes + terrain = desert + terrain = desert_mountains + terrain = drylands + terrain = oasis + terrain = floodplains + AND = { + OR = { + terrain = mountains + terrain = hills + terrain = wetlands + } + #OR = { + # geographical_region = world_middle_east + geographical_region = world_africa_east + #} + } } } } @@ -1269,20 +1283,33 @@ activity_location.culture = { has_graphical_india_culture_group_trigger = yes } - } - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_europe_farmland.dds" - environment = "environment_jerusalem" - ambience = "event:/DLC/EP2/SFX/Ambience/2D/ep2_amb_2d_tournament_locale" - music = "tournamentindia_cue" - } - - locale_background = { #Tribal Background - trigger = { - activity_location.culture = { - has_graphical_india_culture_group_trigger = yes + activity_location = { + OR = { + terrain = jungle + AND = { + OR = { + terrain = mountains + terrain = forest + terrain = hills + terrain = plains + terrain = wetlands + terrain = farmlands + } + #OR = { + geographical_region = world_india + # geographical_region = world_burma + #} + } + AND = { + terrain = forest + #OR = { + geographical_region = world_africa_west + #} + } + } } } - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_europe_farmland.dds" + texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_jungle.dds" environment = "environment_jerusalem" ambience = "event:/DLC/EP2/SFX/Ambience/2D/ep2_amb_2d_tournament_locale" music = "tournamentindia_cue" @@ -1290,13 +1317,6 @@ locale_background = { #Western Background trigger = { - activity_location.culture = { - NOR = { - has_graphical_india_culture_group_trigger = yes - has_graphical_mena_culture_group_trigger = yes - has_graphical_african_culture_group_trigger = yes - } - } } texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_europe_farmland.dds" environment = "environment_jerusalem" diff --git a/common/activities/activity_types/wedding.txt b/common/activities/activity_types/wedding.txt index 89d70da054..c1a8110868 100644 --- a/common/activities/activity_types/wedding.txt +++ b/common/activities/activity_types/wedding.txt @@ -411,6 +411,58 @@ } scope:host = { trigger_event = activity_system.0100 } } + #Get rid of temporary modifiers + if = { + limit = { + scope:activity = { + any_attending_character = { + has_character_modifier = wedding_jitters + } + } + } + scope:activity = { + every_attending_character = { + limit = { + has_character_modifier = wedding_jitters + } + remove_character_modifier = wedding_jitters + } + } + } + if = { + limit = { + scope:activity = { + any_attending_character = { + has_character_modifier = wedding_confident_groom + } + } + } + scope:activity = { + every_attending_character = { + limit = { + has_character_modifier = wedding_confident_groom + } + remove_character_modifier = wedding_confident_groom + } + } + } + if = { + limit = { + scope:activity = { + any_attending_character = { + has_character_modifier = wedding_confident_bride + } + } + } + scope:activity = { + every_attending_character = { + limit = { + has_character_modifier = wedding_confident_bride + } + remove_character_modifier = wedding_confident_bride + } + } + } } on_host_death = { diff --git a/common/activities/pulse_actions/pilgrimage_actions.txt b/common/activities/pulse_actions/pilgrimage_actions.txt index b0d56797ad..8cf529b9ba 100644 --- a/common/activities/pulse_actions/pilgrimage_actions.txt +++ b/common/activities/pulse_actions/pilgrimage_actions.txt @@ -152,6 +152,15 @@ apa_prayer = { #Solitary Prayer scope:first = { add_piety = medium_piety_gain + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } } } } @@ -346,6 +355,15 @@ apa_silent_contemplation = { scope:first = { add_piety = minor_piety_value + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } stress_impact = { base = minor_stress_impact_loss } @@ -391,6 +409,15 @@ apa_spiritual_journey = { scope:first = { add_piety = minor_piety_value + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } add_opinion = { modifier = respect_opinion opinion = 20 @@ -399,6 +426,15 @@ apa_spiritual_journey = { } scope:second = { add_piety = minor_piety_value + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } add_opinion = { modifier = respect_opinion opinion = 20 @@ -912,6 +948,15 @@ apa_studying_scripture = { scope:first = { add_learning_lifestyle_xp = medium_lifestyle_xp + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } } } } @@ -1147,6 +1192,15 @@ apa_comet_sighted = { character = scope:first scope:first = { + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } stress_impact = { base = minor_stress_impact_loss } @@ -1174,6 +1228,15 @@ apa_good_omen = { scope:first = { add_piety = minor_piety_gain + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } stress_impact = { base = minor_stress_impact_loss } diff --git a/common/artifacts/blueprints/00_reforge.txt b/common/artifacts/blueprints/00_reforge.txt index 77d6f4cd85..f0b142bf6e 100644 --- a/common/artifacts/blueprints/00_reforge.txt +++ b/common/artifacts/blueprints/00_reforge.txt @@ -1577,3 +1577,177 @@ santiago_aquamanile_to_court = { out_type = pedestal out_visuals = fp2_4p_chess_board } + +incense_burner_sculpture_to_court = { + in_type = miscellaneous_when_not_court + in_visuals = fp3_incense_burner_sculpture + out_type = sculpture + out_visuals = fp3_incense_burner_sculpture +} + +fp3_ancient_drinking_vessel = { + in_type = miscellaneous_when_not_court + in_visuals = persian_drinking_vessel + out_type = goblet + out_visuals = persian_drinking_vessel +} + +fp3_sassanian_sword_to_court = { + in_type = regalia + in_visuals = sassanian_sword + out_type = pedestal + out_visuals = sassanian_sword_pedestal + + disallowed_modifiers = { + prowess + prowess_no_portrait + knight_effectiveness_mult + tolerance_advantage_mod + controlled_province_advantage + levy_reinforcement_rate + levy_reinforcement_rate_same_faith + raid_speed + heavy_cavalry_toughness_mult + heavy_infantry_toughness_mult + plains_advantage + farmlands_advantage + hills_advantage + mountains_advantage + desert_advantage + desert_mountains_advantage + oasis_advantage + jungle_advantage + forest_advantage + taiga_advantage + wetlands_advantage + steppe_advantage + floodplains_advantage + drylands_advantage + attraction_opinion + owned_hostile_scheme_success_chance_add + owned_personal_scheme_success_chance_add + owned_scheme_secrecy_add + hostile_scheme_power_add + personal_scheme_power_add + seduce_scheme_power_mult + hostile_scheme_resistance_add + fertility + health + } + + replacement_modifiers = { + common = { + artifact_powerful_vassal_opinion_1_modifier + artifact_monthly_prestige_gain_per_dread_add_1_modifier + artifact_dread_gain_mult_1_modifier + artifact_dread_baseline_add_1_modifier + artifact_courtier_and_guest_opinion_1_modifier + } + masterwork = { + artifact_monthly_prestige_gain_per_dread_add_2_modifier + artifact_powerful_vassal_opinion_1_modifier + artifact_dread_gain_mult_1_modifier + artifact_dread_baseline_add_1_modifier + artifact_courtier_and_guest_opinion_1_modifier + artifact_stress_gain_1_modifier + } + famed = { + artifact_powerful_vassal_opinion_2_modifier + artifact_monthly_prestige_gain_per_dread_add_3_modifier + artifact_dread_gain_mult_2_modifier + artifact_dread_baseline_add_2_modifier + artifact_courtier_and_guest_opinion_2_modifier + artifact_stress_gain_1_modifier + } + illustrious = { + artifact_powerful_vassal_opinion_3_modifier + artifact_powerful_vassal_opinion_4_modifier + artifact_monthly_prestige_gain_per_dread_add_4_modifier + artifact_dread_gain_mult_3_modifier + artifact_dread_baseline_add_2_modifier + artifact_courtier_and_guest_opinion_3_modifier + artifact_courtier_and_guest_opinion_4_modifier + artifact_stress_gain_2_modifier + } + } +} + +fp3_replica_sassanian_sword_to_court = { + in_type = sword + in_visuals = sassanian_sword + out_type = pedestal + out_visuals = sassanian_sword_pedestal + + disallowed_modifiers = { + prowess + prowess_no_portrait + knight_effectiveness_mult + tolerance_advantage_mod + controlled_province_advantage + levy_reinforcement_rate + levy_reinforcement_rate_same_faith + raid_speed + heavy_cavalry_toughness_mult + heavy_infantry_toughness_mult + plains_advantage + farmlands_advantage + hills_advantage + mountains_advantage + desert_advantage + desert_mountains_advantage + oasis_advantage + jungle_advantage + forest_advantage + taiga_advantage + wetlands_advantage + steppe_advantage + floodplains_advantage + drylands_advantage + attraction_opinion + owned_hostile_scheme_success_chance_add + owned_personal_scheme_success_chance_add + owned_scheme_secrecy_add + hostile_scheme_power_add + personal_scheme_power_add + seduce_scheme_power_mult + hostile_scheme_resistance_add + fertility + health + } + + replacement_modifiers = { + common = { + artifact_powerful_vassal_opinion_1_modifier + artifact_monthly_prestige_gain_per_dread_add_1_modifier + artifact_dread_gain_mult_1_modifier + artifact_dread_baseline_add_1_modifier + artifact_courtier_and_guest_opinion_1_modifier + } + masterwork = { + artifact_monthly_prestige_gain_per_dread_add_2_modifier + artifact_powerful_vassal_opinion_1_modifier + artifact_dread_gain_mult_1_modifier + artifact_dread_baseline_add_1_modifier + artifact_courtier_and_guest_opinion_1_modifier + artifact_stress_gain_1_modifier + } + famed = { + artifact_powerful_vassal_opinion_2_modifier + artifact_monthly_prestige_gain_per_dread_add_3_modifier + artifact_dread_gain_mult_2_modifier + artifact_dread_baseline_add_2_modifier + artifact_courtier_and_guest_opinion_2_modifier + artifact_stress_gain_1_modifier + } + illustrious = { + artifact_powerful_vassal_opinion_3_modifier + artifact_powerful_vassal_opinion_4_modifier + artifact_monthly_prestige_gain_per_dread_add_4_modifier + artifact_dread_gain_mult_3_modifier + artifact_dread_baseline_add_2_modifier + artifact_courtier_and_guest_opinion_3_modifier + artifact_courtier_and_guest_opinion_4_modifier + artifact_stress_gain_2_modifier + } + } +} diff --git a/common/artifacts/templates/00_event_templates.txt b/common/artifacts/templates/00_event_templates.txt index 6faf7685d7..dfed138d17 100644 --- a/common/artifacts/templates/00_event_templates.txt +++ b/common/artifacts/templates/00_event_templates.txt @@ -94,3 +94,19 @@ mysterious_puzzle_template = { monthly_prestige = 0.05 } } + +fp3_zoroastrian_brazier_template = { + can_equip = { + always = yes + } + + # Can this character benefit from the full modifiers of the artifact? + can_benefit = { + zoroastrian_or_syncretic_with_eastern_trigger = { CHARACTER = root } + } + + # If a given character does not pass the "can_benefit" trigger then this modifier will be applied instead. + fallback = { + monthly_prestige = 0.2 + } +} diff --git a/common/artifacts/visuals/00_court_artifacts.txt b/common/artifacts/visuals/00_court_artifacts.txt index 99d88d1a8a..d20f467406 100644 --- a/common/artifacts/visuals/00_court_artifacts.txt +++ b/common/artifacts/visuals/00_court_artifacts.txt @@ -30,6 +30,7 @@ trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -39,6 +40,7 @@ trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -158,6 +160,7 @@ throne = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -168,6 +171,7 @@ throne = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -349,6 +353,7 @@ tapestry = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -358,6 +363,7 @@ tapestry = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -367,6 +373,7 @@ tapestry = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -664,6 +671,7 @@ small_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -674,6 +682,7 @@ small_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -684,6 +693,7 @@ small_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -694,6 +704,7 @@ small_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -752,6 +763,15 @@ small_box = { } reference = ep1_western_box_small_fancy_02_a_entity } + + # FP3: Iranian + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } + # Since there is only one variety, enable it regardless of rarity + } + reference = fp3_artifact_Il_Khanid_casket_01_a_entity + } } medium_box = { @@ -836,6 +856,7 @@ medium_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -846,6 +867,7 @@ medium_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -856,6 +878,7 @@ medium_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -866,6 +889,7 @@ medium_box = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -920,6 +944,8 @@ goblet = { icon = "artifact_goblet.dds" pedestal = "tall" default_type = pedestal + + # Indian asset = { trigger = { exists = scope:contest_type # Prize @@ -970,6 +996,8 @@ goblet = { } reference = ep1_indian_goblet_basic_01_b_entity } + + # Mediterranean asset = { trigger = { OR = { @@ -1002,10 +1030,13 @@ goblet = { } reference = ep1_mediterranean_goblet_basic_01_b_entity } + + # MENA asset = { - trigger = { + trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } NOT = { exists = scope:contest_type } # Not a Prize @@ -1013,17 +1044,20 @@ goblet = { reference = ep1_mena_goblet_basic_01_a_entity } asset = { - trigger = { + trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } NOT = { exists = scope:contest_type } # Not a Prize } reference = ep1_mena_goblet_basic_01_b_entity } + + # Western asset = { - trigger = { + trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = western_building } artifact_should_use_gfx_type_trigger = { TYPE = norse_building } @@ -1033,7 +1067,7 @@ goblet = { reference = ep1_western_goblet_basic_01_a_entity } asset = { - trigger = { + trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = western_building } artifact_should_use_gfx_type_trigger = { TYPE = norse_building } @@ -1155,6 +1189,7 @@ wall_shield = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1451,6 +1486,7 @@ scroll = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1460,6 +1496,7 @@ scroll = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mediterranean_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = iberian_building } } } @@ -1488,6 +1525,7 @@ pouch = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1533,6 +1571,7 @@ urn = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } NOT = { exists = scope:contest_type } @@ -1619,6 +1658,7 @@ book = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1628,6 +1668,7 @@ book = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1637,6 +1678,7 @@ book = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -1647,6 +1689,7 @@ book = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -1731,6 +1774,7 @@ reliquary = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1740,6 +1784,7 @@ reliquary = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -1882,6 +1927,7 @@ flask = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -1892,6 +1938,7 @@ flask = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_low_rarity_trigger = yes @@ -1902,6 +1949,7 @@ flask = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -1912,6 +1960,7 @@ flask = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } artifact_high_rarity_trigger = yes @@ -2032,6 +2081,10 @@ axe_court = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = western_unit } } reference = ep1_western_axe_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_axe_01_a_entity #TODO FP3 CD: Change? + } } hammer_court = { @@ -2065,6 +2118,10 @@ hammer_court = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = ep1_western_hammer_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_hammer_01_a_entity #TODO FP3 CD: Change? + } } spear_court = { @@ -2098,6 +2155,10 @@ spear_court = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = ep1_western_spear_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_spear_01_a_entity #TODO FP3 CD: Change? + } } mace_court = { @@ -2160,6 +2221,10 @@ mace_court = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = western_unit } } reference = ep1_western_mace_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_mace_01_a_entity #TODO FP3 CD: Change? + } } dagger_court = { @@ -2193,6 +2258,10 @@ dagger_court = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = ep1_western_dagger_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_indian_dagger_01_a_entity #TODO FP3 CD: Change? + } asset = { # Do not believe the lies that this uses an inverse load order, lower overwrites higher! trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iberian_muslim_unit } } reference = fp2_artifact_iberian_muslim_dagger_01_a_entity @@ -2295,6 +2364,10 @@ sword_court = { } reference = ep1_byzantine_sword_01_a_entity } + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_sword_01_a_entity #TODO FP3 CD: Change? + } # FP2 - LATER ITEMS OVERWRITE EARLIER ONES. NOT THE OTHER WAY AROUND. - h asset = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iberian_muslim_unit } } @@ -2541,11 +2614,8 @@ crown_court = { } #Sassanid asset = { - trigger = { - artifact_use_mena_building_visuals_trigger = yes #this trigger cuts out the maker - scope:owner = { - culture = { like_heritage_iranian_trigger = yes } - } + trigger = { #TODO FP3 CD: Go back and make this crown more exclusive (for example to Empires and non-muslims) if we add more appropriate Persian crowns + artifact_use_iranian_building_visuals_trigger = yes #this trigger cuts out the maker } reference = male_headgear_secular_ep1_sassanid_crown_artifact_entity } @@ -2799,6 +2869,7 @@ armor_court = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_unit } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } #TODO FP3 CD: Go back and change if we add armors artifact_should_use_gfx_type_trigger = { TYPE = african_unit } } } @@ -2883,6 +2954,7 @@ tiny_throne_trinket = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -2892,6 +2964,7 @@ tiny_throne_trinket = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -2940,3 +3013,55 @@ skull_goblet = { asset = ep1_trophy_skull_goblet_entity pedestal = "tall" } + +oxus_bracelet = { + icon = "artifact_oxus_bracelet.dds" + asset = fp3_artifact_oxus_bracelet_01_a_entity + pedestal = "tall" +} + +persian_drinking_vessel = { + icon = "artifact_drinking_vessel.dds" + pedestal = "tall" + default_type = pedestal + + # FP3: Iranian + asset = { + trigger = { + #artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } + artifact_low_rarity_trigger = yes + } + reference = fp3_artifact_persian_drinking_vessel_01_a_entity + } + asset = { + trigger = { + #artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } + artifact_low_rarity_trigger = yes + } + reference = fp3_artifact_persian_drinking_vessel_01_b_entity + } + asset = { + trigger = { + #artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } + artifact_high_rarity_trigger = yes + } + reference = fp3_artifact_persian_drinking_vessel_01_c_entity + } +} + +sassanian_sword_pedestal = { + icon = "artifact_sassanian_sword.dds" + asset = fp3_artifact_legendary_sword_01_a_entity + default_type = pedestal +} + +sassanian_sword = { + icon = "artifact_sassanian_sword.dds" + asset = fp3_sassanian_sword_01_a_portrait_entity + default_type = sword +} + +fp3_incense_burner_sculpture = { + icon = "artifact_incense_burner_sculpture.dds" + asset = fp3_artifact_incense_burner_sculpture_01_a_entity +} diff --git a/common/artifacts/visuals/00_historical.txt b/common/artifacts/visuals/00_historical.txt index 7118ca7e56..ac0d51aff5 100644 --- a/common/artifacts/visuals/00_historical.txt +++ b/common/artifacts/visuals/00_historical.txt @@ -54,8 +54,8 @@ throne_turquoise = { asset = ep1_indian_throne_fancy_01_a_entity } throne_peacock = { - icon = "artifact_throneroom.dds" - asset = ep1_mena_throne_fancy_01_a_entity + icon = "artifact_throne_peacock.dds" + asset = fp3_throne_peacock_01_a_entity } wall_banner_kaviani = { default_type = wall_big @@ -113,6 +113,7 @@ pedestal_christian_relic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -122,6 +123,7 @@ pedestal_christian_relic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -170,6 +172,7 @@ pedestal_islamic_relic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } artifact_should_use_gfx_type_trigger = { TYPE = iberian_building } } @@ -180,6 +183,7 @@ pedestal_islamic_relic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } artifact_should_use_gfx_type_trigger = { TYPE = iberian_building } } @@ -226,6 +230,7 @@ pedestal_buddhism_relic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -290,6 +295,7 @@ pedestal_branch_relic_zoroastr = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -299,6 +305,7 @@ pedestal_branch_relic_zoroastr = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -356,6 +363,7 @@ pedestal_branch_relic_germanic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -365,6 +373,7 @@ pedestal_branch_relic_germanic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -422,6 +431,7 @@ pedestal_branch_relic_slavic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -431,6 +441,7 @@ pedestal_branch_relic_slavic = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -488,6 +499,7 @@ pedestal_branch_relic_boog = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -497,6 +509,7 @@ pedestal_branch_relic_boog = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -539,8 +552,10 @@ pedestal_branch_relic_hinduism = { } asset = { trigger = { - artifact_should_use_gfx_type_trigger = { TYPE = mena_building } - artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } + OR = { + artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } #TODO FP3 CD Change if we have bespoke urn + } } reference = ep1_mena_urn_fancy_01_a_entity } @@ -607,6 +622,7 @@ head = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -616,6 +632,7 @@ head = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } diff --git a/common/artifacts/visuals/00_personal_misc.txt b/common/artifacts/visuals/00_personal_misc.txt index ea63532b5d..30ea7093ac 100644 --- a/common/artifacts/visuals/00_personal_misc.txt +++ b/common/artifacts/visuals/00_personal_misc.txt @@ -475,6 +475,13 @@ armor = { } reference = m_clothes_sec_mena_war_nob_01_artifact_entity } + #Iranian + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = m_clothes_sec_fp3_iranian_war_nob_01_entity + } #ERE asset = { trigger = { @@ -576,6 +583,7 @@ flowers = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } @@ -585,6 +593,7 @@ flowers = { trigger = { OR = { artifact_should_use_gfx_type_trigger = { TYPE = mena_building } + artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } artifact_should_use_gfx_type_trigger = { TYPE = steppe_building } } } diff --git a/common/artifacts/visuals/00_weapon_visuals.txt b/common/artifacts/visuals/00_weapon_visuals.txt index 528ac1e0e6..ff9f940bdb 100644 --- a/common/artifacts/visuals/00_weapon_visuals.txt +++ b/common/artifacts/visuals/00_weapon_visuals.txt @@ -87,6 +87,12 @@ } reference = ep1_western_axe_01_a_portrait_entity } + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = ep1_mena_axe_01_a_portrait_entity #TODO FP3 CD: Change + } } hammer = { @@ -130,6 +136,12 @@ hammer = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = ep1_western_hammer_01_a_portrait_entity } + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = ep1_mena_hammer_01_a_portrait_entity #TODO FP3 CD: Change + } } spear = { @@ -166,6 +178,12 @@ spear = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = ep1_western_spear_01_a_portrait_entity } + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = ep1_mena_spear_01_a_portrait_entity #TODO FP3 CD: Change + } } mace = { @@ -243,6 +261,12 @@ mace = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = western_unit } } reference = ep1_western_mace_01_a_portrait_entity } + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = ep1_mena_mace_01_a_portrait_entity #TODO FP3 CD: Change + } } dagger = { @@ -289,6 +313,12 @@ dagger = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = eastern_unit } } reference = portrait_prop_western_dagger_01_entity } + asset = { + trigger = { + artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } + } + reference = ep1_indian_dagger_01_a_portrait_entity #TODO FP3 CD: Change + } } sword = { @@ -321,6 +351,16 @@ sword = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iberian_christian_unit } } reference = fp2_iberian_christian_sword_01_a_portrait_entity } + #Iranian for FP3 + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_unit } } + reference = ep1_mena_sword_01_a_portrait_entity #TODO FP3 CD: look into changing + } + # African + asset = { + trigger = { artifact_should_use_gfx_type_trigger = { TYPE = african_unit } } + reference = ep1_mena_sword_01_a_portrait_entity # In cases where we do not have a unique model, use closest visual neighbor + } # Indian asset = { trigger = { artifact_should_use_gfx_type_trigger = { TYPE = indian_unit } } diff --git a/common/buildings/00_castle_buildings.txt b/common/buildings/00_castle_buildings.txt index 213c6acd68..c040619ba2 100644 --- a/common/buildings/00_castle_buildings.txt +++ b/common/buildings/00_castle_buildings.txt @@ -4,6 +4,7 @@ @holding_illustration_mediterranean = "gfx/interface/illustrations/holding_types/castle_mediterranean.dds" @holding_illustration_norse = "gfx/interface/illustrations/holding_types/fp1_castle_norse.dds" @holding_illustration_iberian= "gfx/interface/illustrations/holding_types/fp2_castle_iberian.dds" +@holding_illustration_iranian = "gfx/interface/illustrations/holding_types/fp3_castle_iranian.dds" castle_01 = { construction_time = slow_construction_time @@ -196,6 +197,41 @@ castle_01 = { graphical_regions = { graphical_mediterranean } } + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + asset = { + type = pdxmesh + name = "building_mena_castle_01_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = pdxmesh + name = "building_indian_castle_01_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } can_construct_potential = { barony_cannot_construct_holding = no } @@ -263,6 +299,8 @@ castle_01 = { flag = castle + type_icon = "icon_building_ramparts.dds" + on_complete = { county.holder = { if = { @@ -492,8 +530,44 @@ castle_02 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } - - + + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 1 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 1 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + asset = { + type = pdxmesh + name = "building_mena_castle_02_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = pdxmesh + name = "building_indian_castle_02_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + can_construct_potential = { building_requirement_civilized = yes } @@ -791,6 +865,43 @@ castle_03 = { graphical_regions = { graphical_mediterranean } } + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_03_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_03_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + asset = { + type = pdxmesh + name = "building_mena_castle_03_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = pdxmesh + name = "building_indian_castle_03_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + can_construct_potential = { building_requirement_civilized = yes } @@ -1079,6 +1190,43 @@ castle_04 = { graphical_regions = { graphical_mediterranean } } + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_04_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 3 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_castle_04_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 3 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + asset = { + type = pdxmesh + name = "building_mena_castle_04_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = pdxmesh + name = "building_indian_castle_04_mesh" + illustration = @holding_illustration_mena + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Castle/mena_castle" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + can_construct_potential = { building_requirement_civilized = yes } @@ -1139,8 +1287,6 @@ castle_04 = { flag = castle - type_icon = "icon_building_ramparts.dds" - on_complete = { barony.holder = { if = { diff --git a/common/buildings/00_city_buildings.txt b/common/buildings/00_city_buildings.txt index 25e503d9b0..1fee98127e 100644 --- a/common/buildings/00_city_buildings.txt +++ b/common/buildings/00_city_buildings.txt @@ -4,6 +4,7 @@ @holding_illustration_mena = "gfx/interface/illustrations/holding_types/city_mena.dds" @holding_illustration_norse = "gfx/interface/illustrations/holding_types/fp1_city_norse.dds" @holding_illustration_iberian = "gfx/interface/illustrations/holding_types/fp2_city_iberian.dds" +@holding_illustration_iranian = "gfx/interface/illustrations/holding_types/fp3_city_iranian.dds" city_01 = { construction_time = slow_construction_time @@ -230,6 +231,27 @@ city_01 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } + + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_city_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_city_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 0 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } can_construct_potential = { barony_cannot_construct_holding = no @@ -585,6 +607,26 @@ city_02 = { graphical_regions = { graphical_mediterranean } } + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_city_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 1} } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_city_01_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 1} } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } can_construct_potential = { building_requirement_civilized = yes @@ -913,6 +955,27 @@ city_03 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } + + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_city_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_city_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } can_construct_potential = { building_requirement_civilized = yes @@ -1234,7 +1297,27 @@ city_04 = { graphical_regions = { graphical_mediterranean } } - + ### FP3 Iranian ### + asset = { + type = pdxmesh + name = "fp3_building_persian_city_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + + asset = { + type = pdxmesh + name = "fp3_building_persian_city_02_a_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @holding_illustration_iranian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/City/mena_city" soundparameter = { "Tier" = 2 } } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_india } + } + can_construct_potential = { building_requirement_civilized = yes } diff --git a/common/buildings/00_duchy_capital_buildings.txt b/common/buildings/00_duchy_capital_buildings.txt index 997eb470f5..7e18287bbf 100644 --- a/common/buildings/00_duchy_capital_buildings.txt +++ b/common/buildings/00_duchy_capital_buildings.txt @@ -14,7 +14,7 @@ royal_garden_01 = { can_construct_potential = { building_requirement_castle_city_church = { LEVEL = 01 } building_requirement_civilized = yes - culture = { has_cultural_parameter = enable_garden_duchy_building } + county.holder.culture = { has_cultural_parameter = enable_garden_duchy_building } NOR = { terrain = desert_mountains terrain = mountains @@ -51,7 +51,7 @@ royal_garden_01 = { next_building = royal_garden_02 - type_icon = "icon_building_royal_forest.dds" + type_icon = "icon_building_royal_gardens.dds" type = duchy_capital @@ -78,10 +78,8 @@ royal_garden_02 = { } can_construct_showing_failures_only = { - culture = { - has_innovation = innovation_windmills - has_cultural_parameter = enable_garden_duchy_building - } + county.holder.culture = { has_cultural_parameter = enable_garden_duchy_building } + culture = { has_innovation = innovation_windmills } } is_enabled = { @@ -128,10 +126,8 @@ royal_garden_03 = { } can_construct_showing_failures_only = { - culture = { - has_innovation = innovation_cranes - has_cultural_parameter = enable_garden_duchy_building - } + county.holder.culture = { has_cultural_parameter = enable_garden_duchy_building } + culture = { has_innovation = innovation_cranes } } is_enabled = { @@ -2018,3 +2014,70 @@ great_megalith_01 = { flag = fully_upgraded_duchy_capital_building } + + +################## +# Tower of Silence +################## +tower_of_silence_01 = { + + construction_time = very_quick_construction_time + + type_icon = "icon_building_tower_of_silence.dds" + + can_construct_potential = { + building_requirement_civilized = yes + building_requirement_castle_city_church = { LEVEL = 01 } + scope:holder = { + faith = { has_doctrine_parameter = can_build_towers_of_silence_active } + } + } + + is_enabled = { + custom_tooltip = { + text = tower_of_silence_01.tt.county_not_tos_users + county.faith = { has_doctrine_parameter = can_build_towers_of_silence_active } + } + custom_tooltip = { + text = tower_of_silence_01.tt.liege_not_approve_of_burial + scope:holder.liege ?= { + faith = { + NOT = { has_doctrine_parameter = can_build_towers_of_silence_active } + } + } + } + county.holder = { + has_title = prev.duchy + faith = { has_doctrine_parameter = can_build_towers_of_silence_active } + } + } + show_disabled = yes + + cost_gold = normal_building_tier_1_cost + + character_modifier = { + same_faith_opinion = 10 + zealot_opinion = 10 + zealot_tax_contribution_mult = 0.2 + zealot_levy_contribution_mult = 0.2 + monthly_piety = 0.5 + } + + duchy_capital_county_modifier = { + county_opinion_add = 30 + monthly_county_control_change_add = 0.25 + } + + ai_value = { + base = 100 + # Fill all building slots before going for duchy buildings + modifier = { + factor = 0 + free_building_slots > 0 + } + } + + type = duchy_capital + + flag = fully_upgraded_duchy_capital_building +} diff --git a/common/buildings/00_special_buildings.txt b/common/buildings/00_special_buildings.txt index 0ff696c941..5d53d2338a 100644 --- a/common/buildings/00_special_buildings.txt +++ b/common/buildings/00_special_buildings.txt @@ -138,6 +138,75 @@ holy_site_mosque_01 = { flag = travel_point_of_interest_religious } +holy_site_fire_temple_01 = { + + asset = { + type = entity + name = "building_special_cathedral_zoroastrian_01_a_entity" + } + + construction_time = very_slow_construction_time + + type_icon = "icon_structure_great_fire_temple.dds" + + can_construct_potential = { + building_requirement_civilized = yes + } + + can_construct = { + custom_description = { + text = holy_site_building_trigger + barony = { + is_holy_site_of = scope:holder.faith + } + } + scope:holder = { + culture = { + has_innovation = innovation_crop_rotation + } + } + } + + is_enabled = { + custom_description = { + text = holy_site_building_trigger + barony = { + is_holy_site_of = scope:holder.faith + } + } + } + + cost_gold = 1000 + + character_modifier = { + monthly_piety = 0.25 + monthly_dynasty_prestige_mult = 0.05 + domain_tax_different_faith_mult = 0.15 + levy_reinforcement_rate_same_faith = 0.15 + monthly_county_control_change_factor = 0.05 + } + + county_modifier = { + tax_mult = 0.2 + development_growth_factor = 0.2 + development_growth = 0.1 + } + + province_modifier = { + monthly_income = 2 + } + + ai_value = { + base = 100 + modifier = { # Fill all building slots before going for special buildings + factor = 0 + free_building_slots > 0 + } + } + + type = special +} + holy_site_pagan_grand_temple_01 = { asset = { @@ -659,3 +728,4 @@ special_greenhouse_01 = { } # Warcraft + diff --git a/common/buildings/00_standard_economy_buildings.txt b/common/buildings/00_standard_economy_buildings.txt index 14042fb5ee..5832046209 100644 --- a/common/buildings/00_standard_economy_buildings.txt +++ b/common/buildings/00_standard_economy_buildings.txt @@ -17,6 +17,7 @@ # Caravanserai - Late Game Building - Massive Tax, Defender Advantage, Dev Growth % and flat value, MaA maintenance and Merc hire cost # Windmills - Late Game Building - Massive Tax, Supply Limit, Holding Taxes, Dev Growth % and flat value # Watermills - Late Game Building - Massive Tax, Supply Limit, Building and Holding construction cost reduction, Holding Taxes, Dev Growth % and flat value +# Qanats - Cultural Building - Dev Growth % and flat value, Supply Limit, Travel bonus ### caravanserai @@ -6197,3 +6198,384 @@ quarries_08 = { ai_economical_building_preference_modifier = yes } } + + +# Qanats + +qanats_01 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 01 } + culture = { + has_cultural_parameter = unlocks_qanat_building + } + } + + is_enabled = { + is_county_capital = yes + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_1_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_1 + supply_limit = normal_building_supply_limit_tier_1 + } + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_1 + development_growth = good_building_development_growth_tier_1 + travel_danger = -1 + } + + next_building = qanats_02 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 20 + ai_tier_1_building_modifier = yes + ai_tier_1_economical_building_preference_modifier = yes + ai_general_building_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_02 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 01 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_2_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_2 + supply_limit = normal_building_supply_limit_tier_2 + } + + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_2 + development_growth = good_building_development_growth_tier_2 + travel_danger = -2 + } + + next_building = qanats_03 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 9 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_03 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 02 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_3_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_3 + supply_limit = normal_building_supply_limit_tier_3 + build_speed = normal_building_build_speed_tier_3 + } + + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_3 + development_growth = good_building_development_growth_tier_3 + travel_danger = -3 + } + + next_building = qanats_04 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 8 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_04 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 02 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_4_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_4 + supply_limit = normal_building_supply_limit_tier_4 + build_speed = normal_building_build_speed_tier_4 + } + + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_4 + development_growth = good_building_development_growth_tier_4 + travel_danger = -4 + } + + next_building = qanats_05 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 7 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_05 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 03 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_5_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_5 + supply_limit = normal_building_supply_limit_tier_5 + build_speed = normal_building_build_speed_tier_5 + } + + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_5 + development_growth = good_building_development_growth_tier_5 + travel_danger = -5 + } + + effect_desc = unlocks_cereal_fields_and_orchards + + next_building = qanats_06 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 6 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_06 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 03 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_6_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_6 + supply_limit = normal_building_supply_limit_tier_6 + build_speed = normal_building_build_speed_tier_6 + } + + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_6 + development_growth = good_building_development_growth_tier_6 + travel_danger = -6 + } + + effect_desc = unlocks_cereal_fields_and_orchards + + next_building = qanats_07 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 5 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_07 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 04 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_7_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_7 + supply_limit = normal_building_supply_limit_tier_7 + build_speed = normal_building_build_speed_tier_7 + } + + character_modifier = { + negate_health_penalty_add = 0.1 + } + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_7 + development_growth = good_building_development_growth_tier_7 + travel_danger = -7 + } + + effect_desc = unlocks_cereal_fields_and_orchards + + next_building = qanats_08 + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 4 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} + +qanats_08 = { + construction_time = standard_construction_time + + can_construct_potential = { + building_qanat_requirement_terrain = yes + building_requirement_castle_city_church = { LEVEL = 04 } + } + + can_construct_showing_failures_only = { + building_requirement_civilized = yes + } + + can_construct = { + } + + cost_gold = normal_building_tier_8_cost + + province_modifier = { + monthly_income = normal_building_tax_tier_8 + supply_limit = normal_building_supply_limit_tier_8 + build_speed = normal_building_build_speed_tier_8 + } + + character_modifier = { + negate_health_penalty_add = 0.2 + } + + county_modifier = { + development_growth_factor = good_building_development_growth_factor_tier_8 + development_growth = good_building_development_growth_tier_8 + travel_danger = -8 + } + + effect_desc = unlocks_cereal_fields_and_orchards + + + type_icon = "icon_building_qanats.dds" + + ai_value = { + base = 3 + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + } +} diff --git a/common/buildings/00_temple_buildings.txt b/common/buildings/00_temple_buildings.txt index c7eb2b8e92..be481debdb 100644 --- a/common/buildings/00_temple_buildings.txt +++ b/common/buildings/00_temple_buildings.txt @@ -7,6 +7,7 @@ @illustration_northern_pagan = "gfx/interface/illustrations/holding_types/temple_northern_pagan.dds" @illustration_iberian_christian = "gfx/interface/illustrations/holding_types/fp2_temple_iberian_christian.dds" @illustration_iberian_islamic = "gfx/interface/illustrations/holding_types/fp2_temple_iberian_islamic.dds" +@illustration_iranian_zoroastrian = "gfx/interface/illustrations/holding_types/fp3_temple_iranian_zoroastrian.dds" temple_01 = { construction_time = slow_construction_time @@ -203,6 +204,28 @@ temple_01 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } + + # FP3 Zoroastrian + asset = { + type = pdxmesh + name = "building_mena_temple_islamic_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_islamic + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 0 } } + graphical_faiths = { "islamic_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = entity + name = "fp3_building_persian_temple_01_a_01_entity" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_iranian_zoroastrian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 0 } } ##todo_cd_polish fix + graphical_faiths = { "zoroastrian_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } can_construct_potential = { barony_cannot_construct_holding = no @@ -614,6 +637,28 @@ temple_02 = { graphical_regions = { graphical_mediterranean } } + # FP3 Zoroastrian + asset = { + type = pdxmesh + name = "building_mena_temple_islamic_01_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_islamic + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 0 } } + graphical_faiths = { "islamic_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = entity + name = "fp3_building_persian_temple_01_a_01_entity" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_iranian_zoroastrian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 0 } } ##todo_cd_polish fix + graphical_faiths = { "zoroastrian_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + can_construct_potential = { building_requirement_civilized = yes } @@ -940,6 +985,28 @@ temple_03 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } + + # FP3 Zoroastrian + asset = { + type = pdxmesh + name = "building_mena_temple_islamic_02_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_islamic + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 1 } } + graphical_faiths = { "islamic_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = entity + name = "fp3_building_persian_temple_02_a_01_entity" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_iranian_zoroastrian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 1 } } ##todo_cd_polish fix + graphical_faiths = { "zoroastrian_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } can_construct_potential = { building_requirement_civilized = yes @@ -1257,7 +1324,28 @@ temple_04 = { graphical_cultures = { iberian_building_gfx } graphical_regions = { graphical_mediterranean } } - + + # FP3 Zoroastrian + asset = { + type = pdxmesh + name = "building_mena_temple_islamic_02_mesh" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_islamic + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 1 } } + graphical_faiths = { "islamic_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } + asset = { + type = entity + name = "fp3_building_persian_temple_02_a_01_entity" + requires_dlc_flag = legacy_of_persia + illustration = @illustration_iranian_zoroastrian + soundeffect = { soundeffect = "event:/SFX/Ambience/3DMapEmitters/Holdings/Temples/mosque_temple" soundparameter = { "Tier" = 1 } } ##todo_cd_polish fix + graphical_faiths = { "zoroastrian_gfx" } + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena } + } can_construct_potential = { building_requirement_civilized = yes diff --git a/common/buildings/99_background_graphics_buildings.txt b/common/buildings/99_background_graphics_buildings.txt index b699332a00..1139dec628 100644 --- a/common/buildings/99_background_graphics_buildings.txt +++ b/common/buildings/99_background_graphics_buildings.txt @@ -107,6 +107,16 @@ walls_01 = { } } + asset = { + type = pdxmesh + requires_dlc_flag = legacy_of_persia + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena graphical_india graphical_steppe } + names = { + "fp3_building_persian_walls_01_a_01_mesh" + } + } + is_enabled = { OR = { # These buildings will trigger the visual "upgrade" to this wall asset @@ -185,6 +195,16 @@ walls_02 = { } } + asset = { + type = pdxmesh + requires_dlc_flag = legacy_of_persia + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena graphical_india } + names = { + "fp3_building_persian_walls_02_a_01_mesh" + } + } + is_enabled = { OR = { # These buildings will trigger the visual "upgrade" to this wall asset @@ -261,6 +281,16 @@ walls_03 = { } } + asset = { + type = pdxmesh + requires_dlc_flag = legacy_of_persia + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena graphical_india } + names = { + "fp3_building_persian_walls_03_a_01_mesh" + } + } + is_enabled = { scope:holder = { NOT = { government_has_flag = government_is_tribal } @@ -340,6 +370,16 @@ walls_04 = { } } + asset = { + type = pdxmesh + requires_dlc_flag = legacy_of_persia + graphical_cultures = { iranian_building_gfx } + graphical_regions = { graphical_mena graphical_india } + names = { + "fp3_building_persian_walls_04_a_01_mesh" + } + } + is_enabled = { scope:holder = { NOT = { government_has_flag = government_is_tribal } diff --git a/common/buildings/_buildings.info b/common/buildings/_buildings.info index 002934b73d..167f23fbef 100644 --- a/common/buildings/_buildings.info +++ b/common/buildings/_buildings.info @@ -149,4 +149,17 @@ name_of_the_building = { # If this is set to yes, the building will be used for figuring out which background asset (walls/no walls etc) should be shown is_graphical_background = no + + ### Brief: on_start/on_cancelled/on_complete + # Effects that happen when construction of the building + # starts/cancels/finishes. + # + # Supported scopes: + # root (Province) + # The province the construction took place in. + # character + The character that paid for the construction, if available + on_start = { ... } + on_cancelled = { ... } + on_complete = { ... } } diff --git a/common/buildings/wc_special_buildings.txt b/common/buildings/wc_special_buildings.txt index c9577300c5..c2dfd26ea7 100644 --- a/common/buildings/wc_special_buildings.txt +++ b/common/buildings/wc_special_buildings.txt @@ -181,7 +181,7 @@ icecrown_citadel_01 = { type = special - flag = travel_point_of_interest_martial + flag = travel_point_of_interest_natural_feature } ######## diff --git a/common/casus_belli_groups/00_casus_belli_groups.txt b/common/casus_belli_groups/00_casus_belli_groups.txt index ad5cf71777..9dad28e26a 100644 --- a/common/casus_belli_groups/00_casus_belli_groups.txt +++ b/common/casus_belli_groups/00_casus_belli_groups.txt @@ -17,7 +17,7 @@ } #Holy wars that should be restricted if your liege disagrees, or your faith does, but which don't require organised religion. E.g., human sacrifice raids. -religious_disorganised= { +religious_disorganised = { allowed_for_character = { OR = { # Cannot Holy War if your Liege(s) are of a different Faith than you. is_independent_ruler = yes diff --git a/common/casus_belli_types/00_civil_war.txt b/common/casus_belli_types/00_civil_war.txt index d3d5b0eb74..98d364e29c 100644 --- a/common/casus_belli_types/00_civil_war.txt +++ b/common/casus_belli_types/00_civil_war.txt @@ -663,6 +663,8 @@ populist_war = { # Generate extra troops if the rebellion was financed generate_troops_from_revolt_county_modifiers_effect = yes + + # Warcraft } on_victory_desc = { @@ -1397,6 +1399,25 @@ refused_liege_demand_war = { } add_dread = medium_dread_gain } + + # For revoking titles of character's imprisoned abroard who have lost a revocation war + hidden_effect = { + if = { + limit = { + scope:attacker = { + is_imprisoned = yes + NOT = { is_imprisoned_by = scope:defender } + } + } + scope:defender = { + add_opinion = { + target = scope:attacker + modifier = foreign_prison_revocation_opinion + } + } + } + } + on_lost_request_revolt_war = yes } diff --git a/common/casus_belli_types/00_claim.txt b/common/casus_belli_types/00_claim.txt index ba539557d4..59fc467406 100644 --- a/common/casus_belli_types/00_claim.txt +++ b/common/casus_belli_types/00_claim.txt @@ -10,7 +10,7 @@ } scope:attacker = { culture = { - has_innovation = innovation_divine_right + has_innovation = innovation_chronicle_writing } } } @@ -18,7 +18,7 @@ trigger_else = { scope:attacker = { culture = { - has_innovation = innovation_rightful_ownership + has_innovation = innovation_divine_right } } } diff --git a/common/casus_belli_types/00_conquest.txt b/common/casus_belli_types/00_conquest.txt index 6d38a55f4b..0c1a1183a0 100644 --- a/common/casus_belli_types/00_conquest.txt +++ b/common/casus_belli_types/00_conquest.txt @@ -21,6 +21,10 @@ target_titles = all target_title_tier = county ignore_effect = change_title_holder + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 ai_can_target_all_titles = { can_use_viking_invasion_cbs_trigger = yes @@ -85,9 +89,15 @@ scope:defender.faith = scope:attacker.faith } add = { - value = medium_piety_value + value = 25 desc = CB_SAME_FAITH_COST } + add = { + value = 5 + multiply = scope:attacker.realm_size + desc = CB_REALM_SIZE_COST + max = 75 + } } multiply = common_cb_piety_cost_multiplier } @@ -98,9 +108,15 @@ NOT = { scope:defender.faith = scope:attacker.faith } } add = { - value = medium_prestige_value + value = 50 desc = CB_COST_DIFFERENT_FAITH } + add = { + value = 5 + multiply = scope:attacker.realm_size + desc = CB_REALM_SIZE_COST + max = 100 + } } multiply = common_cb_prestige_cost_multiplier } @@ -298,6 +314,10 @@ duchy_conquest_cb = { combine_into_one = yes should_show_war_goal_subview = yes mutually_exclusive_titles = { always = yes } + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 allowed_for_character = { can_use_conquest_cbs_trigger = yes @@ -306,10 +326,30 @@ duchy_conquest_cb = { allowed_for_character_display_regardless = { trigger_if = { limit = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } culture = { has_cultural_parameter = cb_lower_prestige_level_requirement } } + prestige_level >= 1 + } + trigger_else_if = { + limit = { + OR = { + AND = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + culture = { + has_cultural_parameter = cb_lower_prestige_level_requirement + } + } + } prestige_level >= 2 } trigger_else = { @@ -393,9 +433,15 @@ duchy_conquest_cb = { scope:defender.faith = scope:attacker.faith } add = { - value = massive_piety_value + value = 100 desc = CB_SAME_FAITH_COST } + add = { + value = 10 + multiply = scope:attacker.realm_size + desc = CB_REALM_SIZE_COST + max = 800 + } } multiply = common_cb_piety_cost_multiplier } @@ -406,9 +452,15 @@ duchy_conquest_cb = { NOT = { scope:defender.faith = scope:attacker.faith } } add = { - value = massive_prestige_value + value = 150 desc = CB_COST_DIFFERENT_FAITH } + add = { + value = 10 + multiply = scope:attacker.realm_size + desc = CB_REALM_SIZE_COST + max = 800 + } } multiply = common_cb_prestige_cost_multiplier #if = { @@ -706,6 +758,10 @@ ducal_conquest_cb = { combine_into_one = yes should_show_war_goal_subview = yes mutually_exclusive_titles = { always = yes } + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 allowed_for_character = { has_perk = ducal_conquest_perk @@ -784,13 +840,13 @@ ducal_conquest_cb = { scope:attacker.primary_title.tier <= tier_county } add = { - value = major_prestige_value + value = 50 desc = CB_BASE_COST } } else = { add = { - value = massive_prestige_value + value = 100 desc = CB_BASE_COST } } diff --git a/common/casus_belli_types/00_dejure_war.txt b/common/casus_belli_types/00_dejure_war.txt index be5ded6b75..cdb6aa4a34 100644 --- a/common/casus_belli_types/00_dejure_war.txt +++ b/common/casus_belli_types/00_dejure_war.txt @@ -6,7 +6,7 @@ allowed_for_character = { scope:attacker = { culture = { - has_innovation = innovation_rightful_ownership + has_innovation = innovation_divine_right } } } @@ -590,7 +590,7 @@ individual_duchy_de_jure_cb = { allowed_for_character = { scope:attacker = { culture = { - has_innovation = innovation_chronicle_writing + has_innovation = innovation_casus_belli } } } diff --git a/common/casus_belli_types/00_event_war.txt b/common/casus_belli_types/00_event_war.txt index 29e2ec4c75..e10c9195d0 100644 --- a/common/casus_belli_types/00_event_war.txt +++ b/common/casus_belli_types/00_event_war.txt @@ -619,11 +619,35 @@ remove_regent_cb = { on_invalidated_desc = msg_remove_regent_cb_invalidated_message on_invalidated = { + #remove the temporary fort level + root.war.var:barony_with_temporary_fort ?= { remove_province_modifier = temporary_fort_province_modifier } } cost = {} - on_declaration = { on_declared_war = yes } + on_declaration = { + on_declared_war = yes + #add a temporary fort level so that the diarch can be sieged + if = { + limit = { + scope:defender = { + capital_barony.title_province = { fort_level = 0 } + } + } + scope:defender = { + capital_barony.title_province = { + save_scope_as = defender_capital + add_province_modifier = temporary_fort_province_modifier + } + } + } + war ?= { + set_variable = { + name = barony_with_temporary_fort + value = scope:defender_capital + } + } + } on_victory_desc = { first_valid = { @@ -653,6 +677,18 @@ remove_regent_cb = { } depose_diarch = yes } + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort ?= { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } } # Prestige Progress for the Attacker @@ -712,6 +748,18 @@ remove_regent_cb = { } scope:defender = { + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort = { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } stress_impact = { arrogant = medium_stress_impact_gain } @@ -756,6 +804,18 @@ remove_regent_cb = { add_prestige_war_defender_effect = { PRESTIGE_VALUE = major_prestige_value } + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort = { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } } # Allies on both sides get full prestige value for helping in the war, based on their war participation. diff --git a/common/casus_belli_types/00_invasion_war.txt b/common/casus_belli_types/00_invasion_war.txt index 14a015490f..4e465001c1 100644 --- a/common/casus_belli_types/00_invasion_war.txt +++ b/common/casus_belli_types/00_invasion_war.txt @@ -29,10 +29,30 @@ } trigger_else_if = { limit = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } culture = { has_cultural_parameter = cb_lower_prestige_level_requirement } } + prestige_level >= 2 + } + trigger_else_if = { + limit = { + OR = { + AND = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + culture = { + has_cultural_parameter = cb_lower_prestige_level_requirement + } + } + } prestige_level >= 3 } trigger_else = { @@ -70,8 +90,6 @@ neighboring_county_or_viking_conquest_trigger = { CHARACTER = root } } } - # Struggle constraint - #struggle_blocks_invasion_conquest_cb_trigger = yes } should_invalidate = { @@ -149,20 +167,26 @@ add_claim_on_loss = yes } - scope:defender = { - # Title transfer tooltip for display - every_held_county = { - limit = { - duchy.kingdom = { is_in_list = target_titles } - } + show_as_tooltip = { + every_in_list = { + list = target_titles 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 + } + } } - # Vassal transfer tooltip for display - every_vassal = { - custom = invasion_vassal_transfer_tt - show_as_tooltip = { - change_liege = { - liege = scope:attacker + scope:defender = { + every_sub_realm_county = { + limit = { + county_controller = scope:attacker + } + change_title_holder = { + holder = scope:attacker change = scope:change } } @@ -332,18 +356,66 @@ clan_invasion_war = { allowed_for_character = { government_has_flag = government_is_clan NOR = { - has_character_flag = used_lifetime_invasion faith = { has_doctrine_parameter = invasion_cb_enabled } + AND = { + exists = house + house = { + has_house_unity_parameter = unity_disable_invasions + } + } + } + trigger_if = { + limit = { + exists = house + house = { + has_house_unity_parameter = unity_multiple_invasions + } + } + NOT = { has_character_flag = unity_invasion_cooldown } + } + trigger_if = { + limit = { + exists = house + house = { + has_house_unity_parameter = unity_unlimited_invasions + } + } + } + trigger_else = { + NOR = { + has_character_flag = used_lifetime_invasion + has_character_flag = pending_lifetime_invasion + } } } allowed_for_character_display_regardless = { trigger_if = { limit = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } culture = { has_cultural_parameter = cb_lower_prestige_level_requirement } } + prestige_level >= 2 + } + trigger_else_if = { + limit = { + OR = { + AND = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + culture = { + has_cultural_parameter = cb_lower_prestige_level_requirement + } + } + } prestige_level >= 3 } trigger_else = { @@ -376,8 +448,6 @@ clan_invasion_war = { scope:target = { tier = tier_kingdom } - # Struggle constraint - #struggle_blocks_invasion_conquest_cb_trigger = yes } should_invalidate = { @@ -401,7 +471,8 @@ clan_invasion_war = { on_invalidated = { scope:attacker = { - remove_character_flag = used_lifetime_invasion # If the war is invalidated, you should be permitted to try again + remove_character_flag = pending_lifetime_invasion # If the war is invalidated, you should be permitted to try again + remove_character_flag = unity_invasion_cooldown # Reset cooldown as well } } @@ -412,9 +483,15 @@ clan_invasion_war = { } prestige = { add = { - value = 2000 + value = 200 desc = CB_BASE_COST } + add = { + value = 20 + multiply = scope:attacker.realm_size + desc = CB_REALM_SIZE_COST + max = 5000 + } multiply = common_cb_prestige_cost_multiplier } @@ -423,7 +500,11 @@ clan_invasion_war = { on_declaration = { on_declared_war = yes scope:attacker = { - add_character_flag = used_lifetime_invasion + add_character_flag = pending_lifetime_invasion + add_character_flag = { + flag = unity_invasion_cooldown + years = unity_antagonistic_invasion_cooldown_value + } } } @@ -452,7 +533,7 @@ clan_invasion_war = { save_scope_as = change add_claim_on_loss = yes } - + hidden_effect = { setup_invasion_cb = { titles = target_titles @@ -463,19 +544,54 @@ clan_invasion_war = { } } - scope:defender = { - # Vassal transfer tooltip for display - every_vassal = { - custom = invasion_vassal_transfer_tt - show_as_tooltip = { + 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 } } } - } - + } + #If target is lower tier, vassalise them. if = { limit = { @@ -499,6 +615,9 @@ clan_invasion_war = { } every_in_list = { list = target_titles + limit = { + holder.top_liege = scope:defender + } change_title_holder = { holder = scope:attacker change = scope:change @@ -514,6 +633,8 @@ clan_invasion_war = { add_prestige_experience = { value = major_prestige_value } + add_character_flag = used_lifetime_invasion + remove_character_flag = pending_lifetime_invasion } # Prestige loss for the defender @@ -575,6 +696,8 @@ clan_invasion_war = { ambitious = medium_stress_impact_gain arrogant = medium_stress_impact_gain } + add_character_flag = used_lifetime_invasion + remove_character_flag = pending_lifetime_invasion } scope:defender = { @@ -635,6 +758,8 @@ clan_invasion_war = { scope:attacker = { save_temporary_scope_as = loser + add_character_flag = used_lifetime_invasion + remove_character_flag = pending_lifetime_invasion } on_lost_aggression_war_discontent_loss = yes } diff --git a/common/casus_belli_types/00_religious_war.txt b/common/casus_belli_types/00_religious_war.txt index 9bc4c18110..252fb2648c 100644 --- a/common/casus_belli_types/00_religious_war.txt +++ b/common/casus_belli_types/00_religious_war.txt @@ -7,6 +7,10 @@ combine_into_one = yes should_show_war_goal_subview = yes mutually_exclusive_titles = { always = yes } + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 # Already defined in 00_casus_belli_groups.txt allowed_for_character = { @@ -105,6 +109,7 @@ # scope:defender = { # any_character_struggle = { # involvement = involved + # is_struggle_type = iberian_struggle # } # } # } @@ -493,6 +498,10 @@ religious_war = { combine_into_one = yes should_show_war_goal_subview = yes mutually_exclusive_titles = { always = yes } + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 # Additional requirements to the defines in 00_casus_belli_groups.txt allowed_for_character = { @@ -591,6 +600,7 @@ religious_war = { # scope:defender = { # any_character_struggle = { # involvement = involved + # is_struggle_type = iberian_struggle # } # } # } @@ -1135,6 +1145,7 @@ major_religious_war = { # scope:defender = { # any_character_struggle = { # involvement = involved + # is_struggle_type = iberian_struggle # } # } # } @@ -1530,6 +1541,9 @@ excommunication_war = { # Already defined in 00_casus_belli_groups.txt # allowed_for_character = {} + + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 allowed_against_character = { scope:defender = { @@ -1755,11 +1769,9 @@ excommunication_war = { use_de_jure_wargoal_only = yes attacker_wargoal_percentage = 0.8 - - attacker_score_from_occupation_scale = 50 - defender_score_from_occupation_scale = 50 - #attacker_score_from_battles_scale = 50 - #defender_score_from_battles_scale = 50 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 max_attacker_score_from_battles = 100 max_defender_score_from_battles = 100 @@ -1794,6 +1806,10 @@ 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/casus_belli_types/00_struggle_war.txt b/common/casus_belli_types/00_struggle_war.txt index 718c228ace..321cb023f8 100644 --- a/common/casus_belli_types/00_struggle_war.txt +++ b/common/casus_belli_types/00_struggle_war.txt @@ -5,6 +5,9 @@ interface_priority = 111 should_show_war_goal_subview = yes + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 allowed_against_character = { always = no } diff --git a/common/casus_belli_types/00_subjugation.txt b/common/casus_belli_types/00_subjugation.txt index cfc0da6db9..ad0e46cbb2 100644 --- a/common/casus_belli_types/00_subjugation.txt +++ b/common/casus_belli_types/00_subjugation.txt @@ -2,6 +2,10 @@ icon = vassalization group = subjugation ai_only_against_neighbors = yes + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 allowed_for_character = { OR = { @@ -13,6 +17,9 @@ faith = { has_doctrine = eastern_hostility_doctrine } + #house ?= { + # has_variable = subjugations_expanded + #} } } @@ -49,21 +56,13 @@ } trigger_if = { limit = { - OR = { + #OR = { culture = { has_cultural_parameter = cb_lower_piety_level_requirement } # Iberian Struggle Hostility Reward - AND = { - exists = house - house = { - OR = { - has_house_modifier = fp2_struggle_hostility_house_faith_modifier - has_house_modifier = fp2_struggle_hostility_house_combined_modifier - } - } - } - } + + #} } piety_level >= 2 } @@ -74,10 +73,30 @@ trigger_else = { trigger_if = { limit = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } culture = { has_cultural_parameter = cb_lower_prestige_level_requirement } } + prestige_level >= 2 + } + trigger_else_if = { + limit = { + OR = { + AND = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + culture = { + has_cultural_parameter = cb_lower_prestige_level_requirement + } + } + } prestige_level >= 3 } trigger_else = { @@ -121,6 +140,14 @@ } } } + #AND = { + # faith = { like_islam_religion_trigger = yes } + # house ?= { + # house_head = scope:attacker + # has_variable = subjugations_expanded + # } + # scope:defender.faith = { like_islam_religion_trigger = yes } + #} } } @@ -163,6 +190,8 @@ } add = common_cb_impious_piety_cost multiply = common_cb_piety_cost_multiplier + # FP3: caliphal discounts. + } } diff --git a/common/casus_belli_types/00_vassalization.txt b/common/casus_belli_types/00_vassalization.txt index 542ba9f77e..6200401014 100644 --- a/common/casus_belli_types/00_vassalization.txt +++ b/common/casus_belli_types/00_vassalization.txt @@ -3,6 +3,10 @@ group = vassalization ai_only_against_neighbors = yes + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 + allowed_for_character = { #OR = { has_perk = forced_vassalage_perk @@ -170,8 +174,7 @@ } # Truce - add_truce_attacker_victory_effect = yes - + add_truce_attacker_victory_effect = yes } on_white_peace_desc = { diff --git a/common/casus_belli_types/01_fp1_wars.txt b/common/casus_belli_types/01_fp1_wars.txt index b56f331aea..27672f68d6 100644 --- a/common/casus_belli_types/01_fp1_wars.txt +++ b/common/casus_belli_types/01_fp1_wars.txt @@ -144,8 +144,7 @@ fp1_varangian_adventurer_conquest = { on_invalidated_desc = msg_county_conquest_war_invalidated_message - on_invalidated = { - } + on_invalidated = {} cost = { piety = { @@ -1187,7 +1186,7 @@ fp1_varangian_adventurer_conquest = { } } - # Allies on both sides get full prestige value for helping in the war, based on their war participation. + # Allies on both sides get full prestige value for helping in the war, based on their war participation. modify_allies_of_participants_fame_values = { WINNER = scope:defender FAME_BASE = medium_prestige_value diff --git a/common/casus_belli_types/05_fp3_wars.txt b/common/casus_belli_types/05_fp3_wars.txt new file mode 100644 index 0000000000..3a738b692f --- /dev/null +++ b/common/casus_belli_types/05_fp3_wars.txt @@ -0,0 +1,324 @@ +#fp3_install_loyalist_cb + +#fp3_turkic_invasion_cb + +#fp3_seljuk_invasion_cb + +fp3_free_house_member_cb = { + group = de_jure + icon = fp3_free_house_member + interface_priority = 16 + + war_name = "fp3_free_house_member_war_name" + war_name_base = "DEJURE_WAR_NAME_BASE" + cb_name = "fp3_free_house_member_cb_name" + + on_primary_attacker_death = invalidate + on_primary_defender_death = inherit + transfer_behavior = transfer + attacker_allies_inherit = no + defender_allies_inherit = no + should_show_war_goal_subview = no + max_ai_diplo_distance_to_title = 500 + attacker_ticking_warscore = 0 + defender_ticking_warscore = 0.1 + attacker_wargoal_percentage = 0.75 + defender_wargoal_percentage = 1 + max_attacker_score_from_battles = 150 + max_defender_score_from_battles = 150 + max_attacker_score_from_occupation = 150 + max_defender_score_from_occupation = 150 + full_occupation_by_defender_gives_victory = yes + full_occupation_by_attacker_gives_victory = yes + attacker_capital_gives_war_score = yes + defender_capital_gives_war_score = yes + imprisonment_by_attacker_give_war_score = yes + imprisonment_by_defender_give_war_score = yes + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 + + allowed_for_character = { + is_house_head = yes + OR = { + government_has_flag = government_is_clan + has_perk = thicker_than_water_perk + } + } + allowed_for_character_display_regardless = { + trigger_if = { + limit = { + NOR = { + has_perk = thicker_than_water_perk + house = { has_house_unity_parameter = unity_has_liberate_house_members_cb } + } + } + house = { has_house_unity_parameter = unity_has_liberate_house_members_cb } + } + } + allowed_against_character = { + any_prisoner = { + house ?= { any_house_unity_member = { this = scope:attacker } } + } + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_free_house_member_cb_victory_desc_defender + } + desc = fp3_free_house_member_cb_victory_desc + } + } + on_defeat_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_free_house_member_cb_defeat_desc_defender + } + desc = fp3_free_house_member_cb_defeat_desc + } + } + on_white_peace_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_free_house_member_cb_defeat_desc_defender + } + desc = fp3_free_house_member_cb_defeat_desc + } + } + + on_invalidated_desc = msg_free_house_member_war_invalidated_message + + on_victory = { + scope:attacker = { + if = { + limit = { + government_has_flag = government_is_clan + } + house = { + add_unity_value = { + value = rescue_house_members_cb_house_unity_gain + character = scope:attacker + desc = clan_unity_generic_unified.notarget # Used to use clan_unity_released_from_prison.desc + } + } + } + } + scope:defender = { + every_prisoner = { + limit = { house ?= scope:attacker.house } + release_from_prison = yes + } + } + } + + on_defeat = { + scope:attacker = { add_prestige = major_prestige_loss } + modify_allies_of_participants_fame_values = { + WINNER = scope:defender + FAME_BASE = medium_prestige_value + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 1 + LOSER_ALLY_FAME_SCALE = 1 + } + } + + cost = { + prestige = { + value = 0 + add = { + value = minor_prestige_value + desc = CB_BASE_COST + } + + multiply = common_cb_prestige_cost_multiplier + } + } + + should_invalidate = { + NOT = { + scope:defender = { + any_prisoner = { + house ?= scope:attacker.house + } + } + } + } +} + +fp3_unify_house_cb = { + group = claim + icon = fp3_house_unification_cb + interface_priority = 2 + + war_name = "fp3_unify_house_war_name" + war_name_base = "STRUGGLE_WAR_NAME_BASE" + cb_name = "fp3_unify_house_cb_name" + + attacker_wargoal_percentage = 0.8 + combine_into_one = no + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 + + allowed_for_character = { + is_house_head = yes + top_liege = this + OR = { + government_has_flag = government_is_clan + has_perk = thicker_than_water_perk + } + } + allowed_for_character_display_regardless = { + trigger_if = { + limit = { + NOR = { + has_perk = thicker_than_water_perk + house = { has_house_unity_parameter = unity_has_unify_house_cb } + } + } + house = { has_house_unity_parameter = unity_has_unify_house_cb } + } + } + + allowed_against_character = { + any_vassal_or_below = { + house ?= scope:attacker.house + primary_title.tier >= tier_county + } + } + cost = { + prestige = { + value = 0 + add = { + scope:defender = { + every_vassal_or_below = { + limit = { + house ?= scope:attacker.house + primary_title.tier >= tier_county + } + add = { + value = medium_prestige_value + } + + } + } + desc = CB_BASE_COST + } + multiply = common_cb_prestige_cost_multiplier + } + } + + on_invalidated_desc = msg_unify_house_war_invalidated_message + on_invalidated = {} + should_invalidate = { + NOT = { scope:defender = { any_vassal_or_below = { house ?= scope:attacker.house } } } + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = fp3_unify_house_cb_victory_desc_attacker + } + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_unify_house_cb_victory_desc_defender + } + desc = fp3_unify_house_cb_victory_desc + } + } + on_victory = { + create_title_and_vassal_change = { # Not at all cursed title transfer script + type = conquest_claim + save_scope_as = change + add_claim_on_loss = no + } + scope:defender = { + every_vassal_or_below = { + limit = { + house = scope:attacker.house + primary_title.tier >= tier_county + } + change_liege = { + liege = scope:attacker + change = scope:change + } + house = { + add_unity_value = { + value = medium_unity_gain + character = scope:attacker + desc = clan_unity_generic_unified.notarget + } + } + } + } + resolve_title_and_vassal_change = scope:change + + modify_allies_of_participants_fame_values = { + WINNER = scope:attacker + FAME_BASE = minor_prestige_value + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 1 + LOSER_ALLY_FAME_SCALE = 1 + } + add_truce_attacker_victory_effect = yes + } + + on_white_peace_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_unify_house_cb_defeat_desc_defender + } + desc = fp3_unify_house_cb_defeat_desc + } + } + + on_defeat_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = fp3_unify_house_cb_defeat_desc_defender + } + desc = fp3_unify_house_cb_defeat_desc + } + } + on_defeat = { + scope:attacker = { show_pow_release_message_effect = yes } + scope:defender = { + add_prestige_war_defender_effect = { PRESTIGE_VALUE = medium_prestige_value } + every_vassal_or_below = { + limit = { house = scope:attacker.house } + house = { + add_unity_value = { + value = medium_unity_loss + character = scope:defender + desc = clan_unity_generic_disunified.notarget + } + } + } + } + modify_allies_of_participants_fame_values = { + WINNER = scope:defender + FAME_BASE = minor_prestige_value + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 1 + LOSER_ALLY_FAME_SCALE = 1 + } + + add_truce_attacker_defeat_effect = yes + } + + on_primary_attacker_death = invalidate + on_primary_defender_death = invalidate + attacker_allies_inherit = no + defender_allies_inherit = no +} + +#fp3_zanj_rebellion_war diff --git a/common/casus_belli_types/_casus_belli.info b/common/casus_belli_types/_casus_belli.info index 4239d506fa..112d676ddf 100644 --- a/common/casus_belli_types/_casus_belli.info +++ b/common/casus_belli_types/_casus_belli.info @@ -26,7 +26,7 @@ key = { siege_participation_mult = 1.0 # What to multiply siege participation scoring by. Defaults to 1 battle_participation_mult = 1.0 # What to multiply battle participation scoring by. Defaults to 1 - cost = { gold = ... piety = ... prestige = ... } # How much it costs to declare the war + cost = { gold = ... piety = ... prestige = ... } # How much it costs to declare the war. Add a CB_BASE_COST desc key to the value if you have no conditions. attacker_capital_gives_war_score = no # No warscore from attacker capital defender_capital_gives_war_score = no # No warscore from defender capital diff --git a/common/character_interaction_categories/00_character_interaction_categories.txt b/common/character_interaction_categories/00_character_interaction_categories.txt index a6fa0525a2..72e28e3826 100644 --- a/common/character_interaction_categories/00_character_interaction_categories.txt +++ b/common/character_interaction_categories/00_character_interaction_categories.txt @@ -14,38 +14,43 @@ interaction_category_friendly = { desc = "FRIENDLY_ACTIONS" } -interaction_category_hostile = { +interaction_category_clan = { index = 2 + desc = "CLAN_ACTIONS" +} + +interaction_category_hostile = { + index = 3 desc = "HOSTILE_ACTIONS" } interaction_category_diarch = { - index = 3 + index = 4 desc = "DIARCH_ACTIONS" } interaction_category_vassal = { - index = 4 + index = 5 desc = "VASSAL_ACTIONS" } interaction_category_prison = { - index = 5 + index = 6 desc = "IMPRISOMENT_ACTIONS" } interaction_category_religion = { - index = 6 + index = 7 desc = "RELIGIOUS_ACTIONS" } interaction_category_uncategorized = { - index = 7 + index = 8 default = yes desc = "UNCATEGORIZED_ACTIONS" } interaction_debug_main = { - index = 8 + index = 9 desc = "DEBUG_MAIN" -} \ No newline at end of file +} diff --git a/common/character_interactions/00_alliance.txt b/common/character_interactions/00_alliance.txt index 241f1ea54e..e2cca7de87 100644 --- a/common/character_interactions/00_alliance.txt +++ b/common/character_interactions/00_alliance.txt @@ -348,6 +348,9 @@ scope:actor = { trigger_event = call_ally.0101 } + + # If we're a clan this interaction affects unity + refuse_call_to_arms_add_clan_unity_effect = yes } } @@ -1255,8 +1258,16 @@ negotiate_alliance_interaction = { } } } - } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_alliance.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + on_decline = { scope:actor = { trigger_event = char_interaction.0236 @@ -1267,6 +1278,14 @@ negotiate_alliance_interaction = { target = scope:recipient } } + + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_alliance_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -1328,6 +1347,11 @@ negotiate_alliance_interaction = { # Warcraft scourge_interaction_modifiers = yes + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } } ai_potential = { @@ -1378,6 +1402,11 @@ negotiate_alliance_interaction = { is_vassal_of = scope:actor } } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { # The AI shouldn't propose to their Lieges factor = 0 @@ -1538,8 +1567,16 @@ perk_alliance_interaction = { target = scope:actor } } - } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_alliance.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + on_decline = { scope:actor = { trigger_event = char_interaction.0236 @@ -1550,6 +1587,14 @@ perk_alliance_interaction = { target = scope:recipient } } + + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_alliance_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -2088,6 +2133,11 @@ perk_alliance_interaction = { } # Warcraft scourge_interaction_modifiers = yes + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 10 + } } ai_potential = { @@ -2110,6 +2160,11 @@ perk_alliance_interaction = { ai_will_do = { base = 100 + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { # Don't disturb the player with pointless asks add = -5000 @@ -2516,6 +2571,38 @@ join_war_interaction = { } } } + + # If we're a clan this interaction affects unity - but only when we attemp to aid a house member against a non-house member + if = { + limit = { + exists = scope:target + scope:target = { + OR = { + AND = { + primary_attacker = scope:recipient + scope:recipient.house = scope:actor.house + primary_defender = { + NOT = { house = scope:actor.house } + } + } + AND = { + primary_defender = scope:recipient + scope:recipient.house = scope:actor.house + primary_attacker = { + NOT = { house = scope:actor.house } + } + } + } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_join_war.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } on_decline = { diff --git a/common/character_interactions/00_artifact_interactions.txt b/common/character_interactions/00_artifact_interactions.txt index 91c123868d..e33732bb7a 100644 --- a/common/character_interactions/00_artifact_interactions.txt +++ b/common/character_interactions/00_artifact_interactions.txt @@ -188,35 +188,42 @@ gift_artifact_interaction = { right_icon = scope:target scope:recipient = { if = { - limit = { - scope:target = { can_be_claimed_by = scope:recipient } - } + limit = { scope:target = { can_be_claimed_by = scope:recipient } } if = { - limit = { - any_personal_claimed_artifact = { this = scope:target } - } + limit = { any_personal_claimed_artifact = { this = scope:target } } show_as_tooltip = { remove_personal_artifact_claim = scope:target } } - else = { - show_as_tooltip = { remove_house_artifact_claim = scope:target } - } + else = { show_as_tooltip = { remove_house_artifact_claim = scope:target } } } } - scope:target = { - set_owner = scope:recipient - } + + scope:target = { set_owner = scope:recipient } + + if = { limit = { scope:target = { is_unique = yes } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } stress_impact = { greedy = major_stress_impact_gain generous = major_stress_impact_loss } } - else_if = { - limit = { - scope:target = { rarity = masterwork } + else_if = {# Unity goes here, too! + limit = { scope:target = { rarity = masterwork } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no } stress_impact = { greedy = minor_stress_impact_gain @@ -224,8 +231,13 @@ gift_artifact_interaction = { } } else_if = { - limit = { - scope:target = { rarity = famed } + limit = { scope:target = { rarity = famed } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no } stress_impact = { greedy = medium_stress_impact_gain @@ -233,8 +245,13 @@ gift_artifact_interaction = { } } else_if = { - limit = { - scope:target = { rarity = illustrious } + limit = { scope:target = { rarity = illustrious } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no } stress_impact = { greedy = major_stress_impact_gain @@ -242,15 +259,46 @@ gift_artifact_interaction = { } } if = { - limit = { - scope:recipient = { is_ai = yes } - } + limit = { scope:recipient = { is_ai = yes } } reverse_add_opinion = { target = scope:recipient modifier = gift_artifact_opinion opinion = gift_artifact_opinion } } + #FP3 Tenet Communal Possessions Perk - piety gain for gift giving. + if = { + limit = { + scope:actor = { + faith = { + has_doctrine_parameter = piety_from_gifts_active + } + } + } + scope:actor = { + if = { + limit = { #the better the artifact, the more piety you gain + scope:target = { rarity = illustrious } + } + add_piety = massive_piety_gain + } + else_if = { + limit = { + scope:target = { rarity = famed } + } + add_piety = major_piety_gain + } + else_if = { + limit = { + scope:target = { rarity = masterwork } + } + add_piety = medium_piety_gain + } + else = { + add_piety = minor_piety_gain + } + } + } } # Warning for low opinion gain @@ -328,9 +376,7 @@ gift_artifact_interaction = { right_icon = scope:target show_as_tooltip = { - scope:target = { - set_owner = scope:recipient - } + scope:target = { set_owner = scope:recipient } if = { limit = { is_ai = yes } add_opinion = { @@ -339,6 +385,38 @@ gift_artifact_interaction = { opinion = gift_artifact_opinion } } + + # Unity stuff, scales with tier # If we're a clan this interaction affects unity + if = { # In a better world, this would be a switch + limit = { scope:target = { rarity = Masterwork } } # todo_cd_polish, make the UI show this before you gift + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { scope:target = { rarity = Famed } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { scope:target = { rarity = Illustrious } } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_gain + DESC = clan_unity_given_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } } if = { @@ -711,7 +789,10 @@ gift_artifact_interaction = { scope:recipient = { NOT = { religion = religion:deathbringer } } desc = ARTIFACT_CURSED_REASON } - + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } } ai_potential = { @@ -1000,40 +1081,10 @@ gift_artifact_interaction = { } # Struggle - #modifier = { - # scope:recipient = { - # is_independent_ruler = yes - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = -100 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # } - # } - # add = 200 - # } - # } - #} + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { factor = 2 @@ -1278,6 +1329,14 @@ demand_artifact_interaction = { } } } + + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_demanded_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -1365,6 +1424,9 @@ demand_artifact_interaction = { add = 100 desc = SCHEME_WEAK_HOOK_USED } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { VALUE = 100 } } ai_potential = { @@ -1465,6 +1527,12 @@ demand_artifact_interaction = { } } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } + modifier = { # A Cowed character will never take this interaction factor = 0 scope:actor = { @@ -1949,9 +2017,25 @@ challenge_for_artifact_interaction = { OUTPUT_EVENT = artifact.2001 INVALIDATION_EVENT = fp1_tbc.0021 } + + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_challenge_artifact.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_challenge_artifact_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } + # Scope:recipient declines processing. scope:actor = { # Inform them of the decline & scope:recipient loses some prestige. @@ -2110,6 +2194,11 @@ challenge_for_artifact_interaction = { trigger = { scope:recipient.prestige < challenge_for_artifact_prestige_limit_value } # 1/3rd of potential loss add = 30 } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } } # AI @@ -2223,6 +2312,13 @@ challenge_for_artifact_interaction = { } } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } + + modifier = { # A Cowed character will never take this interaction factor = 0 scope:actor = { @@ -3402,6 +3498,15 @@ buy_artifact_claim = { set_relation_potential_rival = scope:actor } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_bought_artifact_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI STUFF @@ -3433,6 +3538,11 @@ buy_artifact_claim = { ai_will_do = { base = 30 + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } + # Make it more likely for AI characters to buy claims if they have a royal court modifier = { scope:actor = { @@ -3600,6 +3710,73 @@ demand_dynasty_banner_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_received_banner.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + on_decline = { + scope:target = { + save_scope_as = demanded_artifact + } + if = { + limit = { + exists = scope:demanded_artifact + } + scope:actor = { + set_variable = { + name = demanded_this_artifact_interaction_recently + value = scope:demanded_artifact + years = 5 + } + } + } + scope:actor = { + send_interface_toast = { + type = event_generic_bad + title = demand_artifact_interaction_notification + left_icon = scope:recipient + right_icon = scope:target + custom_tooltip = demand_artifact_interaction_notification_refused + + scope:recipient = { + add_opinion = { + target = scope:actor + modifier = insult_opinion + opinion = -60 + } + } + } + } + if = { + limit = { + scope:actor = { + is_ai = yes + } + } + scope:actor = { + add_opinion = { + target = scope:recipient + modifier = refusal_opinion + opinion = -60 + } + } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_refused_banner.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -3678,6 +3855,10 @@ demand_dynasty_banner_interaction = { add = 100 desc = SCHEME_WEAK_HOOK_USED } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } } ai_potential = { @@ -3687,54 +3868,7 @@ demand_dynasty_banner_interaction = { has_outstanding_artifact_claims = yes } - on_decline = { - scope:target = { - save_scope_as = demanded_artifact - } - if = { - limit = { - exists = scope:demanded_artifact - } - scope:actor = { - set_variable = { - name = demanded_this_artifact_interaction_recently - value = scope:demanded_artifact - years = 5 - } - } - } - scope:actor = { - send_interface_toast = { - type = event_generic_bad - title = demand_artifact_interaction_notification - left_icon = scope:recipient - right_icon = scope:target - custom_tooltip = demand_artifact_interaction_notification_refused - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = insult_opinion - opinion = -60 - } - } - } - } - if = { - limit = { - scope:actor = { - is_ai = yes - } - } - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = refusal_opinion - opinion = -60 - } - } - } - } ai_min_reply_days = 7 ai_max_reply_days = 14 @@ -3768,6 +3902,10 @@ demand_dynasty_banner_interaction = { } } } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { # A Cowed character will never take this interaction factor = 0 scope:actor = { @@ -3793,6 +3931,7 @@ demand_dynasty_banner_interaction = { destroy_artifact_interaction = { interface_priority = 30 common_interaction = yes + icon = artifact category = interaction_category_friendly desc = destroy_artifact_interaction_desc diff --git a/common/character_interactions/00_blackmail_interactions.txt b/common/character_interactions/00_blackmail_interactions.txt index 4f65348d3c..cec83f1791 100644 --- a/common/character_interactions/00_blackmail_interactions.txt +++ b/common/character_interactions/00_blackmail_interactions.txt @@ -132,6 +132,15 @@ play_music_cue = mx_cue_murder } blackmail_interaction_effect = yes #Adds strong or weak hook + opinion penalty + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_blackmail.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -160,6 +169,15 @@ } } scope:actor = { trigger_event = blackmail.0001 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_blackmail.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_blocked_effect = { @@ -200,6 +218,11 @@ } desc = BLACKMAIL_INTERACTION_PARANOID_ACCEPTANCE } + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 25 + } + opinion_modifier = { trigger = { scope:recipient = { @@ -312,6 +335,10 @@ trigger = { scope:target = { secret_type = secret_witch } } desc = BLACKMAIL_NOTIFICATION_SECRET_WITCH } + triggered_desc = { + trigger = { scope:target = { secret_type = secret_crypto_religionist } } + desc = BLACKMAIL_NOTIFICATION_SECRET_CRYPTO_RELIGIONIST + } triggered_desc = { trigger = { scope:target = { @@ -428,6 +455,11 @@ ai_will_do = { base = 100 + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0 diff --git a/common/character_interactions/00_character_interactions.txt b/common/character_interactions/00_character_interactions.txt index cd2df85a8e..a121a60536 100644 --- a/common/character_interactions/00_character_interactions.txt +++ b/common/character_interactions/00_character_interactions.txt @@ -48,25 +48,26 @@ offer_vassalization_interaction = { ai_accept = { base = -50 - #MAIN - #Heretic/Infidel modifier. - #Tier difference modifier. - #Dejure modifier. - #Distant/Remote Realm modifier. - #Military power difference modifier. - - #MINOR - #Rivalry modifier. - #Same Dynasty modifier. - #Cultural/Cultural Group modifiers. - #Ageism modifier vs kids. - #Ruler Legitimacy modifier. - #Claimant modifier. - - #OPINION SCALES - #Dread - #Compare Opinion modifier. + # MAIN + # Heretic/Infidel modifier. + # Tier difference modifier. + # Dejure modifier. + # Distant/Remote Realm modifier. + # Military power difference modifier. + # MINOR + # Rivalry modifier. + # Same Dynasty modifier. + # Cultural/Cultural Group modifiers. + # Ageism modifier vs kids. + # Ruler Legitimacy modifier. + # Claimant modifier. + # FP3 Piety Level modifier. + + # OPINION SCALES + # Dread + # Compare Opinion modifier. + # PERKS modifier = { # Perk boost desc = offer_vassalization_true_ruler_perk_tt @@ -677,6 +678,18 @@ offer_vassalization_interaction = { add = 5 } + #modifier = { # FP3 modifier. + # desc = GENERIC_YOUR_PIETY_LEVEL_MODIFIER + # trigger = { scope:actor = { any_character_struggle = { has_struggle_phase_parameter = piety_level_affects_vassalage_acceptance } } } + # add = { + # value = { + # value = scope:actor.piety_level + # subtract = low_piety_level + # } + # multiply = 10 + # } + #} + # OPINION INFLUENCE modifier = { add = intimidated_external_reason_value @@ -904,11 +917,10 @@ offer_vassalization_interaction = { offer_vassalization_interaction_effect = yes scope:actor = { trigger_event = char_interaction.0001 + ## Remove bonus, it's been used if = { - limit = { - has_character_modifier = event_bonus_to_vassal_accept - } + limit = { has_character_modifier = event_bonus_to_vassal_accept } remove_character_modifier = event_bonus_to_vassal_accept } } @@ -1017,27 +1029,27 @@ offer_fealty_interaction = { ai_accept = { base = 50 - #MAIN - #Heretic/Infidel modifier. - #Tier difference modifier. - #Dejure modifier. - #Distant/Remote Realm modifier. - - #MINOR - #Rivalry modifier. - #Same Dynasty modifier. - #Cultural/Cultural Group modifiers. - #Claimant modifier. - - #OPINION SCALES - #Personality modifier. - #Compare Opinion modifier. - #MAIN - modifier = { #Different faith, no pluralism. + # MAIN + # Heretic/Infidel modifier. + # Tier difference modifier. + # Dejure modifier. + # Distant/Remote Realm modifier. + + # MINOR + # Rivalry modifier. + # Same Dynasty modifier. + # Cultural/Cultural Group modifiers. + # Claimant modifier. + + # OPINION SCALES + # Personality modifier. + # Compare Opinion modifier. + + modifier = { # Different faith, no pluralism. desc = offer_vassalization_interaction_aibehavior_differentfaith_tt trigger = { scope:actor = { - NOR = { #Of two different faiths AND the potential vassal's faith is not pluralistic. + NOR = { # Of two different faiths AND the potential vassal's faith is not pluralistic. faith = scope:recipient.faith faith = { has_doctrine = doctrine_pluralism_pluralistic } } @@ -1070,14 +1082,14 @@ offer_fealty_interaction = { } } - modifier = { #I am a King! + modifier = { # I am a King! desc = offer_fealty_interaction_aibehavior_amkingtier_tt trigger = { scope:actor = { highest_held_title_tier = tier_kingdom } } add = -10 } - modifier = { #Wide difference in rank + modifier = { # Wide difference in rank desc = offer_vassalization_interaction_aibehavior_widetitletier_tt trigger = { scope:actor = { @@ -1099,7 +1111,7 @@ offer_fealty_interaction = { } add = 25 } - modifier = { #Distant Realm. + modifier = { # Distant Realm. desc = offer_vassalization_interaction_aibehavior_distantrealm_tt trigger = { scope:actor = { @@ -1111,7 +1123,7 @@ offer_fealty_interaction = { } add = -15 } - modifier = { #Remote Realm. + modifier = { # Remote Realm. desc = offer_vassalization_interaction_aibehavior_remoterealm_tt trigger = { scope:actor = { @@ -1124,8 +1136,8 @@ offer_fealty_interaction = { add = -25 } - #MINOR - modifier = { #Rivalry modifier. + # MINOR + modifier = { # Rivalry modifier. desc = offer_vassalization_interaction_aibehavior_rival_tt trigger = { scope:recipient = { @@ -1135,7 +1147,7 @@ offer_fealty_interaction = { } add = -10 } - modifier = { #Nemesis modifier. + modifier = { # Nemesis modifier. desc = offer_vassalization_interaction_aibehavior_nemesis_tt trigger = { scope:recipient = { @@ -1144,7 +1156,7 @@ offer_fealty_interaction = { } add = -30 } - modifier = { #Same Dynasty modifier. + modifier = { # Same Dynasty modifier. desc = offer_vassalization_interaction_aibehavior_dynasty_tt trigger = { scope:recipient = { @@ -1177,7 +1189,7 @@ offer_fealty_interaction = { } } - modifier = { #Claimant modifier. + modifier = { # Claimant modifier. desc = offer_vassalization_interaction_aibehavior_claimant_tt trigger = { scope:actor.primary_title = { @@ -1189,14 +1201,14 @@ offer_fealty_interaction = { add = -15 } - #PERSONALITY + # PERSONALITY ai_value_modifier = { ai_greed = 0.75 min = 0 } - #OPINION INFLUENCE - opinion_modifier = { #Compare Opinion modifier. + # OPINION INFLUENCE + opinion_modifier = { # Compare Opinion modifier. who = scope:recipient opinion_target = scope:actor multiplier = 0.5 @@ -1423,6 +1435,15 @@ force_vote_in_succession_election_interaction = { use_hook = scope:recipient } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_voted.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -1786,53 +1807,25 @@ grant_independence_interaction = { # Grant independence to non de_jure + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_grant_independence.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_will_do = { base = 0 #The AI should never do this! # Except in the context of Struggle - #modifier = { - # scope:recipient = { - # any_character_struggle = { - # involvement = involved - # } - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # NOT = { - # any_held_title = { - # is_de_jure_liege_or_above_target = scope:recipient.primary_title - # } - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_independence_from_non_dejure_vassal - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = -50 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_independence_from_non_dejure_vassal - # } - # } - # } - # add = 100 - # } - # } - #} + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 10 + } } } @@ -1870,8 +1863,7 @@ expose_secret_interaction = { expose_secret = scope:actor } } - else = - { + else = { every_known_secret = { limit = { secret_owner = scope:recipient @@ -1894,6 +1886,15 @@ expose_secret_interaction = { shy = medium_stress_impact_gain } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_secret_exposure.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -1902,43 +1903,9 @@ expose_secret_interaction = { base = 0 # Struggle - #modifier = { - # scope:recipient = { - # any_character_struggle = { - # involvement = involved - # } - # is_important_or_vip_struggle_character = yes - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_reveal_secret_important - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_reveal_secret_important - # } - # } - # } - # add = -100 - # } - # } - #} + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } } } - diff --git a/common/character_interactions/00_court_amenities_interactions.txt b/common/character_interactions/00_court_amenities_interactions.txt index e16ccd04a4..5579a89751 100644 --- a/common/character_interactions/00_court_amenities_interactions.txt +++ b/common/character_interactions/00_court_amenities_interactions.txt @@ -87,7 +87,10 @@ sumptuary_law_debate_interaction = { } } scope:recipient = { - trigger_event = court_amenities_interactions.0001 + trigger_event = { + id = court_amenities_interactions.0001 + days = 1 + } add_character_modifier = { modifier = sumptuary_debated_modifier years = 10 @@ -105,5 +108,14 @@ sumptuary_law_debate_interaction = { scope:recipient = { custom_tooltip = sumptuary_debate_interaction.tt_winnings_recipient } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_sumptuary_law.desc + REVERSE_NON_HOUSE_TARGET = no + } } } diff --git a/common/character_interactions/00_courtier_and_guest_interactions.txt b/common/character_interactions/00_courtier_and_guest_interactions.txt index f172a8f2f8..9100889a5c 100644 --- a/common/character_interactions/00_courtier_and_guest_interactions.txt +++ b/common/character_interactions/00_courtier_and_guest_interactions.txt @@ -497,7 +497,7 @@ kick_from_court_interaction = { } } } - + auto_accept = yes } @@ -727,7 +727,7 @@ invite_to_court_interaction = { modifier = { exists = liege is_child_of = liege - add = -100 + add = -160 desc = AI_THEIR_CHILD } @@ -963,6 +963,24 @@ invite_to_court_interaction = { amenity_level = { type = court_lodging_standards value >= medium_amenity_level } } } + + modifier = { + add = { + value = scope:actor.house.house_unity_value + multiply = 0.5 + } + desc = AI_HOUSE_UNITY + scope:actor = { government_has_flag = government_is_clan } + exists = house + exists = scope:actor.house + house = scope:actor.house + house = { + OR = { + has_house_unity_stage = harmonious + has_house_unity_stage = friendly + } + } + } # Warcraft modifier = { @@ -975,7 +993,6 @@ invite_to_court_interaction = { scourge_interaction_modifiers = yes } - auto_accept = { custom_description = { text = "spending_hook" diff --git a/common/character_interactions/00_culture_interactions.txt b/common/character_interactions/00_culture_interactions.txt index 15e0765069..3daa3d457f 100644 --- a/common/character_interactions/00_culture_interactions.txt +++ b/common/character_interactions/00_culture_interactions.txt @@ -88,6 +88,10 @@ request_culture_conversion_interaction = { } desc = COWED_REASON } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } } ai_min_reply_days = 1 @@ -100,9 +104,6 @@ request_culture_conversion_interaction = { CULTURE = scope:actor.culture } } - - on_decline = { - } } ai_cultural_hybridization_interaction = { @@ -201,6 +202,11 @@ ai_cultural_hybridization_interaction = { ai_will_do = { base = 100 + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0.2 diff --git a/common/character_interactions/00_debug_interactions.txt b/common/character_interactions/00_debug_interactions.txt index 0cb46cd710..d669ca2fc4 100644 --- a/common/character_interactions/00_debug_interactions.txt +++ b/common/character_interactions/00_debug_interactions.txt @@ -90,7 +90,10 @@ change_hunt_success_chance = { } set_variable = { name = hunt_success_chance - value = hunt_success_chance_value + value = { + value = hunt_success_chance_value + add = var:hunt_success_chance_event + } } } } @@ -1477,23 +1480,55 @@ debug_change_every_county = { category = interaction_debug_main use_diplomatic_range = no ignores_pending_interaction_block = yes - icon = "gfx/interface/icon_holding_city" # todo_cd this should work, but currently is not functional (this is why the one above just copied over the icon) + icon = alliance is_shown = { debug_only = yes } send_option = { # Set Control to Max (100) flag = debug_change_every_county_max_control localization = debug_change_every_county.a } + send_option = { # Set Control to Lowest (0) (-500) + flag = debug_change_every_county_lowest_control + localization = gain_county_corruption.message.low_control + } + send_option = { # Set Opinion to Max + flag = debug_change_every_county_highest_opinion + localization = debug_change_every_county.b.a + } + send_option = { # Set Opinion to Min + flag = debug_change_every_county_lowest_opinion + localization = debug_change_every_county.b.b + } send_option = { # Here goes anything else you may want to do in the future, just add another send_option and then an if on the accept - flag = auto_formatter_complains_if_I_do_not_do_this - localization = debug_start_era_of_crusades_interaction # use debug_change_every_county.b + flag = debug_change_every_county_convert_to_fatih + localization = FAITH_CONVERSION_CONVERT } + # send_option = { # Here goes anything else you may want to do in the future, just add another send_option and then an if on the accept + # flag = auto_formatter_complains_if_I_do_not_do_this + # localization = debug_start_era_of_crusades_interaction + # } - on_accept = { + on_accept = { # In retrospect, this is pretty sloppy script, but it makes sense considering how old it is -h if = { # Set Control to Max (100) limit = { scope:debug_change_every_county_max_control = yes } scope:recipient = { every_held_county = { change_county_control = 100 } } } + else_if = { + limit = { scope:debug_change_every_county_lowest_control = yes } + scope:recipient = { every_held_county = { change_county_control = -500 } } + } + else_if = { + limit = { scope:debug_change_every_county_highest_opinion = yes } + scope:recipient = { every_held_county = { add_county_modifier = debug_max_popular_opinion_modifier } } # Please ignore this violation of basic scripting decency, I do it for compactness + } + else_if = { + limit = { scope:debug_change_every_county_lowest_opinion = yes } + scope:recipient = { every_held_county = { add_county_modifier = debug_min_popular_opinion_modifier } } + } + else_if = { + limit = { scope:debug_change_every_county_convert_to_fatih = yes } + scope:recipient = { every_held_county = { set_county_faith = scope:actor.faith } } + } } auto_accept = yes @@ -1651,6 +1686,16 @@ add_glory_interaction = { auto_accept = yes } +debug_progress_all_active_schemes_interaction = { + category = interaction_debug_main + use_diplomatic_range = no + ignores_pending_interaction_block = yes + icon = debug_secret + is_shown = { debug_only = yes } + on_accept = { scope:recipient = { every_scheme = { add_scheme_progress = 100 } } } + auto_accept = yes +} + debug_travel_to_ruler_interaction = { category = interaction_debug_main use_diplomatic_range = no diff --git a/common/character_interactions/00_diarch_interactions.txt b/common/character_interactions/00_diarch_interactions.txt index 1ed252cc6e..41f15753d7 100644 --- a/common/character_interactions/00_diarch_interactions.txt +++ b/common/character_interactions/00_diarch_interactions.txt @@ -1979,29 +1979,7 @@ diarch_imprison_interaction = { } ## We avoid wars here too, but only in the resulting event. ## Agenda impact - #modifier = { - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { phase_has_catalyst = catalyst_imprison_important } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { phase_has_catalyst = catalyst_imprison_important } - # } - # } - # add = -100 - # } - # } - # any_character_struggle = { involvement = involved } - #} + # Factors. ## Relationships. ### + Do pick on people we hate. @@ -4052,6 +4030,287 @@ diarch_coup_liege_interaction = { +################################################## +# LIEGE ON DIARCHS POWERS + +# Liege (actor) transfers vizier's (recipient's) extravagance modifiers into their own gold. +mulct_vizier_interaction = { + category = interaction_category_diarch + common_interaction = yes + icon = icon_gold + + desc = mulct_vizier_interaction_desc + + is_shown = { + # Diarchy checks for scope:actor. + scope:actor = { + # If you're not in a diarchy, we don't care. + diarch ?= scope:recipient + # Plus only on viziers. + has_diarchy_active_parameter = unlock_mulct_vizier_interaction + } + } + + is_valid_showing_failures_only = { + scope:actor = { + # Some basic checks. + is_available_adult = yes + # Shouldn't happen, but just in case. + NOT = { is_at_war_with = scope:recipient } + } + # Must select something. + trigger_if = { + # AI won't exploit and need this exception, as they don't actually open the windows, so they'll be blocked from taking the interaction otherwise. + limit = { + scope:actor = { is_ai = no } + } + custom_tooltip = { + text = interactions_general.tt.must_select_one_option + OR = { + scope:mulct_vizier_interaction_minimal = yes + scope:mulct_vizier_interaction_minor = yes + scope:mulct_vizier_interaction_medium = yes + scope:mulct_vizier_interaction_major = yes + scope:mulct_vizier_interaction_massive = yes + } + } + } + } + + cooldown = { years = 10 } + + # Attempt Methods + send_options_exclusive = yes + ## Minimal. + ### Always show this'un. + send_option = { flag = mulct_vizier_interaction_minimal } + ## Minor. + send_option = { flag = mulct_vizier_interaction_minor } + ## Medium. + send_option = { flag = mulct_vizier_interaction_medium } + ## Major. + send_option = { flag = mulct_vizier_interaction_major } + ## Massive. + send_option = { flag = mulct_vizier_interaction_massive } + + can_send = { + trigger_if = { + limit = { scope:mulct_vizier_interaction_minor = yes } + custom_tooltip = { + text = mulct_vizier_interaction.extravagances_required.t1 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t1_treasure_modifier + has_character_modifier = vizier_extravagance_t1_activities_modifier + has_character_modifier = vizier_extravagance_t1_property_modifier + has_character_modifier = vizier_extravagance_t1_charity_modifier + } + } + } + custom_tooltip = { + text = mulct_vizier_interaction.scales_too_swung.tt + scope:actor.vizier_mulct_swing_check_value >= vizier_mulct_swing_gain_minor_value + } + } + trigger_if = { + limit = { scope:mulct_vizier_interaction_medium = yes } + custom_tooltip = { + text = mulct_vizier_interaction.extravagances_required.t2 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t2_treasure_modifier + has_character_modifier = vizier_extravagance_t2_activities_modifier + has_character_modifier = vizier_extravagance_t2_property_modifier + has_character_modifier = vizier_extravagance_t2_charity_modifier + } + } + } + custom_tooltip = { + text = mulct_vizier_interaction.scales_too_swung.tt + scope:actor.vizier_mulct_swing_check_value >= vizier_mulct_swing_gain_medium_value + } + } + trigger_if = { + limit = { scope:mulct_vizier_interaction_major = yes } + custom_tooltip = { + text = mulct_vizier_interaction.extravagances_required.t3 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t3_treasure_modifier + has_character_modifier = vizier_extravagance_t3_activities_modifier + has_character_modifier = vizier_extravagance_t3_property_modifier + has_character_modifier = vizier_extravagance_t3_charity_modifier + } + } + } + custom_tooltip = { + text = mulct_vizier_interaction.scales_too_swung.tt + scope:actor.vizier_mulct_swing_check_value >= vizier_mulct_swing_gain_major_value + } + } + trigger_if = { + limit = { scope:mulct_vizier_interaction_massive = yes } + custom_tooltip = { + text = mulct_vizier_interaction.extravagances_required.t4 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t4_treasure_modifier + has_character_modifier = vizier_extravagance_t4_activities_modifier + has_character_modifier = vizier_extravagance_t4_property_modifier + has_character_modifier = vizier_extravagance_t4_charity_modifier + } + } + } + custom_tooltip = { + text = mulct_vizier_interaction.scales_too_swung.tt + scope:actor.vizier_mulct_swing_check_value >= vizier_mulct_swing_gain_massive_value + } + } + } + + on_accept = { + # Sort the gold transfer. + mulct_vizier_for_cash_effect = { VIZIER = scope:recipient } + scope:recipient = { + # How angry is scope:recipient? + if = { + limit = { scope:mulct_vizier_interaction_minimal = yes } + mulct_vizier_for_cash_opinion_reaction_effect = { MULT = 1 } + } + if = { + limit = { scope:mulct_vizier_interaction_minor = yes } + mulct_vizier_for_cash_opinion_reaction_effect = { MULT = 2 } + } + if = { + limit = { scope:mulct_vizier_interaction_medium = yes } + mulct_vizier_for_cash_opinion_reaction_effect = { MULT = 3 } + } + if = { + limit = { scope:mulct_vizier_interaction_major = yes } + mulct_vizier_for_cash_opinion_reaction_effect = { MULT = 4 } + } + if = { + limit = { scope:mulct_vizier_interaction_massive = yes } + mulct_vizier_for_cash_opinion_reaction_effect = { MULT = 5 } + } + # How much stress is this causing them? + stress_impact = { + ambitious = major_stress_impact_loss + arrogant = medium_stress_impact_loss + generous = minor_stress_impact_loss + greedy = major_stress_impact_gain + } + } + + # Object explorer logging. + scope:actor = { + diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_vizmulct_accept } + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_vizmulct_accept_actor_list } + } + scope:recipient = { + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_vizmulct_accept_recipient_list } + } + } + + auto_accept = yes + + # AI + ai_targets = { ai_recipients = diarch } + ai_frequency = 120 + ai_potential = { + has_active_diarchy = yes + has_diarchy_parameter = unlock_mulct_vizier_interaction + } + + ai_will_do = { + # You generally want to do this if you can. + base = 100 + + # Circumstances. + ## Are we in debt? + modifier = { + add = 100 + gold <= -1 + } + ## Are we at war? + modifier = { + add = 100 + is_at_war = yes + } + + # Vizier Extravagances. + ## Are they in the upper tiers? + modifier = { + add = 50 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t3_treasure_modifier + has_character_modifier = vizier_extravagance_t3_activities_modifier + has_character_modifier = vizier_extravagance_t3_property_modifier + has_character_modifier = vizier_extravagance_t3_charity_modifier + } + } + } + ## Are they in the uppermost tier? + modifier = { + add = 25 + scope:recipient = { + OR = { + has_character_modifier = vizier_extravagance_t4_treasure_modifier + has_character_modifier = vizier_extravagance_t4_activities_modifier + has_character_modifier = vizier_extravagance_t4_property_modifier + has_character_modifier = vizier_extravagance_t4_charity_modifier + } + } + } + + # Traits. + ## Greedy characters'll do it whenever they can. + modifier = { + add = 50 + has_trait = greedy + } + ## Generous characters'll only do it occasionally. + modifier = { + add = -50 + has_trait = generous + } + + # Send Option Usage. + ## These teach the AI how to use the send options. + ## These are linear; basically, prefer the largest number you're valid for (since the can_send'll block whatever you can't mulct). + modifier = { + add = 1 + scope:mulct_vizier_interaction_minimal = yes + } + modifier = { + add = 2 + scope:mulct_vizier_interaction_minor = yes + } + modifier = { + add = 3 + scope:mulct_vizier_interaction_medium = yes + } + modifier = { + add = 4 + scope:mulct_vizier_interaction_major = yes + } + modifier = { + add = 5 + scope:mulct_vizier_interaction_massive = yes + } + } +} + + + + + + + + + + ################################################## # MANAGE DIARCHY INTERACTIONS @@ -4181,6 +4440,10 @@ swing_scales_currency_interaction = { } # Gold send_option = { + is_shown = { + # Filter out for the liege in vizierates - they can mulct the vizier, so we don't give them the chance to spend that gold back. + interaction_actor_is_liege_with_vizierate_trigger = no + } starts_enabled = { scope:actor.gold >= scope:actor.swing_scales_cash_cost_value } flag = swing_gold localization = SWING_GOLD @@ -4200,6 +4463,10 @@ swing_scales_currency_interaction = { } # HoF send_option = { + is_shown = { + # Filter out for the liege in vizierates - they can mulct the vizier, so we don't give them the chance to spend that gold back. + interaction_actor_is_liege_with_vizierate_trigger = no + } is_valid = { diarch_swing_scales_valid_shared_hof_trigger = yes } # Top of the prio order for enablement. starts_enabled = { diarch_swing_scales_valid_shared_hof_trigger = yes } @@ -4211,7 +4478,7 @@ swing_scales_currency_interaction = { on_accept = { # Swing the scales in the direction of scope:actor. scope:recipient = { - # Swing the scales up if this is the liege. + # Swing the scales down if this is the liege. if = { limit = { is_diarch_of_target = scope:actor } send_interface_message = { @@ -4219,15 +4486,25 @@ swing_scales_currency_interaction = { title = swing_scales_interaction_by_liege.t right_icon = scope:actor scope:actor = { - update_diarchy_swing_with_perspective_effect = { - SWING = medium_sop_swing_liege_gain - LIEGE = scope:actor + # Viziers are give you more bang for your buck when swinging against 'em. + if = { + limit = { has_diarchy_active_parameter = lieges_swing_more_against_diarchs } + update_diarchy_swing_with_perspective_effect = { + SWING = major_sop_swing_liege_gain + LIEGE = scope:actor + } + } + else = { + update_diarchy_swing_with_perspective_effect = { + SWING = medium_sop_swing_liege_gain + LIEGE = scope:actor + } } diarch_swing_scales_guts_effect = yes } } } - # And down if this is the diarch. + # And up if this is the diarch. else = { send_interface_message = { type = msg_mandate_results_bad_effect @@ -5503,56 +5780,321 @@ liege_dismiss_entrenched_regency_interaction = { } } -# A vassal requests their liege designate them as regent, should the need arise. -declare_me_regent_interaction = { +# Liege (actor) dismisses a Vizierate. +liege_dismiss_vizier_interaction = { category = interaction_category_diarch - icon = icon_declare_me_regent - - desc = declare_me_regent_interaction_desc - notification_text = DECLARE_ME_REGENT_PROPOSAL + common_interaction = yes + icon = icon_dismiss_temporary_regency - interface_priority = 20 - ai_min_reply_days = 4 - ai_max_reply_days = 9 + desc = liege_dismiss_vizier_interaction_desc is_shown = { # The obvious. NOT = { scope:actor = scope:recipient } - # Only useable on your liege. - scope:recipient = scope:actor.liege - # And said-liege can't be in a regency already... - scope:recipient = { - NOT = { has_active_diarchy = yes } + # Diarchy checks for scope:actor. + scope:actor = { + # If you're not in a diarchy, we don't care. + diarch ?= scope:recipient + # With the extra consideration that we only want this to appear for Vizierates. + has_diarchy_parameter = primeminister_dismissal_will_upset_administration } - # ... or have declared you their regent already! - scope:actor = { is_designated_diarch = no } } is_valid_showing_failures_only = { + # Basic requirements must be fulfilled. + scope:actor = { can_leave_diarchy_trigger = yes } + } + + cooldown = { years = 5 } + + on_accept = { scope:actor = { - # Can't do if you're already expected to be regent. - is_designated_diarch = no - # Can't be too young. - is_adult = yes - # Or imprisoned. - is_imprisoned = no - # Or, for that matter, incapable. - is_incapable_trigger = no + # We've dismissed your vizier! + ## Do we need to give a warning tooltip first? + if = { + limit = { has_diarchy_active_parameter = primeminister_dismissal_will_upset_administration } + custom_tooltip = liege_dismiss_vizier_interaction.tt.problematic_dismissal.vizier_too_entrenched + } + ## Now apply the real effects. + send_interface_toast = { + title = liege_dismiss_vizier_interaction.toast.t + left_icon = scope:actor + # Will this have ripple effects (actual)? + if = { + limit = { has_diarchy_active_parameter = primeminister_dismissal_will_upset_administration } + # Apply the modifier, scaling to how much we dun goofed. + add_character_modifier = { + modifier = civil_service_in_chaos_modifier + years = 10 + } + } + # End the diarchy. + end_diarchy = yes + } } - # Put a general cooldown on this stuff. + # How badly do they take it? scope:recipient = { - trigger_if = { + # Vengeful takes it badly. + if = { limit = { - exists = designated_diarch + has_trait = vengeful + can_set_relation_rival_trigger = { CHARACTER = scope:actor } + } + set_relation_rival = { + target = scope:actor + reason = rival_dismissed_me_from_vizierate + } + add_opinion = { + target = scope:actor + modifier = insult_opinion + opinion = -50 + } + } + # Even if they have something stopping them from becoming a rival (e.g., they're already your vizier). + else_if = { + limit = { has_trait = vengeful } + add_opinion = { + target = scope:actor + modifier = insult_opinion + opinion = -50 + } + } + # Forgiving isn't mad, they're just disappointed. + else_if = { + limit = { has_trait = forgiving } + add_opinion = { + target = scope:actor + modifier = insult_opinion + opinion = -10 + } + } + # Otherwise, a bit of pain is to be expected. + else = { + progress_towards_rival_effect = { + REASON = rival_dismissed_me_from_vizierate + CHARACTER = scope:actor + OPINION = 0 + } + # Throw the opinion manually so we can keep the type unified. + add_opinion = { + target = scope:actor + modifier = insult_opinion + opinion = -25 } - time_after_diarch_designated = { years >= 10 } } + # Plus some stress. + stress_impact = { + lazy = major_stress_impact_loss + humble = medium_stress_impact_loss + content = medium_stress_impact_loss + diligent = medium_stress_impact_gain + ambitious = major_stress_impact_gain + arrogant = major_stress_impact_gain + } + # Extravagance modifiers taken care of in the on_action. } - } - - # No general cooldown: if your liege changes, ask away. - # Long specific cooldown, though. We don't want these going through constantly. - cooldown_against_recipient = { years = 10 } + # Plus, remember to advertise to the player that there are alternatives. + ## We're deliberately doing this outside of scope:actor so we can make it a lil subtitle rather than something lumped in with the effect block. + ## Just give 'em a duchy. + if = { + limit = { + scope:actor = { has_diarchy_active_parameter = primeminister_requires_duchy } + } + custom_tooltip = liege_dismiss_vizier_interaction.tt.problematic_dismissal.bribe.duchy + } + ## Just give 'em a county. + else_if = { + limit = { + scope:actor = { has_diarchy_active_parameter = primeminister_requires_county } + } + custom_tooltip = liege_dismiss_vizier_interaction.tt.problematic_dismissal.bribe.county + } + + # Object explorer logging. + scope:actor = { + diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_dismviz_accept } + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_dismviz_accept_actor_list } + } + scope:recipient = { + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_dismviz_accept_recipient_list } + } + } + + auto_accept = yes + + # AI + ai_targets = { ai_recipients = diarch } + ai_frequency = 24 + ai_potential = { has_active_diarchy = yes } + + ai_will_do = { + # You should actively want to get rid of them. + base = -25 + + # If you appointed this vizier, don't remove them unless you get booted down to county or something. + modifier = { + add = -500 + var:my_vizier ?= scope:recipient + } + + # Realm. + ## Weight up heavily for counts; they shouldn't generally get them, but they don't want to keep them if they do. + modifier = { + add = 1000 + highest_held_title_tier = tier_county + } + ## Weight up for dukes. + modifier = { + add = 25 + highest_held_title_tier = tier_duchy + } + ## Weight down for kings. + modifier = { + add = -25 + highest_held_title_tier = tier_kingdom + } + ## Weight down for emperors. + modifier = { + add = -50 + highest_held_title_tier >= tier_empire + } + ## Realm Size. + ### Smaller you are, the more likely you are to do this. + ### Tiny or less. + modifier = { + add = 50 + realm_size <= tiny_realm_size + } + ### Minor. + modifier = { + add = 25 + realm_size > tiny_realm_size + realm_size <= minor_realm_size + } + ### Major. + modifier = { + add = -25 + realm_size >= major_realm_size + realm_size < massive_realm_size + } + ### Massive or more. + modifier = { + add = -50 + realm_size >= massive_realm_size + } + + # Traits. + ## +++ Ambitious. + modifier = { + add = 25 + has_trait = ambitious + } + ## +++ Arrogant. + modifier = { + add = 25 + has_trait = arrogant + } + ## ++ Diligent. + modifier = { + add = 15 + has_trait = diligent + } + ## ++ Patient. + modifier = { + add = 15 + has_trait = patient + } + ## + Gregarious. + modifier = { + add = 5 + has_trait = gregarious + } + ## - Shy. + modifier = { + add = -5 + has_trait = shy + } + ## - Content. + modifier = { + add = -5 + has_trait = content + } + ## -- Impatient. + modifier = { + add = -15 + has_trait = impatient + } + ## -- Content. + modifier = { + add = -15 + has_trait = content + } + ## -- Humble. + modifier = { + add = -15 + has_trait = humble + } + ## --- Greedy. + modifier = { + add = -25 + has_trait = greedy + } + ## --- Lazy. + modifier = { + add = -25 + has_trait = lazy + } + } +} + +# A vassal requests their liege designate them as regent, should the need arise. +declare_me_regent_interaction = { + category = interaction_category_diarch + icon = icon_declare_me_regent + + desc = declare_me_regent_interaction_desc + notification_text = DECLARE_ME_REGENT_PROPOSAL + + interface_priority = 20 + ai_min_reply_days = 4 + ai_max_reply_days = 9 + + is_shown = { + # The obvious. + NOT = { scope:actor = scope:recipient } + # Only useable on your liege. + scope:recipient = scope:actor.liege + # And said-liege can't be in a regency already... + scope:recipient = { has_active_diarchy = no } + # ... or have declared you their regent already! + scope:actor = { is_designated_diarch = no } + } + + is_valid_showing_failures_only = { + scope:actor = { + # Can't do if you're already expected to be regent. + is_designated_diarch = no + # Can't be too young. + is_adult = yes + # Or imprisoned. + is_imprisoned = no + # Or, for that matter, incapable. + is_incapable_trigger = no + } + # Put a general cooldown on this stuff. + scope:recipient = { + trigger_if = { + limit = { + exists = designated_diarch + } + time_after_diarch_designated = { years >= 10 } + } + } + } + + # No general cooldown: if your liege changes, ask away. + # Long specific cooldown, though. We don't want these going through constantly. + cooldown_against_recipient = { years = 10 } # High cost to reduce spam. cost = { prestige = 500 } @@ -5907,6 +6449,314 @@ declare_me_regent_interaction = { } } +# Liege (actor) selects a vizier to help them run the realm. +appoint_vizier_interaction = { + category = interaction_category_diarch + icon = icon_declare_me_regent + + desc = appoint_vizier_interaction_desc + interface_priority = 20 + + is_shown = { + scope:actor = { + # Must be able to retain a vizier. + government_has_flag = may_appoint_viziers + # Plus obscure the interaction if we've already got one, else it's annoyingly redundant. + NOT = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + # We perform this upon ourselves or our (probable) candidates. + scope:recipient = { + OR = { + this = scope:actor + is_courtier_of = scope:actor + AND = { + highest_held_title_tier = tier_barony + liege = scope:actor + } + } + } + } + + is_valid_showing_failures_only = { + # You can't already be in a diarchy of any kind, or have a designated diarch. + scope:actor = { + NOR = { + has_active_diarchy = yes + exists = designated_diarch + } + } + # Must be of a decent tier. + custom_tooltip = { + text = appoint_vizier_interaction.tt.duchy_or_more + scope:actor.highest_held_title_tier >= tier_duchy + } + # Plus the usuals. + scope:actor = { is_available_at_peace = yes } + # And can't have put the realm into turmoil over this recently. + scope:actor = { + NOT = { has_character_modifier = civil_service_in_chaos_modifier } + } + } + + cooldown = { years = 5 } + + populate_recipient_list = { sort_vizier_candidates_to_list_effect = yes } + + cost = { + prestige = major_prestige_value + renown = { + if = { + limit = { + exists = scope:secondary_recipient + exists = scope:actor.house + scope:secondary_recipient.house ?= scope:actor.house + } + add = massive_dynasty_prestige_value + } + } + } + + auto_accept = yes + + pre_auto_accept = { + # If we're an AI, set the secondary_recipient up for us. + scope:actor = { + if = { + limit = { is_ai = yes } + # First, we need to calc who _is_ most qualified; we don't have access to the character list any more, so reassemble it. + sort_vizier_candidates_to_list_effect = yes + # Now, parse through the the list to find the best character. + ordered_in_list = { + list = characters + order_by = diarchy_vizier_succession_score_value + save_scope_as = ai_recipient + } + } + } + } + + on_accept = { + scope:actor = { + # We enter into a vizierate with scope:secondary_recipient. + custom_tooltip = { + text = appoint_vizier_interaction.tt.enter_vizierate_with_secondary_recipient + start_diarchy = vizierate + # The player uses scope:secondary_recipient. + if = { + limit = { + # We use a NOT here rather than is_ai = no because the AI was occasionally managing to bork its selection process, and the title does _not_ like setting an empty diarch, so we fallback AI who can't behave to a sub-optimal choice. + NOT = { exists = scope:ai_recipient } + } + set_diarch = scope:secondary_recipient + } + # Whereas the AI grabs their pre-selected candidate. + else = { + set_diarch = scope:ai_recipient + } + } + # Apply opinion. + ## AI. + if = { + limit = { exists = scope:ai_recipient } + scope:ai_recipient = { + add_opinion = { + target = scope:actor + modifier = compliment_opinion + opinion = 30 + } + stress_impact = { + ambitious = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + lazy = major_stress_impact_gain + } + } + } + ## Player. + else = { + scope:secondary_recipient = { + add_opinion = { + target = scope:actor + modifier = compliment_opinion + opinion = 30 + } + stress_impact = { + ambitious = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + lazy = major_stress_impact_gain + } + } + } + # And get X tax jurisdictions. + custom_tooltip = appoint_vizier_interaction.tt.secondary_recipient_grants_tax_jurisdictions + # If scope:secondary_recipient isn't the most qualified candidate, we'll take a scaling negative stewardship modifier. + ## The AI will always pick the highest scoring character, so we only do this for players - lock it off so we're not doing lots of unnecessary calculating. + if = { + limit = { is_ai = no } + # First, we need to calc who _is_ most qualified; we don't have access to the character list any more, so reassemble it. + sort_vizier_candidates_to_list_effect = yes + # Now, parse through the the list to find the best character. + ordered_in_list = { + list = characters + order_by = diarchy_vizier_succession_score_value + save_scope_as = best_candidate + } + # Is our chap _the_ chap? + if = { + limit = { + NOT = { scope:secondary_recipient = scope:best_candidate } + } + # Ok, now display some warnings. + custom_tooltip = appoint_vizier_interaction.tt.secondary_recipient_is_not_best_candidate + add_character_modifier = { + modifier = civil_service_upset_modifier + years = 10 + } + } + } + # Are they of our house? + if = { + limit = { + exists = scope:secondary_recipient.house + house ?= scope:secondary_recipient.house + } + custom_tooltip = appoint_vizier_interaction.tt.same_house_penalty + } + # If we have a designated diarch (and it's not this guy), then they're annoyed. + designated_diarch ?= { + if = { + limit = { + NOT = { this = scope:secondary_recipient } + } + add_opinion = { + target = scope:actor + modifier = appointed_vizier_over_designated_regent_opinion + opinion = -40 + } + } + } + # Set a reminder that we appointed this vizier — the AI'll use this to help with determining whether they should remove them or not. + set_variable = { + name = my_vizier + value = scope:recipient + } + # Finally, let's do some stress. + stress_impact = { + trusting = massive_stress_impact_loss + lazy = major_stress_impact_loss + paranoid = minor_stress_impact_gain + diligent = minor_stress_impact_gain + } + } + # Notify about council problemos. + scope:secondary_recipient = { + if = { + limit = { is_councillor = yes } + custom_tooltip = appoint_vizier_interaction.tt.warning.vizier_replace_councillor + } + } + + # Object explorer logging. + scope:actor = { + diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_appviz_accept } + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_appviz_accept_actor_list } + } + scope:recipient = { + diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_appviz_accept_recipient_list } + } + } + + # AI + ai_targets = { ai_recipients = self } + ai_frequency = 240 + + ai_potential = { + government_has_flag = may_appoint_viziers + } + + ai_will_do = { + base = 0 + + # Realm. + ## Weight up for kings. + modifier = { + add = 50 + highest_held_title_tier = tier_kingdom + } + ## Weight up for emperors. + modifier = { + add = 75 + highest_held_title_tier >= tier_empire + } + ## Add realm size directly. + modifier = { + add = sub_realm_size + is_landed = yes + } + + # Traits. + ## +++ Lazy. + modifier = { + add = 25 + has_trait = lazy + } + ## +++ Greedy. + modifier = { + add = 25 + has_trait = greedy + } + ## ++ Humble. + modifier = { + add = 15 + has_trait = humble + } + ## ++ Content. + modifier = { + add = 15 + has_trait = content + } + ## ++ Impatient. + modifier = { + add = 15 + has_trait = impatient + } + ## + Content. + modifier = { + add = 5 + has_trait = content + } + ## + Shy. + modifier = { + add = 5 + has_trait = shy + } + ## - Gregarious. + modifier = { + add = -5 + has_trait = gregarious + } + ## -- Patient. + modifier = { + add = -15 + has_trait = patient + } + ## -- Diligent. + modifier = { + add = -15 + has_trait = diligent + } + ## --- Arrogant. + modifier = { + add = -25 + has_trait = arrogant + } + ## --- Ambitious. + modifier = { + add = -25 + has_trait = ambitious + } + } +} + # Start a scheme to replace an incumbent regent. overthrow_regent_scheme_interaction = { category = interaction_category_diarch diff --git a/common/character_interactions/00_dynast_interactions.txt b/common/character_interactions/00_dynast_interactions.txt index b1c55b577f..b389a4c9a7 100644 --- a/common/character_interactions/00_dynast_interactions.txt +++ b/common/character_interactions/00_dynast_interactions.txt @@ -124,6 +124,15 @@ disinherit_interaction = { disinherit_effect = { DISINHERITOR = scope:actor } } + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_disinheritance.desc + REVERSE_NON_HOUSE_TARGET = no + } + if = { limit = { scope:recipient = { @@ -348,6 +357,11 @@ disinherit_interaction = { } } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0 @@ -470,6 +484,15 @@ disinherit_children_interaction = { scope:recipient = { disinherit_effect = { DISINHERITOR = scope:actor } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_disinheritance.desc + REVERSE_NON_HOUSE_TARGET = no + } } cost = { @@ -622,6 +645,11 @@ disinherit_children_interaction = { } } + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } + modifier = { factor = 0 scope:recipient = { @@ -695,6 +723,15 @@ restore_inheritance_interaction = { scope:recipient = { restore_inheritance_effect = yes } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_re_inheritance.desc + REVERSE_NON_HOUSE_TARGET = no + } } cost = { @@ -738,6 +775,11 @@ restore_inheritance_interaction = { add = 100 scope:recipient = scope:actor } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0 @@ -806,7 +848,7 @@ denounce_interaction = { scope:recipient = { show_as_tooltip = { - denounce_effect = yes + denounce_effect = { ACTOR = scope:actor RECIPIENT = scope:recipient } } } } @@ -814,8 +856,17 @@ denounce_interaction = { } scope:recipient = { - denounce_effect = yes + denounce_effect = { ACTOR = scope:actor RECIPIENT = scope:recipient } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_denouncement.desc + REVERSE_NON_HOUSE_TARGET = no + } } cost = { @@ -976,6 +1027,11 @@ denounce_interaction = { } } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0 @@ -1044,6 +1100,15 @@ forgive_interaction = { scope:recipient = { forgive_effect = yes } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_forgiveness.desc + REVERSE_NON_HOUSE_TARGET = no + } } cost = { @@ -1087,6 +1152,11 @@ forgive_interaction = { add = 100 scope:recipient = scope:actor } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { factor = 0 @@ -1496,6 +1566,15 @@ dynast_claim_title_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_title_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/00_education_interactions.txt b/common/character_interactions/00_education_interactions.txt index 68c6681a36..eb16612a2d 100644 --- a/common/character_interactions/00_education_interactions.txt +++ b/common/character_interactions/00_education_interactions.txt @@ -1,16 +1,14 @@ -#Interactions relating to the education of children +# Interactions relating to the education of children # Designate guardian and ward in your own court -#This interaction is referenced in code! If it's renamed you have to ping a coder +# This interaction is referenced in code! If it's renamed you have to ping a coder educate_child_interaction = { category = interaction_category_friendly common_interaction = yes icon = child send_name = SEND_PROPOSAL - - desc = educate_child_interaction_desc # secondary_actor = guardian @@ -348,6 +346,16 @@ educate_child_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:ward_waiting_for_guardian } + var:ward_waiting_for_guardian = { + custom_tooltip = { + text = guardian_travelling_tt + NOT = { exists = scope:secondary_recipient.var:ward_waiting_for_guardian } + } + } + } } } trigger_if = { # Guardian @@ -361,6 +369,16 @@ educate_child_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:guardian_waiting_for_ward } + var:guardian_waiting_for_ward = { + custom_tooltip = { + text = ward_travelling_tt + NOT = { scope:secondary_actor.num_of_relation_ward >= 1 } + } + } + } } } } @@ -380,11 +398,20 @@ educate_child_interaction = { # Already offered custom_tooltip = { text = ward_already_offered_awaiting_travel_tt - NOT = { exists = var:ward_travelling_to_guardian } + NOR = { + exists = var:ward_travelling_to_guardian + exists = var:ward_waiting_for_guardian + } } custom_tooltip = { text = guardian_already_offered_awaiting_travel_tt - NOT = { exists = var:guardian_travelling_to_ward } + NOR = { + exists = var:guardian_travelling_to_ward + AND = { + exists = var:guardian_waiting_for_ward + num_of_relation_ward >= 1 + } + } } # Hostage custom_tooltip = { @@ -422,6 +449,21 @@ educate_child_interaction = { left_icon = scope:guardian right_icon = scope:ward educate_child_interaction_effect = yes + show_as_tooltip = { + scope:ward = { + if = { + limit = { exists = var:ward_travelling_to_guardian } + custom_tooltip = ward_departs_tt + } + else_if = { + limit = { exists = scope:guardian.var:guardian_travelling_to_ward } + scope:guardian = { custom_tooltip = guardian_departs_tt } + } + else = { + set_relation_guardian = scope:guardian + } + } + } } } #to see the "becomes guardian of x" effect in the interaction confirmation window @@ -688,7 +730,6 @@ educate_child_interaction = { } } - #Offer a ward to a landed character #This interaction is referenced in code! If it's renamed you have to ping a coder offer_ward_interaction = { @@ -946,6 +987,16 @@ offer_ward_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:ward_waiting_for_guardian } + var:ward_waiting_for_guardian = { + custom_tooltip = { + text = guardian_travelling_tt + NOT = { exists = scope:secondary_actor.var:ward_waiting_for_guardian } + } + } + } } } trigger_if = { # Guardian @@ -955,7 +1006,6 @@ offer_ward_interaction = { scope:secondary_recipient = { is_imprisoned = no is_busy_in_events_localised = yes - NOT = { exists = var:guardian_travelling_to_ward } custom_tooltip = { text = guardian_travelling_tt NOT = { exists = var:guardian_travelling_to_ward } @@ -964,6 +1014,16 @@ offer_ward_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:guardian_waiting_for_ward } + var:guardian_waiting_for_ward = { + custom_tooltip = { + text = ward_travelling_tt + NOT = { exists = scope:secondary_recipient.var:guardian_waiting_for_ward } + } + } + } } } } @@ -982,11 +1042,20 @@ offer_ward_interaction = { # Already offered custom_tooltip = { text = ward_already_offered_awaiting_travel_tt - NOT = { exists = var:ward_travelling_to_guardian } + NOR = { + exists = var:ward_travelling_to_guardian + exists = var:ward_waiting_for_guardian + } } custom_tooltip = { text = guardian_already_offered_awaiting_travel_tt - NOT = { exists = var:guardian_travelling_to_ward } + NOR = { + exists = var:guardian_travelling_to_ward + AND = { + exists = var:guardian_waiting_for_ward + num_of_relation_ward >= 1 + } + } } # Hostage custom_tooltip = { @@ -1116,12 +1185,48 @@ offer_ward_interaction = { trigger_event = char_interaction.0080 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_ward_offerage.desc + REVERSE_NON_HOUSE_TARGET = yes + } } on_decline = { + # If we're a clan this interaction affects unity. Conditioned to the opinion modifier to avoid exploit + if = { + limit = { + NOT = { + scope:actor = { + has_opinion_modifier = { + modifier = declined_ward_opinion + target = scope:recipient + } + } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_ward_decline.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + + scope:actor = { trigger_event = char_interaction.0081 + add_opinion = { + modifier = declined_ward_opinion + target = scope:recipient + } } + scope:secondary_recipient = { remove_character_flag = under_offer_as_guardian_flag } scope:secondary_actor = { remove_character_flag = under_offer_as_ward_flag } } @@ -1588,6 +1693,11 @@ offer_ward_interaction = { scope:actor.diarch ?= scope:recipient desc = DIARCH_SHOULD_EDUCATE_LIEGE_TO_DIARCH } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_interaction_modifiers = yes @@ -1759,6 +1869,11 @@ offer_ward_interaction = { } } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } + modifier = { # Don't send your primary heir away factor = 0 scope:secondary_actor = { @@ -1835,7 +1950,7 @@ offer_ward_interaction = { } } -#Request guardianship +# Request guardianship offer_guardianship_interaction = { category = interaction_category_friendly icon = child @@ -2062,6 +2177,16 @@ offer_guardianship_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:ward_waiting_for_guardian } + var:ward_waiting_for_guardian = { + custom_tooltip = { + text = guardian_travelling_tt + NOT = { exists = scope:secondary_recipient.var:ward_waiting_for_guardian } + } + } + } } } trigger_if = { # Guardian @@ -2079,6 +2204,16 @@ offer_guardianship_interaction = { text = hostage_travelling_tt NOT = { exists = var:hostage_travelling_to_warden } } + # Structured this way for tooltip purposes + trigger_if = { + limit = { exists = var:guardian_waiting_for_ward } + var:guardian_waiting_for_ward = { + custom_tooltip = { + text = ward_travelling_tt + NOT = { exists = scope:secondary_actor.var:guardian_waiting_for_ward } + } + } + } } } } @@ -2097,11 +2232,20 @@ offer_guardianship_interaction = { # Already offered custom_tooltip = { text = ward_already_offered_awaiting_travel_tt - NOT = { exists = var:ward_travelling_to_guardian } + NOR = { + exists = var:ward_travelling_to_guardian + exists = var:ward_waiting_for_guardian + } } custom_tooltip = { text = guardian_already_offered_awaiting_travel_tt - NOT = { exists = var:guardian_travelling_to_ward } + NOR = { + exists = var:guardian_travelling_to_ward + AND = { + exists = var:guardian_waiting_for_ward + num_of_relation_ward >= 1 + } + } } # Hostage custom_tooltip = { @@ -2180,9 +2324,39 @@ offer_guardianship_interaction = { trigger_event = char_interaction.0079 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_guardianship.desc + REVERSE_NON_HOUSE_TARGET = yes + } } on_decline = { + if = { + limit = { + NOT = { + scope:actor = { + has_opinion_modifier = { + target = scope:recipient + modifier = declined_guardianship_opinion + } + } + } + } + # If we're a clan this interaction affects unity; conditioned by the opinion modifer to avoid exploit + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_guardianship_decline.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + scope:actor = { trigger_event = char_interaction.0081 add_opinion = { @@ -2199,6 +2373,7 @@ offer_guardianship_interaction = { add_character_flag = { flag = ai_guardianship_ask_cooldown years = 5 } } } + scope:secondary_recipient = { remove_character_flag = under_offer_as_ward_flag } scope:secondary_actor = { remove_character_flag = under_offer_as_guardian_flag } } @@ -2481,6 +2656,15 @@ offer_guardianship_interaction = { desc = AI_GUARDIAN_SKILL_LEARNING } + # FP3 Beacon of Learning tradition (it makes a higher education trait more likely) + modifier = { + add = 15 + scope:secondary_actor = { + culture = { has_cultural_parameter = guardian_education_better_outcomes } + } + desc = tradition_fp3_beacon_of_learning_name + } + #More/Less likely based on difference in rank between actor and recipient modifier = { add = 30 @@ -2671,12 +2855,18 @@ offer_guardianship_interaction = { } desc = AI_GUARDIAN_FEUD_HESITANCE } + modifier = { add = diarch_should_educate_liege_value scope:recipient.diarch ?= scope:actor desc = DIARCH_SHOULD_EDUCATE_DIARCH_TO_LIEGE } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } + # Warcraft scourge_interaction_modifiers = yes } @@ -2837,6 +3027,11 @@ offer_guardianship_interaction = { is_ai = no } } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { # Players shouldn't be spammed factor = 0 @@ -3193,13 +3388,43 @@ remove_guardian_interaction = { } } } + + if = { + limit = { + scope:actor = { + NOT = { + has_character_flag = guardian_unity_block + } + } + } + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_removed_guardian.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + scope:actor = { + if = { + limit = { + is_ai = no + government_has_flag = government_is_clan + } + } + add_character_flag = { + flag = guardian_unity_block + months = 3 + } + } } } make_child_learn_language_interaction = { category = interaction_category_friendly common_interaction = yes - icon = icon_culture + icon = icon_scheme_learn_language send_name = study_language @@ -3551,7 +3776,7 @@ make_child_learn_language_interaction = { } } } - } + } } auto_accept = yes diff --git a/common/character_interactions/00_faction_interactions.txt b/common/character_interactions/00_faction_interactions.txt index 7e8604d8d7..feedeb5d82 100644 --- a/common/character_interactions/00_faction_interactions.txt +++ b/common/character_interactions/00_faction_interactions.txt @@ -32,12 +32,8 @@ force_join_faction_interaction = { } scope:recipient = { trigger_if = { - limit = { - is_a_faction_member = yes - } - joined_faction.faction_leader = { - is_ai = yes - } + limit = { is_a_faction_member = yes } + joined_faction.faction_leader = { is_ai = yes } } is_forced_into_faction = no can_join_faction = scope:actor.joined_faction @@ -77,6 +73,15 @@ force_join_faction_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_forced_faction_joinage.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/00_fp3_interactions.txt b/common/character_interactions/00_fp3_interactions.txt new file mode 100644 index 0000000000..9688903c6b --- /dev/null +++ b/common/character_interactions/00_fp3_interactions.txt @@ -0,0 +1,453 @@ +################################### +# Challenge House Head +# By Hugo Cortell +# Reworked by Joe Parkin +################################### +fp3_challenge_house_head_interaction = { + icon = house_unity_sword + category = interaction_category_hostile + common_interaction = no + ai_min_reply_days = 4 + ai_max_reply_days = 9 + popup_on_receive = yes + pause_on_receive = yes + use_diplomatic_range = no + + interface_priority = 107 + + desc = fp3_challenge_house_head_interaction_desc + + notification_text = { + first_valid = { + triggered_desc = { + trigger = { scope:diplomacy = yes } + desc = fp3_challenge_house_head_interaction_notification_diplomacy + } + desc = fp3_challenge_house_head_interaction_notification + } + } + + greeting = positive + + ai_maybe = yes + + cooldown_against_recipient = { years = 10 } + + is_shown = { + has_fp3_dlc_trigger = yes + scope:actor = { + NOT = { this = scope:recipient } + government_has_flag = government_is_clan + } + scope:actor.house ?= { + house_head = scope:recipient + #OR = { + has_house_unity_parameter = unity_can_challenge_house_head + #scope:actor = { + # any_character_struggle = { has_struggle_phase_parameter = unlocks_challenge_house_head_for_clans } + #} + #} + } + } + + is_valid_showing_failures_only = { + scope:actor = { + is_at_war = no + is_available_adult = yes + } + scope:recipient = { + is_at_war = no + is_available_adult = yes + # Stop challenges from barons and counts against kings + custom_tooltip = { + text = fp3_challenge_house_head_interaction_tier_tt + tier_difference = { + target = scope:actor + value <= 1 + } + } + # Give some respite after a recent challenge + custom_tooltip = { + text = fp3_challenge_house_head_interaction_recent_tt + NOT = { has_character_flag = fp3_challenge_house_head_recent_flag } + } + } + } + + auto_accept = { + trigger_if = { + limit = { + scope:recipient = { is_ruler = no } + } + scope:recipient = { is_ruler = no } + } + trigger_else_if = { + limit = { scope:hook = yes } + custom_description = { + text = "spending_hook" + subject = scope:actor + object = scope:recipient + scope:hook = yes + } + } + trigger_else_if = { + limit = { + scope:actor = { is_heir_of = scope:recipient } + } + custom_tooltip = { + text = fp3_challenge_house_head_interaction_heir_bonus_desc + scope:actor = { is_heir_of = scope:recipient } + } + } + trigger_else = { always = no } + } + + can_send = { + scope:actor = { + # Do not allow house heads who accepted a challenge to ping pong back and forth + custom_tooltip = { + text = fp3_challenge_house_head_interaction_accepted_tt + NOT = { has_character_flag = accepted_house_head_challenge_flag } + } + } + scope:recipient = { + # Do not allow multiple challenges at the same time + custom_tooltip = { + text = fp3_challenge_house_head_interaction_ongoing_tt + NOT = { has_character_flag = ongoing_house_head_challenge_flag } + } + } + } + + on_send = { + scope:recipient = { + add_character_flag = { # stop multiple challenges at same time + flag = ongoing_house_head_challenge_flag + months = 1 + } + add_character_flag = { # stop AI constantly challenging players + flag = ai_cooldown_house_head_challenge_flag + years = 5 + } + } + } + + on_accept = { + scope:recipient = { save_scope_as = house_head } + if = { + limit = { + scope:recipient = { + is_ruler = no + } + } + scope:actor.house = { set_house_head = scope:actor } + } + else = { + scope:actor = { + save_scope_as = house_challenger + if = { # Hook consumption + limit = { scope:hook = yes } + use_hook = scope:house_head + } + if = { + limit = { scope:diplomacy = yes } + custom_tooltip = fp3_challenge_house_head_interaction_tooltip_actor.diplomacy + trigger_event = fp3_misc_decisions.0026 + scope:house_head = { custom_tooltip = fp3_challenge_house_head_interaction_tooltip_recipient.diplomacy } + house = { + add_clan_unity_interaction_effect = { + CHARACTER = scope:house_challenger + TARGET = scope:house_head + VALUE = minor_unity_loss + DESC = clan_unity_challenged_to_duel.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + } + else = { + if = { + limit = { scope:lethal = no } + custom_tooltip = fp3_challenge_house_head_interaction_tooltip_actor.a + scope:house_head = { custom_tooltip = fp3_challenge_house_head_interaction_tooltip_recipient.b } + house = { + add_clan_unity_interaction_effect = { + CHARACTER = scope:house_challenger + TARGET = scope:house_head + VALUE = minor_unity_loss + DESC = clan_unity_challenged_to_duel.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + } + else = { + custom_tooltip = fp3_challenge_house_head_interaction_tooltip_actor.a.lethal + scope:house_head = { custom_tooltip = fp3_challenge_house_head_interaction_tooltip_recipient.b.lethal } + house = { + add_clan_unity_interaction_effect = { + CHARACTER = scope:house_challenger + TARGET = scope:house_head + VALUE = major_unity_loss + DESC = clan_unity_challenged_to_duel.desc + REVERSE_NON_HOUSE_TARGET = yes + } + } + } + trigger_event = fp3_misc_decisions.0022 + } + } + if = { + limit = { scope:diplomacy = no } + if = { + limit = { scope:lethal = no } + custom_tooltip = fp3_challenge_house_head_interaction_duel_tooltip_warning + } + else = { custom_tooltip = fp3_challenge_house_head_interaction_duel_tooltip_warning_lethal } + } + } + } + + on_decline = { # Get letter of rejection, to further escalate the situation if the player wills it + scope:actor = { trigger_event = fp3_misc_decisions.0025 } + scope:recipient = { + add_prestige = major_prestige_loss + remove_character_flag = ongoing_house_head_challenge_flag + } + } + + send_option = { + flag = diplomacy + localization = CHALLENGE_HOUSE_HEAD_DIPLOMACY_DUEL + is_valid = { + custom_tooltip = { + text = CHALLENGE_HOUSE_HEAD_LETHAL_DUEL_INVALID_TT + NOT = { scope:lethal = yes } + } + } + } + send_option = { + flag = lethal + localization = CHALLENGE_HOUSE_HEAD_LETHAL_DUEL + is_valid = { + scope:actor = { has_relation_rival = scope:recipient } + custom_tooltip = { + text = CHALLENGE_HOUSE_HEAD_LETHAL_DUEL_INVALID_TT + NOT = { scope:diplomacy = yes } + } + } + } + send_option = { + flag = hook + localization = GENERIC_SPEND_A_HOOK + is_valid = { + scope:actor = { has_usable_hook = scope:recipient } + } + } + should_use_extra_icon = { scope:actor = { has_usable_hook = scope:recipient } } + extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" + send_options_exclusive = no + + # AI + + ai_accept = { + base = 25 + modifier = { + add = -50 + scope:lethal = yes + desc = AI_AVOID_LETHAL_DUEL + } + modifier = { + add = 15 + scope:recipient = { has_trait = ambitious } + desc = INTERACTION_AMBITIOUS + } + modifier = { + add = 25 + scope:recipient = { has_trait = brave } + desc = INTERACTION_BRAVE + } + modifier = { + add = { + value = -25 + if = { + limit = { scope:lethal = yes } + multiply = 2 + } + } + scope:recipient = { has_trait = craven } + desc = INTERACTION_CRAVEN + } + modifier = { + scope:recipient.ai_greed != 0 + add = { # Greedy people won't risk a position of power, even if their prestige suffers + value = scope:recipient.ai_greed + multiply = -1 + max = 35 + min = -35 + } + desc = AI_VALUE_MODIFIER_GREED + } + modifier = { + scope:recipient.ai_honor != 0 + add = { + value = scope:recipient.ai_honor + max = 75 + min = -35 + } + desc = AI_VALUE_MODIFIER_HONOR + } + modifier = { + scope:recipient.ai_energy != 0 + add = { + value = scope:recipient.ai_energy + max = 10 + min = -10 + } + desc = AI_VALUE_MODIFIER_ENERGY + } + modifier = { + NOT = { scope:diplomacy = yes } + add = { + value = scope:recipient.prowess + subtract = scope:actor.prowess + multiply = 2 + } + desc = CTSC_RELATIVE_PROWESS + } + modifier = { + scope:lethal = yes + scope:recipient = { + OR = { + is_parent_of = scope:actor + is_child_of = scope:actor + } + NOT = { has_relation_rival = scope:actor } + } + desc = AI_AVOID_LETHAL_DUEL_WITH_FAMILY + } + opinion_modifier = { + opinion_target = scope:actor + multiplier = 0.5 + } + } + + ai_frequency = 24 + + ai_target_quick_trigger = { + adult = yes + } + + ai_potential = { + NOR = { + has_trait = craven + has_trait = content + } + government_has_flag = government_is_clan + is_physically_able = yes + } + + ai_targets = { + ai_recipients = dynasty + ai_recipients = family + max = 10 + } + + ai_targets = { + ai_recipients = liege + ai_recipients = head_of_faith + ai_recipients = hooked_characters + ai_recipients = scripted_relations + } + + ai_targets = { + ai_recipients = peer_vassals + ai_recipients = vassals + ai_recipients = neighboring_rulers + max = 30 + } + + ai_will_do = { + base = 5 + # Base requirements for AI + modifier = { + add = -1000 + NOR = { + AND = { + is_independent_ruler = yes + highest_held_title_tier >= scope:recipient.highest_held_title_tier + } + is_powerful_vassal = yes + is_close_or_extended_family_of = scope:recipient + opinion = { + target = scope:recipient + value >= 25 + } + } + } + # Stop AI constantly challenging players + modifier = { + scope:recipient = { has_character_flag = ai_cooldown_house_head_challenge_flag } + add = -1000 + } + # Tiers + modifier = { + add = 10 + piety_level >= scope:recipient.piety_level + } + modifier = { + add = 10 + prestige_level >= scope:recipient.prestige_level + } + modifier = { + add = 10 + highest_held_title_tier >= scope:recipient.highest_held_title_tier + } + # Traits + modifier = { + add = 30 + has_trait = ambitious + } + modifier = { + add = 30 + has_trait = brave + } + modifier = { + add = -30 + has_trait = craven + } + # Dread + modifier = { + add = -25 + has_dread_level_towards = { + target = scope:recipient + level >= 1 + } + } + modifier = { + add = -25 + has_dread_level_towards = { + target = scope:recipient + level >= 2 + } + } + # Personality + modifier = { + ai_boldness > 0 + add = { + value = ai_boldness + divide = 2 + min = 1 + } + } + modifier = { + ai_greed >= 50 + add = { + value = ai_greed + divide = 2 + } + } + modifier = { + ai_sociability = 100 + add = 10 + } + } +} diff --git a/common/character_interactions/00_gift.txt b/common/character_interactions/00_gift.txt index fc3975843c..a67b0b3392 100644 --- a/common/character_interactions/00_gift.txt +++ b/common/character_interactions/00_gift.txt @@ -18,6 +18,9 @@ gift_interaction = { ai_targets = { ai_recipients = liege } + ai_targets = { + ai_recipients = head_of_faith + } ai_targets = { ai_recipients = neighboring_rulers ai_recipients = peer_vassals @@ -76,47 +79,20 @@ gift_interaction = { } } - # Warning for multiple gifts - if = { - limit = { - scope:recipient = { - has_opinion_modifier = { - target = scope:actor - modifier = gift_opinion + scope:actor = { + # Warning for multiple gifts + if = { + limit = { + scope:recipient = { + has_opinion_modifier = { + target = scope:actor + modifier = gift_opinion + } } } + custom_tooltip = ALREADY_SENT_GIFT_WARNING } - custom_tooltip = ALREADY_SENT_GIFT_WARNING - } - #else = { # Struggle Catalyst - # limit = { - # #scope:recipient = { - # # is_independent_ruler = yes - # #} - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_gift_independent_ruler - # CHAR = scope:recipient - # } - # } - # } - # } - # hidden_effect = { - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_gift_independent_ruler - # character = scope:actor - # } - # } - # } - # } - #} - - scope:actor = { + send_interface_message = { type = event_generic_neutral title = gift_interaction_notification @@ -140,6 +116,69 @@ gift_interaction = { generous = medium_stress_impact_loss } } + + #FP3 Tenet Communal Possessions Perk - piety gain for gift giving. + if = { + limit = { + scope:actor = { + faith = { + has_doctrine_parameter = piety_from_gifts_active + } + } + } + scope:actor = { + add_piety = minor_piety_gain + } + } + + # Check if the target already has been sent a gift or not. If not, apply the following effects + if = { + limit = { + NOT = { + scope:recipient = { + has_opinion_modifier = { + target = scope:actor + modifier = gift_opinion + } + } + } + } + + # Struggle Catalyst + + + # FP2 Urbanism Legacy Perk 2: increase cultural acceptance when gifting a republican vassal + if = { + limit = { + scope:actor = { + exists = dynasty + dynasty = { has_dynasty_perk = fp2_urbanism_legacy_4 } + } + scope:recipient = { + AND = { + is_vassal_of = scope:actor + government_has_flag = government_is_republic + } + } + NOT = { + scope:actor.culture = scope:recipient.capital_province.county.culture + } + } + scope:recipient.capital_province.county.culture = { + change_cultural_acceptance = { + target = scope:actor.culture + value = { + value = 20 + multiply = scope:recipient.capital_province.county.development_level + divide = 100 + } + desc = cultural_acceptance_gain_gift_dynasty_perk + } + } + } + } + + # Let's apply the opinion modifier last, as to apply everything else correctly first scope:recipient = { add_opinion = { target = scope:actor @@ -148,29 +187,6 @@ gift_interaction = { } } } - - # Warning for multiple gifts - if = { - limit = { - scope:recipient = { - has_opinion_modifier = { - target = scope:actor - modifier = gift_opinion - } - } - } - custom_tooltip = ALREADY_SENT_GIFT_WARNING - } - #if = { # for tutorial purposes - # limit = { - # is_ai = no - # scope:recipient = { is_child_of = scope:actor } - # } - # add_character_flag = { - # flag = tutorial_sent_gift - # days = 200 - # } - #} } } @@ -182,39 +198,7 @@ gift_interaction = { } # Struggle motive - #modifier = { - # desc = AI_STRUGGLE_INTENT - # scope:recipient = { - # is_independent_ruler = yes - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:recipient = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = -100 - # } - # else_if = { - # limit = { - # scope:recipient = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # } - # } - # add = 200 - # } - # } - #} + # Warcraft scourge_interaction_modifiers = yes @@ -260,12 +244,12 @@ gift_interaction = { factor = 0 scope:recipient = { NOR = { - AND = { # Bankrupt vassals, lovers, friends and a bankrupt liege should be considered + AND = { # Bankrupt lovers, friends and a bankrupt liege should be considered OR = { - is_vassal_of = scope:actor - AND = { - exists = liege - liege = scope:actor + scope:actor = { + any_liege_or_above = { + this = scope:recipient + } } has_secret_relation_lover = scope:actor has_relation_lover = scope:actor @@ -308,8 +292,9 @@ gift_interaction = { } } } - AND = { # Characters with the loyal trait more likely to give gifts to friends + AND = { # Characters with the loyal trait more likely to give gifts to friends/lieges OR = { + scope:actor.liege ?= this has_relation_friend = scope:actor has_relation_best_friend = scope:actor is_allied_to = scope:actor @@ -380,93 +365,12 @@ gift_interaction = { has_relation_rival = scope:actor } } - #AND = { # Independent ruler within the struggle should be considered - # any_character_struggle = { - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - #} } } } # Struggle - #modifier = { - # scope:recipient = { - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_gift_independent_ruler - # } - # NOT = { - # has_relation_rival = scope:recipient - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # has_character_flag = agenda_towards_escalation - # } - # } - # add = -100 - # } - # else_if = { - # limit = { - # scope:actor = { - # has_character_flag = agenda_towards_deescalation - # } - # scope:recipient = { - # has_character_flag = agenda_towards_deescalation - # } - # } - # add = { - # value = 150 - # if = { - # limit = { scope:recipient = { is_ai = no} } - # add = 150 # higher for human player to Prioritize them - # } - # # Then lower the intent depending on the gold reserve - # # Base value applied if the AI has 3x the gold cutoff - # multiply = { - # value = short_term_gold - # divide = { - # value = gift_interaction_cutoff - # multiply = 3 - # } - # } - # } - # } - # else_if = { - # limit = { - # scope:actor = { - # has_character_flag = agenda_towards_deescalation - # } - # } - # add = { - # value = 25 - # if = { - # limit = { scope:recipient = { is_ai = no} } - # add = 150 # higher for human player to Prioritize them - # } - # # Then lower the intent depending on the gold reserve - # # Base value applied if the AI has 3x the gold cutoff - # multiply = { - # value = short_term_gold - # divide = { - # value = gift_interaction_cutoff - # multiply = 3 - # } - # } - # } - # } - # } - #} + modifier = { factor = 0.1 @@ -483,5 +387,12 @@ gift_interaction = { } } } + + modifier = { + factor = 0.1 + scope:recipient = { + has_relation_rival = scope:actor + } + } } } diff --git a/common/character_interactions/00_grant_titles_interaction.txt b/common/character_interactions/00_grant_titles_interaction.txt index a075587039..0eb23a3ba6 100644 --- a/common/character_interactions/00_grant_titles_interaction.txt +++ b/common/character_interactions/00_grant_titles_interaction.txt @@ -86,7 +86,26 @@ } } } - + + can_send = { + trigger_if = { + limit = { + scope:actor = { + highest_held_title_tier >= tier_kingdom + has_diarchy_active_parameter = primeminister_requires_duchy + diarch = scope:recipient + } + } + custom_tooltip = { + text = primeminister_requires_duchy.tt.blocked_grant + any_in_list = { + list = target_titles + tier >= tier_duchy + } + } + } + } + can_be_picked_title = { scope:target = { is_leased_out = no @@ -206,36 +225,6 @@ save_temporary_scope_as = recipient_is_independent } } - #if = { - # limit = { - # NAND = { - # has_relation_friend = scope:actor - # has_relation_lover = scope:actor - # has_relation_soulmate = scope:actor - # has_relation_best_friend = scope:actor - # } - # } - # if = { - # # then verify the right struggle phase - # limit = { - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:actor - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_to_leads_to_friendship - # } - # } - # progress_towards_friend_effect = { - # REASON = friend_granted_title - # CHARACTER = scope:actor - # OPINION = 0 - # } - # } - #} } if = { @@ -598,6 +587,64 @@ } } + # Viziers may be booted from their job. + scope:actor = { + if = { + limit = { + # Assuming this is relevant at all. + diarch ?= scope:recipient + # And that scope:actor can do without a supervisor atm. + can_leave_diarchy_trigger = yes + # Aaaaand that their diarchy supports this type of thing. + OR = { + has_diarchy_parameter = primeminister_requires_county + has_diarchy_parameter = primeminister_requires_duchy + } + } + # Is this a duchy? + if = { + limit = { + any_in_list = { + list = target_titles + tier >= tier_duchy + } + } + custom_tooltip = grant_titles_interaction.tt.primeminister_title_grant.duchy_sufficient + end_diarchy = yes + } + # Is this a county? + else_if = { + limit = { + any_in_list = { + list = target_titles + tier = tier_county + } + } + # Is that insufficient? + if = { + limit = { has_diarchy_active_parameter = primeminister_requires_duchy } + custom_tooltip = grant_titles_interaction.tt.primeminister_title_grant.county_insufficient + } + # Is that sufficient? + else = { + custom_tooltip = grant_titles_interaction.tt.primeminister_title_grant.county_sufficient + end_diarchy = yes + } + } + # Is this a barony? + else_if = { + limit = { + any_in_list = { + list = target_titles + count = all + tier = tier_barony + } + } + custom_tooltip = grant_titles_interaction.tt.primeminister_title_grant.barony_doesnt_end + } + } + } + if = { limit = { any_in_list = { @@ -645,9 +692,12 @@ } if = { limit = { - scope:actor = { - any_vassal = { - has_vassal_stance = courtly + trigger_if = { + limit = { scope:actor = { is_ai = yes } } + scope:actor = { + any_vassal = { + has_vassal_stance = courtly + } } } scope:recipient = { @@ -958,26 +1008,7 @@ right_icon = scope:recipient custom_tooltip = grant_titles_interaction_notification_effect_2 - #if = { - # limit = { - # exists = dynasty - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:recipient - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_gives_prestige - # - # } - # } - # dynasty = { - # add_dynasty_prestige = minor_dynasty_prestige_gain - # } - # - #} + } } else_if = { @@ -1077,43 +1108,6 @@ } } } - - #hidden_effect = { - # # Struggle Catalyst - # if = { - # limit = { - # scope:actor = { - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:recipient - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - # character = scope:actor - # } - # } - # } - # } - #} } } diff --git a/common/character_interactions/00_heir.txt b/common/character_interactions/00_heir.txt index e52c935c52..ffde35c6e3 100644 --- a/common/character_interactions/00_heir.txt +++ b/common/character_interactions/00_heir.txt @@ -54,7 +54,7 @@ designate_heir_interaction = { set_designated_heir = scope:recipient add_prestige = { subtract = @designate_heir_cost } } - } + } } auto_accept = yes diff --git a/common/character_interactions/00_house_head_interactions.txt b/common/character_interactions/00_house_head_interactions.txt index bafbb61671..446e1f67d0 100644 --- a/common/character_interactions/00_house_head_interactions.txt +++ b/common/character_interactions/00_house_head_interactions.txt @@ -89,7 +89,7 @@ call_house_member_to_war_interaction = { trigger_event = call_ally.0001 } } - + on_accept = { call_house_member_to_war_interaction_effect = yes @@ -115,7 +115,7 @@ call_house_member_to_war_interaction = { } } - # If the Dynasty has Unity, the reciptien is rewarded with some Prestige + # If the Dynasty has the Unity Legacy perk, the recipient is rewarded with some Prestige if = { limit = { scope:actor.dynasty = { has_dynasty_perk = fp2_coterie_legacy_3 } } scope:recipient = { add_prestige = medium_prestige_gain } @@ -128,6 +128,7 @@ call_house_member_to_war_interaction = { limit = { exists = scope:target } + scope:target = { if = { limit = { @@ -152,6 +153,9 @@ call_house_member_to_war_interaction = { trigger_event = call_ally.0101 } } + + # If we're a clan this interaction affects unity + refuse_call_to_arms_add_clan_unity_effect = yes } } @@ -481,6 +485,11 @@ legitimize_bastard_interaction = { } desc = COWED_REASON } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_interaction_modifiers = yes @@ -515,6 +524,15 @@ legitimize_bastard_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_bastardry.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -526,6 +544,15 @@ legitimize_bastard_interaction = { right_icon = scope:secondary_recipient } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_bastardry_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } send_option = { @@ -548,3 +575,519 @@ legitimize_bastard_interaction = { send_options_exclusive = no } +accuse_of_decandence_interaction = { + icon = antagonistic + category = interaction_category_clan + interface_priority = 60 + common_interaction = yes + + cooldown = { years = 3 } + + desc = accuse_of_decandence_interaction_desc + + is_shown = { + scope:actor = { government_has_flag = government_is_clan } + NOT = { scope:recipient = scope:actor } + scope:actor.house.house_head ?= scope:actor + scope:recipient.house ?= scope:actor.house + scope:recipient = { + NOT = { + has_trait = decadent + } + } + } + + is_valid_showing_failures_only = { + scope:recipient = { is_adult = yes } + scope:recipient = { NOT = { has_strong_hook = scope:actor } } + custom_tooltip = { + text = cannot_take_overt_hostile_actions_against_diarch.tt + NOT = { scope:recipient ?= scope:actor.diarch } + } + } + + on_auto_accept = { + scope:recipient = { + trigger_event = char_interaction.0041 + } + } + + on_accept = { + scope:actor = { + stress_impact = { + forgiving = minor_stress_impact_gain + compassionate = minor_stress_impact_gain + } + send_interface_toast = { + title = accuse_of_decandence_interaction_notification + + left_icon = scope:actor + right_icon = scope:recipient + + scope:recipient = { + add_stress = major_stress_gain + if = { + limit = { + has_trait = extolled + } + remove_trait = extolled + } + else = { + add_trait = decadent + } + add_opinion = { + modifier = accused_of_decadence_opinion + target = scope:actor + } + } + } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_decadence.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + cost = { + piety = { + value = { + add = minor_piety_value + if = { + limit = { + scope:recipient = { + num_virtuous_traits > 0 + } + } + add = { + value = minor_piety_value + multiply = scope:recipient.num_virtuous_traits + } + } + if = { + limit = { + scope:recipient = { + num_sinful_traits > 0 + } + } + add = { + value = minor_piety_value + multiply = 0.5 + multiply = scope:recipient.num_sinful_traits + min = 10 + } + } + } + } + } + + auto_accept = yes + + ai_potential = { + is_at_war = no + government_has_flag = government_is_clan + house.house_head ?= this + is_adult = yes + NOT = { + has_trait = forgiving + } + } + + ai_targets = { + ai_recipients = dynasty + max = 30 + } + + ai_targets = { + ai_recipients = vassals + } + + ai_frequency = 36 + + ai_will_do = { + base = 0 + + modifier = { + add = 100 + scope:recipient = { + OR = { + has_relation_rival = scope:actor + has_relation_nemesis = scope:actor + } + } + } + + modifier = { + add = 50 + scope:actor = { + ai_wants_low_unity = yes + NOT = { house ?= { has_house_unity_stage = antagonistic } } + } + scope:recipient = { + num_sinful_traits >= 1 + } + } + + modifier = { + add = 100 + scope:actor = { + ai_wants_low_unity = yes + NOT = { house ?= { has_house_unity_stage = antagonistic } } + } + scope:recipient = { + num_sinful_traits >= 2 + } + } + + modifier = { + add = 20 + scope:actor = { + ai_wants_low_unity = yes + NOT = { house ?= { has_house_unity_stage = antagonistic } } + } + scope:recipient = { + number_of_opposing_personality_traits = { + target = scope:actor + value >= 1 + } + } + } + + modifier = { + add = 100 + scope:actor = { + ai_wants_low_unity = yes + NOT = { house ?= { has_house_unity_stage = antagonistic } } + } + scope:recipient = { + number_of_opposing_personality_traits = { + target = scope:actor + value >= 2 + } + } + } + + modifier = { + add = 50 + scope:actor = { + ai_wants_low_unity = yes + NOT = { house ?= { has_house_unity_stage = antagonistic } } + } + OR = { + AND = { + scope:recipient = { + has_trait = incestuous + } + NOT = { is_incestuous_trigger = yes } + trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = kinslayer + } + NOT = { has_trait = kinslayer } + } + AND = { + scope:recipient = { + has_trait = adulterer + } + NOR = { + has_trait = adulterer + has_trait = fornicator + } + trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = fornicator + } + NOR = { + has_trait = adulterer + has_trait = fornicator + } + trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = deviant + } + NOT = { + is_deviant_trigger = yes + } + trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = witch + } + NOT = { + is_witch_trigger = yes + } + trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = sodomite + } + NOR = { + has_trait = sodomite + any_secret = { + secret_type = secret_homosexual + } + } + trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + AND = { + scope:recipient = { + has_trait = cannibal + } + NOT = { + is_cannibal_trigger = yes + } + trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } + } + } + } + + modifier = { + factor = 0.25 + scope:recipient = { + is_powerful_vassal_of = scope:actor + } + } + + modifier = { + factor = 0 + scope:recipient = { + OR = { + has_relation_friend = scope:actor + has_relation_best_friend = scope:actor + } + } + } + + modifier = { + factor = 0 + scope:recipient = { + is_primary_heir_of = scope:actor + } + } + } +} + +extoll_virtuousness_interaction = { + icon = unity_harmonious + category = interaction_category_clan + interface_priority = 60 + common_interaction = yes + + cooldown = { years = 3 } + + desc = extoll_virtuousness_interaction_desc + + is_shown = { + scope:actor = { government_has_flag = government_is_clan } + NOT = { scope:recipient = scope:actor } + scope:actor.house.house_head ?= scope:actor + scope:recipient.house ?= scope:actor.house + scope:recipient = { + NOT = { + has_trait = extolled + } + } + } + + is_valid_showing_failures_only = { + scope:recipient = { is_adult = yes } + } + + on_auto_accept = { + scope:recipient = { + trigger_event = char_interaction.0042 + } + } + + on_accept = { + scope:actor = { + stress_impact = { + sadistic = minor_stress_impact_gain + callous = minor_stress_impact_gain + } + send_interface_toast = { + title = extoll_interaction_notification + + left_icon = scope:actor + right_icon = scope:recipient + + scope:recipient = { + if = { + limit = { + has_trait = decadent + } + remove_trait = decadent + } + else = { + add_trait = extolled + } + add_opinion = { + modifier = extolled_virtue_opinion + target = scope:actor + } + } + } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_gain + DESC = clan_unity_extolled.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + cost = { + piety = { + value = { + add = medium_piety_value + if = { + limit = { + scope:recipient = { + num_sinful_traits > 0 + } + } + add = { + value = medium_piety_value + multiply = scope:recipient.num_sinful_traits + } + } + if = { + limit = { + scope:recipient = { + num_virtuous_traits > 0 + } + } + add = { + value = medium_piety_value + multiply = 0.5 + multiply = scope:recipient.num_virtuous_traits + min = 10 + } + } + } + } + } + + auto_accept = yes + + ai_potential = { + is_at_war = no + government_has_flag = government_is_clan + house.house_head ?= this + is_adult = yes + NOT = { + has_trait = paranoid + } + } + + ai_targets = { + ai_recipients = dynasty + max = 30 + } + + ai_targets = { + ai_recipients = vassals + } + + ai_frequency = 36 + + ai_will_do = { + base = 0 + + modifier = { + add = 100 + scope:actor = { + NOT = { ai_wants_low_unity = yes } + } + scope:recipient = { + OR = { + has_relation_friend = scope:actor + has_relation_best_friend = scope:actor + is_primary_heir_of = scope:actor + } + } + } + + modifier = { + add = 50 + scope:actor = { + ai_wants_high_unity = yes + NOT = { house ?= { has_house_unity_stage = harmonious } } + } + scope:recipient = { + num_virtuous_traits >= 1 + } + } + + modifier = { + add = 100 + scope:actor = { + ai_wants_high_unity = yes + NOT = { house ?= { has_house_unity_stage = harmonious } } + } + scope:recipient = { + num_virtuous_traits >= 2 + } + } + + modifier = { + add = 20 + scope:actor = { + ai_wants_high_unity = yes + NOT = { house ?= { has_house_unity_stage = harmonious } } + } + scope:recipient = { + number_of_personality_traits_in_common = { + target = scope:actor + value >= 1 + } + } + } + + modifier = { + add = 100 + scope:actor = { + ai_wants_high_unity = yes + NOT = { house ?= { has_house_unity_stage = harmonious } } + } + scope:recipient = { + number_of_personality_traits_in_common = { + target = scope:actor + value >= 2 + } + } + } + + modifier = { + factor = 1.5 + scope:recipient = { + is_vassal_of = scope:actor + } + } + + modifier = { + factor = 0 + scope:recipient = { + OR = { + has_relation_rival = scope:actor + has_relation_nemesis = scope:actor + } + } + } + } +} diff --git a/common/character_interactions/00_lease_interactions.txt b/common/character_interactions/00_lease_interactions.txt index d1cf48a6a0..8fa2e3cdb2 100644 --- a/common/character_interactions/00_lease_interactions.txt +++ b/common/character_interactions/00_lease_interactions.txt @@ -42,13 +42,11 @@ } on_accept = { - revoke_holy_order_lease_effect = { CHARACTER = scope:actor TARGET = scope:recipient BARONY = scope:target } - } # AI diff --git a/common/character_interactions/00_lover_interactions.txt b/common/character_interactions/00_lover_interactions.txt index 8b33553772..57bcbad61a 100644 --- a/common/character_interactions/00_lover_interactions.txt +++ b/common/character_interactions/00_lover_interactions.txt @@ -32,6 +32,15 @@ break_up_with_lover_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_dramatic_breakup.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/00_marriage_interactions.txt b/common/character_interactions/00_marriage_interactions.txt index a20cb95be8..0b19ee358d 100644 --- a/common/character_interactions/00_marriage_interactions.txt +++ b/common/character_interactions/00_marriage_interactions.txt @@ -655,7 +655,7 @@ arrange_marriage_interaction = { on_decline = { scope:actor = { - if = { + if = { limit = { NOT = { this = scope:recipient } } trigger_event = marriage_interaction.0011 } @@ -1242,6 +1242,7 @@ marry_off_interaction = { scope:secondary_recipient = { is_busy_in_events_localised = yes is_imprisoned = no + bp2_valid_for_standard_interactions_trigger = yes } } #secondary_actor is checked above because they are always available @@ -1300,6 +1301,16 @@ marry_off_interaction = { on_accept = { marriage_interaction_on_accept_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_marry_off.desc + REVERSE_NON_HOUSE_TARGET = no + } + scope:actor = { if = { limit = { @@ -1323,6 +1334,15 @@ marry_off_interaction = { remove_variable = grand_wedding_promise_pending } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_marry_off_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -1333,6 +1353,11 @@ marry_off_interaction = { base = 0 # Should be 0 for all interactions marriage_ai_accept_modifier = yes + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_marriage_modifiers = yes @@ -2445,6 +2470,15 @@ break_betrothal_interaction = { trigger_event = clan.1002 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_betrothal_breakage.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -2573,6 +2607,11 @@ ai_make_concubine_interaction = { } } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } + modifier = { # Incest Filtering: Hard NO! factor = 0 scope:actor = { @@ -2639,6 +2678,15 @@ ai_make_concubine_interaction = { save_scope_as = secondary_recipient } concubine_on_accept_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_concubinage.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -2693,6 +2741,15 @@ make_concubine_interaction = { on_accept = { concubine_on_accept_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_concubinage.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -2809,6 +2866,15 @@ find_concubine = { on_accept = { concubine_on_accept_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_concubinage.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -3268,6 +3334,11 @@ offer_concubine = { scope:actor = { has_strong_hook = scope:recipient } desc = SCHEME_STRONG_HOOK_USED } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_marriage_modifiers = yes @@ -3374,6 +3445,11 @@ offer_concubine = { } } + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } + modifier = { # No if it's a same-sex concubinage and actor isn't accepting of it factor = 0 scope:actor = { @@ -3440,6 +3516,15 @@ offer_concubine = { on_accept = { concubine_offer_on_accept_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_concubinage_offer.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -3452,6 +3537,15 @@ offer_concubine = { custom_tooltip = msg_concubine_offer_rejected } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_concubinage_offer_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } send_options_exclusive = no @@ -3544,6 +3638,15 @@ dismiss_concubine_interaction = { move_to_pool = yes } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_concubinage_dismissal.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -3553,10 +3656,7 @@ divorce_character_interaction = { icon = icon_marriage desc = divorce_character_interaction_desc - - cost = { - piety = divorce_cost - } + cost = { piety = divorce_cost } is_shown = { scope:actor.faith = { @@ -3616,6 +3716,15 @@ divorce_character_interaction = { scope:recipient = { trigger_event = marriage_interaction.0030 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_divorce.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI @@ -3654,6 +3763,11 @@ divorce_character_interaction = { allowed_to_marry_same_sex_trigger = no } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } } } @@ -3878,6 +3992,11 @@ divorce_character_house_head_interaction = { allowed_to_marry_same_sex_trigger = no } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_marriage_modifiers = yes @@ -3950,6 +4069,15 @@ divorce_character_house_head_interaction = { trigger_event = religious_interaction.2 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_divorce_grant.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -3958,6 +4086,15 @@ divorce_character_house_head_interaction = { right_icon = scope:actor.house.house_head } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_divorce_grant_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI @@ -4239,6 +4376,10 @@ divorce_character_rel_head_interaction = { has_character_modifier = wedding_accused_impotency_modifier } } + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_marriage_modifiers = yes @@ -4295,6 +4436,15 @@ divorce_character_rel_head_interaction = { scope:actor = { trigger_event = religious_interaction.1 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_alliance.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -4303,6 +4453,15 @@ divorce_character_rel_head_interaction = { right_icon = scope:actor.faith.religious_head } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_alliance.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI @@ -4346,13 +4505,18 @@ divorce_character_rel_head_interaction = { allowed_to_marry_same_sex_trigger = no } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } } } divorce_character_dynast_request_interaction = { category = interaction_category_diplomacy use_diplomatic_range = no - icon = disinherit_interaction + icon = icon_dynasty desc = divorce_character_dynast_request_interaction_desc @@ -4531,7 +4695,7 @@ divorce_character_dynast_request_interaction = { divorce_character_dynast_request_rel_head_interaction = { category = interaction_category_diplomacy use_diplomatic_range = no - icon = disinherit_interaction + icon = icon_dynasty cost = { piety = divorce_cost diff --git a/common/character_interactions/00_modifiy_vassal_contract.txt b/common/character_interactions/00_modifiy_vassal_contract.txt index 2da7922197..cb67f40f5b 100644 --- a/common/character_interactions/00_modifiy_vassal_contract.txt +++ b/common/character_interactions/00_modifiy_vassal_contract.txt @@ -87,105 +87,6 @@ auto_accept = yes on_accept = { - hidden_effect = { - # Struggle Catalysts - ## We work these out first so they're not invalidated by the actual effect block. - #if = { - # limit = { - # catalyst_granted_powerful_diff_faith_vassal_religious_protection_preliminary_trigger = { CHAR = scope:recipient } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # character = scope:actor - # } - # } - # } - #} - #if = { - # limit = { - # catalyst_revoked_powerful_diff_faith_vassal_religious_protection_preliminary_trigger = { CHAR = scope:recipient } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_revoked_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_revoked_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_revoked_powerful_diff_faith_vassal_religious_protection - # character = scope:actor - # } - # } - # } - #} - # - ## Improving contract catalyst - #if = { - # limit = { - # scope:recipient.count_obligation_improvements_for_vassal > 0 - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:recipient - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - # character = scope:actor - # } - # } - # } - #} - } - # Enact changes. scope:actor = { send_interface_message = { @@ -225,6 +126,7 @@ level = scope:obligation } } + } } } @@ -382,75 +284,6 @@ vassal_modify_vassal_contract_interaction = { } # If there's a diarch involved, and they called in their change, that gets flagged. diarch_changed_own_contract_effect = yes - - hidden_effect = { - # Struggle Catalysts - ## We work these out first so they're not invalidated by the actual effect block. - #if = { - # limit = { - # catalyst_granted_powerful_diff_faith_vassal_religious_protection_preliminary_trigger = { CHAR = scope:recipient } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_granted_powerful_diff_faith_vassal_religious_protection - # character = scope:recipient - # } - # } - # } - #} - ## Improving contract catalyst - #if = { - # limit = { - # scope:recipient.count_obligation_improvements_for_vassal > 0 - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:recipient - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - # character = scope:actor - # } - # } - # } - #} - } } send_option = { diff --git a/common/character_interactions/00_perk_interactions.txt b/common/character_interactions/00_perk_interactions.txt index 9f3dfff567..f59671f98a 100644 --- a/common/character_interactions/00_perk_interactions.txt +++ b/common/character_interactions/00_perk_interactions.txt @@ -22,6 +22,7 @@ claim_throne_interaction = { exists = scope:actor.liege scope:recipient = scope:actor.liege scope:actor = { + highest_held_title_tier > tier_barony OR = { has_perk = meritocracy_perk AND = { @@ -30,25 +31,6 @@ claim_throne_interaction = { NOT = { has_diarchy_parameter = can_be_instantly_dismissed } } } - #AND = { - # is_powerful_vassal_of = scope:recipient - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_claim_throne_for_powerful_vassals - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:recipient - # } - # } - #} - #AND = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_claim_throne_for_all - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:recipient - # } - # } - #} } } NOT = { scope:recipient = scope:actor } @@ -102,10 +84,20 @@ claim_throne_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_throne_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_potential = { is_adult = yes + highest_held_title_tier > tier_barony ai_greed >= medium_positive_ai_value learning >= medium_skill_rating intrigue >= mediocre_skill_rating @@ -133,37 +125,10 @@ claim_throne_interaction = { base = 100 # Agenda impact - #modifier = { - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # } - # } - # add = -100 - # } - # } - #} + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } start_hostile_scheme_ai_base_modifiers = yes # At the end so Cowed can block it completely } @@ -193,15 +158,11 @@ fabricate_hook_interaction = { has_trait = vengeful has_relation_rival = scope:recipient } - #AND = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_fabricate_hooks_for_all - # is_secondary_character_involvement_either_trigger = { - # CHAR = scope:recipient - # } - # } - #} + AND = { + government_has_flag = government_is_clan + is_in_same_clan_as_trigger = { CHARACTER = scope:recipient } + house = { has_house_unity_stage = competitive } + } } } NOT = { scope:recipient = scope:actor } @@ -216,17 +177,12 @@ fabricate_hook_interaction = { AND = { has_trait = vengeful has_relation_rival = scope:recipient - } - #AND = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_fabricate_hooks_for_all - # is_secondary_character_involvement_either_trigger = { - # CHAR = scope:recipient - # } - # } - #} + AND = { + government_has_flag = government_is_clan + is_in_same_clan_as_trigger = { CHARACTER = scope:recipient } + house = { has_house_unity_stage = competitive } + } } } } @@ -502,6 +458,15 @@ demand_payment_interaction = { generous = medium_stress_impact_gain } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_demand_payment.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_potential = { @@ -527,6 +492,11 @@ demand_payment_interaction = { ai_will_do = { base = 100 + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = -100 + } + modifier = { #ai won't use the interaction if they'll get nothing out of it factor = 0 scope:recipient.gold < 8 @@ -757,6 +727,15 @@ buy_claim_interaction = { } trigger_event = perk_interaction.0002 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_bought_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -848,6 +827,29 @@ challenge_to_single_combat_interaction = { OUTPUT_EVENT = perk_interaction.0101 INVALIDATION_EVENT = perk_interaction.0102 } + + # If we're a clan this interaction affects unity + if = { + limit = { + scope:actor = { + exists = scope:actor.house + house = { # But only if we have high unity! + OR = { + has_house_unity_stage = harmonious + has_house_unity_stage = friendly + } + } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_challenge_to_combat.desc + REVERSE_NON_HOUSE_TARGET = no + } + custom_description_no_bullet = { text = active_unity_level_description_tt } + } } on_decline = { @@ -1022,6 +1024,11 @@ challenge_to_single_combat_interaction = { } add = 50 } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_interaction_modifiers = yes @@ -1062,6 +1069,12 @@ challenge_to_single_combat_interaction = { multiply = -0.25 } } + + # Unity modifiers + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } + # Don't challenge kinslayer-counting family, unless they're your nemesis. modifier = { scope:actor = { diff --git a/common/character_interactions/00_poetry_interactions.txt b/common/character_interactions/00_poetry_interactions.txt index 206dd00a80..e05c650647 100644 --- a/common/character_interactions/00_poetry_interactions.txt +++ b/common/character_interactions/00_poetry_interactions.txt @@ -37,7 +37,9 @@ send_poem_interaction = { NOT = { has_character_flag = flag_hostile_actions_disabled_delay } } } - } + } + + send_options_exclusive = yes cost = { prestige = minor_prestige_value } @@ -160,6 +162,15 @@ send_poem_interaction = { } scope:actor = { remove_character_flag = flag_hostile_actions_disabled_delay } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_poetry.desc + REVERSE_NON_HOUSE_TARGET = no + } } # SEND OPTIONS @@ -345,6 +356,11 @@ send_poem_interaction = { is_ai = no } } + + # Unity modifiers + evaluate_action_increasing_house_unity = { + VALUE = 100 + } # Characters who are not lustful don't send romantic poems to just anyone modifier = { diff --git a/common/character_interactions/00_prison_interactions.txt b/common/character_interactions/00_prison_interactions.txt index bfe7e370da..31358d0c9f 100644 --- a/common/character_interactions/00_prison_interactions.txt +++ b/common/character_interactions/00_prison_interactions.txt @@ -217,8 +217,47 @@ } scope:actor = { remove_character_flag = flag_hostile_actions_disabled_delay } } + + # If we're a clan this interaction affects unity + if = { # If you don't have an imprisonment reason, and the target is landed, you lose more unity + limit = { + NOT = { scope:actor = { has_imprisonment_reason = scope:recipient } } + scope:recipient = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { # If you don't have an imprisonment reason, and the target is unlanded, you lose slightly less unity + limit = { + NOT = { + scope:actor = { has_imprisonment_reason = scope:recipient } + scope:recipient = { is_landed = yes } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # If you have a valid reason, you lose only a tiny bit of unity (criminal or not, they are still family) + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } - + on_decline = { scope:actor = { # Warcraft @@ -277,7 +316,7 @@ is_landed = yes } custom_tooltip = deposed_and_become_wanderer - hidden_effect = { + hidden_effect = { depose = yes move_to_pool = yes } @@ -436,6 +475,47 @@ } scope:actor = { remove_character_flag = flag_hostile_actions_disabled_delay } } + + # If we're a clan this interaction affects unity + if = { # If you don't have an imprisonment reason, and the target is landed, you lose more unity + limit = { + NOT = { + scope:actor = { has_imprisonment_reason = scope:recipient } + } + scope:recipient = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { # If you don't have an imprisonment reason, and the target is unlanded, you lose slightly less unity + limit = { + NOT = { + scope:actor = { has_imprisonment_reason = scope:recipient } + scope:recipient = { is_landed = yes } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # If you have a valid reason, you lose only a tiny bit of unity (criminal or not, they are still family) + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_imprison.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } auto_accept = no @@ -717,6 +797,9 @@ desc = THUG_REASON_HIGH add = accolade_imprisonment_chance_value_high } + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } # Warcraft scourge_interaction_modifiers = yes @@ -964,35 +1047,7 @@ } # Agenda impact - #modifier = { - # any_character_struggle = { - # involvement = involved - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_imprison_important - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_imprison_important - # } - # } - # } - # add = -100 - # } - # } - #} + modifier = { # Avoid triggering Tyranny wars mid-grand activity factor = 0 @@ -1003,6 +1058,10 @@ highest_held_title_tier >= tier_county } } + + evaluate_action_decreasing_house_unity = { + VALUE = 100 + } } } @@ -1067,6 +1126,15 @@ move_to_dungeon_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_move_to_dungeon.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -1325,33 +1393,8 @@ ransom_interaction = { } } - - # Struggle Catalyst - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_ransom_important - # CHAR = scope:secondary_recipient - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_ransom_important - # CHAR = scope:secondary_recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_ransom_important - # character = scope:actor - # } - # } - #} + } } } @@ -2023,30 +2066,7 @@ pay_ransom_interaction = { } # Struggle Catalyst - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_ransom_important - # CHAR = scope:prisoner - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_ransom_important - # CHAR = scope:prisoner - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_ransom_important - # character = scope:imprisoner - # } - # } - #} + } if = { limit = { scope:hook = yes } @@ -2055,6 +2075,15 @@ pay_ransom_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:prisoner + VALUE = medium_unity_gain + DESC = clan_unity_ransom.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -2699,42 +2728,10 @@ pay_ransom_interaction = { } # Struggle Agenda - #modifier = { - # scope:secondary_recipient = { - # any_character_struggle = { - # involvement = involved - # } - # } - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_ransom_important - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = -100 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_ransom_important - # } - # } - # } - # add = 200 - # } - # } - #} + + evaluate_action_increasing_house_unity = { + VALUE = 100 + } modifier = { # Don't give away prisoners for free factor = 0 @@ -3374,41 +3371,14 @@ release_from_prison_interaction = { limit = { scope:demand_conversion = yes } - set_character_faith = scope:actor.faith + demand_conversion_interaction_effect = yes add_opinion = { modifier = demanded_my_conversion_opinion target = scope:actor } # Struggle Catalyst - #if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_demanding_important_conversion - # CHAR = scope:recipient - # } - # } - # } - # } - # scope:actor = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_demanding_important_conversion - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_demanding_important_conversion - # character = scope:actor - # } - # } - # } - #} + } # Banish Landed Character @@ -3553,6 +3523,23 @@ release_from_prison_interaction = { target = scope:actor } } + scope:actor = { + if = { + limit = { + AND = { + scope:actor.faith = { + has_doctrine = tenet_communal_possessions + } + scope:recipient = { + has_trait = peasant_leader + } + } + } + scope:actor = { + add_piety = medium_piety_gain + } + } + } scope:actor = { add_courtier = scope:recipient } @@ -3655,55 +3642,10 @@ release_from_prison_interaction = { } } # Struggle impact - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # OR = { - # has_struggle_phase_parameter = release_prisoner_diff_culture_gives_prestige - # has_struggle_phase_parameter = release_prisoner_diff_faith_gives_prestige - # } - # } - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:recipient - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # } - # add_prestige = medium_prestige_gain - #} + # Struggle Catalyst - #if = { - # limit = { - # scope:recipient = { - # NOT = { - # has_character_flag = catalyst_release_important_blocker - # } - # } - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_release_important - # CHAR = scope:recipient - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_release_important - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_release_important - # character = scope:actor - # } - # } - #} + } } else = { @@ -3712,7 +3654,7 @@ release_from_prison_interaction = { } } - #If a child was imprisoned due to yearly_4021 they'll come back to say hi + # If a child was imprisoned due to yearly_4021 they'll come back to say hi if = { limit = { exists = var:marked_for_revenge_in_event_yearly_4021 @@ -3752,6 +3694,45 @@ release_from_prison_interaction = { release_from_prison = yes } } + + # FP3 - If prisoner is important for war + scope:actor = { # FP3 + if = { + limit = { + exists = scope:recipient.house + any_character_war = { + using_cb = fp3_free_house_member_cb + is_defender = scope:actor + primary_attacker.house = scope:recipient.house + } + } + random_character_war = { + limit = { + using_cb = fp3_free_house_member_cb + is_defender = scope:actor + primary_attacker.house = scope:recipient.house + } + primary_attacker = { + hidden_effect = { + send_interface_message = { + type = event_war_good + title = lesson_war_final_notes_victory_step_1 + left_icon = scope:recipient + right_icon = scope:actor + + show_as_tooltip = { + release_from_prison = scope:recipient + add_prestige = major_prestige_gain + prev.primary_defender = { add_prestige = major_prestige_loss } + } + } + } + add_prestige = major_prestige_gain + prev.primary_defender = { add_prestige = major_prestige_loss } + } + } + } + } } } @@ -3989,10 +3970,15 @@ release_from_prison_interaction = { } } scope:recipient = { - OR = { - is_courtier_of = scope:actor - scope:recruit = yes + custom_description = { + text = "release_take_vows_invalid_recruit" + object = scope:recipient + OR = { + is_courtier_of = scope:actor + scope:recruit = yes + } } + } custom_description = { text = "release_vows_invalid_not_your_faith" @@ -4083,8 +4069,7 @@ release_from_prison_interaction = { NOT = { employs_court_position = executioner_court_position } } scope:recipient = { - trigger_if = - { + trigger_if = { limit = { scope:recruit = yes } custom_description = { text = "release_executioner_invalid_recruit" @@ -4579,6 +4564,10 @@ release_from_prison_interaction = { } } } + + evaluate_action_increasing_house_unity = { + VALUE = 100 + } # Warcraft # Maiev will not release Illidan @@ -4744,35 +4733,7 @@ execute_prisoner_interaction = { } # Agenda impact - #modifier = { - # any_character_struggle = { - # involvement = involved - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_execute_important - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_execute_important - # } - # } - # } - # add = -100 - # } - # } - #} + # Warcraft # Maiev will not execute Illidan @@ -4800,21 +4761,7 @@ execute_prisoner_interaction = { } # Blocked by current struggle phase - #custom_tooltip = { - # text = struggle_parameter_struggle_cannot_execute_involved_prisoners - # NOT = { - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_cannot_execute_involved_prisoners - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:recipient - # } - # } - # } - # } - #} + } cost = { @@ -4937,6 +4884,57 @@ execute_prisoner_interaction = { } scope:actor = { trigger_event = bp1_yearly.9044 } } + + # FP3 + # Struggle Catalysts + scope:actor = { + # Free House Member CB target executed during war + if = { + limit = { + exists = scope:recipient.house + any_character_war = { + using_cb = fp3_free_house_member_cb + is_defender = scope:actor + primary_attacker.house = scope:recipient.house + } + } + random_character_war = { + limit = { + using_cb = fp3_free_house_member_cb + is_defender = scope:actor + primary_attacker.house = scope:recipient.house + } + primary_attacker = { + add_opinion = { + target = scope:actor + modifier = executed_close_relation_opinion + } + } + } + add_prestige = { + value = medium_piety_loss + multiply = { + value = ai_honor + add = 1 + } + } + every_vassal = { + limit = { + OR = { + has_vassal_stance = courtly + has_vassal_stance = glory_hound + ai_honor > 0.48 + } + } + add_opinion = { + target = scope:actor + modifier = executed_valuable_prisoner_modifier + } + } + } + } + + # Kill the target if = { limit = { scope:recipient = { is_ai = no } @@ -5001,33 +4999,6 @@ execute_prisoner_interaction = { scope:actor = { hidden_effect = { - # Struggle Catalysts - #if = { - # limit = { - # scope:recipient = { is_important_or_vip_struggle_character = yes } - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_execute_important - # CHAR = scope:recipient - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_execute_important - # CHAR = scope:recipient - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_execute_important - # character = scope:actor - # } - # } - #} - send_interface_message = { type = event_generic_neutral title = msg_execute_prisoner @@ -5334,7 +5305,6 @@ castrate_interaction = { icon = eunuch category = interaction_category_prison - desc = castrate_interaction_desc is_shown = { @@ -5401,6 +5371,15 @@ castrate_interaction = { days = 1 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_abelarding.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -5457,7 +5436,6 @@ blind_interaction = { icon = blind category = interaction_category_prison - desc = blind_interaction_desc is_shown = { @@ -5542,6 +5520,27 @@ blind_interaction = { days = 1 } } + + # If we're a clan this interaction affects unity + if = { + limit = { scope:actor.culture = { has_cultural_parameter = merciful_blinding } } # If actor's culture has Merciful Blindings, they lose less unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_blinding.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_blinding.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } auto_accept = yes diff --git a/common/character_interactions/00_religious_interactions.txt b/common/character_interactions/00_religious_interactions.txt index 9b380828ef..e469763674 100644 --- a/common/character_interactions/00_religious_interactions.txt +++ b/common/character_interactions/00_religious_interactions.txt @@ -15,7 +15,7 @@ ask_for_conversion_interaction = { is_valid_showing_failures_only = { valid_demand_conversion_conditions_trigger = yes - } + } ai_accept = { base = 0 @@ -30,6 +30,9 @@ ask_for_conversion_interaction = { on_accept = { new_faith_created_conversion_effect = yes + + # If we're a clan this interaction affects unity + accept_faith_conversion_add_clan_unity_effect = yes } on_decline = { @@ -38,6 +41,9 @@ ask_for_conversion_interaction = { title = ask_for_conversion_decline_notification right_icon = scope:recipient } + + # If we're a clan this interaction affects unity + refuse_faith_conversion_add_clan_unity_effect = yes } #Use hook @@ -56,6 +62,8 @@ ask_for_conversion_courtier_interaction = { icon = religious special_interaction = request_conversion_interaction + ai_maybe = yes + can_send_despite_rejection = yes desc = { desc = ask_for_conversion_interaction_desc @@ -90,12 +98,19 @@ ask_for_conversion_courtier_interaction = { scope:recipient = { is_imprisoned = no } } + cooldown_against_recipient = { years = 15 } + is_valid_showing_failures_only = { valid_demand_conversion_conditions_trigger = yes } ai_accept = { base = 0 + # Increase base chance + modifier = { + add = 50 + desc = EDUCATE_CHILD_ACTOR_IS_MY_LIEGE + } religion_demand_conversion_default_modifier = yes # Warcraft @@ -139,23 +154,68 @@ ask_for_conversion_courtier_interaction = { } } scope:recipient = { - trigger_event = char_interaction.0180 + # trigger_event = char_interaction.0180 + trigger_event = false_conversion.0900 + save_scope_value_as = { + name = forcibly_converted + value = yes + } } } if = { limit = { scope:recipient = { is_imprisoned_by = scope:actor } } scope:recipient = { release_from_prison = yes } scope:recipient = { - trigger_event = char_interaction.0180 + # trigger_event = char_interaction.0180 + trigger_event = false_conversion.0900 + save_scope_value_as = { + name = forcibly_converted + value = yes + } } } + + # If we're a clan this interaction affects unity + accept_faith_conversion_add_clan_unity_effect = yes } on_decline = { - send_interface_toast = { - title = ask_for_conversion_decline_notification - left_icon = scope:recipient + #Negative opinions + scope:recipient = { + if = { + limit = { + scope:actor = { + refusing_conversion_is_crime_trigger = { + CHARACTER = scope:recipient + } + } + scope:recipient = { + target_is_liege_or_above = scope:actor + } + } + reverse_add_opinion = { + target = scope:actor + modifier = illegal_resisted_conversion_opinion + years = 10 + } + } + else = { + add_opinion = { + modifier = demanded_my_conversion_opinion + target = scope:actor + opinion = -10 + } + } } + scope:actor = { + send_interface_toast = { + title = ask_for_conversion_decline_notification + left_icon = scope:recipient + } + } + + # If we're a clan this interaction affects unity + refuse_faith_conversion_add_clan_unity_effect = yes } # Use hook @@ -295,6 +355,8 @@ demand_conversion_interaction = { category = interaction_category_religion popup_on_receive = yes pause_on_receive = yes + can_send_despite_rejection = yes + ai_maybe = yes notification_text = HOUSE_HEAD_DEMAND_CONVERSION @@ -315,6 +377,9 @@ demand_conversion_interaction = { is_ruler = yes } } + + cooldown_against_recipient = { years = 15 } + desc = { desc = demand_conversion_interaction_desc triggered_desc = { @@ -344,14 +409,24 @@ demand_conversion_interaction = { use_hook = scope:recipient } scope:recipient = { - trigger_event = char_interaction.0180 + # trigger_event = char_interaction.0180 + trigger_event = false_conversion.0900 + save_scope_value_as = { + name = forcibly_converted + value = yes + } } } if = { limit = { scope:recipient = { is_imprisoned_by = scope:actor } } scope:recipient = { release_from_prison = yes } scope:recipient = { - trigger_event = char_interaction.0180 + # trigger_event = char_interaction.0180 + trigger_event = false_conversion.0900 + save_scope_value_as = { + name = forcibly_converted + value = yes + } } } else = { @@ -359,6 +434,9 @@ demand_conversion_interaction = { trigger_event = char_interaction.0181 } } + + # If we're a clan this interaction affects unity + accept_faith_conversion_add_clan_unity_effect = yes } on_decline = { @@ -396,6 +474,9 @@ demand_conversion_interaction = { scope:actor = { trigger_event = char_interaction.0182 } + + # If we're a clan this interaction affects unity + refuse_faith_conversion_add_clan_unity_effect = yes } auto_accept = { @@ -407,9 +488,24 @@ demand_conversion_interaction = { scope:actor = { has_strong_hook = scope:recipient } } } + + #For loc + on_auto_accept = { + scope:recipient = { + save_scope_value_as = { + name = forcibly_converted + value = yes + } + } + } ai_accept = { base = 0 + # Increase base chance + modifier = { + add = 50 + desc = EDUCATE_CHILD_ACTOR_IS_MY_LIEGE + } modifier = { add = 100 NOT = { @@ -533,6 +629,9 @@ demand_conversion_vassal_ruler_interaction = { trigger_event = religious_interaction.2002 } demand_conversion_vassal_ruler_interaction_effect = yes + + # If we're a clan this interaction affects unity + accept_faith_conversion_add_clan_unity_effect = yes } on_decline = { @@ -643,6 +742,9 @@ demand_conversion_vassal_ruler_interaction = { } } } + + # If we're a clan this interaction affects unity + refuse_faith_conversion_add_clan_unity_effect = yes } ai_potential = { @@ -826,6 +928,11 @@ demand_conversion_vassal_ruler_interaction = { } ai_accept = { base = 0 + # Increase base chance + modifier = { + add = 50 + desc = EDUCATE_CHILD_ACTOR_IS_MY_LIEGE + } religion_demand_conversion_default_modifier = yes modifier = { @@ -862,6 +969,8 @@ demand_conversion_player_ruler_interaction = { } } + cooldown_against_recipient = { years = 15 } + is_valid_showing_failures_only = { valid_demand_conversion_conditions_trigger = yes } @@ -900,6 +1009,10 @@ demand_conversion_player_ruler_interaction = { } scope:recipient = { + save_scope_value_as = { + name = forcibly_converted + value = yes + } trigger_event = religious_interaction.2021 } } @@ -910,6 +1023,9 @@ demand_conversion_player_ruler_interaction = { scope:actor = { trigger_event = char_interaction.0190 } + + # If we're a clan this interaction affects unity + accept_faith_conversion_add_clan_unity_effect = yes } on_decline = { @@ -936,6 +1052,9 @@ demand_conversion_player_ruler_interaction = { } trigger_event = char_interaction.0191 } + + # If we're a clan this interaction affects unity + refuse_faith_conversion_add_clan_unity_effect = yes } ai_potential = { @@ -1461,6 +1580,14 @@ seek_indulgences_interaction = { } } } + + evaluate_action_increasing_house_unity = { + VALUE = 50 + } + + evaluate_action_decreasing_house_unity = { + VALUE = -100 + } # Warcraft scourge_interaction_modifiers = yes @@ -1474,12 +1601,30 @@ seek_indulgences_interaction = { scope:actor = { trigger_event = religious_interaction.1010 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_indulgences_accepted.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { scope:actor = { trigger_event = religious_interaction.1011 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_indulgences_declined.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI will do @@ -1535,6 +1680,10 @@ seek_indulgences_interaction = { piety_level > 0 } } + + evaluate_action_increasing_house_unity = { + VALUE = 50 + } } } @@ -1665,6 +1814,14 @@ declaration_of_repentance_interaction = { } } } + + evaluate_action_increasing_house_unity = { + VALUE = 50 + } + + evaluate_action_decreasing_house_unity = { + VALUE = -100 + } # Warcraft scourge_interaction_modifiers = yes @@ -1682,6 +1839,15 @@ declaration_of_repentance_interaction = { id = religious_interaction.1024 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_repentance.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -1692,6 +1858,15 @@ declaration_of_repentance_interaction = { id = religious_interaction.1025 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_repentance_declined.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI will do @@ -1807,6 +1982,15 @@ excommunicate_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_excommunication.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI will do @@ -1883,6 +2067,15 @@ lift_excommunication_interaction = { TARGET_CHARACTER = scope:recipient REQUESTING_CHARACTER = scope:actor } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_excommunication_lifted + REVERSE_NON_HOUSE_TARGET = no + } } # AI will do @@ -1924,7 +2117,6 @@ lift_excommunication_interaction = { } } - request_excommunication_interaction = { category = interaction_category_hostile icon = excommunication @@ -2134,6 +2326,14 @@ request_excommunication_interaction = { } } } + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_request_excommunication.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -2144,6 +2344,15 @@ request_excommunication_interaction = { id = religious_interaction.1023 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_excommunication_request_denied.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI will do @@ -2320,6 +2529,15 @@ send_to_holy_order_interaction = { remove_variable = vows_piety_spent } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_send_to_holy_order.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -2362,6 +2580,15 @@ send_to_holy_order_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_join_holy_order_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = no @@ -3038,6 +3265,15 @@ take_vows_interaction = { remove_variable = vows_piety_spent } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_take_vows.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -3081,6 +3317,15 @@ take_vows_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_refused_to_take_vows.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = no @@ -3841,6 +4086,15 @@ temporal_condemnation_interaction = { modifier = temporal_condemnation_condemned_me_opinion } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_condemn_sins.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -4044,6 +4298,15 @@ host_honored_guest_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_honored_guest.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_potential = { @@ -5200,6 +5463,15 @@ hof_ask_for_claim_interaction = { scope:actor = { trigger_event = religious_interaction.4 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:secondary_recipient + VALUE = minor_unity_loss + DESC = clan_unity_granted_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -5357,6 +5629,7 @@ hof_redirect_great_holy_war_interaction = { } } } + ai_will_do = { base = 0 } @@ -5550,6 +5823,15 @@ sun_trial_interaction = { id = religious_interaction.2100 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_sun_trial.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -5645,5 +5927,14 @@ literalist_debate_interaction = { scope:recipient = { custom_tooltip = literalist_debate_interaction.tt_winnings_recipient } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_literalist_debate.desc + REVERSE_NON_HOUSE_TARGET = no + } } } diff --git a/common/character_interactions/00_revoke_title_interaction.txt b/common/character_interactions/00_revoke_title_interaction.txt index 2f041558a9..ae2f42fb92 100644 --- a/common/character_interactions/00_revoke_title_interaction.txt +++ b/common/character_interactions/00_revoke_title_interaction.txt @@ -802,6 +802,21 @@ } } } + + # Clan Government: Avoid revoking titles from house members if the AI wants to have high unity + modifier = { + scope:actor = { + government_has_flag = government_is_clan + exists = house + ai_wants_high_unity = yes + } + scope:recipient = { + government_has_flag = government_is_clan + exists = house + house = scope:actor.house + } + add = -1000 + } modifier = { # Avoid triggering Tyranny wars mid-grand activity factor = 0 diff --git a/common/character_interactions/00_scheme_interactions.txt b/common/character_interactions/00_scheme_interactions.txt index 81ff23ae1b..279b41e6bc 100644 --- a/common/character_interactions/00_scheme_interactions.txt +++ b/common/character_interactions/00_scheme_interactions.txt @@ -2039,6 +2039,19 @@ sway_interaction = { } } } + modifier = { # Try to make your tax collectors like you + factor = 10 + scope:actor = { + government_has_flag = government_is_clan + } + scope:recipient = { + is_tax_collector = yes + opinion = { + target = scope:actor + value <= 50 + } + } + } modifier = { # No point in swaying if opinion is already at 100 factor = 0 @@ -2050,13 +2063,17 @@ sway_interaction = { } } - modifier = { # If they are unlanded, they have to be a realm priest or spymaster + modifier = { # If they are unlanded, they have to be a realm priest or spymaster, or in the case for clan rulers, a tax collector factor = 0 scope:recipient = { is_ruler = no NOR = { is_theocratic_lessee = yes has_council_position = councillor_spymaster + AND = { + is_tax_collector = yes + scope:actor = { government_has_flag = government_is_clan } + } } } } diff --git a/common/character_interactions/00_tradition_interactions.txt b/common/character_interactions/00_tradition_interactions.txt index e9f0dd715a..0a4c3694c7 100644 --- a/common/character_interactions/00_tradition_interactions.txt +++ b/common/character_interactions/00_tradition_interactions.txt @@ -373,6 +373,15 @@ appoint_podesta_interaction = { } resolve_title_and_vassal_change = scope:change } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_podesta.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/00_trait_interactions.txt b/common/character_interactions/00_trait_interactions.txt index e800581578..d108c74018 100644 --- a/common/character_interactions/00_trait_interactions.txt +++ b/common/character_interactions/00_trait_interactions.txt @@ -72,6 +72,15 @@ abandon_hook_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_abandon_hook.desc + REVERSE_NON_HOUSE_TARGET = no + } } @@ -155,6 +164,15 @@ dismiss_strong_hook_interaction = { add_tyranny = 35 } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_dismiss_strong_hook.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_frequency = 60 @@ -241,7 +259,16 @@ dismiss_weak_hook_interaction = { add_tyranny = 15 } - } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_dismiss_weak_hook.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_targets = { @@ -584,6 +611,15 @@ force_duel_anyone_interaction = { OUTPUT_EVENT = perk_interaction.0101 INVALIDATION_EVENT = fp1_tbc.0102 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_released_anger.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/00_vassal_interactions.txt b/common/character_interactions/00_vassal_interactions.txt index c5b6caada7..b4c47c23ef 100644 --- a/common/character_interactions/00_vassal_interactions.txt +++ b/common/character_interactions/00_vassal_interactions.txt @@ -190,12 +190,30 @@ grant_vassal_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_grant_vassal.desc + REVERSE_NON_HOUSE_TARGET = yes + } } on_decline = { scope:actor = { trigger_event = char_interaction.0211 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = miniscule_unity_loss + DESC = clan_unity_grant_vassal_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI handled entirely though code @@ -911,8 +929,6 @@ retract_vassal_interaction = { start_independence_faction_interaction = { icon = independence category = interaction_category_vassal - - desc = start_independence_faction_interaction_desc is_shown = { @@ -970,8 +986,6 @@ start_independence_faction_interaction = { join_independence_faction_interaction = { icon = independence category = interaction_category_vassal - - desc = join_independence_faction_interaction_desc is_shown = { @@ -1282,6 +1296,17 @@ invite_to_council_position_interaction = { } } } + # If we're a clan this interaction affects unity + #if = { + # limit = { scope:actor = { NOT = { has_character_flag = fp3_consulted_house } } } + # add_clan_unity_interaction_effect = { + # CHARACTER = scope:actor + # TARGET = scope:recipient + # VALUE = miniscule_unity_gain + # DESC = clan_unity_council_position.desc + # REVERSE_NON_HOUSE_TARGET = yes + # } + #} } on_decline = { @@ -1448,6 +1473,15 @@ force_onto_council = { use_hook = scope:recipient } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_forced_unto_council.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_set_target = { @@ -1662,6 +1696,38 @@ stop_attacker_vassal_war_interaction = { trigger_event = vassal_interaction.0001 #Starts "negotiations" } } + + # If we're a clan this interaction affects unity - But we only show it in the tooltip, actual effect is applied in the respective follow-up events + show_as_tooltip = { + if = { + limit = { # If we are asking a non-house member to stop attacking a house member, gain unity + exists = scope:recipient.house + exists = scope:actor.house + NOT = { scope:recipient.house = scope:actor.house } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:target.primary_defender + VALUE = medium_unity_gain + DESC = clan_unity_aided_in_war.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { # If we are asking a house member to stop attacking a non-house member, lose unity + exists = scope:actor.house + exists = scope:target.primary_defender.house + NOT = { scope:target.primary_defender.house = scope:actor.house } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_stopped_vassal_war.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + } } auto_accept = yes @@ -1755,6 +1821,38 @@ stop_defender_vassal_war_interaction = { trigger_event = vassal_interaction.0011 #Starts "negotiations" } } + + # If we're a clan this interaction affects unity - But we only show it in the tooltip, actual effect is applied in the respective follow-up events + show_as_tooltip = { + if = { + limit = { # If recipient is a house member and the attacker is not, lose unity + exists = scope:actor.house + exists = scope:target.primary_attacker.house + NOT = { scope:target.primary_attacker.house = scope:actor.house } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_stop_defender_vassal_war.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { # If recipient is a non-house member and the attacker is, gain unity + exists = scope:actor.house + exists = scope:recipient.house + NOT = { scope:recipient.house = scope:actor.house } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:target.primary_attacker + VALUE = medium_unity_gain + DESC = clan_unity_aided_in_war.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + } } auto_accept = yes @@ -1851,6 +1949,26 @@ ask_for_pardon_interaction = { scope:actor = { trigger_event = vassal_interaction.0030 } + + scope:recipient = { #FP3 Addition. TODO FP3 CD: Find a way to test this. + if = { + limit = { + culture = { + has_cultural_parameter = pardoning_gives_prestige + } + } + add_prestige = minor_prestige_gain + } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_pardon_granted.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_auto_accept = { @@ -1868,6 +1986,15 @@ ask_for_pardon_interaction = { custom_tooltip = ask_for_pardon_interaction_accept_decline } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_loss + DESC = clan_unity_refused_pardon.desc + REVERSE_NON_HOUSE_TARGET = no + } } #Use hook @@ -1912,7 +2039,21 @@ pardon_interaction = { category = interaction_category_friendly icon = scroll_scales - desc = pardon_interaction_desc + desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:actor = { + culture = { + has_cultural_parameter = pardoning_gives_prestige + } + } + } + desc = pardon_interaction_has_jirga_desc + } + desc = pardon_interaction_desc + } + } is_shown = { scope:actor = { @@ -1936,7 +2077,17 @@ pardon_interaction = { forgiving = medium_stress_loss } } - + + scope:actor = { + if = { + limit = { + culture = { + has_cultural_parameter = pardoning_gives_prestige + } + } + add_prestige = minor_prestige_gain + } + } scope:recipient = { if = { @@ -1978,7 +2129,16 @@ pardon_interaction = { title = pardon_interaction_toast left_icon = scope:actor } - } + } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_forgiveness.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_potential = { @@ -2205,6 +2365,15 @@ vassal_claim_liege_title_interaction = { vassal_claim_liege_title_interaction_effect = yes } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = major_unity_loss + DESC = clan_unity_title_claim.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -2277,37 +2446,7 @@ vassal_claim_liege_title_interaction = { } # Agenda impact - #modifier = { - # scope:actor = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # has_character_flag = agenda_towards_escalation - # } - # } - # add = 200 - # } - # else_if = { - # limit = { - # scope:actor = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # } - # } - # add = -100 - # } - # } - #} + modifier = { factor = 0.25 diff --git a/common/character_interactions/00_war.txt b/common/character_interactions/00_war.txt index cef68b370f..aa0f6b2876 100644 --- a/common/character_interactions/00_war.txt +++ b/common/character_interactions/00_war.txt @@ -133,7 +133,6 @@ extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" on_accept = { - scope:actor = { #Feedback! hidden_effect = { @@ -376,7 +375,16 @@ end_war_attacker_victory_interaction = { } } - release_prisoners_of_war_effect = yes + if = { + limit = { + scope:war ?= { + using_cb = fp3_free_house_member_cb + } + } + } + else = { + release_prisoners_of_war_effect = yes + } # Hostages # Save scopes for clarity @@ -687,7 +695,16 @@ end_war_attacker_white_peace_interaction = { } } - release_prisoners_of_war_effect = yes + if = { + limit = { + scope:war ?= { + using_cb = fp3_free_house_member_cb + } + } + } + else = { + release_prisoners_of_war_effect = yes + } # Hostages # Save scopes for clarity @@ -1466,7 +1483,17 @@ end_war_attacker_defeat_interaction = { } } - release_prisoners_of_war_effect = yes + if = { + limit = { + scope:war ?= { + using_cb = fp3_free_house_member_cb + } + } + } + else = { + release_prisoners_of_war_effect = yes + } + # Hostages # Save scopes for clarity if = { @@ -1691,7 +1718,6 @@ end_war_attacker_defeat_interaction = { } } - view_war_interaction = { category = interaction_category_diplomacy common_interaction = yes diff --git a/common/character_interactions/00_witch_interactions.txt b/common/character_interactions/00_witch_interactions.txt index acf7df5b96..647435b06e 100644 --- a/common/character_interactions/00_witch_interactions.txt +++ b/common/character_interactions/00_witch_interactions.txt @@ -237,6 +237,15 @@ reveal_as_witch_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_witch_reveal.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes diff --git a/common/character_interactions/01_fp1_interactions.txt b/common/character_interactions/01_fp1_interactions.txt index f7ca2effd9..e6cfb080ab 100644 --- a/common/character_interactions/01_fp1_interactions.txt +++ b/common/character_interactions/01_fp1_interactions.txt @@ -42,6 +42,15 @@ designate_gruesome_festivals_sacrifice_interaction = { custom_tooltip = designate_gruesome_festivals_sacrifice_interaction.recipient.notification.tt } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_human_sacrifice.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -73,6 +82,15 @@ remove_designated_gruesome_festivals_sacrifice_interaction = { } designate_gruesome_festivals_sacrifice_modifier_removed_effect ={ DESIGNATOR = scope:actor } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_human_sacrifice_removal.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = yes @@ -278,6 +296,15 @@ challenge_to_trial_by_combat_interaction = { } scope:actor = { remove_character_flag = flag_hostile_actions_disabled_delay } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_trial_by_combat.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { diff --git a/common/character_interactions/02_ep1_interactions.txt b/common/character_interactions/02_ep1_interactions.txt index a3b54bb4bf..db1634d68e 100644 --- a/common/character_interactions/02_ep1_interactions.txt +++ b/common/character_interactions/02_ep1_interactions.txt @@ -118,6 +118,15 @@ fund_inspiration_interaction = { } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_gain + DESC = clan_unity_inspo.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -295,6 +304,15 @@ indebt_guest_interaction = { # Reminder that you'll have a chance to direct where they go. custom_tooltip = indebt_guest_interaction.tt.direct_indebted_guest } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_indebt_guest.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -309,6 +327,15 @@ indebt_guest_interaction = { change_current_court_grandeur = indebt_guest_interaction_lost_test_grandeur_cost_value } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_indebt_guest_failure.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = no diff --git a/common/character_interactions/03_fp2_interactions.txt b/common/character_interactions/03_fp2_interactions.txt index 5757746985..f7f2622260 100644 --- a/common/character_interactions/03_fp2_interactions.txt +++ b/common/character_interactions/03_fp2_interactions.txt @@ -321,6 +321,15 @@ share_known_secrets_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_secret_sharing.desc + REVERSE_NON_HOUSE_TARGET = no + } } auto_accept = { @@ -569,6 +578,15 @@ propose_best_friendship_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_oath_of_true_friendship.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -607,6 +625,15 @@ propose_best_friendship_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_declined_true_friendship.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI @@ -725,6 +752,15 @@ reaffirm_best_friendship_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_friendship_is_magic.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -758,6 +794,15 @@ reaffirm_best_friendship_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_friendship_is_not_magic.desc + REVERSE_NON_HOUSE_TARGET = no + } } # AI @@ -865,6 +910,15 @@ synergise_friendship_interaction = { scope:recipient = { remove_every_best_friend_synergy_bonus_modifier_effect = yes } # Finally, calc the actual modifiers received. synergise_friendship_interaction_actual_effect = yes + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_synergized_friendship.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -888,6 +942,15 @@ synergise_friendship_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_synergized_friendship_declined.desc + REVERSE_NON_HOUSE_TARGET = no + } } # Synergy Types @@ -965,6 +1028,7 @@ challenge_to_2p_chess_interaction = { OR = { culture = { has_cultural_parameter = may_challenge_to_board_games } has_perk = befriend_perk + has_character_modifier = fp3_chess_playing_monkey_modifier #addition from FP3 } # Plus be able to start & continue such a game generally. bg_can_start_board_game_trigger = yes @@ -1216,6 +1280,15 @@ challenge_to_2p_chess_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_shatranj.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -1251,6 +1324,15 @@ challenge_to_2p_chess_interaction = { scope:bg_stake_land_actor = { remove_variable = wagered_county } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = miniscule_unity_loss + DESC = clan_unity_shatranj_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } # Wagers @@ -1959,6 +2041,15 @@ purchase_truce_interaction = { } purchase_truce_interaction_work_out_purchase_cost_effect = yes } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_gain + DESC = clan_unity_purchased_truce.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -1981,6 +2072,15 @@ purchase_truce_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_loss + DESC = clan_unity_purchased_truce_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } # Send Options @@ -2460,7 +2560,7 @@ purchase_truce_interaction = { ################################################## # Incite Revolts # by Maxence Voleau -################################################## Updated for SP1 +################################################## Updated for FP3 incite_revolts_interaction = { interface_priority = 30 @@ -2498,20 +2598,6 @@ incite_revolts_interaction = { always = no has_dlc_feature = the_fate_of_iberia NOT = { scope:recipient = scope:actor } - # Only available during Opportunity, Hostility and Tension phases - #scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_incite_revolts_interaction - # } - #} - # Can only target involved - #scope:recipient = { - # any_character_struggle = { - # involvement = involved - # } - #} } is_valid_showing_failures_only = { @@ -2533,6 +2619,20 @@ incite_revolts_interaction = { } } + can_send = { + custom_tooltip = { + text = must_select_an_investment + OR = { + scope:actor = { is_ai = yes } # Temporary until we get a code fix + scope:small_investment_in_revolt = yes + scope:medium_investment_in_revolt = yes + scope:high_investment_in_revolt = yes + } + } + } + + send_options_exclusive = yes + # Small investment send_option = { flag = small_investment_in_revolt @@ -2629,7 +2729,7 @@ incite_revolts_interaction = { } } - # SP1 Polish (Hugo) + # FP3 Polish (Hugo) scope:actor = { duel = { skill = intrigue @@ -2762,18 +2862,22 @@ incite_revolts_interaction = { } } } + + # TO DO POLISH: add a chance to be discovered depending on target's intrigue: leads to opinion loss and progress towards Rivalry + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_forment_revolt.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_frequency = 60 ai_potential = { - #any_character_struggle = { - # involvement = involved - # OR = { - # is_struggle_phase = struggle_iberia_phase_opportunity - # is_struggle_phase = struggle_iberia_phase_hostility - # } - #} always = no short_term_gold >= medium_gold_value } @@ -2922,26 +3026,6 @@ contract_assistance_interaction = { is_shown = { # Actor is Involved in Struggle - #scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_contract_assistance_interaction - # } - #} - ## Recipient is Involved in Struggle, at war, and not at war with Actor - #scope:recipient = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_contract_assistance_interaction - # } - # is_at_war = yes - # NOR = { - # this = scope:actor - # is_at_war_with = scope:actor - # } - #} always = no } @@ -3083,11 +3167,29 @@ contract_assistance_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_contract_assistance.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { # Refusal notification scope:actor = { trigger_event = char_interaction.0236 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_gain + DESC = clan_unity_contract_assistance_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_accept = { @@ -3453,26 +3555,6 @@ request_contract_assistance_interaction = { is_shown = { # Actor is Involved in Struggle - #scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_contract_assistance_interaction - # } - # is_at_war = yes - # NOR = { - # this = scope:recipient - # is_at_war_with = scope:recipient - # } - #} - ## Recipient is Involved in Struggle, at war, and not at war with Actor - #scope:recipient = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_contract_assistance_interaction - # } - #} always = no } @@ -3481,15 +3563,9 @@ request_contract_assistance_interaction = { } has_valid_target_showing_failures_only = { - scope:target = { is_war_leader = scope:actor } - } + scope:target = { + is_war_leader = scope:actor - is_valid_showing_failures_only = { - scope:recipient = { - # Cannot demand gold from allies - NOT = { is_allied_to = scope:actor } - } - scope:target = { # Cannot contract against allies trigger_if = { limit = { @@ -3505,6 +3581,13 @@ request_contract_assistance_interaction = { } } } + } + + is_valid_showing_failures_only = { + scope:recipient = { + # Cannot demand gold from allies + NOT = { is_allied_to = scope:actor } + } # Actor is not in (any) war against Recipient's liege(s) trigger_if = { limit = { exists = scope:recipient.liege } @@ -3620,11 +3703,29 @@ request_contract_assistance_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_request_assistance.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { # Refusal notification scope:actor = { trigger_event = char_interaction.0236 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_gain + DESC = clan_unity_request_assistance_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_accept = { @@ -3932,7 +4033,6 @@ enforce_truce_interaction = { # } # any_character_struggle = { # involvement = involved - # is_struggle_type = iberian_struggle # has_struggle_phase_parameter = unlocks_enforce_truces_interaction # } #} @@ -4148,11 +4248,29 @@ enforce_truce_interaction = { # #} } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_enforce_truce.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { # Refusal notification scope:actor = { trigger_event = char_interaction.0236 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = medium_unity_loss + DESC = clan_unity_enforce_truce_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_accept = { @@ -4338,65 +4456,15 @@ bargain_fealty_interaction = { is_shown = { # Actor is Involved in Struggle - #scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # } - # is_independent_ruler = yes - # is_at_war = yes - # any_character_war = { - # is_war_leader = prev - # primary_defender = prev - # } - # tier_difference = { - # target = scope:recipient - # value <= -1 - # } - #} - ## Recipient is not at war with Actor - #scope:recipient = { - # any_neighboring_and_across_water_top_liege_realm_owner = { this = scope:actor } - # primary_title = { is_mercenary_company = no } - # NOR = { - # this = scope:actor - # is_at_war_with = scope:actor - # } - #} always = no } is_valid_showing_failures_only = { - #scope:actor = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = unlocks_bargain_fealty_interaction - # } - #} always = no } can_be_picked = { # Actor is war leader in chosen war - #exists = scope:target - #scope:target = { - # is_war_leader = scope:actor - # primary_defender = scope:actor - # custom_tooltip = { - # text = bargain_fealty_border_raid_tt - # NOT = { using_cb = fp2_border_raid } - # } - # custom_tooltip = { - # text = bargain_fealty_struggle_clash_tt - # NOT = { using_cb = county_struggle_cb } - # } - #} - ## Actor is not involved in a war involving Recipient - #joiner_not_already_in_another_war_with_any_target_war_participants_trigger = { - # WARRIOR = scope:actor - # JOINER = scope:recipient - #} always = no } @@ -4446,11 +4514,29 @@ bargain_fealty_interaction = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_bargained_fealty.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { # Refusal notification scope:actor = { trigger_event = char_interaction.0236 } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_loss + DESC = clan_unity_bargain_fealty_refusal.desc + REVERSE_NON_HOUSE_TARGET = no + } } ai_accept = { @@ -4696,6 +4782,15 @@ invite_foreign_ruler_to = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_feast_invite.desc + REVERSE_NON_HOUSE_TARGET = no + } } on_decline = { @@ -4719,6 +4814,15 @@ invite_foreign_ruler_to = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:recipient + TARGET = scope:actor + VALUE = minor_unity_loss + DESC = clan_unity_feast_invite_decline.desc + REVERSE_NON_HOUSE_TARGET = no + } } # Send Options diff --git a/common/character_interactions/05_bp2_interactions.txt b/common/character_interactions/05_bp2_interactions.txt index c37d3dbc02..2e24a4892d 100644 --- a/common/character_interactions/05_bp2_interactions.txt +++ b/common/character_interactions/05_bp2_interactions.txt @@ -219,6 +219,20 @@ offer_hostage_interaction = { HOME_COURT = scope:hostage_sender } scope:actor = { trigger_event = char_interaction.0330 } + # If we're of the same clan this interaction affects unity + if = { + limit = { + scope:actor = { government_has_flag = government_is_clan } + scope:actor.house = scope:recipient.house + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_hostage.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } on_decline = { @@ -393,7 +407,7 @@ offer_hostage_interaction = { ai_recipients = liege } - ai_frequency = 12 + ai_frequency = 36 ai_potential = { highest_held_title_tier >= tier_county } @@ -486,6 +500,11 @@ offer_hostage_interaction = { } add = -50 } + modifier = { + scope:recipient = { has_character_flag = halved_hostage_prestige_income } + desc = HOSTAGE_RETAINED_ADULTHOOD_REASON + add = -25 + } # Cultural traditions modifier = { scope:actor.culture = { has_cultural_tradition = tradition_equitable } @@ -774,6 +793,20 @@ demand_hostage_interaction = { } } scope:actor = { trigger_event = char_interaction.0331 } + # If we're of the same clan this interaction affects unity + if = { + limit = { + scope:actor = { government_has_flag = government_is_clan } + scope:actor.house = scope:recipient.house + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = minor_unity_loss + DESC = clan_unity_hostage.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } on_decline = { @@ -1037,6 +1070,12 @@ demand_hostage_interaction = { add = 40 desc = SCHEME_WEAK_HOOK_USED } + modifier = { + scope:secondary_recipient ?= { is_adult = no } + scope:actor = { has_character_flag = halved_hostage_prestige_income } + desc = HOSTAGE_RETAINED_ADULTHOOD_REASON + add = -25 + } } ai_targets = { @@ -1046,7 +1085,7 @@ demand_hostage_interaction = { ai_recipients = liege } - ai_frequency = 12 + ai_frequency = 36 ai_potential = { highest_held_title_tier >= tier_county } @@ -1452,6 +1491,20 @@ exchange_hostage_interaction = { HOME_COURT = scope:hostage_sender_2 } scope:actor = { trigger_event = char_interaction.0332 } + # If we're of the same clan this interaction affects unity + if = { + limit = { + scope:actor = { government_has_flag = government_is_clan } + scope:actor.house = scope:recipient.house + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_hostage.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } on_decline = { @@ -1653,6 +1706,12 @@ exchange_hostage_interaction = { add = 40 desc = SCHEME_WEAK_HOOK_USED } + modifier = { + scope:secondary_recipient ?= { is_adult = no } + scope:actor = { has_character_flag = halved_hostage_prestige_income } + desc = HOSTAGE_RETAINED_ADULTHOOD_REASON + add = -25 + } } ai_targets = { @@ -1662,7 +1721,7 @@ exchange_hostage_interaction = { ai_recipients = liege } - ai_frequency = 12 + ai_frequency = 48 ai_potential = { highest_held_title_tier >= tier_county } @@ -1760,6 +1819,11 @@ exchange_hostage_interaction = { } add = -50 } + modifier = { + scope:recipient = { has_character_flag = halved_hostage_prestige_income } + desc = HOSTAGE_RETAINED_ADULTHOOD_REASON + add = -25 + } # Cultural traditions modifier = { scope:actor.culture = { has_cultural_tradition = tradition_equitable } @@ -1801,7 +1865,7 @@ exchange_hostage_interaction = { # secondary_actor = hostage return_hostage_interaction = { category = interaction_category_diplomacy - common_interaction = no # TODO_CD_BP: decide on this + common_interaction = no popup_on_receive = yes pause_on_receive = yes icon = icon_hostage @@ -1917,7 +1981,7 @@ return_hostage_interaction = { ai_recipients = family # Redirects } - ai_frequency = 24 + ai_frequency = 36 ai_will_do = { base = 0 @@ -2497,8 +2561,126 @@ influence_child_personality_interaction = { is_valid_showing_failures_only = { scope:recipient = { #be old enough to talk and have some room for new personlaity traits age >= 4 - number_of_personality_traits < 4 + custom_description = { + text = influence_child_personality_interaction_trait_limit + number_of_personality_traits < 4 + } is_busy_in_events_localised = yes + #checking all trait individually through the set scope in order to catch if all of your traits are either the same or opposite + custom_description = { + text = influence_child_personality_interaction_all_same_traits + switch = { + trigger = yes + scope:lustful = { + scope:recipient = { NOT = { has_trait = lustful } } + } + scope:chaste = { + scope:recipient = { NOT = { has_trait = chaste } } + } + scope:gluttonous = { + scope:recipient = { NOT = { has_trait = gluttonous } } + } + scope:temperate = { + scope:recipient = { NOT = { has_trait = temperate } } + } + scope:greedy = { + scope:recipient = { NOT = { has_trait = greedy } } + } + scope:generous = { + scope:recipient = { NOT = { has_trait = generous } } + } + scope:lazy = { + scope:recipient = { NOT = { has_trait = lazy } } + } + scope:diligent = { + scope:recipient = { NOT = { has_trait = diligent } } + } + scope:wrathful = { + scope:recipient = { NOT = { has_trait = wrathful } } + } + scope:calm = { + scope:recipient = { NOT = { has_trait = calm } } + } + scope:patient = { + scope:recipient = { NOT = { has_trait = patient } } + } + scope:impatient = { + scope:recipient = { NOT = { has_trait = impatient } } + } + scope:arrogant = { + scope:recipient = { NOT = { has_trait = arrogant } } + } + scope:humble = { + scope:recipient = { NOT = { has_trait = humble } } + } + scope:deceitful = { + scope:recipient = { NOT = { has_trait = deceitful } } + } + scope:honest = { + scope:recipient = { NOT = { has_trait = honest } } + } + scope:craven = { + scope:recipient = { NOT = { has_trait = craven } } + } + scope:brave = { + scope:recipient = { NOT = { has_trait = brave } } + } + scope:shy = { + scope:recipient = { NOT = { has_trait = shy } } + } + scope:gregarious = { + scope:recipient = { NOT = { has_trait = gregarious } } + } + scope:ambitious = { + scope:recipient = { NOT = { has_trait = ambitious } } + } + scope:content = { + scope:recipient = { NOT = { has_trait = content } } + } + scope:arbitrary = { + scope:recipient = { NOT = { has_trait = arbitrary } } + } + scope:just = { + scope:recipient = { NOT = { has_trait = just } } + } + scope:cynical = { + scope:recipient = { NOT = { has_trait = cynical } } + } + scope:zealous = { + scope:recipient = { NOT = { has_trait = zealous } } + } + scope:paranoid = { + scope:recipient = { NOT = { has_trait = paranoid } } + } + scope:trusting = { + scope:recipient = { NOT = { has_trait = trusting } } + } + scope:compassionate = { + scope:recipient = { NOT = { has_trait = compassionate } } + } + scope:callous = { + scope:recipient = { NOT = { has_trait = callous } } + } + scope:sadistic = { + scope:recipient = { NOT = { has_trait = sadistic } } + } + scope:stubborn = { + scope:recipient = { NOT = { has_trait = stubborn } } + } + scope:fickle = { + scope:recipient = { NOT = { has_trait = fickle } } + } + scope:eccentric = { + scope:recipient = { NOT = { has_trait = eccentric } } + } + scope:vengeful = { + scope:recipient = { NOT = { has_trait = vengeful } } + } + scope:forgiving = { + scope:recipient = { NOT = { has_trait = forgiving } } + } + } + } } scope:actor = { is_adult = yes @@ -2510,84 +2692,6 @@ influence_child_personality_interaction = { cooldown_against_recipient = { years = 3 } can_send = { - custom_description = { #only if an option is selected - text = has_no_option_selected - switch = { - trigger = yes - scope:lustful = { - } - scope:chaste = { - } - scope:gluttonous = { - } - scope:temperate = { - } - scope:greedy = { - } - scope:generous = { - } - scope:lazy = { - } - scope:diligent = { - } - scope:wrathful = { - } - scope:calm = { - } - scope:patient = { - } - scope:impatient = { - } - scope:arrogant = { - } - scope:humble = { - } - scope:deceitful = { - } - scope:honest = { - } - scope:craven = { - } - scope:brave = { - } - scope:shy = { - } - scope:gregarious = { - } - scope:ambitious = { - } - scope:content = { - } - scope:arbitrary = { - } - scope:just = { - } - scope:cynical = { - } - scope:zealous = { - } - scope:paranoid = { - } - scope:trusting = { - } - scope:compassionate = { - } - scope:callous = { - } - scope:sadistic = { - } - scope:stubborn = { - } - scope:fickle = { - } - scope:eccentric = { - } - scope:vengeful = { - } - scope:forgiving = { - } - } - } } #each option is shown if the actor has the corresponding trait and valid if recipient don't have it yet or don't have an opposite trait send_option = { @@ -3391,7 +3495,15 @@ influence_child_personality_interaction = { } scope:forgiving = { trait:forgiving = { save_scope_as = target_trait } - } + } + fallback = { + scope:actor = { + random_character_trait = { + limit = { has_trait_category = personality } + save_scope_as = target_trait + } + } + } } } @@ -3522,7 +3634,10 @@ influence_child_personality_interaction = { trait:forgiving = { save_scope_as = target_trait } } } - add_trait = scope:target_trait + if = { + limit = { exists = scope:target_trait } + add_trait = scope:target_trait + } add_opinion = { target = scope:actor modifier = admiration_opinion @@ -4614,7 +4729,7 @@ influence_child_personality_interaction = { count >= 1 } } - ai_frequency = 1 + ai_frequency = 12 ai_targets = { ai_recipients = courtiers } diff --git a/common/character_memory_types/character_memories_1.txt b/common/character_memory_types/character_memories_1.txt deleted file mode 100644 index 65dc28f548..0000000000 --- a/common/character_memory_types/character_memories_1.txt +++ /dev/null @@ -1,3194 +0,0 @@ -relative_died = { - categories = { negative death family major } - icon = "death_negative.dds" - - description = { - first_valid = { - triggered_desc = { - trigger = { - memory_participant:dead_relative = { death_killer_always_public_trigger = yes } - } - desc = relative_died_desc_1_known_killer - } - desc = relative_died_desc_1 - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - memory_participant:dead_relative = { death_killer_always_public_trigger = yes } - } - desc = relative_died_desc_second_perspective_1_known_killer - } - desc = relative_died_desc_second_perspective_1 - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - memory_participant:dead_relative = { death_killer_always_public_trigger = yes } - } - desc = relative_died_desc_third_perspective_1_known_killer - } - desc = relative_died_desc_third_perspective_1 - } - } - - participants = { dead_relative } - - duration = { - years = memory_default_duration - } -} - -spouse_died = { - categories = { negative death marriage } - icon = "death_negative.dds" - - description = { - random_valid = { - desc = spouse_died_desc - } - } - - second_perspective_description = { - random_valid = { - desc = spouse_died_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = spouse_died_desc_third_perspective - } - } - - participants = { dead_relative } - - duration = { - years = memory_default_duration - } -} - -lost_duel = { - categories = { negative martial } - icon = "martial.dds" - - description = { - random_valid = { - desc = lost_duel_desc_1 - desc = lost_duel_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = lost_duel_desc_second_perspective_1 - desc = lost_duel_desc_second_perspective_2 - } - } - - third_perspective_description = { - random_valid = { - desc = lost_duel_desc_third_perspective_1 - desc = lost_duel_desc_third_perspective_2 - } - } - - participants = { duel_winner } - - duration = { - years = memory_default_duration - } -} - -won_duel = { - categories = { positive martial } - icon = "martial.dds" - - description = { - random_valid = { - desc = won_duel_desc_1 - desc = won_duel_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = won_duel_desc_second_perspective_1 - desc = won_duel_desc_second_perspective_2 - } - } - - third_perspective_description = { - random_valid = { - desc = won_duel_desc_third_perspective_1 - desc = won_duel_desc_third_perspective_2 - } - } - - participants = { duel_loser } - - duration = { - years = memory_default_duration - } -} - -dog_died = { - categories = { negative death pet } - icon = "death_negative.dds" - - description = { - random_valid = { - desc = dog_died_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = dog_died_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = dog_died_desc_third_perspective_1 - } - } - - duration = { - years = memory_default_duration - } -} - -imprisoned = { - categories = { negative prison intimidation } - icon = "prison.dds" - description = { - random_valid = { - desc = imprisoned_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = imprisoned_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = imprisoned_desc_third_perspective_1 - } - } - - participants = { imprisoner } - - duration = { - years = memory_default_duration - } -} - -imprisoned_other = { - categories = { prison intimidation } - icon = "prison.dds" - description = { - random_valid = { - desc = imprisoned_other_desc - } - } - - second_perspective_description = { - random_valid = { - desc = imprisoned_other_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = imprisoned_other_desc_third_perspective - } - } - - participants = { imprisoned } - - duration = { - years = memory_default_duration - } -} - -child_born = { - categories = { positive family birth } - icon = "birth.dds" - description = { - random_valid = { - desc = child_born_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = child_born_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = child_born_desc_third_perspective_1 - } - } - - participants = { child } - - duration = { - years = memory_default_duration - } -} - -twins_born = { - categories = { positive family birth } - icon = "birth.dds" - description = { - random_valid = { - desc = twins_born_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = twins_born_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = twins_born_desc_third_perspective_1 - } - } - - participants = { child child_2 } - - duration = { - years = memory_default_duration - } -} - - -first_born = { - categories = { positive family major birth } - icon = "birth.dds" - description = { - random_valid = { - desc = first_born_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = first_born_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = first_born_desc_third_perspective_1 - } - } - - participants = { child } - - duration = { - years = memory_default_duration - } -} - -released_from_prison_memory = { - categories = { positive prison } - icon = "prison.dds" - description = { - random_valid = { - desc = released_from_prison_desc - } - } - - second_perspective_description = { - random_valid = { - desc = released_from_prison_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = released_from_prison_desc_third_perspective - } - } - - participants = { imprisoner } - - duration = { - years = memory_default_duration - } -} - -escaped_from_prison_memory = { - categories = { positive prison } - icon = "prison.dds" - description = { - random_valid = { - desc = escaped_from_prison_desc - } - } - - second_perspective_description = { - random_valid = { - desc = escaped_from_prison_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = escaped_from_prison_desc_third_perspective - } - } - - participants = { imprisoner } - - duration = { - years = memory_default_duration - } -} - -offensive_war = { - categories = { positive war martial war_started } - icon = "war_started.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = offensive_war_desc_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = offensive_war_desc_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = offensive_war_desc_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = offensive_war_desc_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_owner = var:war_claimant - } - desc = offensive_war_desc_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = offensive_war_desc_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = offensive_war_desc_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = offensive_war_desc_title - } - desc = offensive_war_desc - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = offensive_war_desc_second_perspective_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = offensive_war_desc_second_perspective_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = offensive_war_desc_second_perspective_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = offensive_war_desc_second_perspective_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_owner = var:war_claimant - } - desc = offensive_war_desc_second_perspective_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = offensive_war_desc_second_perspective_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = offensive_war_desc_second_perspective_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = offensive_war_desc_second_perspective_title - } - desc = offensive_war_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = offensive_war_desc_third_perspective_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = offensive_war_desc_third_perspective_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = offensive_war_desc_third_perspective_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = offensive_war_desc_third_perspective_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_owner = var:war_claimant - } - desc = offensive_war_desc_third_perspective_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = offensive_war_desc_third_perspective_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = offensive_war_desc_third_perspective_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = offensive_war_desc_third_perspective_title - } - desc = offensive_war_desc_third_perspective - } - } - - participants = { other_party } - - duration = { - years = memory_default_duration - } -} - -defensive_war = { - categories = { negative war martial war_started } - icon = "war_started.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = defensive_war_desc_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = defensive_war_desc_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = defensive_war_desc_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = defensive_war_desc_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_participant:other_party = var:war_claimant - } - desc = defensive_war_desc_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = defensive_war_desc_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = defensive_war_desc_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = defensive_war_desc_title - } - desc = defensive_war_desc - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = defensive_war_desc_second_perspective_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = defensive_war_desc_second_perspective_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = defensive_war_desc_second_perspective_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = defensive_war_desc_second_perspective_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_owner = var:war_claimant - } - desc = defensive_war_desc_second_perspective_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = defensive_war_desc_second_perspective_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = defensive_war_desc_second_perspective_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = defensive_war_desc_second_perspective_title - } - desc = defensive_war_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = var:war_cb - var:war_cb = flag:war_memory_cb_ghw - } - desc = defensive_war_desc_third_perspective_ghw - } - triggered_desc = { - trigger = { exists = var:war_faith } - desc = defensive_war_desc_third_perspective_faith - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_peasant } - desc = defensive_war_desc_third_perspective_peasant - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_populist } - desc = defensive_war_desc_third_perspective_populist - } - triggered_desc = { - trigger = { - exists = var:war_claimant - memory_owner = var:war_claimant - } - desc = defensive_war_desc_third_perspective_claimant_owner - } - triggered_desc = { - trigger = { exists = var:war_claimant } - desc = defensive_war_desc_third_perspective_claimant - } - triggered_desc = { - trigger = { exists = var:war_liege } - desc = defensive_war_desc_third_perspective_de_jure - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = defensive_war_desc_third_perspective_title - } - desc = defensive_war_desc_third_perspective - } - } - - participants = { other_party } - - duration = { - years = memory_default_duration - } -} - -joined_allys_war = { - categories = { war martial alliance war_started } - icon = "alliance.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb = flag:war_memory_cb_ghw - var:war_ally = var:war_attacker - } - desc = joined_allys_war_desc_crusade - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = joined_allys_war_desc_crusade_defensive - } - triggered_desc = { - trigger = { - exists = var:war_title - var:war_ally ?= var:war_attacker - } - desc = joined_allys_war_desc_title - } - triggered_desc = { - trigger = { var:war_ally ?= var:war_attacker } - desc = joined_allys_war_desc - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = joined_allys_war_desc_defensive_title - } - desc = joined_allys_war_desc_defensive - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb ?= flag:war_memory_cb_ghw - var:war_ally ?= var:war_attacker - } - desc = joined_allys_war_desc_crusade_second_perspective - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = joined_allys_war_desc_crusade_defensive_second_perspective - } - triggered_desc = { - trigger = { - exists = var:war_title - var:war_ally ?= var:war_attacker - } - desc = joined_allys_war_desc_title_second_perspective - } - triggered_desc = { - trigger = { var:war_ally ?= var:war_attacker } - desc = joined_allys_war_desc_second_perspective - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = joined_allys_war_desc_defensive_title_second_perspective - } - desc = joined_allys_war_desc_defensive_second_perspective - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb = flag:war_memory_cb_ghw - var:war_ally = var:war_attacker - } - desc = joined_allys_war_desc_crusade_third_perspective - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_ghw } - desc = joined_allys_war_desc_crusade_defensive_third_perspective - } - triggered_desc = { - trigger = { - exists = var:war_title - var:war_ally ?= var:war_attacker - } - desc = joined_allys_war_desc_title_third_perspective - } - triggered_desc = { - trigger = { var:war_ally ?= var:war_attacker } - desc = joined_allys_war_desc_third_perspective - } - triggered_desc = { - trigger = { exists = var:war_title } - desc = joined_allys_war_desc_defensive_title_third_perspective - } - desc = joined_allys_war_desc_defensive_third_perspective - } - } - - participants = { ally enemy } - - duration = { - years = memory_default_duration - } -} - -seduced_family = { - categories = { positive family relationships private intimate } - icon = "intimate.dds" - description = { - random_valid = { - desc = seduced_family_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = seduced_family_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = seduced_family_desc_third_perspective_1 - } - } - - participants = { family_member } - - duration = { - years = memory_default_duration - } -} - -successful_murder = { - categories = { positive death private murder intrigue } - icon = "murder.dds" - description = { - random_valid = { - desc = successful_murder_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = successful_murder_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = successful_murder_desc_third_perspective_1 - } - } - - participants = { victim } - - duration = { - years = memory_default_duration - } -} - -war_won = { - categories = { positive war martial intimidation war_ended } - icon = "war_ended_positive.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb = flag:war_memory_cb_ghw - var:war_attacker = memory_participant:winner - } - desc = war_won_desc_crusade - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_ghw } - desc = war_won_desc_crusade_defender - } - triggered_desc = { - trigger = { var:war_attacker ?= memory_participant:winner } - desc = war_won_desc_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_won_desc_defender - } - desc = war_won_desc_defender_fallback - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb = flag:war_memory_cb_ghw - var:war_attacker = memory_participant:winner - } - desc = war_won_desc_crusade_second_perspective - } - triggered_desc = { - trigger = { var:war_cb = flag:war_memory_cb_ghw } - desc = war_won_desc_crusade_defender_second_perspective - } - triggered_desc = { - trigger = { var:war_attacker = memory_participant:winner } - desc = war_won_desc_second_perspective_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_won_desc_defender_second_perspective - } - desc = war_won_desc_defender_second_perspective_fallback - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb ?= flag:war_memory_cb_ghw - var:war_attacker ?= memory_participant:winner - } - desc = war_won_desc_crusade_third_perspective - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_won_desc_crusade_defender_third_perspective - } - triggered_desc = { - trigger = { var:war_attacker ?= memory_participant:winner } - desc = war_won_desc_third_perspective_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_won_desc_defender_third_perspective - } - desc = war_won_desc_defender_third_perspective_fallback - } - } - - participants = { loser winner } - - duration = { - years = memory_default_duration - } -} - -war_lost = { - categories = { negative war martial war_ended } - icon = "war_ended_negative.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb ?= flag:war_memory_cb_ghw - var:war_attacker ?= memory_participant:loser - } - desc = war_lost_desc_crusade - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_lost_desc_crusade_defender - } - triggered_desc = { - trigger = { var:war_attacker ?= memory_participant:loser } - desc = war_lost_desc_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_lost_desc_defender - } - desc = war_lost_desc_defender_fallback - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb ?= flag:war_memory_cb_ghw - var:war_attacker ?= memory_participant:loser - } - desc = war_lost_desc_crusade_second_perspective - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_lost_desc_crusade_defender_second_perspective - } - triggered_desc = { - trigger = { var:war_attacker ?= memory_participant:loser } - desc = war_lost_desc_second_perspective_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_lost_desc_defender_second_perspective - } - desc = war_lost_desc_defender_second_perspective_fallback - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - var:war_cb ?= flag:war_memory_cb_ghw - var:war_attacker ?= memory_participant:loser - } - desc = war_lost_desc_crusade_third_perspective - } - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_lost_desc_crusade_defender_third_perspective - } - triggered_desc = { - trigger = { var:war_attacker ?= memory_participant:loser } - desc = war_lost_desc_third_perspective_1 - } - triggered_desc = { - trigger = { exists = var:war_cb } - desc = war_lost_desc_defender_third_perspective - } - desc = war_lost_desc_defender_third_perspective_fallback - } - } - - participants = { winner loser } - - duration = { - years = memory_default_duration - } -} - -war_white_peace_attacker = { - categories = { positive war martial intimidation war_ended } - icon = "war_ended_negative.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_attacker_desc_crusade - } - desc = war_white_peace_attacker - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_attacker_crusade_second_perspective - } - desc = war_white_peace_attacker_second_perspective - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_attacker_crusade_third_perspective - } - desc = war_white_peace_attacker_third_perspective - } - } - - participants = { attacker defender } - - duration = { - years = memory_default_duration - } -} - -war_white_peace_defender = { - categories = { positive war martial intimidation war_ended } - icon = "war_ended_positive.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_defender_desc_crusade - } - desc = war_white_peace_defender - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_defender_crusade_second_perspective - } - desc = war_white_peace_defender_second_perspective - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { var:war_cb ?= flag:war_memory_cb_ghw } - desc = war_white_peace_defender_crusade_third_perspective - } - desc = war_white_peace_defender_third_perspective - } - } - - participants = { attacker defender } - - duration = { - years = memory_default_duration - } -} - -match_made = { - categories = { positive diplomacy private } - icon = "diplomacy.dds" - description = { - random_valid = { - desc = match_made_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = match_made_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = match_made_desc_third_perspective_1 - } - } - - participants = { matchmaker lover } - - duration = { - years = memory_default_duration - } -} - -debug_memory_positive = { - categories = { positive } - description = { - random_valid = { - desc = debug_memory_positive_desc_1 - desc = debug_memory_positive_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = debug_memory_positive_desc_second_perspective_1 - desc = debug_memory_positive_desc_second_perspective_2 - } - } - - third_perspective_description = { - random_valid = { - desc = debug_memory_positive_desc_third_perspective_1 - desc = debug_memory_positive_desc_third_perspective_2 - } - } - - duration = { - years = memory_default_duration - } -} - -met_friend_first_time = { - categories = { positive friend } - icon = "friend.dds" - description = { - random_valid = { - desc = met_friend_first_time_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = met_friend_first_time_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = met_friend_first_time_desc_third_perspective_1 - } - } - - participants = { friend } - - duration = { - years = memory_default_duration - } -} - -friend_died = { - categories = { negative death relationships friend } - icon = "death_negative.dds" - - description = { - random_valid = { - desc = friend_died_desc_1 - #desc = friend_died_desc_2 - #desc = friend_died_desc_3 - } - } - - second_perspective_description = { - random_valid = { - desc = friend_died_desc_second_perspective_1 - #desc = friend_died_desc_second_perspective_2 - #desc = friend_died_desc_second_perspective_3 - } - } - - third_perspective_description = { - random_valid = { - desc = friend_died_desc_third_perspective_1 - #desc = friend_died_desc_third_perspective_2 - #desc = friend_died_desc_third_perspective_3 - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -childhood_started_bullying_positive = { - categories = { positive childhood intimidation } - icon = "intimidation.dds" - description = { - random_valid = { - desc = started_bullying_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = started_bullying_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = started_bullying_desc_third_perspective_1 - } - } - - participants = { victim } - - duration = { - years = memory_default_duration - } -} - -tormented_me_during_childhood = { - categories = { negative childhood intimidation } - icon = "intimidation.dds" - description = { - random_valid = { - desc = tormented_me_during_childhood_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = tormented_me_during_childhood_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = tormented_me_during_childhood_desc_third_perspective_1 - } - } - - participants = { tormentor } - - - duration = { - years = memory_default_duration - } -} - -saw_other_child_die_from_sow = { - categories = { negative childhood } - icon = "death_negative.dds" - description = { - random_valid = { - desc = saw_other_child_die_from_sow_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_sow_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_sow_desc_third_perspective_1 - } - } - - participants = { dead_child } - - duration = { - years = memory_default_duration - } -} - -saw_other_child_die_from_horse = { - categories = { negative childhood } - icon = "death_negative.dds" - description = { - random_valid = { - desc = saw_other_child_die_from_horse_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_horse_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_horse_desc_third_perspective_1 - } - } - - participants = { dead_child } - - duration = { - years = memory_default_duration - } -} - -saw_other_child_die_from_camel = { - categories = { negative childhood } - icon = "death_negative.dds" - description = { - random_valid = { - desc = saw_other_child_die_from_camel_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_camel_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_camel_desc_third_perspective_1 - } - } - - participants = { dead_child } - - duration = { - years = memory_default_duration - } -} - -saw_other_child_die_from_elephant = { - categories = { negative childhood } - icon = "death_negative.dds" - description = { - random_valid = { - desc = saw_other_child_die_from_elephant_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_elephant_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_elephant_desc_third_perspective_1 - } - } - - participants = { dead_child } - - duration = { - years = memory_default_duration - } -} - -saw_other_child_die_from_roof_tile = { - categories = { negative childhood } - icon = "death_negative.dds" - description = { - random_valid = { - desc = saw_other_child_die_from_roof_tile_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_roof_tile_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = saw_other_child_die_from_roof_tile_desc_third_perspective_1 - } - } - - participants = { dead_child } - - duration = { - years = memory_default_duration - } -} - -spouse_committed_adultery = { - categories = { negative family marriage } - icon = "marriage.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - exists = memory_participant:adulterer - } - desc = spouse_committed_adultery_desc_1 - } - desc = spouse_committed_adultery_desc_2 - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = memory_participant:adulterer - } - desc = spouse_committed_adultery_desc_second_perspective_1 - } - desc = spouse_committed_adultery_desc_second_perspective_2 - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - exists = memory_participant:adulterer - } - desc = spouse_committed_adultery_desc_third_perspective_1 - } - desc = spouse_committed_adultery_desc_third_perspective_2 - } - } - - participants = { - adulterer - spouse - } - - duration = { - years = memory_default_duration - } -} - -became_friends = { - categories = { positive relationships friend } - icon = "friend.dds" - description = { - first_valid = { - desc = became_friends_desc - } - } - - second_perspective_description = { - first_valid = { - desc = became_friends_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = became_friends_desc_third_perspective - } - } - - participants = { new_relation } - - duration = { - years = memory_default_duration - } -} - -became_lovers = { - categories = { positive relationships private lover } - icon = "lover.dds" - description = { - first_valid = { - desc = became_lovers_desc - } - } - - second_perspective_description = { - first_valid = { - desc = became_lovers_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = became_lovers_desc_third_perspective - } - } - - participants = { new_relation } - - duration = { - years = memory_default_duration - } -} - -developed_crush = { - categories = { positive relationships private lover } - icon = "lover.dds" - description = { - first_valid = { - desc = developed_crush_desc - } - } - - second_perspective_description = { - first_valid = { - desc = developed_crush_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = developed_crush_desc_third_perspective - } - } - - participants = { new_relation } - - duration = { - years = memory_default_duration - } -} - -debug_memory_negative = { - categories = { negative } - description = { - random_valid = { - desc = debug_memory_negative_desc_1 - desc = debug_memory_negative_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = debug_memory_negative_desc_1_second_perspective - desc = debug_memory_negative_desc_2_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = debug_memory_negative_desc_1_third_perspective - desc = debug_memory_negative_desc_2_third_perspective - } - } - - duration = { - years = memory_default_duration - } -} - -broke_up_lovers = { - categories = { negative relationships private lover } - icon = "lover.dds" - description = { - first_valid = { - desc = broke_up_lovers_desc - } - } - - second_perspective_description = { - first_valid = { - desc = broke_up_lovers_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = broke_up_lovers_desc_third_perspective - } - } - - participants = { old_lover } - - duration = { - years = memory_default_duration - } -} - -stopped_being_friends = { - categories = { negative relationships friend } - icon = "friend.dds" - description = { - first_valid = { - desc = stopped_being_friends_desc - } - } - - second_perspective_description = { - first_valid = { - desc = stopped_being_friends_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = stopped_being_friends_desc_third_perspective - } - } - - participants = { old_friend } - - duration = { - years = memory_default_duration - } -} - -stopped_being_rivals = { - categories = { positive relationships rival } - icon = "rival.dds" - description = { - first_valid = { - desc = stopped_being_rivals_desc - } - } - - second_perspective_description = { - first_valid = { - desc = stopped_being_rivals_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = stopped_being_rivals_desc_third_perspective - } - } - - participants = { old_rival } - - duration = { - years = memory_default_duration - } -} - -became_soulmates = { - categories = { positive relationships soulmate } - icon = "soulmate.dds" - description = { - first_valid = { - desc = became_soulmates_desc - } - } - - second_perspective_description = { - first_valid = { - desc = became_soulmates_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = became_soulmates_desc_third_perspective - } - } - - participants = { new_soulmate } - - duration = { - years = memory_default_duration - } -} - -witnessed_death_battle_good = { - categories = { positive war death battle } - icon = "battle.dds" - description = { - first_valid = { - desc = witnessed_death_battle_good_desc - } - } - - second_perspective_description = { - first_valid = { - desc = witnessed_death_battle_good_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = witnessed_death_battle_good_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -witnessed_death_battle_good_killer = { - categories = { positive war death battle } - icon = "battle.dds" - description = { - first_valid = { - desc = witnessed_death_battle_good_killer_desc - } - } - - second_perspective_description = { - first_valid = { - desc = witnessed_death_battle_good_killer_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = witnessed_death_battle_good_killer_desc_third_perspective - } - } - - participants = { dead_relation relation_killer } - - duration = { - years = memory_default_duration - } -} - -witnessed_death_battle_bad = { - categories = { negative war death } - icon = "death_negative.dds" - description = { - first_valid = { - desc = witnessed_death_battle_bad_desc - } - } - - second_perspective_description = { - first_valid = { - desc = witnessed_death_battle_bad_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = witnessed_death_battle_bad_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -witnessed_death_battle_bad_killer = { - categories = { negative war death } - icon = "death_negative.dds" - description = { - first_valid = { - desc = witnessed_death_battle_bad_killer_desc - } - } - - second_perspective_description = { - first_valid = { - desc = witnessed_death_battle_bad_killer_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = witnessed_death_battle_bad_killer_desc_third_perspective - } - } - - participants = { dead_relation relation_killer } - - duration = { - years = memory_default_duration - } -} - -parent_was_killed_by_rivals_child = { - categories = { negative death major } - icon = "death_negative.dds" - description = { - random_valid = { - desc = memory_parent_killed_by_rivals_spawn - } - } - - second_perspective_description = { - random_valid = { - desc = memory_parent_killed_by_rivals_spawn_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_parent_killed_by_rivals_spawn_third_perspective - } - } - - participants = { dead_relation relation_killer rival } - - duration = { - years = memory_default_duration - } -} - -child_killed_rival = { - categories = { positive death family major rival } - icon = "rival.dds" - description = { - random_valid = { - desc = memory_child_killed_rival - } - } - - second_perspective_description = { - random_valid = { - desc = memory_child_killed_rival_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_child_killed_rival_third_perspective - } - } - - participants = { child_attacker rival } - - duration = { - years = memory_default_duration - } -} - -child_killed_by_rival = { - categories = { negative death family major } #Major - icon = "death_negative.dds" - description = { - random_valid = { - desc = memory_child_killed_by_rival - } - } - - second_perspective_description = { - random_valid = { - desc = memory_child_killed_by_rival_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_child_killed_by_rival_third_perspective - } - } - - participants = { child_attacker rival } - - - duration = { - years = memory_default_duration - } -} - -stole_lover = { - categories = { negative lover } - icon = "lover.dds" - description = { - random_valid = { - desc = stole_lover_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = stole_lover_desc_1_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = stole_lover_desc_1_third_perspective - } - } - - participants = { stealer } - - duration = { - years = memory_default_duration - } -} - -child_defeated_rival = { - categories = { positive martial family rival } - icon = "rival.dds" - description = { - random_valid = { - desc = memory_child_defeated_rival - } - } - - second_perspective_description = { - random_valid = { - desc = memory_child_defeated_rival_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_child_defeated_rival_third_perspective - } - } - - participants = { child_attacker rival } - - duration = { - years = memory_default_duration - } -} - -child_defeated_by_rival = { - categories = { negative martial family } - icon = "rival.dds" - description = { - random_valid = { - desc = memory_child_defeated_by_rival - } - } - - second_perspective_description = { - random_valid = { - desc = memory_child_defeated_by_rival_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_child_defeated_by_rival_third_perspective - } - } - - participants = { child_attacker rival } - - duration = { - years = memory_default_duration - } -} - -attacked_by_rivals_child_won = { - categories = { positive martial intimidation rival } - icon = "intimidation.dds" - description = { - random_valid = { - desc = memory_attacked_by_rivals_child_won - } - } - - second_perspective_description = { - random_valid = { - desc = memory_attacked_by_rivals_child_won_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_attacked_by_rivals_child_won_third_perspective - } - } - - participants = { rivals_child rival } - - duration = { - years = memory_default_duration - } -} - -attacked_by_rivals_child_lost = { - categories = { negative martial rival } - icon = "martial.dds" - description = { - random_valid = { - desc = memory_attacked_by_rivals_child_lost - } - } - - second_perspective_description = { - random_valid = { - desc = memory_attacked_by_rivals_child_lost_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = memory_attacked_by_rivals_child_lost_third_perspective - } - } - - participants = { rival rivals_child } - - duration = { - years = memory_default_duration - } -} - -became_rivals = { - categories = { negative relationships rival } - icon = "rival.dds" - description = { - random_valid = { - desc = became_rivals_desc - } - } - - second_perspective_description = { - random_valid = { - desc = became_rivals_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = became_rivals_desc_third_perspective - } - } - - participants = { rival } - - duration = { - years = memory_default_duration - } -} - -became_nemesis = { - categories = { negative relationships nemesis } - icon = "nemesis.dds" - description = { - random_valid = { - desc = became_nemesis_desc - } - } - - second_perspective_description = { - random_valid = { - desc = became_nemesis_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = became_nemesis_desc_third_perspective - } - } - - participants = { nemesis } - - duration = { - years = memory_default_duration - } -} - -helped_friend_to_die = { - categories = { negative death relationships friend } - icon = "friend.dds" - description = { - random_valid = { - desc = helped_friend_to_die_desc - } - } - - second_perspective_description = { - random_valid = { - desc = helped_friend_to_die_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = helped_friend_to_die_desc_third_perspective - } - } - - participants = { dying_friend } - - duration = { - years = memory_default_duration - } -} - -failed_assassination = { - categories = { negative failure private intrigue } - icon = "intrigue.dds" - description = { - random_valid = { - desc = failed_assassination_desc - } - } - - second_perspective_description = { - random_valid = { - desc = failed_assassination_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = failed_assassination_desc_third_perspective - } - } - - participants = { kill_target } - - duration = { - years = memory_default_duration - } -} - -let_go_of_rivalry = { - categories = { positive relationships rival } - icon = "rival.dds" - - description = { - random_valid = { - desc = let_go_of_rivalry_desc - } - } - - second_perspective_description = { - random_valid = { - desc = let_go_of_rivalry_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = let_go_of_rivalry_desc_third_perspective - } - } - - participants = { rival } - - duration = { - years = memory_default_duration - } -} - -nemesis_died = { - categories = { positive death relationships major nemesis } - icon = "nemesis.dds" - description = { - random_valid = { - desc = nemesis_died_desc - } - } - - second_perspective_description = { - random_valid = { - desc = nemesis_died_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = nemesis_died_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -nemesis_killed = { - categories = { positive death relationships nemesis } - icon = "nemesis.dds" - description = { - random_valid = { - desc = nemesis_killed_desc - } - } - - second_perspective_description = { - random_valid = { - desc = nemesis_killed_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = nemesis_killed_desc_third_perspective - } - } - - participants = { dead_relation killer } - - duration = { - years = memory_default_duration - } -} - -nemesis_killed_by_me = { - categories = { positive death nemesis intimidation relationships nemesis } - icon = "nemesis.dds" - description = { - random_valid = { - desc = nemesis_killed_by_me_desc - } - } - - second_perspective_description = { - random_valid = { - desc = nemesis_killed_by_me_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = nemesis_killed_by_me_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -failed_assassination_by = { - categories = { negative intrigue } - icon = "intrigue.dds" - description = { - random_valid = { - desc = failed_assassination_by_desc - } - } - - second_perspective_description = { - random_valid = { - desc = failed_assassination_by_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = failed_assassination_by_desc_third_perspective - } - } - - participants = { killer } - - - duration = { - years = memory_default_duration - } -} - -battle_lost_memory = { - categories = { negative martial war battle } - icon = "battle.dds" - description = { - random_valid = { - desc = battle_lost_memory_desc - desc = battle_lost_memory_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = battle_lost_memory_desc_second_perspective - desc = battle_lost_memory_desc_second_perspective_2 - } - } - - third_perspective_description = { - random_valid = { - desc = battle_lost_memory_desc_third_perspective - desc = battle_lost_memory_desc_third_perspective_2 - } - } - - participants = { winner ruler } - - duration = { - years = memory_default_duration - } -} - -battle_won_memory = { - categories = { positive martial war battle } - icon = "battle.dds" - description = { - random_valid = { - desc = battle_won_memory_desc - desc = battle_won_memory_desc_2 - } - } - - second_perspective_description = { - random_valid = { - desc = battle_won_memory_desc_second_perspective - desc = battle_won_memory_desc_second_perspective_2 - } - } - - third_perspective_description = { - random_valid = { - desc = battle_won_memory_desc_third_perspective - desc = battle_won_memory_desc_third_perspective_2 - } - } - - participants = { loser ruler } - - duration = { - years = memory_default_duration - } -} - -had_sex = { - categories = { positive relationships private intimate } - icon = "intimate.dds" - description = { - random_valid = { - desc = had_sex_desc - desc = had_sex_desc_1 - desc = had_sex_desc_2 - desc = had_sex_desc_3 - desc = had_sex_desc_4 - desc = had_sex_desc_5 - } - } - - second_perspective_description = { - random_valid = { - desc = had_sex_desc_second_perspective - desc = had_sex_desc_second_perspective_1 - desc = had_sex_desc_second_perspective_2 - desc = had_sex_desc_second_perspective_3 - desc = had_sex_desc_second_perspective_4 - desc = had_sex_desc_second_perspective_5 - } - } - - third_perspective_description = { - random_valid = { - desc = had_sex_desc_third_perspective - desc = had_sex_desc_third_perspective_1 - desc = had_sex_desc_third_perspective_2 - desc = had_sex_desc_third_perspective_3 - desc = had_sex_desc_third_perspective_4 - desc = had_sex_desc_third_perspective_5 - } - } - - participants = { sex_partner } - - duration = { - years = memory_default_duration - } -} - -friend_granted_my_claim = { - categories = { positive friend } - icon = "friend.dds" - - description = { - random_valid = { - desc = friend_granted_my_claim_desc - } - } - - second_perspective_description = { - random_valid = { - desc = friend_granted_my_claim_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = friend_granted_my_claim_desc_third_perspective - } - } - - participants = { friend } - # Also has a variable set on it for which title was granted - # Variable name: title_granted - # Variable type: county scope - - duration = { - years = memory_default_duration - } -} - -hurt_someone_close_to_me = { - categories = { negative relationships } - icon = "_default.dds" - description = { - random_valid = { - desc = hurt_someone_close_to_me_desc - } - } - - second_perspective_description = { - random_valid = { - desc = hurt_someone_close_to_me_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = hurt_someone_close_to_me_desc_third_perspective - } - } - - participants = { close_relation } - - duration = { - years = memory_default_duration - } -} - -freed_from_bad_marriage = { - categories = { positive family marriage } - icon = "marriage.dds" - description = { - random_valid = { - desc = freed_from_bad_marriage_desc - } - } - - second_perspective_description = { - random_valid = { - desc = freed_from_bad_marriage_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = freed_from_bad_marriage_desc_third_perspective - } - } - - participants = { savior spouse } - - duration = { - years = memory_default_duration - } -} - -married = { - categories = { positive marriage } - icon = "marriage.dds" - description = { - random_valid = { - desc = married_desc - } - } - - second_perspective_description = { - random_valid = { - desc = married_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = married_desc_third_perspective - } - } - - participants = { spouse } - - duration = { - years = memory_default_duration - } -} - -killed_everyone = { - categories = { negative relationships death } - icon = "death_negative.dds" - description = { - random_valid = { - desc = killed_everyone_desc - } - } - - second_perspective_description = { - random_valid = { - desc = killed_everyone_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = killed_everyone_desc_third_perspective - } - } - - duration = { - years = memory_default_duration - } -} - -freed_relative_from_bad_marriage = { - categories = { positive family } - icon = "family.dds" - description = { - random_valid = { - desc = freed_relative_from_bad_marriage_desc - } - } - - second_perspective_description = { - random_valid = { - desc = freed_relative_from_bad_marriage_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = freed_relative_from_bad_marriage_desc_third_perspective - } - } - - participants = { relative spouse } - - duration = { - years = memory_default_duration - } -} - -rival_died = { - categories = { positive death relationships rival } - icon = "rival.dds" - description = { - random_valid = { - desc = rival_died_desc - } - } - - second_perspective_description = { - random_valid = { - desc = rival_died_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = rival_died_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -lover_died = { - categories = { negative death relationships private lover } - icon = "lover.dds" - description = { - random_valid = { - desc = lover_died_desc - } - } - - second_perspective_description = { - random_valid = { - desc = lover_died_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = lover_died_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -soulmate_died = { - categories = { negative death relationships major soulmate } - icon = "soulmate.dds" - description = { - random_valid = { - desc = soulmate_died_desc - } - } - - second_perspective_description = { - random_valid = { - desc = soulmate_died_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = soulmate_died_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -feud_vengeance_title = { - categories = { positive family title } - icon = "title.dds" - description = { - first_valid = { - desc = feud_vengeance_title_desc - } - } - - participants = { previous_holder } - - duration = { - years = memory_default_duration - } -} - -feud_vengeance_killer = { - categories = { positive family dead_relation death } - icon = "family.dds" - description = { - first_valid = { - desc = feud_vengeance_killer_desc - } - } - - participants = { dead_relation relation_killer relation_avenger } - - duration = { - years = memory_default_duration - } -} - -feud_vengeance_torture = { - categories = { positive family } - icon = "family.dds" - description = { - first_valid = { - desc = feud_vengeance_torture_desc - } - } - - participants = { relation_victim relation_torturer relation_avenger } - - duration = { - years = memory_default_duration - } -} - -feud_vengeance_cuckold = { - categories = { positive family } - icon = "family.dds" - description = { - first_valid = { - desc = feud_vengeance_cuckold_desc - } - } - - participants = { relation_cuckolded relation_cuckolder relation_avenger } - - duration = { - years = memory_default_duration - } -} - -house_feud_started_memory = { - categories = { positive family } - icon = "family.dds" - description = { - desc = house_feud_started_memory_desc - first_valid = { - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_rivalry } - desc = house_feud_started_head_rivalry - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_rivalry } - desc = house_feud_started_family_rivalry - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_killed } - desc = house_feud_started_head_killed - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_killed } - desc = house_feud_started_family_killed - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_imprisoned } - desc = house_feud_started_head_imprisoned - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_imprisoned } - desc = house_feud_started_family_imprisoned - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_tortured } - desc = house_feud_started_head_tortured - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_tortured } - desc = house_feud_started_family_tortured - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_castrated } - desc = house_feud_started_head_castrated - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_castrated } - desc = house_feud_started_family_castrated - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_blinded } - desc = house_feud_started_head_blinded - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_blinded } - desc = house_feud_started_family_blinded - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_cuckolded } - desc = house_feud_started_head_cuckolded - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_cuckolded } - desc = house_feud_started_family_cuckolded - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:competing_claim } - desc = house_feud_started_competing_claim - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:inherited_rivalry } - desc = house_feud_started_inherited_rivalry - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:reciprocated_rivalry } - desc = house_feud_started_reciprocated_rivalry - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_broke_gw_betrothal } - desc = house_feud_started_head_broken_grand_wedding - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_broke_gw_betrothal } - desc = house_feud_started_family_broken_grand_wedding - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:murder_feast } - desc = house_feud_started_murder_feast - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:bloody_wedding } - desc = house_feud_started_bloody_wedding - } - } - } - - second_perspective_description = { - desc = house_feud_started_memory_desc_second_perspective - first_valid = { - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_rivalry } - desc = house_feud_started_head_rivalry_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_rivalry } - desc = house_feud_started_family_rivalry_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_killed } - desc = house_feud_started_head_killed_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_killed } - desc = house_feud_started_family_killed_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_imprisoned } - desc = house_feud_started_head_imprisoned_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_imprisoned } - desc = house_feud_started_family_imprisoned_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_tortured } - desc = house_feud_started_head_tortured_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_tortured } - desc = house_feud_started_family_tortured_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_castrated } - desc = house_feud_started_head_castrated_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_castrated } - desc = house_feud_started_family_castrated_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_blinded } - desc = house_feud_started_head_blinded_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_blinded } - desc = house_feud_started_family_blinded_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_cuckolded } - desc = house_feud_started_head_cuckolded_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_cuckolded } - desc = house_feud_started_family_cuckolded_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:competing_claim } - desc = house_feud_started_competing_claim - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:inherited_rivalry } - desc = house_feud_started_inherited_rivalry_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:reciprocated_rivalry } - desc = house_feud_started_reciprocated_rivalry_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_broke_gw_betrothal } - desc = house_feud_started_head_broken_grand_wedding_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_broke_gw_betrothal } - desc = house_feud_started_family_broken_grand_wedding_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:murder_feast } - desc = house_feud_started_murder_feast_second_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:bloody_wedding } - desc = house_feud_started_bloody_wedding_second_perspective - } - } - } - - third_perspective_description = { - desc = house_feud_started_memory_desc_third_perspective - first_valid = { - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_rivalry } - desc = house_feud_started_head_rivalry_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_rivalry } - desc = house_feud_started_family_rivalry_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_killed } - desc = house_feud_started_head_killed_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_killed } - desc = house_feud_started_family_killed_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_imprisoned } - desc = house_feud_started_head_imprisoned_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_imprisoned } - desc = house_feud_started_family_imprisoned_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_tortured } - desc = house_feud_started_head_tortured_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_tortured } - desc = house_feud_started_family_tortured_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_castrated } - desc = house_feud_started_head_castrated_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_castrated } - desc = house_feud_started_family_castrated_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_blinded } - desc = house_feud_started_head_blinded_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_blinded } - desc = house_feud_started_family_blinded_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_cuckolded } - desc = house_feud_started_head_cuckolded_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_cuckolded } - desc = house_feud_started_family_cuckolded_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:competing_claim } - desc = house_feud_started_competing_claim - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:inherited_rivalry } - desc = house_feud_started_inherited_rivalry_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:reciprocated_rivalry } - desc = house_feud_started_reciprocated_rivalry_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:head_broke_gw_betrothal } - desc = house_feud_started_head_broken_grand_wedding_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:family_broke_gw_betrothal } - desc = house_feud_started_family_broken_grand_wedding_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:murder_feast } - desc = house_feud_started_murder_feast_third_perspective - } - triggered_desc = { - trigger = { var:house_feud_reason ?= flag:bloody_wedding } - desc = house_feud_started_bloody_wedding_third_perspective - } - } - } - - participants = { house_head attacker victim } - - duration = { - years = memory_default_duration - } -} - -house_feud_ended_memory = { - categories = { positive family } - icon = "family.dds" - description = { - first_valid = { - desc = house_feud_ended_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = house_feud_ended_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = house_feud_ended_memory_desc_third_perspective - } - } - - participants = { house_head } - - duration = { - years = memory_default_duration - } -} - -ascended_throne_memory = { - categories = { positive title } - icon = "title.dds" - description = { - random_valid = { - desc = ascended_throne_memory_desc - } - } - - second_perspective_description = { - random_valid = { - desc = ascended_throne_memory_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = ascended_throne_memory_desc_third_perspective - } - } - - participants = { } - - duration = { - years = memory_default_duration - } -} - -lost_title_memory = { - categories = { negative title } - icon = "title.dds" - description = { - random_valid = { - desc = lost_title_memory_desc - } - } - - second_perspective_description = { - random_valid = { - desc = lost_title_memory_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = lost_title_memory_desc_third_perspective - } - } - - participants = { new_holder } - - duration = { - years = memory_default_duration - } -} - -adopted_a_child = { - categories = { positive family } - icon = "birth.dds" - description = { - random_valid = { - desc = adopted_a_child_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = adopted_a_child_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = adopted_a_child_desc_third_perspective_1 - } - } - - participants = { child } - - duration = { - years = memory_default_duration - } -} - -was_adopted = { - categories = { positive family } - icon = "birth.dds" - description = { - random_valid = { - desc = was_adopted_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = was_adopted_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = was_adopted_desc_third_perspective_1 - } - } - - participants = { parent } - - duration = { - years = memory_default_duration - } -} - -became_acclaimed = { - categories = { positive martial } - icon = "martial.dds" - description = { - random_valid = { - desc = became_acclaimed_desc - } - } - - second_perspective_description = { - random_valid = { - desc = became_acclaimed_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = became_acclaimed_desc_third_perspective - } - } - - participants = { liege } - - duration = { - years = memory_default_duration - } -} - -accolade_created = { - categories = { positive martial } - icon = "martial.dds" - description = { - random_valid = { - desc = accolade_created_desc - } - } - - second_perspective_description = { - random_valid = { - desc = accolade_created_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = accolade_created_desc_third_perspective - } - } - - participants = { liege } - - duration = { - years = memory_default_duration - } -} - -stripped_of_accolade = { - categories = { negative martial } - icon = "martial.dds" - description = { - random_valid = { - desc = stripped_of_accolade_desc - } - } - - second_perspective_description = { - random_valid = { - desc = stripped_of_accolade_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = stripped_of_accolade_desc_third_perspective - } - } - - participants = { liege } - - duration = { - years = memory_default_duration - } -} - -accolade_ranked_up = { - categories = { positive martial } - icon = "martial.dds" - description = { - random_valid = { - desc = accolade_ranked_up_desc - } - } - - second_perspective_description = { - random_valid = { - desc = accolade_ranked_up_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = accolade_ranked_up_desc_third_perspective - } - } - - participants = { liege } - - duration = { - years = memory_default_duration - } -} diff --git a/common/character_memory_types/character_memories_events.txt b/common/character_memory_types/character_memories_events.txt deleted file mode 100644 index 4a958a7c60..0000000000 --- a/common/character_memory_types/character_memories_events.txt +++ /dev/null @@ -1,1346 +0,0 @@ -nice_picnic = { - categories = { positive minor } - icon = "_default.dds" - - description = { - random_valid = { - desc = nice_picnic_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = nice_picnic_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = nice_picnic_desc_third_perspective_1 - } - } - - participants = { picnic_pal } - - duration = { - years = memory_default_duration - } -} - -destroyed_my_toy = { - categories = { negative childhood } - icon = "_default.dds" - description = { - random_valid = { - desc = destroyed_my_toy_desc - } - } - - second_perspective_description = { - random_valid = { - desc = destroyed_my_toy_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = destroyed_my_toy_desc_third_perspective - } - } - - participants = { destroyer } - - duration = { - years = memory_default_duration - } -} - -avenged_my_toy = { - categories = { positive childhood } - icon = "_default.dds" - description = { - random_valid = { - triggered_desc = { - trigger = { - memory_owner = { - NOT = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - } - desc = avenged_my_toy_desc_1 - } - triggered_desc = { - trigger = { - memory_owner = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - desc = avenged_my_toy_desc_2 - } - } - } - - second_perspective_description = { - random_valid = { - triggered_desc = { - trigger = { - memory_owner = { - NOT = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - } - desc = avenged_my_toy_desc_second_perspective_1 - } - triggered_desc = { - trigger = { - memory_owner = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - desc = avenged_my_toy_desc_second_perspective_2 - } - } - } - - third_perspective_description = { - random_valid = { - triggered_desc = { - trigger = { - memory_owner = { - NOT = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - } - desc = avenged_my_toy_desc_third_perspective_1 - } - triggered_desc = { - trigger = { - memory_owner = { - any_killed_character = { - this = root.memory_participant:destroyer - } - } - } - desc = avenged_my_toy_desc_third_perspective_2 - } - } - } - - participants = { destroyer } - - - duration = { - years = memory_default_duration - } -} - -nice_fishing_trip = { - categories = { positive minor } - icon = "_default.dds" - description = { - random_valid = { - desc = nice_fishing_trip_desc_1 - } - } - - second_perspective_description = { - random_valid = { - desc = nice_fishing_trip_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = nice_fishing_trip_desc_third_perspective_1 - } - } - - participants = { fishing_pal } - - duration = { - years = memory_default_duration - } -} - -found_my_clone = { - categories = { positive } - icon = "_default.dds" - description = { - first_valid = { - triggered_desc = { - trigger = { - this.memory_owner = { - any_killed_character = { - this = root.memory_participant:doppelganger - } - } - } - desc = found_my_clone_desc_1 - } - triggered_desc = { - trigger = { - this.memory_participant:doppelganger = { - is_alive = no - death_reason = death_disappearance - } - } - desc = found_my_clone_desc_2 - } - desc = found_my_clone_desc_3 - } - } - - second_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - this.memory_owner = { - any_killed_character = { - this = root.memory_participant:doppelganger - } - } - } - desc = found_my_clone_desc_second_perspective_1 - } - triggered_desc = { - trigger = { - this.memory_participant:doppelganger = { - is_alive = no - death_reason = death_disappearance - } - } - desc = found_my_clone_desc_second_perspective_2 - } - desc = found_my_clone_desc_second_perspective_3 - } - } - - third_perspective_description = { - first_valid = { - triggered_desc = { - trigger = { - this.memory_owner = { - any_killed_character = { - this = root.memory_participant:doppelganger - } - } - } - desc = found_my_clone_desc_third_perspective_1 - } - triggered_desc = { - trigger = { - this.memory_participant:doppelganger = { - is_alive = no - death_reason = death_disappearance - } - } - desc = found_my_clone_desc_third_perspective_2 - } - desc = found_my_clone_desc_third_perspective_3 - } - } - - participants = { doppelganger } - - duration = { - years = memory_default_duration - } -} - -doppelganger_claimed_my_throne = { - categories = { negative war title } - icon = "title.dds" - description = { - first_valid = { - desc = doppelganger_claimed_my_throne_desc - } - } - - second_perspective_description = { - first_valid = { - desc = doppelganger_claimed_my_throne_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = doppelganger_claimed_my_throne_desc_third_perspective - } - } - - participants = { doppelganger } - - duration = { - years = memory_default_duration - } -} - -doppelganger_claimed_my_throne_failed = { - categories = { positive war } - icon = "title.dds" - description = { - first_valid = { - desc = doppelganger_claimed_my_throne_failed_desc - } - } - - second_perspective_description = { - first_valid = { - desc = doppelganger_claimed_my_throne_failed_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = doppelganger_claimed_my_throne_failed_desc_third_perspective - } - } - - participants = { doppelganger } - - duration = { - years = memory_default_duration - } -} - -humiliated_by_rustlers = { - categories = { negative martial } - icon = "martial.dds" - description = { - first_valid = { - desc = humiliated_by_rustlers_desc - } - } - - second_perspective_description = { - first_valid = { - desc = humiliated_by_rustlers_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = humiliated_by_rustlers_desc_third_perspective - } - } - - participants = { sent_rustlers } - - - duration = { - years = memory_default_duration - } -} - -slew_rustlers = { - categories = { positive minor martial } - icon = "battle.dds" - description = { - first_valid = { - desc = slew_rustlers_desc - } - } - - second_perspective_description = { - first_valid = { - desc = slew_rustlers_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = slew_rustlers_desc_third_perspective - } - } - - participants = { sent_rustlers } - - duration = { - years = memory_default_duration - } -} - -rival_caught_me_in_bed_with_their_child = { - categories = { positive relationships private rival } - icon = "rival.dds" - description = { - random_valid = { - desc = rival_caught_me_in_bed_with_their_child_desc - } - } - - second_perspective_description = { - random_valid = { - desc = rival_caught_me_in_bed_with_their_child_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = rival_caught_me_in_bed_with_their_child_desc_third_perspective - } - } - - participants = { rival } - - duration = { - years = memory_default_duration - } -} - -supported_illiterate = { - categories = { minor positive relationships } - icon = "_default.dds" - description = { - first_valid = { - desc = supported_illiterate_desc - } - } - - second_perspective_description = { - first_valid = { - desc = supported_illiterate_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = supported_illiterate_desc_third_perspective - } - } - - participants = { illiterate } - - duration = { - years = memory_default_duration - } -} - -reading_aid = { - categories = { minor positive relationships } - icon = "_default.dds" - description = { - first_valid = { - desc = reading_aid_desc - } - } - - second_perspective_description = { - first_valid = { - desc = reading_aid_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = reading_aid_desc_third_perspective - } - } - - participants = { illiterate } - - duration = { - years = memory_default_duration - } -} - -humiliated_illiterate = { - categories = { positive relationships } - icon = "_default.dds" - description = { - first_valid = { - desc = humiliated_illiterate_desc - } - } - - second_perspective_description = { - first_valid = { - desc = humiliated_illiterate_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = humiliated_illiterate_desc_third_perspective - } - } - - participants = { illiterate } - - duration = { - years = memory_default_duration - } -} - -birthday_party = { - categories = { positive relationships friend } - icon = "friend.dds" - description = { - random_valid = { - desc = birthday_party_desc - } - } - - second_perspective_description = { - random_valid = { - desc = birthday_party_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = birthday_party_desc_third_perspective - } - } - - participants = { friend1 friend2 } - - duration = { - years = memory_default_duration - } -} - -cut_down_tree = { - categories = { positive minor } - icon = "_default.dds" - description = { - random_valid = { - desc = cut_down_tree_desc - } - } - - second_perspective_description = { - random_valid = { - desc = cut_down_tree_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = cut_down_tree_desc_third_perspective - } - } - - participants = { watching_friend } - - duration = { - years = memory_default_duration - } -} - -had_a_threesome_memory = { - categories = { positive relationships private intimate } - icon = "intimate.dds" - description = { - first_valid = { - desc = had_a_threesome_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = had_a_threesome_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = had_a_threesome_memory_desc_third_perspective - } - } - - participants = { partner_1 partner_2 } - - duration = { - years = memory_default_duration - } -} - -picked_up_throne = { - categories = { positive minor intimidation } - icon = "intimidation.dds" - description = { - random_valid = { - desc = picked_up_throne_desc - } - } - - second_perspective_description = { - random_valid = { - desc = picked_up_throne_desc_second_perspective - } - } - - third_perspective_description = { - random_valid = { - desc = picked_up_throne_desc_third_perspective - } - } - - participants = { impressed_friend } - - duration = { - years = memory_default_duration - } -} - -lost_my_addiction_memory = { - categories = { positive relationships } - icon = "_default.dds" - description = { - first_valid = { - desc = lost_my_addiction_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = lost_my_addiction_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = lost_my_addiction_memory_desc_third_perspective - } - } - - participants = { interventioner } - - duration = { - years = memory_default_duration - } -} - -stole_from_my_rival = { - categories = { minor positive relationships rival } - icon = "rival.dds" - description = { - first_valid = { - desc = stole_from_my_rival_desc - } - } - - second_perspective_description = { - first_valid = { - desc = stole_from_my_rival_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = stole_from_my_rival_desc_third_perspective - } - } - - participants = { - enforcer - victim - } - - duration = { - years = memory_default_duration - } -} - -abused_my_peasants = { - categories = { minor negative relationships rival } - icon = "rival.dds" - description = { - first_valid = { - desc = abused_my_peasants_desc - } - } - - second_perspective_description = { - first_valid = { - desc = abused_my_peasants_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = abused_my_peasants_desc_third_perspective - } - } - - participants = { thieving_rival } - - duration = { - years = memory_default_duration - } -} - -deviant_defiled_my_object = { - categories = { negative } - icon = "_default.dds" - description = { - first_valid = { - desc = deviant_defiled_my_object_desc - } - } - - second_perspective_description = { - first_valid = { - desc = deviant_defiled_my_object_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = deviant_defiled_my_object_desc_third_perspective - } - } - - participants = { deviant } - - - duration = { - years = memory_default_duration - } -} - -haunted_by_a_friend_memory = { - categories = { negative relationships death friend } - icon = "friend.dds" - description = { - first_valid = { - desc = haunted_by_a_friend_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = haunted_by_a_friend_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = haunted_by_a_friend_memory_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -haunted_by_a_rival_memory = { - categories = { negative relationships death rival } - icon = "rival.dds" - description = { - first_valid = { - desc = haunted_by_a_rival_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = haunted_by_a_rival_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = haunted_by_a_rival_memory_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -haunted_by_parent_memory = { - categories = { negative relationships death } - icon = "family.dds" - description = { - first_valid = { - desc = haunted_by_parent_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = haunted_by_parent_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = haunted_by_parent_memory_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -chased_by_bog_witch_memory = { - categories = { negative childhood } - icon = "_default.dds" - description = { - first_valid = { - desc = chased_by_bog_witch_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = chased_by_bog_witch_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = chased_by_bog_witch_memory_desc_third_perspective - } - } - - participants = { witch } - - duration = { - years = memory_default_duration - } -} - -met_a_nice_witch_memory = { - categories = { positive childhood } - icon = "_default.dds" - description = { - first_valid = { - desc = met_a_nice_witch_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = met_a_nice_witch_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = met_a_nice_witch_memory_desc_third_perspective - } - } - - participants = { witch } - - duration = { - years = memory_default_duration - } -} - -assaulted_by_a_witch_memory = { - categories = { negative childhood intimidation } - icon = "intimidation.dds" - description = { - first_valid = { - desc = assaulted_by_a_witch_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = assaulted_by_a_witch_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = assaulted_by_a_witch_memory_desc_third_perspective - } - } - - participants = { witch } - - duration = { - years = memory_default_duration - } -} - -found_a_bog_corpse_memory = { - categories = { negative childhood } - icon = "_default.dds" - description = { - first_valid = { - desc = found_a_bog_corpse_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = found_a_bog_corpse_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = found_a_bog_corpse_memory_desc_third_perspective - } - } - - participants = { corpse } - - duration = { - years = memory_default_duration - } -} - -was_shown_execution_memory = { - categories = { negative childhood } - icon = "_default.dds" - description = { - first_valid = { - desc = was_shown_execution_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = was_shown_execution_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = was_shown_execution_memory_desc_third_perspective - } - } - - participants = { victim guardian } - - duration = { - years = memory_default_duration - } -} - -endured_storm = { - categories = { minor negative } - icon = "_default.dds" - description = { - first_valid = { - desc = endured_storm_desc - } - } - - second_perspective_description = { - first_valid = { - desc = endured_storm_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = endured_storm_desc_third_perspective - } - } - - duration = { - years = memory_default_duration - } -} - -friend_despite_rivalry = { - categories = { positive relationships friend } - icon = "friend.dds" - description = { - first_valid = { - desc = friend_despite_rivalry_desc - } - } - - second_perspective_description = { - first_valid = { - desc = friend_despite_rivalry_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = friend_despite_rivalry_desc_third_perspective - } - } - - participants = { - unlikely_friend - rival - } - - duration = { - years = memory_default_duration - } -} - -detestable_family = { - categories = { negative relationships rival } - icon = "rival.dds" - description = { - first_valid = { - desc = detestable_family_desc - } - } - - second_perspective_description = { - first_valid = { - desc = detestable_family_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = detestable_family_desc_third_perspective - } - } - - participants = { - new_rival - old_rival - } - - duration = { - years = memory_default_duration - } -} - -storm_seduction = { - categories = { positive relationships lover intimate private } - icon = "intimate.dds" - description = { - first_valid = { - desc = storm_seduction_desc - } - } - - second_perspective_description = { - first_valid = { - desc = storm_seduction_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = storm_seduction_desc_third_perspective - } - } - - participants = { - storm_lover - } - - duration = { - years = memory_default_duration - } -} - -best_friend_died = { - categories = { negative friend death relationships major best_friend } - icon = "death_negative.dds" - description = { - first_valid = { - desc = best_friend_died_desc - } - } - - second_perspective_description = { - first_valid = { - desc = best_friend_died_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = best_friend_died_desc_third_perspective - } - } - - participants = { dead_relation } - - duration = { - years = memory_default_duration - } -} - -ganged_up_on_three_memory = { - categories = { negative paranoia consort } - icon = "_default.dds" - description = { - first_valid = { - desc = ganged_up_on_three_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = ganged_up_on_three_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = ganged_up_on_three_memory_desc_third_perspective - } - } - - participants = { consort_1 consort_2 consort_3 } - - duration = { - years = memory_default_duration - } -} - -ganged_up_on_four_memory = { - categories = { negative paranoia consort } - icon = "_default.dds" - description = { - first_valid = { - desc = ganged_up_on_four_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = ganged_up_on_four_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = ganged_up_on_four_memory_desc_third_perspective - } - } - - participants = { consort_1 consort_2 consort_3 consort_4 } - - duration = { - years = memory_default_duration - } -} - -childless_soulmate_memory = { - categories = { bittersweet relationships soulmate } - icon = "soulmate.dds" - description = { - first_valid = { - desc = childless_soulmate_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = childless_soulmate_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = childless_soulmate_memory_desc_third_perspective - } - } - - participants = { childless_soulmate } - - duration = { - years = memory_default_duration - } -} - -wedding_night_trinket = { - categories = { positive relationships marriage } - icon = "intimate.dds" - description = { - random_valid = { - desc = wedding_night_trinket_desc - } - } - - second_perspective_description = { - random_valid = { - desc = wedding_night_trinket_desc_second_perspective_1 - } - } - - third_perspective_description = { - random_valid = { - desc = wedding_night_trinket_desc_third_perspective_1 - } - } - - participants = { spouse_1 spouse_2 } - - duration = { - years = memory_default_duration - } -} - -seduced_at_feast_memory = { - categories = { positive family relationships private intimate } - icon = "intimate.dds" - description = { - first_valid = { - desc = seduced_at_feast_desc - } - } - - second_perspective_description = { - first_valid = { - desc = seduced_at_feast_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = seduced_at_feast_desc_third_perspective - } - } - - participants = { lover } - - duration = { - years = memory_default_duration - } -} - -befriended_at_feast_memory = { - categories = { positive family relationships friend } - icon = "friend.dds" - description = { - first_valid = { - desc = befriended_at_feast_desc - } - } - - second_perspective_description = { - first_valid = { - desc = befriended_at_feast_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = befriended_at_feast_desc_third_perspective - } - } - - participants = { lover } - - duration = { - years = memory_default_duration - } -} - -################################################## -# Health Memories - -became_incapable_due_to_age = { - categories = { negative health old_age incapable } - icon = "icon_wounded.dds" - - description = { - random_valid = { desc = became_incapable_due_to_age_desc } - } - - second_perspective_description = { - random_valid = { desc = became_incapable_due_to_age_desc_second_perspective_1 } - } - - third_perspective_description = { - random_valid = { desc = became_incapable_due_to_age_desc_third_perspective_1 } - } - - duration = { - years = memory_default_duration - } -} - -became_incapable_due_to_battle_concussion = { - categories = { negative health war incapable } - icon = "icon_wounded.dds" - - description = { - random_valid = { desc = became_incapable_due_to_battle_concussion_desc } - } - - second_perspective_description = { - random_valid = { desc = became_incapable_due_to_battle_concussion_desc_second_perspective_1 } - } - - third_perspective_description = { - random_valid = { desc = became_incapable_due_to_battle_concussion_desc_third_perspective_1 } - } - - duration = { - years = memory_default_duration - } -} - -became_incapable_generic = { - categories = { negative health } - icon = "icon_wounded.dds" - - description = { - random_valid = { desc = became_incapable_generic_desc } - } - - second_perspective_description = { - random_valid = { desc = became_incapable_generic_desc_second_perspective_1 } - } - - third_perspective_description = { - random_valid = { desc = became_incapable_generic_desc_third_perspective_1 } - } - - duration = { - years = memory_default_duration - } -} - -gave_cultural_gift_memory = { - categories = { positive relationships friend } - icon = "_default.dds" - description = { - first_valid = { - desc = gave_cultural_gift_memory_desc - } - } - - second_perspective_description = { - first_valid = { - desc = gave_cultural_gift_memory_desc_second_perspective - } - } - - third_perspective_description = { - first_valid = { - desc = gave_cultural_gift_memory_desc_third_perspective - } - } - - participants = { gift_receiver } - - duration = { - years = memory_default_duration - } -} diff --git a/common/coat_of_arms/template_lists/colored_emblem_lists.txt b/common/coat_of_arms/template_lists/colored_emblem_lists.txt index 8fc99f5664..acea9b769c 100644 --- a/common/coat_of_arms/template_lists/colored_emblem_lists.txt +++ b/common/coat_of_arms/template_lists/colored_emblem_lists.txt @@ -404,6 +404,7 @@ colored_emblem_texture_lists = { } 100 = "ce_castle.dds" } + #Leonese special_selection = { trigger = { @@ -486,6 +487,12 @@ colored_emblem_texture_lists = { scope:culture = { has_coa_gfx = iranian_group_coa_gfx } } 100 = "ce_lion_passant_sword.dds" + 100 = "ce_simurgh.dds" + 100 = "ce_huma.dds" + 100 = "ce_isfahan.dds" + 100 = "ce_persian_bull.dds" + 100 = "ce_persian_lion.dds" + 100 = "ce_persian_duck.dds" } # Scottish @@ -3611,6 +3618,8 @@ colored_emblem_texture_lists = { 1000 = "ce_tamgha_doted_circle_frame.dds" 5000 = "ce_octogon_frame.dds" 5000 = "ce_polylobe_frame.dds" + 2000 = "ce_sun_frame.dds" + 1000 = "ce_rubh_el_hizb_iranian_frame.dds" } mena_roundel_frame_list = { 1000 = "ce_tamgha_roundel_frame.dds" @@ -3619,6 +3628,7 @@ colored_emblem_texture_lists = { 1000 = "ce_polylobe_plain_frame.dds" 1000 = "ce_polylobe_circle_frame.dds" } + base_islamic_charge_list = { # Centered single charges that fit within the various frames 100 = "ce_mena_sun.dds" @@ -3643,6 +3653,13 @@ colored_emblem_texture_lists = { 100 = "ce_star_ibadi.dds" 100 = "ce_moon_sun.dds" 100 = "ce_crescent_random.dds" + 100 = "ce_rubh_el_hizb_flower.dds" + 100 = "ce_rubh_el_hizb_arch.dds" + 100 = "ce_ali_knot.dds" + 100 = "ce_rubh_el_hizb_knot.dds" + 100 = "ce_rubh_el_hizb_iranian.dds" + + # TODO mamluk heater shield charge # Warcraft @@ -3659,6 +3676,41 @@ colored_emblem_texture_lists = { # } # 100 = "ce_eagle_iberia.dds" # } + + special_selection = { + trigger = { + coa_iranian_trigger = yes + } + 100 = "ce_isfahan.dds" + } + + special_selection = { + trigger = { + coa_iranian_trigger = yes + } + 100 = "ce_huma.dds" + } + + special_selection = { + trigger = { + coa_iranian_trigger = yes + } + 100 = "ce_persian_duck.dds" + } + + special_selection = { + trigger = { + coa_iranian_trigger = yes + } + 100 = "ce_persian_bull.dds" + } + + special_selection = { + trigger = { + coa_iranian_trigger = yes + } + 100 = "ce_persian_lion.dds" + } } mena_base_charges_list = { @@ -3722,6 +3774,8 @@ colored_emblem_texture_lists = { 100 = "ce_mena_chalice_axe_penbox.dds" 100 = "ce_mena_chalice_khanja.dds" 500 = "ce_mena_axe_fess.dds" + 500 = "ce_zulfiqar_and_shield.dds" + 500 = "ce_baglama.dds" } mena_horizontal_addorsed_charges_list = { @@ -3748,6 +3802,7 @@ colored_emblem_texture_lists = { 500 = "ce_barry_undy.dds" 500 = "ce_bars_dancetty_02.dds" 500 = "ce_pily_barry.dds" + 500 = "ce_iranian_floral_pattern.dds" # pales 200 = "ce_mena_pale.dds" 500 = "ce_paly_04.dds" diff --git a/common/combat_phase_events/00_commander_phase_events.txt b/common/combat_phase_events/00_commander_phase_events.txt index 6bdca54e9a..f56c231646 100644 --- a/common/combat_phase_events/00_commander_phase_events.txt +++ b/common/combat_phase_events/00_commander_phase_events.txt @@ -20,7 +20,6 @@ has_dynasty_perk = warfare_legacy_3 } } - modifier = { # Difficulty add = 1000 is_ai = no @@ -64,6 +63,12 @@ commander_wounded = { } scope:combat_side.side_strength > scope:combat_side.enemy_side.side_strength } + modifier = { + factor = 1.1 + faith = { + has_doctrine_parameter = death_is_glory + } + } modifier = { factor = 2 has_trait = brave @@ -170,6 +175,12 @@ commander_maimed = { factor = 0 scope:combat_side.side_strength > scope:combat_side.enemy_side.vastly_outnumbered_combat_side_threshold } + modifier = { + factor = 1.1 + faith = { + has_doctrine_parameter = death_is_glory + } + } modifier = { factor = 2 has_trait = brave @@ -291,6 +302,12 @@ commander_killed = { factor = 0 scope:combat_side.side_strength > scope:combat_side.enemy_side.vastly_outnumbered_combat_side_threshold } + modifier = { + factor = 1.1 + faith = { + has_doctrine_parameter = death_is_glory + } + } modifier = { factor = 2 has_trait = brave diff --git a/common/combat_phase_events/00_knight_phase_events.txt b/common/combat_phase_events/00_knight_phase_events.txt index 38cf2b215c..f3a1f0d695 100644 --- a/common/combat_phase_events/00_knight_phase_events.txt +++ b/common/combat_phase_events/00_knight_phase_events.txt @@ -42,6 +42,7 @@ knight_berserker_attack = { has_dynasty_perk = warfare_legacy_3 } } + modifier = { factor = 2 has_trait = wrathful @@ -484,6 +485,12 @@ knight_wounded = { } scope:combat_side.side_strength > scope:combat_side.enemy_side.side_strength } + modifier = { + factor = 1.05 + culture = { + has_cultural_parameter = knights_slightly_more_prone_to_injury + } + } #House Knight defends family ## Low decrease chance. modifier = { @@ -683,6 +690,12 @@ knight_maimed = { factor = 0 scope:combat_side.side_strength > scope:combat_side.enemy_side.vastly_outnumbered_combat_side_threshold } + modifier = { + factor = 1.05 + culture = { + has_cultural_parameter = knights_slightly_more_prone_to_injury + } + } #House Knight defends family ## Low decrease chance. modifier = { @@ -877,6 +890,12 @@ knight_killed = { factor = 0 scope:combat_side.side_strength > scope:combat_side.enemy_side.vastly_outnumbered_combat_side_threshold } + modifier = { + factor = 1.05 + culture = { + has_cultural_parameter = knights_slightly_more_prone_to_injury + } + } # Accolades. ## Low increase chance. modifier = { diff --git a/common/council_positions/00_council_positions.txt b/common/council_positions/00_council_positions.txt index 3fa8b35a8f..d7ee6733da 100644 --- a/common/council_positions/00_council_positions.txt +++ b/common/council_positions/00_council_positions.txt @@ -207,13 +207,13 @@ councillor_court_chaplain = { skill = learning auto_fill = yes + fill_from_pool = yes + can_fire = { custom_description = { text = "court_chaplain_cant_fire_doctrines" faith = { - NOT = { - has_doctrine = doctrine_clerical_succession_spiritual_fixed_appointment - } + NOT = { has_doctrine_parameter = clerical_appointment_fixed } } } } @@ -231,24 +231,10 @@ councillor_court_chaplain = { faith = { has_doctrine_parameter = clerical_appointment_fixed } + exists = cp:councillor_court_chaplain } inherit = no - fill_from_pool = yes - - councillor_cooldown_days = { - value = 0 - if = { - limit = { - faith = { - NOT = { - has_doctrine_parameter = clerical_appointment_fixed - } - } - } - add = 3650 - } - } # Warcraft name = actual_bishop_title @@ -795,13 +781,18 @@ councillor_spouse = { tooltip = game_concept_spouse_desc valid_position = { - any_spouse = { - OR = { - court_owner = root - AND = { - is_ruler = yes - exists = liege - liege = root + AND = { + NOT = { + has_diarchy_active_parameter = vizier_sits_in_the_council_instead_of_spouse + } + any_spouse = { + OR = { + court_owner = root + AND = { + is_ruler = yes + exists = liege + liege = root + } } } } @@ -836,3 +827,51 @@ councillor_spouse = { click_to_front = yes } } + +councillor_vizier = { + auto_fill = yes + can_fire = yes + can_reassign = yes + + name = councillor_vizier + tooltip = councillor_vizier_desc + + valid_position = { + has_diarchy_active_parameter = vizier_sits_in_the_council_instead_of_spouse + } + + valid_character = { + exists = root.liege_or_court_owner + can_be_councillor_basics_trigger = yes + save_temporary_scope_as = confidant + + liege = { + OR = { + scope:confidant = diarch + any_consort = { + scope:confidant = this + } + } + } + } + + on_get_position = { + set_variable = { + name = councillor_vizier_lifestyle_progress + value = 0 + } + } + + on_lose_position = { + remove_variable = councillor_vizier_lifestyle_progress + } + + on_fired_from_position = { + remove_variable = councillor_vizier_lifestyle_progress + } + + barbershop_data = { + position = { 763.0 261.00 } + click_to_front = yes + } +} diff --git a/common/council_positions/_council_positions.info b/common/council_positions/_council_positions.info index f6e1a68958..65b147cc5e 100644 --- a/common/council_positions/_council_positions.info +++ b/common/council_positions/_council_positions.info @@ -54,6 +54,12 @@ name_of_the_position = { # Which portrait animation should councillors of this type use in the council window portrait_animation = X + + # Council data used in the Barbershop's Council preset. Defines the council character's position and if it should be rendererd in front of other characters. + barbershop_data = { + position = { ... } + click_to_front = yes/no + } } == Related loc == diff --git a/common/council_tasks/00_chancellor_tasks.txt b/common/council_tasks/00_chancellor_tasks.txt index 10a1aeb8bf..d86049b105 100644 --- a/common/council_tasks/00_chancellor_tasks.txt +++ b/common/council_tasks/00_chancellor_tasks.txt @@ -26,7 +26,14 @@ } desc = task_foreign_affairs_effect_desc_family_business_bonus_prestige } - # Opinion tooltip + # Fp3 Consulted House Member tooltip + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_foreign_affairs_effect_desc_consulted_house_bonus_prestige + } + ### Opinion tooltip first_valid = { triggered_desc = { trigger = { liege = { is_independent_ruler = no } } @@ -56,6 +63,13 @@ } desc = task_foreign_affairs_effect_desc_family_business_bonus_opinion } + # Fp3 Consulted House Member tooltip + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_foreign_affairs_effect_desc_consulted_house_bonus_opinion + } desc = { desc = council_task_possible_side_effects @@ -87,9 +101,11 @@ } on_start_task = { - set_variable = { - name = chancellor_foreign_affairs_opinion_value - value = 0 + liege = { + set_variable = { + name = chancellor_foreign_affairs_opinion_value + value = 0 + } } } @@ -97,24 +113,14 @@ remove_variable = chancellor_foreign_affairs_opinion_value } + # Prestige Gain + Modifiers council_owner_modifier = { name = task_foreign_affairs_prestige_modifier monthly_prestige = 1 - scale = chancellor_foreign_affairs_prestige_gain_base - } - - council_owner_modifier = { - name = task_foreign_affairs_prestige_perk_bonus_modifier - monthly_prestige = 1 - scale = chancellor_foreign_affairs_prestige_gain_perk_bonus_scale - } - - council_owner_modifier = { - name = task_foreign_affairs_prestige_dynasty_perk_bonus_modifier - monthly_prestige = 1 - scale = chancellor_foreign_affairs_prestige_gain_erudition_modifier + scale = chancellor_foreign_affairs_prestige_total } + # Opinion Gain + Modifiers council_owner_modifier = { name = task_foreign_affairs_opinion_modifier independent_ruler_opinion = 1 @@ -184,7 +190,34 @@ task_domestic_affairs = { task_progress = task_progress_infinite effect_desc = { - desc = task_domestic_affairs_effect_desc + # Direct Vassal Opinion + desc = task_domestic_affairs_direct_effect_desc + triggered_desc = { + trigger = { + liege = { has_perk = chains_of_loyalty_perk } + } + desc = task_domestic_affairs_chains_of_loyalty_bonus_desc + } + triggered_desc = { + trigger = { + councillor_liege_has_erudition_legacy_5_perk = yes + } + desc = task_domestic_affairs_bureaucrats_bonus_desc + } + triggered_desc = { + trigger = { + councillor_liege_has_family_business_bonus = yes + } + desc = task_domestic_affairs_family_business_bonus_desc + } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_domestic_affairs_consulted_house_bonus_desc + } + # Parochial Vassal Opinion + desc = task_domestic_affairs_parochial_effect_desc triggered_desc = { trigger = { liege = { has_perk = chains_of_loyalty_perk } @@ -203,6 +236,13 @@ task_domestic_affairs = { } desc = task_domestic_affairs_family_business_bonus_desc } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_domestic_affairs_consulted_house_bonus_desc + } + # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { trigger = { @@ -222,6 +262,12 @@ task_domestic_affairs = { } desc = task_domestic_affairs_tyranny_family_business_bonus_desc } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_domestic_affairs_tyranny_consulted_house_bonus_desc + } desc = { desc = council_task_possible_side_effects triggered_desc = { @@ -276,9 +322,11 @@ task_domestic_affairs = { } on_start_task = { - set_variable = { - name = chancellor_domestic_affairs_opinion_value - value = 0 + liege = { + set_variable = { + name = chancellor_domestic_affairs_opinion_value + value = 0 + } } } @@ -293,21 +341,21 @@ task_domestic_affairs = { } council_owner_modifier = { - name = task_domestic_affairs_opinion_moidifier + name = task_domestic_affairs_opinion_modifier direct_vassal_opinion = 1 scale = chancellor_domestic_affairs_opinion_scale } council_owner_modifier = { - name = task_domestic_affairs_parochial_opinion_moidifier + name = task_domestic_affairs_parochial_opinion_modifier parochial_opinion = 1 scale = chancellor_domestic_affairs_opinion_scale } council_owner_modifier = { - name = task_domestic_affairs_opinion_moidifier + name = task_domestic_affairs_opinion_modifier tyranny_loss_mult = 0.01 - scale = chancellor_domestic_affairs_tyranny_base + scale = chancellor_domestic_affairs_tyranny_total } monthly_on_action = task_domestic_affairs_side_effects @@ -535,6 +583,15 @@ task_integrate_title = { desc = FAMILY_BUSINESS_BONUS_VALUE } } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = scope:councillor.chancellor_integrate_title_consulted_house_bonus + desc = CONSULTED_HOUSE_BONUS_VALUE + } + } } monthly_on_action = task_integrate_title_side_effects @@ -573,7 +630,55 @@ task_bestow_royal_favor = { restart_on_finish = yes effect_desc = { - desc = task_bestow_royal_favor_effect_desc + ### Prestige effect + desc = task_bestow_royal_favor_prestige_effect_desc + # Bureaucrats tooltip + triggered_desc = { + trigger = { + councillor_liege_has_erudition_legacy_5_perk = yes + scope:councillor.chancellor_bestow_royal_favor_opinion_gain_erudition_bonus >= 1 + } + desc = task_bestoy_royal_favor_effect_desc_bureaucrats_bonus_prestige + } + # Family Business tooltip + triggered_desc = { + trigger = { + councillor_liege_has_family_business_bonus = yes + scope:councillor.chancellor_bestow_royal_favor_opinion_gain_family_business_bonus >= 1 + } + desc = task_bestoy_royal_favor_effect_desc_family_business_bonus_prestige + } + # Fp3 Consulted House Member tooltip + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + scope:councillor.chancellor_bestow_royal_favor_opinion_gain_consulted_house_bonus >= 1 + } + desc = task_bestoy_royal_favor_effect_desc_consulted_house_bonus_prestige + } + ### Opinion effect + desc = task_bestow_royal_favor_opinion_effect_desc + # Bureaucrats tooltip + triggered_desc = { + trigger = { + councillor_liege_has_erudition_legacy_5_perk = yes + } + desc = task_bestoy_royal_favor_effect_desc_bureaucrats_bonus_opinion + } + # Family Business tooltip + triggered_desc = { + trigger = { + councillor_liege_has_family_business_bonus = yes + } + desc = task_bestoy_royal_favor_effect_desc_family_business_bonus_opinion + } + # Fp3 Consulted House Member tooltip + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_bestoy_royal_favor_effect_desc_consulted_house_bonus_opinion + } desc = { desc = council_task_possible_side_effects triggered_desc = { @@ -678,7 +783,7 @@ task_bestow_royal_favor = { council_owner_modifier = { name = task_bestow_royal_favor_prestige_modifier monthly_prestige = 1 - scale = chancellor_bestow_royal_favor_prestige_gain_base + scale = chancellor_bestow_royal_favor_prestige_total } monthly_on_action = task_bestow_royal_favor_side_effects @@ -798,6 +903,16 @@ task_bestow_royal_favor = { desc = COUNCILLOR_IS_YOUR_NEMESIS } } + #other bonuses/penalties, from FP3 + if = { + limit = { + councillor_liege_has_khvarenah_legacy_perk = yes + } + multiply = { + value = 1.2 + desc = KHVARENAH_DYNASTY_PERK_BONUS_VALUE + } + } } } diff --git a/common/council_tasks/00_court_chaplain_tasks.txt b/common/council_tasks/00_court_chaplain_tasks.txt index 15d699416a..2c0bdff289 100644 --- a/common/council_tasks/00_court_chaplain_tasks.txt +++ b/common/council_tasks/00_court_chaplain_tasks.txt @@ -26,6 +26,12 @@ } desc = task_religious_relations_effect_desc_family_business_bonus_piety } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_religious_relations_effect_desc_consulted_house_bonus_piety + } first_valid = { triggered_desc = { @@ -62,6 +68,12 @@ } desc = task_religious_relations_effect_desc_family_business_bonus_opinion } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_religious_relations_effect_desc_consulted_house_bonus_opinion + } desc = line_break desc = { @@ -88,9 +100,11 @@ } on_start_task = { - set_variable = { - name = court_chaplain_religious_relations_opinion_value - value = 0 + liege = { + set_variable = { + name = court_chaplain_religious_relations_opinion_value + value = 0 + } } } @@ -107,19 +121,7 @@ council_owner_modifier = { name = court_chaplain_religious_relations_modifier monthly_piety = 1 - scale = court_chaplain_religious_relations_modifier - } - - council_owner_modifier = { - name = court_chaplain_religious_relations_perk_bonus_modifier - monthly_piety = 1 - scale = court_chaplain_religious_relations_perk_bonus_modifier - } - - council_owner_modifier = { - name = court_chaplain_religious_relations_erudition_legacy_5_bonus_modifier - monthly_piety = 1 - scale = court_chaplain_religious_relations_erudition_legacy_5_bonus_modifier + scale = court_chaplain_religious_relations_total_piety_gain } council_owner_modifier = { @@ -210,7 +212,7 @@ task_conversion = { } } desc = minority_disapproves_conversion_tooltip - } + } desc = { desc = council_task_possible_side_effects triggered_desc = { @@ -412,7 +414,6 @@ task_conversion = { desc = GAME_RULE_SIGNIFICANTLY_FASTER_REASON } } - if = { limit = { exists = scope:county @@ -467,6 +468,21 @@ task_conversion = { } } } + #trigger_if = { + # limit = { + # AND = { + # has_variable = cannot_be_converted_by_value + # var:cannot_be_converted_by_value = scope:councillor_liege + # } + # } + # custom_tooltip = { + # text = promised_to_not_convert_county + # NOR = { + # has_variable = cannot_be_converted_by_value + # var:cannot_be_converted_by_value = scope:councillor_liege + # } + # } + #} # Unreformed Pagans do not tend to even try conversion of non-unreformed faiths unless zealous trigger_if = { limit = { @@ -635,8 +651,25 @@ task_conversion = { } } + on_start_task_county = { + # Message for vassals + scope:county = { save_scope_as = set_county } + trigger_event = { + id = court_chaplain_task.8000 + days = 2 # To ensure it fires after the halted message + } + } + + on_cancel_task_county = { + # Message for vassals + trigger_event = { + id = court_chaplain_task.8001 + days = 1 # To ensure it does not fire at the same time as the finish message (both cancel and finish are fired on_finish_task_county) + } + } + on_finish_task_county = { - # Warcraft + scope:county.faith = { save_scope_as = old_faith } scope:councillor_liege = { if = { limit = { government_has_flag = government_dark_frenzy_from_conversions } @@ -675,6 +708,8 @@ task_conversion = { start_default_task = yes } } + # Message for vassals + trigger_event = court_chaplain_task.8002 } monthly_on_action = task_convert_side_effects @@ -684,7 +719,9 @@ task_conversion = { if = { #Unless you're a crypto-religionist. limit = { - scope:councillor_liege = { has_variable = false_convert } + scope:councillor_liege = { + any_secret = { secret_type = secret_crypto_religionist } + } } multiply = 0 } @@ -818,6 +855,15 @@ task_fabricate_claim = { desc = FAMILY_BUSINESS_BONUS_VALUE } } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = scope:councillor.court_chaplain_fabricate_claim_consulted_house_bonus + desc = FAMILY_BUSINESS_BONUS_VALUE + } + } # Tradition Bonuses if = { @@ -1105,32 +1151,6 @@ task_fabricate_claim = { } # Agenda impact - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # } - # } - # add = { - # value = 0 - # if = { - # limit = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # has_character_flag = agenda_towards_escalation - # } - # add = 200 - # } - # else_if = { - # limit = { - # any_character_struggle = { - # phase_has_catalyst = catalyst_gain_claim_on_title - # } - # } - # add = -100 - # } - # } - #} + } -} +} diff --git a/common/council_tasks/00_marshal_tasks.txt b/common/council_tasks/00_marshal_tasks.txt deleted file mode 100644 index 72257dffb5..0000000000 --- a/common/council_tasks/00_marshal_tasks.txt +++ /dev/null @@ -1,794 +0,0 @@ -task_organize_levies = { - default_task = yes - position = councillor_marshal - - task_type = task_type_general - task_progress = task_progress_infinite - - effect_desc = { - ### Organized levies - desc = task_organize_levies_effect_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_organize_levies_erudition_bonus - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_organize_levies_family_business_bonus - } - - ### Army Maintenance - desc = { - desc = task_organize_levies_maintenance_effect_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_organize_levies_maintenance_erudition_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_organize_levies_maintenance_family_business_bonus_desc - } - } - - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_active_accolade = { - has_accolade_parameter = accolade_organize_army_bonus - } - } - } - desc = task_train_commanders_acclaimed_knight_levy_captaincy - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_sub_realm_county = { - NOT = { has_county_modifier = marshal_task_organized_service_modifier } - } - } - martial > mediocre_skill_rating - } - desc = task_organize_levies_well_organized_service - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_sub_realm_county = { - NOT = { has_county_modifier = marshal_task_military_presence_modifier } - } - } - martial > mediocre_skill_rating - } - desc = task_organize_levies_increased_military_presence - } - triggered_desc = { - trigger = { - NOT = { - has_character_modifier = marshal_task_levy_desertions_modifier - } - martial < high_skill_rating - } - desc = task_organize_levies_levy_desertion - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_sub_realm_county = { - NOT = { has_county_modifier = marshal_task_unused_farmland_modifier } - } - } - martial < high_skill_rating - } - desc = task_organize_levies_unused_farmland - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_sub_realm_county = { - marshal_task_1003_county_trigger = yes - } - } - martial < high_skill_rating - } - desc = task_organize_levies_insufficient_guards - } - } - } - - council_owner_modifier = { - name = task_organize_levies_modifier - garrison_size = 1 - levy_reinforcement_rate = 1 - scale = { - value = marshal_organize_levies_modifier_value - divide = 100 - } - } - - council_owner_modifier = { - name = task_organize_levies_maintenance_modifier - - army_maintenance_mult = -1 - scale = { - value = marshal_organize_levies_maintenance_total - divide = 100 - } - } - - monthly_on_action = organize_the_levies_marshal_task_side_effects - - ai_will_do = { - value = 1 # Always a good backup - - #AI prefers organizing levies over a low boost from Train Commanders if they are at war or have a negative income - if = { - limit = { - scope:councillor_liege = { - OR = { - monthly_character_income < monthly_character_expenses - is_at_war = yes - } - } - } - add = 8 - } - - # Trying to get out of debt - if = { - limit = { - scope:councillor_liege = { - is_at_war = yes - gold < 0 - ai_rationality > 0 - } - } - add = scope:councillor_liege.ai_rationality - } - - # Trying to avoid debt - if = { - limit = { - scope:councillor_liege = { - is_at_war = yes - monthly_character_income < monthly_character_expenses - gold < 5 - } - } - add = 2000 - } - - # Trying to get the levy numbers bacc after the war - if = { - limit = { - scope:councillor_liege = { - is_at_war = no - current_military_strength < eighty_percent_of_max_military_strength - } - } - add = 1000 - } - } -} - -task_train_commanders = { - position = councillor_marshal - - task_type = task_type_general - task_progress = task_progress_infinite - - effect_desc = { - ### Commander Improvement - desc = task_train_commanders_maa_boost_effect_desc - - desc = task_train_commanders_effect_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_train_commanders_commander_erudition_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_train_commanders_commander_family_business_bonus_desc - } - - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_active_accolade = { - OR = { - has_accolade_parameter = accolade_train_commanders_bonus - has_accolade_parameter = accolade_train_commanders_bonus_high - } - } - } - } - desc = task_train_commanders_acclaimed_knight_drills_hastiludes - } - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_train_commanders_commander_learns_from_commander - } - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_train_commanders_knight_improved - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_train_commanders_commander_wounded - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_train_commanders_commander_maimed - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_train_commanders_commander_killed - } - } - } - - - council_owner_modifier = { - name = task_boost_knights_modifier - - knight_effectiveness_mult = 1 - scale = { - value = marshal_knights_overtime_boost_scale - divide = 100 - } - } - - council_owner_modifier = { - name = task_boost_maa_modifier - - skirmishers_damage_mult = 1 - skirmishers_toughness_mult = 1 - pikemen_damage_mult = 1 - pikemen_toughness_mult = 1 - heavy_infantry_damage_mult = 1 - heavy_infantry_toughness_mult = 1 - - archers_damage_mult = 1 - archers_toughness_mult = 1 - - light_cavalry_damage_mult = 1 - light_cavalry_toughness_mult = 1 - heavy_cavalry_damage_mult = 1 - heavy_cavalry_toughness_mult = 1 - - archer_cavalry_damage_mult = 1 - archer_cavalry_toughness_mult = 1 - camel_cavalry_damage_mult = 1 - camel_cavalry_toughness_mult = 1 - elephant_cavalry_damage_mult = 1 - elephant_cavalry_toughness_mult = 1 - - siege_weapon_damage_mult = 1 - siege_weapon_toughness_mult = 1 - - scale = { - value = marshal_maa_overtime_boost_scale - divide = 100 - } - } - - - on_start_task = { - set_variable = { - name = marshal_overtime_boost - value = 0 - } - } - - on_cancel_task = { - remove_variable = marshal_overtime_boost - } - - monthly_on_action = train_commanders_monthly_on_action - - on_monthly = { - if = { - limit = { - has_variable = marshal_overtime_boost - martial > var:marshal_overtime_boost - } - change_variable = { - name = marshal_overtime_boost - add = 1 - } - } - } - - ai_will_do = { - value = 0 - - #AI does it when they have enough gold - if = { - limit = { - scope:councillor_liege = { - gold > ai_war_chest_desired_gold_value - number_of_maa_regiments >= 1 - } - } - add = martial - } - - #AI keeps doing it once it started except if it will go in debt during a war - if = { - limit = { - is_performing_council_task = task_train_commanders - } - add = martial - } - } -} - -task_increase_control = { - position = councillor_marshal - - task_type = task_type_county - county_target = realm - ai_county_target = domain - task_progress = task_progress_value - task_current_value = scope:councillor_liege.marshal_increase_control_current_progress - task_max_value = 100 # Highest possible county control - highlight_own_realm = yes - restart_on_finish = yes # If it "finishes" by removing a corruption modifier, there'll still be control to regain - - effect_desc = { - desc = task_increase_control_effect_desc - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - scope:councillor_liege = { - any_active_accolade = { - has_accolade_parameter = accolade_increase_control_bonus - } - } - } - desc = task_increase_control_acclaimed_knight_subdues_peasantry - } - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_increase_control_increase_opinion - } - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_increase_control_baron_opinion_increase - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_increase_control_lose_opinion - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_increase_control_lose_control - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_increase_control_baron_opinion_loss - } - } - } - - # TOTAL PROGRESS MUST MATCH THE TOTAL OF THE COUNTY MODIFIERS BELOW - # Add all new progress values to the script value marshal_increase_control_total - # Note that for Increase Control, the County Modifiers apply the actual values, while progress is for player info only - progress = { - value = 0 - add = { - value = marshal_increase_control_base - desc = INCREASE_CONTROL_BASE - } - add = { - value = scope:councillor.marshal_increase_county_control_monthly_change - desc = SCALED_COUNCILLOR_MARTIAL_VALUE - } - # Relation Bonuses/Penalties - if = { # Friend - limit = { - scope:councillor_liege = { - has_relation_friend = scope:councillor - NOT = { has_relation_best_friend = scope:councillor } - } - } - add = { - value = scope:councillor.marshal_increase_control_monthly_increase_friend_bonus - desc = COUNCILLOR_IS_YOUR_FRIEND - } - } - if = { # Best Friend - limit = { - scope:councillor_liege = { - has_relation_best_friend = scope:councillor - } - } - add = { - value = scope:councillor.marshal_increase_control_monthly_increase_best_friend_bonus - desc = COUNCILLOR_IS_YOUR_BEST_FRIEND - } - } - if = { # Rival - limit = { - scope:councillor_liege = { - has_relation_rival = scope:councillor - NOT = { has_relation_nemesis = scope:councillor } - } - } - add = { - value = scope:councillor.marshal_increase_control_monthly_increase_rival_bonus - desc = COUNCILLOR_IS_YOUR_RIVAL - } - } - if = { # Nemesis - limit = { - scope:councillor_liege = { - has_relation_nemesis = scope:councillor - } - } - add = { - value = scope:councillor.marshal_increase_control_monthly_increase_nemesis_bonus - desc = COUNCILLOR_IS_YOUR_NEMESIS - } - } - if = { - limit = { - scope:councillor_liege = { has_perk = strict_organization_perk } - } - add = { - value = scope:councillor.marshal_increase_county_control_perk_bonus_monthly_change - desc = INCREASE_CONTROL_PERK_BONUS_VALUE - } - } - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = scope:councillor.marshal_increase_county_control_erudition_bonus_monthly_change - desc = ERUDITION_DYNASTY_PERK_BONUS_VALUE - } - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = scope:councillor.marshal_increase_county_control_family_business_bonus_monthly_change - desc = FAMILY_BUSINESS_BONUS_VALUE - } - } - if = { - limit = { - scope:councillor = { has_character_modifier = event_bonus_to_county_control } - } - add = { - value = scope:councillor.marshal_increase_county_control_experience_bonus_monthly_change - desc = INCREASE_COUNTY_CONTROL_EXPERIENCE_BONUS_VALUE - } - } - if = { - limit = { exists = scope:county } - multiply = { - value = scope:county.county_control_rate_modifier - desc = MARSHAL_COUNTY_SPEED_MODIFIERS - } - } - if = { - limit = { - exists = scope:county - scope:county = { has_county_modifier = petition_liege_county_control_modifier } - } - add = { - value = scope:councillor.petition_liege_county_control_modifier_value - desc = MARSHAL_INCREASE_CONTROL_LOCAL_COUNTY_MODIFIERS - } - } - } - - full_progress = marshal_increase_control_full_progress - custom_other_loc = MARSHAL_COUNTY_SPEED_OTHER - - potential_county = { - scope:county = { - custom_description = { - text = potential_county_control_task_trigger - OR = { - has_county_corruption_trigger = yes - county_control < full_county_control - } - } - county_control_rate_modifier > 0 - } - } - - county_modifier = { - name = marshal_increase_control_modifier - monthly_county_control_change_add = 1 - scale = marshal_increase_control_total - } - - on_finish_task_county = { - if = { - limit = { - scope:county = { - has_county_corruption_trigger = yes - } - } - scope:county = { - marshal_remove_random_county_corruption_modifier_effect = yes - change_county_control = -25 - } - } - } - - monthly_on_action = task_increase_control_side_effects - - on_monthly_county = { - random = { - chance = scope:councillor.marshal_remove_county_corruption_chance - scope:county = { - marshal_remove_random_county_corruption_modifier_effect = yes - } - } - } - - ai_will_do = { - value = 1000 # Highest prio - if = { # Keep doing Organize levies if you're at war - limit = { - is_performing_council_task = task_organize_levies - scope:councillor_liege = { - is_at_war = yes - } - } - add = -1000 - } - if = { # Stop doing this if Organize levies could help you lose less gold during a war - limit = { - NOT = { - is_performing_council_task = task_organize_levies - } - scope:councillor_liege = { - is_at_war = yes - monthly_character_income < monthly_character_expenses - } - } - add = -1000 - } - } -} - -task_manage_guards = { - position = councillor_marshal - - task_type = task_type_general - task_progress = task_progress_infinite - - effect_desc = { - desc = task_manage_guards_knights_desc - desc = task_manage_guards_scheme_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_manage_guards_erudition_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_manage_guards_family_business_bonus_desc - } - - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_manage_guards_knight_improved - } - triggered_desc = { - trigger = { - martial > mediocre_skill_rating - } - desc = task_manage_guards_scheme_disrupted - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_manage_guards_knight_wounded - } - triggered_desc = { - trigger = { - martial < high_skill_rating - } - desc = task_manage_guards_disorganized - } - } - } - - is_shown = { - has_dlc_feature = royal_court - } - - council_owner_modifier = { - name = task_manage_guards_knight_modifier - knight_effectiveness_mult = 1 - scale = { - value = marshal_knights_overtime_boost_scale - divide = 100 - } - } - council_owner_modifier = { - name = task_manage_guards_scheme_modifier - enemy_hostile_scheme_success_chance_add = -1 - scale = { - value = marshal_scheme_overtime_boost_scale - } - } - - is_valid_showing_failures_only = { - scope:councillor_liege = { - court_grandeur_current_level >= 3 - } - } - - on_start_task = { - set_variable = { - name = marshal_overtime_boost - value = 0 - } - set_variable = { - name = marshal_overtime_decrease - value = 0 - } - } - - on_cancel_task = { - remove_variable = marshal_overtime_boost - remove_variable = marshal_overtime_decrease - } - - monthly_on_action = manage_guards_marshal_task_side_effects - - on_monthly = { - if = { - limit = { - has_variable = marshal_overtime_boost - var:marshal_overtime_boost < marshal_knight_overtime_boost_max - } - change_variable = { - name = marshal_overtime_boost - add = marshal_knight_overtime_boost_monthly_increase - } - } - if = { - limit = { - has_variable = marshal_overtime_decrease - var:marshal_overtime_decrease > marshal_scheme_overtime_boost_max - } - change_variable = { - name = marshal_overtime_decrease - add = marshal_scheme_overtime_boost_monthly_increase - } - } - } - - ai_will_do = { - value = 0 - - #AI is more likely to do it the higher the court grandeur level - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 3 - } - } - add = 1 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 4 - } - } - add = 5 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 5 - } - } - add = 10 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 6 - } - } - add = 15 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 7 - } - } - add = 20 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 8 - } - } - add = 25 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 9 - } - } - add = 30 - } - if = { - limit = { - scope:councillor_liege = { - court_grandeur_current_level = 10 - } - } - add = 35 - } - - #AI keeps doing it once it started - if = { - limit = { - is_performing_council_task = task_manage_guards - } - add = martial - } - } -} diff --git a/common/council_tasks/00_spymaster_tasks.txt b/common/council_tasks/00_spymaster_tasks.txt deleted file mode 100644 index 16a84fd6c9..0000000000 --- a/common/council_tasks/00_spymaster_tasks.txt +++ /dev/null @@ -1,601 +0,0 @@ -task_disrupt_schemes = { - position = councillor_spymaster - default_task = yes - - task_type = task_type_general - task_progress = task_progress_infinite - - effect_desc = { - desc = task_disrupt_schemes_hostile_scheme_resistance_base - triggered_desc = { - trigger = { scope:councillor_liege = { has_perk = court_of_shadows_perk } } - desc = task_disrupt_schemes_hostile_scheme_resistance_perk_bonus - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_disrupt_schemes_hostile_scheme_resistance_legacy_bonus - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_disrupt_schemes_hostile_scheme_resistance_family_business_bonus - } - desc = task_disrupt_schemes_discovery_chance_base - triggered_desc = { - trigger = { scope:councillor_liege = { has_perk = court_of_shadows_perk } } - desc = task_disrupt_schemes_discovery_chance_perk_bonus - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_disrupt_schemes_discovery_chance_legacy_bonus - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_disrupt_schemes_discovery_chance_family_business_bonus - } - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - intrigue > mediocre_skill_rating - } - desc = task_disrupt_schemes_hostile_scheme_disrupted - } - triggered_desc = { - trigger = { - intrigue < high_skill_rating - scope:councillor_liege = { - has_any_secrets = yes - } - } - desc = task_disrupt_schemes_secret_revealed - } - triggered_desc = { - trigger = { - intrigue < high_skill_rating - } - desc = task_disrupt_schemes_courtier_secret_revealed - } - } - } - - council_owner_modifier = { - name = task_disrupt_schemes_modifier - hostile_scheme_resistance_add = 1.0 - scale = scope:councillor.spymaster_disrupt_schemes_modifier_base_scale - } - - council_owner_modifier = { - name = task_disrupt_schemes_court_of_shadows_modifier #NOT USED? - hostile_scheme_resistance_add = 1.0 - scale = scope:councillor.spymaster_disrupt_schemes_court_of_shadows_modifier_scale - } - - council_owner_modifier = { - name = task_disrupt_schemes_erudition_legacy_5_modifier - hostile_scheme_resistance_add = 1.0 - scale = scope:councillor.spymaster_disrupt_schemes_erudition_legacy_5_modifier_scale - } - - council_owner_modifier = { - name = task_disrupt_schemes_erudition_legacy_5_modifier #TO EDIT? - hostile_scheme_resistance_add = 1.0 - scale = scope:councillor.spymaster_disrupt_schemes_family_business_modifier_scale - } - - council_owner_modifier = { - name = task_disrupt_schemes_modifier - scheme_discovery_chance_mult = 1.0 - scale = { value = scope:councillor.spymaster_disrupt_schemes_scheme_discovery_modifier divide = 200 } - } - - council_owner_modifier = { - name = task_disrupt_schemes_court_of_shadows_modifier - scheme_discovery_chance_mult = 1.0 - scale = { value = scope:councillor.spymaster_disrupt_schemes_court_of_shadows_scheme_discovery_modifier_scale divide = 200 } - } - - council_owner_modifier = { - name = task_disrupt_schemes_erudition_legacy_5_modifier #NOT USED? - scheme_discovery_chance_mult = 1.0 - scale = { value = scope:councillor.spymaster_disrupt_schemes_erudition_legacy_5_discovery_modifier_scale divide = 200 } - } - - council_owner_modifier = { - name = task_disrupt_schemes_erudition_legacy_5_modifier #TO EDIT - scheme_discovery_chance_mult = 1.0 - scale = { value = scope:councillor.spymaster_disrupt_schemes_family_business_discovery_modifier_scale divide = 200 } - } - - monthly_on_action = task_disrupt_schemes_side_effects - - ai_will_do = { - value = 1 # Always a good backup - if = { - limit = { - has_trait = paranoid - } - add = 1000 - } - if = { - limit = { - any_targeting_scheme = { - hostile_scheme_trigger = yes - is_scheme_exposed = yes - } - } - add = 1000 - } - if = { # Somewhat rational AI's want to protect themselves from people who might murder them - limit = { - ai_rationality > 0 - OR = { - any_relation = { - type = rival - intrigue >= 12 - ai_honor <= 0 - } - any_sibling = { - ai_honor <= -50 - ai_greed >= 50 - save_temporary_scope_as = sibling - any_heir_title = { - holder = prev - place_in_line_of_succession = { - target = scope:sibling - value <=3 - } - } - } - } - } - add = ai_rationality - } - } -} - -task_support_schemes = { - position = councillor_spymaster - - task_type = task_type_general - task_progress = task_progress_infinite - - effect_desc = { - desc = task_support_schemes_base_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_support_schemes_legacy_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_support_schemes_family_business_bonus_desc - } - triggered_desc = { - trigger = { - exists = scope:councillor_liege - scope:councillor_liege = { - has_royal_court = yes - has_court_type = court_intrigue - court_grandeur_current_level >= 4 - } - } - desc = spymaster_espionage_court_type_bonus_desc - } - desc = task_support_schemes_success_chance_base_desc - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_support_schemes_success_chance_legacy_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_support_schemes_success_chance_family_business_bonus_desc - } - triggered_desc = { - trigger = { - exists = scope:councillor_liege - scope:councillor_liege = { - has_royal_court = yes - has_court_type = court_intrigue - court_grandeur_current_level >= 4 - } - } - desc = spymaster_espionage_success_chance_court_type_bonus_desc - } - desc = { - desc = council_task_possible_side_effects - triggered_desc = { - trigger = { - intrigue > mediocre_skill_rating - } - desc = task_support_schemes_learn_secret - } - triggered_desc = { - trigger = { - intrigue < high_skill_rating - } - desc = task_support_schemes_lose_piety - } - triggered_desc = { - trigger = { - intrigue < high_skill_rating - } - desc = task_support_schemes_lose_prestige - } - triggered_desc = { - trigger = { - intrigue < high_skill_rating - } - desc = task_support_schemes_fail_scheme - } - } - } - - council_owner_modifier = { - name = task_support_schemes_modifier - hostile_scheme_power_add = 1.0 - scale = spymaster_espionage_modifier_final_scale - } - - council_owner_modifier = { - name = task_support_schemes_modifier - owned_hostile_scheme_success_chance_add = 1.0 - scale = spymaster_espionage_success_chance_total - } - - monthly_on_action = task_support_schemes_side_effects - - ai_will_do = { - value = 0 - - scope:councillor_liege = { - every_scheme = { - limit = { - OR = { - scheme_type = murder - scheme_type = abduct - } - } - add = 300 - } - } - } -} - - -task_find_secrets = { - position = councillor_spymaster - - task_type = task_type_court - task_progress = task_progress_percentage - restart_on_finish = yes - - effect_desc = { - desc = task_find_secrets_effect_desc - desc = { - desc = council_task_possible_side_effects - desc = task_find_secrets_opinion_loss - triggered_desc = { - trigger = { - exists = scope:target_character - scope:target_character = { - is_vassal_of = scope:councillor_liege - } - } - desc = task_find_secrets_vassal_intimidation - } - } - } - - progress = { - value = 0 - add = { - value = spymaster_find_secrets_base - desc = SPYMASTER_PROGRESS_BASE - } - add = { - value = scope:councillor.spymaster_find_secrets_monthly_increase - desc = SCALED_COUNCILLOR_INTRIGUE_VALUE - } - # Relation Bonuses/Penalties - if = { - limit = { - exists = scope:councillor_liege - } - if = { # Friend - limit = { - scope:councillor_liege = { - has_relation_friend = scope:councillor - NOT = { has_relation_best_friend = scope:councillor } - } - } - add = { - value = scope:councillor.spymaster_find_secrets_monthly_increase_friend_bonus - desc = COUNCILLOR_IS_YOUR_FRIEND - } - } - if = { # Best Friend - limit = { - scope:councillor_liege = { - has_relation_best_friend = scope:councillor - } - } - add = { - value = scope:councillor.spymaster_find_secrets_monthly_increase_best_friend_bonus - desc = COUNCILLOR_IS_YOUR_BEST_FRIEND - } - } - if = { # Rival - limit = { - scope:councillor_liege = { - has_relation_rival = scope:councillor - NOT = { has_relation_nemesis = scope:councillor } - } - } - add = { - value = scope:councillor.spymaster_find_secrets_monthly_increase_rival_bonus - desc = COUNCILLOR_IS_YOUR_RIVAL - } - } - if = { # Nemesis - limit = { - scope:councillor_liege = { - has_relation_nemesis = scope:councillor - } - } - add = { - value = scope:councillor.spymaster_find_secrets_monthly_increase_nemesis_bonus - desc = COUNCILLOR_IS_YOUR_NEMESIS - } - } - if = { - limit = { - scope:councillor_liege = { has_perk = digging_for_dirt_perk } - } - add = { - value = scope:councillor.spymaster_find_secrets_perk_monthly_increase - desc = ESPIONAGE_PERK_BONUS_VALUE - } - } - } - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = scope:councillor_liege.spymaster_find_secrets_erudition_monthly_increase - desc = ERUDITION_DYNASTY_PERK_BONUS_VALUE - } - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = scope:councillor_liege.spymaster_find_secrets_family_business_monthly_increase - desc = FAMILY_BUSINESS_BONUS_VALUE - } - } - if = { - limit = { - exists = scope:target_character.cp:councillor_spymaster - NOT = { scope:target_character.cp:councillor_spymaster = scope:councillor_liege } - scope:target_character.cp:councillor_spymaster = { - is_performing_council_task = task_disrupt_schemes - } - } - multiply = { - value = scope:target_character.cp:councillor_spymaster.spymaster_find_secrets_disrupt_schemes_modifier_factor - desc = TARGET_SPYMASTER_disrupt_schemes - } - } - if = { - limit = { - exists = scope:target_character - target_is_liege_or_above = scope:target_character - } - multiply = { - value = 0.5 - desc = TARGET_IS_LIEGE_penalty - } - } - if = { - limit = { - exists = scope:target_character - target_is_vassal_or_below = scope:target_character - has_character_modifier = servant_informants_modifier - } - multiply = { - value = 2 - desc = SPYMASTER_FIND_SECRETS_CHARACTER_MODIFIERS - } - } - } - - valid_target_court = { - scope:target_character = { - in_diplomatic_range = scope:councillor_liege - } - scope:target_character = { - highest_held_title_tier >= tier_county - } - } - - potential_target_court = { - scope:target_character = { - is_alive = yes - is_landed = yes - highest_held_title_tier >= tier_county - custom_description = { - text = spymaster_will_not_find_secrets_at_own_court - NOT = { - this = scope:councillor - } - } - } - trigger_if = { - limit = { - scope:councillor_liege = { - is_ai = yes - } - } - scope:councillor_liege = { - NOR = { - has_relation_friend = scope:target_character - has_relation_lover = scope:target_character - is_allied_to = scope:target_character - has_hook = scope:target_character - } - } - OR = { - AND = { - scope:councillor.intrigue >= 12 # Spymaster intrigue - scope:target_character = { - is_vassal_of = scope:councillor_liege - } - } - scope:councillor_liege = { - has_relation_rival = scope:target_character - } - } - } - } - - on_finish_task_court = { - scope:councillor_liege = { - if = { - limit = { - scope:target_character = { - OR = { - spymaster_task_find_secrets_court_has_minor_secrets_trigger = yes - spymaster_task_find_secrets_court_has_major_secrets_trigger = yes - } - } - } - random = { - chance = scope:councillor.spymaster_find_secrets_secret_discovery_chance - save_scope_value_as = { - name = having_find_secrets_event - value = yes - } - trigger_event = { - on_action = task_find_secrets_outcome - } - } - } - if = { - limit = { - has_perk = truth_is_relative_perk - NOT = { exists = scope:having_find_secrets_event } - } - random = { - chance = scope:councillor.spymaster_find_secrets_secret_discovery_chance - save_scope_value_as = { - name = having_find_secrets_event - value = yes - } - trigger_event = spymaster_task.0381 # Fabricate a Hook (if you have Truth is Relative) - } - } - if = { - limit = { - NOT = { exists = scope:having_find_secrets_event } - } - trigger_event = spymaster_task.0399 - } - random = { - chance = 10 - add_character_flag = { - flag = no_ai_find_secrets - years = 3 - } - } - } - } - - monthly_on_action = task_find_secrets_side_effects - - ai_will_do = { - value = 2 - if = { # Greedy AI's like spying on their subjects - limit = { - scope:councillor_liege.ai_greed > 0 - } - add = { - value = scope:councillor_liege.ai_greed - divide = 2 - } - } - if = { # AI's with Golden Obligations really like this - limit = { - scope:councillor_liege = { - has_perk = golden_obligations_perk - } - } - add = 25 - } - if = { # AI's with certain focuses enjoy this - limit = { - scope:councillor_liege = { - OR = { - has_focus = intrigue_skulduggery_focus - has_focus = intrigue_intimidation_focus - has_focus = martial_authority_focus - } - } - } - add = 50 - } - if = { # Honorable AI's dislike spying on their subjects - limit = { - scope:councillor_liege.ai_honor > 0 - } - add = { - value = scope:councillor_liege.ai_honor - multiply = -1 - } - } - if = { # Compassionate AI's dislike spying on their subjects - limit = { - scope:councillor_liege.ai_compassion > 0 - } - add = { - value = scope:councillor_liege.ai_compassion - multiply = -0.5 - } - } - if = { - # Honest or trusting AI's just don't do this at all - limit = { - scope:councillor_liege = { - OR = { - has_trait = honest - has_trait = trusting - } - } - } - multiply = 0 - } - if = { - # Don't do this too often - limit = { - scope:councillor_liege = { has_character_flag = no_ai_find_secrets } - } - multiply = 0 - } - } -} diff --git a/common/council_tasks/00_steward_tasks.txt b/common/council_tasks/00_steward_tasks.txt index 64b15a5aed..6220062b33 100644 --- a/common/council_tasks/00_steward_tasks.txt +++ b/common/council_tasks/00_steward_tasks.txt @@ -23,6 +23,12 @@ } desc = task_collect_taxes_family_business_bonus_desc } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_collect_taxes_consulted_house_bonus_desc + } desc = { desc = council_task_possible_side_effects triggered_desc = { @@ -38,7 +44,7 @@ any_sub_realm_county = { steward_task_county_corruption_county_trigger = yes } - } + } } desc = task_collect_taxes_county_corruption } @@ -55,7 +61,7 @@ ai_will_do = { value = 1 # Always a good backup - + if = { # Very greedy rulers prefer this over increasing Acceptance, in most cases limit = { scope:councillor_liege.ai_greed > 0 @@ -65,7 +71,7 @@ divide = 5 } } - + if = { # Wealth Focused characters like this limit = { @@ -75,7 +81,7 @@ } add = 15 } - + if = { # And those with the Tax Man perk limit = { @@ -234,6 +240,15 @@ task_develop_county = { desc = FAMILY_BUSINESS_BONUS_VALUE } } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = scope:councillor.steward_develop_county_consulted_house_monthly_increase + desc = CONSULTED_HOUSE_BONUS_VALUE + } + } # Relation Bonuses/Penalties if = { # Friend @@ -285,14 +300,14 @@ task_develop_county = { if = { #Tribal penalty limit = { scope:councillor_liege = { - should_apply_tribal_development_penalty_trigger = yes + should_apply_tribal_development_penalty_trigger = yes } } add = { value = scope:councillor.steward_develop_county_tribal_penalty desc = DEVELOP_COUNTY_TRIBAL_PENALTY_VALUE } - } + } if = { # Development reduces the speed. limit = { exists = scope:county @@ -305,7 +320,7 @@ task_develop_county = { desc = STEWARD_CURRENT_DEVELOPMENT_PENALTY } } - + if = { limit = { exists = scope:county } multiply = { @@ -994,6 +1009,7 @@ task_promote_culture = { # has_character_flag = agenda_towards_escalation # any_character_struggle = { # involvement = involved + # is_struggle_type = iberian_struggle # is_struggle_phase = struggle_iberia_phase_hostility # } #} @@ -1069,6 +1085,12 @@ task_accept_culture = { } desc = task_accept_culture_family_business_bonus_desc } + triggered_desc = { + trigger = { + councillor_liege_has_consulted_house_bonus = yes + } + desc = task_accept_culture_consulted_house_bonus_desc + } triggered_desc = { trigger = { exists = scope:county @@ -1611,6 +1633,24 @@ task_convince_dejure = { desc = ERUDITION_DYNASTY_PERK_BONUS_VALUE } } + if = { + limit = { + councillor_liege_has_family_business_bonus = yes + } + add = { + value = steward_convince_dejure_family_business_bonus + desc = FAMILY_BUSINESS_BONUS_VALUE + } + } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = steward_convince_dejure_consulted_house_bonus + desc = CONSULTED_HOUSE_BONUS_VALUE + } + } } #Unlocked at Court Grandeur level 6 diff --git a/common/council_tasks/00_spouse_tasks.txt b/common/council_tasks/00_vizier_tasks.txt similarity index 79% rename from common/council_tasks/00_spouse_tasks.txt rename to common/council_tasks/00_vizier_tasks.txt index 1cf59601a5..dfa4fb08c8 100644 --- a/common/council_tasks/00_spouse_tasks.txt +++ b/common/council_tasks/00_vizier_tasks.txt @@ -1,42 +1,43 @@ -task_spouse_default = { +task_vizier_default = { default_task = yes - position = councillor_spouse + position = councillor_vizier - effect_desc = task_spouse_default_effect_desc + effect_desc = task_vizier_default_effect_desc task_type = task_type_general task_progress = task_progress_infinite council_owner_modifier = { - name = task_spouse_default_diplomacy_modifier + name = task_vizier_default_diplomacy_modifier diplomacy = 1 - scale = spouse_default_task_diplomacy_scale + scale = vizier_default_task_diplomacy_scale } council_owner_modifier = { - name = task_spouse_default_martial_modifier + name = task_vizier_default_martial_modifier martial = 1 - scale = spouse_default_task_martial_scale + scale = vizier_default_task_martial_scale } council_owner_modifier = { - name = task_spouse_default_stewardship_modifier + name = task_vizier_default_stewardship_modifier stewardship = 1 - scale = spouse_default_task_stewardship_scale + scale = vizier_default_task_stewardship_scale } council_owner_modifier = { - name = task_spouse_default_intrigue_modifier + name = task_vizier_default_intrigue_modifier intrigue = 1 - scale = spouse_default_task_intrigue_scale + scale = vizier_default_task_intrigue_scale } council_owner_modifier = { - name = task_spouse_default_learning_modifier + name = task_vizier_default_learning_modifier learning = 1 - scale = spouse_default_task_learning_scale + scale = vizier_default_task_learning_scale } + ###TODO FP3 DESIGN - We should check if we want to keep these monthly_on_action = spouse_councillor_default_on_action ai_will_do = { @@ -44,8 +45,8 @@ } } -task_court_politics = { - position = councillor_spouse +task_vizier_court_politics = { + position = councillor_vizier skill = diplomacy task_type = task_type_general @@ -56,7 +57,7 @@ task_court_politics = { council_owner_modifier = { name = task_court_politics_modifier diplomacy = 1 - scale = spouse_task_court_politics_scale + scale = vizier_task_court_politics_scale } monthly_on_action = court_politics_setup @@ -100,8 +101,8 @@ task_court_politics = { } } -task_chivalry = { - position = councillor_spouse +task_vizier_chivalry = { + position = councillor_vizier skill = martial task_type = task_type_general @@ -112,7 +113,7 @@ task_chivalry = { council_owner_modifier = { name = task_chivalry_modifier martial = 1 - scale = spouse_task_chivalry_scale + scale = vizier_task_chivalry_scale } monthly_on_action = chivalry_setup @@ -156,8 +157,8 @@ task_chivalry = { } } -task_manage_domain = { - position = councillor_spouse +task_vizier_manage_domain = { + position = councillor_vizier skill = stewardship task_type = task_type_general @@ -168,7 +169,7 @@ task_manage_domain = { council_owner_modifier = { name = task_manage_domain_modifier stewardship = 1 - scale = spouse_task_manage_domain_scale + scale = vizier_task_manage_domain_scale } monthly_on_action = manage_domain_setup @@ -212,8 +213,8 @@ task_manage_domain = { } } -task_court_intrigue = { - position = councillor_spouse +task_vizier_court_intrigue = { + position = councillor_vizier skill = intrigue task_type = task_type_general @@ -224,7 +225,7 @@ task_court_intrigue = { council_owner_modifier = { name = task_court_intrigue_modifier intrigue = 1 - scale = spouse_task_court_intrigue_scale + scale = vizier_task_court_intrigue_scale } monthly_on_action = court_intrigue_setup @@ -268,8 +269,8 @@ task_court_intrigue = { } } -task_patronage = { - position = councillor_spouse +task_vizier_patronage = { + position = councillor_vizier skill = learning task_type = task_type_general @@ -280,7 +281,7 @@ task_patronage = { council_owner_modifier = { name = task_patronage_modifier learning = 1 - scale = spouse_task_patronage_scale + scale = vizier_task_patronage_scale } monthly_on_action = patronage_setup diff --git a/common/court_amenities/00_court_amenities.txt b/common/court_amenities/00_court_amenities.txt deleted file mode 100644 index 9a8fccc339..0000000000 --- a/common/court_amenities/00_court_amenities.txt +++ /dev/null @@ -1,854 +0,0 @@ -court_fashion = { - default = court_fashion_default - - court_fashion_default = { - ai_will_do = { - value = 100 - } - } - - court_fashion_acceptable = { - - cost = { - round = no - gold = court_fashion_acceptable_cost - } - owner_modifier = { - monthly_prestige_gain_mult = 0.02 - court_grandeur_baseline_add = 4 - } - courtier_guest_modifier = { - monthly_prestige = 0.2 - } - ai_will_do = { - value = 90 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - has_trait = arrogant - } - add = 2 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_fashion_decent = { - cost = { - round = no - gold = court_fashion_decent_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - monthly_prestige_gain_mult = 0.04 - court_grandeur_baseline_add = 8 - } - courtier_guest_modifier = { - monthly_prestige = 0.4 - } - ai_will_do = { - value = 80 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - has_trait = arrogant - } - add = 2 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - - } - - court_fashion_good = { - cost = { - round = no - gold = court_fashion_good_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - monthly_prestige_gain_mult = 0.06 - court_grandeur_baseline_add = 12 - } - courtier_guest_modifier = { - monthly_prestige = 0.8 - } - ai_will_do = { - value = 70 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - has_trait = arrogant - } - add = 2 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_fashion_fantastic = { - cost = { - round = no - gold = court_fashion_fantastic_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - monthly_prestige_gain_mult= 0.08 - court_grandeur_baseline_add = 16 - } - courtier_guest_modifier = { - monthly_prestige = 1.6 - } - ai_will_do = { - value = 60 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - has_trait = arrogant - } - add = 2 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - #everyone is weighted to be more likely to wear low nobility clothing at higher levels -} - -court_food_quality = { - default = court_food_quality_default - - court_food_quality_default = { - ai_will_do = { - value = 100 - } - - owner_modifier_description = owner_court_food_quality_meager - } - - court_food_quality_modest = { - cost = { - round = no - gold = court_food_quality_modest_cost - } - owner_modifier = { - court_grandeur_baseline_add = 4 - } - - courtier_guest_modifier = { - stress_loss_mult = 0.1 - } - ai_will_do = { - value = 90 - if = { - limit = { - loves_food_trigger = yes - ai_rationality <= high_negative_ai_value - } - add = 10 - } - if = { - limit = { - loves_food_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_food_quality_decent = { - cost = { - round = no - gold = court_food_quality_decent_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 8 - } - - owner_modifier_description = owner_court_food_quality_decent - - courtier_guest_modifier = { - stress_loss_mult = 0.2 - } - ai_will_do = { - value = 80 - if = { - limit = { - loves_food_trigger = yes - ai_rationality <= high_negative_ai_value - } - add = 10 - } - if = { - limit = { - loves_food_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_food_quality_lavish = { - cost = { - round = no - gold = court_food_quality_lavish_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 12 - } - - owner_modifier_description = owner_court_food_quality_lavish - - courtier_guest_modifier = { - stress_loss_mult = 0.3 - } - ai_will_do = { - value = 70 - if = { - limit = { - loves_food_trigger = yes - ai_rationality <= high_negative_ai_value - } - add = 10 - } - if = { - limit = { - loves_food_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_food_quality_exotic = { - cost = { - round = no - gold = court_food_quality_exotic_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 16 - negate_health_penalty_add = 0.2 - } - - owner_modifier_description = owner_court_food_quality_exotic - - courtier_guest_modifier = { - stress_loss_mult = 0.4 - negate_health_penalty_add = 0.2 - } - ai_will_do = { - value = 60 - if = { - limit = { - loves_food_trigger = yes - ai_rationality <= high_negative_ai_value - } - add = 10 - } - if = { - limit = { - loves_food_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } -} - -court_lodging_standards = { - default = court_lodging_standards_default - - court_lodging_standards_default = { - ai_will_do = { - value = 100 - } - } - - court_lodging_standards_small = { - cost = { - round = no - gold = court_lodging_standards_small_cost - } - owner_modifier = { - court_grandeur_baseline_add = 4 - } - owner_modifier_description = owner_court_lodgings_small - - courtier_guest_modifier = { - stress_gain_mult = -0.05 - } - ai_will_do = { - value = 90 - if = { - limit = { - has_personality_introverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - courtier_guest_modifier_description = court_lodgings_small_inspirations - } - - court_lodging_standards_middling = { - cost = { - round = no - gold = court_lodging_standards_middling_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 8 - } - - owner_modifier_description = owner_court_lodgings_middling - - courtier_guest_modifier = { - stress_gain_mult = -0.1 - } - ai_will_do = { - value = 80 - if = { - limit = { - has_personality_introverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - courtier_guest_modifier_description = court_lodgings_middling_inspirations - - } - - court_lodging_standards_spacious = { - cost = { - round = no - gold = court_lodging_standards_spacious_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 12 - } - - owner_modifier_description = owner_court_lodgings_spacious - - courtier_guest_modifier = { - stress_gain_mult = -0.15 - } - ai_will_do = { - value = 70 - if = { - limit = { - has_personality_introverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - courtier_guest_modifier_description = court_lodgings_spacious_inspirations - } - - court_lodging_standards_grand = { - cost = { - round = no - gold = court_lodging_standards_grand_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 16 - } - - owner_modifier_description = owner_court_lodgings_grand - - courtier_guest_modifier = { - stress_gain_mult = -0.2 - } - ai_will_do = { - value = 60 - if = { - limit = { - has_personality_introverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_benevolent_trigger = yes - } - add = 3 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - courtier_guest_modifier_description = court_lodgings_grand_inspirations - - } -} - -court_servants = { - default = court_servants_default - - court_servants_default = { - ai_will_do = { - value = 100 - } - } - #guest recruitment cost handled in the dynamic_values file - court_servants_few = { - cost = { - round = no - gold = court_servants_few_cost - } - owner_modifier = { - court_grandeur_baseline_add = 4 - hostile_scheme_resistance_add = 4 - personal_scheme_power_add = 4 - } - - owner_modifier_description = court_servants_few_guest_recruitment - - courtier_guest_modifier = { - hostile_scheme_resistance_add = 2 - personal_scheme_power_add = 2 - } - ai_will_do = { - value = 90 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - ai_sociability > medium_positive_ai_value - } - add = 2 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_servants_some = { - cost = { - round = no - gold = court_court_servants_some_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 8 - hostile_scheme_resistance_add = 8 - personal_scheme_power_add = 8 - } - - owner_modifier_description = court_servants_some_guest_recruitment - - courtier_guest_modifier = { - hostile_scheme_resistance_add = 4 - personal_scheme_power_add = 4 - } - ai_will_do = { - value = 80 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - ai_sociability > medium_positive_ai_value - } - add = 2 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_servants_many = { - cost = { - round = no - gold = court_court_servants_many_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 12 - hostile_scheme_resistance_add = 12 - personal_scheme_power_add = 12 - } - - owner_modifier_description = court_servants_many_guest_recruitment - - courtier_guest_modifier = { - hostile_scheme_resistance_add = 6 - personal_scheme_power_add = 6 - } - ai_will_do = { - value = 70 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - ai_sociability > medium_positive_ai_value - } - add = 2 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } - - court_servants_endless = { - cost = { - round = no - gold = court_servants_endless_cost - } - can_pick = { - NOT = { - government_has_flag = government_is_tribal - } - } - owner_modifier = { - court_grandeur_baseline_add = 16 - hostile_scheme_resistance_add = 16 - personal_scheme_power_add = 16 - } - - owner_modifier_description = court_servants_endless_guest_recruitment - - courtier_guest_modifier = { - hostile_scheme_resistance_add = 8 - personal_scheme_power_add = 8 - } - ai_will_do = { - value = 60 - if = { - limit = { - has_personality_extroverted_trigger = yes - } - add = 5 - } - if = { - limit = { - has_personality_dominant_trigger = yes - } - add = 3 - } - if = { - limit = { - ai_sociability > medium_positive_ai_value - } - add = 2 - } - if = { # Prefer over fashion - limit = { - ai_rationality > 0 - } - add = 1 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - add = -1000 - } - } - } -} - diff --git a/common/court_amenities/_court_amenities.info b/common/court_amenities/_court_amenities.info deleted file mode 100644 index 76fc216394..0000000000 --- a/common/court_amenities/_court_amenities.info +++ /dev/null @@ -1,120 +0,0 @@ -############################################################## -# Structure -############################################################## - -court_amenities_category_name = { - - ### Brief: default ( string ) - # Optional specification of what counts as the default setting. New rulers - # will by default start with court amenities at this setting for this - # category. If it is not set, it will pick the first defined setting below. - default = court_amenities_setting_name - - ### Brief: key ( string ) - # Defines a court amenity setting within this category. - # - # The order individual settings are defined in here determines the order - # they are displayed in in the UI. I.e. settings defined first are - # displayed to the left, and those defined last are displayed to the right. - court_amenities_setting_name = { - - ### Brief: owner_modifier ( modifiers ) - # Modifier applied to the owner of the court when amenities are at this - # setting. - owner_modifier = { } - - ### Brief: owner_modifier_description ( localization key ) - # Localization key reference to text that should display in combination - # with the modifier effect breakdown when the bonus is not just a - # modifier, but a constant effect. - # - # Example entry in example_l_english.yml: - # EXAMPLE_DESCRIPTION: "More likely to attract skilled guests." - owner_modifier_description = EXAMPLE_DESCRIPTION - - ### Brief: courtier_guest_modifier ( modifiers ) - # Modifier applied to the courtiers and guests when court amenities are - # at this setting. - courtier_guest_modifier = { } - - ### Brief: courtier_guest_modifier_description ( localization key ) - # Localization key reference to text that should display in combination - # with the modifier effect breakdown when the bonus is not just a - # modifier, but a constant effect. - # - # Example entry in example_l_english.yml: - # EXAMPLE_DESCRIPTION: "Higher stress loss from participating in feasts." - courtier_guest_modifier_description = localization_tag - - ### Brief: ai_will_do ( script value int32 ) - # Determines if the AI will select this setting or not. Evaluation is - # done in the RARE_TASK_TICK. - # - # If multiple amenity levels are possible, the AI will enact the one - # with the highest score, with a bias towards the currently active one - # of CURRENT_COURT_AMENITY_SETTING_ADDED_WEIGHT to prevent switching - # back and forth to closely scored options. - # - # The AI tries to get the single-level increase that gives the biggest - # increase in score. This means that you want the scores to gradually - # become smaller, or the AI will go far down one path ignoring all the - # rest. - # - # Supported scopes: - # root ( Character ) - # Owner of the Court applying the settings. - ai_will_do = { ... } - - ### Brief: can_pick ( trigger ) - # Trigger to check if the scoped character can pick this setting. Make - # sure that there are no gaps in tiers here. - # - # Note that these triggers MUST be repeated to higher tiers because the - # AI does not skip levels when adjusting court amenities, it goes level - # by level both up and down. - # - # Supported scopes: - # root ( Character ) - # Owner of the Court applying the settings. - can_pick = { ... } - } - - another_court_amenities_setting_name = {} -} - -############################################################## -# Effects -############################################################## - -# Sets the amenity type to the given value for the scoped character. -# -# Supported scopes: -# root ( Character ) -# Owner of the Court applying the settings. -set_amenity_level = { - type = setting - value = 2 -} - -# Increases the amenity type by given level for the scoped character. -# -# Supported scopes: -# root ( Character ) -# Owner of the Court applying the settings. -add_amenity_level = { - type = setting - value = 2 -} - -############################################################## -# Localization -############################################################## - -The key of the setting or category will be used as its key in localization. - -############################################################## -# Other notable things -############################################################## - -The amenity cooldown is defined by the court_amenity_cooldown_months script -value. diff --git a/common/court_positions/types/00_court_positions.txt b/common/court_positions/types/00_court_positions.txt index b7263be61f..571abc04ae 100644 --- a/common/court_positions/types/00_court_positions.txt +++ b/common/court_positions/types/00_court_positions.txt @@ -28,6 +28,7 @@ # champion_court_position # executioner_court_position # court_artificer_court_position +# master_assassin_court_position # court_cave_hermit_position court_physician_court_position = { @@ -179,6 +180,13 @@ court_physician_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -234,22 +242,22 @@ court_physician_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.20 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.25 } @@ -315,6 +323,8 @@ court_physician_court_position = { } } } + + add = adjust_court_position_score_for_unity } } @@ -416,6 +426,13 @@ cultural_emissary_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -468,23 +485,23 @@ cultural_emissary_court_position = { } scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { different_culture_opinion = 2 monthly_prestige = 0.1 } - aptitude_level_2 = { + poor = { different_culture_opinion = 5 monthly_prestige = 0.2 } - aptitude_level_3 = { + average = { different_culture_opinion = 10 monthly_prestige = 0.4 } - aptitude_level_4 = { + good = { different_culture_opinion = 15 monthly_prestige = 0.7 } - aptitude_level_5 = { + excellent = { different_culture_opinion = 20 monthly_prestige = 1 } @@ -618,6 +635,13 @@ keeper_of_swans_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -675,18 +699,18 @@ keeper_of_swans_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 } } @@ -735,6 +759,16 @@ chief_qadi_court_position = { max = 50 desc = court_position_skill_learning } + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_1 } + } + add = { + value = 10 + desc = court_position_khvarenah_legacy_1 + } + } if = { limit = { has_trait = generous @@ -854,6 +888,13 @@ chief_qadi_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -906,30 +947,32 @@ chief_qadi_court_position = { } base_employer_modifier = { - learning_per_piety_level = 1 } scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_piety_gain_mult = 0.02 } - aptitude_level_2 = { + poor = { monthly_piety_gain_mult = 0.04 } - aptitude_level_3 = { + average = { monthly_piety_gain_mult = 0.06 + stewardship = 1 } - aptitude_level_4 = { + good = { monthly_piety_gain_mult = 0.08 + stewardship = 2 } - aptitude_level_5 = { + excellent = { monthly_piety_gain_mult = 0.1 + stewardship = 3 } } modifier = { monthly_prestige = minor_court_position_prestige_salary - diplomacy = 1 + stewardship = 1 } on_court_position_received = { @@ -1059,6 +1102,13 @@ court_gardener_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -1115,19 +1165,19 @@ court_gardener_court_position = { } scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { character_capital_county_monthly_development_growth_add = 0.1 } - aptitude_level_2 = { + poor = { character_capital_county_monthly_development_growth_add = 0.25 } - aptitude_level_3 = { + average = { character_capital_county_monthly_development_growth_add = 0.4 } - aptitude_level_4 = { + good = { character_capital_county_monthly_development_growth_add = 0.55 } - aptitude_level_5 = { + excellent = { character_capital_county_monthly_development_growth_add = 0.7 } } @@ -1177,6 +1227,16 @@ lady_in_waiting_court_position = { max = 50 desc = court_position_skill_diplomacy } + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_1 } + } + add = { + value = 10 + desc = court_position_khvarenah_legacy_1 + } + } if = { limit = { has_trait = gregarious @@ -1245,6 +1305,13 @@ lady_in_waiting_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -1300,23 +1367,23 @@ lady_in_waiting_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { stress_loss_mult = 0.10 hostile_scheme_resistance_add = 1 } - aptitude_level_2 = { + poor = { stress_loss_mult = 0.15 hostile_scheme_resistance_add = 2 } - aptitude_level_3 = { + average = { stress_loss_mult = 0.15 hostile_scheme_resistance_add = 5 } - aptitude_level_4 = { + good = { stress_loss_mult = 0.15 hostile_scheme_resistance_add = 7 } - aptitude_level_5 = { + excellent = { stress_loss_mult = 0.20 hostile_scheme_resistance_add = 10 } @@ -1488,6 +1555,13 @@ antiquarian_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -1541,19 +1615,19 @@ antiquarian_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { artifact_decay_reduction_mult = -0.07 } - aptitude_level_2 = { + poor = { artifact_decay_reduction_mult = -0.11 } - aptitude_level_3 = { + average = { artifact_decay_reduction_mult = -0.17 } - aptitude_level_4 = { + good = { artifact_decay_reduction_mult = -0.25 } - aptitude_level_5 = { + excellent = { artifact_decay_reduction_mult = -0.35 } } @@ -2060,32 +2134,39 @@ travel_leader_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.01 supply_limit_mult = 0.02 movement_speed = 0.01 } - aptitude_level_2 = { + poor = { monthly_court_grandeur_change_mult = 0.02 supply_limit_mult = 0.04 movement_speed = 0.02 } - aptitude_level_3 = { + average = { monthly_court_grandeur_change_mult = 0.03 supply_limit_mult = 0.06 movement_speed = 0.03 } - aptitude_level_4 = { + good = { monthly_court_grandeur_change_mult = 0.04 supply_limit_mult = 0.08 movement_speed = 0.04 } - aptitude_level_5 = { + excellent = { monthly_court_grandeur_change_mult = 0.05 supply_limit_mult = 0.1 movement_speed = 0.05 @@ -2298,6 +2379,13 @@ wet_nurse_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -2351,19 +2439,19 @@ wet_nurse_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_2 = { + poor = { monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_3 = { + average = { monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_4 = { + good = { monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { monthly_court_grandeur_change_mult = 0.20 } } @@ -2654,6 +2742,13 @@ court_tutor_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -2707,19 +2802,19 @@ court_tutor_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { learn_language_scheme_power_add = 4 } - aptitude_level_2 = { + poor = { learn_language_scheme_power_add = 8 } - aptitude_level_3 = { + average = { learn_language_scheme_power_add = 12 } - aptitude_level_4 = { + good = { learn_language_scheme_power_add = 16 } - aptitude_level_5 = { + excellent = { learn_language_scheme_power_add = 20 } } @@ -2906,6 +3001,13 @@ food_taster_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -2961,22 +3063,22 @@ food_taster_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { court_grandeur_baseline_add = 1 } - aptitude_level_2 = { + poor = { enemy_hostile_scheme_success_chance_add = -2 court_grandeur_baseline_add = 1 } - aptitude_level_3 = { + average = { enemy_hostile_scheme_success_chance_add = -4 court_grandeur_baseline_add = 2 } - aptitude_level_4 = { + good = { enemy_hostile_scheme_success_chance_add = -6 court_grandeur_baseline_add = 2 } - aptitude_level_5 = { + excellent = { enemy_hostile_scheme_success_chance_add = -10 court_grandeur_baseline_add = 3 } @@ -3087,6 +3189,13 @@ master_of_horse_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -3140,26 +3249,26 @@ master_of_horse_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.05 knight_effectiveness_mult = 0.01 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.5 knight_effectiveness_mult = 0.02 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.10 knight_effectiveness_mult = 0.03 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 knight_effectiveness_mult = 0.05 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.20 knight_effectiveness_mult = 0.08 @@ -3318,6 +3427,13 @@ master_of_hunt_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -3373,22 +3489,22 @@ master_of_hunt_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.20 } @@ -3448,6 +3564,16 @@ royal_architect_court_position = { max = 50 desc = court_position_skill_stewardship } + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_1 } + } + add = { + value = 10 + desc = court_position_khvarenah_legacy_1 + } + } if = { limit = { has_trait = architect @@ -3512,6 +3638,13 @@ royal_architect_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -3581,19 +3714,19 @@ royal_architect_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { build_speed = -0.05 } - aptitude_level_2 = { + poor = { build_speed = -0.1 } - aptitude_level_3 = { + average = { build_speed = -0.15 } - aptitude_level_4 = { + good = { build_speed = -0.2 } - aptitude_level_5 = { + excellent = { build_speed = -0.3 } } @@ -3751,6 +3884,13 @@ high_almoner_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -3808,21 +3948,21 @@ high_almoner_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_piety_gain_mult = 0.05 } - aptitude_level_2 = { + poor = { monthly_piety_gain_mult = 0.1 } - aptitude_level_3 = { + average = { monthly_piety_gain_mult = 0.15 monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_4 = { + good = { monthly_piety_gain_mult = 0.15 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { monthly_piety_gain_mult = 0.2 monthly_court_grandeur_change_mult = 0.2 } @@ -3945,6 +4085,13 @@ seneschal_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -3998,19 +4145,19 @@ seneschal_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_county_control_change_add = 0.1 } - aptitude_level_2 = { + poor = { monthly_county_control_change_add = 0.1 } - aptitude_level_3 = { + average = { monthly_county_control_change_add = 0.2 } - aptitude_level_4 = { + good = { monthly_county_control_change_add = 0.2 } - aptitude_level_5 = { + excellent = { monthly_county_control_change_add = 0.3 } } @@ -4160,6 +4307,13 @@ cupbearer_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -4215,21 +4369,21 @@ cupbearer_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.05 } - aptitude_level_2 = { + poor = { monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 } @@ -4359,6 +4513,13 @@ chief_eunuch_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -4414,30 +4575,30 @@ chief_eunuch_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.05 hostile_scheme_resistance_mult = 0.02 hostile_scheme_power_mult = 0.02 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.05 hostile_scheme_resistance_mult = 0.04 hostile_scheme_power_mult = 0.04 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.10 hostile_scheme_resistance_mult = 0.08 hostile_scheme_power_mult = 0.08 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.10 hostile_scheme_resistance_mult = 0.16 hostile_scheme_power_mult = 0.16 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 hostile_scheme_resistance_mult = 0.32 @@ -4580,6 +4741,13 @@ court_jester_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -4650,22 +4818,22 @@ court_jester_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.1 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.20 } @@ -4828,6 +4996,13 @@ court_poet_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -4881,22 +5056,22 @@ court_poet_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { court_grandeur_baseline_add = 1 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.05 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 3 monthly_court_grandeur_change_mult = 0.20 } @@ -5066,6 +5241,13 @@ court_musician_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -5119,22 +5301,22 @@ court_musician_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { court_grandeur_baseline_add = 1 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_court_grandeur_change_mult = 0.05 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.10 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_court_grandeur_change_mult = 0.15 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 3 monthly_court_grandeur_change_mult = 0.20 } @@ -5328,6 +5510,13 @@ bodyguard_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -5619,6 +5808,13 @@ champion_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -5672,22 +5868,22 @@ champion_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { dread_decay_mult = -0.05 } - aptitude_level_2 = { + poor = { dread_decay_mult = -0.1 } - aptitude_level_3 = { - monthly_prestige = 0.1 + average = { + monthly_prestige = 0.05 dread_decay_mult = -0.15 } - aptitude_level_4 = { - monthly_prestige = 0.2 + good = { + monthly_prestige = 0.1 dread_decay_mult = -0.20 } - aptitude_level_5 = { - monthly_prestige = 0.4 + excellent = { + monthly_prestige = 0.2 dread_decay_mult = -0.25 } } @@ -5858,6 +6054,13 @@ executioner_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -5911,23 +6114,23 @@ executioner_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { dread_gain_mult = 0.05 dread_decay_mult = -0.05 } - aptitude_level_2 = { + poor = { dread_gain_mult = 0.1 dread_decay_mult = -0.1 } - aptitude_level_3 = { + average = { dread_gain_mult = 0.15 dread_decay_mult = -0.15 } - aptitude_level_4 = { + good = { dread_gain_mult = 0.20 dread_decay_mult = -0.20 } - aptitude_level_5 = { + excellent = { dread_gain_mult = 0.25 dread_decay_mult = -0.25 } @@ -6008,7 +6211,7 @@ court_artificer_court_position = { value = 1 add = { value = prowess - desc = court_position_skill_prowess + desc = court_position_skill_intrigue } add = { value = diplomacy @@ -6108,6 +6311,13 @@ court_artificer_court_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -6161,19 +6371,19 @@ court_artificer_court_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { court_grandeur_baseline_add = 0 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 } } @@ -6348,6 +6558,13 @@ court_cave_hermit_position = { } multiply = 0 } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } } } @@ -6417,22 +6634,22 @@ court_cave_hermit_position = { # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) scaling_employer_modifiers = { - aptitude_level_1 = { + terrible = { court_grandeur_baseline_add = 0 } - aptitude_level_2 = { + poor = { court_grandeur_baseline_add = 1 monthly_prestige = 0.1 } - aptitude_level_3 = { + average = { court_grandeur_baseline_add = 1 monthly_prestige = 0.25 } - aptitude_level_4 = { + good = { court_grandeur_baseline_add = 2 monthly_prestige = 0.5 } - aptitude_level_5 = { + excellent = { court_grandeur_baseline_add = 2 monthly_prestige = 1 } @@ -6491,3 +6708,660 @@ court_cave_hermit_position = { add = court_position_debt_considerations_value } } + +####FP3 Additions#### +master_assassin_court_position = { + max_available_positions = 1 + category = court_position_category_special + minimum_rank = county + + + opinion = { + value = regular_court_position_opinion + } + + # How high the aptitude has to be to reach the 5 different modifier levels + aptitude_level_breakpoints = { 20 40 60 80 } + + # How good is this character in this position? root scope is the holder of the court position + aptitude = { + value = 1 + add = { + value = intrigue + multiply = 1.25 + max = 50 + desc = court_position_skill_intrigue + } + add = { + value = prowess + multiply = 2 + max = 50 + desc = court_position_skill_prowess + } + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_1 } + } + add = { + value = 10 + desc = court_position_khvarenah_legacy_1 + } + } + if = { + limit = { + has_trait = lifestyle_blademaster + has_trait_xp = { + trait = lifestyle_blademaster + value >= 100 + } + } + add = { + value = 15 + desc = court_position_blademaster_3_trait + } + } + else_if = { + limit = { + has_trait = lifestyle_blademaster + has_trait_xp = { + trait = lifestyle_blademaster + value >= 50 + } + } + add = { + value = 10 + desc = court_position_blademaster_2_trait + } + } + else_if = { + limit = { + has_trait = lifestyle_blademaster + } + add = { + value = 5 + desc = court_position_blademaster_1_trait + } + } + if = { + limit = { + has_trait = deceitful + } + add = { + value = 10 + desc = court_position_deceitful_trait + } + } + if = { + limit = { + has_trait = murderer + } + add = { + value = 20 + desc = court_position_murderer_trait + } + } + if = { + limit = { + has_trait = order_member + } + add = { + value = 25 + desc = court_position_order_member_trait + } + } + if = { + limit = { + has_trait = faith_warrior + } + add = { + value = 25 + desc = court_position_faith_warrior_trait + } + } + if = { + limit = { + has_trait = zealous + } + add = { + value = 25 + desc = court_position_zealous_trait + } + } + if = { + limit = { + has_trait = brave + } + add = { + value = 25 + desc = court_position_brave_trait + } + } + if = { + limit = { + has_trait = compassionate + } + add = { + value = -50 + desc = court_position_compassionate_trait + } + } + if = { + limit = { + has_trait = just + } + add = { + value = -20 + desc = court_position_just_trait + } + } + if = { + limit = { + has_trait = honest + } + add = { + value = -20 + desc = court_position_honest_trait + } + } + + add = court_position_aptitude_family_business_value + add = court_position_aptitude_high_penalty_value + } + + + is_shown = { + faith = { + has_doctrine = tenet_fp3_fedayeen + } + } + + valid_position = { + faith = { + has_doctrine = tenet_fp3_fedayeen + } + } + + is_shown_character = { + scope:employee = { + is_courtier_of = scope:liege + } + } + + valid_character = { + scope:employee = { + has_no_particular_noble_roots_trigger = yes + custom_tooltip = { + text = IS_NOT_THE_SPOUSE_OF_CHARACTER_COURT_POSITION + NOT = { is_spouse_of = scope:liege } + } + is_imprisoned = no + is_landed = no #You can't be a public figure and a master assassin + faith = { + has_doctrine = tenet_fp3_fedayeen + NOR = { + has_doctrine = tenet_pacifism + has_doctrine = tenet_dharmic_pacifism + } + } + trigger_if = { + limit = { + scope:liege.faith = { + has_doctrine = doctrine_gender_male_dominated + } + } + is_male = yes + } + trigger_if = { + limit = { + scope:liege.faith = { + has_doctrine = doctrine_gender_female_dominated + } + } + is_female = yes + } + trigger_if = { + limit = { NOT = { has_court_position = master_assassin_court_position } } + court_position_does_not_already_have_a_job_trigger = yes # This positions is considered a job, and cannot be held at the same tims as another similar position + } + } + } + + + revoke_cost = { + prestige = { + value = major_court_position_prestige_revoke_cost + + # Set to 0 with Dynasty Perk Inner Circle + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 } + + employs_court_position = master_assassin_court_position + any_court_position_holder = { + type = master_assassin_court_position + exists = dynasty + house = prev.house + } + } + multiply = 0 + } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } + } + } + + salary = { + round = no + gold = { + value = medium_court_position_salary + # Set to 0 with Dynasty Perk Inner Circle + if = { + limit = { + scope:liege = { + exists = dynasty + dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 } + + employs_court_position = master_assassin_court_position + any_court_position_holder = { + type = master_assassin_court_position + exists = dynasty + house = prev.house + } + } + } + multiply = { + value = 0.0 + desc = inner_circle_salary_mod + format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" + } + } + } + } + + # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) + scaling_employer_modifiers = { + terrible = { + hostile_scheme_power_mult = 0.04 + enemy_hostile_scheme_success_chance_add = -2 + } + poor = { + hostile_scheme_power_mult = 0.08 + enemy_hostile_scheme_success_chance_add = -4 + } + average = { + hostile_scheme_power_mult = 0.12 + enemy_hostile_scheme_success_chance_add = -6 + } + good = { + hostile_scheme_power_mult = 0.16 + enemy_hostile_scheme_success_chance_add = -8 + } + excellent = { + hostile_scheme_power_mult = 0.2 + enemy_hostile_scheme_success_chance_add = -10 + } + } + + modifier = { + monthly_prestige = minor_court_position_prestige_cost + } + + on_court_position_received = { + basic_gained_court_position_effect = yes + } + on_court_position_revoked = { + basic_revoked_court_position_effect = yes + scope:employee = { + # Moves to pool after 1 day + # Moving them directly here would invalidate the court position too early + trigger_event = { + id = courtier_guest_management.0999 + days = 1 + } + } + } + on_court_position_invalidated = { + basic_invalidated_court_position_effect = yes + } + # Scripted value to determine whether an AI will hire/fire a position or not. Hires over 0, fires under -50. Look in _court_positions.info for more extensive documentation! + candidate_score = { + value = 50 + add = scope:base_value + add = court_position_candidate_score_base_value + add = court_position_candidate_aptitude_value + scope:liege = { + # More likely to hire one if you have high dread + if = { + limit = { + dread > medium_dread + } + add = 25 + } + # More likely if you have dread-traits + if = { + limit = { + OR = { + has_trait = sadistic + has_trait = callous + has_trait = arbitrary + } + } + add = 25 + } + # More likely if you are a zealous jihadist + if = { + limit = { + has_trait = zealous + } + add = 25 + } + } + add = court_position_debt_considerations_value + } +} + +court_scholar_court_position = { + max_available_positions = 1 + category = court_position_category_royal + minimum_rank = kingdom + + opinion = { + value = ceremonial_court_position_opinion + } + + # How high the aptitude has to be to reach the 5 different modifier levels + aptitude_level_breakpoints = { 20 40 60 80 } + + # How good is this character in this position? root scope is the holder of the court position + aptitude = { + value = 0 + add = { + value = learning + multiply = 4 + desc = court_position_skill_learning + max = 65 + } + if = { + limit = { + scope:liege.dynasty ?= { has_dynasty_perk = fp3_khvarenah_legacy_1 } + } + add = { + value = 10 + desc = court_position_khvarenah_legacy_1 + } + } + if = { + limit = { has_trait = theologian } + add = { + value = 15 + desc = court_position_theologian_trait + } + } + if = { + limit = { has_trait = scholar } + add = { + value = 15 + desc = court_position_scholar_trait + } + } + if = { + limit = { + has_trait = lifestyle_physician + has_trait_xp = { + trait = lifestyle_physician + value >= 100 + } + } + add = { + value = 15 + desc = court_position_physician_3_trait + } + } + else_if = { + limit = { + has_trait = lifestyle_physician + has_trait_xp = { + trait = lifestyle_physician + value >= 50 + } + } + add = { + value = 10 + desc = court_position_physician_2_trait + } + } + else_if = { + limit = { has_trait = lifestyle_physician } + add = { + value = 5 + desc = court_position_physician_1_trait + } + } + if = { + limit = { + has_trait = intellect_good_3 + } + add = { + value = 20 + desc = court_position_intellect_good_3_trait + } + } + else_if = { + limit = { + has_trait = intellect_good_2 + } + add = { + value = 15 + desc = court_position_intellect_good_2_trait + } + } + else_if = { + limit = { + has_trait = intellect_good_1 + } + add = { + value = 10 + desc = court_position_intellect_good_1_trait + } + } + else_if = { + limit = { + has_trait = shrewd + } + add = { + value = 10 + desc = court_position_shrewd_trait + } + } + if = { + limit = { + scope:liege.culture ?= { + has_innovation = fp3_innovation_mural_sextant + } + } + add = { + value = 10 + desc = court_position_innovation_mural_sextant + } + } + add = court_position_aptitude_family_business_value + add = court_position_aptitude_low_penalty_value + } + + is_shown = { + has_fp3_dlc_trigger = yes + culture = { has_cultural_parameter = can_appoint_court_scholar } + } + + # Only Kingdoms+ can attract prominent enough scholars + valid_position = { + highest_held_title_tier >= tier_kingdom + } + + valid_character = { + scope:employee = { + is_courtier_of = scope:liege #A requirement for inspirations + OR = { + is_imprisoned = no + is_imprisoned_by = scope:liege + } + is_ai = yes + trigger_if = { + limit = { NOT = { has_court_position = court_scholar_court_position } } + court_position_does_not_already_have_a_job_trigger = yes # This positions is considered a job, and cannot be held at the same tims as another similar position + } + } + } + + revoke_cost = { + prestige = { + value = major_court_position_prestige_revoke_cost + + # Set to 0 with Dynasty Perk Inner Circle + if = { + limit = { + exists = dynasty + dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 } + + employs_court_position = court_tutor_court_position + any_court_position_holder = { + type = court_tutor_court_position + exists = dynasty + house = prev.house + } + } + multiply = 0 + } + if = { + limit = { + exists = this + is_ai = yes + } + multiply = 0 + } + } + } + + salary = { + round = no + gold = { + value = medium_court_position_salary + # Set to 0 with Dynasty Perk Inner Circle + if = { + limit = { + scope:liege = { + exists = dynasty + dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 } + + employs_court_position = court_scholar_court_position + any_court_position_holder = { + type = court_scholar_court_position + exists = dynasty + house = prev.house + } + } + } + multiply = { + value = 0.0 + desc = inner_circle_salary_mod + format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" + } + } + } + } + + # These modifiers are employed based on what level the aptitude reaches (levels are defined as breakpoints) + scaling_employer_modifiers = { + terrible = { + cultural_head_fascination_mult = 0.02 + monthly_court_grandeur_change_mult = 0.05 + } + poor = { + cultural_head_fascination_mult = 0.04 + monthly_court_grandeur_change_mult = 0.05 + } + average = { + learning = 1 + cultural_head_fascination_mult = 0.06 + monthly_court_grandeur_change_mult = 0.10 + } + good = { + learning = 2 + cultural_head_fascination_mult = 0.08 + monthly_court_grandeur_change_mult = 0.10 + } + excellent = { + learning = 3 + cultural_head_fascination_mult = 0.10 + monthly_court_grandeur_change_mult = 0.15 + } + } + + # custom_employer_modifier_description = court_scholar_employer_custom_effect_description + + base_employer_modifier = { + } + + modifier = { + monthly_prestige = medium_court_position_prestige_salary + learning = 2 + } + + on_court_position_received = { + basic_gained_court_position_effect = yes + } + on_court_position_revoked = { + basic_revoked_court_position_effect = yes + } + on_court_position_invalidated = { + basic_invalidated_court_position_effect = yes + } + + # Scripted value to determine whether an AI will hire/fire a position or not. Hires over 0, fires under -50. Look in _court_positions.info for more extensive documentation! + candidate_score = { + value = 50 + add = scope:base_value + add = court_position_candidate_score_base_value + add = court_position_candidate_aptitude_value + scope:liege = { + if = { + limit = { has_trait = scholar } + add = 25 + } + if = { + limit = { has_education_learning_trigger = yes } + add = 50 + } + if = { + limit = { + has_lifestyle = learning_lifestyle + } + add = 100 + } + } + if = { + limit = { + exists = scope:firing_court_position + } + add = 100 + scope:employee = { + # Does the liege have a better candidate that they should be hiring instead? + if = { + limit = { + scope:highest_available_aptitude > scope:employee_aptitude + } + add = -75 + } + } + } + add = court_position_debt_considerations_value + } +} + diff --git a/common/court_positions/types/_court_positions.info b/common/court_positions/types/_court_positions.info index 0168f67001..14d269d3fe 100644 --- a/common/court_positions/types/_court_positions.info +++ b/common/court_positions/types/_court_positions.info @@ -133,15 +133,12 @@ court_position = { # employee's aptitude level increases. Can define 0-5 scaling modifiers. # If less than 5 are defined, the highest will be picked as aptitude level # increases. - # - # ERRORS: - # Will error if naming convention and indices aren't followed. scaling_employer_modifiers = { - aptitude_level_1 = { ... } - aptitude_level_2 = { ... } - aptitude_level_3 = { ... } - aptitude_level_4 = { ... } - aptitude_level_5 = { ... } + terrible = { ... } + poor = { ... } + average = { ... } + good = { ... } + excellent = { ... } } ### Brief: custom_employer_modifier_description diff --git a/common/culture/cultures/wc_southern.txt b/common/culture/cultures/wc_southern.txt index b5789863d8..5529561d96 100644 --- a/common/culture/cultures/wc_southern.txt +++ b/common/culture/cultures/wc_southern.txt @@ -17,9 +17,9 @@ name_list = name_list_pirate_culture coa_gfx = { pirate_coa_gfx tirassian_coa_gfx west_african_group_coa_gfx } #pirate_coa_gfx for localization and remove error in error.log - building_gfx = { african_building_gfx mena_building_gfx } - clothing_gfx = { african_clothing_gfx creature_human_gfx } - unit_gfx = { sub_sahran_unit_gfx } + building_gfx = { african_building_gfx mena_building_gfx } + clothing_gfx = { turkic_clothing_gfx african_clothing_gfx creature_human_gfx } + unit_gfx = { iranian_unit_gfx } ethnicities = { 10 = arab @@ -48,9 +48,9 @@ wastewander = { name_list = name_list_wastewander coa_gfx = { wastewander_coa_gfx berber_group_coa_gfx } - building_gfx = { berber_group_building_gfx mena_building_gfx } - clothing_gfx = { dde_abbasid_clothing_gfx creature_human_gfx mena_clothing_gfx } - unit_gfx = { mena_unit_gfx } + building_gfx = { iranian_building_gfx mena_building_gfx } + clothing_gfx = { dde_abbasid_clothing_gfx iranian_clothing_gfx creature_human_gfx mena_clothing_gfx } + unit_gfx = { mena_unit_gfx } ethnicities = { 1 = arab diff --git a/common/culture/innovations/00_early_medieval_innovations.txt b/common/culture/innovations/00_early_medieval_innovations.txt index 04b05adbb7..350a66887b 100644 --- a/common/culture/innovations/00_early_medieval_innovations.txt +++ b/common/culture/innovations/00_early_medieval_innovations.txt @@ -125,9 +125,6 @@ innovation_hereditary_rule = { icon = @majesty_02 unlock_law = partition_succession_law - character_modifier = { - monthly_prestige_gain_mult = 0.05 - } flag = global_regular flag = early_medieval_era_regular @@ -193,7 +190,7 @@ innovation_chronicle_writing = { culture_era = culture_era_early_medieval icon = @administration_3 - unlock_casus_belli = individual_duchy_de_jure_cb + custom = multiple_claim_wars custom = cb_discount_prestige_10 custom = more_zealot @@ -222,6 +219,10 @@ innovation_baliffs = { county_modifier = { building_slot_add = 1 } + + character_modifier = { + tax_slot_add = 1 + } custom = more_glory_hounds flag = global_regular diff --git a/common/culture/innovations/00_fp3_innovations.txt b/common/culture/innovations/00_fp3_innovations.txt new file mode 100644 index 0000000000..70c1c9aa0a --- /dev/null +++ b/common/culture/innovations/00_fp3_innovations.txt @@ -0,0 +1,66 @@ +#### 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/00_high_medieval_innovations.txt b/common/culture/innovations/00_high_medieval_innovations.txt index 272ee7a82a..e3fd134844 100644 --- a/common/culture/innovations/00_high_medieval_innovations.txt +++ b/common/culture/innovations/00_high_medieval_innovations.txt @@ -127,9 +127,6 @@ innovation_heraldry = { unlock_law = high_partition_succession_law unlock_law = single_heir_dynasty_house - character_modifier = { - monthly_prestige_gain_mult = 0.05 - } custom = more_courtly flag = global_regular @@ -156,8 +153,10 @@ innovation_divine_right = { group = culture_group_civic culture_era = culture_era_high_medieval icon = @majesty_03 - - custom = multiple_claim_wars + + unlock_casus_belli = de_jure_cb + + custom = multiple_claim_wars_others custom = unlock_palatinate_contract diff --git a/common/culture/innovations/00_late_medieval_innovations.txt b/common/culture/innovations/00_late_medieval_innovations.txt index 7fce175398..3989b2ba6d 100644 --- a/common/culture/innovations/00_late_medieval_innovations.txt +++ b/common/culture/innovations/00_late_medieval_innovations.txt @@ -161,8 +161,9 @@ innovation_rightful_ownership = { culture_era = culture_era_late_medieval icon = @leadership_1 - unlock_casus_belli = de_jure_cb - custom = multiple_claim_wars_others + character_modifier = { + title_creation_cost_mult = -0.2 + } custom = cb_discount_prestige_10 custom = more_glory_hounds } @@ -173,7 +174,7 @@ innovation_ermine_cloaks = { icon = @majesty_03 character_modifier = { - monthly_prestige_gain_mult = 0.1 + vassal_limit = 20 } flag = global_regular @@ -187,6 +188,7 @@ innovation_court_officials = { character_modifier = { domain_limit = 1 + tax_slot_add = 1 } custom = more_courtly diff --git a/common/culture/innovations/00_tribal_innovations.txt b/common/culture/innovations/00_tribal_innovations.txt index 0f7e40ff35..6469540e2d 100644 --- a/common/culture/innovations/00_tribal_innovations.txt +++ b/common/culture/innovations/00_tribal_innovations.txt @@ -180,6 +180,7 @@ innovation_casus_belli = { icon = @administration_1 unlock_casus_belli = individual_county_de_jure_cb + unlock_casus_belli = individual_duchy_de_jure_cb flag = global_regular flag = tribal_era_regular diff --git a/common/culture/innovations/_culture_innovations.info b/common/culture/innovations/_culture_innovations.info index c11faad0f3..70ee2fc20a 100644 --- a/common/culture/innovations/_culture_innovations.info +++ b/common/culture/innovations/_culture_innovations.info @@ -14,7 +14,7 @@ name_of_culture_innovation = { # Key to the name flag = flag_name # Optional flag, relevant for the has_all_innovations trigger. Can list any number of flags for each innovation. unlock_building = key # key of a building that can be unlocked. There can be more than one. This is only to show on the tooltip, it has to be maulually blocked on the object itself. - unlock_decision_ = key # key of a decicion that can be unlocked. There can be more than one. This is only to show on the tooltip, it has to be maulually blocked on the object itself. + unlock_decision = key # key of a decicion that can be unlocked. There can be more than one. This is only to show on the tooltip, it has to be maulually blocked on the object itself. unlock_casus_belli = key # key of a casus belli that can be unlocked. There can be more than one. This is only to show on the tooltip, it has to be maulually blocked on the object itself. unlock_maa = key # key of a regiment that can be unlocked. There can be more than one. Actually does unlock the MaA. unlock_law = key # key of a law that can be unlocked. There can be more than one. This is only to show on the tooltip, it has to be maulually blocked on the object itself. diff --git a/common/culture/name_equivalency/00_names.txt b/common/culture/name_equivalency/00_names.txt index af944308f0..5d735f4b4a 100644 --- a/common/culture/name_equivalency/00_names.txt +++ b/common/culture/name_equivalency/00_names.txt @@ -1313,7 +1313,7 @@ ubaldo_male = { Baldo Baldu Balduccio Ubaldo } udaya_male = { Udaya Utaiya } uffe_male = { Uffe Offa } uhtred_male = { Uhtred UhtrE_d } -ulf_male = { Guelfo Ulf Ulfo Ulfr Ulv Wulf Wulff Welf U_lfr } +ulf_male = { Guelfo Guelph Ulf Ulfo Ulfr Ulv Wulf Wulff Welf U_lfr } ulfhild_female = { Ulfhild Wulfhild Wulfhilde U_lfhildr } ulrich_male = { Odalrico Olderico OldR_ich Olrico Udalrich Udalrico Uldarico Ulric Ulrich } ulvhilde_female = { Ulvhilde Ulfhildr } diff --git a/common/culture/traditions/00_realm_traditions.txt b/common/culture/traditions/00_realm_traditions.txt index 5660f66dc9..1346af233c 100644 --- a/common/culture/traditions/00_realm_traditions.txt +++ b/common/culture/traditions/00_realm_traditions.txt @@ -126,6 +126,7 @@ tradition_legalistic = { vassal_limit = 30 monthly_prestige_gain_per_dread_mult = -0.01 tyranny_gain_mult = 0.25 + tax_slot_add = 1 } cost = { @@ -504,7 +505,7 @@ tradition_gardening = { layers = { 0 = steward 1 = mediterranean - 4 = tools.dds + 4 = garden_architects.dds } parameters = { @@ -2072,6 +2073,9 @@ tradition_staunch_traditionalists = { has_dlc_feature = hybridize_culture } can_pick = { + NOT = { + has_cultural_tradition = tradition_fp3_fierce_independence + } } parameters = { @@ -2517,6 +2521,10 @@ tradition_dryland_dwellers = { } } } + custom_tooltip = { #FP3 addition + text = cannot_have_tradition_irrigation_experts + NOT = { culture_tradition:tradition_fp3_irrigation_experts = { is_in_list = traits } } + } } parameters = { @@ -3105,7 +3113,10 @@ tradition_city_keepers = { can_pick = { scope:character = { - government_has_flag = government_is_feudal + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan #Update for FP3 + } } custom_tooltip = { text = cannot_have_tradition_castle_keepers diff --git a/common/culture/traditions/00_regional_traditions.txt b/common/culture/traditions/00_regional_traditions.txt index 79ac58a644..34ac211ba2 100644 --- a/common/culture/traditions/00_regional_traditions.txt +++ b/common/culture/traditions/00_regional_traditions.txt @@ -450,15 +450,12 @@ tradition_things = { ai_will_do = { value = 100 - - # Warcraft - No Witenagemot - #if = { - # limit = { - # any_in_list = { list = traits this = flag:tradition_the_witenagemot } - # } - # multiply = 0 - #} - # End of Warcraft + if = { + limit = { + culture_tradition:tradition_fp3_jirga = { is_in_list = traits } + } + multiply = 0 + } } } diff --git a/common/culture/traditions/00_ritual_traditions.txt b/common/culture/traditions/00_ritual_traditions.txt index 84ee0d5b8b..90ba8059de 100644 --- a/common/culture/traditions/00_ritual_traditions.txt +++ b/common/culture/traditions/00_ritual_traditions.txt @@ -1095,13 +1095,6 @@ tradition_sacred_hunts = { 4 = hunter.dds } - is_shown = { - # Warcraft - # We have Ritual Hunt tenet very similar to this - always = no - # End of Warcraft - } - can_pick = { culture_not_pacifistic_trigger = yes custom_tooltip = { diff --git a/common/culture/traditions/00_societal_traditions.txt b/common/culture/traditions/00_societal_traditions.txt index 7c140afd1d..afe25ead43 100644 --- a/common/culture/traditions/00_societal_traditions.txt +++ b/common/culture/traditions/00_societal_traditions.txt @@ -1228,6 +1228,14 @@ tradition_poetry = { 4 = quill.dds } + is_shown = { + NOT = { has_cultural_tradition = tradition_fp3_enlightened_magnates } + #NAND = { + # has_fp3_dlc_trigger = yes + # has_cultural_pillar = heritage_iranian + #} + } + can_pick = { custom_tooltip = { text = cannot_have_tradition_fp1_northern_stories @@ -1778,6 +1786,10 @@ tradition_philosopher_culture = { 1 = indian 4 = philosopher.dds } + + is_shown = { + NOT = { has_cultural_tradition = tradition_fp3_beacon_of_learning } + } can_pick = { custom_description = { @@ -1793,6 +1805,7 @@ tradition_philosopher_culture = { pensive_trait_more_common = yes rowdy_trait_less_common = yes innovation_from_learning_traits = yes + can_appoint_court_scholar = yes } character_modifier = { monthly_learning_lifestyle_xp_gain_mult = 0.2 diff --git a/common/culture/traditions/03_fp3_traditions.txt b/common/culture/traditions/03_fp3_traditions.txt new file mode 100644 index 0000000000..6a60e7bc10 --- /dev/null +++ b/common/culture/traditions/03_fp3_traditions.txt @@ -0,0 +1,780 @@ +########################### +# FP3 CULTURAL TRADITIONS +########################### + +####################### +# Central Asian Specific +####################### + +tradition_fp3_frontier_warriors = { + category = regional + + layers = { + 0 = martial + 1 = mena + 4 = dismounted_warrior.dds + } + + is_shown = { + # DLC check. + has_fp3_dlc_trigger = yes + + # Any culture present in the given area can pick this + any_culture_county = { + any_county_province = { + OR = { + geographical_region = world_eastern_kingdoms_lordaeron + geographical_region = world_eastern_kingdoms_quelthalas + } + } + } + } + + can_pick = { + culture_not_pacifistic_trigger = yes + # Must have a significant cultural presence in the general Turanian area, i.e. the "frontier" + custom_tooltip = { + text = culture_on_eastern_frontier_desc + any_culture_county = { + percent >= 0.2 + any_county_province = { + OR = { + geographical_region = world_eastern_kingdoms_lordaeron + geographical_region = world_eastern_kingdoms_quelthalas + } + } + } + } + custom_tooltip = { + text = tradition_fp3_frontier_warriors_trigger_tooltip + scope:character = { + OR = { + has_culture = culture:blood_elf + has_faith = faith:scarlet_light + } + } + } + } + + parameters = { + unlock_maa_tarkhan = yes + faith_warrior_traits_more_valued = yes + } + province_modifier = { + hostile_raid_time = 0.5 + } + character_modifier = { + mercenary_hire_cost_mult = -0.10 + movement_speed = 0.05 + tolerance_advantage_mod = 5 + raid_speed = 0.3 + } + + cost = { + prestige = { + # Base cost. + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + # Ethos requirement. + if = { + limit = { + NOR = { + culture_pillar:ethos_bellicose = { is_in_list = traits } + culture_pillar:ethos_stoic = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_bellicose_or_stoic_desc + } + } + # Gotta be a steppe-heavy culture not to get a surcharge. + if = { + limit = { + NOT = { + any_culture_county = { + percent >= 0.4 + any_county_province = { + OR = { + terrain = forest + terrain = farmlands + } + } + } + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = plain_or_farmlands_percentage_desc + } + } + #Turko-Mongol-Iranians get it cheaper! + if = { + limit = { + NOR = { + has_cultural_pillar = heritage_arathi + has_cultural_pillar = heritage_highborne + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = not_of_arathi_highborne_heritage_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 0 + if = { + limit = { + scope:character = { + OR = { + has_culture = culture:blood_elf + has_faith = faith:scarlet_light + } + } + } + add = 100 + } + } +} + +####################### +# Persian Specific +####################### + +tradition_fp3_irrigation_experts = { + category = realm + + layers = { + 0 = steward + 1 = mena + 4 = water_technology.dds + } + + is_shown = { + # DLC check. + has_fp3_dlc_trigger = yes + #has_cultural_pillar = heritage_iranian + NOT = { has_cultural_tradition = tradition_dryland_dwellers } + } + + can_pick = { + custom_description = { + text = culture_in_dryland_desc + any_culture_county = { + any_county_province = { + OR = { + terrain = drylands + terrain = desert + terrain = desert_mountains + } + } + } + } + # Shouldn't be combined with the following traditions: + custom_tooltip = { + text = cannot_have_tradition_dryland_dwellers + NOT = { culture_tradition:tradition_dryland_dwellers = { is_in_list = traits } } #this is another approach to drylands dwelling + } + } + + parameters = { + innovative_traits_more_valued = yes + unlocks_qanat_building = yes + plantations_building_bonuses = yes + drylands_hunt_success_chance = yes + } + character_modifier = { + negate_health_penalty_add = 0.1 + desert_travel_danger = desert_medium_danger_reduction + drylands_travel_danger = drylands_medium_danger_reduction + desert_mountains_travel_danger = desert_mountains_medium_danger_reduction + } + county_modifier = { + desert_development_growth_factor = 0.35 + drylands_development_growth_factor = 0.15 + } + province_modifier = { + desert_construction_gold_cost = -0.1 + drylands_construction_gold_cost = -0.1 + desert_holding_construction_gold_cost = -0.1 + drylands_holding_construction_gold_cost = -0.1 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_courtly = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_egalitarian = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_communal_egalitarian_or_courtly_desc + } + } + if = { + limit = { + NOT = { + any_culture_county = { + percent >= 0.3 + any_county_province = { + OR = { + terrain = drylands + terrain = desert + } + } + } + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = dry_percentage_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 100 + if = { + limit = { + NOT = { #if the realm isn't very dry, the AI won't pick this + scope:character = { + any_sub_realm_county = { + percent >= 0.4 + culture = scope:character.culture + any_county_province = { + OR = { + terrain = drylands + terrain = desert + } + } + } + } + } + } + multiply = 0 + } + } +} + +tradition_fp3_beacon_of_learning = { # Offshoot of tradition_philosopher_culture + category = societal + + layers = { + 0 = learning + 1 = mena + 4 = beacon_of_learning.dds + } + + is_shown = { + has_fp3_dlc_trigger = yes + #has_cultural_pillar = heritage_iranian + NOT = { has_cultural_tradition = tradition_philosopher_culture } # Replaces Philosopher Culture + } + + can_pick = { + custom_description = { + text = culture_not_bellicose + NOT = { + culture_pillar:ethos_bellicose = { is_in_list = traits } + } + } + NOT = { has_cultural_tradition = tradition_warrior_culture } + NOT = { has_cultural_tradition = tradition_philosopher_culture } + } + can_pick_for_hybridization = { + custom_tooltip = { + text = no_warrior_culture + NOT = { # Only blocks polygamous to avoid duplicate warnings, but is blocked by concubines + culture_tradition:tradition_warrior_culture = { is_in_list = traits } + } + } + custom_tooltip = { + text = no_philosopher_culture + NOT = { # Only blocks polygamous to avoid duplicate warnings, but is blocked by concubines + culture_tradition:tradition_philosopher_culture = { is_in_list = traits } + } + } + } + + parameters = { + pensive_trait_more_common = yes + rowdy_trait_less_common = yes + innovation_from_learning_traits = yes + can_appoint_court_scholar = yes + guardian_education_better_outcomes = yes + } + + character_modifier = { + monthly_learning_lifestyle_xp_gain_mult = 0.2 + learning_per_piety_level = 1 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_courtly = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_spiritual = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_courtly_communal_or_spiritual_desc + } + } + if = { + limit = { + trigger_if = { + limit = { + scope:character = { + is_ai = no + } + } + NOT = { + any_ruler = { + count >= 5 + culture = prev + primary_title.tier >= tier_county + has_trait = scholar + } + } + } + trigger_else = { + always = no + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = rulers_with_scholar_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 33 + if = { + limit = { + NOR = { + culture_pillar:ethos_courtly = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_spiritual = { is_in_list = traits } + } + } + multiply = 0 + } + } +} + +# Replaces Refined Poetry +tradition_fp3_enlightened_magnates = { + category = societal + + layers = { + 0 = diplo + 1 = mena + 4 = jirga.dds + } + + is_shown = { + has_fp3_dlc_trigger = yes + #has_cultural_pillar = heritage_iranian + NOT = { has_cultural_tradition = tradition_poetry } + } + + parameters = { + poet_trait_gives_bonuses = yes + poet_trait_more_common = yes + characters_are_better_court_poets = yes + characters_are_better_tax_collector = yes + unlock_tax_obligation_deqhan = yes + } + + character_modifier = { + clan_tax_slot_add = 1 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_courtly = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_spiritual = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_courtly_communal_or_spiritual_desc + } + } + if = { + limit = { + trigger_if = { + limit = { + scope:character = { + is_ai = no + } + } + NOT = { + any_ruler = { + count >= 3 + culture = prev + primary_title.tier >= tier_county + has_trait = poet + } + } + } + trigger_else = { + always = no + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = rulers_with_poet_desc + } + } + + if = { + limit = { + scope:character = { + has_variable = tradition_poetry_travel_discount + } + + } + + add = { + value = tradition_travel_discount + desc = tradition_travel_discount_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 26 + if = { + limit = { # AI should avoid stacking traditions for courtly court positions + culture_tradition:tradition_music_theory = { is_in_list = traits } + } + multiply = 0.25 + } + } +} + +####################### +# Afghanistan/Baluchistan Specific +####################### + +tradition_fp3_jirga = { + category = regional + + layers = { + 0 = learning + 1 = indian + 4 = jirga.dds + } + + is_shown = { + # DLC check. + has_fp3_dlc_trigger = yes + #OR = { + # has_cultural_pillar = heritage_iranian + # has_cultural_pillar = heritage_indo_aryan + #} + } + + can_pick = { + scope:character = { + government_has_flag = government_is_tribal #This tradition is really a holdover from tribal culture, and though the Afghanis might have it despite having changed government forms, others cannot pick it now. + } + } + + parameters = { + tribal_elective_enabled = yes + just_trait_gives_bonuses = yes + pardoning_gives_prestige = yes + } + character_modifier = { + owned_personal_scheme_success_chance_add = 10 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_stoic = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_stoic_or_communal_desc + } + } + if = { + limit = { + NOT = { + scope:character = { + any_sub_realm_county = { + county_opinion < 0 + } + } + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = counties_with_low_county_opinion_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 100 + if = { + limit = { + #OR = { + culture_tradition:tradition_things = { is_in_list = traits } + #culture_tradition:tradition_the_witenagemot = { is_in_list = traits } + #} + } + multiply = 0 + } + } +} + +tradition_fp3_pragmatic_creed = { + category = regional + + layers = { + 0 = diplo + 1 = mena + 4 = pragmatic_creed.dds + } + + is_shown = { + # DLC check. + has_fp3_dlc_trigger = yes + #has_cultural_pillar = heritage_iranian + } + + can_pick = { + culture_not_pacifistic_trigger = yes + custom_description = { + text = culture_in_mountains_desc + any_culture_county = { + any_county_province = { + OR = { + terrain = mountains + terrain = desert_mountains + } + } + } + } + } + + parameters = { + #unlock_maa_zupin_warrior = yes + diligent_trait_more_common = yes + pragmatic_traits_county_opinion_modifiers = yes + commanders_likelier_to_gain_commander_traits = yes + } + character_modifier = { + skirmishers_toughness_mult = 0.15 + skirmishers_maintenance_mult = -0.2 + heavy_cavalry_maintenance_mult = 0.15 + light_cavalry_maintenance_mult = 0.15 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + culture_pillar:ethos_courtly = { is_in_list = traits } + culture_pillar:ethos_bureaucratic = { is_in_list = traits } + culture_pillar:ethos_spiritual = { is_in_list = traits } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_bureaucratic_courtly_or_spiritual_desc + } + } + # Gotta be a mountain-heavy culture not to get a surcharge. + if = { + limit = { + NOT = { + any_culture_county = { + percent >= 0.3 + any_county_province = { + OR = { + terrain = mountains + terrain = desert_mountains + } + } + } + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = mountain_percentage_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 33 + if = { + limit = { + OR = { # Don't pick this if the culture have Light Cavalry or Heavy Cavalry MaAs + culture_has_heavy_cavalry_maa = yes + culture_has_light_cavalry_maa = yes + } + } + multiply = 0 + } + } +} + +####################### +# Kurdish Specific +####################### + +tradition_fp3_fierce_independence = { + category = regional + + layers = { + 0 = martial + 1 = mena + 4 = fierce_independence.dds + } + + is_shown = { + has_fp3_dlc_trigger = yes + has_cultural_pillar = heritage_dwarven + } + + can_pick = { + NOT = { + has_cultural_tradition = tradition_staunch_traditionalists + } + } + + parameters = { + unlock_maa_tawashi = yes + harder_to_hybridize = yes + harder_to_convert_county_culture = yes + } + + character_modifier = { + controlled_province_advantage = 5 + same_culture_opinion = 5 + opinion_of_liege = -10 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + NOR = { + culture_pillar:ethos_bellicose = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + culture_pillar:ethos_stoic = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_bellicose_stoic_or_communal_desc + } + } + if = { + limit = { + scope:character = { + any_sub_realm_county = { + NOT = { + culture = scope:character.culture + } + } + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = has_other_cultures_in_realm_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 100 + if = { + limit = { + NOR = { + culture_pillar:ethos_stoic = { is_in_list = traits } + culture_pillar:ethos_communal = { is_in_list = traits } + } + } + multiply = 0.5 + } + } +} diff --git a/common/customizable_localization/00_DE_regional_custom_localization.txt b/common/customizable_localization/00_DE_regional_custom_localization.txt deleted file mode 100644 index 88afce59ac..0000000000 --- a/common/customizable_localization/00_DE_regional_custom_localization.txt +++ /dev/null @@ -1,38 +0,0 @@ -############################################ -## Scripted Localization for German Loc ## -### BY Kai Bagehorn ### -############################################ - -DE_Im_InDer_ResidenceBuilding = { # im Herrenhaus, im Tempel, in der Burg - type = character - log_loc_errors = no - - text = { - trigger = { - has_government = republic_government - } - localization_key = CustomLoc_DE_Im_ResidenceBuilding - } - - text = { - trigger = { - OR = { - has_government = theocracy_government - is_theocratic_lessee = yes - } - } - localization_key = CustomLoc_DE_Im_ResidenceBuilding - } - - text = { - trigger = { - NOR = { - has_government = republic_government - has_government = theocracy_government - is_theocratic_lessee = yes - } - } - localization_key = CustomLoc_DE_InDer_ResidenceBuilding - fallback = yes - } -} diff --git a/common/customizable_localization/00_DE_signature_weapon_custom_localization.txt b/common/customizable_localization/00_DE_signature_weapon_custom_localization.txt deleted file mode 100644 index 7c723407e0..0000000000 --- a/common/customizable_localization/00_DE_signature_weapon_custom_localization.txt +++ /dev/null @@ -1,3052 +0,0 @@ -############################################ -## Scripted Localization for German Loc ## -### BY Kai Bagehorn ### -############################################ - -DE_1_SignatureWeaponCritical = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponCritical = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponCritical = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_4_SignatureWeaponCritical = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_2_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_3_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_4_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_5_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_6_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_6_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_7_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_7_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_8_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_8_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_9_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_9_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_10_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_10_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_11_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_11_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_12_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_12_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_13_signature_weapon = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_sword - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_mace - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_axe - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_hammer - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_spear - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_13_signature_weapon_dagger - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_1_SignatureWeaponAction = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_sword_draw - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_mace_lift - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_axe_heft - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_hammer_raise - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_spear_couch - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_dagger_brandish - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_2_SignatureWeaponAction = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_sword_draw - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_mace_lift - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_axe_heft - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_hammer_raise - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_spear_couch - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_dagger_brandish - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_3_SignatureWeaponAction = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_sword_draw - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_mace_lift - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_axe_heft - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_hammer_raise - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_spear_couch - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_dagger_brandish - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_4_SignatureWeaponAction = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_sword_draw - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_mace_lift - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_axe_heft - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_hammer_raise - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_spear_couch - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_dagger_brandish - trigger = { - var:signature_weapon = flag:dagger - } - } -} - -DE_1_SignatureWeaponCriticalPresent = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_slash_present - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_crush_present - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_pierce_present - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponAttemptedHeavy = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponAttemptedHeavy = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponAttemptedHeavy = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_4_SignatureWeaponAttemptedHeavy = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponAttemptedLight = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponAttemptedLight = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponAttemptedLight = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_4_SignatureWeaponAttemptedLight = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_light_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_light_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_light_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponAttemptedHeavyPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponAttemptedHeavyPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponAttemptedHeavyPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_4_SignatureWeaponAttemptedHeavyPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_5_SignatureWeaponAttemptedHeavyPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_5_signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_5_signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponAttemptedLightPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attempted_light_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponAttemptedLightPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attempted_light_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponAttemptedLightPlural = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attempted_light_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponFlourishPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_flourish_whirling - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_flourish_flailing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_flourish_swinging - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_2_SignatureWeaponFlourishPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_flourish_whirling - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_flourish_flailing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_flourish_swinging - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_3_SignatureWeaponFlourishPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_flourish_whirling - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_flourish_flailing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_flourish_swinging - trigger = { - var:signature_weapon = flag:spear - } - } -} - -DE_1_SignatureWeaponWoundVerb1ThirdPersonPresent = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_hews - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_smashes - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_stabs - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} - -DE_1_SignatureWeaponWoundVerb2 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_bite - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_crack - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_puncture - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} - -DE_2_SignatureWeaponWoundVerb2 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_bite - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_crack - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_puncture - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} - -DE_1_SignatureWeaponWoundVerb5 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_plunge - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_drive - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} - -DE_2_SignatureWeaponWoundVerb5 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_plunge - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_drive - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} - -DE_1_SignatureWeaponEndMaterial = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_end_wood - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_end_metal - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_1_SignatureWeaponTipType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_2_SignatureWeaponTipType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_3_SignatureWeaponTipType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_4_SignatureWeaponTipType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_5_SignatureWeaponTipType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_5_signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_5_signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_5_signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponBreaksVerbPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bending_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_snapping_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bending_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_2_SignatureWeaponBreaksVerbPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bending_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_snapping_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bending_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_1_SignatureWeaponBreaksVerbPastTense = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bend_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_snap_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bend_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_2_SignatureWeaponBreaksVerbPastTense = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bend_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_snap_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bend_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_1_SignatureWeaponBreaksVerbPastTense2 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bent_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_snapped_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_breaks_bent_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_2_SignatureWeaponBreaksVerbPastTense2 = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bent_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_snapped_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_breaks_bent_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -DE_1_SignatureWeaponKillType = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_run_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cut_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_gut - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeFirstPersonFuture = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crush_me - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_run_me_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cut_me_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_gut_me - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crush_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_run_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cut_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_gut_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_crush_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_run_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_cut_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_gut_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_3_SignatureWeaponKillTypeThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_killed_crush_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_killed_run_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_killed_cut_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_killed_gut_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_4_SignatureWeaponKillTypeThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_4_signature_weapon_killed_crush_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_killed_run_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_killed_cut_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_4_signature_weapon_killed_gut_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeThirdPersonPresentParticipleGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crushing_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_running_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cutting_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_gutting_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeThirdPersonPresentParticipleGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_crushing_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_running_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_cutting_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_gutting_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeGroinFirstPersonFuture = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_pulverise_my_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_unseam_me_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_split_my_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_stab_me_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeGroinFirstPersonFuture = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_pulverise_my_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_unseam_me_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_split_my_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_stab_me_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeGroinThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_pulverise_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_unseam_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_split_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_stab_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeGroinThirdPersonFutureGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_pulverise_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_unseam_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_split_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_stab_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeGroinThirdPersonActive = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_pulverises_my_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_unseams_me_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_splits_my_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_stabs_me_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeGroinThirdPersonPresentParticipleGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_pulverising_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_unseaming_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_splitting_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_stabbing_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeGroinThirdPersonPresentParticipleGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_pulverising_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_unseaming_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_splitting_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_stabbing_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeHeadFirstPersonFuture = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crush_my_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cut_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hack_off_my_head - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_stab_me_in_the_brain - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_2_SignatureWeaponKillTypeHeadFirstPersonFuture = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_crush_my_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_cut_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_hack_off_my_head - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_stab_me_in_the_brain - trigger = { var:signature_weapon = flag:dagger } - } -} - -DE_1_SignatureWeaponKillTypeHead2ThirdPersonActive = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_shatters_my_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cuts_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hacks_out_my_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} - -DE_1_SignatureWeaponKillTypeHead2ThirdPersonActiveGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_shatters_herhis_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_cuts_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hacks_out_herhis_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} - -DE_2_SignatureWeaponKillTypeHead2ThirdPersonActiveGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_shatters_herhis_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_cuts_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_killed_hacks_out_herhis_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} - -DE_1_SignatureWeaponKillTypeTorsoThirdPersonActive = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crushes_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_punches_through_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hews_into_my_sternum - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponKillTypeTorsoThirdPersonActiveGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crushes_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_punches_through_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hews_into_herhis_sternum - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponKillTypeTorsoPresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crushing_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_punching_through_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hewing_into_my_sternum - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponKillTypeTorsoThirdPersonPresentParticipleGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_crushing_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_punching_through_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_killed_hewing_into_herhis_sternum - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponKillTypeTorso2PresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_sliding_between_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_stoving_in_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_hacking_through_my_ribs - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_2_SignatureWeaponKillTypeTorso2PresentParticiple = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_sliding_between_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_stoving_in_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_hacking_through_my_ribs - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_1_SignatureWeaponKillTypeTorso2ThirdPersonSimplePresentGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_stab_between_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_stove_in_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_1_signature_weapon_attack_verb_hack_through_herhis_ribs - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_2_SignatureWeaponKillTypeTorso2ThirdPersonSimplePresentGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_stab_between_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_stove_in_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_2_signature_weapon_attack_verb_hack_through_herhis_ribs - trigger = { var:signature_weapon = flag:axe } - } -} - -DE_3_SignatureWeaponKillTypeTorso2ThirdPersonSimplePresentGendered = { - type = character - log_loc_errors = no - - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attack_verb_stab_between_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attack_verb_stove_in_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = CustomLoc_DE_3_signature_weapon_attack_verb_hack_through_herhis_ribs - trigger = { var:signature_weapon = flag:axe } - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_DE_special_gender_cases.txt b/common/customizable_localization/00_DE_special_gender_cases.txt deleted file mode 100644 index d1874994c7..0000000000 --- a/common/customizable_localization/00_DE_special_gender_cases.txt +++ /dev/null @@ -1,69 +0,0 @@ -############################################ -### Scripted Localization for German ### -### BY Kai Bagehorn ### -############################################ - -DE_MutterlichVaterlich = { - type = character - log_loc_errors = no - text = { - localization_key = CustomLoc_DE_Vaterlich - trigger = { is_female = no } - } - text = { - localization_key = CustomLoc_DE_Mutterlich - trigger = { is_female = yes } - } -} - -DE_RivalinRivale = { - type = character - log_loc_errors = no - text = { - localization_key = CustomLoc_DE_Rivale - trigger = { is_female = no } - } - text = { - localization_key = CustomLoc_DE_Rivalin - trigger = { is_female = yes } - } -} - -DE_RivalinRivalen = { - type = character - log_loc_errors = no - text = { - localization_key = CustomLoc_DE_Rivalen - trigger = { is_female = no } - } - text = { - localization_key = CustomLoc_DE_Rivalin - trigger = { is_female = yes } - } -} - -DE_DasDen = { - type = character - log_loc_errors = no - text = { - localization_key = CustomLoc_DE_Den - trigger = { is_female = no } - } - text = { - localization_key = CustomLoc_DE_Das - trigger = { is_female = yes } - } -} - -DE_ART_IND_A_Opp = { - type = character - log_loc_errors = no - text = { - localization_key = CustomLoc_DE_ART_IND_A_female - trigger = { is_female = no } - } - text = { - localization_key = CustomLoc_DE_ART_IND_A_male - trigger = { is_female = yes } - } -} diff --git a/common/customizable_localization/00_KR_personality_quirks_custom_loc.txt b/common/customizable_localization/00_KR_personality_quirks_custom_loc.txt deleted file mode 100644 index ffdf1414a8..0000000000 --- a/common/customizable_localization/00_KR_personality_quirks_custom_loc.txt +++ /dev/null @@ -1,3710 +0,0 @@ - #quirk_neg_present_type1_KR - #quirk_neg_present_type2_KR - #quirk_neg_present_type3_KR - #quirk_neg_present_type4_KR - - #quirk_pos_pp_type1_KR - - #quirk_neg_pp_type1_KR - #quirk_neg_pp_type2_KR - - #quirk_pos_personal_pp_type1_KR - - - -KRQuirkPresentPosOrNegType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive_type1_KR - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative_type1_KR - } -} - -KRQuirkPPPosOrNegType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_pp_positive_type1_KR - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_pp_negative_type1_KR - } -} - -KRQuirkPresentNegType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative_type1_KR - } -} - - -KRQuirkPresentNegType2 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative_type2_KR - } -} - -KRQuirkPresentNegType3 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative_type3_KR - } -} - - -KRQuirkPresentNegType4 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative_type4_KR - } -} - -KRQuirkPPPosType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_pos_pp_type1_KR - } -} - -KRQuirkPPNegType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_pp_negative_type1_KR - } -} - -KRQuirkPPNegType2 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_pp_negative_type2_KR - } -} - -KRQuirkPPNegType3 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_pp_negative_type3_KR - } -} - -KRQuirkStandalonePos = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_standalone_positive_type1_KR - } -} - -KRQuirkNounPostoAdj= { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_noun_positive_toAdj_KR - } -} - -KRQuirkNounPostoAdv= { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_noun_positive_toAdv_KR - } -} - -KRQuirkPresentPosType1 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive_type1_KR - } -} - -KRQuirkPresentPosType2 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive_type2_KR - } -} - -KRQuirkPresentPosType3 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive_type3_KR - } -} - -KRQuirkPresentPosType4 = { - type = character - log_loc_errors = no - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive_type4_KR - } -} - - -quirk_neg_present_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_KR - } -} - -quirk_neg_present_type2_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_KR4 - } -} - -quirk_neg_present_type3_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_KR3 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_KR3 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_KR3 - } -} - -quirk_neg_present_type4_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_KR4 - } -} -quirk_pos_pp_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_pp_KR - } -} - -quirk_neg_pp_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_pp_KR - } -} - -quirk_neg_pp_type2_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_pp_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_pp_KRneg2 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_pp_KRneg2 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_pp_KRneg2 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_pp_KRneg2 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_pp_KRneg2 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_pp_KRneg2 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_pp_KRneg2 - } -} - -quirk_pos_personal_pp_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_personal_pp_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_personal_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_personal_pp_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_personal_pp_KR - } -} - -quirk_pos_standalone_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_standalone_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_standalone_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_standalone_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_standalone_KR - } -} - -quirk_pos_noun_to_adj_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_3_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_noun_toAdjKR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_noun_toAdjKR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_noun_toAdjKR - } -} - -quirk_pos_noun_to_adv_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_3_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_noun_toAdvKR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_noun_toAdvKR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_noun_toAdvKR - } -} - -quirk_pos_present_type1_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_posp_quirk_KR - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_posp_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_posp_quirk_KR - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_posp_quirk_KR - } -} - -quirk_pos_present_type2_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_posp_quirk_KR2 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_posp_quirk_KR2 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_posp_quirk_KR2 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_posp_quirk_KR2 - } -} - -quirk_pos_present_type3_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_posp_quirk_KR3 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_posp_quirk_KR3 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_posp_quirk_KR3 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_posp_quirk_KR3 - } -} - -quirk_pos_present_type4_KR = { - type = character - log_loc_errors = no - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_posp_quirk_KR4 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_posp_quirk_KR4 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_posp_quirk_KR4 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_posp_quirk_KR4 - } -} diff --git a/common/customizable_localization/00_activity_loc.txt b/common/customizable_localization/00_activity_loc.txt index bfcc4c8655..028d276cb1 100644 --- a/common/customizable_localization/00_activity_loc.txt +++ b/common/customizable_localization/00_activity_loc.txt @@ -109,31 +109,31 @@ GetContestTypeArcheryAptitude = { trigger = { contest_type_aptitude_archery = 1 } - localization_key = COURT_POSITION_aptitude_terrible + localization_key = aptitude_terrible } text = { trigger = { contest_type_aptitude_archery = 2 } - localization_key = COURT_POSITION_aptitude_poor + localization_key = aptitude_poor } text = { trigger = { contest_type_aptitude_archery = 3 } - localization_key = COURT_POSITION_aptitude_average + localization_key = aptitude_average } text = { trigger = { contest_type_aptitude_archery = 4 } - localization_key = COURT_POSITION_aptitude_good + localization_key = aptitude_good } text = { trigger = { contest_type_aptitude_archery = 5 } - localization_key = COURT_POSITION_aptitude_excellent + localization_key = aptitude_excellent } } @@ -150,31 +150,31 @@ GetContestTypeFootAptitude = { trigger = { contest_type_aptitude_foot = 1 } - localization_key = COURT_POSITION_aptitude_terrible + localization_key = aptitude_terrible } text = { trigger = { contest_type_aptitude_foot = 2 } - localization_key = COURT_POSITION_aptitude_poor + localization_key = aptitude_poor } text = { trigger = { contest_type_aptitude_foot = 3 } - localization_key = COURT_POSITION_aptitude_average + localization_key = aptitude_average } text = { trigger = { contest_type_aptitude_foot = 4 } - localization_key = COURT_POSITION_aptitude_good + localization_key = aptitude_good } text = { trigger = { contest_type_aptitude_foot = 5 } - localization_key = COURT_POSITION_aptitude_excellent + localization_key = aptitude_excellent } } @@ -191,31 +191,31 @@ GetContestTypeHorseAptitude = { trigger = { contest_type_aptitude_horse = 1 } - localization_key = COURT_POSITION_aptitude_terrible + localization_key = aptitude_terrible } text = { trigger = { contest_type_aptitude_horse = 2 } - localization_key = COURT_POSITION_aptitude_poor + localization_key = aptitude_poor } text = { trigger = { contest_type_aptitude_horse = 3 } - localization_key = COURT_POSITION_aptitude_average + localization_key = aptitude_average } text = { trigger = { contest_type_aptitude_horse = 4 } - localization_key = COURT_POSITION_aptitude_good + localization_key = aptitude_good } text = { trigger = { contest_type_aptitude_horse = 5 } - localization_key = COURT_POSITION_aptitude_excellent + localization_key = aptitude_excellent } } @@ -232,31 +232,31 @@ GetContestTypeWitAptitude = { trigger = { contest_type_aptitude_wit = 1 } - localization_key = COURT_POSITION_aptitude_terrible + localization_key = aptitude_terrible } text = { trigger = { contest_type_aptitude_wit = 2 } - localization_key = COURT_POSITION_aptitude_poor + localization_key = aptitude_poor } text = { trigger = { contest_type_aptitude_wit = 3 } - localization_key = COURT_POSITION_aptitude_average + localization_key = aptitude_average } text = { trigger = { contest_type_aptitude_wit = 4 } - localization_key = COURT_POSITION_aptitude_good + localization_key = aptitude_good } text = { trigger = { contest_type_aptitude_wit = 5 } - localization_key = COURT_POSITION_aptitude_excellent + localization_key = aptitude_excellent } } diff --git a/common/customizable_localization/00_ai_value_custom_loc.txt b/common/customizable_localization/00_ai_value_custom_loc.txt deleted file mode 100644 index 2e3f651f7c..0000000000 --- a/common/customizable_localization/00_ai_value_custom_loc.txt +++ /dev/null @@ -1,123 +0,0 @@ -StrongestAIValueNoun = { - type = character - random_valid = yes - - text = { - trigger = { - var:strongest_ai_value = flag:positive_boldness - } - localization_key = boldness - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_compassion - } - localization_key = kind_heart - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_greed - } - localization_key = selfishness - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_energy - } - localization_key = energy - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_honor - } - localization_key = sense_of_honor - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_rationality - } - localization_key = rationality - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_vengefulness - } - localization_key = vindictive_nature - } - text = { - trigger = { - var:strongest_ai_value = flag:positive_zeal - } - localization_key = ardent_belief - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_boldness - } - localization_key = caution - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_compassion - } - localization_key = coldness - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_greed - } - localization_key = lack_of_ambition - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_energy - } - localization_key = lethargy - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_honor - } - localization_key = ill_repute - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_rationality - } - localization_key = ignorance - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_vengefulness - } - localization_key = forgiving_nature - } - text = { - trigger = { - var:strongest_ai_value = flag:negative_zeal - } - localization_key = skepticism - } -} - -AIEconomicPersonality = { - type = character - - text = { - trigger = { ai_has_warlike_personality = yes } - localization_key = ai_warlike_personality - } - text = { - trigger = { ai_has_cautious_personality = yes } - localization_key = ai_cautious_personality - } - text = { - trigger = { ai_has_economical_boom_personality = yes } - localization_key = ai_economical_boom_personality - } - - text = { - localization_key = ai_economical_unpredictable_personality - fallback = yes - } -} diff --git a/common/customizable_localization/00_artifact_custom_loc.txt b/common/customizable_localization/00_artifact_custom_loc.txt index 2d7db47147..6e46d1ce7a 100644 --- a/common/customizable_localization/00_artifact_custom_loc.txt +++ b/common/customizable_localization/00_artifact_custom_loc.txt @@ -2547,3 +2547,34 @@ artifact_relic_desc = { localization_key = relic_name_text } } + + +ArtifactBaseWeaponType = { + type = artifact + + text = { # + trigger = { artifact_type = axe } + localization_key = weapon_axe_inspiration_name + } + text = { + trigger = { artifact_type = hammer } + localization_key = weapon_hammer_inspiration_name + } + text = { + trigger = { artifact_type = mace } + localization_key = weapon_mace_inspiration_name + } + text = { + trigger = { artifact_type = spear } + localization_key = weapon_spear_inspiration_name + } + text = { + trigger = { artifact_type = dagger } + localization_key = weapon_dagger_inspiration_name + } + text = { + trigger = { artifact_type = sword } + fallback = yes + localization_key = weapon_sword_inspiration_name + } +} diff --git a/common/customizable_localization/00_bad_roomate_custom_loc.txt b/common/customizable_localization/00_bad_roomate_custom_loc.txt deleted file mode 100644 index e08dc5f973..0000000000 --- a/common/customizable_localization/00_bad_roomate_custom_loc.txt +++ /dev/null @@ -1,24 +0,0 @@ -RandomBadRoomate = { - - type = character - - random_valid = yes - - text = { - localization_key = wet_the_bed - } - text = { - localization_key = sweet_crumbs_in_mattress - } - text = { - localization_key = recurring_dreams - } - text = { - localization_key = snoring - } - text = { - localization_key = dog_in_bed - } -} - - diff --git a/common/customizable_localization/00_board_game_custom_loc.txt b/common/customizable_localization/00_board_game_custom_loc.txt deleted file mode 100644 index 1c510b38e4..0000000000 --- a/common/customizable_localization/00_board_game_custom_loc.txt +++ /dev/null @@ -1,1137 +0,0 @@ - -################################################## -# Counter Skills - -BG_CounterSkill_Diplomacy = { - type = character - - # Diplomacy is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_c = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_c = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_c = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_c = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_c = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Diplomacy is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_a = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_a = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_a = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_a = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_a = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Diplomacy is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:diplomacy - scope:bg_skill_b = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_c = flag:diplomacy - scope:bg_skill_b = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_c = flag:diplomacy - scope:bg_skill_b = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_c = flag:diplomacy - scope:bg_skill_b = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_c = flag:diplomacy - scope:bg_skill_b = flag:prowess - } - localization_key = bg_counterskill_prowess - } -} - -BG_CounterSkill_martial = { - type = character - - # Martial is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:martial - scope:bg_skill_c = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_a = flag:martial - scope:bg_skill_c = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_a = flag:martial - scope:bg_skill_c = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_a = flag:martial - scope:bg_skill_c = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_a = flag:martial - scope:bg_skill_c = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Martial is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:martial - scope:bg_skill_a = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_b = flag:martial - scope:bg_skill_a = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_b = flag:martial - scope:bg_skill_a = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_b = flag:martial - scope:bg_skill_a = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_b = flag:martial - scope:bg_skill_a = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Martial is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:martial - scope:bg_skill_b = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_c = flag:martial - scope:bg_skill_b = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_c = flag:martial - scope:bg_skill_b = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_c = flag:martial - scope:bg_skill_b = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_c = flag:martial - scope:bg_skill_b = flag:prowess - } - localization_key = bg_counterskill_prowess - } -} - -BG_CounterSkill_Stewardship = { - type = character - - # Stewardship is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_c = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_c = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_c = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_c = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_c = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Stewardship is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:stewardship - scope:bg_skill_a = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_b = flag:stewardship - scope:bg_skill_a = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_b = flag:stewardship - scope:bg_skill_a = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_b = flag:stewardship - scope:bg_skill_a = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_b = flag:stewardship - scope:bg_skill_a = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Stewardship is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:stewardship - scope:bg_skill_b = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_c = flag:stewardship - scope:bg_skill_b = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_c = flag:stewardship - scope:bg_skill_b = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_c = flag:stewardship - scope:bg_skill_b = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_c = flag:stewardship - scope:bg_skill_b = flag:prowess - } - localization_key = bg_counterskill_prowess - } -} - -BG_CounterSkill_Intrigue = { - type = character - - # Intrigue is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_c = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_c = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_c = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_c = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_c = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Intrigue is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:intrigue - scope:bg_skill_a = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_b = flag:intrigue - scope:bg_skill_a = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_b = flag:intrigue - scope:bg_skill_a = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_b = flag:intrigue - scope:bg_skill_a = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_b = flag:intrigue - scope:bg_skill_a = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Intrigue is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:intrigue - scope:bg_skill_b = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_c = flag:intrigue - scope:bg_skill_b = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_c = flag:intrigue - scope:bg_skill_b = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_c = flag:intrigue - scope:bg_skill_b = flag:learning - } - localization_key = bg_counterskill_learning - } - text = { - trigger = { - scope:bg_skill_c = flag:intrigue - scope:bg_skill_b = flag:prowess - } - localization_key = bg_counterskill_prowess - } -} - -BG_CounterSkill_Learning = { - type = character - - # Learning is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:learning - scope:bg_skill_c = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_a = flag:learning - scope:bg_skill_c = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_a = flag:learning - scope:bg_skill_c = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_a = flag:learning - scope:bg_skill_c = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_a = flag:learning - scope:bg_skill_c = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Learning is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:learning - scope:bg_skill_a = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_b = flag:learning - scope:bg_skill_a = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_b = flag:learning - scope:bg_skill_a = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_b = flag:learning - scope:bg_skill_a = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_b = flag:learning - scope:bg_skill_a = flag:prowess - } - localization_key = bg_counterskill_prowess - } - # Learning is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:learning - scope:bg_skill_b = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_c = flag:learning - scope:bg_skill_b = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_c = flag:learning - scope:bg_skill_b = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_c = flag:learning - scope:bg_skill_b = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_c = flag:learning - scope:bg_skill_b = flag:prowess - } - localization_key = bg_counterskill_prowess - } -} - -BG_CounterSkill_Prowess = { - type = character - - # Prowess is scope:skill_a. - text = { - trigger = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_c = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_c = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_c = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_c = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_c = flag:learning - } - localization_key = bg_counterskill_learning - } - # Prowess is scope:skill_b. - text = { - trigger = { - scope:bg_skill_b = flag:prowess - scope:bg_skill_a = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_b = flag:prowess - scope:bg_skill_a = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_b = flag:prowess - scope:bg_skill_a = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_b = flag:prowess - scope:bg_skill_a = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_b = flag:prowess - scope:bg_skill_a = flag:learning - } - localization_key = bg_counterskill_learning - } - # Prowess is scope:skill_c. - text = { - trigger = { - scope:bg_skill_c = flag:prowess - scope:bg_skill_b = flag:diplomacy - } - localization_key = bg_counterskill_diplomacy - } - text = { - trigger = { - scope:bg_skill_c = flag:prowess - scope:bg_skill_b = flag:martial - } - localization_key = bg_counterskill_martial - } - text = { - trigger = { - scope:bg_skill_c = flag:prowess - scope:bg_skill_b = flag:stewardship - } - localization_key = bg_counterskill_stewardship - } - text = { - trigger = { - scope:bg_skill_c = flag:prowess - scope:bg_skill_b = flag:intrigue - } - localization_key = bg_counterskill_intrigue - } - text = { - trigger = { - scope:bg_skill_c = flag:prowess - scope:bg_skill_b = flag:learning - } - localization_key = bg_counterskill_learning - } -} - -################################################## -# Moves & Pieces - -BG_GameType = { - type = character - - # Pachisi - text = { - trigger = { scope:bg_system = flag:pachisi } - localization_key = bg_gametype_pachisi - } - # Hnefatafl - text = { - trigger = { scope:bg_system = flag:hnefatafl } - localization_key = bg_gametype_hnefatafl - } - # Tabula - text = { - trigger = { scope:bg_system = flag:tabula } - localization_key = bg_gametype_tabula - } - # Go - text = { - trigger = { scope:bg_system = flag:go } - localization_key = bg_gametype_go - } - # Fidchell - text = { - trigger = { scope:bg_system = flag:fidchell } - localization_key = bg_gametype_fidchell - } - # Chess - text = { - trigger = { scope:bg_system = flag:chess } - localization_key = bg_gametype_chess - fallback = yes - } -} - -BG_GameType_Concept = { - type = character - - # Pachisi - text = { - trigger = { - capital_province = { bg_game_type_region_pachisi_trigger = yes } - } - localization_key = bg_gametype_concept_pachisi - } - # Hnefatafl - text = { - trigger = { - capital_province = { bg_game_type_region_hnefatafl_trigger = yes } - } - localization_key = bg_gametype_concept_hnefatafl - } - # Tabula - text = { - trigger = { - capital_province = { bg_game_type_region_tabula_trigger = yes } - } - localization_key = bg_gametype_concept_tabula - } - # Go - text = { - trigger = { - capital_province = { bg_game_type_region_go_trigger = yes } - } - localization_key = bg_gametype_concept_go - } - # Fidchell - text = { - trigger = { - capital_province = { bg_game_type_region_fidchell_trigger = yes } - } - localization_key = bg_gametype_concept_fidchell - } - # Chess - text = { - trigger = { always = no } - localization_key = bg_gametype_concept_chess - fallback = yes - } -} - -BG_GameType_Concept_Dark = { - type = character - - # Pachisi - text = { - trigger = { - capital_province = { bg_game_type_region_pachisi_trigger = yes } - } - localization_key = bg_gametype_concept_pachisi_dark - } - # Hnefatafl - text = { - trigger = { - capital_province = { bg_game_type_region_hnefatafl_trigger = yes } - } - localization_key = bg_gametype_concept_hnefatafl_dark - } - # Tabula - text = { - trigger = { - capital_province = { bg_game_type_region_tabula_trigger = yes } - } - localization_key = bg_gametype_concept_tabula_dark - } - # Go - text = { - trigger = { - capital_province = { bg_game_type_region_go_trigger = yes } - } - localization_key = bg_gametype_concept_go_dark - } - # Fidchell - text = { - trigger = { - capital_province = { bg_game_type_region_fidchell_trigger = yes } - } - localization_key = bg_gametype_concept_fidchell_dark - } - # Chess - text = { - trigger = { always = no } - localization_key = bg_gametype_concept_chess_dark - fallback = yes - } -} - -BG_GamePiece = { - type = character - - # Pachisi - text = { - trigger = { scope:bg_system = flag:pachisi } - localization_key = bg_gamepiece_token - } - # Hnefatafl - text = { - trigger = { scope:bg_system = flag:hnefatafl } - localization_key = bg_gamepiece_piece - } - # Tabula - text = { - trigger = { scope:bg_system = flag:tabula } - localization_key = bg_gamepiece_counter - } - # Go - text = { - trigger = { scope:bg_system = flag:go } - localization_key = bg_gamepiece_stone - } - # Fidchell - text = { - trigger = { scope:bg_system = flag:fidchell } - localization_key = bg_gamepiece_piece - } - # Chess - text = { - trigger = { scope:bg_system = flag:chess } - localization_key = bg_gamepiece_piece - fallback = yes - } -} - -BG_GamePiecePlural = { - type = character - - # Pachisi - text = { - trigger = { scope:bg_system = flag:pachisi } - localization_key = bg_gamepiece_tokens - } - # Hnefatafl - text = { - trigger = { scope:bg_system = flag:hnefatafl } - localization_key = bg_gamepiece_pieces - } - # Tabula - text = { - trigger = { scope:bg_system = flag:tabula } - localization_key = bg_gamepiece_counters - } - # Go - text = { - trigger = { scope:bg_system = flag:go } - localization_key = bg_gamepiece_stones - } - # Fidchell - text = { - trigger = { scope:bg_system = flag:fidchell } - localization_key = bg_gamepiece_pieces - } - # Chess - text = { - trigger = { scope:bg_system = flag:chess } - localization_key = bg_gamepiece_pieces - fallback = yes - } -} - -BG_GameDecider = { - type = character - - # Pachisi - text = { - trigger = { scope:bg_system = flag:pachisi } - localization_key = bg_gamedecider_cowrie - } - # Hnefatafl - text = { - trigger = { scope:bg_system = flag:hnefatafl } - localization_key = bg_gamedecider_die - } - # Tabula - text = { - trigger = { scope:bg_system = flag:tabula } - localization_key = bg_gamedecider_die - } - # Go - ## No randomiser, so it defaults to the fallback. - # Fidchell - ## No randomiser, so it defaults to the fallback. - # Chess - ## Yes, this is deliberate. - ## Chess was typically played with dice during the period, generally either to decide number of spaces that could be moved or else which pieces could be moved. Varied depending on period & region. - text = { - trigger = { scope:bg_system = flag:chess } - localization_key = bg_gamedecider_die - } - # No randomising decider. - ## And for those that incorporate nothing, we have uhh... just a random prop. - text = { - trigger = { always = no } - localization_key = bg_gamedecider_quill - fallback = yes - } -} - -BG_RandomArticleDirection = { - type = character - random_valid = yes - - # Northern. - text = { localization_key = bg_randomdirection_northern } - # Western. - text = { localization_key = bg_randomdirection_western } - # Eastern. - text = { localization_key = bg_randomdirection_eastern } - # Southern. - text = { localization_key = bg_randomdirection_southern } -} - -# These aren't culturally contextual mostly because there's not an easy, performant way to sort that. -## Unless I'm dumb. -### Which is pretty eminently possible tbh. -BG_RandomRankPossessive = { - type = character - random_valid = yes - - # Baron's - text = { - trigger = { is_female = yes } - localization_key = bg_randomrankpossessive_baron_female - } - text = { - trigger = { is_male = yes } - localization_key = bg_randomrankpossessive_baron_male - } - # Count's. - text = { - trigger = { is_female = yes } - localization_key = bg_randomrankpossessive_count_female - } - text = { - trigger = { is_male = yes } - localization_key = bg_randomrankpossessive_count_male - } - # Duke's - text = { - trigger = { is_female = yes } - localization_key = bg_randomrankpossessive_duke_female - } - text = { - trigger = { is_male = yes } - localization_key = bg_randomrankpossessive_duke_male - } - # King's - text = { - trigger = { is_female = yes } - localization_key = bg_randomrankpossessive_king_female - } - text = { - trigger = { is_male = yes } - localization_key = bg_randomrankpossessive_king_male - } - # Emperor's - text = { - trigger = { is_female = yes } - localization_key = bg_randomrankpossessive_emperor_female - } - text = { - trigger = { is_male = yes } - localization_key = bg_randomrankpossessive_emperor_male - } -} - -BG_RandomMoveType = { - type = character - random_valid = yes - - # Gambit - text = { localization_key = bg_randommovetype_gambit } - # Cross - text = { localization_key = bg_randommovetype_cross } - # Stratagem - text = { localization_key = bg_randommovetype_stratagem } - # Feint - text = { localization_key = bg_randommovetype_feint } - # Rush - text = { localization_key = bg_randommovetype_rush } -} - -BG_RandomFacialExpression = { - type = character - - # They're smarmily confident. - text = { - trigger = { - OR = { - scope:bg_opponent ?= { has_trait = arrogant } - bg_cumulative_skill_score_comparison_value <= -20 - } - } - localization_key = bg_randomfacialexpression_scornful - } - # They're confident. - text = { - trigger = { - bg_cumulative_skill_score_comparison_value > -20 - bg_cumulative_skill_score_comparison_value <= -10 - } - localization_key = bg_randomfacialexpression_confident - } - # They're ready for a fight. - text = { - trigger = { - bg_cumulative_skill_score_comparison_value > -10 - bg_cumulative_skill_score_comparison_value <= 10 - } - localization_key = bg_randomfacialexpression_fight - #fallback = yes - } - # They're unsure. - text = { - trigger = { - bg_cumulative_skill_score_comparison_value > 10 - bg_cumulative_skill_score_comparison_value <= 20 - } - localization_key = bg_randomfacialexpression_unsure - } - # They're quailing. - text = { - trigger = { bg_cumulative_skill_score_comparison_value > 20 } - localization_key = bg_randomfacialexpression_quailing - } -} - -# For when referencing one of these board games _outside_ of the system but according to the same sets of triggers. -BG_GameType_Generic = { - type = character - random_valid = yes - # Pachisi - text = { - trigger = { - # Landed chars check their capital. - trigger_if = { - limit = { is_landed = yes } - capital_province = { bg_game_type_region_pachisi_trigger = yes } - } - # Unlanded chars check their location. - trigger_else = { - location = { bg_game_type_region_pachisi_trigger = yes } - } - } - localization_key = bg_gametype_pachisi - } - # Hnefatafl - text = { - trigger = { - # Landed chars check their capital. - trigger_if = { - limit = { is_landed = yes } - capital_province = { bg_game_type_region_hnefatafl_trigger = yes } - } - # Unlanded chars check their location. - trigger_else = { - location = { bg_game_type_region_hnefatafl_trigger = yes } - } - } - localization_key = bg_gametype_hnefatafl - } - # Tabula - text = { - trigger = { - # Landed chars check their capital. - trigger_if = { - limit = { is_landed = yes } - capital_province = { bg_game_type_region_tabula_trigger = yes } - } - # Unlanded chars check their location. - trigger_else = { - location = { bg_game_type_region_tabula_trigger = yes } - } - } - localization_key = bg_gametype_tabula - } - # Go - text = { - trigger = { - # Landed chars check their capital. - trigger_if = { - limit = { is_landed = yes } - capital_province = { bg_game_type_region_go_trigger = yes } - } - # Unlanded chars check their location. - trigger_else = { - location = { bg_game_type_region_go_trigger = yes } - } - } - localization_key = bg_gametype_go - } - # Fidchell - text = { - trigger = { - # Landed chars check their capital. - trigger_if = { - limit = { is_landed = yes } - capital_province = { bg_game_type_region_fidchell_trigger = yes } - } - # Unlanded chars check their location. - trigger_else = { - location = { bg_game_type_region_fidchell_trigger = yes } - } - } - localization_key = bg_gametype_fidchell - } - # Chess - text = { - localization_key = bg_gametype_chess - fallback = yes - } -} diff --git a/common/customizable_localization/00_casus_belli.txt b/common/customizable_localization/00_casus_belli.txt deleted file mode 100644 index 5cc3de0e1a..0000000000 --- a/common/customizable_localization/00_casus_belli.txt +++ /dev/null @@ -1,18 +0,0 @@ -weak_claim_requirements = { - type = character - text = { - localization_key = weak_claim_male_dominated - trigger = { - faith = { has_doctrine_parameter = female_claims_are_weak } - } - } - text = { - localization_key = weak_claim_female_dominated - trigger = { - faith = { has_doctrine_parameter = male_claims_are_weak } - } - } - text = { - localization_key = weak_claim_general - } -} diff --git a/common/customizable_localization/00_childhood_custom_localization.txt b/common/customizable_localization/00_childhood_custom_localization.txt deleted file mode 100644 index d712ec14ba..0000000000 --- a/common/customizable_localization/00_childhood_custom_localization.txt +++ /dev/null @@ -1,263 +0,0 @@ -child_object_of_interest_indefinite = { - type = character - - text = { - localization_key = child_object_of_interest_indefinite_set - trigger = { exists = var:child_toy_variable } - } - - text = { - localization_key = child_object_of_interest_indefinite_random - } -} - -child_object_of_interest_indefinite_random = { - type = character - - random_valid = yes - - text = { - localization_key = a_spinning_top - } - - text = { - localization_key = a_ragdoll - } - - text = { - localization_key = a_wooden_knight - } - - text = { - localization_key = a_stick_horse - } - - text = { - localization_key = a_rolling_hoop - } - - text = { - localization_key = a_scopperel - } - - text = { - localization_key = a_pet_rabbit - } - - text = { - localization_key = a_toy_boat - } - - text = { - localization_key = a_sowing_kit - } - - text = { - localization_key = a_wooden_sword - } -} - - -child_favorite_toy_indefinite = { - type = character - - random_valid = yes - - text = { - localization_key = a_wooden_knight - trigger = { var:child_toy_variable = flag:wooden_knight } - } - text = { - localization_key = a_toy_boat - trigger = { var:child_toy_variable = flag:toy_boat } - } - text = { - localization_key = a_wooden_sword - trigger = { var:child_toy_variable = flag:wooden_sword } - } - text = { - localization_key = a_ragdoll - trigger = { var:child_toy_variable = flag:ragdoll } - } - text = { - localization_key = a_spinning_top - trigger = { var:child_toy_variable = flag:spinning_top } - } - text = { - localization_key = a_rolling_hoop - trigger = { var:child_toy_variable = flag:rolling_hoop } - } - text = { - localization_key = a_scopperel - trigger = { var:child_toy_variable = flag:scopperel } - } - text = { - localization_key = a_wooden_horse - trigger = { var:child_toy_variable = flag:wooden_horse } - } - text = { - localization_key = a_doll - trigger = { var:child_toy_variable = flag:doll } - } - text = { - localization_key = a_stick_horse - trigger = { var:child_toy_variable = flag:stick_horse } - } -} - -child_object_of_interest = { - type = character - - text = { - localization_key = child_object_of_interest_set - trigger = { exists = var:child_toy_variable } - } - - text = { - localization_key = child_object_of_interest_random - } -} - -child_object_of_interest_random = { - type = character - - random_valid = yes - - text = { - localization_key = spinning_top - } - - text = { - localization_key = ragdoll - } - - text = { - localization_key = wooden_knight - } - - text = { - localization_key = stick_horse - } - - text = { - localization_key = rolling_hoop - } - - text = { - localization_key = scopperel - } - - text = { - localization_key = toy_boat - } - - text = { - localization_key = wooden_sword - } -} - -child_favorite_toy = { - type = character - - random_valid = yes - - text = { - localization_key = wooden_knight - trigger = { var:child_toy_variable = flag:wooden_knight } - } - text = { - localization_key = toy_boat - trigger = { var:child_toy_variable = flag:toy_boat } - } - text = { - localization_key = wooden_sword - trigger = { var:child_toy_variable = flag:wooden_sword } - } - text = { - localization_key = ragdoll - trigger = { var:child_toy_variable = flag:ragdoll } - } - text = { - localization_key = spinning_top - trigger = { var:child_toy_variable = flag:spinning_top } - } - text = { - localization_key = rolling_hoop - trigger = { var:child_toy_variable = flag:rolling_hoop } - } - text = { - localization_key = scopperel - trigger = { var:child_toy_variable = flag:scopperel } - } - text = { - localization_key = wooden_horse - trigger = { var:child_toy_variable = flag:wooden_horse } - } - text = { - localization_key = doll - trigger = { var:child_toy_variable = flag:doll } - } - text = { - localization_key = stick_horse - trigger = { var:child_toy_variable = flag:stick_horse } - } -} - -child_favorite_toy_plural = { - type = character - - random_valid = yes - - text = { - localization_key = wooden_knight_plural - trigger = { var:child_toy_variable = flag:wooden_knight } - } - text = { - localization_key = toy_boat_plural - trigger = { var:child_toy_variable = flag:toy_boat } - } - text = { - localization_key = wooden_sword_plural - trigger = { var:child_toy_variable = flag:wooden_sword } - } - text = { - localization_key = ragdoll_plural - trigger = { var:child_toy_variable = flag:ragdoll } - } - text = { - localization_key = spinning_top_plural - trigger = { var:child_toy_variable = flag:spinning_top } - } - text = { - localization_key = rolling_hoop_plural - trigger = { var:child_toy_variable = flag:rolling_hoop } - } - text = { - localization_key = scopperel_plural - trigger = { var:child_toy_variable = flag:scopperel } - } - text = { - localization_key = wooden_horse_plural - trigger = { var:child_toy_variable = flag:wooden_horse } - } - text = { - localization_key = doll_plural - trigger = { var:child_toy_variable = flag:doll } - } - text = { - localization_key = stick_horse_plural - trigger = { var:child_toy_variable = flag:stick_horse } - } -} - -GetChildChildren = { - type = character - - text = { - localization_key = child_children_singular - trigger = { any_child = { count = 1 } } - } - text = { - localization_key = child_children_plural - } -} diff --git a/common/customizable_localization/00_conversation_subjects.txt b/common/customizable_localization/00_conversation_subjects.txt deleted file mode 100644 index 63ef896f6f..0000000000 --- a/common/customizable_localization/00_conversation_subjects.txt +++ /dev/null @@ -1,1313 +0,0 @@ -education_conversation_subject = { - type = character - random_valid = yes - - text = { - trigger = { has_education_martial_trigger = yes } - localization_key = education_conversation_subject_martial_1 #new strategies - } - text = { - trigger = { has_education_martial_trigger = yes } - localization_key = education_conversation_subject_martial_2 #ancient campaigns - } - text = { - trigger = { has_education_martial_trigger = yes } - localization_key = education_conversation_subject_martial_3 #foreign military innovations - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = education_conversation_subject_diplomacy_1 #other lords - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = education_conversation_subject_diplomacy_2 #the art of feasting - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = education_conversation_subject_diplomacy_3 #etiquette in foreign courts - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = education_conversation_subject_diplomacy_4 #journeys to faraway lands - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_1 #theological treatises - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_2 #metaphysical conundrums - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_3 #the stars and planets - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_4 #the nature of unusual diseases - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_5 #collecting rare manuscripts - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_6 #bibliomancy - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_7 #calligraphy - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_1 #gold minting reduction - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_2 #development of trade routes - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_3 #best practices for tax collectors - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_4 #cartography - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_5 #book-keeping - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = education_conversation_subject_stewardship_6 #cadastral surveys - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = education_conversation_subject_intrigue_1 #shadowy rumors - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = education_conversation_subject_intrigue_2 #dagger-smiths - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = education_conversation_subject_intrigue_3 #exotic poisons and their antidotes - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = education_conversation_subject_intrigue_4 #ciphers - } -} - -#A subject of interest to a character, might contain pronouns such as "his wife" -herhis_subject_of_interest = { - type = character - random_valid = yes - - - ### DIPLOMACY ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:court_politics - } - trigger_else = { - OR = { - has_education_diplomacy_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus } - diplomacy >= high_skill_rating - } - } - } - localization_key = court_politics - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:court_alliances - } - trigger_else = { - OR = { - has_education_diplomacy_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus } - diplomacy >= high_skill_rating - } - } - } - localization_key = court_alliances - } - - ### MARTIAL ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:education_conversation_subject_martial_2 - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus } - martial >= high_skill_rating - } - } - } - localization_key = education_conversation_subject_martial_2 #ancient campaigns - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:troop_compositions - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - martial >= high_skill_rating - } - } - } - localization_key = troop_compositions - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:sword_practise - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_trait = lifestyle_blademaster - has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus } - } - } - } - localization_key = sword_practise - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:military_strategies - } - trigger_else = { - OR = { - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - has_education_martial_trigger = yes - } - } - } - localization_key = military_strategies - } - - ### STEWARDSHIP ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:trade_routes - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - stewardship >= high_skill_rating - } - } - } - localization_key = trade_routes - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:tax_levels - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus } - stewardship >= high_skill_rating - has_trait = greedy - } - } - } - localization_key = tax_levels - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_investments - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_trait = greedy - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - } - } - } - localization_key = herhis_investments - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:lawmaking - } - trigger_else = { - has_trait = just - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus } - } - } - localization_key = lawmaking - } - - ### INTRIGUE ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:poisons - } - trigger_else = { - OR = { - has_education_intrigue_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus } - intrigue >= high_skill_rating - } - } - } - localization_key = poisons - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:the_rumors_at_court - } - trigger_else = { - OR = { - has_education_intrigue_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus } - intrigue >= high_skill_rating - } - } - } - localization_key = the_rumors_at_court - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:the_art_of_love - } - trigger_else = { - OR = { - has_trait = lustful - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_temptation_focus } - } - } - } - localization_key = the_art_of_love - } - - ### LEARNING ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:education_conversation_subject_learning_1 - } - trigger_else = { - OR = { - has_education_learning_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = learning_theology_focus } - learning >= high_skill_rating - } - } - } - localization_key = education_conversation_subject_learning_1 #theological treatises - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_tome_collection - } - trigger_else = { - OR = { - has_education_learning_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = learning_scholarship_focus } - } - } - } - localization_key = herhis_tome_collection - } - - ### RELATIONS ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_daughter - } - trigger_else = { - any_child = { - is_male = no - reverse_opinion = { - target = PREV - value > 40 - } - } - } - } - localization_key = herhis_favorite_daughter - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_son - } - trigger_else = { - any_child = { - is_male = yes - reverse_opinion = { - target = PREV - value > 40 - } - } - } - } - localization_key = herhis_favorite_son - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_beloved_spouse - } - trigger_else = { - any_spouse = { - reverse_opinion = { - target = PREV - value > 50 - } - } - } - } - localization_key = herhis_beloved_spouse - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_friends - } - trigger_else = { - OR = { - num_of_relation_friend >= 1 - } - } - } - localization_key = herhis_friends - } - - ### MISC ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:parties_shehe_has_attended - } - trigger_else = { - OR = { - has_trait = diplomat - has_trait = lifestyle_reveler - has_trait = drunkard - } - } - } - localization_key = parties_shehe_has_attended - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_best_hunting_kills - } - trigger_else = { - has_trait = lifestyle_hunter - } - } - localization_key = herhis_best_hunting_kills - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_favorite_food - } - trigger_else = { - has_trait = gluttonous - } - } - localization_key = herhis_favorite_food - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herselfhimself - } - trigger_else = { - has_trait = arrogant - } - } - localization_key = herselfhimself - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_ambitions - } - trigger_else = { - has_trait = ambitious - } - } - localization_key = herhis_ambitions - } - - text = { - trigger = { - always = no - } - fallback = yes - localization_key = fallback_conversation - } -} - - -#A subject of interest to a character, might contain pronouns such as "my wife" -my_subject_of_interest = { - type = character - random_valid = yes - - - ### DIPLOMACY ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:court_politics - } - trigger_else = { - OR = { - has_education_diplomacy_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus } - diplomacy >= high_skill_rating - } - } - } - localization_key = court_politics - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:court_alliances - } - trigger_else = { - OR = { - has_education_diplomacy_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus } - diplomacy >= high_skill_rating - } - } - } - localization_key = court_alliances - } - - ### MARTIAL ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:education_conversation_subject_martial_2 - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus } - martial >= high_skill_rating - } - } - } - localization_key = education_conversation_subject_martial_2 #ancient campaigns - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:troop_compositions - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - martial >= high_skill_rating - } - } - } - localization_key = troop_compositions - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:sword_practise - } - trigger_else = { - OR = { - has_education_martial_trigger = yes - has_trait = lifestyle_blademaster - has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus } - } - } - } - localization_key = sword_practise - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:military_strategies - } - trigger_else = { - OR = { - has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } - has_education_martial_trigger = yes - } - } - } - localization_key = military_strategies - } - - ### STEWARDSHIP ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:trade_routes - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - stewardship >= high_skill_rating - } - } - } - localization_key = trade_routes - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:tax_levels - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus } - stewardship >= high_skill_rating - has_trait = greedy - } - } - } - localization_key = tax_levels - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_investments - } - trigger_else = { - OR = { - has_education_stewardship_trigger = yes - has_trait = greedy - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } - } - } - } - localization_key = my_investments - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:lawmaking - } - trigger_else = { - has_trait = just - has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus } - } - } - localization_key = lawmaking - } - - ### INTRIGUE ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:poisons - } - trigger_else = { - OR = { - has_education_intrigue_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus } - intrigue >= high_skill_rating - } - } - } - localization_key = poisons - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:the_rumors_at_court - } - trigger_else = { - OR = { - has_education_intrigue_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus } - intrigue >= high_skill_rating - } - } - } - localization_key = the_rumors_at_court - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:the_art_of_love - } - trigger_else = { - OR = { - has_trait = lustful - has_focus_or_focus_trait_trigger = { FOCUS = intrigue_temptation_focus } - } - } - } - localization_key = the_art_of_love - } - - ### LEARNING ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:education_conversation_subject_learning_1 - } - trigger_else = { - OR = { - has_education_learning_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = learning_theology_focus } - learning >= high_skill_rating - } - } - } - localization_key = education_conversation_subject_learning_1 #theological treatises - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_tome_collection - } - trigger_else = { - OR = { - has_education_learning_trigger = yes - has_focus_or_focus_trait_trigger = { FOCUS = learning_scholarship_focus } - } - } - } - localization_key = my_tome_collection - } - - ### RELATIONS ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_daughter - } - trigger_else = { - any_child = { - is_male = no - reverse_opinion = { - target = PREV - value > 50 - } - } - } - } - localization_key = my_favorite_daughter - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_son - } - trigger_else = { - any_child = { - is_male = yes - reverse_opinion = { - target = PREV - value > 50 - } - } - } - } - localization_key = my_favorite_son - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_beloved_spouse - } - trigger_else = { - any_spouse = { - reverse_opinion = { - target = PREV - value > 50 - } - } - } - } - localization_key = my_beloved_spouse - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_friends - } - trigger_else = { - OR = { - num_of_relation_friend >= 1 - } - } - } - localization_key = my_friends - } - - ### MISC ### - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:parties_shehe_has_attended - } - trigger_else = { - OR = { - has_trait = diplomat - has_trait = lifestyle_reveler - has_trait = drunkard - } - } - } - localization_key = parties_shehe_has_attended - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_best_hunting_kills - } - trigger_else = { - has_trait = lifestyle_hunter - } - } - localization_key = my_best_hunting_kills - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - var:subject_of_interest = flag:herhis_favorite_food - } - trigger_else = { - has_trait = gluttonous - } - } - localization_key = my_favorite_food - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herselfhimself - } - trigger_else = { - has_trait = arrogant - } - } - localization_key = myself - } - text = { - trigger = { - trigger_if = { - limit = { has_variable = subject_of_interest } - always = no #not used yet: var:subject_of_interest = flag:herhis_ambitions - } - trigger_else = { - has_trait = ambitious - } - } - localization_key = my_ambitions - } - - text = { - trigger = { - always = no - } - fallback = yes - localization_key = fallback_conversation - } -} - -#Same as herhis_interesting_subject but without reference to any characters -subject_of_interest = { - type = character - random_valid = yes - - text = { - trigger = { has_education_martial_trigger = yes } - localization_key = education_conversation_subject_martial_2 #ancient campaigns - } - text = { - trigger = { has_education_martial_trigger = yes } - localization_key = troop_compositions - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = court_politics - } - text = { - trigger = { has_education_diplomacy_trigger = yes } - localization_key = court_alliances - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = trade_routes - } - text = { - trigger = { has_education_stewardship_trigger = yes } - localization_key = tax_levels - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = poisons - } - text = { - trigger = { has_education_intrigue_trigger = yes } - localization_key = the_rumors_at_court - } - text = { - trigger = { has_education_learning_trigger = yes } - localization_key = education_conversation_subject_learning_1 #theological treatises - } - text = { - trigger = { - any_child = { - reverse_opinion = { - target = PREV - value > 40 - } - } - } - localization_key = the_blessings_of_family - } - text = { - trigger = { - any_spouse = { - reverse_opinion = { - target = PREV - value > 50 - } - } - } - localization_key = the_blessings_of_marriage - } - text = { - trigger = { - OR = { - has_education_stewardship_trigger = yes - has_trait = greedy - } - } - localization_key = investment_opportunities - } - text = { - trigger = { - OR = { - has_education_martial_trigger = yes - has_trait = lifestyle_blademaster - } - } - localization_key = sword_practise - } - text = { - trigger = { - OR = { - has_education_learning_trigger = yes - has_trait = scholar - } - } - localization_key = tome_collections - } - text = { - trigger = { - OR = { - num_of_relation_friend > 0 - num_of_relation_best_friend > 0 - has_trait = diplomat - } - } - localization_key = friendship - } - text = { - trigger = { - OR = { - has_trait = diplomat - has_trait = lifestyle_reveler - has_trait = drunkard - } - } - localization_key = parties - } - text = { - trigger = { - has_trait = lifestyle_hunter - } - localization_key = hunting - } - text = { - trigger = { - OR = { - has_trait = strategist - has_education_martial_trigger = yes - } - } - localization_key = military_strategies - } - text = { - trigger = { - OR = { - has_trait = seducer - has_trait = lustful - } - } - localization_key = the_art_of_love - } - text = { - trigger = { has_trait = gluttonous } - localization_key = sugary_treats - } - text = { - trigger = { has_trait = just } - localization_key = lawmaking - } -} - - -MatchingConversationSubject = { - type = character - random_valid = yes - - text = { - trigger = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_martial_lifestyle_trait_trigger = yes - } - scope:second = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_martial_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_martial_1 #new strategies - } - text = { - trigger = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_martial_lifestyle_trait_trigger = yes - } - scope:second = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_martial_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_martial_2 #ancient campaigns - } - text = { - trigger = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_trait = lifestyle_hunter - has_trait = lifestyle_blademaster - } - scope:second = { - OR = { - has_trait = education_martial - has_lifestyle = martial_lifestyle - has_trait = lifestyle_hunter - has_trait = lifestyle_blademaster - } - } - } - localization_key = conversation_subject_fighting_techniques #how to bring a foe down - } - text = { - trigger = { - - OR = { - has_trait = education_diplomacy - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = seducer - has_lifestyle = diplomacy_lifestyle - } - scope:second = { - OR = { - has_lifestyle = diplomacy_lifestyle - has_trait = seducer - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = education_diplomacy - } - } - } - localization_key = education_conversation_subject_diplomacy_1 #other lords - } - text = { - trigger = { - OR = { - has_trait = education_diplomacy - has_lifestyle = diplomacy_lifestyle - has_trait = lifestyle_reveler - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = gregarious - } - scope:second = { - OR = { - has_lifestyle = diplomacy_lifestyle - has_trait = education_diplomacy - has_trait = lifestyle_reveler - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = gregarious - } - } - } - localization_key = education_conversation_subject_diplomacy_2 #the art of feasting - } - text = { - trigger = { - OR = { - has_trait = education_diplomacy - has_lifestyle = diplomacy_lifestyle - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = gregarious - } - scope:second = { - OR = { - has_lifestyle = diplomacy_lifestyle - has_trait = education_diplomacy - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = gregarious - } - } - } - localization_key = education_conversation_subject_charm #true charm - } - text = { - trigger = { - OR = { - has_trait = education_learning - has_lifestyle = learning_lifestyle - has_learning_lifestyle_trait_trigger = yes - } - scope:second = { - OR = { - has_trait = education_learning - has_lifestyle = learning_lifestyle - has_learning_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_learning_1 #theological treatises - } - text = { - trigger = { - OR = { - has_trait = education_learning - has_trait = lunatic - has_lifestyle = learning_lifestyle - has_learning_lifestyle_trait_trigger = yes - has_trait = zealous - has_trait = cynical - } - scope:second = { - OR = { - has_trait = education_learning - has_trait = lunatic - has_lifestyle = learning_lifestyle - has_learning_lifestyle_trait_trigger = yes - has_trait = zealous - has_trait = cynical - } - } - } - localization_key = education_conversation_subject_learning_2 #metaphysical conundrums - } - text = { - trigger = { - OR = { - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - has_trait = greedy - } - scope:second = { - OR = { - has_trait = greedy - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_stewardship_1 #gold minting reduction - } - text = { - trigger = { - OR = { - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - has_trait = diligent - } - scope:second = { - OR = { - has_trait = diligent - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_stewardship_2 #development of trade routes - } - text = { - trigger = { - OR = { - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - has_trait = diligent - has_trait = greedy - } - scope:second = { - OR = { - has_trait = diligent - has_trait = greedy - has_trait = education_stewardship - has_lifestyle = stewardship_lifestyle - has_stewardship_lifestyle_trait_trigger = yes - } - } - } - localization_key = education_conversation_subject_stewardship_3 #tax collection - } - text = { - trigger = { - OR = { - has_trait = education_intrigue - has_lifestyle = intrigue_lifestyle - has_intrigue_lifestyle_trait_trigger = yes - has_trait = paranoid - } - scope:second = { - OR = { - has_trait = education_intrigue - has_lifestyle = intrigue_lifestyle - has_intrigue_lifestyle_trait_trigger = yes - has_trait = paranoid - } - } - } - localization_key = education_conversation_subject_intrigue_1 #shadowy rumors - } - text = { - trigger = { - OR = { - has_trait = education_intrigue - has_lifestyle = intrigue_lifestyle - has_intrigue_lifestyle_trait_trigger = yes - has_trait = paranoid - AND = { - has_trait = ambitious - has_trait = deceitful - } - } - scope:second = { - OR = { - has_trait = education_intrigue - has_lifestyle = intrigue_lifestyle - has_intrigue_lifestyle_trait_trigger = yes - has_trait = paranoid - AND = { - has_trait = ambitious - has_trait = deceitful - } - } - } - } - localization_key = education_conversation_subject_intrigue_2 #dagger-smiths - } - - text = { - trigger = { - always = no - } - fallback = yes - localization_key = conversation_subject_weather - } -} diff --git a/common/customizable_localization/00_councillor_custom_loc.txt b/common/customizable_localization/00_councillor_custom_loc.txt deleted file mode 100644 index 204cb2ce7b..0000000000 --- a/common/customizable_localization/00_councillor_custom_loc.txt +++ /dev/null @@ -1,67 +0,0 @@ -CouncilPosition = { - type = character - - text = { - trigger = { - has_council_position = councillor_chancellor - } - fallback = yes - localization_key = councillor_chancellor - } - - text = { - trigger = { - has_council_position = councillor_marshal - } - localization_key = councillor_marshal - } - - - text = { - trigger = { - has_council_position = councillor_steward - } - localization_key = councillor_steward - } - - - text = { - trigger = { - has_council_position = councillor_spymaster - } - localization_key = councillor_spymaster - } - - text = { - trigger = { - has_council_position = councillor_court_chaplain - } - localization_key = councillor_court_chaplain - } -} - -councillor_flavor_prop = { - type = character - - text = { - trigger = { has_council_position = councillor_chancellor } - localization_key = councillor_prop_scroll - } - - text = { - trigger = { has_council_position = councillor_marshal } - localization_key = councillor_prop_sword - } - - - text = { - trigger = { has_council_position = councillor_steward } - localization_key = councillor_prop_purse - } - - text = { - trigger = { always = yes } - fallback = yes - localization_key = councillor_prop_robe - } -} diff --git a/common/customizable_localization/00_custom_loc_sp.txt b/common/customizable_localization/00_custom_loc_sp.txt deleted file mode 100644 index 889e2ff8ce..0000000000 --- a/common/customizable_localization/00_custom_loc_sp.txt +++ /dev/null @@ -1,335 +0,0 @@ -##SPANISH CUSTOM LOC FOR CK3 -##Current loc keys in this file: -# -##GetOA (manco / manca) -##GetOAOpp -##GetElLa -##GetElLaCap -##GetElElla -##GetElEllaCap (él ella) -##GetDelDela (del de la) -##GetAlAla -##GetAlAlaCap -##GetLoLa (capturarlo / capturarla) -##GetLoLaCap (Lo amo/La amo) -##GetRleRla (oirle/ oírla) -##GetRleRlaCap (Le oí / La oí) -##GetEA (este/esta) -##GetXA (un/ una) -##GetOnOna (tristón/ tristona) -##GetInIna (borrachín/borrachina) -##GetEsEsa (francés / francesa) -# -#####Custom loc### -# -#defined_text = { -# name = GetOA -# text = { -# localisation_key = string_o_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_a_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -#defined_text = { -# name = GetOAOpp -# text = { -# localisation_key = string_a_SP -# trigger = { -# is_female = yes -# } -# } -# text = { -# localisation_key = string_o_SP -# trigger = { -# is_female = no -# } -# } -#} -# -### -# -## Ex: "[the] ruler" => "[el] rey/[la] reina" -#defined_text = { -# name = GetElLa -# text = { -# localisation_key = string_low_el_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_la_SP -# trigger = { -# is_female = yes -# } -# } -#} -## Ex: "[The] ruler" => "[El] rey/[La] reina" -#defined_text = { -# name = GetElLaCap -# text = { -# localisation_key = string_El_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_up_La_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "[he/she] is" => "[él/ella] es" -#defined_text = { -# name = GetElEllaCap -# text = { -# localisation_key = string_low_el2_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_ella_SP -# trigger = { -# is_female = yes -# } -# } -#} -## Ex. "[He/She] is" => "[Él/Ella] es" -#defined_text = { -# name = GetElElla -# text = { -# localisation_key = string_up_EL2_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_up_Ella_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "[of the] ruler" => "[del] rey/[de la] reina" -#defined_text = { -# name = GetDelDela -# text = { -# localisation_key = string_low_del_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_dela_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "[for the] ruler" => "[al] rey/[a la] reina" -#defined_text = { -# name = GetAlAla -# text = { -# localisation_key = string_al_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_ala_SP -# trigger = { -# is_female = yes -# } -# } -#} -## Ex: "[For the] ruler" => "[Al] rey/[A la] reina" -#defined_text = { -# name = GetAlAlaCap -# text = { -# localisation_key = string_Al_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_up_Ala_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "magnificient" => "magnífic[o]/magnífic[a]" -#defined_text = { -# name = GetoaDir -# text = { -# localisation_key = string_o_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_a_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "Spanish" => "un[ø]/un[a]" -#defined_text = { -# name = GetXA -# text = { -# localisation_key = string_X_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_a_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "stubborn" => "cabez[ón]/cabez[ona] -#defined_text = { -# name = GetOnOna -# text = { -# localisation_key = string_on_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_ona_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "drunkard" => "borrach[ín]/borrach[ina]" -#defined_text = { -# name = GetInIna -# text = { -# localisation_key = string_in_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_ina_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "catch [him/her]" => "capturar[lo/la]" -#defined_text = { -# name = GetLoLa -# text = { -# localisation_key = string_low_lo_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_la_SP -# trigger = { -# is_female = yes -# } -# } -#} -## Ex: "reach [him/her]" => Lo alcanzó / La alcanzó" -#defined_text = { -# name = GetLoLaCap -# text = { -# localisation_key = string_up_Lo_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_up_La_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "say [him/her]" => "decir[le/la]" -#defined_text = { -# name = GetRleRla -# text = { -# localisation_key = string_low_le_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_low_la_SP -# trigger = { -# is_female = yes -# } -# } -#} -## Ex: "Kill [him/her]" => "[Le/La] mató" -#defined_text = { -# name = GetRleRlaCap -# text = { -# localisation_key = string_up_Le_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_up_La_SP -# trigger = { -# is_female = yes -# } -# } -#} -# -# -## Ex: "French" => "franc[és/esa]" -#defined_text = { -# name = GetEsEsa -# text = { -# localisation_key = string_es_SP -# trigger = { -# is_female = no -# } -# } -# text = { -# localisation_key = string_esa_SP -# trigger = { -# is_female = yes -# } -# } -#} -# diff --git a/common/customizable_localization/00_de_body_part_custom_loc.txt b/common/customizable_localization/00_de_body_part_custom_loc.txt deleted file mode 100644 index 110068f863..0000000000 --- a/common/customizable_localization/00_de_body_part_custom_loc.txt +++ /dev/null @@ -1,328 +0,0 @@ -############################################ -## Scripted Localization for German Loc ## -### BY Kai Bagehorn ### -############################################ - -DE_1_HandHands = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = maimed } - localization_key = CustomLoc_DE_1_handhands_hand - } - - text = { - trigger = { - NOT = { has_trait = maimed } - } - localization_key = CustomLoc_DE_1_handhands_hands - fallback = yes - } -} - -DE_2_HandHands = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = maimed } - localization_key = CustomLoc_DE_2_handhands_hand - } - - text = { - trigger = { - NOT = { has_trait = maimed } - } - localization_key = CustomLoc_DE_2_handhands_hands - fallback = yes - } -} - -DE_1_ArmArms = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = maimed } - localization_key = CustomLoc_DE_1_armarms_arm - } - - text = { - trigger = { - NOT = { has_trait = maimed } - } - localization_key = CustomLoc_DE_1_armarms_arms - fallback = yes - } -} - -DE_2_ArmArms = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = maimed } - localization_key = CustomLoc_DE_2_armarms_arm - } - - text = { - trigger = { - NOT = { has_trait = maimed } - } - localization_key = CustomLoc_DE_2_armarms_arms - fallback = yes - } -} - -DE_3_ArmArms = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = maimed } - localization_key = CustomLoc_DE_3_armarms_arm - } - - text = { - trigger = { - NOT = { has_trait = maimed } - } - localization_key = CustomLoc_DE_3_armarms_arms - fallback = yes - } -} - -DE_1_EyeEyes = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = one_eyed } - localization_key = CustomLoc_DE_1_eyeeyes_eye - } - - text = { - trigger = { - NOT = { has_trait = one_eyed } - } - localization_key = CustomLoc_DE_1_eyeeyes_eyes - fallback = yes - } -} - -DE_2_EyeEyes = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = one_eyed } - localization_key = CustomLoc_DE_2_eyeeyes_eye - } - - text = { - trigger = { - NOT = { has_trait = one_eyed } - } - localization_key = CustomLoc_DE_2_eyeeyes_eyes - fallback = yes - } -} - -DE_3_EyeEyes = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = one_eyed } - localization_key = CustomLoc_DE_3_eyeeyes_eye - } - - text = { - trigger = { - NOT = { has_trait = one_eyed } - } - localization_key = CustomLoc_DE_3_eyeeyes_eyes - fallback = yes - } -} - -DE_4_EyeEyes = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = one_eyed } - localization_key = CustomLoc_DE_4_eyeeyes_eye - } - - text = { - trigger = { - NOT = { has_trait = one_eyed } - } - localization_key = CustomLoc_DE_4_eyeeyes_eyes - fallback = yes - } -} - -DE_5_EyeEyes = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = one_eyed } - localization_key = CustomLoc_DE_5_eyeeyes_eye - } - - text = { - trigger = { - NOT = { has_trait = one_eyed } - } - localization_key = CustomLoc_DE_5_eyeeyes_eyes - fallback = yes - } -} - -DE_1_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_1_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_1_maskface_face - fallback = yes - } -} - -DE_2_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_2_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_2_maskface_face - fallback = yes - } -} - -DE_3_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_3_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_3_maskface_face - fallback = yes - } -} - -DE_4_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_4_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_4_maskface_face - fallback = yes - } -} - -DE_5_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_5_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_5_maskface_face - fallback = yes - } -} - -DE_6_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_6_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_6_maskface_face - fallback = yes - } -} - -DE_7_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_7_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_7_maskface_face - fallback = yes - } -} - -DE_8_MaskFace = { - log_loc_errors = no - type = character - - text = { - trigger = { has_trait = disfigured } - localization_key = CustomLoc_DE_8_maskface_mask - } - - text = { - trigger = { - NOT = { has_trait = disfigured } - } - localization_key = CustomLoc_DE_8_maskface_face - fallback = yes - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_de_single_combat_custom_loc.txt b/common/customizable_localization/00_de_single_combat_custom_loc.txt deleted file mode 100644 index 830f448062..0000000000 --- a/common/customizable_localization/00_de_single_combat_custom_loc.txt +++ /dev/null @@ -1,1131 +0,0 @@ -############################################ -## Scripted Localization for German Loc ## -### BY Kai Bagehorn ### -############################################ - -DE_1_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_1_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_1_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_1_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_1_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_1_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_1_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_1_grit_type_dry_grass - } -} - -DE_2_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_2_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_2_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_2_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_2_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_2_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_2_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_2_grit_type_dry_grass - } -} - -DE_3_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_3_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_3_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_3_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_3_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_3_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_3_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_3_grit_type_dry_grass - } -} - -DE_4_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_4_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_4_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_4_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_4_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_4_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_4_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_4_grit_type_dry_grass - } -} - -DE_5_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_5_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_5_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_5_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_5_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_5_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_5_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_5_grit_type_dry_grass - } -} - -DE_6_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_6_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_6_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_6_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_6_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_6_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_6_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_6_grit_type_dry_grass - } -} - -DE_7_GritType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = CustomLoc_DE_7_grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_7_grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_7_grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = CustomLoc_DE_7_grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = CustomLoc_DE_7_grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = CustomLoc_DE_7_grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_7_grit_type_dry_grass - } -} - -DE_1_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_1_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_1_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_1_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_1_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_1_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_1_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_1_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_1_ground_type_grass - } -} - -DE_2_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_2_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_2_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_2_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_2_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_2_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_2_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_2_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_2_ground_type_grass - } -} - -DE_3_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_3_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_3_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_3_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_3_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_3_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_3_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_3_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_3_ground_type_grass - } -} - -DE_4_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_4_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_4_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_4_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_4_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_4_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_4_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_4_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_4_ground_type_grass - } -} - -DE_5_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_5_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_5_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_5_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_5_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_5_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_5_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_5_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_5_ground_type_grass - } -} - -DE_6_GroundType = { - log_loc_errors = no - - type = character - - text = { - trigger = { - exists = scope:locale - #NOT = { scope:locale = flag:wilderness } - } - localization_key = CustomLoc_DE_6_ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = CustomLoc_DE_6_ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = CustomLoc_DE_6_ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = CustomLoc_DE_6_ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = CustomLoc_DE_6_ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = CustomLoc_DE_6_ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = CustomLoc_DE_6_ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = CustomLoc_DE_6_ground_type_grass - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_diarchy_custom_loc.txt b/common/customizable_localization/00_diarchy_custom_loc.txt index bc3fc05c71..a3593f01c5 100644 --- a/common/customizable_localization/00_diarchy_custom_loc.txt +++ b/common/customizable_localization/00_diarchy_custom_loc.txt @@ -332,3 +332,2241 @@ GetCustomTooltip_DiarchAppointmentCourtlies = { } text = { localization_key = diarch.succession_offence.empty } } + +################################################## +# #Vizier Extravagance + +# Note: I've tagged stuff below as either "historically attested" where we know someone definitely did it (generally the caliph's vizier, though not always) or else "fictional" where we _don't_ have evidence someone did it. With the exception of some obviously tongue-in-cheek examples, stuff placed under fictional isn't to indicate that we know a thing _wasn't_ practiced, just that, at time of writing, we don't have specific examples for 'em (or, for a couple, examples are _markedly_ out of period but the practice could easily be recurrent). + +# Tier 1 custom locs. +VizierExtravagance_T1_Treasure = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Excessive hankerchiefs. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.treasure.hankerchiefs + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = eccentric } + } + } + } + ## Fine perfumes, cosmetics, and ointments. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.treasure.cosmetics + } + ## Jewellery. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.treasure.jewellery + } + ## Furniture. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.treasure.furniture + # Humble characters most likely to avoid personal ostentation, so we weight up furniture for them. + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = humble } + } + } + } + ## Clothing. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.treasure.clothing + } + ## Ostentatious hats. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.treasure.hats + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Collection of low-tier religious relics. + ### Fictional but probable. + text = { + trigger = { + diarch = { + faith = { + NOT = { has_doctrine_parameter = destroying_artifacts_is_pious } + } + } + } + localization_key = viz_extravagance.t1.treasure.relics + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } + ## Surprising quantities of drugs. + ### Fictional but probable. + text = { + trigger = { + diarch = { + NOR = { + has_trait = temperate + drinks_alcohol_trigger = yes + } + } + } + localization_key = viz_extravagance.t1.treasure.drugs + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = gluttonous + has_trait = hashishiyah + has_trait = drunkard + } + } + } + } + } + ## Expensive game pieces. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = gregarious } + } + localization_key = viz_extravagance.t1.treasure.game_pieces + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## Ulta-precise hourglasses. + text = { + trigger = { + diarch = { has_trait = impatient } + } + localization_key = viz_extravagance.t1.treasure.hourglasses + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = impatient } + } + } + } +} +VizierExtravagance_T1_Activities = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Charitable parades. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.activities.parades + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = generous + has_trait = compassionate + } + } + } + } + } + ## Backyard festivals. + ### Fictional - well, period fictional, but this was something the local landholders did with the abbey & its grounds near where I grew up, so I'm guessing prior Large Building Owners™ probably thought of it too. + text = { + localization_key = viz_extravagance.t1.activities.festivals + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = trusting } + } + } + } + ## Charity auctions. + ### Fictional. + text = { + localization_key = viz_extravagance.t1.activities.auctions + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = generous + has_trait = compassionate + } + } + } + } + } + ## Feasted local nobility. + ### Fictional. + text = { + localization_key = viz_extravagance.t1.activities.feasts + } + ## Board game tournaments. + ### Fictional. + text = { + localization_key = viz_extravagance.t1.activities.board_game_tourneys + } + ## Pigeon racing. + ### Historically attested - albeit mainly the preserve of eunuchs. + text = { + localization_key = viz_extravagance.t1.activities.pigeon_racing + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Discrete parties (orgies). + ### Fictional but probable. + text = { + trigger = { + diarch = { + has_trait = lustful + # If the faith calls for this stuff, this'd hardly be unusual. + faith = { + NOT = { trait_is_virtue = lustful } + } + } + } + localization_key = viz_extravagance.t1.activities.orgies + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lustful } + } + } + } + ## Weekly feasts. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = gregarious } + } + localization_key = viz_extravagance.t1.activities.feasts.weekly + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## Art exhibitions. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = shy } + } + localization_key = viz_extravagance.t1.activities.exhibitions + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = shy } + } + } + } + ## Open house parties. + ### Fictional. + text = { + trigger = { + diarch = { + has_trait = trusting + NOT = { has_trait = shy } + } + } + localization_key = viz_extravagance.t1.activities.feasts.commoners + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = trusting } + } + } + } +} +VizierExtravagance_T1_Property = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Stately townhouse. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.property.townhouse + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = humble } + } + } + } + ## Various minor business concerns. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.property.minor_businesses + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = greedy } + } + } + } + ## A small arena for horse sports. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.property.small_arena + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = profligate } + } + } + } + ## A private manse. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.property.manse + } + ## A key toll road. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t1.property.toll_road + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = greedy + has_trait = arbitrary + } + } + } + } + } + ## A network of trading agents. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.property.agent_network + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = greedy } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Personal rooftop garden. + ### Fictional. + text = { + trigger = { + diarch = { + OR = { + has_trait = content + has_trait = lifestyle_gardener + has_trait = lifestyle_herbalist + culture = { has_cultural_parameter = can_appoint_court_gardener } + } + } + } + localization_key = viz_extravagance.t1.property.rooftop_garden + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = content } + } + } + } + ## Bought market inspectors. + ### Fictional but probable. + text = { + trigger = { + diarch = { + OR = { + has_trait = arbitrary + AND = { + has_trait = deceitful + NOT = { has_trait = just } + } + } + } + } + localization_key = viz_extravagance.t1.property.market_officials_on_payroll + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = arbitrary + has_trait = deceitful + } + } + } + } + } + ## A cheap hostel. + ### Fictional - not actually too probable, as they'd generally likely just make it free for the optics, so mostly here to give humble/compassionate/content something to grab. + text = { + trigger = { + diarch = { + OR = { + has_trait = compassionate + AND = { + OR = { + has_trait = humble + has_trait = content + } + NOR = { + has_trait = callous + has_trait = sadistic + } + } + } + } + } + localization_key = viz_extravagance.t1.property.hostel + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = compassionate + has_trait = humble + has_trait = content + } + } + } + } + } + ## A gang of ruthless street thugs and their territory. + text = { + trigger = { + diarch = { + OR = { + has_trait = ambitious + has_trait = callous + has_trait = sadistic + } + } + } + localization_key = viz_extravagance.t1.property.gangers + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = ambitious + has_trait = callous + has_trait = sadistic + } + } + } + } + } +} +VizierExtravagance_T1_Charity = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## An allowance for taking in and educating orphans. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.orphans + } + ## An allowance for the repair of damaged buildings whose owners are too poor to fix 'em. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.building_repair + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = architect } + } + } + } + ## Subsidising several annual religious feasts for the poor. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.feasts.religious + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = zealous + has_trait = gregarious + has_trait = compassionate + } + } + } + } + } + ## An endowment for widows/widowers. + ### Historically attested. + ### Female soldiers: widowers. + text = { + trigger = { + dummy_female = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + } + } + localization_key = viz_extravagance.t1.charity.widowers + weight_multiplier = { + modifier = { + add = 10 + # Lived experiences. + diarch = { + has_trait = education_martial + has_trait = compassionate + } + } + } + } + ### Male soldiers: widows. + text = { + trigger = { + dummy_male = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + } + } + localization_key = viz_extravagance.t1.charity.widows + weight_multiplier = { + modifier = { + add = 10 + # Lived experiences. + diarch = { + has_trait = education_martial + has_trait = compassionate + } + } + } + } + ### And if you allow both, then we allow both and just pick one. + ## A fund for beggars and the destitute. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.beggars + } + ## A fund for buying replacement jugs for child servants who accidentally smash theirs whilst drawing water for the household. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.awkward_children + } + ## A small guard station + guard for civil service buildings. + ### Historically attested. + text = { + localization_key = viz_extravagance.t1.charity.civil_service.guard + # Weight up the least-weird sounding option for callous'n'sadistic characters. + weight_multiplier = { + modifier = { + add = 1000 + diarch = { + OR = { + has_trait = sadistic + has_trait = callous + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## An allowance for feeding the birds of the capital. + ### Historically attested. + #### And furthermore: n'aww. + text = { + trigger = { + exists = capital_county + diarch = { + OR = { + has_trait = compassionate + has_trait = humble + } + } + } + localization_key = viz_extravagance.t1.charity.birds + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = compassionate + has_trait = humble + } + } + } + } + } + ## Funding the creation of an isolated religious community. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = zealous } + } + localization_key = viz_extravagance.t1.charity.monastery + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } + ## Extra pay for judges to spend more time hearing cases and travelling their circuits. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = just } + } + localization_key = viz_extravagance.t1.charity.judges + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = just } + } + } + } + ## Paying for free kitchens to serve the poor. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = compassionate } + } + localization_key = viz_extravagance.t1.charity.kitchens + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = compassionate } + } + } + } +} + +# Tier 2 custom locs. +VizierExtravagance_T2_Treasure = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Cabient of foreign curiosities. + ### Fictional & lightly anachronistic (at least as a widespread practice), but still fairly probable. + text = { + localization_key = viz_extravagance.t2.treasure.cabinet_of_curiosities + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## Collections of gemstones. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.treasure.gems + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = greedy } + } + } + } + ## Clever artful sculptures. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.treasure.sculpture + } + ## Decorative gilded weapons & armour for display. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t2.treasure.decorative_martial_gear + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_martial } + } + } + } + ## Bezoar-cut cutlery. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.treasure.bezoar_cutlery + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = education_intrigue + has_trait = deceitful + has_trait = schemer + } + } + } + } + } + ## Fly-stones. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.treasure.fly_stones + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Pre-measured library of bribery purses. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = deceitful } + } + localization_key = viz_extravagance.t2.treasure.indexed_bribes + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = deceitful } + } + } + } + ## Grand map of the known world. + ### Historically attested. + text = { + trigger = { + # More than one kind of person daydreams about far-off lands. + diarch = { + OR = { + has_trait = shy + has_trait = ambitious + } + } + } + localization_key = viz_extravagance.t2.treasure.map_of_world + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = shy + has_trait = ambitious + } + } + } + } + } + ## Bling for your steed. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = arrogant } + } + localization_key = viz_extravagance.t2.treasure.horse_armour + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = arrogant } + } + } + } + ## Comically enormous crockery. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = gluttonous } + } + localization_key = viz_extravagance.t2.treasure.crockery + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gluttonous } + } + } + } +} +VizierExtravagance_T2_Activities = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Noble pool parties. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.activities.feasts.pool + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## Horse races w. gambling. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.activities.gambling.horse + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = profligate } + } + } + } + ## Interactive feasts. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.activities.feasts.interactive + } + ## Week-long parties. + ### Fictional. + text = { + localization_key = viz_extravagance.t2.activities.feasts.long + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## Live concerts. + ### Fictional but probable - albeit not in the modern mould. + text = { + localization_key = viz_extravagance.t2.activities.concerts + } + ## Elaborate plays. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t2.activities.theatre + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Poetry readings. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = poet } + } + localization_key = viz_extravagance.t2.activities.poetry + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = poet } + } + } + } + ## Amnesties for repentant criminals. + ### Fictional. + text = { + trigger = { + diarch = { + OR = { + has_trait = forgiving + AND = { + has_trait = honest + NOT = { has_trait = vengeful } + } + } + } + } + localization_key = viz_extravagance.t2.activities.amnesties + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = forgiving + has_trait = honest + } + } + } + } + } + ## Animal fights. + ### Fictional but probable. + text = { + trigger = { + diarch = { + has_trait = wrathful + NOT = { has_trait = compassionate } + } + } + localization_key = viz_extravagance.t2.activities.animal_baiting + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = wrathful } + } + } + } + ## Passionate religious sermons. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = zealous } + } + localization_key = viz_extravagance.t2.activities.sermons + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } +} +VizierExtravagance_T2_Property = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## An important monopoly on certain staples. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t2.property.monopoly + } + ## A famous market of exotic wares. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.property.exotic_market + } + ## An industrious mine. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t2.property.mine + } + ## An expansive set of warehouses. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.property.warehouses + } + ## A network of loyal messengers. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.property.messenger_network + } + ## A long lane of important workshops. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t2.property.workshops + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Personal temple. + ### Fictional but probable. + text = { + trigger = { + diarch = { + NOT = { has_trait = cynical } + } + } + localization_key = viz_extravagance.t2.property.personal_temple + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } + ## Small fort in a dangerous, but lucrative, hinterland. + ### Fictional + text = { + trigger = { + diarch = { has_trait = brave } + } + localization_key = viz_extravagance.t2.property.fort + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = brave } + } + } + } + ## A formidably defended personal treasury. + ### Fictional. + text = { + trigger = { + diarch = { + OR = { + has_trait = stubborn + has_trait = greedy + } + } + } + localization_key = viz_extravagance.t2.property.treasury + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = stubborn + has_trait = greedy + } + } + } + } + } + ## A small fortified palace with various secret passages and escape routes. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = craven } + } + localization_key = viz_extravagance.t2.property.defensible_palace + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = craven } + } + } + } +} +VizierExtravagance_T2_Charity = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Paying for several schools for young children. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.schools + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## Creating hospitals to treat the poor. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.hospitals + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = compassionate } + } + } + } + ## Paying for funerals for those who died too poor or whilst travelling. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.poor_funerals + } + ## Sponsoring local philosophical scholars. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.scholars.philosophical + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## Sponsoring local legal scholars. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.scholars.legal + } + ## Supplemental pay for key civil service positions. + ### Historically attested. + text = { + localization_key = viz_extravagance.t2.charity.civil_service.extra_positions + # Weight up the least-weird sounding option for callous'n'sadistic characters. + weight_multiplier = { + modifier = { + add = 1000 + diarch = { + OR = { + has_trait = sadistic + has_trait = callous + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Funding the creation/expansion of a police force for the capital — and uhh, doing what private police tend to do. + ### Fictional but probable. + text = { + trigger = { + exists = capital_barony + diarch = { has_trait = vengeful } + } + localization_key = viz_extravagance.t2.charity.police + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = vengeful } + } + } + } + ## Sponsoring local theological scholars. + ### Historically attested. + text = { + trigger = { + diarch = { + NOT = { has_trait = cynical } + } + } + localization_key = viz_extravagance.t2.charity.scholars.theological + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } + ## Sponsoring local mystical scholars. + ### Historically attested. + text = { + trigger = { + diarch.faith = { + NOT = { has_doctrine_parameter = witchcraft_illegal } + } + } + localization_key = viz_extravagance.t2.charity.scholars.mystical + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = lifestyle_mystic + # Technically the stereotype of the rich man funding occultists is really, really anachronistic but... + has_trait = eccentric + } + } + } + } + } + ## Paying to have orphans circumcised. + ### Historically attested. + #### Really, really frequently historically attested. + ##### They held celebratory circumcision banquests, even. + ###### Generally this was a prerequisite/bonus attached to caring for male orphans in the relevant faiths. + text = { + trigger = { + religion_has_circumcision_trigger = yes + diarch = { religion_has_circumcision_trigger = yes } + } + localization_key = viz_extravagance.t2.charity.circumcision + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } + ## Paying for roaming preachers to take the faith to the streets. + ### Fictional. + text = { + trigger = { + faith = diarch.faith + diarch = { has_trait = zealous } + } + localization_key = viz_extravagance.t2.charity.preachers + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = zealous } + } + } + } +} + +# Tier 3 custom locs. +VizierExtravagance_T3_Treasure = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Fancy mirrors. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.treasure.mirrors + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = arrogant } + } + } + } + ## A collection of parasols. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.treasure.parasols + } + ## A massive silken travelling tent. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.treasure.silk_bigtop + } + ## A warehouse of exotic fabrics. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.treasure.fabrics + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = greedy } + } + } + } + ## Exotic animals from far away kept as pets. + text = { + localization_key = viz_extravagance.t3.treasure.exotic_pets + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = eccentric } + } + } + } + ## Truly phenomenal carpets. + ### Historically attested - and weirdly enthusiastically, I might add. + text = { + localization_key = viz_extravagance.t3.treasure.carpets + weight_multiplier = { + modifier = { + add = 10 + # Sometimes you just want to lie down, y'know? + diarch = { has_trait = lazy } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## A woven golden mattress. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = lazy } + } + localization_key = viz_extravagance.t3.treasure.gold_mattress + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lazy } + } + } + } + ## Exotic birth control solutions. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = lustful } + } + localization_key = viz_extravagance.t3.treasure.birth_control + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lustful } + } + } + } + ## A multi-articulated sculpture of the vizier, who pose and clothing can be changed endlessly. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = fickle } + } + localization_key = viz_extravagance.t3.treasure.sculpture.articulated + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = fickle } + } + } + } + ## Five hundred crystal pots containing rare plants. + ### Fictional-ish; pots ain't, plants are. + text = { + trigger = { + diarch = { + OR = { + has_trait = lifestyle_gardener + has_trait = lifestyle_herbalist + culture = { has_cultural_parameter = can_appoint_court_gardener } + } + } + } + localization_key = viz_extravagance.t3.treasure.plants + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = lifestyle_gardener + has_trait = lifestyle_herbalist + } + } + } + } + } +} +VizierExtravagance_T3_Activities = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Surprise give-away feasts (e.g., hiding a gem inside a chicken). + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.activities.feasts.surprise + } + ## Gift packages for neighbouring nobles. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.activities.aid + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = gregarious + has_trait = diplomat + } + } + } + } + } + ## Lively scholarly debates. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.activities.scholars.debates + } + ## Overt give-away feasts. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.activities.feasts.give_away + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = generous } + } + } + } + ## Land & livestock grants. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.activities.land_and_livestock_grants + } + ## Spectacle feasts. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.activities.feasts.spectacle + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Shower silver coins over party guests. + ### Historically attested. + text = { + trigger = { + diarch = { has_trait = generous } + } + localization_key = viz_extravagance.t3.activities.feasts.coin_shower + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = generous } + } + } + } + ## Palanquin races. + ### Fictional. Sadly. + text = { + trigger = { + diarch = { has_trait = eccentric } + } + localization_key = viz_extravagance.t3.activities.gambling.palanquin + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = eccentric } + } + } + } + ## Debauched parties. + ### Fictional but probable. + text = { + # Unlike the subtler ones, anyone can make a name for themselves here, regardless of what their faith says. + ## For good or for ill. + trigger = { + diarch = { has_trait = lustful } + } + localization_key = viz_extravagance.t3.activities.orgies + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lustful } + } + } + } + ## Elaborate showcase parades. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = arrogant } + } + localization_key = viz_extravagance.t3.activities.parades + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = arrogant } + } + } + } +} +VizierExtravagance_T3_Property = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Cushioned pool. + ### Fictional. + text = { + localization_key = viz_extravagance.t3.property.pool.cushions + } + ## Labyrinthine business interests. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.property.businesses + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = greedy } + } + } + } + ## Gargantuan palace. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.property.palace.huge + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = lazy + has_trait = arrogant + } + } + } + } + } + ## Personal bathhouse. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.property.bathhouse + } + ## Colossal stables. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t3.property.stables + } + ## A large pool layered with gold coins. + ### Fictional. + text = { + localization_key = viz_extravagance.t3.property.pool.gold + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = greedy + has_trait = avaricious + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## A commercial fleet. + ### Fictional but probable. + text = { + trigger = { + any_held_county = { is_coastal_county = yes } + } + localization_key = viz_extravagance.t3.property.fleet.commercial + } + ## Reclaimed businesses. + ### Historically attested. + text = { + trigger = { + diarch = { + OR = { + has_trait = arbitrary + AND = { + has_trait = greedy + NOT = { has_trait = just } + } + } + } + } + localization_key = viz_extravagance.t3.property.business.stolen + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = arbitrary + has_trait = greedy + } + } + } + } + } + ## Entire capital districts. + ### Historically attested. + text = { + trigger = { + diarch = { exists = capital_county } + } + localization_key = viz_extravagance.t3.property.tycoon + } + ## Den of Vice + ### Fictional but probable. + text = { + trigger = { + diarch = { + OR = { + has_trait = gluttonous + AND = { + faith = { trait_is_virtue = gluttonous } + has_trait = zealous + } + has_trait = drunkard + has_trait = hashishiyah + } + } + } + localization_key = viz_extravagance.t3.property.den_of_vice + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = gluttonous + has_trait = drunkard + has_trait = hashishiyah + } + } + } + } + } +} +VizierExtravagance_T3_Charity = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Patronising observatories. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.observatories + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## Patronising institutions of higher learning. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.universities + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = scholar } + } + } + } + ## Patronising libraries. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.libraries + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## Paying for the construction and maintenance of public baths. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.bathhouses + } + ## Paying for advanced medical equipment for local hospitals. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.hospitals.equipment + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lifestyle_physician } + } + } + } + ## Paying for extra positions within the administration to exist. + ### Historically attested. + text = { + localization_key = viz_extravagance.t3.charity.civil_service.expansion + # Weight up the least-weird sounding option for callous'n'sadistic characters. + weight_multiplier = { + modifier = { + add = 1000 + diarch = { + OR = { + has_trait = sadistic + has_trait = callous + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Paying for the construction and maintenance of watermills. + ### Historically attested. + text = { + trigger = { + holds_county_with_water_trigger = yes + culture = { has_innovation = innovation_windmills } + } + localization_key = viz_extravagance.t3.charity.watermills + } + ## Paying for network of beggar-spies. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = paranoid } + } + localization_key = viz_extravagance.t3.charity.beggar_spies + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = paranoid } + } + } + } + ## Creation & fill of water tanks for the Hajj + ### Historically attested. + #text = { + # trigger = { + # diarch.faith = { + # religion = religion:islam_religion + # NOT = { has_doctrine_parameter = forbidden_from_pilgrimage } + # } + # } + # localization_key = viz_extravagance.t3.charity.hajj_water_tanks + # weight_multiplier = { + # modifier = { + # add = 10 + # diarch = { + # OR = { + # has_trait = zealous + # has_trait = pilgrim + # } + # } + # } + # } + #} + ## Donating gear to holy warriors. + ### Historically attested. + text = { + trigger = { + diarch = { + has_trait = zealous + faith = { + this = liege.faith + NOT = { has_doctrine_parameter = holy_wars_forbidden } + } + } + } + localization_key = viz_extravagance.t3.charity.holy_warrior_gear + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = zealous + has_trait = faith_warrior + has_trait = holy_warrior + } + } + } + } + } +} + +# Tier 4 custom locs. +VizierExtravagance_T4_Treasure = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Literal thousands of cushions. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.treasure.cushions + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lazy } + } + } + } + ## An army's worth of decorative weapons and armour. + ### Historically attested. + #### Honestly I'm under-selling it. + ##### They weren't always decorative. + ###### Sometimes you just have four thousand military-grade saddles just... because... + text = { + localization_key = viz_extravagance.t4.treasure.martial_gear + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_martial } + } + } + } + ## A king's ransom in ambergris, perfumes, and exotic ointments. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.treasure.cosmetics + } + ## A vizierial office carved and furnished with the most expensive of metal-inlaid stone furniture. + ### Historically attested - sorta, common to do aspects of this but rarely all at the same time. + text = { + localization_key = viz_extravagance.t4.treasure.office + # Humble characters most likely to avoid personal ostentation, so we weight up furniture for them. + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = humble } + } + } + } + ## The cutlery and crockery for a full feast of people, each piece once held by the ruler of some foreign or dead empire. + ### Historically attested but heavily exaggerated; you were actually more likely to encounter _a_ set of this attached to some specific ruler. + text = { + localization_key = viz_extravagance.t4.treasure.crockery.historic + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = education_learning } + } + } + } + ## An artificial orchard of precious metal trees, with carved gem stone fruit. + ### Historically attested - surprisingly common, even. + text = { + localization_key = viz_extravagance.t4.treasure.precious_orchard + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = avaricious + has_trait = greedy + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## A personal flotilla of barques for transport. + ### Historically attested. + text = { + trigger = { + capital_county ?= { + OR = { + is_riverside_county = yes + is_coastal_county = yes + } + } + } + localization_key = viz_extravagance.t4.treasure.fleet.personal + } + ## A sword as long as three men. + ### Fictional. + text = { + trigger = { + diarch = { has_trait = wrathful } + } + localization_key = viz_extravagance.t4.treasure.massive_sword + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = wrathful } + } + } + } + ## Alchemical & potion ingredients, including those (reportedly) from mythical animals. + ### Historically attested. + text = { + trigger = { + diarch = { + OR = { + has_trait = eccentric + has_trait = lifestyle_mystic + has_trait = lifestyle_physician + has_trait = lifestyle_herbalist + } + } + } + localization_key = viz_extravagance.t4.treasure.mystic_ingredients + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = eccentric } + } + } + } + ## Illuminated manuscripts featuring apes. + ### Fictional but sadly apparently incredibly probable. + text = { + trigger = { + diarch = { + OR = { + learning <= 0 + AND = { + learning <= low_skill_rating + OR = { + has_trait = trusting + has_trait = profligate + } + } + } + } + } + weight_multiplier = 0.1 + localization_key = viz_extravagance.t4.treasure.sensible_investments_for_smart_adults + } +} +VizierExtravagance_T4_Activities = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Rose pool parties. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.activities.feasts.pool.rose + } + ## Legendary give-aways. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.activities.give_aways + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = generous } + } + } + } + ## Sprawling festivities. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.activities.feasts.big + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## World-renowned menagerie shows. + ### Fictional. + text = { + localization_key = viz_extravagance.t4.activities.menagerie + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lifestyle_hunter } + } + } + } + ## Local nobility aid packages. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.activities.aid + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = generous } + } + } + } + ## Magnanimous hosting of foreign embassies. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.activities.host + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## High stakes gambling. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = arbitrary } + } + localization_key = viz_extravagance.t4.activities.gambling.xtra_xtreme + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = arbitrary } + } + } + } + ## Elite costume parties. + ### Fictional. + text = { + trigger = { + diarch = { + OR = { + has_trait = eccentric + has_trait = deceitful + has_trait = gregarious + } + } + } + localization_key = viz_extravagance.t4.activities.masquerade + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = eccentric + has_trait = deceitful + has_trait = gregarious + } + } + } + } + } + ## Mercurial garden + ### Fictional. + text = { + trigger = { + diarch = { + OR = { + has_trait = fickle + has_trait = lifestyle_gardener + # We're a little more restrictive here than other garden triggers — gardening isn't actually the primary motivation. + } + } + } + localization_key = viz_extravagance.t4.activities.plants.ever_changing + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = fickle } + } + } + } + ## Delectable feasts. + text = { + trigger = { + diarch = { + has_trait = eccentric + OR = { + has_trait = cannibal + any_secret = { secret_type = secret_cannibal } + } + } + } + localization_key = viz_extravagance.t4.activities.feasts.cannibal + # Don't weight this up - it's not something we want to see very commonly. + } +} +VizierExtravagance_T4_Property = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Pool Palace. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.property.palace.pool + } + ## Vast countryside retreat. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.property.palace.spa + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = shy } + } + } + } + ## Private army. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.property.army + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = ambitious } + } + } + } + ## Tens of thousands of head of livestock. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.property.livestock + } + ## Guest Palace. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.property.palace.guest + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = shy } + } + } + } + ## Vizierial Spire. + ### Fictional. + text = { + localization_key = viz_extravagance.t4.property.spire + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = architect + has_trait = overseer + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Palace of the Month + ### Fictional but semi-probable; you wouldn't move literally _per_ month but they could and would own substantially more palaces than any one civil servant _needs_. + text = { + trigger = { + diarch = { + NOT = { has_trait = humble } + } + } + localization_key = viz_extravagance.t4.property.palace.monthly + } + ## Personal Bordello. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = lustful } + } + localization_key = viz_extravagance.t4.property.bordello + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lustful } + } + } + } + ## Personal debtor's prison. + ### Fictional but probable. + text = { + trigger = { + diarch = { + OR = { + has_trait = greedy + AND = { + has_trait = callous + NOT = { has_trait = generous } + } + } + } + } + localization_key = viz_extravagance.t4.property.gaol + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = greedy + has_trait = callous + } + } + } + } + } + ## Eponymous Hell. + ### Fictional. + #### Loosely based on the legendary Ashoka's Hell. + text = { + trigger = { + diarch = { has_trait = sadistic } + } + localization_key = viz_extravagance.t4.property.palace.torture + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = sadistic } + } + } + } +} +VizierExtravagance_T4_Charity = { + type = character + random_valid = yes + + # GENERIC OPTIONS + ## No triggers on the first ~6 or so, so we always have a decent variety of fallbacks. + ## Paying for waystations & caravanserais for long-distance travellers. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.charity.waystations + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lifestyle_traveler } + } + } + } + ## Funding the construction and maintenance of major bridges. + ### Historically attested. + text = { + localization_key = viz_extravagance.t4.charity.bridges + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = architect } + } + } + } + ## A staple food dole. + ### Fictional but probable. + text = { + localization_key = viz_extravagance.t4.charity.dole + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = compassionate } + } + } + } + ## Cheap urban housing. + ### Fictional. + text = { + localization_key = viz_extravagance.t4.charity.housing + } + ## Sprawling public gardens. + ### Fictional. + text = { + localization_key = viz_extravagance.t4.charity.gardens + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = lifestyle_gardener } + } + } + } + ## Paying for organised local fire services. + ### Fictional. + text = { + localization_key = viz_extravagance.t4.charity.civil_service.fire + # Weight up the least-weird sounding option for callous'n'sadistic characters. + weight_multiplier = { + modifier = { + add = 1000 + diarch = { + OR = { + has_trait = sadistic + has_trait = callous + } + } + } + } + } + # TRIGGERED OPTIONS + ## Anything a bit more specific from hereon in. + ## Paying for the construction and maintenance of aqueducts. + ### Historically attested. + text = { + trigger = { holds_county_with_water_trigger = yes } + localization_key = viz_extravagance.t4.charity.aqueducts + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = architect } + } + } + } + ## A grand public festival. + ### Fictional but probable. + text = { + trigger = { + diarch = { has_trait = gregarious } + } + localization_key = viz_extravagance.t4.charity.festivals + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = gregarious } + } + } + } + ## A fund for people to go on pilgrimage. + ### Historically attested. + text = { + trigger = { + diarch = { + NOR = { + has_trait = cynical + faith = { has_doctrine_parameter = forbidden_from_pilgrimage } + } + } + } + localization_key = viz_extravagance.t4.charity.pilgrimage + weight_multiplier = { + modifier = { + add = 10 + diarch = { + OR = { + has_trait = zealous + has_trait = pilgrim + } + } + } + } + } + ## Loan remittance service. + text = { + trigger = { + diarch = { has_trait = generous } + } + localization_key = viz_extravagance.t4.charity.loans + weight_multiplier = { + modifier = { + add = 10 + diarch = { has_trait = generous } + } + } + } +} diff --git a/common/customizable_localization/00_dynasty_custom_loc.txt b/common/customizable_localization/00_dynasty_custom_loc.txt deleted file mode 100644 index 7297f887b6..0000000000 --- a/common/customizable_localization/00_dynasty_custom_loc.txt +++ /dev/null @@ -1,81 +0,0 @@ -# Level of splendor -DynastyPrestigeLevel = { - type = character - - text = { - trigger = { - dynasty = { dynasty_prestige_level >= 10 } - } - localization_key = custom_loc_dynasty_prestige_level_10 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 9 } - } - localization_key = custom_loc_dynasty_prestige_level_9 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 8 } - } - localization_key = custom_loc_dynasty_prestige_level_8 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 7 } - } - localization_key = custom_loc_dynasty_prestige_level_7 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 6 } - } - localization_key = custom_loc_dynasty_prestige_level_6 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 5 } - } - localization_key = custom_loc_dynasty_prestige_level_5 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 4 } - } - localization_key = custom_loc_dynasty_prestige_level_4 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 3 } - } - localization_key = custom_loc_dynasty_prestige_level_3 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 2 } - } - localization_key = custom_loc_dynasty_prestige_level_2 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level = 1 } - } - localization_key = custom_loc_dynasty_prestige_level_1 - } - - text = { - trigger = { - dynasty = { dynasty_prestige_level <= 0 } - } - localization_key = custom_loc_dynasty_prestige_level_0 - } -} diff --git a/common/customizable_localization/00_education_custom_loc.txt b/common/customizable_localization/00_education_custom_loc.txt deleted file mode 100644 index 664cbf07e3..0000000000 --- a/common/customizable_localization/00_education_custom_loc.txt +++ /dev/null @@ -1,918 +0,0 @@ -ChildhoodPersonalityTrait = { - type = character - - text = { - trigger = { has_trait = charming } - localization_key = ChildhoodPersonalityTrait_charming - } - - text = { - trigger = { has_trait = rowdy } - localization_key = ChildhoodPersonalityTrait_rowdy - } - - text = { - trigger = { has_trait = bossy } - localization_key = ChildhoodPersonalityTrait_bossy - } - - text = { - trigger = { has_trait = curious } - localization_key = ChildhoodPersonalityTrait_curious - } - - text = { - trigger = { has_trait = pensive } - localization_key = ChildhoodPersonalityTrait_pensive - } -} - -GoodOrBadChildhoodTraitMatch = { - type = character - - #Good trait matches - text = { - trigger = { - had_martial_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_martial - rank >= 3 - } - } - localization_key = martial_good_trait_match_good_outcome - } - - text = { - trigger = { - had_martial_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_martial - rank <= 2 - } - has_trait_rank = { - trait = education_martial - rank >= 1 - } - } - localization_key = martial_good_trait_match_bad_outcome - } - - text = { - trigger = { - had_diplomacy_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_diplomacy - rank >= 3 - } - } - localization_key = diplomacy_good_trait_match_good_outcome - } - - text = { - trigger = { - had_diplomacy_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_diplomacy - rank <= 2 - } - has_trait_rank = { - trait = education_diplomacy - rank >= 1 - } - } - localization_key = diplomacy_good_trait_match_bad_outcome - } - - text = { - trigger = { - had_stewardship_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_stewardship - rank >= 3 - } - } - localization_key = stewardship_good_trait_match_good_outcome - } - - text = { - trigger = { - had_stewardship_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_stewardship - rank <= 2 - } - has_trait_rank = { - trait = education_stewardship - rank >= 1 - } - } - localization_key = stewardship_good_trait_match_bad_outcome - } - - text = { - trigger = { - had_intrigue_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_intrigue - rank >= 3 - } - } - localization_key = intrigue_good_trait_match_good_outcome - } - - text = { - trigger = { - had_intrigue_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_intrigue - rank <= 2 - } - has_trait_rank = { - trait = education_intrigue - rank >= 1 - } - } - localization_key = intrigue_good_trait_match_bad_outcome - } - - text = { - trigger = { - had_learning_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_learning - rank >= 3 - } - } - localization_key = learning_good_trait_match_good_outcome - } - - text = { - trigger = { - had_learning_education_affinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_learning - rank <= 2 - } - has_trait_rank = { - trait = education_learning - rank >= 1 - } - } - localization_key = learning_good_trait_match_bad_outcome - } - - #Bad trait matches - text = { - trigger = { - had_martial_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_martial - rank >= 3 - } - } - localization_key = martial_bad_trait_match_good_outcome - } - - text = { - trigger = { - had_martial_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_martial - rank <= 2 - } - has_trait_rank = { - trait = education_martial - rank >= 1 - } - } - localization_key = martial_bad_trait_match_bad_outcome - } - - text = { - trigger = { - had_diplomacy_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_diplomacy - rank >= 3 - } - } - localization_key = diplomacy_bad_trait_match_good_outcome - } - - text = { - trigger = { - had_diplomacy_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_diplomacy - rank <= 2 - } - has_trait_rank = { - trait = education_diplomacy - rank >= 1 - } - } - localization_key = diplomacy_bad_trait_match_bad_outcome - } - - text = { - trigger = { - had_stewardship_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_stewardship - rank >= 3 - } - } - localization_key = stewardship_bad_trait_match_good_outcome - } - - text = { - trigger = { - had_stewardship_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_stewardship - rank <= 2 - } - has_trait_rank = { - trait = education_stewardship - rank >= 1 - } - } - localization_key = stewardship_bad_trait_match_bad_outcome - } - - text = { - trigger = { - had_intrigue_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_intrigue - rank >= 3 - } - } - localization_key = intrigue_bad_trait_match_good_outcome - } - - text = { - trigger = { - had_intrigue_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_intrigue - rank <= 2 - } - has_trait_rank = { - trait = education_intrigue - rank >= 1 - } - } - localization_key = intrigue_bad_trait_match_bad_outcome - } - - text = { - trigger = { - had_learning_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_learning - rank >= 3 - } - } - localization_key = learning_bad_trait_match_good_outcome - } - - text = { - trigger = { - had_learning_education_disaffinity_childhood_trait_trigger = yes - has_trait_rank = { - trait = education_learning - rank <= 2 - } - has_trait_rank = { - trait = education_learning - rank >= 1 - } - } - localization_key = learning_bad_trait_match_bad_outcome - } - - #Neutral trait matches - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank >= 3 - } - } - localization_key = martial_neutral_trait_match_good_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank <= 2 - } - has_trait_rank = { - trait = education_martial - rank >= 1 - } - } - localization_key = martial_neutral_trait_match_bad_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank >= 3 - } - } - localization_key = diplomacy_neutral_trait_match_good_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank <= 2 - } - has_trait_rank = { - trait = education_diplomacy - rank >= 1 - } - } - localization_key = diplomacy_neutral_trait_match_bad_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank >= 3 - } - } - localization_key = stewardship_neutral_trait_match_good_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank <= 2 - } - has_trait_rank = { - trait = education_stewardship - rank >= 1 - } - } - localization_key = stewardship_neutral_trait_match_bad_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank >= 3 - } - } - localization_key = intrigue_neutral_trait_match_good_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank <= 2 - } - has_trait_rank = { - trait = education_intrigue - rank >= 1 - } - } - localization_key = intrigue_neutral_trait_match_bad_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank >= 3 - } - } - localization_key = learning_neutral_trait_match_good_outcome - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank <= 2 - } - has_trait_rank = { - trait = education_learning - rank >= 1 - } - } - localization_key = learning_neutral_trait_match_bad_outcome - } -} - -DescribingEducationOutcome = { #Primarily used for notification events to other characters - type = character - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank = 1 - } - } - localization_key = education_martial_1_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank = 2 - } - } - localization_key = education_martial_2_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank = 3 - } - trigger_if = { - limit = { is_ruler = yes } - can_be_commander_basic_trigger = { ARMY_OWNER = root } - } - trigger_if = { - limit = { exists = liege } - can_be_commander_basic_trigger = { ARMY_OWNER = liege } - } - trigger_if = { - limit = { exists = host } - can_be_commander_basic_trigger = { ARMY_OWNER = host } - } - } - localization_key = education_martial_3_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank = 3 - } - } - localization_key = education_martial_3_outcome_description_not_commander - } - - text = { - trigger = { - has_trait_rank = { - trait = education_martial - rank = 4 - } - } - localization_key = education_martial_4_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank = 1 - } - } - localization_key = education_diplomacy_1_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank = 2 - } - } - localization_key = education_diplomacy_2_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank = 3 - } - } - localization_key = education_diplomacy_3_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_diplomacy - rank = 4 - } - } - localization_key = education_diplomacy_4_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank = 1 - } - } - localization_key = education_stewardship_1_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank = 2 - } - } - localization_key = education_stewardship_2_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank = 3 - } - } - localization_key = education_stewardship_3_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_stewardship - rank = 4 - } - } - localization_key = education_stewardship_4_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank = 1 - } - } - localization_key = education_intrigue_1_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank = 2 - } - } - localization_key = education_intrigue_2_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank = 3 - } - } - localization_key = education_intrigue_3_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_intrigue - rank = 4 - } - } - localization_key = education_intrigue_4_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank = 1 - } - } - localization_key = education_learning_1_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank = 2 - } - } - localization_key = education_learning_2_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank = 3 - } - } - localization_key = education_learning_3_outcome_description - } - - text = { - trigger = { - has_trait_rank = { - trait = education_learning - rank = 4 - } - } - localization_key = education_learning_4_outcome_description - } -} - -DescribingEducationOutcomeProwess = { #Primarily used for notification events to other characters - type = character - text = { - trigger = { has_trait = education_martial_prowess_1 } - localization_key = education_martial_prowess_1_outcome_description - } - - text = { - trigger = { has_trait = education_martial_prowess_2 } - localization_key = education_martial_prowess_2_outcome_description - } - - text = { - trigger = { has_trait = education_martial_prowess_3 } - localization_key = education_martial_prowess_3_outcome_description - } - - text = { - trigger = { has_trait = education_martial_prowess_4 } - localization_key = education_martial_prowess_4_outcome_description - } -} - -GetEducationTrait = { - type = character - # Diplomacy. - ## T1. - text = { - trigger = { has_trait = education_diplomacy_1 } - localization_key = trait_education_diplomacy_1 - } - ## T2. - text = { - trigger = { has_trait = education_diplomacy_2 } - localization_key = trait_education_diplomacy_2 - } - ## T3. - text = { - trigger = { has_trait = education_diplomacy_3 } - localization_key = trait_education_diplomacy_3 - } - ## T4. - text = { - trigger = { has_trait = education_diplomacy_4 } - localization_key = trait_education_diplomacy_4 - } - ## T5. - text = { - trigger = { has_trait = education_diplomacy_5 } - localization_key = trait_education_diplomacy_5 - } - # Martial. - ## T1. - text = { - trigger = { has_trait = education_martial_1 } - localization_key = trait_education_martial_1 - } - ## T2. - text = { - trigger = { has_trait = education_martial_2 } - localization_key = trait_education_martial_2 - } - ## T3. - text = { - trigger = { has_trait = education_martial_3 } - localization_key = trait_education_martial_3 - } - ## T4. - text = { - trigger = { has_trait = education_martial_4 } - localization_key = trait_education_martial_4 - } - ## T5. - text = { - trigger = { has_trait = education_martial_5 } - localization_key = trait_education_martial_5 - } - # Stewardship. - ## T1. - text = { - trigger = { has_trait = education_stewardship_1 } - localization_key = trait_education_stewardship_1 - } - ## T2. - text = { - trigger = { has_trait = education_stewardship_2 } - localization_key = trait_education_stewardship_2 - } - ## T3. - text = { - trigger = { has_trait = education_stewardship_3 } - localization_key = trait_education_stewardship_3 - } - ## T4. - text = { - trigger = { has_trait = education_stewardship_4 } - localization_key = trait_education_stewardship_4 - } - ## T5. - text = { - trigger = { has_trait = education_stewardship_5 } - localization_key = trait_education_stewardship_5 - } - # Intrigue. - ## T1. - text = { - trigger = { has_trait = education_intrigue_1 } - localization_key = trait_education_intrigue_1 - } - ## T2. - text = { - trigger = { has_trait = education_intrigue_2 } - localization_key = trait_education_intrigue_2 - } - ## T3. - text = { - trigger = { has_trait = education_intrigue_3 } - localization_key = trait_education_intrigue_3 - } - ## T4. - text = { - trigger = { has_trait = education_intrigue_4 } - localization_key = trait_education_intrigue_4 - } - ## T5. - text = { - trigger = { has_trait = education_intrigue_5 } - localization_key = trait_education_intrigue_5 - } - # Learning. - ## T1. - text = { - trigger = { has_trait = education_learning_1 } - localization_key = trait_education_learning_1 - } - ## T2. - text = { - trigger = { has_trait = education_learning_2 } - localization_key = trait_education_learning_2 - } - ## T3. - text = { - trigger = { has_trait = education_learning_3 } - localization_key = trait_education_learning_3 - } - ## T4. - text = { - trigger = { has_trait = education_learning_4 } - localization_key = trait_education_learning_4 - } - ## T5. - text = { - trigger = { has_trait = education_learning_5 } - localization_key = trait_education_learning_5 - } -} - -#Uses loc from education_focus -GetChildEducationFocus = { - type = character - - text = { - trigger = { has_focus = education_diplomacy } - localization_key = diplomatic_education - } - - text = { - trigger = { has_focus = education_martial } - localization_key = martial_education - } - - text = { - trigger = { has_focus = education_stewardship } - localization_key = stewardship_education - } - - text = { - trigger = { has_focus = education_intrigue } - localization_key = intrigue_education - } - - text = { - trigger = { has_focus = education_learning } - localization_key = learning_education - } -} - -GetEducationTraitConcept = { - type = character - - text = { - trigger = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - trigger_if = { - limit = { is_adult = no } - has_focus = education_diplomacy - } - } - - } - localization_key = diplomacy_concept - } - - text = { - trigger = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - trigger_if = { - limit = { is_adult = no } - has_focus = education_martial - } - } - } - localization_key = martial_concept - } - - text = { - trigger = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - trigger_if = { - limit = { is_adult = no } - has_focus = education_stewardship - } - } - } - localization_key = stewardship_concept - } - - text = { - trigger = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - trigger_if = { - limit = { is_adult = no } - has_focus = education_intrigue - } - } - } - localization_key = intrigue_concept - } - - text = { - trigger = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - trigger_if = { - limit = { is_adult = no } - has_focus = education_learning - } - } - } - localization_key = learning_concept - } -} diff --git a/common/customizable_localization/00_event_custom_loc.txt b/common/customizable_localization/00_event_custom_loc.txt deleted file mode 100644 index 6e8e15e7f0..0000000000 --- a/common/customizable_localization/00_event_custom_loc.txt +++ /dev/null @@ -1,169 +0,0 @@ -RandomPrivateObject = { - type = character - - random_valid = yes - - text = { - localization_key = private_object_finest_leather_shoes - } - - text = { - localization_key = private_object_favorite_embroidered_cloak - } - - text = { - localization_key = private_object_ceremonial_sword - } - - text = { - localization_key = private_object_chamberpot - } - - text = { - trigger = { - NOT = { government_has_flag = government_is_tribal } - } - localization_key = private_object_royal_scepter - } - - text = { - trigger = { - NOT = { government_has_flag = government_is_tribal } - } - localization_key = private_object_coronation_crown - } - - text = { - trigger = { - NOR = { - has_trait = humble - has_trait = generous - has_trait = zealous - } - } - localization_key = private_object_gilded_religious_text - } - - text = { - trigger = { - NOT = { - has_trait = cynical - } - } - localization_key = private_object_precious_silver_religioussymbol - } - - text = { - trigger = { - exists = father - father = { - any_parent = { - is_male = yes - even_if_dead = yes - } - } - } - localization_key = private_object_grandfathers_paternal_portrait - } - - text = { - trigger = { - exists = mother - mother = { - any_parent = { - is_male = yes - even_if_dead = yes - } - } - } - localization_key = private_object_grandfathers_maternal_portrait - } - - text = { - trigger = { - exists = father - father = { - any_parent = { - is_female = yes - even_if_dead = yes - } - } - } - localization_key = private_object_grandmother_paternal_portrait - } - - text = { - trigger = { - exists = mother - mother = { - any_parent = { - is_female = yes - even_if_dead = yes - } - } - } - localization_key = private_object_grandmother_maternal_portrait - } - - text = { - trigger = { - is_female = yes - } - localization_key = private_object_precious_jewelry - } - - text = { - trigger = { - is_female = yes - } - localization_key = private_object_hairbrush - } - - text = { - trigger = { - is_female = yes - } - localization_key = private_object_formal_gown - } -} - -ChildhoodTraitActivity = { - type = character - random_valid = yes - #train a new minion - text = { - trigger = { - has_trait = charming - } - localization_key = childhood_trait_activity_bossy - } - #make a new friend - text = { - trigger = { - has_trait = charming - } - localization_key = childhood_trait_activity_charming - fallback = yes - } - #learn something new - text = { - trigger = { - has_trait = curious - } - localization_key = childhood_trait_activity_curious - } - #get some time alone - text = { - trigger = { - has_trait = pensive - } - localization_key = childhood_trait_activity_pensive - } - #be the life of the party - text = { - trigger = { - has_trait = rowdy - } - localization_key = childhood_trait_activity_rowdy - } -} diff --git a/common/customizable_localization/00_friendly_custom_localization.txt b/common/customizable_localization/00_friendly_custom_localization.txt deleted file mode 100644 index 1b3c09ba2e..0000000000 --- a/common/customizable_localization/00_friendly_custom_localization.txt +++ /dev/null @@ -1,13 +0,0 @@ -GestureOfFriendship = { - type = character - - random_valid = yes - - text = { - localization_key = bows_deeply_to_firstname_or_me - } - - text = { - localization_key = clasps_firstnamepossessive_or_my_hands - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_friendship_custom_localization.txt b/common/customizable_localization/00_friendship_custom_localization.txt deleted file mode 100644 index b405537e41..0000000000 --- a/common/customizable_localization/00_friendship_custom_localization.txt +++ /dev/null @@ -1,131 +0,0 @@ -friendship_metaphor = { - type = character - random_valid = yes - - text = { - trigger = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - } - localization_key = friendship_metaphor_martial_1 - } - text = { - trigger = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - } - localization_key = friendship_metaphor_intrigue_1 - } - text = { - trigger = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - } - localization_key = friendship_metaphor_stewardship_1 - } - text = { - trigger = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - } - localization_key = friendship_metaphor_diplomacy_1 - } - text = { - trigger = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - } - localization_key = friendship_metaphor_learning_1 - } -} - -friendship_metaphor_with_tending = { - type = character - random_valid = yes - - text = { - trigger = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - } - localization_key = friendship_metaphor_with_tending_martial_1 - } - text = { - trigger = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - } - localization_key = friendship_metaphor_with_tending_intrigue_1 - } - text = { - trigger = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - } - localization_key = friendship_metaphor_with_tending_stewardship_1 - } - text = { - trigger = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - } - localization_key = friendship_metaphor_with_tending_diplomacy_1 - } - text = { - trigger = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - } - localization_key = friendship_metaphor_with_tending_learning_1 - } -} diff --git a/common/customizable_localization/00_governance_lifestyle_custom_loc.txt b/common/customizable_localization/00_governance_lifestyle_custom_loc.txt deleted file mode 100644 index e15fda615c..0000000000 --- a/common/customizable_localization/00_governance_lifestyle_custom_loc.txt +++ /dev/null @@ -1,89 +0,0 @@ - -Governance_1041_GuildType = { - type = landed_title - - text = { - trigger = { - has_county_modifier = governance_1041_blacksmiths_guild_modifier - } - localization_key = governance_ongoing.1040.blacksmithsguild - } - text = { - trigger = { - has_county_modifier = governance_1041_merchants_guild_modifier - } - fallback = yes - localization_key = governance_ongoing.1040.merchantsguild - } -} - -Governance_1055_OutOfWedlock = { - type = character - - text = { - trigger = { - is_married = no - is_concubine = no - } - localization_key = governance_ongoing.1055.outofwedlock - } - text = { - trigger = { - OR = { - is_married = yes - is_concubine = yes - } - } - fallback = yes - localization_key = governance_ongoing.1055.null - } -} - -Governance_1062_Client = { - type = character - - text = { - trigger = { - has_character_flag = governance_1062_gardener_flag - } - localization_key = governance_ongoing.1062.gardener - } - text = { - trigger = { - has_character_flag = governance_1062_poet_flag - } - fallback = yes - localization_key = governance_ongoing.1062.poet - } - text = { - trigger = { - has_character_flag = governance_1062_philosopher_flag - } - localization_key = governance_ongoing.1062.philosopher - } -} - -# We have a special All Capitalized version of this custom key for feed messages, since |U can only capitalize the fist word in a string (and nautral philosopher is 2 words). -Governance_1062_Client_U = { - type = character - - text = { - trigger = { - has_character_flag = governance_1062_gardener_flag - } - localization_key = governance_ongoing.1062.gardener_U - } - text = { - trigger = { - has_character_flag = governance_1062_poet_flag - } - fallback = yes - localization_key = governance_ongoing.1062.poet_U - } - text = { - trigger = { - has_character_flag = governance_1062_philosopher_flag - } - localization_key = governance_ongoing.1062.philosopher_U - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_guile_lifestyle_custom_loc.txt b/common/customizable_localization/00_guile_lifestyle_custom_loc.txt deleted file mode 100644 index e02abfc9b0..0000000000 --- a/common/customizable_localization/00_guile_lifestyle_custom_loc.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/common/customizable_localization/00_hold_court_custom_joe.txt b/common/customizable_localization/00_hold_court_custom_joe.txt deleted file mode 100644 index eb8e07f92b..0000000000 --- a/common/customizable_localization/00_hold_court_custom_joe.txt +++ /dev/null @@ -1,319 +0,0 @@ -get_hold_court_8001_flaw = { # Flavor for reasons they are a bad mayor - type = character - random_valid = yes - - text = { - trigger = { has_trait = lazy } - localization_key = hold_court_8001.desc_lazy - } - - text = { - trigger = { has_trait = greedy } - localization_key = hold_court_8001.desc_greedy - } - - text = { - trigger = { has_trait = arbitrary } - localization_key = hold_court_8001.desc_arbitrary - } - - text = { - trigger = { has_trait = deceitful } - localization_key = hold_court_8001.desc_deceitful - } - - text = { - trigger = { stewardship <= 6 } - localization_key = hold_court_8001.desc_incompetent - } - - text = { - trigger = { age < 25 } - localization_key = hold_court_8001.desc_young - } - - text = { - trigger = { has_trait = infirm } - localization_key = hold_court_8001.desc_infirm - } - - text = { - trigger = { has_trait = incapable } - localization_key = hold_court_8001.desc_incapable - } - - text = { - trigger = { age > 60 } - localization_key = hold_court_8001.desc_old - } - - text = { - trigger = { always = yes } - localization_key = hold_court_8001.desc_fallback - } -} - -get_hold_court_8010_stake = { # Flavor for government type of worried vassal - type = character - - text = { - trigger = { government_has_flag = government_is_republic } - localization_key = hold_court_8010.desc_republic - } - - text = { - trigger = { government_has_flag = government_is_theocracy } - localization_key = hold_court_8010.desc_theocratic - } - - text = { - trigger = { always = yes } - localization_key = hold_court_8010.desc_family - } -} - -get_hold_court_8020_holiness_1 = { # Describe the holiness of the target county - type = character - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { - is_holy_site_of = ROOT.faith - title_province = { has_special_building = yes } - } - } - } - } - localization_key = holiness_cathedral_1 - } - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { is_holy_site_of = ROOT.faith } - } - } - } - localization_key = holiness_holy_site_1 - } - - text = { - trigger = { always = yes } - localization_key = holiness_fallback_1 - } -} - -get_hold_court_8020_holiness_2 = { # Describe the holiness of the target county - type = character - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { - is_holy_site_of = ROOT.faith - title_province = { has_special_building = yes } - } - } - } - } - localization_key = holiness_cathedral_2 - } - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { is_holy_site_of = ROOT.faith } - } - } - } - localization_key = holiness_holy_site_2 - } - - text = { - trigger = { always = yes } - localization_key = holiness_fallback_2 - } -} - -get_hold_court_8020_holiness_3 = { # Describe the holiness of the target county - type = character - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { - is_holy_site_of = ROOT.faith - title_province = { has_special_building = yes } - } - } - } - } - localization_key = holiness_cathedral_3 - } - - text = { - trigger = { - exists = var:holy_site_var - var:holy_site_var = { - any_county_province = { - barony = { is_holy_site_of = ROOT.faith } - } - } - } - localization_key = holiness_holy_site_3 - } - - text = { - trigger = { - always = yes - } - localization_key = holiness_fallback_3 - } -} - -get_hold_court_8100_parent = { - type = character - - text = { - trigger = { # If male dominated - faith = { - NOT = { has_doctrine = doctrine_gender_male_dominated } - } - } - localization_key = mama - } - - text = { - trigger = { # If female dominated - faith = { - NOT = { has_doctrine = doctrine_gender_female_dominated } - } - } - localization_key = papa - } - - text = { - trigger = { always = yes } - localization_key = hold_court_8100_parent_general - } -} - -get_hold_court_8100_situation = { - type = character - random_valid = yes - - text = { - trigger = { - OR = { - AND = { - faith = { - NOT = { has_doctrine = doctrine_gender_male_dominated } - } - exists = mother - mother = { is_alive = no } - } - AND = { - faith = { - NOT = { has_doctrine = doctrine_gender_female_dominated } - } - exists = father - father = { is_alive = no } - } - } - } - localization_key = hold_court_8100_situation_dead - } - - text = { - trigger = { - OR = { - AND = { - faith = { - NOT = { has_doctrine = doctrine_gender_male_dominated } - } - exists = mother - mother = { is_imprisoned = yes } - } - AND = { - faith = { - NOT = { has_doctrine = doctrine_gender_female_dominated } - } - exists = father - father = { is_imprisoned = yes } - } - } - } - localization_key = hold_court_8100_situation_jailed - } - - text = { - trigger = { always = yes } - localization_key = hold_court_8100_situation_unknown - } -} - -get_hold_court_8190_ethos = { - type = character - random_valid = yes - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_bellicose } - } - localization_key = hold_court_8190_bellicose - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_stoic } - } - localization_key = hold_court_8190_stoic - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_bureaucratic } - } - localization_key = hold_court_8190_bureaucratic - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_spiritual } - } - localization_key = hold_court_8190_spiritual - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_courtly } - } - localization_key = hold_court_8190_courtly - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_egalitarian } - } - localization_key = hold_court_8190_egalitarian - } - - text = { - trigger = { - culture = { has_cultural_pillar = ethos_communal } - } - localization_key = hold_court_8190_communal - } -} - diff --git a/common/customizable_localization/00_insult_poetry_custom_loc.txt b/common/customizable_localization/00_insult_poetry_custom_loc.txt deleted file mode 100644 index 54b7bcd68d..0000000000 --- a/common/customizable_localization/00_insult_poetry_custom_loc.txt +++ /dev/null @@ -1,241 +0,0 @@ -rhyme_group_a_one = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_cow - } - text = { - trigger = { is_male = yes } - localization_key = insult_sow - } - text = { - trigger = { is_male = yes } - localization_key = insult_plough - } - text = { - trigger = { is_male = yes } - localization_key = insult_prow - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_cow_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_sow_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_plough_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_prow_female - } -} - -rhyme_group_a_two = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_should_allow - } - text = { - trigger = { is_male = yes } - localization_key = insult_understands_how - } - text = { - trigger = { is_male = yes } - localization_key = insult_knows_quite_how - } - text = { - trigger = { is_male = yes } - localization_key = insult_could_use_as_a_plough - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_should_allow_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_understands_how_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_knows_quite_how_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_could_use_as_a_plough_female - } - -} - - -rhyme_group_b_one = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_dog - } - text = { - trigger = { is_male = yes } - localization_key = insult_bog - } - text = { - trigger = { is_male = yes } - localization_key = insult_hog - } - text = { - trigger = { is_male = yes } - localization_key = insult_sprog - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_dog_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_bog_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_hog_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_sprog_female - } -} - -rhyme_group_b_two = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_slog - } - text = { - trigger = { is_male = yes } - localization_key = insult_clog - } - text = { - trigger = { is_male = yes } - localization_key = insult_grog - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_slog_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_clog_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_grog_female - } - -} - - -rhyme_group_c_one = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_hunt - } - text = { - trigger = { is_male = yes } - localization_key = insult_grunt - } - text = { - trigger = { is_male = yes } - localization_key = insult_stunt - } - text = { - trigger = { is_male = yes } - localization_key = insult_punt - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_hunt_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_grunt_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_stunt_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_punt_female - } -} - -rhyme_group_c_two = { - type = character - - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = insult_runt - } - text = { - trigger = { is_male = yes } - localization_key = insult_errant - } - text = { - trigger = { is_male = yes } - localization_key = insult_shunt - } - text = { - trigger = { is_male = yes } - localization_key = insult_blunt - } - - # female versions requested by other languages - text = { - trigger = { is_female = yes } - localization_key = insult_runt_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_errant_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_shunt_female - } - text = { - trigger = { is_female = yes } - localization_key = insult_blunt_female - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_interactions_custom_loc.txt b/common/customizable_localization/00_interactions_custom_loc.txt deleted file mode 100644 index 6a92ce9ee0..0000000000 --- a/common/customizable_localization/00_interactions_custom_loc.txt +++ /dev/null @@ -1,118 +0,0 @@ - -OfferCouncilPosition = { - type = character - - text = { - localization_key = liege_offer_council_position_liked - trigger = { - opinion = { - value >= 30 - target = scope:second - } - } - } - - text = { - localization_key = liege_offer_council_position_disliked - trigger = { - opinion = { - value < -30 - target = scope:second - } - } - } - - text = { - localization_key = liege_offer_council_position_powerful - trigger = { - scope:second = { - is_powerful_vassal_of = root - } - } - } - - text = { - localization_key = liege_offer_council_position_fallback - fallback = yes - } -} - - -IncorrectLineality = { - type = character - - text = { - localization_key = IncorrectLineality_Matrilineal - trigger = { is_male = yes } - } - - text = { - localization_key = IncorrectLineality_Patrilineal - trigger = { is_female = yes } - } -} - - -ImprisonCharacterDeclineSummary = { - type = character - - text = { - localization_key = imprison_decline_summary_war - trigger = { - is_landed = yes - primary_title.tier > tier_barony - } - } - text = { - localization_key = imprison_decline_summary_no_court - trigger = { - is_landed = yes - primary_title.tier = tier_barony - } - } - - text = { - localization_key = imprison_decline_summary_cannot_fire_court_chaplain - trigger = { - has_council_position = councillor_court_chaplain - NOT = { can_be_fired_from_council_trigger = { COURT_OWNER = root.liege } } - } - } - - text = { - localization_key = imprison_decline_summary_cannot_fire_HoF - trigger = { - exists = root.liege - root.liege = { exists = faith.religious_head } - root.liege.faith.religious_head = { this = root } - } - } - - text = { - localization_key = imprison_decline_summary_no_war_your_courtier - trigger = { host = { is_local_player = yes } } - } - - text = { - localization_key = imprison_decline_summary_no_war - fallback = yes - } -} - -RevokeTitleDeclineSummary = { - type = character - - text = { - localization_key = general_rebellion_decline_summary_auto_accept - trigger = { #Auto-accept - OR = { - highest_held_title_tier = tier_barony - is_imprisoned_by = scope:second - } - } - } - text = { - localization_key = general_rebellion_decline_summary_warning - fallback = yes - } -} diff --git a/common/customizable_localization/00_interface_custom_loc.txt b/common/customizable_localization/00_interface_custom_loc.txt deleted file mode 100644 index c53c624716..0000000000 --- a/common/customizable_localization/00_interface_custom_loc.txt +++ /dev/null @@ -1,58 +0,0 @@ - -GetEducationLifestylePercentageBoost = { - type = character - - text = { - localization_key = education_rank_1_percentage - trigger = { - has_education_rank_trigger = { RANK = 1 OPERATOR = equals } - } - } - - text = { - localization_key = education_rank_2_percentage - trigger = { - has_education_rank_trigger = { RANK = 2 OPERATOR = equals } - } - } - - text = { - localization_key = education_rank_3_percentage - trigger = { - has_education_rank_trigger = { RANK = 3 OPERATOR = equals } - } - } - - text = { - localization_key = education_rank_4_percentage - trigger = { - has_education_rank_trigger = { RANK = 4 OPERATOR = equals } - } - } - - text = { - localization_key = education_rank_5_percentage - trigger = { - has_education_rank_trigger = { RANK = 5 OPERATOR = equals } - } - } -} - - -GetBastardTraitDesc = { - type = character - - text = { - localization_key = CV_TT_BASTARD_HIGHBORN - trigger = { - is_lowborn = no - } - } - - text = { - localization_key = CV_TT_BASTARD_LOWBORN - trigger = { - is_lowborn = yes - } - } -} diff --git a/common/customizable_localization/00_lifestyle_custom_localization.txt b/common/customizable_localization/00_lifestyle_custom_localization.txt deleted file mode 100644 index a2e729faf3..0000000000 --- a/common/customizable_localization/00_lifestyle_custom_localization.txt +++ /dev/null @@ -1,279 +0,0 @@ -LifestyleFocus = { - type = character - - text = { - trigger = { has_lifestyle = martial_lifestyle } - localization_key = LifestyleFocus_martial - } - text = { - trigger = { has_lifestyle = diplomacy_lifestyle } - localization_key = LifestyleFocus_diplomacy - } - text = { - trigger = { has_lifestyle = intrigue_lifestyle } - localization_key = LifestyleFocus_intrigue - } - text = { - trigger = { has_lifestyle = stewardship_lifestyle } - localization_key = LifestyleFocus_stewardship - } - text = { - trigger = { has_lifestyle = learning_lifestyle } - localization_key = LifestyleFocus_learning - } -} - - -CompositionType = { - type = character - - text = { - trigger = { var:composition_type = flag:song } - localization_key = CompositionType_song - } - text = { - trigger = { var:composition_type = flag:chronicle } - localization_key = CompositionType_chronicle - } - text = { - trigger = { var:composition_type = flag:poem } - localization_key = CompositionType_poem - } -} - -CompositionTypeActionPP = { - type = character - - text = { - trigger = { var:composition_type = flag:song } - localization_key = CompositionTypeAction_listening - } - text = { - trigger = { - OR = { - var:composition_type = flag:chronicle - var:composition_type = flag:poem - } - } - localization_key = CompositionTypeAction_reading - } -} - -CompositionTypeActionPast = { - type = character - - text = { - trigger = { var:composition_type = flag:song } - localization_key = CompositionTypeAction_listened - } - text = { - trigger = { - OR = { - var:composition_type = flag:chronicle - var:composition_type = flag:poem - } - } - localization_key = CompositionTypeAction_read - } -} - -CompositionDetail = { - type = character - - text = { - trigger = { var:composition_detail = flag:horse } - localization_key = CompositionDetail_horse - } - - text = { - trigger = { var:composition_detail = flag:ox } - localization_key = CompositionDetail_ox - } - - text = { - trigger = { var:composition_detail = flag:witch } - localization_key = CompositionDetail_witch - } - - text = { - trigger = { var:composition_detail = flag:magical_sword } - localization_key = CompositionDetail_magical_sword - } - - text = { - trigger = { var:composition_detail = flag:dragon } - localization_key = CompositionDetail_dragon - } - - text = { - trigger = { var:composition_detail = flag:emperor } - localization_key = CompositionDetail_emperor - } - - text = { - trigger = { var:composition_detail = flag:river } - localization_key = CompositionDetail_river - } - - text = { - trigger = { var:composition_detail = flag:mountain } - localization_key = CompositionDetail_mountain - } - - text = { - trigger = { var:composition_detail = flag:hermit } - localization_key = CompositionDetail_hermit - } -} - -CommissionEpicScribes = { - type = character - - text = { - trigger = { government_has_flag = government_is_tribal } - localization_key = CommissionEpicScribes_bards - } - - text = { - localization_key = CommissionEpicScribes_scribes - } -} - -CommissionEpicScribe = { - type = character - - text = { - trigger = { government_has_flag = government_is_tribal } - localization_key = CommissionEpicScribe_bard - } - - text = { - localization_key = CommissionEpicScribe_scribe - } -} - -CommissionEpicComposer = { - type = character - - text = { - trigger = { exists = scope:second } - localization_key = CommissionEpicComposer_composer - } - text = { - localization_key = CommissionEpicComposer_scribes - } -} - -CommissionEpicComposerHasHave = { - type = character - - text = { - trigger = { exists = scope:second } - localization_key = CommissionEpicComposerHasHave_has - } - text = { - localization_key = CommissionEpicComposerHasHave_have - } -} - -CommissionEpicComposerThem = { - type = character - - text = { - trigger = { exists = scope:second } - localization_key = CommissionEpicComposerThem_composer - } - text = { - localization_key = CommissionEpicComposerThem_scribes - } -} - -CommissionEpicComposerThey = { - type = character - - text = { - trigger = { exists = scope:second } - localization_key = CommissionEpicComposerThey_composer - } - text = { - localization_key = CommissionEpicComposerThey_scribes - } -} - -CommissionEpicComposerTheir = { - type = character - - text = { - trigger = { exists = scope:second } - localization_key = CommissionEpicComposerTheir_composer - } - text = { - localization_key = CommissionEpicComposerTheir_scribes - } -} - -GetRandomPositiveTrait = { - type = character - - random_valid = yes - - text = { - trigger = { has_character_flag = trait_intellect_good_1_flag } - localization_key = trait_intellect_good_1 - } - - text = { - trigger = { has_character_flag = trait_intellect_good_2_flag } - localization_key = trait_intellect_good_2 - } - - text = { - trigger = { has_character_flag = trait_intellect_good_3_flag } - localization_key = trait_intellect_good_3 - } - - text = { - trigger = { has_character_flag = trait_physique_good_1_flag } - localization_key = trait_physique_good_1 - } - - text = { - trigger = { has_character_flag = trait_physique_good_2_flag } - localization_key = trait_physique_good_2 - } - - text = { - trigger = { has_character_flag = trait_physique_good_3_flag } - localization_key = trait_physique_good_3 - } - - text = { - trigger = { has_character_flag = trait_fecund_flag } - localization_key = trait_fecund - } - - text = { - trigger = { has_character_flag = trait_pure_blooded_flag } - localization_key = trait_pure_blooded - } - - text = { - trigger = { has_character_flag = trait_beauty_good_1_flag } - localization_key = trait_beauty_good_1 - } - - text = { - trigger = { has_character_flag = trait_beauty_good_2_female_flag } - localization_key = trait_beauty_good_female_2 - } - - text = { - trigger = { has_character_flag = trait_beauty_good_2_male_flag } - localization_key = trait_beauty_good_male_2 - } - - text = { - trigger = { has_character_flag = trait_beauty_good_3_flag } - localization_key = trait_beauty_good_3 - } -} diff --git a/common/customizable_localization/00_lover_custom_localization.txt b/common/customizable_localization/00_lover_custom_localization.txt deleted file mode 100644 index 4f27efab3b..0000000000 --- a/common/customizable_localization/00_lover_custom_localization.txt +++ /dev/null @@ -1,572 +0,0 @@ -LoverPetName = { #LoverPetName: avoid pet names that are just adjectives - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling - } - - text = { - localization_key = pet_name_dearest - } - - text = { - localization_key = pet_name_morsel - } - - text = { - localization_key = pet_name_little_firebrand - } - - text = { - localization_key = pet_name_songbird - } - - text = { - localization_key = pet_name_beloved - } - - text = { - localization_key = pet_name_beauty - } - - text = { - localization_key = pet_name_little_pet - } - - text = { - localization_key = pet_name_treasure - } - - text = { - localization_key = pet_name_sweetheart - } - - text = { - localization_key = pet_name_rose - } - - text = { - localization_key = pet_name_sweetness - } - - - - text = { - localization_key = pet_name_sunshine - } - - text = { - localization_key = pet_name_spring_blossom - } - - text = { - localization_key = pet_name_petal - } - - text = { - localization_key = pet_name_honeycomb - } -} - - -LoverPetName_uppercase = { - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling_uppercase - } - - text = { - localization_key = pet_name_dearest_uppercase - } - - text = { - localization_key = pet_name_morsel_uppercase - } - - text = { - localization_key = pet_name_little_firebrand_uppercase - } - - text = { - localization_key = pet_name_songbird_uppercase - } - - text = { - localization_key = pet_name_beloved_uppercase - } - - text = { - localization_key = pet_name_beauty_uppercase - } - - text = { - localization_key = pet_name_little_pet_uppercase - } - - text = { - localization_key = pet_name_treasure_uppercase - } - - text = { - localization_key = pet_name_sweetheart_uppercase - } - - text = { - localization_key = pet_name_rose_uppercase - } - - text = { - localization_key = pet_name_sweetness_uppercase - } - - text = { - localization_key = pet_name_sunshine_uppercase - } - - text = { - localization_key = pet_name_spring_blossom_uppercase - } - - text = { - localization_key = pet_name_petal_uppercase - } - - text = { - localization_key = pet_name_honeycomb_uppercase - } -} - - -LoverPetName_possessive = { - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling_possessive - } - - text = { - localization_key = pet_name_dearest_possessive - } - - text = { - localization_key = pet_name_morsel_possessive - } - - text = { - localization_key = pet_name_little_firebrand_possessive - } - - text = { - localization_key = pet_name_songbird_possessive - } - - text = { - localization_key = pet_name_beloved_possessive - } - - text = { - localization_key = pet_name_beauty_possessive - } - - text = { - localization_key = pet_name_little_pet_possessive - } - - text = { - localization_key = pet_name_treasure_possessive - } - - text = { - localization_key = pet_name_sweetheart_possessive - } - - text = { - localization_key = pet_name_rose_possessive - } - - text = { - localization_key = pet_name_sweetness_possessive - } - - text = { - localization_key = pet_name_sunshine_possessive - } - - text = { - localization_key = pet_name_spring_blossom_possessive - } - - text = { - localization_key = pet_name_petal_possessive - } - - text = { - localization_key = pet_name_honeycomb_possessive - } -} - -lover_activity = { #Is in present particle - type = character - - random_valid = yes - - text = { - trigger = { - OR = { - var:lover_activity = flag:garden_walk - NOT = { has_variable = lover_activity } - } - } - weight_multiplier = { - base = 1 - modifier = { - OR = { - has_trait = lifestyle_herbalist - has_trait = shy - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_garden_walk - } - text = { - trigger = { - OR = { - var:lover_activity = flag:dinner - NOT = { has_variable = lover_activity } - } - } - weight_multiplier = { - base = 1 - modifier = { - OR = { - has_trait = gregarious - has_trait = gluttonous - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_dinner - } - text = { - trigger = { - OR = { - var:lover_activity = flag:buy_gift - NOT = { has_variable = lover_activity } - } - } - weight_multiplier = { - base = 1 - modifier = { - OR = { - has_trait = greedy - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_buy_gift - } - text = { - trigger = { - OR = { - var:lover_activity = flag:social_events - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = shy - has_trait = callous - has_trait = sadistic - } - } - } - } - weight_multiplier = { - base = 1 - modifier = { - OR = { - has_trait = gregarious - has_trait = diplomat - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_social_events - } - text = { - trigger = { - OR = { - var:lover_activity = flag:play_games - NOT = { has_variable = lover_activity } - } - } - localization_key = lover_activity_present_particle_play_games - } - text = { - trigger = { - OR = { - var:lover_activity = flag:drink - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = shy - has_trait = temperate - } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - OR = { - has_trait = lifestyle_reveler - has_trait = drunkard - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_drink - } - text = { - trigger = { - OR = { - var:lover_activity = flag:go_hunting - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = craven - has_trait = physique_bad_1 - has_trait = physique_bad_2 - has_trait = physique_bad_3 - } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - has_trait = lifestyle_hunter - factor = 5 - } - } - localization_key = lover_activity_present_particle_go_hunting - } - text = { - trigger = { - OR = { - var:lover_activity = flag:stargaze - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = cynical - has_trait = impatient - } - } - } - } - localization_key = lover_activity_present_particle_stargaze - } - text = { - trigger = { - OR = { - var:lover_activity = flag:flatter - AND = { - NOT = { has_variable = lover_activity } - NOT = { has_trait = humble } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - has_trait = arrogant - factor = 5 - } - } - localization_key = lover_activity_present_particle_flatter - } - text = { - trigger = { - OR = { - var:lover_activity = flag:talk_about_god - AND = { - NOT = { has_variable = lover_activity } - NOT = { has_trait = cynical } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - has_trait = zealous - factor = 5 - } - } - localization_key = lover_activity_present_particle_talk_about_god - } - text = { - trigger = { - OR = { - var:lover_activity = flag:go_adventuring - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = craven - has_trait = physique_bad_1 - has_trait = physique_bad_2 - has_trait = physique_bad_3 - } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - has_trait = brave - factor = 5 - } - } - localization_key = lover_activity_present_particle_go_adventuring - } - text = { - trigger = { - OR = { - var:lover_activity = flag:talk_about_future - AND = { - NOT = { has_variable = lover_activity } - NOT = { has_trait = cynical } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - OR = { - has_trait = family_first - has_trait = gregarious - has_trait = ambitious - has_trait = pregnant - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_talk_about_future - } - text = { - trigger = { - OR = { - var:lover_activity = flag:fight - AND = { - NOT = { has_variable = lover_activity } - has_trait = wrathful - } - } - } - weight_multiplier = { - base = 0.5 - } - localization_key = lover_activity_present_particle_fight - } - text = { - trigger = { - OR = { - var:lover_activity = flag:discuss_books - AND = { - NOT = { has_variable = lover_activity } - OR = { - learning = 12 - has_trait = scholar - } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - has_trait = scholar - factor = 5 - } - } - localization_key = lover_activity_present_particle_discuss_books - } - text = { - trigger = { - OR = { - var:lover_activity = flag:lovemaking - AND = { - NOT = { has_variable = lover_activity } - NOR = { - has_trait = celibate - has_trait = chaste - } - } - } - } - weight_multiplier = { - base = 0.5 - modifier = { - OR = { - has_trait = seducer - has_trait = lustful - has_trait = deviant - - } - factor = 5 - } - } - localization_key = lover_activity_present_particle_lovemaking - } -} - -lover_reason = { - type = character - - text = { - trigger = { - OR = { - has_trait = lustful - has_trait = seducer - has_trait = deviant - has_trait = brave - has_trait = lifestyle_reveler - } - } - localization_key = lover_reason_passion - } - text = { - trigger = { - has_trait = honest - has_trait = trusting - } - localization_key = lover_reason_romance - } - text = { - trigger = { - has_trait = sadistic - has_trait = callous - has_trait = arrogant - has_trait = ambitious - has_trait = arbitrary - } - localization_key = lover_reason_attention - } - text = { - trigger = { - has_trait = chaste - has_trait = celibate - has_trait = zealous - } - localization_key = lover_reason_devotion - } - text = { - localization_key = lover_reason_love - } -} - - diff --git a/common/customizable_localization/00_magic_custom_loc.txt b/common/customizable_localization/00_magic_custom_loc.txt deleted file mode 100644 index 8da44095d4..0000000000 --- a/common/customizable_localization/00_magic_custom_loc.txt +++ /dev/null @@ -1,49 +0,0 @@ -MagicUserTerm = { - type = character - - text = { - trigger = { - is_female = yes - } - localization_key = magic_user_witch - } - text = { - trigger = { - is_female = no - } - localization_key = magic_user_sorcerer - } -} - -MagicPracticeTerm = { - type = character - - text = { - trigger = { - is_female = yes - } - localization_key = magic_practice_witchcraft - } - text = { - trigger = { - is_female = no - } - localization_key = magic_practice_sorcery - } -} - -MagicSuperstitionTerm = { - type = character - - random_valid = yes - - text = { - localization_key = magic_superstition_harvest - } - text = { - localization_key = magic_superstition_weather - } - text = { - localization_key = magic_superstition_animals - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_martial_lifestyle_custom_loc.txt b/common/customizable_localization/00_martial_lifestyle_custom_loc.txt deleted file mode 100644 index fa1d65648c..0000000000 --- a/common/customizable_localization/00_martial_lifestyle_custom_loc.txt +++ /dev/null @@ -1,643 +0,0 @@ - -#CommanderTraitBeingTaught - The name of the Commander Trait being taught by a given instance of the Learning Commander Trait chain. - -#CommanderTraitSkillDescription - Used as a generic description in-text to describe what a potential teacher wants to teach you. - - - -CommanderTraitBeingTaught = { - type = character - - text = { - trigger = { - var:commander_trait_being_taught = flag:logistician - } - localization_key = trait_logistician_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:military_engineer - } - localization_key = trait_military_engineer_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:aggressive_attacker - } - localization_key = trait_aggressive_attacker_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:unyielding_defender - } - localization_key = trait_unyielding_defender_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:forder - } - localization_key = trait_forder_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:flexible_leader - } - localization_key = trait_flexible_leader_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:desert_warrior - } - localization_key = trait_desert_warrior_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:winter_soldier - } - localization_key = trait_winter_soldier_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:jungle_stalker - } - localization_key = trait_jungle_stalker_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reaver - } - localization_key = trait_reaver_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reckless - } - localization_key = trait_reckless_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:holy_warrior - } - localization_key = trait_holy_warrior_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:open_terrain_expert - } - localization_key = open_terrain_expert_skill_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:rough_terrain_expert - } - localization_key = rough_terrain_expert_skill_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:forest_fighter - } - localization_key = forest_fighter_skill_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:cautious_leader - } - localization_key = cautious_leader_skill_tooltip - } - text = { - trigger = { - var:commander_trait_being_taught = flag:organizer - } - localization_key = organizer_skill_tooltip - } -} - -CommanderTraitBeingTaughtNoTooltip = { - type = character - - text = { - trigger = { - var:commander_trait_being_taught = flag:logistician - } - localization_key = trait_logistician - } - text = { - trigger = { - var:commander_trait_being_taught = flag:military_engineer - } - localization_key = trait_military_engineer - } - text = { - trigger = { - var:commander_trait_being_taught = flag:aggressive_attacker - } - localization_key = trait_aggressive_attacker - } - text = { - trigger = { - var:commander_trait_being_taught = flag:unyielding_defender - } - localization_key = trait_unyielding_defender - } - text = { - trigger = { - var:commander_trait_being_taught = flag:forder - } - localization_key = trait_forder - } - text = { - trigger = { - var:commander_trait_being_taught = flag:flexible_leader - } - localization_key = trait_flexible_leader - } - text = { - trigger = { - var:commander_trait_being_taught = flag:desert_warrior - } - localization_key = trait_desert_warrior - } - text = { - trigger = { - var:commander_trait_being_taught = flag:winter_soldier - } - localization_key = trait_winter_soldier - } - text = { - trigger = { - var:commander_trait_being_taught = flag:jungle_stalker - } - localization_key = trait_jungle_stalker - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reaver - } - localization_key = trait_reaver - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reckless - } - localization_key = trait_reckless - } - text = { - trigger = { - var:commander_trait_being_taught = flag:holy_warrior - } - localization_key = trait_holy_warrior - } -} - -CommanderTraitSkillDescription = { - type = character - - text = { - trigger = { - var:commander_trait_being_taught = flag:logistician - } - localization_key = logistician_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:military_engineer - } - localization_key = military_engineer_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:aggressive_attacker - } - localization_key = aggressive_attacker_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:unyielding_defender - } - localization_key = unyielding_defender_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:forder - } - localization_key = forder_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:flexible_leader - } - localization_key = flexible_leader_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:desert_warrior - } - localization_key = desert_warrior_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:winter_soldier - } - localization_key = winter_soldier_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:jungle_stalker - } - localization_key = jungle_stalker_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reaver - } - localization_key = reaver_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:reckless - } - localization_key = reckless_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:holy_warrior - } - localization_key = holy_warrior_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:open_terrain_expert - } - localization_key = open_terrain_expert_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:rough_terrain_expert - } - localization_key = rough_terrain_expert_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:forest_fighter - } - localization_key = forest_fighter_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:cautious_leader - } - localization_key = cautious_leader_skill_desc - } - text = { - trigger = { - var:commander_trait_being_taught = flag:organizer - } - localization_key = organizer_skill_desc - } -} - -WarhorseStoryName = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:tencendur - } - } - localization_key = warhorse_name_tencendur - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:bucephalus - } - } - localization_key = warhorse_name_bucephalus - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:seianian - } - } - localization_key = warhorse_name_seianian - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:zuljanah - } - } - localization_key = warhorse_name_zuljanah - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:red_hare - } - } - localization_key = warhorse_name_red_hare - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:veillantif - } - } - localization_key = warhorse_name_veillantif - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:incitatus - } - } - localization_key = warhorse_name_incitatus - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:llamrei - } - } - localization_key = warhorse_name_llamrei - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:sleipnir - } - } - localization_key = warhorse_name_sleipnir - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:uchchaihshravas - } - } - localization_key = warhorse_name_uchchaihshravas - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:dadhi_kra - } - } - localization_key = warhorse_name_dadhi_kra - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:devadatta - } - } - localization_key = warhorse_name_devadatta - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:keshi - } - } - localization_key = warhorse_name_keshi - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:kanthaka - } - } - localization_key = warhorse_name_kanthaka - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:haizum - } - } - localization_key = warhorse_name_haizum - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:buraq - } - } - localization_key = warhorse_name_buraq - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:burko - } - } - localization_key = warhorse_name_burko - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:aranjagaan - } - } - localization_key = warhorse_name_aranjagaan - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:balius - } - } - localization_key = warhorse_name_balius - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:xanthos - } - } - localization_key = warhorse_name_xanthos - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:boreas - } - } - localization_key = warhorse_name_boreas - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:prancer - } - } - localization_key = warhorse_name_prancer - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:charger - } - } - localization_key = warhorse_name_charger - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:abbot - } - } - localization_key = warhorse_name_abbot - } - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:story_cycle_horse_name = flag:glitterhoof - } - } - localization_key = warhorse_name_glitterhoof - } -} - - -HorseMareStallion = { - type = character - - text = { - trigger = { - is_female = yes - } - localization_key = horse_gender_mare - } - text = { - trigger = { - is_male = yes - } - localization_key = horse_gender_stallion - } -} - - - -#For horse story -HorseStoryHerHis = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:horse_gender = flag:female - } - } - localization_key = horse_gender_her - } - text = { - trigger = { always = no } - fallback = yes - localization_key = horse_gender_his - } -} - -HorseStoryHerHim = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:horse_gender = flag:female - } - } - localization_key = horse_gender_her - } - text = { - trigger = { always = no } - fallback = yes - localization_key = horse_gender_him - } -} - -HorseStorySheHe = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:horse_gender = flag:female - } - } - localization_key = horse_gender_she - } - text = { - trigger = { always = no } - fallback = yes - localization_key = horse_gender_he - } -} - -HorseStoryMareStallion = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:horse_gender = flag:female - } - } - localization_key = horse_gender_mare - } - text = { - trigger = { always = no } - fallback = yes - localization_key = horse_gender_stallion - } -} - -HorseStoryOppositeMareStallion = { - type = character - - text = { - trigger = { - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - var:horse_gender = flag:male - } - } - localization_key = horse_gender_mare - } - text = { - trigger = { always = no } - fallback = yes - localization_key = horse_gender_stallion - } -} diff --git a/common/customizable_localization/00_notification_custom_loc.txt b/common/customizable_localization/00_notification_custom_loc.txt deleted file mode 100644 index 51114928b8..0000000000 --- a/common/customizable_localization/00_notification_custom_loc.txt +++ /dev/null @@ -1,23 +0,0 @@ -HierarchicalStatus = { - type = character - - text = { - localization_key = notification.hierarchy.vassal - trigger = { - liege = scope:second - } - } - - text = { - localization_key = notification.hierarchy.liege - trigger = { - scope:second = { - liege = root - } - } - } - - text = { - localization_key = notification.hierarchy.ruler - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_peasants.txt b/common/customizable_localization/00_peasants.txt deleted file mode 100644 index 823c39b956..0000000000 --- a/common/customizable_localization/00_peasants.txt +++ /dev/null @@ -1,575 +0,0 @@ -dummy_peasant_profession = { - type = character - random_valid = yes - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_miller - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_millers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_millers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_reeve - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_reeves_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_reeves_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_bailif - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_bailifs_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_bailifs_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_bowyer - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_bowyers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_bowyers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_cobbler - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_cobblers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_cobblers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_night_watchman - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_night_watchmans_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_night_watchmans_husband - } - - text = { - localization_key = peasant_profession_herbalist - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_farmer - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_farmers_wife - } - - text = { - trigger = { is_female = yes } - localization_key = peasant_profession_prioress - } - - text = { - trigger = { is_male = yes } - localization_key = peasant_profession_prior - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_farrier - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_farriers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_farriers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_knacker - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_knackers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_knackers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_tanner - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_tanners_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_tanners_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_cooper - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_coopers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_coopers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_carpenter - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_carpenters_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_carpenters_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_shepherd - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_shepherds_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_shepherds_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_fletcher - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_fletchers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_fletchers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_blacksmith - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_blacksmiths_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_blacksmiths_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_brewer - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_brewers_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_brewers_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_potter - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_potters_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_potters_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_mason - } - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_masons_wife - } - text = { - trigger = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_female = no - } - localization_key = peasant_profession_masons_husband - } - - text = { - trigger = { - OR = { - AND = { - scope:second = { faith_dominant_gender_female_or_equal = yes } - is_male = yes - } - AND = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - } - } - localization_key = peasant_profession_weaver - } - - text = { - trigger = { - scope:second = { faith_dominant_gender_male_or_equal = yes } - is_female = yes - } - localization_key = peasant_profession_washwoman - } -} diff --git a/common/customizable_localization/00_personal_details_custom_loc.txt b/common/customizable_localization/00_personal_details_custom_loc.txt deleted file mode 100644 index e5207a8f9d..0000000000 --- a/common/customizable_localization/00_personal_details_custom_loc.txt +++ /dev/null @@ -1,442 +0,0 @@ - -#GetChildEducationFocus is using loc from this -education_focus = { - type = character - - text = { - localization_key = education_learning_loc - trigger = { - has_trait = education_learning - } - } - text = { - localization_key = education_stewardship_loc - trigger = { - has_trait = education_stewardship - } - } - text = { - localization_key = education_martial_loc - trigger = { - has_trait = education_martial - } - } - text = { - localization_key = education_intrigue_loc - trigger = { - has_trait = education_intrigue - } - } - text = { - localization_key = education_diplomacy_loc - trigger = { - has_trait = education_diplomacy - } - } -} - -education_focus_child = { - type = character - - text = { - localization_key = education_learning_loc - trigger = { - exists = var:education_learning_variable - } - } - text = { - localization_key = education_stewardship_loc - trigger = { - exists = var:education_stewardship_variable - } - } - text = { - localization_key = education_martial_loc - trigger = { - exists = var:education_martial_variable - } - } - text = { - localization_key = education_intrigue_loc - trigger = { - exists = var:education_intrigue_variable - } - } - text = { - localization_key = education_diplomacy_loc - trigger = { - exists = var:education_diplomacy_variable - } - } -} - -GeneralTemperament = { - type = character - - text = { - localization_key = temper_anger - trigger = { - OR = { - has_personality_malicious_trigger = yes - has_personality_dominant_trigger = yes - has_personality_extroverted_trigger = yes - } - } - } - text = { - localization_key = temper_disappointment - trigger = { - has_personality_benevolent_trigger = yes - } - } - text = { - localization_key = temper_hesitation - trigger = { - OR = { - has_personality_introverted_trigger = yes - has_personality_submissive_trigger = yes - has_personality_levelheaded_trigger = yes - } - } - } - text = { - localization_key = temper_horror - trigger = { - has_personality_emotional_trigger = yes - } - } -} - -prison_pet = { - type = character - - text = { - trigger = { - OR = { - AND = { - exists = var:prison_pet_variable - var:prison_pet_variable = flag:rat - } - NOT = { exists = var:prison_pet_variable } - } - } - localization_key = prison_pet_rat - } - text = { - trigger = { - OR = { - AND = { - exists = var:prison_pet_variable - var:prison_pet_variable = flag:stone - } - NOT = { exists = var:prison_pet_variable } - } - } - localization_key = prison_pet_stone - } - text = { - trigger = { - OR = { - AND = { - exists = var:prison_pet_variable - var:prison_pet_variable = flag:spoon - } - NOT = { exists = var:prison_pet_variable } - } - } - localization_key = prison_pet_spoon - } - text = { - trigger = { - OR = { - AND = { - exists = var:prison_pet_variable - var:prison_pet_variable = flag:cockroach - } - NOT = { exists = var:prison_pet_variable } - } - } - localization_key = prison_pet_cockroach - } -} - -#Can only be things which are made by man! Should all fit with "a" (not an) -SuitableGiftItem = { - type = character - - random_valid = yes - - text = { - trigger = { ai_energy > 0 } - localization_key = saddle - } - text = { - trigger = { is_female = yes } - localization_key = gown - } - text = { - trigger = { is_female = no } - localization_key = jacket - } - text = { - trigger = { intrigue >= decent_skill_rating } - localization_key = dagger - } - text = { - trigger = { - OR = { - intrigue >= decent_skill_rating - prowess >= decent_skill_rating - } - } - localization_key = sword - } - text = { - trigger = { diplomacy >= decent_skill_rating } - localization_key = silver_inkhorn - } - text = { - localization_key = ruby_ring - } - text = { - localization_key = emerald_necklace - } - text = { - localization_key = enamel_brooch - } - text = { - localization_key = tapestry - } - text = { - trigger = { - OR = { - learning >= decent_skill_rating - has_trait = zealous - } - } - localization_key = holy_bock - } - text = { - trigger = { learning >= decent_skill_rating } - localization_key = leatherbound_journal - } -} - -#How did the character die? (For easy tooltipping) -DiedHouse_arrest = { - type = character - - text = { - localization_key = died_simply - trigger = { - NOT = { exists = scope:house_arrest_holder } - } - } - - text = { - localization_key = died_house_arrest - trigger = { - exists = scope:house_arrest_holder - } - } -} - -#Object for deviant -DeviantObjectArticle = { - type = character - - random_valid = yes - - text = { - localization_key = a_whip - } - - text = { - localization_key = a_shoe - } - - text = { - localization_key = a_rope - } - - text = { - localization_key = a_loincloth - } - - text = { - localization_key = a_stick - } - - text = { - localization_key = a_feather - } - - text = { - localization_key = an_animal_skin - } - - text = { - localization_key = a_candle - } - - text = { - localization_key = a_razor_blade - } -} - -DeviantObjectNoun = { - - type = character - - random_valid = yes - - text = { - localization_key = whip - } - - text = { - localization_key = shoe - } - - text = { - localization_key = rope - } - - text = { - localization_key = loincloth - } - - text = { - localization_key = stick - } - - text = { - localization_key = feather - } - - text = { - localization_key = animal_skin - } - - text = { - localization_key = candle - } - - text = { - localization_key = razor_blade - } -} - -DeviantObjectCapitalized = { - type = character - - random_valid = yes - - text = { - localization_key = capitalized_whip - } - - text = { - localization_key = capitalized_shoe - } - - text = { - localization_key = capitalized_rope - } - - text = { - localization_key = capitalized_loincloth - } - - text = { - localization_key = capitalized_stick - } - - text = { - localization_key = capitalized_feather - } - - text = { - localization_key = capitalized_animal_skin - } - - text = { - localization_key = capitalized_candle - } - - text = { - localization_key = capitalized_razor_blade - } -} - -DeviantObjectPlural = { - type = character - - random_valid = yes - - text = { - localization_key = object_whips - } - - text = { - localization_key = object_shoes - } - - text = { - localization_key = object_ropes - } - - text = { - localization_key = object_loinclothes - } - - text = { - localization_key = object_sticks - } - - text = { - localization_key = object_feathers - } - - text = { - localization_key = object_animal_skins - } - - text = { - localization_key = object_candles - } - - text = { - localization_key = object_razor_blades - } -} - -RandomObjectPlural = { - type = character - - random_valid = yes - - text = { - localization_key = object_whips - } - - text = { - localization_key = object_shoes - } - - text = { - localization_key = object_ropes - } - - text = { - localization_key = object_sticks - } - - text = { - localization_key = object_feathers - } - - text = { - localization_key = object_candles - } -} diff --git a/common/customizable_localization/00_personality_quirks_custom_loc.txt b/common/customizable_localization/00_personality_quirks_custom_loc.txt deleted file mode 100644 index 54a85eea4d..0000000000 --- a/common/customizable_localization/00_personality_quirks_custom_loc.txt +++ /dev/null @@ -1,4025 +0,0 @@ -##POSITIVE## - #quirk_pos_present - #quirk_pos_personal_present - #quirk_pos_standalone - #quirk_pos_pp - #quirk_pos_personal_pp - #quirk_pos_noun - #quirk_pos_adverb - #quirk_pos_adjective - -##NEGATIVE## - #quirk_neg_present - #quirk_neg_personal_present - #quirk_neg_standalone - #quirk_neg_pp - #quirk_neg_personal_pp - #quirk_neg_noun - #quirk_neg_adverb - #quirk_neg_adjective - - - -##################### -# Select negative or positive versions -# Note that all of these require Custom2, with the player character as the primary scope and the character being described as the secondary target. -##################### -#Present: -QuirkPresentPosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_present_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_present_negative - } -} - -#Present standalone: -QuirkStandalonePosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_standalone_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_standalone_negative - } -} - -#Present Participle: -QuirkPPPosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_pp_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_pp_negative - } -} - - -#Noun -QuirkNounPosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_noun_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_noun_negative - } -} - -#Noun -QuirkNounNeg = { - type = character - text = {localization_key = quirk_noun_negative} -} - - -#Adverb -QuirkAdverbPosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_adverb_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_adverb_negative - } -} - - -#Adjective -QuirkAdjectivePosOrNeg = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_adjective_positive - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_adjective_negative - } -} - - -#Quirk personal towards other (Second) -QuirkPersonalTowardsOther = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 0 - } - } - localization_key = quirk_personal_positive_present - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 0 - } - } - localization_key = quirk_personal_negative_present - } -} - - -####################### -####################### -## POSITIVE ## -####################### -####################### - -quirk_pos_present = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_quirk - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk - } -} - -quirk_pos_personal_present = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_personal - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_personal - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_personal - } -} - -quirk_pos_standalone = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_standalone - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_standalone - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_standalone - } -} - - -quirk_pos_pp = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_pp - } -} - - -quirk_pos_personal_pp = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_personal_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_personal_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_personal_pp - } -} - - - -quirk_pos_noun = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_3_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_noun_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_noun_1 - } -} - -quirk_pos_adverb = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_3_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_adverb_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_adverb_1 - } -} - -quirk_pos_adjective = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_3_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_3_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_4_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_3_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_4_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_3_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_adjective_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_adjective_1 - } -} - - - -####################### -####################### -## NEGATIVE ## -####################### -####################### - -quirk_neg_present = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk - } -} - -quirk_neg_personal_present = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_personal - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_personal - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_personal - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_personal - } -} - -quirk_neg_standalone = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_standalone - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_standalone - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_standalone - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_standalone - } -} - - -quirk_neg_pp = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_pp - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_pp - } -} - - -quirk_neg_personal_pp = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_2_neg_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_personal_pp - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_personal_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_personal_pp - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_2_quirk_personal_pp - } -} - - - -quirk_neg_noun = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_2_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_2_neg_quirk_noun_1 - } - - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_noun_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_noun_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_noun_1 - } -} - -quirk_neg_adverb = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_2_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_adverb_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_adverb_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_adverb_1 - } -} - -quirk_neg_adjective = { - type = character - - random_valid = yes - - text = { - trigger = { var:my_quirk = flag:shy } - localization_key = shy_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:arrogant } - localization_key = arrogant_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:greedy } - localization_key = greedy_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lustful } - localization_key = lustful_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:chaste } - localization_key = chaste_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:temperate } - localization_key = temperate_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gluttonous } - localization_key = gluttonous_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:diligent } - localization_key = diligent_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lazy } - localization_key = lazy_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:wrathful } - localization_key = wrathful_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:calm } - localization_key = calm_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:impatient } - localization_key = impatient_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:humble } - localization_key = humble_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:deceitful } - localization_key = deceitful_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:honest } - localization_key = honest_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:generous } - localization_key = generous_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:craven } - localization_key = craven_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:brave } - localization_key = brave_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gregarious } - localization_key = gregarious_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:ambitious } - localization_key = ambitious_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:arbitrary } - localization_key = arbitrary_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:just } - localization_key = just_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:cynical } - localization_key = cynical_3_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:zealous } - localization_key = zealous_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:paranoid } - localization_key = paranoid_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:trusting } - localization_key = trusting_3_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:compassionate } - localization_key = compassionate_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:sadistic } - localization_key = sadistic_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_2_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:vengeful } - localization_key = vengeful_3_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:forgiving } - localization_key = forgiving_neg_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:lunatic } - localization_key = lunatic_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:leper } - localization_key = leper_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:gout_ridden } - localization_key = gout_ridden_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:consumption } - localization_key = consumption_quirk_adjective_1 - } - - text = { - trigger = { var:my_quirk = flag:horse } - localization_key = horse_quirk_adjective_1 - } - - text = { - trigger = { - OR = { - var:my_quirk = flag:fallback - var:my_quirk = flag:lunatic - } - } - localization_key = fallback_quirk_adjective_1 - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_personality_traits_custom_loc.txt b/common/customizable_localization/00_personality_traits_custom_loc.txt deleted file mode 100644 index e5a7335daf..0000000000 --- a/common/customizable_localization/00_personality_traits_custom_loc.txt +++ /dev/null @@ -1,772 +0,0 @@ -PersonalityGetTraitDescriptionFromFlag = { - type = character - - text = { - trigger = { scope:has_opposing_trait = flag:arrogant } - localization_key = personality_traitdesc.negative.arrogant - } - text = { - trigger = { scope:has_opposing_trait = flag:humble } - localization_key = personality_traitdesc.negative.humble - } - text = { - trigger = { scope:has_opposing_trait = flag:lustful } - localization_key = personality_traitdesc.negative.lustful - } - text = { - trigger = { scope:has_opposing_trait = flag:chaste } - localization_key = personality_traitdesc.negative.chaste - } - text = { - trigger = { scope:has_opposing_trait = flag:gregarious } - localization_key = personality_traitdesc.negative.gregarious - } - text = { - trigger = { scope:has_opposing_trait = flag:shy } - localization_key = personality_traitdesc.negative.shy - } - text = { - trigger = { scope:has_opposing_trait = flag:generous } - localization_key = personality_traitdesc.negative.generous - } - text = { - trigger = { scope:has_opposing_trait = flag:greedy } - localization_key = personality_traitdesc.negative.greedy - } - text = { - trigger = { scope:has_opposing_trait = flag:ambitious } - localization_key = personality_traitdesc.negative.ambitious - } - text = { - trigger = { scope:has_opposing_trait = flag:content } - localization_key = personality_traitdesc.negative.content - } - text = { - trigger = { scope:has_opposing_trait = flag:impatient } - localization_key = personality_traitdesc.negative.impatient - } - text = { - trigger = { scope:has_opposing_trait = flag:patient } - localization_key = personality_traitdesc.negative.patient - } - text = { - trigger = { scope:has_opposing_trait = flag:temperate } - localization_key = personality_traitdesc.negative.temperate - } - text = { - trigger = { scope:has_opposing_trait = flag:gluttonous } - localization_key = personality_traitdesc.negative.gluttonous - } - text = { - trigger = { scope:has_opposing_trait = flag:diligent } - localization_key = personality_traitdesc.negative.diligent - } - text = { - trigger = { scope:has_opposing_trait = flag:lazy } - localization_key = personality_traitdesc.negative.lazy - } - text = { - trigger = { scope:has_opposing_trait = flag:wrathful } - localization_key = personality_traitdesc.negative.wrathful - } - text = { - trigger = { scope:has_opposing_trait = flag:calm } - localization_key = personality_traitdesc.negative.calm - } - text = { - trigger = { scope:has_opposing_trait = flag:deceitful } - localization_key = personality_traitdesc.negative.deceitful - } - text = { - trigger = { scope:has_opposing_trait = flag:honest } - localization_key = personality_traitdesc.negative.honest - } - text = { - trigger = { scope:has_opposing_trait = flag:craven } - localization_key = personality_traitdesc.negative.craven - } - text = { - trigger = { scope:has_opposing_trait = flag:brave } - localization_key = personality_traitdesc.negative.brave - } - text = { - trigger = { scope:has_opposing_trait = flag:arbitrary } - localization_key = personality_traitdesc.negative.arbitrary - } - text = { - trigger = { scope:has_opposing_trait = flag:just } - localization_key = personality_traitdesc.negative.just - } - text = { - trigger = { scope:has_opposing_trait = flag:cynical } - localization_key = personality_traitdesc.negative.cynical - } - text = { - trigger = { scope:has_opposing_trait = flag:zealous } - localization_key = personality_traitdesc.negative.zealous - } - text = { - trigger = { scope:has_opposing_trait = flag:paranoid } - localization_key = personality_traitdesc.negative.paranoid - } - text = { - trigger = { scope:has_opposing_trait = flag:trusting } - localization_key = personality_traitdesc.negative.trusting - } - text = { - trigger = { scope:has_opposing_trait = flag:compassionate } - localization_key = personality_traitdesc.negative.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:callous } - localization_key = personality_traitdesc.negative.callous - } - text = { - trigger = { scope:has_opposing_trait = flag:sadistic } - localization_key = personality_traitdesc.negative.sadistic - } - text = { - trigger = { scope:has_opposing_trait = flag:forgiving } - localization_key = personality_traitdesc.negative.forgiving - } - text = { - trigger = { scope:has_opposing_trait = flag:vengeful } - localization_key = personality_traitdesc.negative.vengeful - } - text = { - trigger = { scope:has_opposing_trait = flag:stubborn} - localization_key = personality_traitdesc.negative.stubborn - } - text = { - trigger = { scope:has_opposing_trait = flag:fickle } - localization_key = personality_traitdesc.negative.fickle - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.negative.notrait - fallback = yes - } -} - -# As 'PersonalityGetTraitDescriptionFromFlag', but for tooltips -PersonalityGetTraitDescriptionFromFlagTraitLink = { - type = character - - text = { - trigger = { scope:has_opposing_trait = flag:arrogant } - localization_key = personality_traitdesc.trait.arrogant - } - text = { - trigger = { scope:has_opposing_trait = flag:humble } - localization_key = personality_traitdesc.trait.humble - } - text = { - trigger = { scope:has_opposing_trait = flag:lustful } - localization_key = personality_traitdesc.trait.lustful - } - text = { - trigger = { scope:has_opposing_trait = flag:chaste } - localization_key = personality_traitdesc.trait.chaste - } - text = { - trigger = { scope:has_opposing_trait = flag:gregarious } - localization_key = personality_traitdesc.trait.gregarious - } - text = { - trigger = { scope:has_opposing_trait = flag:shy } - localization_key = personality_traitdesc.trait.shy - } - text = { - trigger = { scope:has_opposing_trait = flag:generous } - localization_key = personality_traitdesc.trait.generous - } - text = { - trigger = { scope:has_opposing_trait = flag:greedy } - localization_key = personality_traitdesc.trait.greedy - } - text = { - trigger = { scope:has_opposing_trait = flag:ambitious } - localization_key = personality_traitdesc.trait.ambitious - } - text = { - trigger = { scope:has_opposing_trait = flag:content } - localization_key = personality_traitdesc.trait.content - } - text = { - trigger = { scope:has_opposing_trait = flag:impatient } - localization_key = personality_traitdesc.trait.impatient - } - text = { - trigger = { scope:has_opposing_trait = flag:patient } - localization_key = personality_traitdesc.trait.patient - } - text = { - trigger = { scope:has_opposing_trait = flag:temperate } - localization_key = personality_traitdesc.trait.temperate - } - text = { - trigger = { scope:has_opposing_trait = flag:gluttonous } - localization_key = personality_traitdesc.trait.gluttonous - } - text = { - trigger = { scope:has_opposing_trait = flag:diligent } - localization_key = personality_traitdesc.trait.diligent - } - text = { - trigger = { scope:has_opposing_trait = flag:lazy } - localization_key = personality_traitdesc.trait.lazy - } - text = { - trigger = { scope:has_opposing_trait = flag:wrathful } - localization_key = personality_traitdesc.trait.wrathful - } - text = { - trigger = { scope:has_opposing_trait = flag:calm } - localization_key = personality_traitdesc.trait.calm - } - text = { - trigger = { scope:has_opposing_trait = flag:deceitful } - localization_key = personality_traitdesc.trait.deceitful - } - text = { - trigger = { scope:has_opposing_trait = flag:honest } - localization_key = personality_traitdesc.trait.honest - } - text = { - trigger = { scope:has_opposing_trait = flag:craven } - localization_key = personality_traitdesc.trait.craven - } - text = { - trigger = { scope:has_opposing_trait = flag:brave } - localization_key = personality_traitdesc.trait.brave - } - text = { - trigger = { scope:has_opposing_trait = flag:arbitrary } - localization_key = personality_traitdesc.trait.arbitrary - } - text = { - trigger = { scope:has_opposing_trait = flag:just } - localization_key = personality_traitdesc.trait.just - } - text = { - trigger = { scope:has_opposing_trait = flag:cynical } - localization_key = personality_traitdesc.trait.cynical - } - text = { - trigger = { scope:has_opposing_trait = flag:zealous } - localization_key = personality_traitdesc.trait.zealous - } - text = { - trigger = { scope:has_opposing_trait = flag:paranoid } - localization_key = personality_traitdesc.trait.paranoid - } - text = { - trigger = { scope:has_opposing_trait = flag:trusting } - localization_key = personality_traitdesc.trait.trusting - } - text = { - trigger = { scope:has_opposing_trait = flag:compassionate } - localization_key = personality_traitdesc.trait.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:callous } - localization_key = personality_traitdesc.trait.callous - } - text = { - trigger = { scope:has_opposing_trait = flag:sadistic } - localization_key = personality_traitdesc.trait.sadistic - } - text = { - trigger = { scope:has_opposing_trait = flag:forgiving } - localization_key = personality_traitdesc.trait.forgiving - } - text = { - trigger = { scope:has_opposing_trait = flag:vengeful } - localization_key = personality_traitdesc.trait.vengeful - } - text = { - trigger = { scope:has_opposing_trait = flag:stubborn} - localization_key = personality_traitdesc.trait.stubborn - } - text = { - trigger = { scope:has_opposing_trait = flag:fickle } - localization_key = personality_traitdesc.trait.fickle - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.trait.notrait - fallback = yes - } -} - - - -# Based on an input personality trait, outputs a descriptor of the opposite trait. -PersonalityGetTraitDescriptionFromFlagInverted = { - type = character - - text = { - trigger = { scope:has_opposing_trait = flag:humble } - localization_key = personality_traitdesc.positive.arrogant - } - text = { - trigger = { scope:has_opposing_trait = flag:arrogant } - localization_key = personality_traitdesc.positive.humble - } - text = { - trigger = { scope:has_opposing_trait = flag:chaste } - localization_key = personality_traitdesc.positive.lustful - } - text = { - trigger = { scope:has_opposing_trait = flag:lustful } - localization_key = personality_traitdesc.positive.chaste - } - text = { - trigger = { scope:has_opposing_trait = flag:shy } - localization_key = personality_traitdesc.positive.gregarious - } - text = { - trigger = { scope:has_opposing_trait = flag:gregarious } - localization_key = personality_traitdesc.positive.shy - } - text = { - trigger = { scope:has_opposing_trait = flag:greedy } - localization_key = personality_traitdesc.positive.generous - } - text = { - trigger = { scope:has_opposing_trait = flag:generous } - localization_key = personality_traitdesc.positive.greedy - } - text = { - trigger = { scope:has_opposing_trait = flag:content } - localization_key = personality_traitdesc.positive.ambitious - } - text = { - trigger = { scope:has_opposing_trait = flag:ambitious } - localization_key = personality_traitdesc.positive.content - } - text = { - trigger = { scope:has_opposing_trait = flag:patient } - localization_key = personality_traitdesc.positive.impatient - } - text = { - trigger = { scope:has_opposing_trait = flag:impatient } - localization_key = personality_traitdesc.positive.patient - } - text = { - trigger = { scope:has_opposing_trait = flag:gluttonous } - localization_key = personality_traitdesc.positive.temperate - } - text = { - trigger = { scope:has_opposing_trait = flag:temperate } - localization_key = personality_traitdesc.positive.gluttonous - } - text = { - trigger = { scope:has_opposing_trait = flag:lazy } - localization_key = personality_traitdesc.positive.diligent - } - text = { - trigger = { scope:has_opposing_trait = flag:diligent } - localization_key = personality_traitdesc.positive.lazy - } - text = { - trigger = { scope:has_opposing_trait = flag:calm } - localization_key = personality_traitdesc.positive.wrathful - } - text = { - trigger = { scope:has_opposing_trait = flag:wrathful } - localization_key = personality_traitdesc.positive.calm - } - text = { - trigger = { scope:has_opposing_trait = flag:honest } - localization_key = personality_traitdesc.positive.deceitful - } - text = { - trigger = { scope:has_opposing_trait = flag:deceitful } - localization_key = personality_traitdesc.positive.honest - } - text = { - trigger = { scope:has_opposing_trait = flag:brave } - localization_key = personality_traitdesc.positive.craven - } - text = { - trigger = { scope:has_opposing_trait = flag:craven } - localization_key = personality_traitdesc.positive.brave - } - text = { - trigger = { scope:has_opposing_trait = flag:just } - localization_key = personality_traitdesc.positive.arbitrary - } - text = { - trigger = { scope:has_opposing_trait = flag:arbitrary } - localization_key = personality_traitdesc.positive.just - } - text = { - trigger = { scope:has_opposing_trait = flag:zealous } - localization_key = personality_traitdesc.positive.cynical - } - text = { - trigger = { scope:has_opposing_trait = flag:cynical } - localization_key = personality_traitdesc.positive.zealous - } - text = { - trigger = { scope:has_opposing_trait = flag:trusting } - localization_key = personality_traitdesc.positive.paranoid - } - text = { - trigger = { scope:has_opposing_trait = flag:paranoid } - localization_key = personality_traitdesc.positive.trusting - } - text = { - trigger = { scope:has_opposing_trait = flag:callous } - localization_key = personality_traitdesc.positive.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:compassionate } - localization_key = personality_traitdesc.positive.callous - } - text = { - trigger = { scope:has_opposing_trait = flag:sadistic } - localization_key = personality_traitdesc.positive.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:vengeful } - localization_key = personality_traitdesc.positive.forgiving - } - text = { - trigger = { scope:has_opposing_trait = flag:forgiving } - localization_key = personality_traitdesc.positive.vengeful - } - text = { - trigger = { scope:has_opposing_trait = flag:fickle } - localization_key = personality_traitdesc.positive.stubborn - } - text = { - trigger = { scope:has_opposing_trait = flag:stubborn } - localization_key = personality_traitdesc.positive.fickle - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.positive.notrait - fallback = yes - } -} - -# For use with the above, but in tooltips. -PersonalityGetTraitDescriptionFromFlagInvertedTraitLink = { - type = character - - text = { - trigger = { scope:has_opposing_trait = flag:humble } - localization_key = personality_traitdesc.trait.arrogant - } - text = { - trigger = { scope:has_opposing_trait = flag:arrogant } - localization_key = personality_traitdesc.trait.humble - } - text = { - trigger = { scope:has_opposing_trait = flag:chaste } - localization_key = personality_traitdesc.trait.lustful - } - text = { - trigger = { scope:has_opposing_trait = flag:lustful } - localization_key = personality_traitdesc.trait.chaste - } - text = { - trigger = { scope:has_opposing_trait = flag:shy } - localization_key = personality_traitdesc.trait.gregarious - } - text = { - trigger = { scope:has_opposing_trait = flag:gregarious } - localization_key = personality_traitdesc.trait.shy - } - text = { - trigger = { scope:has_opposing_trait = flag:greedy } - localization_key = personality_traitdesc.trait.generous - } - text = { - trigger = { scope:has_opposing_trait = flag:generous } - localization_key = personality_traitdesc.trait.greedy - } - text = { - trigger = { scope:has_opposing_trait = flag:content } - localization_key = personality_traitdesc.trait.ambitious - } - text = { - trigger = { scope:has_opposing_trait = flag:ambitious } - localization_key = personality_traitdesc.trait.content - } - text = { - trigger = { scope:has_opposing_trait = flag:patient } - localization_key = personality_traitdesc.trait.impatient - } - text = { - trigger = { scope:has_opposing_trait = flag:impatient } - localization_key = personality_traitdesc.trait.patient - } - text = { - trigger = { scope:has_opposing_trait = flag:gluttonous } - localization_key = personality_traitdesc.trait.temperate - } - text = { - trigger = { scope:has_opposing_trait = flag:temperate } - localization_key = personality_traitdesc.trait.gluttonous - } - text = { - trigger = { scope:has_opposing_trait = flag:lazy } - localization_key = personality_traitdesc.trait.diligent - } - text = { - trigger = { scope:has_opposing_trait = flag:diligent } - localization_key = personality_traitdesc.trait.lazy - } - text = { - trigger = { scope:has_opposing_trait = flag:calm } - localization_key = personality_traitdesc.trait.wrathful - } - text = { - trigger = { scope:has_opposing_trait = flag:wrathful } - localization_key = personality_traitdesc.trait.calm - } - text = { - trigger = { scope:has_opposing_trait = flag:honest } - localization_key = personality_traitdesc.trait.deceitful - } - text = { - trigger = { scope:has_opposing_trait = flag:deceitful } - localization_key = personality_traitdesc.trait.honest - } - text = { - trigger = { scope:has_opposing_trait = flag:brave } - localization_key = personality_traitdesc.trait.craven - } - text = { - trigger = { scope:has_opposing_trait = flag:craven } - localization_key = personality_traitdesc.trait.brave - } - text = { - trigger = { scope:has_opposing_trait = flag:just } - localization_key = personality_traitdesc.trait.arbitrary - } - text = { - trigger = { scope:has_opposing_trait = flag:arbitrary } - localization_key = personality_traitdesc.trait.just - } - text = { - trigger = { scope:has_opposing_trait = flag:zealous } - localization_key = personality_traitdesc.trait.cynical - } - text = { - trigger = { scope:has_opposing_trait = flag:cynical } - localization_key = personality_traitdesc.trait.zealous - } - text = { - trigger = { scope:has_opposing_trait = flag:trusting } - localization_key = personality_traitdesc.trait.paranoid - } - text = { - trigger = { scope:has_opposing_trait = flag:paranoid } - localization_key = personality_traitdesc.trait.trusting - } - text = { - trigger = { scope:has_opposing_trait = flag:callous } - localization_key = personality_traitdesc.trait.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:compassionate } - localization_key = personality_traitdesc.trait.callous - } - text = { - trigger = { scope:has_opposing_trait = flag:sadistic } - localization_key = personality_traitdesc.trait.compassionate - } - text = { - trigger = { scope:has_opposing_trait = flag:vengeful } - localization_key = personality_traitdesc.trait.forgiving - } - text = { - trigger = { scope:has_opposing_trait = flag:forgiving } - localization_key = personality_traitdesc.trait.vengeful - } - text = { - trigger = { scope:has_opposing_trait = flag:fickle } - localization_key = personality_traitdesc.trait.stubborn - } - text = { - trigger = { scope:has_opposing_trait = flag:stubborn } - localization_key = personality_traitdesc.trait.fickle - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.trait.notrait - fallback = yes - } -} - - -PersonalityGetSharedTraitDescriptionFromFlag = { - type = character - - text = { - trigger = { scope:has_shared_trait = flag:arrogant } - localization_key = personality_traitdesc.positive.arrogant - } - text = { - trigger = { scope:has_shared_trait = flag:humble } - localization_key = personality_traitdesc.positive.humble - } - text = { - trigger = { scope:has_shared_trait = flag:lustful } - localization_key = personality_traitdesc.positive.lustful - } - text = { - trigger = { scope:has_shared_trait = flag:chaste } - localization_key = personality_traitdesc.positive.chaste - } - text = { - trigger = { scope:has_shared_trait = flag:gregarious } - localization_key = personality_traitdesc.positive.gregarious - } - text = { - trigger = { scope:has_shared_trait = flag:shy } - localization_key = personality_traitdesc.positive.shy - } - text = { - trigger = { scope:has_shared_trait = flag:generous } - localization_key = personality_traitdesc.positive.generous - } - text = { - trigger = { scope:has_shared_trait = flag:greedy } - localization_key = personality_traitdesc.positive.greedy - } - text = { - trigger = { scope:has_shared_trait = flag:ambitious } - localization_key = personality_traitdesc.positive.ambitious - } - text = { - trigger = { scope:has_shared_trait = flag:content } - localization_key = personality_traitdesc.positive.content - } - text = { - trigger = { scope:has_shared_trait = flag:impatient } - localization_key = personality_traitdesc.positive.impatient - } - text = { - trigger = { scope:has_shared_trait = flag:patient } - localization_key = personality_traitdesc.positive.patient - } - text = { - trigger = { scope:has_shared_trait = flag:temperate } - localization_key = personality_traitdesc.positive.temperate - } - text = { - trigger = { scope:has_shared_trait = flag:gluttonous } - localization_key = personality_traitdesc.positive.gluttonous - } - text = { - trigger = { scope:has_shared_trait = flag:diligent } - localization_key = personality_traitdesc.positive.diligent - } - text = { - trigger = { scope:has_shared_trait = flag:lazy } - localization_key = personality_traitdesc.positive.lazy - } - text = { - trigger = { scope:has_shared_trait = flag:wrathful } - localization_key = personality_traitdesc.positive.wrathful - } - text = { - trigger = { scope:has_shared_trait = flag:calm } - localization_key = personality_traitdesc.positive.calm - } - text = { - trigger = { scope:has_shared_trait = flag:deceitful } - localization_key = personality_traitdesc.positive.deceitful - } - text = { - trigger = { scope:has_shared_trait = flag:honest } - localization_key = personality_traitdesc.positive.honest - } - text = { - trigger = { scope:has_shared_trait = flag:craven } - localization_key = personality_traitdesc.positive.craven - } - text = { - trigger = { scope:has_shared_trait = flag:brave } - localization_key = personality_traitdesc.positive.brave - } - text = { - trigger = { scope:has_shared_trait = flag:arbitrary } - localization_key = personality_traitdesc.positive.arbitrary - } - text = { - trigger = { scope:has_shared_trait = flag:just } - localization_key = personality_traitdesc.positive.just - } - text = { - trigger = { scope:has_shared_trait = flag:cynical } - localization_key = personality_traitdesc.positive.cynical - } - text = { - trigger = { scope:has_shared_trait = flag:zealous } - localization_key = personality_traitdesc.positive.zealous - } - text = { - trigger = { scope:has_shared_trait = flag:paranoid } - localization_key = personality_traitdesc.positive.paranoid - } - text = { - trigger = { scope:has_shared_trait = flag:trusting } - localization_key = personality_traitdesc.positive.trusting - } - text = { - trigger = { scope:has_shared_trait = flag:compassionate } - localization_key = personality_traitdesc.positive.compassionate - } - text = { - trigger = { scope:has_shared_trait = flag:callous } - localization_key = personality_traitdesc.positive.callous - } - text = { - trigger = { scope:has_shared_trait = flag:sadistic } - localization_key = personality_traitdesc.positive.sadistic - } - text = { - trigger = { scope:has_shared_trait = flag:forgiving } - localization_key = personality_traitdesc.positive.forgiving - } - text = { - trigger = { scope:has_shared_trait = flag:vengeful } - localization_key = personality_traitdesc.positive.vengeful - } - text = { - trigger = { scope:has_shared_trait = flag:stubborn} - localization_key = personality_traitdesc.positive.stubborn - } - text = { - trigger = { scope:has_shared_trait = flag:fickle } - localization_key = personality_traitdesc.positive.fickle - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.negative.notrait - fallback = yes - } -} - - - - -PersonalityBraveTest = { - type = character - - text = { - trigger = { scope:has_shared_trait = flag:brave } - localization_key = personality_traitdesc.positive.brave - } - text = { - trigger = { always = no } - localization_key = personality_traitdesc.negative.notrait - fallback = yes - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_pet_name_generic.txt b/common/customizable_localization/00_pet_name_generic.txt deleted file mode 100644 index a45e634ca9..0000000000 --- a/common/customizable_localization/00_pet_name_generic.txt +++ /dev/null @@ -1,137 +0,0 @@ -PetName = { #PetName: lover ones with sexual or romantic terms removed - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling - } - - text = { - localization_key = pet_name_dearest - } - - text = { - localization_key = pet_name_little_pet - } - - text = { - localization_key = pet_name_treasure - } - - text = { - localization_key = pet_name_sweetness - } - - text = { - localization_key = pet_name_rose - } - - text = { - localization_key = pet_name_sunshine - } - - text = { - localization_key = pet_name_spring_blossom - } - - text = { - localization_key = pet_name_petal - } - - text = { - localization_key = pet_name_honeycomb - } -} - -PetName_uppercase = { - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling_uppercase - } - - text = { - localization_key = pet_name_dearest_uppercase - } - - text = { - localization_key = pet_name_morsel_uppercase - } - - text = { - localization_key = pet_name_little_pet_uppercase - } - - text = { - localization_key = pet_name_treasure_uppercase - } - - text = { - localization_key = pet_name_rose_uppercase - } - - text = { - localization_key = pet_name_sweetness_uppercase - } - - text = { - localization_key = pet_name_sunshine_uppercase - } - - text = { - localization_key = pet_name_spring_blossom_uppercase - } - - text = { - localization_key = pet_name_petal_uppercase - } - - text = { - localization_key = pet_name_honeycomb_uppercase - } -} - -PetName_possessive = { - type = character - - random_valid = yes - - text = { - localization_key = pet_name_darling_possessive - } - - text = { - localization_key = pet_name_little_pet_possessive - } - - text = { - localization_key = pet_name_treasure_possessive - } - - text = { - localization_key = pet_name_rose_possessive - } - - text = { - localization_key = pet_name_sweetness_possessive - } - - text = { - localization_key = pet_name_sunshine_possessive - } - - text = { - localization_key = pet_name_spring_blossom_possessive - } - - text = { - localization_key = pet_name_petal_possessive - } - - text = { - localization_key = pet_name_honeycomb_possessive - } -} diff --git a/common/customizable_localization/00_petition_liege_custom_loc.txt b/common/customizable_localization/00_petition_liege_custom_loc.txt deleted file mode 100644 index 62555ddc08..0000000000 --- a/common/customizable_localization/00_petition_liege_custom_loc.txt +++ /dev/null @@ -1,107 +0,0 @@ - -DesiredCouncilPosition = { - type = character - - text = { - trigger = { scope:second = flag:chancellor } - localization_key = councillor_chancellor - } - text = { - trigger = { scope:second = flag:marshal } - localization_key = councillor_marshal - } - text = { - trigger = { scope:second = flag:steward } - localization_key = councillor_steward - } - text = { - trigger = { scope:second = flag:spymaster } - localization_key = councillor_spymaster - } - text = { - trigger = { scope:second = flag:court_chaplain } - localization_key = councillor_court_chaplain - } -} - -GetPetitionLiegeTitle = { - type = character - - text = { - trigger = { is_councillor = yes } - localization_key = petition_liege_title_councillor - } - text = { - trigger = { has_any_court_position = yes } - localization_key = petition_liege_title_position - } - text = { - trigger = { is_landed = yes } - localization_key = petition_liege_title_landed - } - text = { - trigger = { is_landed = no } - localization_key = petition_liege_title_courtier - } -} - -GetWildcardRelationLiegeTitle = { - type = character - - text = { - trigger = { is_councillor = yes } - localization_key = petition_liege_title_councillor - } - text = { - trigger = { has_any_court_position = yes } - localization_key = petition_liege_title_position - } - text = { - trigger = { is_landed = yes } - localization_key = petition_liege_title_landed - } - text = { - trigger = { is_landed = no } - localization_key = petition_liege_title_courtier - } -} - -GetCouncilPositionRequest = { - type = character - - text = { - trigger = { - has_variable = petition_liege_council_first - var:petition_liege_council_first = flag:chancellor - } - localization_key = councillor_chancellor - } - text = { - trigger = { - has_variable = petition_liege_council_first - var:petition_liege_council_first = flag:marshal - } - localization_key = councillor_marshal - } - text = { - trigger = { - has_variable = petition_liege_council_first - var:petition_liege_council_first = flag:steward - } - localization_key = councillor_steward - } - text = { - trigger = { - has_variable = petition_liege_council_first - var:petition_liege_council_first = flag:spymaster - } - localization_key = councillor_spymaster - } - text = { - trigger = { - has_variable = petition_liege_council_first - var:petition_liege_council_first = flag:court_chaplain - } - localization_key = councillor_court_chaplain - } -} diff --git a/common/customizable_localization/00_poetry_generation.txt b/common/customizable_localization/00_poetry_generation.txt deleted file mode 100644 index 21c17597c5..0000000000 --- a/common/customizable_localization/00_poetry_generation.txt +++ /dev/null @@ -1,1371 +0,0 @@ -################################################## -# Title Generation -## Spawns an appropriate (for a given definition of "appropriate") title for a poem according to its theme. -## Should always be used in combination with select_poem_theme_random_effect or a sub-effect. - -GeneratePoem_Title = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_romance_01 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_romance_02 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_romance_03 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_romance_04 - } - text = { - trigger = { - var:poetry_theme = flag:romance - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_romance_05 - } - ## } - # Mourning Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning_01 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning_02 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning_03 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning_04 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning_05 - } - ## } - # Legacy Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_legacy_01 - } - text = { - trigger = { - var:poetry_theme = flag:legacy - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_legacy_02 - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_legacy_03 - } - text = { - trigger = { - var:poetry_theme = flag:legacy - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_legacy_04 - } - text = { - trigger = { - var:poetry_theme = flag:legacy - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_legacy_05 - } - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_strife_01 - } - text = { - trigger = { - var:poetry_theme = flag:strife - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_strife_02 - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_strife_03 - } - text = { - trigger = { - var:poetry_theme = flag:strife - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_strife_04 - } - text = { - trigger = { - var:poetry_theme = flag:strife - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_strife_05 - } - ## } - # Incompetence Block - ## comment_container = { - text = { - trigger = { - var:poetry_theme = flag:incompetence - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_incompetence_01 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_incompetence_02 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_incompetence_03 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_incompetence_04 - } - text = { - trigger = { - var:poetry_theme = flag:incompetence - var:poem_subject = { is_landed = yes } - } - localization_key = generatepoem_title_incompetence_05 - } - ## } -} - -## Many of the title fragments below lack entry for several/most possible themes: this is because the loc supplied is based on what title structures can be rolled by GeneratePoem_Title for any given theme. -## Accordingly, if adding more title structures or fragments, remember to adjust both above *and* below as appropriate. -## Theme comment containers are left even where empty for convenience - -GeneratePoem_Title_Fragment_Season = { - type = character - random_valid = yes - - text = { localization_key = generatepoem_title_spring } - text = { localization_key = generatepoem_title_summer } - text = { localization_key = generatepoem_title_autumn } - text = { localization_key = generatepoem_title_winter } -} - -GeneratePoem_Title_Fragment_Emotion = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_love - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_passion - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_tenderness - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_doting - } - ## } - # Mourning Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_sadness - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_sorrow - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_regret - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_mourning - } - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_rage - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_anger - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_bloodlust - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_wrath - } - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_Activity = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_weeping_tears - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_silent_longing - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_fitful_slumber - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_harsh_sobbing - } - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - # No current fragments. - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_Adjective = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_romantic - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_amorous - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_intimate - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_passionate - } - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - # No current fragments. - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_IntensityAdjective = { - type = character - random_valid = yes - - text = { localization_key = generatepoem_title_gently } - text = { localization_key = generatepoem_title_firmly } - text = { localization_key = generatepoem_title_copiously } - text = { localization_key = generatepoem_title_strenuously } -} - -GeneratePoem_Title_Fragment_Noun = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - # No current fragments. - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_memory - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_legacy - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_memoriam - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_title_heritage - } - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_strife - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_penury - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_conflict - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_quarrel - } - ## } - # Incompetence Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_arse - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_carbuncle - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_fool - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_idiot - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_villain - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_spawn - } - ## } -} - -GeneratePoem_Title_Fragment_MetaphoricalPlace = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_heart - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_head - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_dreams - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_title_chest - } - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - # No current fragments. - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_PatheticFallacy = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - # No current fragments. - ## } - # Mourning Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_windswept_woods - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_rainy_nights - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_still_mornings - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_title_lonely_graves - } - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - # No current fragments. - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_Sobriquet = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - # No current fragments. - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_sword - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_spear - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_axe - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_lance - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_title_mace - } - ## } - # Incompetence Block - ## comment_container = { - # No current fragments. - ## } -} - -GeneratePoem_Title_Fragment_Verb = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - # No current fragments. - ## } - # Mourning Block - ## comment_container = { - # No current fragments. - ## } - # Legacy Block - ## comment_container = { - # No current fragments. - ## } - # Strife Block - ## comment_container = { - # No current fragments. - ## } - # Incompetence Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_drooling - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_defecating - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_failing - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_collapsing - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_meandering - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_slacking - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_title_cumbergrounding - } - ## } -} - -################################################## -# Structure Generation -## Randomly selects lines within a rhyme structure according to a pre-selected theme. -## Should always be used in combination with select_poem_theme_random_effect or a sub-effect. - -GeneratePoem_Intro_Rhyming = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_intro_rhyming_romance_01 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_intro_rhyming_romance_02 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_intro_rhyming_romance_03 - } - ## } - # Mourning Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_intro_rhyming_mourning_01 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_intro_rhyming_mourning_02 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_intro_rhyming_mourning_03 - } - ## } - # Legacy Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_intro_rhyming_legacy_01 - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_intro_rhyming_legacy_02 - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_intro_rhyming_legacy_03 - } - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_intro_rhyming_strife_01 - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_intro_rhyming_strife_02 - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_intro_rhyming_strife_03 - } - ## } - # Incompetence Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_intro_rhyming_incompetence_01 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_intro_rhyming_incompetence_02 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_intro_rhyming_incompetence_03 - } - ## } -} - -GeneratePoem_Outro_Rhyming = { - type = character - random_valid = yes - - # Romance Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_outro_rhyming_romance_01 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_outro_rhyming_romance_02 - } - text = { - trigger = { var:poetry_theme = flag:romance } - localization_key = generatepoem_outro_rhyming_romance_03 - } - ## } - # Mourning Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_outro_rhyming_mourning_01 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_outro_rhyming_mourning_02 - } - text = { - trigger = { var:poetry_theme = flag:mourning } - localization_key = generatepoem_outro_rhyming_mourning_03 - } - ## } - # Legacy Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_outro_rhyming_legacy_01 - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_outro_rhyming_legacy_02 - } - text = { - trigger = { var:poetry_theme = flag:legacy } - localization_key = generatepoem_outro_rhyming_legacy_03 - } - ## } - # Strife Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_outro_rhyming_strife_01 - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_outro_rhyming_strife_02 - } - text = { - trigger = { var:poetry_theme = flag:strife } - localization_key = generatepoem_outro_rhyming_strife_03 - } - ## } - # Incompetence Block - ## comment_container = { - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_outro_rhyming_incompetence_01 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_outro_rhyming_incompetence_02 - } - text = { - trigger = { var:poetry_theme = flag:incompetence } - localization_key = generatepoem_outro_rhyming_incompetence_03 - } - ## } -} - -################################################## -# Intro Line Generation -## Used to fetch rhyming lines inside an existing structure. -## Content is vaguely tonally geared for the start of a poem. - -## Romance Block -### comment_container = { - GeneratePoem_Intro_Rhyming_Romance_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_A_03 } - } - - GeneratePoem_Intro_Rhyming_Romance_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_01_B_03 } - } - - GeneratePoem_Intro_Rhyming_Romance_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_A_03 } - } - - GeneratePoem_Intro_Rhyming_Romance_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_02_B_03 } - } - - GeneratePoem_Intro_Rhyming_Romance_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_A_03 } - } - - GeneratePoem_Intro_Rhyming_Romance_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Romance_03_B_03 } - } -### } - -## Mourning Block -### comment_container = { - GeneratePoem_Intro_Rhyming_Mourning_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_A_03 } - } - - GeneratePoem_Intro_Rhyming_Mourning_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_01_B_03 } - } - - GeneratePoem_Intro_Rhyming_Mourning_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_A_03 } - } - - GeneratePoem_Intro_Rhyming_Mourning_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_02_B_03 } - } - - GeneratePoem_Intro_Rhyming_Mourning_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_A_03 } - } - - GeneratePoem_Intro_Rhyming_Mourning_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Mourning_03_B_03 } - } -### } - -## Legacy Block -### comment_container = { - GeneratePoem_Intro_Rhyming_Legacy_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_A_03 } - } - - GeneratePoem_Intro_Rhyming_Legacy_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_01_B_03 } - } - - GeneratePoem_Intro_Rhyming_Legacy_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_A_03 } - } - - GeneratePoem_Intro_Rhyming_Legacy_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_02_B_03 } - } - - GeneratePoem_Intro_Rhyming_Legacy_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_A_03 } - } - - GeneratePoem_Intro_Rhyming_Legacy_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Legacy_03_B_03 } - } -### } - -## Strife Block -### comment_container = { - GeneratePoem_Intro_Rhyming_Strife_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_A_03 } - } - - GeneratePoem_Intro_Rhyming_Strife_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_01_B_03 } - } - - GeneratePoem_Intro_Rhyming_Strife_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_A_03 } - } - - GeneratePoem_Intro_Rhyming_Strife_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_02_B_03 } - } - - GeneratePoem_Intro_Rhyming_Strife_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_A_03 } - } - - GeneratePoem_Intro_Rhyming_Strife_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Strife_03_B_03 } - } -### } - -## Incompetence Block -### comment_container = { - GeneratePoem_Intro_Rhyming_Incompetence_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_A_03 } - } - - GeneratePoem_Intro_Rhyming_Incompetence_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_01_B_03 } - } - - GeneratePoem_Intro_Rhyming_Incompetence_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_A_03 } - } - - GeneratePoem_Intro_Rhyming_Incompetence_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_02_B_03 } - } - - GeneratePoem_Intro_Rhyming_Incompetence_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_A_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_A_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_A_03 } - } - - GeneratePoem_Intro_Rhyming_Incompetence_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_B_01 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_B_02 } - text = { localization_key = GeneratePoem_Intro_Rhyming_Incompetence_03_B_03 } - } -### } - -################################################## -# Outro Line Generation -## Used to fetch rhyming lines inside an existing structure. -## Content is vaguely tonally geared for the end of a poem. - -## Romance Block -### comment_container = { - GeneratePoem_Outro_Rhyming_Romance_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_A_03 } - } - - GeneratePoem_Outro_Rhyming_Romance_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_01_B_03 } - } - - GeneratePoem_Outro_Rhyming_Romance_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_A_03 } - } - - GeneratePoem_Outro_Rhyming_Romance_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_02_B_03 } - } - - GeneratePoem_Outro_Rhyming_Romance_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_A_03 } - } - - GeneratePoem_Outro_Rhyming_Romance_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Romance_03_B_03 } - } -### } - -## Mourning Block -### comment_container = { - GeneratePoem_Outro_Rhyming_Mourning_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_A_03 } - } - - GeneratePoem_Outro_Rhyming_Mourning_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_01_B_03 } - } - - GeneratePoem_Outro_Rhyming_Mourning_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_A_03 } - } - - GeneratePoem_Outro_Rhyming_Mourning_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_02_B_03 } - } - - GeneratePoem_Outro_Rhyming_Mourning_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_A_03 } - } - - GeneratePoem_Outro_Rhyming_Mourning_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Mourning_03_B_03 } - } -### } - -## Legacy Block -### comment_container = { - GeneratePoem_Outro_Rhyming_Legacy_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_A_03 } - } - - GeneratePoem_Outro_Rhyming_Legacy_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_01_B_03 } - } - - GeneratePoem_Outro_Rhyming_Legacy_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_A_03 } - } - - GeneratePoem_Outro_Rhyming_Legacy_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_02_B_03 } - } - - GeneratePoem_Outro_Rhyming_Legacy_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_A_03 } - } - - GeneratePoem_Outro_Rhyming_Legacy_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Legacy_03_B_03 } - } -### } - -## Strife Block -### comment_container = { - GeneratePoem_Outro_Rhyming_Strife_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_A_03 } - } - - GeneratePoem_Outro_Rhyming_Strife_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_01_B_03 } - } - - GeneratePoem_Outro_Rhyming_Strife_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_A_03 } - } - - GeneratePoem_Outro_Rhyming_Strife_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_02_B_03 } - } - - GeneratePoem_Outro_Rhyming_Strife_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_A_03 } - } - - GeneratePoem_Outro_Rhyming_Strife_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Strife_03_B_03 } - } -### } - -## Incompetence Block -### comment_container = { - GeneratePoem_Outro_Rhyming_Incompetence_01_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_A_03 } - } - - GeneratePoem_Outro_Rhyming_Incompetence_01_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_01_B_03 } - } - - GeneratePoem_Outro_Rhyming_Incompetence_02_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_A_03 } - } - - GeneratePoem_Outro_Rhyming_Incompetence_02_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_02_B_03 } - } - - GeneratePoem_Outro_Rhyming_Incompetence_03_A = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_A_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_A_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_A_03 } - } - - GeneratePoem_Outro_Rhyming_Incompetence_03_B = { - type = character - random_valid = yes - - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_B_01 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_B_02 } - text = { localization_key = GeneratePoem_Outro_Rhyming_Incompetence_03_B_03 } - } -### } - -################################################## -# Misc -## Assorted bits'n'bobs of custom loc used in poetry generation. - -GetHeroineHero = { - type = character - - # Heroine - text = { - trigger = { is_female = yes } - localization_key = heroinehero_heroine - } - - # Hero - text = { - trigger = { is_male = yes } - localization_key = heroinehero_hero - } -} - -GetHeroineHeroPossessive = { - type = character - - # Heroine - text = { - trigger = { is_female = yes } - localization_key = heroineheropossessive_heroine - } - - # Hero - text = { - trigger = { is_male = yes } - localization_key = heroineheropossessive_hero - } -} diff --git a/common/customizable_localization/00_poetry_theme_words.txt b/common/customizable_localization/00_poetry_theme_words.txt deleted file mode 100644 index 9e89b3418f..0000000000 --- a/common/customizable_localization/00_poetry_theme_words.txt +++ /dev/null @@ -1,558 +0,0 @@ -#Words for use in dynamic poetry generation. -# Numbers at the end of keys refer to number of syllables. -# TODO: Consider whether its better to pluralise here or by adding an "s" in-text. - -theme_announcement = { - type = character - - text = { - localization_key = theme_nobility - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = theme_romance - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -######################################## -# SINGULAR SPECIFIC NOUNS, ONE SYLLABLE -######################################## - -noun_specific_singular_one = { - type = character - - random_valid = yes - text = { - localization_key = nobility_crown - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_land - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_prince - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_queen - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_king - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_lord - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_love - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_heart - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_dance - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_song - trigger = { - var:poetry_theme = flag:romance - } - } -} - -####################################### -# PLURAL SPECIFIC NOUNS, ONE SYLLABLE -####################################### - -noun_specific_plural_one = { - type = character - - random_valid = yes - text = { - localization_key = nobility_crown_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_land_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_queen_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_king_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_lord_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_love - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_heart_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_song_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_love_plural - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -########################################## -# SINGULAR SPECIFIC NOUNS, TWO SYLLABLES -########################################## - -noun_specific_singular_two = { - type = character - - random_valid = yes - text = { - localization_key = nobility_scepter - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_castle - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_princess - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_lady - trigger = { - var:poetry_theme = flag:nobility - } - } - text = { - localization_key = nobility_noble - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_singing - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_darling - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -########################################## -# PLURAL SPECIFIC NOUNS, TWO SYLLABLES -########################################## - -noun_specific_plural_two = { - type = character - - random_valid = yes - text = { - localization_key = nobility_scepter_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_castle_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_lady_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - text = { - localization_key = nobility_noble_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_dance_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_darling_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = nobility_prince_plural - trigger = { - var:poetry_theme = flag:nobility - } - } -} - - -######################################## -# SINGULAR ABSTRACT NOUNS, ONE SYLLABLE -######################################## - -noun_abstract_singular_one = { - type = character - - random_valid = yes - text = { - localization_key = nobility_rule - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_crown - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_love - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_song - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_lust - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -######################################## -# PLURAL ABSTRACT NOUNS, ONE SYLLABLE -######################################## - -noun_abstract_plural_one = { - type = character - - random_valid = yes - text = { - localization_key = nobility_crown_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - random_valid = yes - text = { - localization_key = nobility_rule - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_song_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_lust - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_love - trigger = { - var:poetry_theme = flag:romance - } - } -} - - - -######################################### -# SINGULAR ABSTRACT NOUNS, TWO SYLLABLES -######################################### - -noun_abstract_singular_two = { - type = character - - random_valid = yes - text = { - localization_key = nobility_noble - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_domain - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_virtue - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_elite - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_passion - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_feeling - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_virtue - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -######################################### -# PLURAL ABSTRACT NOUNS, TWO SYLLABLES -######################################### - -noun_abstract_plural_two = { - type = character - - random_valid = yes - text = { - localization_key = nobility_noble_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_domain_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_virtue_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = nobility_elite_plural - trigger = { - var:poetry_theme = flag:nobility - } - } - - text = { - localization_key = romance_passion_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_feeling_plural - trigger = { - var:poetry_theme = flag:romance - } - } - - text = { - localization_key = romance_virtue_plural - trigger = { - var:poetry_theme = flag:romance - } - } -} - - -######################### -# NUMBERS -########################## - -one_syllable_number = { - type = character - random_valid = yes - -# text = { -# localization_key = number_one - Texts mess up if we have both singular and plural -# } - text = { - localization_key = number_two - } - text = { - localization_key = number_three - } - text = { - localization_key = number_four - } - text = { - localization_key = number_five - } - text = { - localization_key = number_six - } - text = { - localization_key = number_eight - } - text = { - localization_key = number_nine - } - text = { - localization_key = number_ten - } -} - -two_syllable_number = { - type = character - random_valid = yes - - text = { - localization_key = number_seven - } - - text = { - localization_key = number_eleven - } - - text = { - localization_key = number_twelve - } - - text = { - localization_key = number_twenty - } -} diff --git a/common/customizable_localization/00_prison_custom_loc.txt b/common/customizable_localization/00_prison_custom_loc.txt deleted file mode 100644 index ebf597e3aa..0000000000 --- a/common/customizable_localization/00_prison_custom_loc.txt +++ /dev/null @@ -1,97 +0,0 @@ - -#Custom loc for various prison uses - -PrisonType = { - type = character - - text = { - trigger = { is_in_prison_type = dungeon } - localization_key = prisontype_dungeon - } - - text = { - trigger = { is_in_prison_type = house_arrest } - localization_key = prisontype_house_arrest - } -} - -PrisonTypeModifier = { - type = character - - text = { - trigger = { is_in_prison_type = dungeon } - localization_key = prisontype_dungeon_mod - } - - text = { - trigger = { is_in_prison_type = house_arrest } - localization_key = prisontype_house_arrest_mod - } -} - -PrisonTypeCell = { #i.e. "Release me from my PrisonTypeCell" - type = character - - text = { - trigger = { is_in_prison_type = dungeon } - localization_key = prisontypecell_dungeon_cell - } - - text = { - trigger = { is_in_prison_type = house_arrest } - localization_key = prisontypecell_house_arrest - } -} - -RandomPrisonContentsSingular = { - type = character - random_valid = yes - - text = { - localization_key = prison_contents_racking - } - text = { - localization_key = prison_contents_flaying - } - text = { - localization_key = prison_contents_fruit_throwing - } - text = { - localization_key = prison_contents_crusted_blood - } - text = { - localization_key = prison_contents_impaling - } - text = { - localization_key = prison_contents_foot_roasting - } - text = { - localization_key = prison_contents_whipping - } -} -PrisonContentsGruel = { - type = character - random_valid = yes - text = { - localization_key = prison_contents_mold - } - -} - -RandomPrisonContentsPlural = { - type = character - random_valid = yes - - text = { - localization_key = prison_contents_rat_droppings - } - text = { - localization_key = prison_contents_rabid_dogs - } - text = { - localization_key = prison_contents_missed_meals - } - text = { - localization_key = prison_contents_screaming_lunatics - } -} diff --git a/common/customizable_localization/00_reaction_custom_loc.txt b/common/customizable_localization/00_reaction_custom_loc.txt deleted file mode 100644 index f8e8ec9549..0000000000 --- a/common/customizable_localization/00_reaction_custom_loc.txt +++ /dev/null @@ -1,40 +0,0 @@ -surprised_reaction = { - type = character - random_valid = yes - - text = { - localization_key = reaction_custom_amazed - } - - text = { - localization_key = reaction_custom_astonished - } - - text = { - localization_key = reaction_custom_aghast - trigger = { - has_trait = compassionate - } - } - - text = { - localization_key = reaction_custom_horrified - trigger = { - has_trait = compassionate - } - } - - text = { - localization_key = reaction_custom_thrilled - trigger = { - has_trait = sadistic - } - } - - text = { - localization_key = reaction_custom_awed - trigger = { - has_trait = sadistic - } - } -} diff --git a/common/customizable_localization/00_relations.txt b/common/customizable_localization/00_relations.txt index 33999d77f6..3b772af7e4 100644 --- a/common/customizable_localization/00_relations.txt +++ b/common/customizable_localization/00_relations.txt @@ -2170,7 +2170,10 @@ RelationToMe = { text = { localization_key = relation_kinswoman trigger = { - scope:second = { is_female = yes } + scope:second = { + is_female = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -2178,7 +2181,10 @@ RelationToMe = { text = { localization_key = relation_kinsman trigger = { - scope:second = { is_male = yes } + scope:second = { + is_male = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -2556,7 +2562,6 @@ RelationToMe = { } } - RelationToMePossessive = { type = character @@ -4690,7 +4695,10 @@ RelationToMePossessive = { text = { localization_key = relation_kinswoman_possessive trigger = { - scope:second = { is_female = yes } + scope:second = { + is_female = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -4698,7 +4706,10 @@ RelationToMePossessive = { text = { localization_key = relation_kinsman_possessive trigger = { - scope:second = { is_male = yes } + scope:second = { + is_male = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -6572,7 +6583,10 @@ RelationToMeShort = { text = { localization_key = relation_kinswoman trigger = { - scope:second = { is_female = yes } + scope:second = { + is_female = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -6580,7 +6594,10 @@ RelationToMeShort = { text = { localization_key = relation_kinsman trigger = { - scope:second = { is_male = yes } + scope:second = { + is_male = yes + is_lowborn = no + } scope:second.dynasty = root.dynasty } } @@ -8195,6 +8212,22 @@ GetCouncilOrTitleNamePossessive = { } } +GetCouncilOrCourtPosition = { # Meant for title-less lowborns (Marshall, knights, artifiers, etc) + type = character + text = { + trigger = { is_councillor = yes } + localization_key = title_council_name + } + text = { + trigger = { is_knight = yes } + localization_key = relation_knight + } + text = { + trigger = { has_any_court_position = yes } + localization_key = petition_liege_title_position + } +} + GetCapitalOrLiegeCapitalName = { type = character text = { diff --git a/common/customizable_localization/00_rich_presence_flavor_status.txt b/common/customizable_localization/00_rich_presence_flavor_status.txt index 85ddec0a0e..504662cb53 100644 --- a/common/customizable_localization/00_rich_presence_flavor_status.txt +++ b/common/customizable_localization/00_rich_presence_flavor_status.txt @@ -206,6 +206,56 @@ } localization_key = rich_presence_diarch } + + text = { + trigger = { + house = { has_house_unity_stage = harmonious } + this = house.house_head + } + localization_key = rich_presence_house_unity_harmonious + } + + text = { + trigger = { + house = { has_house_unity_stage = antagonistic } + this = house.house_head + } + localization_key = rich_presence_house_unity_antagonistic + } + + text = { + trigger = { + OR = { + any_tax_collector = { count = 0 } + any_tax_collector = { + tax_slot = { + any_tax_slot_vassal = { + count = 0 + } + } + } + } + } + localization_key = rich_presence_fp3_tax_collectors_min + } + + text = { + trigger = { + OR = { + any_tax_collector = { + count = all + tax_slot = { + OR = { + is_active_obligation = jizya_special_rights_tax_collector + is_active_obligation = deqhan_special_rights_tax_collector + is_active_obligation = strict_taxation_tax_collector + } + } + } + } + } + localization_key = rich_presence_fp3_tax_collectors_max + } text = { trigger = { diff --git a/common/customizable_localization/00_romance_custom_loc.txt b/common/customizable_localization/00_romance_custom_loc.txt deleted file mode 100644 index 9c9e6cefbe..0000000000 --- a/common/customizable_localization/00_romance_custom_loc.txt +++ /dev/null @@ -1,396 +0,0 @@ -LoverSeductionObject = { - type = character - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - localization_key = seduction_object_rose - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - localization_key = seduction_object_rose - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:sea_shell - } - } - localization_key = seduction_object_sea_shell - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - localization_key = seduction_object_sea_shell - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - } - localization_key = seduction_object_rose - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - } - localization_key = seduction_object_rose - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:sea_shell - } - } - } - localization_key = seduction_object_sea_shell - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - } - localization_key = seduction_object_sea_shell - } -} - -LoverSeductionObjectIndefinite = { - type = character - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - localization_key = seduction_object_a_rose - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - localization_key = seduction_object_a_rose - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:sea_shell - } - } - localization_key = seduction_object_a_sea_shell - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - localization_key = seduction_object_a_sea_shell - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - } - localization_key = seduction_object_a_rose - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - } - localization_key = seduction_object_a_rose - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:sea_shell - } - } - } - localization_key = seduction_object_a_sea_shell - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - } - localization_key = seduction_object_a_sea_shell - } -} - - -LoverSeductionObjectMultiple = { - type = character - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - localization_key = seduction_object_roses - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - localization_key = seduction_object_roses - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:sea_shell - } - } - localization_key = seduction_object_sea_shells - } - - text = { - trigger = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = scope:second - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - localization_key = seduction_object_sea_shells - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance - is_target_in_variable_list = { - name = lover_object_of_importance - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance - target = flag:rose - } - } - } - localization_key = seduction_object_roses - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:rose - } - } - } - localization_key = seduction_object_roses - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - } - localization_key = seduction_object_sea_shells - } - - text = { - trigger = { - scope:second = { - has_variable_list = lover_object_of_importance_2 - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = root - } - is_target_in_variable_list = { - name = lover_object_of_importance_2 - target = flag:sea_shell - } - } - } - localization_key = seduction_object_sea_shells - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_secret_events_custom_loc.txt b/common/customizable_localization/00_secret_events_custom_loc.txt deleted file mode 100644 index 0f47cb3228..0000000000 --- a/common/customizable_localization/00_secret_events_custom_loc.txt +++ /dev/null @@ -1,45 +0,0 @@ -SecretRevealSecondCharacterIntroduction = { - type = character - - text = { - trigger = { - scope:secondary_character = { is_of_major_interest_trigger = { CHARACTER = scope:event_root } } - } - localization_key = secrets_secondary_character_my_character_introduction - } - - text = { - trigger = { - scope:secondary_character = { is_of_major_interest_trigger = { CHARACTER = scope:primary_character } } - } - localization_key = secrets_secondary_character_primary_characters_introduction - } - - text = { - trigger = { - scope:secondary_character = { - OR = { - is_of_minor_interest_trigger = { CHARACTER = scope:event_root } - is_courtier_of = scope:event_root - } - } - } - localization_key = secrets_secondary_character_my_character_introduction - } - - text = { - trigger = { - scope:secondary_character = { - OR = { - is_of_minor_interest_trigger = { CHARACTER = scope:primary_character } - is_courtier_of = scope:primary_character - } - } - } - localization_key = secrets_secondary_character_primary_characters_introduction - } - - text = { - localization_key = secrets_secondary_character_my_character_introduction - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_secrets_custom_loc.txt b/common/customizable_localization/00_secrets_custom_loc.txt deleted file mode 100644 index 69712e02e1..0000000000 --- a/common/customizable_localization/00_secrets_custom_loc.txt +++ /dev/null @@ -1,91 +0,0 @@ -SecretDescriptionThirdPerson = { - type = secret - - text = { - localization_key = SecretDescription_deviant - trigger = { secret_type = secret_deviant } - } - text = { - localization_key = SecretDescription_homosexual - trigger = { secret_type = secret_homosexual } - } - text = { - localization_key = SecretDescription_murder_attempt - trigger = { secret_type = secret_murder_attempt } - } - text = { - localization_key = SecretDescription_cannibal - trigger = { secret_type = secret_cannibal } - } - text = { - localization_key = SecretDescription_lover - trigger = { secret_type = secret_lover } - } - text = { - localization_key = SecretDescription_murder - trigger = { secret_type = secret_murder } - } - text = { - localization_key = SecretDescription_non_believer - trigger = { secret_type = secret_non_believer } - } - text = { - localization_key = SecretDescription_incest - trigger = { secret_type = secret_incest } - } - text = { - localization_key = SecretDescription_witch - trigger = { secret_type = secret_witch } - } - text = { - trigger = { always = no } - fallback = yes - localization_key = SecretDescription_fallback - } -} - -SecretDescriptionFirstPerson = { - type = secret - - text = { - localization_key = SecretDescription_deviant_first_person - trigger = { secret_type = secret_deviant } - } - text = { - localization_key = SecretDescription_homosexual_first_person - trigger = { secret_type = secret_homosexual } - } - text = { - localization_key = SecretDescription_murder_attempt_first_person - trigger = { secret_type = secret_murder_attempt } - } - text = { - localization_key = SecretDescription_cannibal_first_person - trigger = { secret_type = secret_cannibal } - } - text = { - localization_key = SecretDescription_lover_first_person - trigger = { secret_type = secret_lover } - } - text = { - localization_key = SecretDescription_murder_first_person - trigger = { secret_type = secret_murder } - } - text = { - localization_key = SecretDescription_non_believer_first_person - trigger = { secret_type = secret_non_believer } - } - text = { - localization_key = SecretDescription_incest_first_person - trigger = { secret_type = secret_incest } - } - text = { - localization_key = SecretDescription_witch_first_person - trigger = { secret_type = secret_witch } - } - text = { - trigger = { always = no } - fallback = yes - localization_key = SecretDescription_fallback_first_person - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_seduction_custom_loc.txt b/common/customizable_localization/00_seduction_custom_loc.txt deleted file mode 100644 index 6cb1e78109..0000000000 --- a/common/customizable_localization/00_seduction_custom_loc.txt +++ /dev/null @@ -1,255 +0,0 @@ -SeductionObject = { - type = character - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:rose - } - } - localization_key = seduction_object_rose - } - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:sea_shell - } - } - localization_key = seduction_object_sea_shell - } -} - -SeductionObjectIndefinite = { - type = character - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:rose - } - } - localization_key = seduction_object_a_rose - } - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:sea_shell - } - } - localization_key = seduction_object_a_sea_shell - } -} - -SeductionObjectMultiple = { - type = character - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:rose - } - } - localization_key = seduction_object_roses - } - - text = { - trigger = { - scope:scheme = { - var:object_of_importance = flag:sea_shell - } - } - localization_key = seduction_object_sea_shells - } -} - - -SeductionGiftType = { - type = character - - text = { - trigger = { scope:gift = flag:tapestry } - localization_key = seduce_gift_tapestry - } - - text = { - trigger = { scope:gift = flag:horse } - localization_key = seduce_gift_horse - } - - text = { - trigger = { scope:gift = flag:tailor } - localization_key = seduce_gift_tailored_clothes - } - - text = { - trigger = { scope:gift = flag:rare_book } - localization_key = seduce_gift_rare_book - } - - text = { - trigger = { scope:gift = flag:embroidery } - localization_key = seduce_gift_embroidery - } - - text = { - trigger = { scope:gift = flag:poem } - localization_key = seduce_gift_poem - } - - text = { - trigger = { scope:gift = flag:woodcarving } - localization_key = seduce_gift_woodcarving - } - - text = { - trigger = { scope:gift = flag:object } - localization_key = seduce_gift_object - } - - text = { - trigger = { scope:gift = flag:jewelry } - localization_key = seduce_gift_jewelry - } - - text = { - trigger = { scope:gift = flag:stuffed_animal } - localization_key = seduce_gift_stuffed_animal - } - - text = { - trigger = { scope:gift = flag:flower_display } - localization_key = seduce_gift_flower_display - } - - text = { - trigger = { scope:gift = flag:handkerchief } - localization_key = seduce_gift_handkerchief - } -} - - -SeductionGiftTypeIndefinite = { - type = character - - text = { - trigger = { scope:gift = flag:tapestry } - localization_key = seduce_gift_indefinite_tapestry - } - - text = { - trigger = { scope:gift = flag:horse } - localization_key = seduce_gift_indefinite_horse - } - - text = { - trigger = { scope:gift = flag:tailor } - localization_key = seduce_gift_indefinite_tailored_clothes - } - - text = { - trigger = { scope:gift = flag:rare_book } - localization_key = seduce_gift_indefinite_rare_book - } - - text = { - trigger = { scope:gift = flag:embroidery } - localization_key = seduce_gift_indefinite_embroidery - } - - text = { - trigger = { scope:gift = flag:poem } - localization_key = seduce_gift_indefinite_poem - } - - text = { - trigger = { scope:gift = flag:woodcarving } - localization_key = seduce_gift_indefinite_woodcarving - } - - text = { - trigger = { scope:gift = flag:object } - localization_key = seduce_gift_indefinite_object - } - - text = { - trigger = { scope:gift = flag:jewelry } - localization_key = seduce_gift_indefinite_jewelry - } - - text = { - trigger = { scope:gift = flag:stuffed_animal } - localization_key = seduce_gift_indefinite_stuffed_animal - } - - text = { - trigger = { scope:gift = flag:flower_display } - localization_key = seduce_gift_indefinite_flower_display - } - - text = { - trigger = { scope:gift = flag:handkerchief } - localization_key = seduce_gift_indefinite_handkerchief - } -} - -BookInQuestion = { - type = character - - text = { - trigger = { scope:book_selection = flag:religious } - localization_key = book_in_question_religious - } - - text = { - trigger = { scope:book_selection = flag:entertaining } - localization_key = book_in_question_entertaining - } - - text = { - trigger = { scope:book_selection = flag:informative } - localization_key = book_in_question_informative - } -} - -GoodBookSuggestion = { - type = character - - text = { - trigger = { scope:good_selection = flag:religious } - localization_key = good_book_selection_religious - } - - text = { - trigger = { scope:good_selection = flag:entertaining } - localization_key = good_book_selection_entertaining - } - - text = { - trigger = { scope:good_selection = flag:informative } - localization_key = good_book_selection_informative - } -} - - -SeductionGiftTypeIndefiniteSimple = { - type = character - random_valid = yes - - text = { - localization_key = seduction_object_a_rose - } - - text = { - localization_key = seduction_object_a_sea_shell - } - - text = { - localization_key = seduce_gift_indefinite_jewelry - } - - text = { - localization_key = seduce_gift_indefinite_stuffed_animal - } -} diff --git a/common/customizable_localization/00_servants.txt b/common/customizable_localization/00_servants.txt deleted file mode 100644 index 9e1faa5608..0000000000 --- a/common/customizable_localization/00_servants.txt +++ /dev/null @@ -1,246 +0,0 @@ -lowly_servant_type = { - type = character - random_valid = yes - - text = { - trigger = { is_male = yes } - localization_key = stable_boy - } - text = { - trigger = { - OR = { - AND = { - is_female = yes - faith = { - OR = { - has_doctrine = doctrine_gender_female_dominated - has_doctrine = doctrine_gender_equal - } - } - } - AND = { - is_male = yes - faith = { - OR = { - has_doctrine = doctrine_gender_male_dominated - has_doctrine = doctrine_gender_equal - } - } - } - } - } - localization_key = page - } - text = { - trigger = { is_female = yes } - localization_key = scullery_maid - } - text = { - localization_key = chandler - } - text = { - localization_key = launderer - } - text = { - localization_key = naperer - } - text = { - localization_key = scalder - } - text = { - localization_key = saucerer - } -} - -GenderedLowlyServantType = { - type = character - random_valid = yes - - text = { - localization_key = stable_boy - trigger = { - is_male = yes - } - } - text = { - localization_key = page - trigger = { - is_male = yes - } - } - text = { - localization_key = scullery_maid - trigger = { - is_female = yes - } - } - text = { - localization_key = chandler - trigger = { - is_male = yes - } - } - text = { - localization_key = launderer - trigger = { - is_female = yes - } - } - text = { - localization_key = scullion - trigger = { - is_female = yes - } - } - text = { - localization_key = naperer - } - text = { - localization_key = scalder - } - text = { - localization_key = saucerer - } - text = { - localization_key = pantler - } - - text = { - weight_multiplier = { - base = 0.3 - } - localization_key = servant - } -} - -OppositeGenderedLowlyServantType = { - type = character - random_valid = yes - - text = { - localization_key = stable_boy - trigger = { - is_female = yes - } - } - text = { - localization_key = page - trigger = { - is_female = yes - } - } - text = { - localization_key = scullery_maid - trigger = { - is_male = yes - } - } - text = { - localization_key = chandler - trigger = { - is_female = yes - } - } - text = { - localization_key = launderer - trigger = { - is_male = yes - } - } - text = { - localization_key = scullion - trigger = { - is_female = yes - } - } - text = { - localization_key = naperer - } - text = { - localization_key = scalder - } - text = { - localization_key = saucerer - } - text = { - localization_key = pantler - } - - text = { - weight_multiplier = { - base = 0.3 - } - localization_key = servant - } -} - - -servant_for_romance = { - type = character - - text = { - localization_key = stable_boy - trigger = { - var:servant_romance_target = flag:stable_boy - } - } - text = { - localization_key = page - trigger = { - var:servant_romance_target = flag:page - } - } - text = { - localization_key = scullery_maid - trigger = { - var:servant_romance_target = flag:scullery_maid - } - } - text = { - localization_key = chandler - trigger = { - var:servant_romance_target = flag:chandler - } - } - text = { - localization_key = launderer - trigger = { - var:servant_romance_target = flag:launderer - } - } - text = { - localization_key = naperer - trigger = { - var:servant_romance_target = flag:naperer - } - } - text = { - localization_key = scalder - trigger = { - var:servant_romance_target = flag:scalder - } - } - text = { - localization_key = saucerer - trigger = { - var:servant_romance_target = flag:saucerer - } - } -} - -bar_servant = { - type = character - - text = { - localization_key = servant_barkeep - trigger = { - is_male = yes - } - } - text = { - localization_key = servant_barmaid - trigger = { - is_female = yes - } - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_sex_scene_custom_localisation.txt b/common/customizable_localization/00_sex_scene_custom_localisation.txt deleted file mode 100644 index 2553f7f51d..0000000000 --- a/common/customizable_localization/00_sex_scene_custom_localisation.txt +++ /dev/null @@ -1,335 +0,0 @@ -#By Petter and Linnéa - -sex_scene = { - type = character - - text = { - localization_key = sex_scene_text - } -} - -#First part -sex_scene_part_1 = { - type = character - - text = { - localization_key = sex_scene_part_1_location - trigger = { exists = var:sex_scene_location } - } - - text = { - localization_key = sex_scene_part_1_random - } -} - -#First part - random -sex_scene_part_1_random = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0001.opening_1 - } - - text = { - localization_key = sex_scene.0001.opening_2 - } - - text = { - localization_key = sex_scene.0001.opening_3 - } - - text = { - localization_key = sex_scene.0001.opening_4 - } - - text = { - localization_key = sex_scene.0001.opening_5 - } - - text = { - localization_key = sex_scene.0001.opening_6 - } - - text = { - localization_key = sex_scene.0001.opening_7 - } - - text = { - localization_key = sex_scene.0001.opening_8 - } -} - -#First part - location -sex_scene_part_1_location = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0003.opening_garden_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:garden - } - } - - text = { - localization_key = sex_scene.0003.opening_private_chambers_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:private_chamber - } - } - - text = { - localization_key = sex_scene.0003.opening_stables_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:stable - } - } - - text = { - localization_key = sex_scene.0003.opening_copse_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:copse - } - } - - text = { - localization_key = sex_scene.0003.opening_kitchen_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:kitchen - } - } - - text = { - localization_key = sex_scene_part_1_random - trigger = { always = no } - fallback = yes - } -} - -#Second part -sex_scene_part_2 = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0001.second_1 - } - - text = { - localization_key = sex_scene.0001.second_2 - } - - text = { - localization_key = sex_scene.0001.second_3 - } - - text = { - localization_key = sex_scene.0001.second_4 - } - - text = { - localization_key = sex_scene.0001.second_5 - } - - text = { - localization_key = sex_scene.0001.second_6 - } - - text = { - trigger = { - sex_opposite_of = scope:second - } - localization_key = sex_scene.0001.second_7 - } - - text = { - localization_key = sex_scene.0001.second_8 - } - - text = { - localization_key = sex_scene.0001.second_9 - } -} - -#Third part -sex_scene_part_3 = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0001.third_1 - } - - text = { - localization_key = sex_scene.0001.third_2 - } - - text = { - localization_key = sex_scene.0001.third_3 - } - - text = { - localization_key = sex_scene.0001.third_4 - } - - text = { - localization_key = sex_scene.0001.third_5 - } - - text = { - localization_key = sex_scene.0001.third_6 - } -} - - -#Ending -sex_scene_ending = { - type = character - - text = { - localization_key = sex_scene_ending_location - trigger = { exists = var:sex_scene_location } - } - - text = { - localization_key = sex_scene_ending_random - } -} - - -#Ending - random -sex_scene_ending_random = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0001.last_1 - } - - text = { - localization_key = sex_scene.0001.last_2 - } - - text = { - localization_key = sex_scene.0001.last_3 - } - - text = { - localization_key = sex_scene.0001.last_4 - } - - text = { - localization_key = sex_scene.0001.last_5 - } - - text = { - localization_key = sex_scene.0001.last_6 - } -} - -#Ending - location -sex_scene_ending_location = { - type = character - - random_valid = yes - - text = { - localization_key = sex_scene.0003.conclusion_garden_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:garden - } - } - - text = { - localization_key = sex_scene.0003.conclusion_private_chambers_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:private_chamber - } - } - - text = { - localization_key = sex_scene.0003.conclusion_stables_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:stable - } - } - - text = { - localization_key = sex_scene.0003.conclusion_copse_1 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:copse - } - } - - text = { - localization_key = sex_scene.0003.conclusion_kitchen_2 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:kitchen - } - } - - text = { - localization_key = sex_scene.0003.conclusion_kitchen_3 - trigger = { - exists = var:sex_scene_location - var:sex_scene_location = flag:kitchen - } - } - - text = { - localization_key = sex_scene_ending_random - trigger = { always = no } - fallback = yes - } -} - - -# Custom localisation used to randomise elements in the sex scene generator - -bodypart_localising = { - type = character - - random_valid = yes - - text = { - localization_key = bodypart_localising_chest - } - - text = { - localization_key = bodypart_localising_loins - } - - text = { - localization_key = bodypart_localising_skin - } -} - -wet_hard = { - type = character - - text = { - trigger = { is_female = yes } - localization_key = wet - } - - text = { - trigger = { is_male = yes } - localization_key = hard - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_signature_weapon_custom_localization.txt b/common/customizable_localization/00_signature_weapon_custom_localization.txt deleted file mode 100644 index b222a8cdee..0000000000 --- a/common/customizable_localization/00_signature_weapon_custom_localization.txt +++ /dev/null @@ -1,2272 +0,0 @@ - -# Standard Signature Weapon Loc -signature_weapon = { - type = character - - text = { - localization_key = signature_weapon_sword - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = signature_weapon_mace - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = signature_weapon_axe - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = signature_weapon_hammer - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = signature_weapon_spear - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = signature_weapon_dagger - trigger = { - exists = var:signature_weapon - var:signature_weapon = flag:dagger - } - } -} -SignatureWeaponNameOrType = { - type = character - - text = { - trigger = { - exists = var:signature_weapon_scope - } - localization_key = signature_weapon_name - } - - text = { - localization_key = signature_weapon_type - fallback = yes - } -} -SignatureWeaponArticle = { - type = character - - text = { - localization_key = article_an - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = article_a - } -} -SignatureWeaponAction = { - type = character - - text = { - localization_key = signature_weapon_sword_draw - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = signature_weapon_mace_lift - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = signature_weapon_axe_heft - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = signature_weapon_hammer_raise - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = signature_weapon_spear_couch - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = signature_weapon_dagger_brandish - trigger = { - var:signature_weapon = flag:dagger - } - } -} -SignatureWeaponActionThirdPerson = { - type = character - - text = { - localization_key = signature_weapon_sword_draws - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = signature_weapon_mace_lifts - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = signature_weapon_axe_hefts - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = signature_weapon_hammer_raises - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = signature_weapon_spear_couches - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = signature_weapon_dagger_brandishes - trigger = { - var:signature_weapon = flag:dagger - } - } -} -SignatureWeaponActionPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_sword_drawing - trigger = { - var:signature_weapon = flag:sword - } - fallback = yes - } - - text = { - localization_key = signature_weapon_mace_lifting - trigger = { - var:signature_weapon = flag:mace - } - } - - text = { - localization_key = signature_weapon_axe_hefting - trigger = { - var:signature_weapon = flag:axe - } - } - - text = { - localization_key = signature_weapon_hammer_raising - trigger = { - var:signature_weapon = flag:hammer - } - } - - text = { - localization_key = signature_weapon_spear_couching - trigger = { - var:signature_weapon = flag:spear - } - } - - text = { - localization_key = signature_weapon_dagger_brandishing - trigger = { - var:signature_weapon = flag:dagger - } - } -} -SignatureWeaponActionReaction = { - type = character - - text = { - localization_key = signature_weapon_a_quick_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_a_mighty_heave - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_a_fast_thrust - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponCritical = { - type = character - - text = { - localization_key = signature_weapon_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponCriticalPresent = { - type = character - - text = { - localization_key = signature_weapon_slash_present - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_crush_present - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_pierce_present - trigger = { - var:signature_weapon = flag:spear - } - } -} - -# Non-Lethal Attacks -SignatureWeaponAttemptedHeavy = { - type = character - - text = { - localization_key = signature_weapon_attempted_heavy_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attempted_heavy_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attempted_heavy_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponAttemptedLight = { - type = character - - text = { - localization_key = signature_weapon_attempted_light_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attempted_light_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attempted_light_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponAttemptedHeavyPlural = { - type = character - - text = { - localization_key = signature_weapon_attempted_heavy_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attempted_heavy_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attempted_heavy_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponAttemptedLightPlural = { - type = character - - text = { - localization_key = signature_weapon_attempted_light_plural_slash - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attempted_light_plural_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attempted_light_plural_pierce - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponFlourishPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_flourish_whirling - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_flourish_flailing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_flourish_swinging - trigger = { - var:signature_weapon = flag:spear - } - } -} -SignatureWeaponFlourishThirdPersonPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_flourish_whirls - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_flourish_flails - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_flourish_swings - trigger = { - var:signature_weapon = flag:spear - } - } -} - -# Various Verb Types -SignatureWeaponWoundVerb1 = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_hew - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_smash - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_stab - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb1PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_hewing - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_smashing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_stabbing - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb1ThirdPersonPresent = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_hews - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_smashes - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_stabs - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb2 = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_bite - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_crack - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_puncture - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb2ThirdPersonPresent = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_bites - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_cracks - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_punctures - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb2PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_biting - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_cracking - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_puncturing - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb3 = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_rend - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = signature_weapon_attack_verb_annihilate - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_skewer - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } -} -SignatureWeaponWoundVerb4 = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_carve - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_mangle - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_chop - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb4ThirdPersonPresent = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_carves - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_mangles - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_chops - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } -} -SignatureWeaponWoundVerb5 = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_plunge - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_drive - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} -SignatureWeaponWoundVerb5ThirdPersonPresent = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_plunges - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_drives - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} -SignatureWeaponWoundVerb5PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_plunging - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_driving - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} -SignatureWeaponWoundVerb6PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_cutting - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_smashing - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } -} - -# Weapon Descriptors -SignatureWeaponEndType = { - type = character - - text = { - localization_key = signature_weapon_haft - trigger = { - OR = { - var:signature_weapon = flag:axe - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_pommel - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - } -} -SignatureWeaponTipType = { - type = character - - text = { - localization_key = signature_weapon_point - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_head - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_edge - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponEndMaterial = { - type = character - - text = { - localization_key = signature_weapon_end_wood - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - } - text = { - localization_key = signature_weapon_end_metal - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} -SignatureWeaponTipAdjective = { - type = character - - text = { - localization_key = signature_weapon_tip_adjective_sharp - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_tip_adjective_heavy - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - } -} -SignatureWeaponBreaksThirdPersonSingularPresent = { - type = character - - text = { - localization_key = signature_weapon_breaks_blade_bends - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_breaks_haft_snaps_in_two - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_breaks_haft_bends - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} -SignatureWeaponBreaksThirdPersonSingularPresent2 = { - type = character - - text = { - localization_key = signature_weapon_breaks_bends_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_breaks_snaps_the_haft_in_two - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_breaks_bends_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} -SignatureWeaponBreaksVerbPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_breaks_bending_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_breaks_snapping_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_breaks_bending_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} -SignatureWeaponBreaksVerbPastTense = { - type = character - - text = { - localization_key = signature_weapon_breaks_bend_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_breaks_snap_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_breaks_bend_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} -SignatureWeaponBreaksVerbPastTense2 = { - type = character - - text = { - localization_key = signature_weapon_breaks_bent_the_blade - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_breaks_snapped_the_haft - trigger = { - OR = { - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_breaks_bent_the_haft - trigger = { - OR = { - var:signature_weapon = flag:hammer - var:signature_weapon = flag:mace - } - } - fallback = yes - } -} - -# Generic deaths -SignatureWeaponKillType = { - type = character - - text = { - localization_key = signature_weapon_killed_crush - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_run_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cut_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gut - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypePastTense = { - type = character - - text = { - localization_key = signature_weapon_killed_crushed - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_run_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cut_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gutted - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeFirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_me - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_run_me_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cut_me_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gut_me - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeThirdPersonFutureGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_run_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cut_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gut_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeFirstPersonPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_killed_crushing_me - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_running_me_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cutting_me_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gutting_me - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crushing_herhim - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_running_herhim_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cutting_herhim_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gutting_herhim - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeThirdPersonActive = { - type = character - - text = { - localization_key = signature_weapon_killed_crushes_me - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_runs_me_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cuts_me_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_guts_me - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypePastParticiple = { - type = character - - text = { - localization_key = signature_weapon_killed_crushed - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_run_through - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_cut_down - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_gutted - trigger = { var:signature_weapon = flag:dagger } - } -} - -# Groin-centric deaths -SignatureWeaponKillTypeGroinFirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_pulverise_my_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_unseam_me_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_split_my_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = signature_weapon_killed_stab_me_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeGroinThirdPersonFutureGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_pulverise_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_unseam_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_split_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = signature_weapon_killed_stab_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeGroinThirdPersonActive = { - type = character - - text = { - localization_key = signature_weapon_killed_pulverises_my_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_unseams_me_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_splits_my_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = signature_weapon_killed_stabs_me_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeGroinThirdPersonActive_Aftermath = { - type = character - - text = { - localization_key = signature_weapon_killed_aftermath_forcing_my_hip_bones_through_my_thigh - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_aftermath_spilling_intestines_and_viscera_everywhere - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_aftermath_fountaining_blood_from_my_crotch - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeGroinThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_pulverising_herhis_waist - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_unseaming_herhim_groin_to_neck - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_splitting_herhis_groin_in_two - trigger = { var:signature_weapon = flag:axe } - } - text = { - localization_key = signature_weapon_killed_stabbing_herhim_repeatedly_in_the_groin - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeGroinThirdPersonPresentParticipleGendered_Aftermath = { - type = character - - text = { - localization_key = signature_weapon_killed_aftermath_forcing_herhis_hip_bones_through_herhis_thigh - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_aftermath_spilling_intestines_and_viscera_everywhere - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:axe - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_aftermath_fountaining_blood_from_herhis_crotch - trigger = { var:signature_weapon = flag:dagger } - } -} - - -# Head-centric deaths -SignatureWeaponKillTypeHeadFirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_my_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cut_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_hack_off_my_head - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_stab_me_in_the_brain - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeHeadThirdPersonFutureGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_herhis_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cut_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_hack_off_herhis_head - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_stab_herhim_in_the_brain - trigger = { var:signature_weapon = flag:dagger } - } -} -SignatureWeaponKillTypeHeadThirdPersonPresentGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crushing_herhis_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cutting_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - } - } - } - text = { - localization_key = signature_weapon_killed_hacking_off_herhis_head - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_stabbing_herhim_in_the_brain - trigger = { var:signature_weapon = flag:dagger } - } -} - -SignatureWeaponKillTypeHead2FirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_shatter_my_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cut_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_hack_out_my_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} -SignatureWeaponKillTypeHead2ThirdPersonActive = { - type = character - - text = { - localization_key = signature_weapon_killed_shatters_my_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cuts_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_hacks_out_my_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} -SignatureWeaponKillTypeHead2ThirdPersonActiveGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_shatters_herhis_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cuts_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_hacks_out_herhis_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} -SignatureWeaponKillTypeHead2PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_killed_shattering_my_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cutting_my_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_hacking_out_my_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} -SignatureWeaponKillTypeHead2ThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_shattering_herhis_jaw - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_cutting_herhis_throat - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_hacking_out_herhis_throat - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} - -# Rear Head-centric deaths -SignatureWeaponKillTypeRearHeadThirdPersonPresentGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_herhis_skull - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_stab_herhim_in_the_base_of_the_skull - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - } - text = { - localization_key = signature_weapon_killed_split_herhis_skull_in_two - trigger = { var:signature_weapon = flag:axe } - fallback = yes - } -} - -# Torso-centric deaths -SignatureWeaponKillTypeTorsoThirdPersonActive = { - type = character - - text = { - localization_key = signature_weapon_killed_crushes_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punches_through_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hews_into_my_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorsoThirdPersonActiveGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crushes_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punches_through_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hews_into_herhis_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorsoFirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punch_through_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hew_through_my_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorsoThirdPersonFutureGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crush_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punch_through_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hew_through_herhis_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorsoPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_killed_crushing_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punching_through_my_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hewing_into_my_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorsoThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_crushing_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_punching_through_herhis_sternum - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hewing_into_herhis_sternum - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorso2PresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_sliding_between_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_stoving_in_my_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_hacking_through_my_ribs - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorso2ThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_sliding_between_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_stoving_in_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_hacking_through_herhis_ribs - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeTorso2ThirdPersonSimplePresentGendered = { - type = character - - text = { - localization_key = signature_weapon_attack_verb_stab_between_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_attack_verb_stove_in_herhis_ribs - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_attack_verb_hack_through_herhis_ribs - trigger = { var:signature_weapon = flag:axe } - } -} - -# Rear Torso-centric deaths -SignatureWeaponKillTypeRearTorsoThirdPersonActive = { - type = character - - text = { - localization_key = signature_weapon_killed_snaps_my_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impales_my_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hacks_my_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeRearTorsoThirdPersonActiveGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_snaps_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impales_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hacks_herhis_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeRearTorsoFirstPersonFuture = { - type = character - - text = { - localization_key = signature_weapon_killed_snap_my_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impale_my_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hack_my_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeRearTorsoThirdPersonFutureGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_snap_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impale_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hack_herhis_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeRearTorsoPresentParticiple = { - type = character - - text = { - localization_key = signature_weapon_killed_snapping_my_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impaling_my_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hacking_my_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} -SignatureWeaponKillTypeRearTorsoThirdPersonPresentParticipleGendered = { - type = character - - text = { - localization_key = signature_weapon_killed_snapping_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:mace - var:signature_weapon = flag:hammer - } - } - } - text = { - localization_key = signature_weapon_killed_impaling_herhis_spine - trigger = { - OR = { - var:signature_weapon = flag:sword - var:signature_weapon = flag:spear - var:signature_weapon = flag:dagger - } - } - fallback = yes - } - text = { - localization_key = signature_weapon_killed_hacking_herhis_spine_in_two - trigger = { var:signature_weapon = flag:axe } - } -} diff --git a/common/customizable_localization/00_single_combat_custom_loc.txt b/common/customizable_localization/00_single_combat_custom_loc.txt deleted file mode 100644 index ec47a987c2..0000000000 --- a/common/customizable_localization/00_single_combat_custom_loc.txt +++ /dev/null @@ -1,166 +0,0 @@ -GritType = { - type = character - - text = { - trigger = { - location = { - OR = { - terrain = mountains - terrain = desert_mountains - } - } - } - localization_key = grit_type_grit - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = plains - terrain = farmlands - terrain = hills - terrain = floodplains - } - } - } - localization_key = grit_type_dirt - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = grit_type_sand - } - - text = { - trigger = { - location = { terrain = wetlands } - } - localization_key = grit_type_bog_water - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - } - } - } - localization_key = grit_type_twigs - } - - text = { - trigger = { - location = { terrain = jungle } - } - localization_key = grit_type_wet_leaves - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = drylands - } - } - } - localization_key = grit_type_dry_grass - } -} - -GroundType = { - type = character - - text = { - trigger = { always = no } - localization_key = ground_type_dust - fallback = yes - } - - text = { - trigger = { - location = { - OR = { - terrain = farmlands - terrain = hills - terrain = drylands - } - } - } - localization_key = ground_type_dirt - } - - text = { - trigger = { - location = { terrain = mountains } - } - localization_key = ground_type_rocks - } - - text = { - trigger = { - location = { terrain = desert_mountains } - } - localization_key = ground_type_sandy_rocks - } - - text = { - trigger = { - location = { - OR = { - terrain = desert - terrain = oasis - } - } - } - localization_key = ground_type_sand - } - - text = { - trigger = { - location = { - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - localization_key = ground_type_wet_grass - } - - text = { - trigger = { - location = { - OR = { - terrain = forest - terrain = taiga - terrain = jungle - } - } - } - localization_key = ground_type_mulch - } - - text = { - trigger = { - location = { - OR = { - terrain = steppe - terrain = plains - } - } - } - localization_key = ground_type_grass - } -} diff --git a/common/customizable_localization/00_skills_custom_loc.txt b/common/customizable_localization/00_skills_custom_loc.txt deleted file mode 100644 index bcf103d5d1..0000000000 --- a/common/customizable_localization/00_skills_custom_loc.txt +++ /dev/null @@ -1,264 +0,0 @@ -highest_skill_noun = { - type = character - random_valid = yes - - text = { - localization_key = court_alliances - trigger = { highest_skill = diplomacy } - } - - text = { - localization_key = court_politics - trigger = { highest_skill = diplomacy } - } - - text = { - localization_key = troop_compositions - trigger = { highest_skill = martial } - } - - text = { - localization_key = education_conversation_subject_martial_2 - trigger = { highest_skill = martial } - } - - text = { - localization_key = military_strategies - trigger = { highest_skill = martial } - } - - text = { - localization_key = the_rumors_at_court - trigger = { highest_skill = intrigue } - } - - text = { - localization_key = poisons - trigger = { highest_skill = intrigue } - } - - text = { - localization_key = education_conversation_subject_intrigue_1 - trigger = { highest_skill = intrigue } - } - - text = { - localization_key = trade_routes - trigger = { highest_skill = stewardship } - } - - text = { - localization_key = tax_levels - trigger = { highest_skill = stewardship } - } - - text = { - localization_key = investment_opportunities - trigger = { highest_skill = stewardship } - } - - text = { - localization_key = lawmaking - trigger = { highest_skill = stewardship } - } - - text = { - localization_key = education_conversation_subject_learning_1 - trigger = { highest_skill = learning } - } - - text = { - localization_key = education_conversation_subject_learning_2 - trigger = { highest_skill = learning } - } -} - -diplomacy_skill_level = { - type = character - - text = { - localization_key = skill_level_terrible - trigger = { diplomacy < terrible_skill_level } - } - - text = { - localization_key = skill_level_poor - trigger = { - diplomacy >= terrible_skill_level - diplomacy < average_skill_level - } - } - - text = { - localization_key = skill_level_average - trigger = { - diplomacy >= average_skill_level - diplomacy < good_skill_level - } - } - - text = { - localization_key = skill_level_good - trigger = { - diplomacy >= good_skill_level - diplomacy < excellent_skill_level - } - } - - text = { - localization_key = skill_level_excellent - trigger = { diplomacy >= excellent_skill_level } - } -} - -martial_skill_level = { - type = character - - text = { - localization_key = skill_level_terrible - trigger = { martial < terrible_skill_level } - } - - text = { - localization_key = skill_level_poor - trigger = { - martial >= terrible_skill_level - martial < average_skill_level - } - } - - text = { - localization_key = skill_level_average - trigger = { - martial >= average_skill_level - martial < good_skill_level - } - } - - text = { - localization_key = skill_level_good - trigger = { - martial >= good_skill_level - martial < excellent_skill_level - } - } - - text = { - localization_key = skill_level_excellent - trigger = { martial >= excellent_skill_level } - } -} - -stewardship_skill_level = { - type = character - - text = { - localization_key = skill_level_terrible - trigger = { stewardship < terrible_skill_level } - } - - text = { - localization_key = skill_level_poor - trigger = { - stewardship >= terrible_skill_level - stewardship < average_skill_level - } - } - - text = { - localization_key = skill_level_average - trigger = { - stewardship >= average_skill_level - stewardship < good_skill_level - } - } - - text = { - localization_key = skill_level_good - trigger = { - stewardship >= good_skill_level - stewardship < excellent_skill_level - } - } - - text = { - localization_key = skill_level_excellent - trigger = { stewardship >= excellent_skill_level } - } -} - -intrigue_skill_level = { - type = character - - text = { - localization_key = skill_level_terrible - trigger = { intrigue < terrible_skill_level } - } - - text = { - localization_key = skill_level_poor - trigger = { - intrigue >= terrible_skill_level - intrigue < average_skill_level - } - } - - text = { - localization_key = skill_level_average - trigger = { - intrigue >= average_skill_level - intrigue < good_skill_level - } - } - - text = { - localization_key = skill_level_good - trigger = { - intrigue >= good_skill_level - intrigue < excellent_skill_level - } - } - - text = { - localization_key = skill_level_excellent - trigger = { intrigue >= excellent_skill_level } - } -} - -learning_skill_level = { - type = character - - text = { - localization_key = skill_level_terrible - trigger = { learning < terrible_skill_level } - } - - text = { - localization_key = skill_level_poor - trigger = { - learning >= terrible_skill_level - learning < average_skill_level - } - } - - text = { - localization_key = skill_level_average - trigger = { - learning >= average_skill_level - learning < good_skill_level - } - } - - text = { - localization_key = skill_level_good - trigger = { - learning >= good_skill_level - learning < excellent_skill_level - } - } - - text = { - localization_key = skill_level_excellent - trigger = { learning >= excellent_skill_level } - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_suitable_title_custom_loc.txt b/common/customizable_localization/00_suitable_title_custom_loc.txt deleted file mode 100644 index 312be72e19..0000000000 --- a/common/customizable_localization/00_suitable_title_custom_loc.txt +++ /dev/null @@ -1,249 +0,0 @@ -my_title = { - type = character - - text = { - localization_key = empress_lower_case - trigger = { - is_female = yes - highest_held_title_tier >= 5 - } - } - - text = { - localization_key = emperor_lower_case - trigger = { - is_male = yes - highest_held_title_tier >= 5 - } - } - - text = { - localization_key = queen_lower_case - trigger = { - is_female = yes - highest_held_title_tier >= 4 - } - } - - text = { - localization_key = king_lower_case - trigger = { - is_male = yes - highest_held_title_tier >= 4 - } - } - - text = { - localization_key = duchess_lower_case - trigger = { - is_female = yes - highest_held_title_tier >= 3 - } - } - - text = { - localization_key = duke_lower_case - trigger = { - is_male = yes - highest_held_title_tier >= 3 - } - } - - text = { - localization_key = countess_lower_case - trigger = { - is_female = yes - highest_held_title_tier >= 2 - } - } - - text = { - localization_key = count_lower_case - trigger = { - is_male = yes - highest_held_title_tier >= 2 - } - } - - text = { - localization_key = baroness_lower_case - trigger = { - is_female = yes - highest_held_title_tier >= 1 - } - } - - text = { - localization_key = baron_lower_case - trigger = { - is_male = yes - highest_held_title_tier >= 1 - } - } - - text = { - localization_key = lady_lower_case - trigger = { - is_female = yes - } - } - - text = { - localization_key = sir_lower_case - trigger = { - is_male = yes - } - } -} - - -RealmType = { - type = character - - text = { - localization_key = kingdom_lower_case - trigger = { - highest_held_title_tier >= 4 - } - } - - text = { - localization_key = duchy_lower_case - trigger = { - highest_held_title_tier >= 3 - } - } - - text = { - localization_key = county_lower_case - trigger = { - highest_held_title_tier >= 2 - } - } - - text = { - localization_key = barony_lower_case - trigger = { - highest_held_title_tier >= 1 - } - } -} - - -using_my_title = { - type = character - - text = { - localization_key = emperor_lower_case - trigger = { - highest_held_title_tier >= 5 - scope:second = { is_female = no } - } - } - - text = { - localization_key = empress_lower_case - trigger = { - highest_held_title_tier >= 5 - scope:second = { is_female = yes } - } - } - - text = { - localization_key = king_lower_case - trigger = { - highest_held_title_tier >= 4 - scope:second = { is_female = no } - } - } - - text = { - localization_key = queen_lower_case - trigger = { - highest_held_title_tier >= 4 - scope:second = { is_female = yes } - } - } - - text = { - localization_key = duke_lower_case - trigger = { - highest_held_title_tier >= 3 - scope:second = { is_female = no } - } - } - - text = { - localization_key = duchess_lower_case - trigger = { - highest_held_title_tier >= 3 - scope:second = { is_female = yes } - } - } - - text = { - localization_key = count_lower_case - trigger = { - highest_held_title_tier >= 2 - scope:second = { is_female = no } - } - } - - text = { - localization_key = countess_lower_case - trigger = { - highest_held_title_tier >= 2 - scope:second = { is_female = yes } - } - } - - text = { - localization_key = baron_lower_case - trigger = { - highest_held_title_tier >= 1 - scope:second = { is_female = no } - } - } - - text = { - localization_key = baroness_lower_case - trigger = { - highest_held_title_tier >= 1 - scope:second = { is_female = yes } - } - } -} - - -DuchessDuke = { - type = character - - text = { - trigger = { is_female = yes } - localization_key = duchess_lower_case - } - - text = { - trigger = { is_male = yes } - localization_key = duke_lower_case - } -} - -NunMonk = { - type = character - - text = { - trigger = { is_female = yes } - localization_key = faith_devotee_female - } - - text = { - trigger = { is_male = yes } - localization_key = faith_devotee_male - } - - text = { - trigger = { always = yes } - localization_key = faith_devotee_fallback - } -} diff --git a/common/customizable_localization/00_sway_custom_loc.txt b/common/customizable_localization/00_sway_custom_loc.txt deleted file mode 100644 index ae8503fa5c..0000000000 --- a/common/customizable_localization/00_sway_custom_loc.txt +++ /dev/null @@ -1,24 +0,0 @@ -LifestyleFocusTopic = { - type = character - - text = { - trigger = { has_character_flag = option_chosen_martial } - localization_key = education_martial_loc - } - text = { - trigger = { has_character_flag = option_chosen_diplomacy } - localization_key = education_diplomacy_loc - } - text = { - trigger = { has_character_flag = option_chosen_intrigue } - localization_key = education_intrigue_loc - } - text = { - trigger = { has_character_flag = option_chosen_stewardship } - localization_key = education_stewardship_loc - } - text = { - trigger = { has_character_flag = option_chosen_learning } - localization_key = education_learning_loc - } -} \ No newline at end of file diff --git a/common/customizable_localization/00_test.txt b/common/customizable_localization/00_test.txt deleted file mode 100644 index b1935d21cf..0000000000 --- a/common/customizable_localization/00_test.txt +++ /dev/null @@ -1,69 +0,0 @@ -wealth = { - type = character - log_loc_errors = no - - random_valid = yes - text = { - localization_key = WEALTH_RICH - trigger = { - gold > 50 - } - } - text = { - localization_key = WEALTH_POOR - trigger = { - gold < 50 - } - } - text = { - localization_key = WEALTH_POOR_02 - trigger = { - gold < 50 - } - } - text = { - localization_key = WEALTH_POOR_03 - trigger = { - gold < 50 - } - } - text = { - localization_key = WEALTH_POOR_04 - trigger = { - gold < 50 - } - } -} - -galguy = { - type = character - text = { - localization_key = gal - trigger = { - is_female = yes - } - } - text = { - localization_key = guy - trigger = { - is_female = no - } - } -} - -mother_or_other = { - type = character - log_loc_errors = no - text = { - localization_key = mother - trigger = { - mother = scope:second - } - } - text = { - localization_key = other - trigger = { - NOT = { mother = scope:second } - } - } -} diff --git a/common/customizable_localization/00_title_custom_loc.txt b/common/customizable_localization/00_title_custom_loc.txt index d45d99a538..4bfef529de 100644 --- a/common/customizable_localization/00_title_custom_loc.txt +++ b/common/customizable_localization/00_title_custom_loc.txt @@ -239,3 +239,39 @@ GetInOrOutsideRealmAllianceInfo = { localization_key = not_in_realm_alliance_current_situation } } + +GetIncumbentOrNone = { + type = landed_title + + text = { + localization_key = GetIncumbentOrNone.holder + trigger = { exists = holder } + } + text = { + localization_key = GetIncumbentOrNone.uncreated + trigger = { always = no } + fallback = yes + } +} + +GetIncumbentOrNone_Possessive = { + type = landed_title + + text = { + localization_key = CHARACTER_HERHIS_HER + trigger = { + holder ?= { is_female = yes } + } + } + text = { + localization_key = CHARACTER_HERHIS_HIS + trigger = { + holder ?= { is_female = yes } + } + } + text = { + localization_key = CHARACTER_HERHIS_ITS + trigger = { always = no } + fallback = yes + } +} diff --git a/common/customizable_localization/00_trait_custom_loc.txt b/common/customizable_localization/00_trait_custom_loc.txt deleted file mode 100644 index 58cd2ebd7b..0000000000 --- a/common/customizable_localization/00_trait_custom_loc.txt +++ /dev/null @@ -1,406 +0,0 @@ -trait_generous_adjective = { - type = character - - text = { - localization_key = trait_desc_wasteful - trigger = { - has_trait = greedy - } - } - - text = { - localization_key = trait_desc_magnanimous - trigger = { - has_trait = generous - } - } - - text = { - localization_key = trait_desc_munificent - } -} - - -trait_lustful_adjective = { - type = character - - text = { - localization_key = trait_desc_lecherous - trigger = { - has_trait = chaste - } - } - - text = { - localization_key = trait_desc_playful - trigger = { - has_trait = lustful - } - } - - text = { - localization_key = trait_desc_lascivious - } -} - -trait_impatient_adjective = { - type = character - - text = { - localization_key = trait_desc_unreliable - trigger = { has_trait = patient } - } - - text = { - localization_key = trait_desc_dynamic - trigger = { has_trait = impatient } - } - - text = { - localization_key = trait_desc_restless - } -} - - -trait_greedy_adjective = { - type = character - - text = { - localization_key = trait_desc_rapacious - trigger = { - has_trait = generous - } - } - - text = { - localization_key = trait_desc_acquisitive - trigger = { - has_trait = greedy - } - } - - text = { - localization_key = trait_desc_avaricious - } -} - - - -#SINFUL TRAITS - -#You have to have at least one sinful trait for using this!! -SinfulTrait = { - type = character - - text = { - localization_key = trait_lustful - trigger = { - has_trait = lustful - faith = { trait_is_sin = lustful } - } - } - text = { - localization_key = trait_chaste - trigger = { - has_trait = chaste - faith = { trait_is_sin = chaste } - } - } - text = { - localization_key = trait_gluttonous - trigger = { - has_trait = gluttonous - faith = { trait_is_sin = gluttonous } - } - } - text = { - localization_key = trait_temperate - trigger = { - has_trait = temperate - faith = { trait_is_sin = temperate } - } - } - text = { - localization_key = trait_greedy - trigger = { - has_trait = greedy - faith = { trait_is_sin = greedy } - } - } - text = { - localization_key = trait_generous - trigger = { - has_trait = generous - faith = { trait_is_sin = generous } - } - } - text = { - localization_key = trait_lazy - trigger = { - has_trait = lazy - faith = { trait_is_sin = lazy } - } - } - text = { - localization_key = trait_diligent - trigger = { - has_trait = diligent - faith = { trait_is_sin = diligent } - } - } - text = { - localization_key = trait_wrathful - trigger = { - has_trait = wrathful - faith = { trait_is_sin = wrathful } - } - } - text = { - localization_key = trait_calm - trigger = { - has_trait = calm - faith = { trait_is_sin = calm } - } - } - text = { - localization_key = trait_patient - trigger = { - has_trait = patient - faith = { trait_is_sin = patient } - } - } - text = { - localization_key = trait_impatient - trigger = { - has_trait = impatient - faith = { trait_is_sin = impatient } - } - } - text = { - localization_key = trait_arrogant - trigger = { - has_trait = arrogant - faith = { trait_is_sin = arrogant } - } - } - text = { - localization_key = trait_humble - trigger = { - has_trait = humble - faith = { trait_is_sin = humble } - } - } - text = { - localization_key = trait_deceitful - trigger = { - has_trait = deceitful - faith = { trait_is_sin = deceitful } - } - } - text = { - localization_key = trait_honest - trigger = { - has_trait = honest - faith = { trait_is_sin = honest } - } - } - text = { - localization_key = trait_craven - trigger = { - has_trait = craven - faith = { trait_is_sin = craven } - } - } - text = { - localization_key = trait_brave - trigger = { - has_trait = brave - faith = { trait_is_sin = brave } - } - } - text = { - localization_key = trait_shy - trigger = { - has_trait = shy - faith = { trait_is_sin = shy } - } - } - text = { - localization_key = trait_gregarious - trigger = { - has_trait = gregarious - faith = { trait_is_sin = gregarious } - } - } - text = { - localization_key = trait_ambitious - trigger = { - has_trait = ambitious - faith = { trait_is_sin = ambitious } - } - } - text = { - localization_key = trait_content - trigger = { - has_trait = content - faith = { trait_is_sin = content } - } - } - text = { - localization_key = trait_arbitrary - trigger = { - has_trait = arbitrary - faith = { trait_is_sin = arbitrary } - } - } - text = { - localization_key = trait_just - trigger = { - has_trait = just - faith = { trait_is_sin = just } - } - } - text = { - localization_key = trait_cynical - trigger = { - has_trait = lustful - faith = { trait_is_sin = cynical } - } - } - text = { - localization_key = trait_zealous - trigger = { - has_trait = zealous - faith = { trait_is_sin = zealous } - } - } - text = { - localization_key = trait_paranoid - trigger = { - has_trait = paranoid - faith = { trait_is_sin = paranoid } - } - } - text = { - localization_key = trait_trusting - trigger = { - has_trait = trusting - faith = { trait_is_sin = trusting } - } - } - text = { - localization_key = trait_compassionate - trigger = { - has_trait = compassionate - faith = { trait_is_sin = compassionate } - } - } - text = { - localization_key = trait_callous - trigger = { - has_trait = callous - faith = { trait_is_sin = callous } - } - } - text = { - localization_key = trait_sadistic - trigger = { - has_trait = sadistic - faith = { trait_is_sin = sadistic } - } - } - text = { - localization_key = trait_stubborn - trigger = { - has_trait = stubborn - faith = { trait_is_sin = stubborn } - } - } - text = { - localization_key = trait_fickle - trigger = { - has_trait = fickle - faith = { trait_is_sin = fickle } - } - } - text = { - localization_key = trait_vengeful - trigger = { - has_trait = vengeful - faith = { trait_is_sin = vengeful } - } - } - text = { - localization_key = trait_forgiving - trigger = { - has_trait = forgiving - faith = { trait_is_sin = forgiving } - } - } -} - -# Stress trait desires -GetStressDesire = { - type = character - - text = { - localization_key = drunkard_desire - trigger = { has_trait = drunkard } - } - text = { - localization_key = hashishiyah_desire - trigger = { has_trait = hashishiyah } - } - text = { - localization_key = rakish_desire - trigger = { has_trait = rakish } - } - text = { - localization_key = reclusive_desire - trigger = { has_trait = reclusive } - } - text = { - localization_key = irritable_desire - trigger = { has_trait = irritable } - } - text = { - localization_key = flagellant_desire - trigger = { has_trait = flagellant } - } - text = { - localization_key = profligate_desire - trigger = { has_trait = profligate } - } - text = { - localization_key = improvident_desire - trigger = { has_trait = improvident } - } - text = { - localization_key = contrite_desire - trigger = { has_trait = contrite } - } - text = { - localization_key = comfort_eater_desire - trigger = { has_trait = comfort_eater } - } - text = { - localization_key = inappetetic_desire - trigger = { has_trait = inappetetic } - } - text = { - localization_key = journaller_desire - trigger = { has_trait = journaller } - } - text = { - localization_key = confider_desire - trigger = { has_trait = confider } - } - text = { - localization_key = athletic_desire - trigger = { has_trait = athletic } - } - text = { - localization_key = fallback_desire - trigger = { always = yes } - } -} diff --git a/common/customizable_localization/00_unfriendly_custom_loc.txt b/common/customizable_localization/00_unfriendly_custom_loc.txt deleted file mode 100644 index db87cdb5f4..0000000000 --- a/common/customizable_localization/00_unfriendly_custom_loc.txt +++ /dev/null @@ -1,55 +0,0 @@ -ObjectifiedFeature = { - type = character - random_valid = yes - - text = { - localization_key = amorous_lips - } - text = { - trigger = { is_female = yes } - localization_key = ample_bosom - } - text = { - trigger = { is_female = yes } - localization_key = curves - } - text = { - trigger = { is_female = yes } - localization_key = generous_rear - } - text = { - trigger = { - is_female = yes - } - localization_key = delicate_wrists - } - text = { - trigger = { - is_female = yes - NOT = { has_trait = one_legged } - } - localization_key = ankles - } - text = { - trigger = { - is_male = yes - NOT = { has_trait = one_legged } - } - localization_key = shapely_legs - } - text = { - trigger = { - is_male = yes - NOT = { has_trait = eunuch } - } - localization_key = copious_codpiece - } - text = { - trigger = { - is_male = yes - NOT = { has_trait = one_legged } - } - localization_key = graceful_feet - } -} - diff --git a/common/customizable_localization/00_vassal_custom_loc.txt b/common/customizable_localization/00_vassal_custom_loc.txt deleted file mode 100644 index 01175aeea7..0000000000 --- a/common/customizable_localization/00_vassal_custom_loc.txt +++ /dev/null @@ -1,55 +0,0 @@ -powerful_vassals_loc = { - type = character - - text = { - localization_key = kings - trigger = { - any_vassal = { - highest_held_title_tier >= 4 - count > 1 - } - } - } - - text = { - localization_key = dukes - trigger = { - any_vassal = { - highest_held_title_tier >= 3 - count > 1 - } - } - } - - text = { - localization_key = counts - trigger = { - any_vassal = { - highest_held_title_tier >= 2 - count > 1 - } - } - } - - text = { - localization_key = barons - trigger = { - any_vassal = { - highest_held_title_tier >= 1 - count > 1 - } - } - } - - text = { - localization_key = peasants - trigger = { - any_vassal = { - NOT = { - any_vassal = { always = yes } - } - } - } - } -} - diff --git a/common/customizable_localization/00_weird_objects.txt b/common/customizable_localization/00_weird_objects.txt deleted file mode 100644 index f096fc64aa..0000000000 --- a/common/customizable_localization/00_weird_objects.txt +++ /dev/null @@ -1,32 +0,0 @@ -# for court.4400 -RandomWeirdObject = { - - type = character - - random_valid = yes - - text = { - localization_key = turnip_shaped_like_me - } - text = { - localization_key = human_skull_cup - } - text = { - localization_key = copper_scroll - } - text = { - localization_key = abandoned_chess_piece - } - text = { - localization_key = ancient_salted_beef - } - text = { - localization_key = cracked_ostrich_eggshell - } - text = { - localization_key = bat_guano - } - text = { - localization_key = abandoned_list - } -} diff --git a/common/customizable_localization/00_yearly_events_custom_loc.txt b/common/customizable_localization/00_yearly_events_custom_loc.txt deleted file mode 100644 index f377393d79..0000000000 --- a/common/customizable_localization/00_yearly_events_custom_loc.txt +++ /dev/null @@ -1,107 +0,0 @@ - -YearlyEvent0001GetDescriptor = { - type = character - - text = { - trigger = { - opinion = { - target = scope:second - value > 20 - } - } - localization_key = yearly.0001.pos_descriptor - } - - text = { - trigger = { - opinion = { - target = scope:second - value <= 20 - } - } - fallback = yes - localization_key = yearly.0001.no_descriptor - } -} - -YearlyEvent0001Skill = { - type = character - - text = { - trigger = { - var:yearly_0001_skill = flag:diplomacy - } - localization_key = yearly.0001.diplomacy - } - - text = { - trigger = { - var:yearly_0001_skill = flag:martial - } - localization_key = yearly.0001.martial - } - - - text = { - trigger = { - var:yearly_0001_skill = flag:stewardship - } - localization_key = yearly.0001.stewardship - } - - - text = { - trigger = { - var:yearly_0001_skill = flag:intrigue - } - localization_key = yearly.0001.intrigue - } - - text = { - trigger = { - var:yearly_0001_skill = flag:learning - } - localization_key = yearly.0001.learning - } -} - -YearlyEvent0001SkillShort = { - type = character - - text = { - trigger = { - var:yearly_0001_skill = flag:diplomacy - } - localization_key = yearly.0001.diplomacy_short - } - - text = { - trigger = { - var:yearly_0001_skill = flag:martial - } - localization_key = yearly.0001.martial_short - } - - - text = { - trigger = { - var:yearly_0001_skill = flag:stewardship - } - localization_key = yearly.0001.stewardship_short - } - - - text = { - trigger = { - var:yearly_0001_skill = flag:intrigue - } - localization_key = yearly.0001.intrigue_short - } - - text = { - trigger = { - var:yearly_0001_skill = flag:learning - } - localization_key = yearly.0001.learning_short - } -} diff --git a/common/customizable_localization/01_ep1_custom_loc.txt b/common/customizable_localization/01_ep1_custom_loc.txt index 3ba43f7a3b..02d1c496a7 100644 --- a/common/customizable_localization/01_ep1_custom_loc.txt +++ b/common/customizable_localization/01_ep1_custom_loc.txt @@ -273,6 +273,14 @@ InspirationTypeDescription = { } localization_key = smith_inspiration_description } + text = { + trigger = { + inspiration = { + has_inspiration_type = research_inspiration + } + } + localization_key = research_inspiration_description + } #Alchemy is added as separate instances here since they need different sentence starters text = { trigger = { @@ -379,6 +387,12 @@ InspirationTypeDescriptionPast = { } localization_key = alchemy_inspiration_description_past } + text = { + trigger = { + var:created_artifact_type = flag:research + } + localization_key = research_inspiration_description_past + } } # Artisan (in here instead of by the other artifact custom locs because this one is only of use in the inspiration since it's not one single effect used in the completion event but many different ones, depending) @@ -486,6 +500,12 @@ InspirationSmithType = { } localization_key = inspiration_smith_type_goblet } + text = { # + trigger = { + var:artifact_smith_type = flag:smith_type_incense_burner_sculpture + } + localization_key = inspiration_smith_type_incense_burner_sculpture + } } InspirationTapestryScene = { @@ -1162,6 +1182,12 @@ GetInspirationOwnerType = { } localization_key = inspiration_owner_type_alchemist } + text = { + trigger = { + inspiration = { has_inspiration_type = research_inspiration } + } + localization_key = inspiration_owner_type_researcher + } text = { trigger = { always = no } fallback = yes @@ -1245,6 +1271,12 @@ GetInspirationTypeTool = { } localization_key = inspiration_type_tool_mortar } + text = { + trigger = { + inspiration = { has_inspiration_type = research_inspiration } + } + localization_key = inspiration_type_tool_books + } text = { trigger = { always = no } fallback = yes @@ -1327,6 +1359,12 @@ GetInspirationTypeStation = { } localization_key = inspiration_type_station_alembic } + text = { + trigger = { + inspiration = { has_inspiration_type = research_inspiration } + } + localization_key = inspiration_type_station_library + } text = { trigger = { always = no } fallback = yes @@ -1442,6 +1480,12 @@ GetInspirationTypeVerb = { } localization_key = inspiration_type_verb_study } + text = { + trigger = { + inspiration = { has_inspiration_type = research_inspiration } + } + localization_key = inspiration_type_verb_research + } text = { trigger = { always = no } fallback = yes diff --git a/common/customizable_localization/01_roco_custom_loc.txt b/common/customizable_localization/01_roco_custom_loc.txt deleted file mode 100644 index c523be4a5b..0000000000 --- a/common/customizable_localization/01_roco_custom_loc.txt +++ /dev/null @@ -1,59 +0,0 @@ -AugoustaAugoustus = { - type = character - - text = { - trigger = { - is_female = yes - } - localization_key = augousta - } - - text = { - trigger = { - is_female = no - } - localization_key = augoustus - } -} - -GetSwanName = { - type = character - - random_valid = yes - - text = { - localization_key = swan_name_illfated - } - - text = { - localization_key = swan_name_rose - } - - text = { - localization_key = swan_name_honky - } - - text = { - localization_key = swan_name_honker - } - - text = { - localization_key = swan_name_hugo - } - - text = { - localization_key = swan_name_leda - } - - text = { - localization_key = swan_name_anklebiter - } - - text = { - localization_key = swan_name_angrynipper - } - - text = { - localization_key = swan_name_odette - } -} diff --git a/common/customizable_localization/02_court_loc.txt b/common/customizable_localization/02_court_loc.txt deleted file mode 100644 index 669f401f51..0000000000 --- a/common/customizable_localization/02_court_loc.txt +++ /dev/null @@ -1,188 +0,0 @@ -GetMiracle1 = { - type = character - - random_valid = yes - - text = { - trigger = { - has_trait = reclusive - } - localization_key = miracle_reclusive - } - - text = { - trigger = { - has_trait = irritable - } - localization_key = miracle_irritable - } - - text = { - trigger = { - has_trait = inappetetic - } - localization_key = miracle_inappetetic - } - - text = { - trigger = { - has_trait = drunkard - } - localization_key = miracle_drunkard - } - - text = { - trigger = { - has_trait = contrite - } - localization_key = miracle_contrite - } - - text = { - trigger = { - has_trait = flagellant - } - localization_key = miracle_flagellant - } - - text = { - trigger = { - has_trait = improvident - } - localization_key = miracle_improvident - } -} - -GetMiracle2 = { - type = character - - random_valid = yes - - text = { - trigger = { - has_trait = lunatic_1 - } - localization_key = miracle_lunatic - } - - text = { - trigger = { - has_trait = possessed_1 - } - localization_key = miracle_possessed - } - - text = { - trigger = { - has_trait = disfigured - } - localization_key = miracle_disfigured - } - - text = { - trigger = { - has_trait = eunuch - } - localization_key = miracle_eunuch - } - - text = { - trigger = { - has_trait = blind - } - localization_key = miracle_blind - } - - text = { - trigger = { - has_trait = physique_good_3 - } - localization_key = miracle_herculean - } - - text = { - trigger = { - has_trait = spindly - } - localization_key = miracle_spindly - } - - text = { - trigger = { - has_trait = chaste - } - localization_key = miracle_chaste - } - - text = { - fallback = yes - localization_key = miracle_garlic - } - - text = { - fallback = yes - localization_key = miracle_birds - } -} - -GetPetitionType = { - type = character - random_valid = yes - - text = { - trigger = { var:petition_type = flag:council_seat } - localization_key = petition_liege.9001.council_seat - } - text = { - trigger = { var:petition_type = flag:pay_debt } - localization_key = petition_liege.9001.pay_debt - } - text = { - trigger = { var:petition_type = flag:war_aid } - localization_key = petition_liege.9001.war_aid - } - text = { - trigger = { var:petition_type = flag:vassal_war } - localization_key = petition_liege.9001.vassal_war - } - text = { - trigger = { var:petition_type = flag:faction_war } - localization_key = petition_liege.9001.faction_war - } - text = { - trigger = { var:petition_type = flag:county_control } - localization_key = petition_liege.9001.county_control - } - text = { - trigger = { var:petition_type = flag:county_convert } - localization_key = petition_liege.9001.county_convert - } - text = { - trigger = { var:petition_type = flag:county_opinion } - localization_key = petition_liege.9001.county_opinion - } - text = { - trigger = { var:petition_type = flag:fortify_border } - localization_key = petition_liege.9001.fortify_border - } - text = { - trigger = { var:petition_type = flag:title_liege } - localization_key = petition_liege.9001.title_liege - } - text = { - trigger = { var:petition_type = flag:title_vassal } - localization_key = petition_liege.9001.title_vassal - } - text = { - trigger = { var:petition_type = flag:construct_city } - localization_key = petition_liege.9001.construct_city - } - text = { - trigger = { var:petition_type = flag:construct_temple } - localization_key = petition_liege.9001.construct_temple - } - text = { - trigger = { var:petition_type = flag:development } - localization_key = petition_liege.9001.development - } -} diff --git a/common/customizable_localization/04_ep2_accolade_custom_loc.txt b/common/customizable_localization/04_ep2_accolade_custom_loc.txt deleted file mode 100644 index 6b8102ce81..0000000000 --- a/common/customizable_localization/04_ep2_accolade_custom_loc.txt +++ /dev/null @@ -1,59 +0,0 @@ - -AccoladeRankFlavorNumber = { - type = character - - text = { - trigger = { - accolade = { - accolade_rank = 1 - } - } - localization_key = accolade_rank_flavor_established - } - text = { - trigger = { - accolade = { - accolade_rank = 2 - } - } - localization_key = accolade_rank_flavor_recognized - } - text = { - trigger = { - accolade = { - accolade_rank = 3 - } - } - localization_key = accolade_rank_flavor_feted - } - text = { - trigger = { - accolade = { - accolade_rank = 4 - } - } - localization_key = accolade_rank_flavor_lionized - } - text = { - trigger = { - accolade = { - accolade_rank = 5 - } - } - localization_key = accolade_rank_flavor_august - } - text = { - trigger = { - accolade = { - accolade_rank = 6 - } - } - localization_key = accolade_rank_flavor_glorious - } - text = { - trigger = { - always = yes - } - localization_key = accolade_rank_flavor_unsung - } -} diff --git a/common/customizable_localization/09_de_custom_loc_suffixes.txt b/common/customizable_localization/09_de_custom_loc_suffixes.txt deleted file mode 100644 index 3b8796efcd..0000000000 --- a/common/customizable_localization/09_de_custom_loc_suffixes.txt +++ /dev/null @@ -1,1378 +0,0 @@ -############################################ -### Scripted Localization for German ### -### BY Kai Bagehorn ### -############################################ - -ResidenceBuilding_DE_1 = { - log_loc_errors = no - parent = ResidenceBuilding - suffix = "_DE_1" -} - -ResidenceBuilding_DE_2 = { - log_loc_errors = no - parent = ResidenceBuilding - suffix = "_DE_2" -} - -ResidenceBuilding_DE_3 = { - log_loc_errors = no - parent = ResidenceBuilding - suffix = "_DE_3" -} - -ResidenceBuilding_DE_4 = { - log_loc_errors = no - parent = ResidenceBuilding - suffix = "_DE_4" -} - -RandomPrivateObject_DE_1 = { - log_loc_errors = no - parent = RandomPrivateObject - suffix = "_DE_1" -} - -RandomWeirdObject_DE_1 = { - log_loc_errors = no - parent = RandomWeirdObject - suffix = "_DE_1" -} - -RandomWeirdObject_DE_2 = { - log_loc_errors = no - parent = RandomWeirdObject - suffix = "_DE_2" -} - -lowly_servant_type_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = lowly_servant_type - suffix = "_DE_ART_DEF_S_N" -} - -child_favorite_toy_DE_ART_IND_D = { - log_loc_errors = no - parent = child_favorite_toy - suffix = "_DE_ART_IND_D" -} - -GetOldBook_DE_ART_IND_N = { - log_loc_errors = no - parent = GetOldBook - suffix = "_DE_ART_IND_N" -} - -GetDisability_DE_1 = { - log_loc_errors = no - parent = GetDisability - suffix = "_DE_1" -} - -GetAccessory_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAccessory - suffix = "_DE_ART_IND_D" -} - -GetAccessory_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAccessory - suffix = "_DE_ART_IND_A" -} - -ObjectifiedFeature_DE_1 = { - log_loc_errors = no - parent = ObjectifiedFeature - suffix = "_DE_1" -} - -ObjectifiedFeature_DE_END_PRO_S_A = { - log_loc_errors = no - parent = ObjectifiedFeature - suffix = "_DE_END_PRO_S_A" -} - -CatStory_DE_PRO_PER_S_3P_A = { - log_loc_errors = no - parent = CatStoryFemaleMale - suffix = "_DE_PRO_PER_S_3P_A" -} - -ThisArtifactType_DE_1 = { - log_loc_errors = no - parent = ThisArtifactType - suffix = "_DE_1" -} - -ThisArtifactType_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = ThisArtifactType - suffix = "_DE_ART_DEF_S_N" -} - -RandomPrisonContentsSingular_DE_END_PRO_S_N = { - log_loc_errors = no - parent = RandomPrisonContentsSingular - suffix = "_DE_END_PRO_S_N" -} - -ArtifactBookSubject_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = ArtifactBookSubject - suffix = "_DE_ART_DEF_S_N" -} - -InspirationWritePresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_write_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationForgePresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_forge_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationWeavePresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_weave_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationGoPresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_go_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationCreatePresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_create_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationMakePresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_make_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationStudyPresentFuture_DE_Present = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = inspiration_desc_study_present - } - - text = { - localization_key = CustomLoc_DE_Blank - } -} - -InspirationWritePresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_write_future - } -} - -InspirationForgePresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_forge_future - } -} - -InspirationWeavePresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_weave_future - } -} - -InspirationGoPresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_go_future - } -} - -InspirationCreatePresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_create_future - } -} - -InspirationMakePresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_make_future - } -} - -InspirationStudyPresentFuture_DE_Future = { - log_loc_errors = no - type = character - - text = { - trigger = { - inspiration = { - exists = inspiration_sponsor - } - } - localization_key = CustomLoc_DE_Blank - } - - text = { - localization_key = inspiration_desc_study_future - } -} - -InspirationAdventureDestination_DE_1 = { - log_loc_errors = no - parent = InspirationAdventureDestination - suffix = "_DE_1" -} - -GetExoticPet_DE_1 = { - log_loc_errors = no - parent = GetExoticPet - suffix = "_DE_1" -} - -servant_for_romance_DE_1 = { - log_loc_errors = no - parent = servant_for_romance - suffix = "_DE_1" -} - -servant_for_romance_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = servant_for_romance - suffix = "_DE_ART_DEF_S_D" -} - -RomanticComplimentNoun_DE_ART_IND_N = { - log_loc_errors = no - parent = RomanticComplimentNoun - suffix = "_DE_ART_IND_N" -} - -GetExpensiveMeal_DE_1 = { - log_loc_errors = no - parent = GetExpensiveMeal - suffix = "_DE_1" -} - -GetExpensiveMeal_DE_2 = { - log_loc_errors = no - parent = GetExpensiveMeal - suffix = "_DE_1" -} - -GetExpensiveMeal_DE_3 = { - log_loc_errors = no - parent = GetExpensiveMeal - suffix = "_DE_1" -} - -FavoriteTreat_DE_1 = { - log_loc_errors = no - parent = FavoriteTreat - suffix = "_DE_1" -} - -FavoriteTreat_DE_2 = { - log_loc_errors = no - parent = FavoriteTreat - suffix = "_DE_2" -} - -InsultNoun_DE_1 = { - log_loc_errors = no - parent = InsultNoun - suffix = "_DE_1" -} - -InsultNoun_DE_2 = { - log_loc_errors = no - parent = InsultNoun - suffix = "_DE_2" -} - -TerrainType_DE_1 = { - log_loc_errors = no - parent = TerrainType - suffix = "_DE_1" -} - -TerrainType_DE_2 = { - log_loc_errors = no - parent = TerrainType - suffix = "_DE_2" -} - -TerrainTypeProvince_DE_1 = { - log_loc_errors = no - parent = TerrainTypeProvince - suffix = "_DE_1" -} - -TerrainTypeProvince_DE_2 = { - log_loc_errors = no - parent = TerrainTypeProvince - suffix = "_DE_2" -} - -GetFaithGrandTemple_DE_1 = { - log_loc_errors = no - parent = GetFaithGrandTemple - suffix = "_DE_1" -} - -GetFaithGrandTemple_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetFaithGrandTemple - suffix = "_DE_ART_DEF_S_N" -} - -GetFaithGrandTemple_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetFaithGrandTemple - suffix = "_DE_ART_DEF_S_A" -} - -GetFaithGrandTemple_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetFaithGrandTemple - suffix = "_DE_END_ADJ_DEF_S_A" -} - -get_hold_court_8100_parent_DE_1 = { - log_loc_errors = no - parent = get_hold_court_8100_parent - suffix = "_DE_1" -} - -get_hold_court_8100_parent_DE_2 = { - log_loc_errors = no - parent = get_hold_court_8100_parent - suffix = "_DE_2" -} - -get_hold_court_8100_situation_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = get_hold_court_8100_situation - suffix = "_DE_ART_DEF_S_D" -} - -dummy_peasant_profession_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = dummy_peasant_profession - suffix = "_DE_ART_DEF_S_N" -} - -dummy_peasant_profession_DE_1 = { - log_loc_errors = no - parent = dummy_peasant_profession - suffix = "_DE_1" -} - -dummy_peasant_profession_DE_2 = { - log_loc_errors = no - parent = dummy_peasant_profession - suffix = "_DE_2" -} - -get_region_dog_type_DE_1 = { - log_loc_errors = no - parent = get_region_dog_type - suffix = "_DE_1" -} - -GetUnbelieverTerm_DE_1 = { - log_loc_errors = no - parent = GetUnbelieverTerm - suffix = "_DE_1" -} - -GetUnbelieverTerm_DE_2 = { - log_loc_errors = no - parent = GetUnbelieverTerm - suffix = "_DE_2" -} - -HorseMareStallion_DE_1 = { - log_loc_errors = no - parent = HorseMareStallion - suffix = "_DE_1" -} - -HorseMareStallion_DE_2 = { - log_loc_errors = no - parent = HorseMareStallion - suffix = "_DE_2" -} - -HorseStoryMareStallion_DE_1 = { - log_loc_errors = no - parent = HorseStoryMareStallion - suffix = "_DE_1" -} - -HorseStoryMareStallion_DE_2 = { - log_loc_errors = no - parent = HorseStoryMareStallion - suffix = "_DE_2" -} - -FortifiedBuilding_DE_ART_IND_G = { - log_loc_errors = no - parent = FortifiedBuilding - suffix = "_DE_ART_IND_G" -} - -FortifiedBuilding_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = FortifiedBuilding - suffix = "_DE_ART_DEF_S_N" -} - -RandomBodyFeatureNoun_DE_1 = { - log_loc_errors = no - parent = RandomBodyFeatureNoun - suffix = "_DE_1" -} - -GetFriendNoun_DE_1 = { - log_loc_errors = no - parent = GetFriendNoun - suffix = "_DE_1" -} - -GetFriendNoun_DE_2 = { - log_loc_errors = no - parent = GetFriendNoun - suffix = "_DE_2" -} - -GetFriendNoun_DE_3 = { - log_loc_errors = no - parent = GetFriendNoun - suffix = "_DE_3" -} - -GetRandomRoom_DE_1 = { - log_loc_errors = no - parent = GetRandomRoom - suffix = "_DE_1" -} - -GetTargetCourtPosition_DE_1 = { - log_loc_errors = no - parent = GetTargetCourtPosition - suffix = "_DE_1" -} - -GetTargetCourtPosition_DE_2 = { - log_loc_errors = no - parent = GetTargetCourtPosition - suffix = "_DE_2" -} - -GetTargetCourtPosition_DE_3 = { - log_loc_errors = no - parent = GetTargetCourtPosition - suffix = "_DE_3" -} - -#replace with below -ArtifactAnimalTrinketType_DE_1 = { - log_loc_errors = no - parent = ArtifactAnimalTrinketType - suffix = "_DE_1" -} - -ArtifactAnimalTrinketType_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = ArtifactAnimalTrinketType - suffix = "_DE_ART_DEF_S_N" -} - -GetRegionalDeerType_DE_1 = { - log_loc_errors = no - parent = GetRegionalDeerType - suffix = "_DE_1" -} - -RegionalEdibleMeat_DE_1 = { - log_loc_errors = no - parent = RegionalEdibleMeat - suffix = "_DE_1" -} - -RegionalEdibleMeat_DE_2 = { - log_loc_errors = no - parent = RegionalEdibleMeat - suffix = "_DE_2" -} - -RegionalFarmAnimal_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = RegionalFarmAnimal - suffix = "_DE_ART_DEF_S_N" -} - -HateCatDog_DE_ART_DEF_P_N = { - log_loc_errors = no - parent = HateCatDog - suffix = "_DE_ART_DEF_P_N" -} - -BaronyTownType_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = BaronyTownType - suffix = "_DE_ART_DEF_S_N" -} - -BaronyTownType_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = BaronyTownType - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetRandomMigratoryBird_DE_ART_IND_A = { - log_loc_errors = no - parent = GetRandomMigratoryBird - suffix = "_DE_ART_IND_A" -} - -GetLocalStreetFood_DE_ART_IND_A = { - log_loc_errors = no - parent = GetLocalStreetFood - suffix = "_DE_ART_IND_A" -} - -RegionalFerociousAnimal_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = RegionalFerociousAnimal - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetFaithTemple_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetFaithTemple - suffix = "_DE_ART_DEF_S_A" -} - -GetFaithTemple_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetFaithTemple - suffix = "_DE_ART_DEF_S_N" -} - -VenomousCreature_DE_1 = { - log_loc_errors = no - parent = VenomousCreature - suffix = "_DE_1" -} - -LadyLordNoble_GenderPreference_DE_1 = { - log_loc_errors = no - parent = LadyLordNoble_GenderPreference - suffix = "_DE_1" -} - -ArtifactAnimalType_DE_ART_IND_G = { - log_loc_errors = no - parent = ArtifactAnimalType - suffix = "_DE_ART_IND_G" -} - -ArtifactAnimalType_DE_GEN = { - log_loc_errors = no - parent = ArtifactAnimalType - suffix = "_DE_ART_IND_G" -} - -###Nominativ = GetAnimalType -GetAnimalType_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalType_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalType_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalType_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalType) -GetAnimalType_DE_GEN = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_GEN" -} - -GetAnimalType_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalType_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalType) -GetAnimalType_DE_DAT = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_DAT" -} - -GetAnimalType_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_IND_D" -} - -GetAnimalType_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalType) -GetAnimalType_DE_AKK = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_AKK" -} - -GetAnimalType_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalType_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_ART_IND_A" -} - -GetAnimalType_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalType - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeKill -GetAnimalTypeKill_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeKill_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeKill_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeKill_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeKill) -GetAnimalTypeKill_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_GEN" -} - -GetAnimalTypeKill_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeKill_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeKill) -GetAnimalTypeKill_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_DAT" -} - -GetAnimalTypeKill_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeKill_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeKill) -GetAnimalTypeKill_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_AKK" -} - -GetAnimalTypeKill_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeKill_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeKill_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeKill - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeWaterfowl -GetAnimalTypeWaterfowl_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeWaterfowl_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeWaterfowl_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeWaterfowl_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeWaterfowl) -GetAnimalTypeWaterfowl_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_GEN" -} - -GetAnimalTypeWaterfowl_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeWaterfowl_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeWaterfowl) -GetAnimalTypeWaterfowl_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_DAT" -} - -GetAnimalTypeWaterfowl_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeWaterfowl_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeWaterfowl) -GetAnimalTypeWaterfowl_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_AKK" -} - -GetAnimalTypeWaterfowl_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeWaterfowl_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeWaterfowl_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeWaterfowl - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeGamebird -GetAnimalTypeGamebird_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeGamebird_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeGamebird_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeGamebird_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeGamebird) -GetAnimalTypeGamebird_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_GEN" -} - -GetAnimalTypeGamebird_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeGamebird_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeGamebird) -GetAnimalTypeGamebird_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_DAT" -} - -GetAnimalTypeGamebird_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeGamebird_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeGamebird) -GetAnimalTypeGamebird_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_AKK" -} - -GetAnimalTypeGamebird_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeGamebird_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeGamebird_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeGamebird - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeTame -GetAnimalTypeTame_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeTame_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeTame_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeTame_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeTame) -GetAnimalTypeTame_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_GEN" -} - -GetAnimalTypeTame_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeTame_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeTame) -GetAnimalTypeTame_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_DAT" -} - -GetAnimalTypeTame_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeTame_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeTame) -GetAnimalTypeTame_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_AKK" -} - -GetAnimalTypeTame_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeTame_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeTame_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeTame - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeCaptive -GetAnimalTypeCaptive_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeCaptive_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeCaptive_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeCaptive_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeCaptive) -GetAnimalTypeCaptive_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_GEN" -} - -GetAnimalTypeCaptive_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeCaptive_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeCaptive) -GetAnimalTypeCaptive_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_DAT" -} - -GetAnimalTypeCaptive_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeCaptive_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeCaptive) -GetAnimalTypeCaptive_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_AKK" -} - -GetAnimalTypeCaptive_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeCaptive_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeCaptive_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeCaptive - suffix = "_DE_END_ADJ_DEF_S_A" -} - -###Nominativ = GetAnimalTypeMismanaged -GetAnimalTypeMismanaged_DE_ART_DEF_S_N = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_DEF_S_N" -} - -GetAnimalTypeMismanaged_DE_END_ADJ_IND_S_N = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_END_ADJ_IND_S_N" -} - -GetAnimalTypeMismanaged_DE_PRO_PER_S_3P_N = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_PRO_PER_S_3P_N" -} - -GetAnimalTypeMismanaged_DE_END_PRO_S_N = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_END_PRO_S_N" -} - -#Genitiv (GetAnimalTypeMismanaged) -GetAnimalTypeMismanaged_DE_GEN = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_GEN" -} - -GetAnimalTypeMismanaged_DE_ART_DEF_S_G = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_DEF_S_G" -} - -GetAnimalTypeMismanaged_DE_ART_IND_G = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_IND_G" -} - -#Dativ (GetAnimalTypeMismanaged) -GetAnimalTypeMismanaged_DE_DAT = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_DAT" -} - -GetAnimalTypeMismanaged_DE_ART_IND_D = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_IND_D" -} - -GetAnimalTypeMismanaged_DE_ART_DEF_S_D = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_DEF_S_D" -} - -#Akkusativ (GetAnimalTypeMismanaged) -GetAnimalTypeMismanaged_DE_AKK = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_AKK" -} - -GetAnimalTypeMismanaged_DE_ART_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_DEF_S_A" -} - -GetAnimalTypeMismanaged_DE_ART_IND_A = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_ART_IND_A" -} - -GetAnimalTypeMismanaged_DE_END_ADJ_DEF_S_A = { - log_loc_errors = no - parent = GetAnimalTypeMismanaged - suffix = "_DE_END_ADJ_DEF_S_A" -} - -GetRegionalWolfType_DE_AKK = { - log_loc_errors = no - parent = GetRegionalWolfType - suffix = "_DE_AKK" -} - -GetRegionalWolfType_DE_ART_IND_A = { - log_loc_errors = no - parent = GetRegionalWolfType - suffix = "_DE_ART_IND_A" -} - -GetAnimalPlural_DE_DAT = { - log_loc_errors = no - parent = GetAnimalPlural - suffix = "_DE_DAT" -} - diff --git a/common/deathreasons/00_activity_deaths.txt b/common/deathreasons/00_activity_deaths.txt deleted file mode 100644 index ec18ca48ab..0000000000 --- a/common/deathreasons/00_activity_deaths.txt +++ /dev/null @@ -1,87 +0,0 @@ -# higher priority value is selected first ( 2 is selected over 1 ) - -death_contest_melee_accident = { - public_knowledge = yes - icon = "death_murder.dds" - use_equipped_artifact_in_slot = right_hand -} - -death_contest_joust_accident = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_contest_wrestling_accident = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_contest_duel_accident = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_contest_board_game_accident = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_contest_horse_sport_accident = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_pas_darmes_defend = { - public_knowledge = yes - icon = "death_murder.dds" - use_equipped_artifact_in_slot = right_hand -} - -death_tournament_pas_darmes_challenge = { - public_knowledge = yes - icon = "death_murder.dds" - use_equipped_artifact_in_slot = right_hand -} - -death_wild_animal = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_tournament_piledriver = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_melee_throat = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_roundhouse = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_archery_fall = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_quintain_hit = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tournament_stands_collapsed = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_bloody_wedding = { - icon = "death_murder.dds" -} - -death_murder_feast = { - icon = "death_murder.dds" -} diff --git a/common/deathreasons/00_event_deaths.txt b/common/deathreasons/00_event_deaths.txt deleted file mode 100644 index fc9f59441f..0000000000 --- a/common/deathreasons/00_event_deaths.txt +++ /dev/null @@ -1,880 +0,0 @@ -death_murder = { - icon = "death_murder.dds" -} - -death_duel = { - public_knowledge = yes - icon = "death_murder.dds" - use_equipped_artifact_in_slot = right_hand -} - -death_accident = { - icon = "death_unknown.dds" -} - -death_ended_on_feast_table = { - icon = "death_natural.dds" -} - -death_plotting = { - icon = "death_murder.dds" -} - -death_script_cruelty = { - icon = "death_murder.dds" -} - -death_stress = { - icon = "death_disease.dds" -} - -death_wounds = { - icon = "death_disease.dds" -} - -death_punishment = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_disappearance = { - icon = "death_unknown.dds" -} - -death_poison = { - icon = "death_murder.dds" -} - -death_dungeon = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_fight = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_fight_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_battle = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_head_ripped_off = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_cloven_in_half = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_viciously_dismembered = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_ripped_apart_limb_by_limb = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_chopped_to_pieces = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_heart_ripped_out = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_fear = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_skull_cracked_open = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_strangled_with_own_intestines = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_decapitated = { - public_knowledge = yes - icon = "death_murder.dds" -} -death_piteously_cut_down = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_horse_riding_accident = { - icon = "death_natural.dds" -} - -death_training_accident = { - icon = "death_natural.dds" -} - -death_ate_themselves_to_death = { - icon = "death_natural.dds" -} - -death_tumultuous_guts = { - icon = "death_natural.dds" -} - -death_hunting_accident = { - icon = "death_unknown.dds" -} - -death_mysterious = { - icon = "death_unknown.dds" -} - -death_execution = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_execution_blood_eagle = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_execution_blood_eagle_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_execution_blot = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_execution_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_attempted_treatment = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_carp_accident = { - icon = "death_natural.dds" -} - -death_whipping = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_torture = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_childbirth = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_delivery = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_treatment = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_treatment_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_vanished = { - icon = "death_unknown.dds" -} - -death_siege = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_raid = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_burned = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_suicide = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_eaten = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_beaten = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_sacrificed_to_gods = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_crucified = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_burned_witch = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_pilgrimage_bandit_attack = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_sun_trial = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_attacked = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_feast_accident = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_fall = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_fell_bedchamber = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_drowned = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_sow = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_horse = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_camel = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_roof_tile = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_crocodile = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_dog_attack = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_cat_attack = { - icon = "death_natural.dds" -} - -death_murder_known = { # For history setup - public_knowledge = yes - icon = "death_murder.dds" -} - -death_literalist_debate = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_wolf = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_wolves = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_wolverine = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_lynx = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_moose = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_bear = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_ritually_hung_then_eaten = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_ritually_hung = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_ritually_eaten = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_crushed = { - public_knowledge = yes - icon = death_natural.dds -} - -death_defenestration = { - public_knowledge = yes - icon = "death_murder.dds" -} - - -death_hanged = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_botched_decapitation = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_assassination = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_danced_to_death = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_drowned_in_excrement = { - public_knowledge = yes - icon = death_natural.dds -} - -death_snakes = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_brutally_despatched = { - public_knowledge = yes - icon = death_murder.dds -} - -death_trepanned = { - public_knowledge = yes - icon = "death_murder.dds" -} - - -death_riding_animal = { - public_knowledge = yes - icon = death_natural.dds -} - -death_starved = { - public_knowledge = yes - icon = death_natural.dds -} - -death_starved_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_while_assassinating = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_refused_to_be_imprisoned = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_strongest_potion = { - icon = "death_murder.dds" -} - -death_skull_removed = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_miniatures = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_ice = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_laughter = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_heart_attack = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_nailed_in_cabinet = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_by_artifact = { - public_knowledge = yes - icon = "death_murder.dds" -} - - -death_bell_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_bell = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_flight_attempt = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_beaten_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_for_corpse_forest = { - public_knowedge = yes - icon = "death_murder.dds" -} - -death_burned_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_bell_revenge = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hanged_and_disemboweled_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_crucified_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_defenestrated_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_molten_silver_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_torn_to_pieces_by_mob = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_by_exploding_whale = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_scuffle_with_soldiers = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_euthanasia = { - icon = "death_natural.dds" -} - -death_euthanasia_killer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_launched_out_of_catapult = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_lost_in_the_forest = { - public_knowedge = yes - icon = "death_natural.dds" -} - -death_trampled_by_horse = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_cuteness_overload = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_maimed_by_wild_beast = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_crushed_by_elephant = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_lost_in_the_bog = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_sacrificed_to_foreign_gods = { - public_knowledge = yes - icon = "death_murder.dds" -} -death_fire = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_equipment = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_axe = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_bull_charge = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_manhunted = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_manhunted_eaten = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_revenge = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_deer = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_antelope = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_gazelle = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_bison = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_boar = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_aurochs = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hyena = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_lion = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_tiger = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_leopard = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_roe = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hart = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hunting_trap = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hunting_mistakenly_shot = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hunting_mistakenly_stabbed = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_courtier_mistakenly_stabbed = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_dragged = { - public_knowledge = yes - icon = "death_murder.dds" -} - -death_hunting_mysterious = { - icon = "death_unknown.dds" -} - -death_jumping_boulder = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_too_much_dessert = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_choked = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_choked_pus = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_spectator_injured = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_drank_to_death = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_snapped_neck_climbing_tree = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_fallen_from_a_mountain = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_mountain_rescue_operation = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_fall_in_hole = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_coup_successful = { - public_knowledge = yes - icon = death_murder.dds -} - -death_coup_failed = { - public_knowledge = yes - icon = death_murder.dds -} - -death_hypothermia = { - public_knowledge = yes - icon = death_natural.dds -} - -death_stampede = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_violent_storm = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_run_over_cart = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_slaughtered_by_guards = { - public_knowledge = yes - icon = death_murder.dds -} - -death_camp_fever = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_march_malaise = { - public_knowledge = yes - icon = "death_disease.dds" -} - -death_froze = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_heatstroke = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_assassinated_by_soldiers = { - public_knowledge = yes - icon = death_murder.dds -} - -death_cut_off_by_enemy_troops_offensive = { - public_knowledge = yes - icon = death_murder.dds -} - -death_cut_off_by_enemy_troops_defensive = { - public_knowledge = yes - icon = death_murder.dds -} - -death_avalanche = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_sea_storm = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_poisonous_forage = { - public_knowledge = yes - icon = "death_natural.dds" -} - -death_hostage_execution = { - public_knowledge = yes - icon = "death_murder.dds" -} diff --git a/common/decisions/00_artifact_decisions.txt b/common/decisions/00_artifact_decisions.txt deleted file mode 100644 index 67ebe7d88a..0000000000 --- a/common/decisions/00_artifact_decisions.txt +++ /dev/null @@ -1,418 +0,0 @@ -commission_artifact_decision = { - picture = "gfx/interface/illustrations/decisions/decision_smith.dds" - - cooldown = { days = standard_commission_artifact_cooldown_time } - sort_order = 100 - - is_shown = { - is_landed = yes - highest_held_title_tier >= tier_county - exists = capital_province - } - - is_valid_showing_failures_only = { - # Only valid for characters with an antiquarian. - employs_court_position = antiquarian_court_position - } - - minimum_cost = { - # Matches the cost defined in 00_inspirations.txt - gold = basic_fund_inspiration_cost - } - - widget = { - gui = "decision_view_widget_commission_artifact" - controller = decision_option_list_controller - - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" - decision_to_second_step_button = "COMMISSION_ARTIFACT_DECISION_NEXT_STEP_BUTTON" - - - # Personal Artifacts are always valid to commission - item = { - value = commission_weapon - current_description = { - desc = commission_artifact_decision_option_weapon_desc - } - localization = { - desc = commission_artifact_decision_option_weapon - } - icon = "gfx/interface/icons/artifact/artifact_sword.dds" - - ai_chance = { - value = 0 - if = { - limit = { - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = primary_armament - } - } - } - add = 100 - } - } - } - - item = { - value = commission_armor - current_description = { - desc = commission_artifact_decision_option_armor_desc - } - localization = { - desc = commission_artifact_decision_option_armor - } - icon = "gfx/interface/icons/artifact/artifact_armor.dds" - - ai_chance = { - value = 0 - if = { - limit = { - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = armor - } - } - } - add = 100 - } - } - } - - item = { - value = commission_crown - current_description = { - desc = commission_artifact_decision_option_crown_desc - } - localization = { - desc = commission_artifact_decision_option_crown - } - icon = "gfx/interface/icons/artifact/artifact_crown.dds" - - ai_chance = { - value = 0 - if = { - limit = { - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = helmet - } - } - } - add = 100 - } - } - } - - item = { - value = commission_regalia - current_description = { - desc = commission_artifact_decision_option_regalia_desc - } - localization = { - desc = commission_artifact_decision_option_regalia - } - icon = "gfx/interface/icons/artifact/artifact_regalia.dds" - - ai_chance = { - value = 0 - if = { - limit = { - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = regalia - } - } - } - add = 100 - } - } - } - - # Court Artifacts only appear if you have the Royal Court DLC, and are only valid if you have an active Royal Court - - item = { - value = commission_tapestry - is_shown = { has_dlc_feature = royal_court } - is_valid = { has_royal_court = yes } - current_description = { - desc = commission_artifact_decision_option_tapestry_desc - } - - localization = { - desc = commission_artifact_decision_option_tapestry - } - icon = "gfx/interface/icons/artifact/artifact_tapestry.dds" - - ai_chance = { - value = 0 - if = { - limit = { - has_royal_court = yes - # Only make this choice if we don't already have an artifact of this type. - NOR = { - any_character_artifact = { - artifact_slot_type = wall_big - } - any_character_artifact = { - artifact_slot_type = wall_small - } - } - } - add = 100 - } - } - } - - item = { - value = commission_furniture - is_shown = { has_dlc_feature = royal_court } - is_valid = { has_royal_court = yes } - current_description = { - desc = commission_artifact_decision_option_furniture_desc - } - localization = { - desc = commission_artifact_decision_option_furniture - } - icon = "gfx/interface/icons/artifact/artifact_cabinet.dds" - - ai_chance = { - value = 0 - if = { - limit = { - has_royal_court = yes - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = sculpture - } - } - } - add = 100 - } - } - } - - item = { - value = commission_book - is_shown = { has_dlc_feature = royal_court } - is_valid = { has_royal_court = yes } - current_description = { - desc = commission_artifact_decision_option_book_desc - } - localization = { - desc = commission_artifact_decision_option_book - } - icon = "gfx/interface/icons/artifact/artifact_book.dds" - - ai_chance = { - value = 0 - if = { - limit = { - has_royal_court = yes - # Only make this choice if we don't already have an artifact of this type. - NOT = { - any_character_artifact = { - artifact_slot_type = book - } - } - } - add = 100 - } - } - } - - #Alchemy isn't included here since that inspiration is much more tied to the pursuit of knowledge initiated by the inspired person - } - - effect = { - if = { - limit = { - any_court_position_holder = { - type = antiquarian_court_position - } - } - random_court_position_holder = { - type = antiquarian_court_position - save_scope_as = antiquarian - } - } - # Explanatory Tooltips - custom_tooltip = commission_artifact_decision_effect - if = { - limit = { has_dlc_feature = royal_court } - custom_description_no_bullet = { - text = commission_artifact_decision_warning_effect - } - } - - if = { - limit = { - any_pool_character = { - province = root.capital_province - has_no_particular_noble_roots_trigger = yes - is_available_healthy_ai_adult = yes - NOR = { - exists = inspiration - has_trait = peasant_leader - } - } - } - random_pool_character = { - province = root.capital_province - limit = { - has_no_particular_noble_roots_trigger = yes - is_available_healthy_ai_adult = yes - NOR = { - exists = inspiration - has_trait = peasant_leader - } - } - save_scope_as = local_artisan - hidden_effect = { - add_character_modifier = local_artisan_modifier - } - } - } - else = { - # Artisan Generation - hidden_effect = { - create_character = { - template = local_artisan_template - location = root.capital_province - gender_female_chance = root_faith_dominant_gender_adjusted_female_chance - save_scope_as = local_artisan - } - scope:local_artisan = { - hidden_effect = { - add_character_modifier = local_artisan_modifier - } - } - } - } - - hidden_effect = { - if = { - # Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution! - limit = { exists = scope:local_artisan } - root = { add_courtier = scope:local_artisan } - scope:local_artisan = { - add_character_flag = local_artisan - if = { - limit = { scope:commission_weapon = yes } - create_inspiration = weapon_inspiration - } - else_if = { - limit = { scope:commission_armor = yes } - set_variable = { - name = force_armor - value = flag:force_armor_true - } - create_inspiration = armor_inspiration - } - else_if = { - limit = { scope:commission_crown = yes } - set_variable = { - name = artifact_smith_type - value = flag:smith_type_crown - } - create_inspiration = smith_inspiration - } - else_if = { - limit = { scope:commission_regalia = yes } - set_variable = { - name = artifact_smith_type - value = flag:smith_type_regalia - } - create_inspiration = smith_inspiration - } - else_if = { - limit = { scope:commission_tapestry = yes } - root = { - trigger_event = fund_inspiration.0044 - } - } - else_if = { - limit = { scope:commission_furniture = yes } - create_inspiration = artisan_inspiration - } - else_if = { - limit = { scope:commission_book = yes } - create_inspiration = book_inspiration - } - if = { - limit = { exists = inspiration } - inspiration = { save_scope_as = this_inspiration } - root = { sponsor_inspiration = scope:this_inspiration } - } - } - } - } - } - - ai_check_interval = 36 - - ai_potential = { - is_at_war = no - ai_greed < medium_positive_ai_value - short_term_gold > ai_war_chest_desired_gold_value - war_chest_gold >= halved_ai_war_chest_gold_maximum - } - - ai_will_do = { - base = 100 - - modifier = { - factor = 0 - has_royal_court = yes - any_character_artifact = { - artifact_slot_type = primary_armament - } - any_character_artifact = { - artifact_slot_type = armor - } - any_character_artifact = { - artifact_slot_type = helmet - } - any_character_artifact = { - artifact_slot_type = regalia - } - OR = { - any_character_artifact = { - artifact_slot_type = wall_big - } - any_character_artifact = { - artifact_slot_type = wall_small - } - } - any_character_artifact = { - artifact_slot_type = sculpture - } - any_character_artifact = { - artifact_slot_type = book - } - } - - modifier = { - factor = 0 - has_royal_court = no - any_character_artifact = { - artifact_slot_type = primary_armament - } - any_character_artifact = { - artifact_slot_type = armor - } - any_character_artifact = { - artifact_slot_type = helmet - } - any_character_artifact = { - artifact_slot_type = regalia - } - } - } -} \ No newline at end of file diff --git a/common/decisions/00_diarchy_decisions.txt b/common/decisions/00_diarchy_decisions.txt deleted file mode 100644 index 1afecbf6b1..0000000000 --- a/common/decisions/00_diarchy_decisions.txt +++ /dev/null @@ -1,241 +0,0 @@ -################################################## -# #Decisions -# diarch_attempt_to_overthrow_liege Diarch attempts to coup Liege -# - -############################################# -# Attempt Overthrow of Liege -# by Ewan Cowhig Croft -############################################# - -diarch_attempt_to_overthrow_liege = { - desc = diarch_attempt_to_overthrow_liege_desc - confirm_text = { - first_valid = { - triggered_desc = { - trigger = { scope:coup_prowess = yes } - desc = diarch_attempt_to_overthrow_liege_confirm.prowess - } - desc = diarch_attempt_to_overthrow_liege_confirm - } - } - selection_tooltip = diarch_attempt_to_overthrow_liege_tooltip - picture = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" - major = yes - - is_shown = { - # If you're not in a diarchy, we don't care. - OR = { - AND = { - exists = liege - is_diarch_of_target = liege - } - is_designated_diarch = yes - } - } - - is_valid = { - diarch_coup_attempt_is_valid_trigger = { LIEGE = root.liege } - } - - is_valid_showing_failures_only = { - diarch_coup_attempt_is_valid_showing_failure_only_trigger = { DIARCH = root } - } - - widget = { - gui = "decision_view_widget_petition_liege" - controller = decision_option_list_controller - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" - decision_to_second_step_button = "diarch_attempt_to_overthrow_liege.second_step" - - # Diplomacy Coup. - item = { - value = coup_diplomacy - current_description = diarch_attempt_to_overthrow_liege.tt.coup_diplomacy_desc - localization = diarch_attempt_to_overthrow_liege.tt.coup_diplomacy - icon = "gfx/interface/icons/message_feed/diplomacy.dds" - is_valid = { always = yes } - ai_chance = { - value = 0 - # If this is our highest skill, weight it up. - if = { - limit = { - highest_skill = diplomacy - diplomacy >= prowess - } - add = 100 - } - } - } - # Intrigue Coup. - item = { - value = coup_intrigue - current_description = diarch_attempt_to_overthrow_liege.tt.coup_intrigue_desc - localization = diarch_attempt_to_overthrow_liege.tt.coup_intrigue - icon = "gfx/interface/icons/message_feed/intrigue.dds" - is_valid = { always = yes } - ai_chance = { - value = 0 - # If this is our highest skill, weight it up. - if = { - limit = { - highest_skill = intrigue - intrigue >= prowess - } - add = 100 - } - } - } - # Prowess Coup. - item = { - value = coup_prowess - current_description = diarch_attempt_to_overthrow_liege.tt.coup_prowess_desc - localization = diarch_attempt_to_overthrow_liege.tt.coup_prowess - icon = "gfx/interface/icons/icon_prowess.dds" - is_valid = { always = yes } - ai_chance = { - value = 0 - # If this is our highest skill, weight it up. - if = { - limit = { - prowess >= diplomacy - prowess >= martial - prowess >= stewardship - prowess >= intrigue - prowess >= learning - } - add = 100 - - } - } - } - } - - effect = { - # Save some scopes for loc. - save_scope_as = usurper - liege = { save_scope_as = liege } - # Fire the misc assorted effects we want here & for the AI path. - diarch_coup_preamble_effects_effect = yes - # Right, so how does this work? - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.coup_types - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_response - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_response.information_on_converting_councillors - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.consequences - # Now, show what's gonna happen. - random_list = { - # If scope:liege accepts their fate, this can all end peacefully. - 100 = { - desc = diarch_attempt_to_overthrow_liege.tt.liege_accepts - show_chance = no - # You take all top-tier titles. - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_accepts.usurp_targets.primary - # If there's a suitable kingdom title, you'll absorb that too. - ## By suitable, we mean "one that has some lands within the sub-realm". - if = { - limit = { - liege = { - diarch_coup_attempt_grabbable_kingdom_trigger = { TARGET = root.liege } - } - } - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_accepts.usurp_targets.kingdom - } - # If they hold the de jure capital & its duchy, you'll take _those_, thank you. - if = { - limit = { - liege = { - any_held_title = { - diarch_coup_attempt_grabbable_capital_and_duchies_trigger = { TARGET = root.liege } - } - } - } - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_accepts.usurp_targets.capital - } - # Remaining lands stay with scope:liege. - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_accepts.keep_more_titles - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_accepts.remains_ruling - } - # If scope:liege puts up a fight and loses, you bust them down. - 100 = { - desc = diarch_attempt_to_overthrow_liege.tt.liege_fights_and_loses - show_chance = no - # Most lands stay with scope:liege. - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_fights_and_loses.take_more_titles - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.liege_fights_and_loses.may_lose_everything - } - # And if things go wrong? - ## Diplomacy Coup. - 100 = { - desc = diarch_attempt_to_overthrow_liege.tt.diplomacy_coup - show_chance = no - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.win.liege_lives - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.win.considered_merciful - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.lose.usurper_captured - } - ## Intrigue Coup. - 100 = { - desc = diarch_attempt_to_overthrow_liege.tt.intrigue_coup - show_chance = no - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.win.liege_captured - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.lose.usurper_captured - } - ## Prowess Coup. - 100 = { - desc = diarch_attempt_to_overthrow_liege.tt.prowess_coup - show_chance = no - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.win.liege_dies - custom_tooltip = diarch_attempt_to_overthrow_liege.tt.loss.usurper_dies - } - } - # Compile our final conspirator list. - diarch_finalise_conspirators_for_overthrow_list_effect = yes - # Send out the actual events. - liege = { - # Diplomacy. - if = { - limit = { scope:coup_diplomacy = yes } - trigger_event = diarchy.9001 - } - # Intrigue. - if = { - limit = { scope:coup_intrigue = yes } - trigger_event = diarchy.9011 - } - # Prowess. - if = { - limit = { scope:coup_prowess = yes } - trigger_event = diarchy.9021 - } - } - } - - cost = { - gold = { - value = major_gold_value - if = { - limit = { - has_character_flag = laid_coup_groundwork_flag - } - multiply = 0.1 - } - } - prestige = { - value = 1000 - if = { - limit = { - has_character_flag = laid_coup_groundwork_flag - } - multiply = 0.1 - } - } - } - - # The AI takes this via interaction, as we need to account for landless characters. - ai_check_interval = 0 - - # Handled via interaction. - ai_potential = { always = no } - - ai_will_do = { base = 100 } -} diff --git a/common/decisions/00_dynasty_decisions.txt b/common/decisions/00_dynasty_decisions.txt deleted file mode 100644 index 2784e11237..0000000000 --- a/common/decisions/00_dynasty_decisions.txt +++ /dev/null @@ -1,179 +0,0 @@ -create_cadet_branch_decision = { - picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - - major = yes - ai_check_interval = 60 - - is_shown = { - is_landed = yes - exists = house - exists = house.house_head - is_house_head = no - primary_title.tier > tier_barony - NOR = { - government_has_flag = government_is_holy_order - government_has_flag = government_is_theocracy - AND = { - faith = { has_doctrine = doctrine_theocracy_temporal } - has_council_position = councillor_court_chaplain - } - } - } - - is_valid = { - house.house_head = { - government_allows = create_cadet_branches - custom_description = { - text = create_cadet_branch_decision_succession_line - NOT = { - any_held_title = { - place_in_line_of_succession = { - target = root - value <=3 - } - } - } - } - } - - custom_description = { - text = create_cadet_branch_decision_ancestor_in_house - NOT = { - any_ancestor = { - house = root.house - } - } - } - - trigger_if = { - limit = { - is_married = yes - is_male = yes - } - patrilinear_marriage = yes - } - trigger_if = { - limit = { - is_married = yes - is_female = yes - } - matrilinear_marriage = yes - } - trigger_if = { #Males of female-dominated faith must already be patrilineally married before taking this decision. - limit = { - is_married = no - is_female = no - faith = { - has_doctrine = doctrine_gender_female_dominated - } - } - patrilinear_marriage = yes - } - trigger_if = { #Females of male-dominated faith must already be matrilineally married before taking this decision. - limit = { - is_married = no - is_female = yes - faith = { - has_doctrine = doctrine_gender_male_dominated - } - } - matrilinear_marriage = yes - } - trigger_if = { - limit = { - has_trait = devoted - } - NOT = { - has_trait = devoted - } - } - trigger_if = { - limit = { - has_trait = bastard - } - NOT = { - has_trait = bastard - } - } - } - - is_valid_showing_failures_only = { - is_available_adult = yes - is_landed = yes - } - - effect = { - found_cadet_house_decision_effect = { - CHARACTER = root - PRESTIGE = major_prestige_gain - } - } - - ai_potential = { - always = yes - } - - ai_will_do = { - base = 30 - - modifier = { - add = 70 - exists = primary_title - primary_title.tier > tier_county - } - - modifier = { - add = -50 - is_independent_ruler = no - any_liege_or_above = { - dynasty = root.dynasty - } - } - - modifier = { - factor = 0 - any_child = { - is_alive = yes - count < 3 - } - } - - modifier = { - factor = 0 - any_player = { - OR = { - any_child = { - OR = { - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - } - } - any_child = { - even_if_dead = yes - any_child = { - OR = { - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - } - } - } - any_child = { - even_if_dead = yes - any_child = { - even_if_dead = yes - any_child = { - OR = { - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - } - } - } - } - } - } - } - } -} diff --git a/common/decisions/00_fp3_decisions.txt b/common/decisions/00_fp3_decisions.txt new file mode 100644 index 0000000000..e2d7ce9913 --- /dev/null +++ b/common/decisions/00_fp3_decisions.txt @@ -0,0 +1 @@ +#Warcraft \ No newline at end of file diff --git a/common/decisions/00_guest_decisions.txt b/common/decisions/00_guest_decisions.txt deleted file mode 100644 index efa3aa3eac..0000000000 --- a/common/decisions/00_guest_decisions.txt +++ /dev/null @@ -1,163 +0,0 @@ -invite_knights_decision = { - picture = "gfx/interface/illustrations/decisions/decision_invite_knights.dds" - - ai_check_interval = 0 - - cooldown = { days = 3650 } - - desc = invite_knights_decision_desc - - effect = { - #A flag to increase weights for knights in regular guest invites - add_character_flag = { - flag = invite_knights_decision_active - days = 1095 - } - #A counter for the free "extra knights", will be reduced by 1 for every extra knight and extra knights stops when it reaches 0 - set_variable = { - name = number_of_invite_knights_countdown - value = 3 #If this number changes make sure the tooltips change - days = 1000 - } - trigger_event = { - id = minor_decisions.0001 - days = { 20 40 } - } - - #Effect tooltip - if = { - limit = { culture = { has_cultural_parameter = martial_custom_male_only_combatant } } - custom_tooltip = invite_knights_decision.men.tt - } - else_if = { - limit = { culture = { has_cultural_parameter = martial_custom_female_only_combatant } } - custom_tooltip = invite_knights_decision.women.tt - } - else = { - custom_tooltip = invite_knights_decision.warriors.tt - } - } - - cost = { - prestige = { - value = medium_prestige_value - # Dynasty Legacies - if = { - limit = { - dynasty ?= { has_dynasty_perk = ep2_activities_legacy_5 } - involved_activity ?= { has_activity_type = activity_tournament } - } - multiply = 0 - } - } - } - - ai_potential = { - always = no - } - - ai_will_do = { - base = 0 - } -} - - -invite_claimants_decision = { - picture = "gfx/interface/illustrations/decisions/decision_realm.dds" - ai_check_interval = 0 - - desc = invite_claimants_decision_desc - - cooldown = { days = 3650 } - - is_shown = { - is_landed = yes - primary_title.tier > tier_county - } - - effect = { - #A flag to increase weights for claimants in regular guest invites - add_character_flag = { - flag = invite_claimants_decision_active - days = 1825 - } - #A counter for the free "extra claimants", will be reduced by 1 for every extra claimant and extra claimants stops when it reaches 0 - set_variable = { - name = number_of_invite_claimants_countdown - value = 3 #If this number changes make sure the tooltips change - days = 1825 - } - trigger_event = { - id = minor_decisions.0002 - days = { 20 40 } - } - - #Effect tooltip - custom_tooltip = invite_claimants_decision.tt - } - - cost = { prestige = invite_claimants_decision_prestige_value } - - ai_potential = { - always = no - } - - ai_will_do = { - base = 0 - } -} - -scrape_the_barrel_decision = { - picture = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" - ai_check_interval = 0 - - sort_order = 80 - - desc = scrape_the_barrel_decision_desc - - cooldown = { years = 2 } - - is_shown = { - is_landed = yes - has_royal_court = yes - court_grandeur_current_level <= 4 - } - - effect = { - trigger_event = minor_decisions.0003 - - #Effect tooltip - custom_tooltip = scrape_the_barrel_decision.tt - } - - cost = { prestige = 150 } - - ai_potential = { - OR = { - has_trait = humble - has_trait = ambitious - has_trait = deviant - has_trait = intellect_bad - } - } - - ai_will_do = { - base = 10 - modifier = { - add = 10 - has_trait = humble - } - modifier = { - add = 10 - has_trait = ambitious - } - modifier = { - add = 10 - has_trait = deviant - } - modifier = { - add = 10 - has_trait = intellect_bad - } - } -} \ No newline at end of file diff --git a/common/decisions/00_holy_order_decisions.txt b/common/decisions/00_holy_order_decisions.txt index 8257a2b40e..c33e852eea 100644 --- a/common/decisions/00_holy_order_decisions.txt +++ b/common/decisions/00_holy_order_decisions.txt @@ -41,13 +41,9 @@ } is_valid = { - # Warcraft - trigger_if = { - limit = { NOT = { has_character_flag = holy_order_debug } } - custom_description = { - text = "is_king_or_emperor" - highest_held_title_tier >= tier_kingdom - } + custom_description = { + text = "is_king_or_emperor" + highest_held_title_tier >= tier_kingdom } custom_description = { @@ -60,9 +56,6 @@ } trigger_if = { limit = { - # Warcraft - NOT = { has_character_flag = holy_order_debug } - exists = faith.religious_head NOT = { root = root.faith.religious_head } } @@ -93,21 +86,9 @@ cost = { gold = { value = holy_order_gold_cost - - # Warcraft - if = { - limit = { has_character_flag = holy_order_debug } - value = 0 - } } piety = { value = holy_order_piety_cost - - # Warcraft - if = { - limit = { has_character_flag = holy_order_debug } - value = 0 - } } } @@ -236,11 +217,12 @@ } } } + } } borrow_from_holy_order_decision = { #by Linnéa Thimrén - picture = "gfx/interface/illustrations/decisions/decision_realm.dds" + picture = "gfx/interface/illustrations/decisions/decision_spend_money.dds" desc = borrow_from_holy_order_decision_desc selection_tooltip = borrow_from_holy_order_decision_tooltip diff --git a/common/decisions/00_lifestyle_decisions.txt b/common/decisions/00_lifestyle_decisions.txt index 610e21205a..53ea7f6b57 100644 --- a/common/decisions/00_lifestyle_decisions.txt +++ b/common/decisions/00_lifestyle_decisions.txt @@ -109,7 +109,7 @@ abandon_celibacy_decision = { # by Petter Vilberg # Unlocked by: At Any Cost sale_of_titles_decision = { - picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + picture = "gfx/interface/illustrations/decisions/decision_spend_money.dds" desc = sale_of_titles_decision_desc @@ -186,7 +186,7 @@ sale_of_titles_decision = { # by Petter Vilberg # Unlocked by: It Is MY Domain extort_subjects_decision = { - picture = "gfx/interface/illustrations/decisions/decision_realm.dds" + picture = "gfx/interface/illustrations/decisions/decision_spend_money.dds" desc = extort_subjects_decision_desc @@ -195,7 +195,11 @@ extort_subjects_decision = { cooldown = { days = @extort_subjects_cooldown_time } is_shown = { - has_perk = it_is_my_domain_perk + OR = { + has_perk = it_is_my_domain_perk + has_character_modifier = fp3_justification_for_taxation_modifier + has_character_modifier = fp3_excuses_for_extortion_modifier + } } is_valid_showing_failures_only = { @@ -210,7 +214,11 @@ extort_subjects_decision = { } is_valid = { - has_perk = it_is_my_domain_perk + OR = { + has_perk = it_is_my_domain_perk + has_character_modifier = fp3_justification_for_taxation_modifier + has_character_modifier = fp3_excuses_for_extortion_modifier + } } effect = { diff --git a/common/decisions/00_unity_decisions.txt b/common/decisions/00_unity_decisions.txt new file mode 100644 index 0000000000..8917fa34e8 --- /dev/null +++ b/common/decisions/00_unity_decisions.txt @@ -0,0 +1,1245 @@ +######################### +#### UNITY DECISIONS #### +######################### + +# House Head decision - These are only available to the House Head +unity_reinforce_army_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/antagonistic.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_reinforce_army_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = antagonistic + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + has_house_unity_stage = antagonistic + NOT = { has_house_unity_modifier = unity_antagonistic_maa_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = unity_antagonistic_maa_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_warlike_personality = yes + } + + ai_will_do = { + base = 25 + } +} + +unity_establish_network_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/competitive.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_establish_network_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = competitive + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + has_house_unity_stage = competitive + NOT = { has_house_unity_modifier = unity_competitive_spies_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = unity_competitive_spies_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_cautious_personality = yes + } + + ai_will_do = { + base = 25 + } +} + +unity_improve_taxation_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/impassive.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_improve_taxation_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = impassive + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + has_house_unity_stage = impassive + NOT = { has_house_unity_modifier = unity_impassive_tax_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = unity_impassive_tax_modifier + years = 10 + } + } + } + + cost = { + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_economical_boom_personality = yes + } + + ai_will_do = { + base = 25 + } +} + +unity_send_bailiffs_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/friendly.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_send_bailiffs_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = friendly + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + has_house_unity_stage = friendly + NOT = { has_house_unity_modifier = unity_friendly_bailiff_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = unity_friendly_bailiff_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + OR = { + ai_has_warlike_personality = yes + ai_has_economical_boom_personality = yes + } + } + + ai_will_do = { + base = 25 + } +} + +unity_placate_vassals_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/harmonious.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_placate_vassals_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = harmonious + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + has_house_unity_stage = harmonious + NOT = { has_house_unity_modifier = unity_harmonious_placation_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = unity_harmonious_placation_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_warlike_personality = no + } + + ai_will_do = { + base = 20 + } +} + +unity_organize_house_for_war_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_organize_house_for_war_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid_showing_failures_only = { + house = { + NOT = { has_house_modifier = unity_house_focused_on_economy_modifier } # Cannot promote war while the house is focused on economy already + OR = { + has_house_unity_stage = antagonistic + has_house_unity_stage = competitive + } + } + is_house_head = yes + } + + is_valid = { + house = { + OR = { + has_house_unity_stage = antagonistic + has_house_unity_stage = competitive + } + } + is_house_head = yes + } + + effect = { + house = { + add_house_modifier = { + modifier = unity_house_organized_for_war_modifier + years = 20 + } + } + } + + cost = { + piety = { + value = unity_minor_decision_piety_cost + } + } + + ai_potential = { + ai_has_warlike_personality = yes + } + + ai_will_do = { + base = 20 + } +} + +unity_encourage_house_economy_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_encourage_house_economy_decision_desc + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid_showing_failures_only = { + house = { + NOT = { has_house_modifier = unity_house_organized_for_war_modifier } # Cannot promote economy while the house is focused on war already + OR = { + has_house_unity_stage = friendly + has_house_unity_stage = harmonious + } + } + is_house_head = yes + } + + is_valid = { + house = { + OR = { + has_house_unity_stage = friendly + has_house_unity_stage = harmonious + } + } + is_house_head = yes + } + + effect = { + house = { + add_house_modifier = { + modifier = unity_house_focused_on_economy_modifier + years = 20 + } + } + } + + cost = { + piety = { + value = unity_minor_decision_piety_cost + } + } + + ai_potential = { + ai_has_economical_boom_personality = yes + } + + ai_will_do = { + base = 20 + } +} + +unity_steer_house_direction_decision = { + ai_check_interval = 24 + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + #is_invisible = yes + + sort_order = 1500 # We want the decision to be at the top of the list to make it real easy to find. + + cooldown = { years = 10 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid_showing_failures_only = { + is_house_head = yes + + # Option localisation + trigger_if = { + limit = { scope:steer_unity_towards_harmonious = yes } + custom_tooltip = { + text = steer_unity_towards_harmonious_tt + NOT = { house = { has_house_unity_stage = harmonious } } + } + } + trigger_if = { + limit = { scope:steer_unity_towards_antagonistic = yes } + custom_tooltip = { + text = steer_unity_towards_antagonistic_tt + NOT = { house = { has_house_unity_stage = antagonistic } } + } + } + } + + is_valid = { + is_house_head = yes + } + + widget = { + gui = "decision_view_widget_unity_steer_house_direction" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_UNITY_DIRECTION" + show_from_start = yes + + ### Increase Unity + item = { + value = steer_unity_towards_harmonious + is_valid = { + custom_tooltip = { + text = steer_unity_towards_harmonious_tt + NOT = { house = { has_house_unity_stage = harmonious } } + } + } + current_description = steer_unity_towards_harmonious_desc + localization = steer_unity_towards_harmonious_name + icon = "gfx/interface/icons/currencies/house_unity/harmonious.dds" + ai_chance = { + value = 100 + if = { + limit = { ai_wants_low_unity = yes } + multiply = 0 + } + } + } + ### Decrease Unity + item = { + value = steer_unity_towards_antagonistic + is_valid = { + custom_tooltip = { + text = steer_unity_towards_antagonistic_tt + NOT = { house = { has_house_unity_stage = antagonistic } } + } + } + current_description = steer_unity_towards_antagonistic_desc + localization = steer_unity_towards_antagonistic_name + icon = "gfx/interface/icons/currencies/house_unity/antagonistic.dds" + ai_chance = { + value = 100 + if = { + limit = { ai_wants_high_unity = yes } + multiply = 0 + } + } + } + } + + effect = { + if = { # Increase Unity + limit = { scope:steer_unity_towards_harmonious = yes } + + house = { + add_unity_value = { + value = massive_unity_gain + character = root + desc = clan_unity_steer_direction_change.desc + } + } + custom_tooltip = steer_unity_towards_harmonious_passive_gain_tt + add_character_flag = { + flag = steer_unity_towards_harmonious_passive_gain + years = 10 + } + + # Let's send notifications to relevant characters + hidden_effect = { + # Send a toast to yourself, as a confirmation that Unity changed + send_interface_toast = { + title = steer_unity_towards_harmonious_toast + left_icon = root + show_as_tooltip = { + house = { + add_unity_value = { + value = massive_unity_gain + character = root + desc = clan_unity_steer_direction_change.desc + } + } + } + } + # Send a notification (we don't want a toast here) to any other player within the house + every_player = { + limit = { + exists = house + house = root.house + NOT = { this = root } + } + send_interface_message = { + type = event_generic_neutral_text + title = steer_unity_notification_title + desc = steer_unity_towards_harmonious_toast + left_icon = root + show_as_tooltip = { + house = { + add_unity_value = { + value = massive_unity_gain + character = root + desc = clan_unity_steer_direction_change.desc + } + } + } + } + } + } + } + else_if = { # Decrease Unity + limit = { scope:steer_unity_towards_antagonistic = yes } + + house = { + add_unity_value = { + value = massive_unity_loss + character = root + desc = clan_unity_steer_direction_change.desc + } + } + custom_tooltip = steer_unity_towards_antagonistic_passive_loss_tt + add_character_flag = { + flag = steer_unity_towards_antagonistic_passive_loss + years = 10 + } + + # Let's send notifications to relevant characters + hidden_effect = { + # Send a toast to yourself, as a confirmation that Unity changed + send_interface_toast = { + title = steer_unity_towards_antagonistic_toast + left_icon = root + show_as_tooltip = { + house = { + add_unity_value = { + value = massive_unity_loss + character = root + desc = clan_unity_steer_direction_change.desc + } + } + } + } + # Send a notification (we don't want a toast here) to any other player within the house + every_player = { + limit = { + exists = house + house = root.house + NOT = { this = root } + } + send_interface_message = { + type = event_generic_neutral_text + title = steer_unity_notification_title + desc = steer_unity_towards_antagonistic_toast + left_icon = root + show_as_tooltip = { + house = { + add_unity_value = { + value = massive_unity_loss + character = root + desc = clan_unity_steer_direction_change.desc + } + } + } + } + } + } + } + } + + cost = { + piety = { + value = unity_major_decision_piety_cost + } + } + + ai_potential = { + highest_held_title_tier >= tier_county # Barons doesn't have to use the decision + is_landed = yes + exists = house + } + + ai_will_do = { + base = 20 + + # If unity is at max or min levels, increase the AI weight if they want to go in the opposite direction + modifier = { + OR = { + ai_wants_high_unity = yes + ai_wants_low_unity = yes + } + add = 40 + } + + # If unity is at max or min levels, increase the AI weight if they want to go in the opposite direction + modifier = { + OR = { + AND = { + ai_wants_high_unity = yes + OR = { + house = { has_house_unity_stage = antagonistic } + house = { has_house_unity_stage = competitive } + } + } + AND = { + ai_wants_low_unity = yes + OR = { + house = { has_house_unity_stage = harmonious } + house = { has_house_unity_stage = friendly } + } + } + } + add = 40 + } + } +} + +# General Unity decisions - These are available to all members of a House +unity_search_for_administrators_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds" + + sort_order = 60 + + desc = unity_search_for_administrators_decision_desc + + cooldown = { years = 10 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + } + + effect = { + custom_tooltip = search_administors_decision.tt + hidden_effect = { + random_list = { + 40 = { + save_temporary_scope_value_as = { + name = number_of_new_administrators + value = 1 + } + } + 40 = { + save_temporary_scope_value_as = { + name = number_of_new_administrators + value = 2 + } + } + 20 = { + save_temporary_scope_value_as = { + name = number_of_new_administrators + value = 3 + } + } + } + while = { + count = scope:number_of_new_administrators + create_character = { + template = administrator_character + employer = root + faith = root.faith + culture = root.culture + gender_female_chance = { + if = { + limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } } + add = 0 + } + else_if = { + limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } } + add = 100 + } + else = { + add = 50 + } + } + save_scope_as = new_administrator + } + send_interface_message = { + title = unity_search_for_administrators_decision.msg.t + desc = unity_search_for_administrators_decision.msg.desc + type = event_stewardship_good_with_text + left_icon = scope:new_administrator + } + } + } + } + + cost = { # We give the AI some handicap here by making the decision free for them, but they only ever use it if they don't have any tax collectors at all + gold = { + value = 0 + if = { + limit = { is_ai = no } + add = minor_gold_value + } + } + piety = { + value = 0 + if = { + limit = { is_ai = no } + add = medium_piety_value + } + } + } + + ai_potential = { + any_tax_collector = { count <= 0 } + } + + ai_will_do = { + base = 100 + } +} + +# FP3 Unity Decisions +unity_improve_logistics_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_improve_logistics_decision_desc + + cooldown = { years = 20 } + + is_shown = { + has_fp3_dlc_trigger = yes + culture = { like_heritage_iranian_trigger = yes } + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + # We show the culture requirement here to tell the player why they have the decision available + culture = { like_heritage_iranian_trigger = yes } + house = { + OR = { + has_house_unity_stage = antagonistic + has_house_unity_stage = competitive + } + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + OR = { + has_house_unity_stage = antagonistic + has_house_unity_stage = competitive + } + NOT = { has_house_unity_modifier = fp3_unity_improved_logistics_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = fp3_unity_improved_logistics_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_warlike_personality = yes + } + + ai_will_do = { + base = 10 + } +} + +unity_promote_development_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/decision_golden_age.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_promote_development_decision_desc + + cooldown = { years = 20 } + + is_shown = { + has_fp3_dlc_trigger = yes + culture = { like_heritage_iranian_trigger = yes } + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + # We show the culture requirement here to tell the player why they have the decision available + culture = { like_heritage_iranian_trigger = yes } + house = { + OR = { + has_house_unity_stage = friendly + has_house_unity_stage = harmonious + } + } + is_house_head = yes + } + + is_valid_showing_failures_only = { + house = { + OR = { + has_house_unity_stage = friendly + has_house_unity_stage = harmonious + } + NOT = { has_house_unity_modifier = fp3_unity_promoted_development_modifier } + } + is_house_head = yes + } + + effect = { + house = { + add_house_unity_modifier = { + modifier = fp3_unity_promoted_development_modifier + years = 10 + } + } + } + + cost = { + gold = { + value = medium_gold_value + } + piety = { + value = unity_major_decision_piety_cost + add = { + value = 20 + multiply = { + value = number_of_landed_house_members_value + subtract = 1 # We don't want to add any extra for the first ruler + } + } + } + } + + ai_potential = { + exists = house + house = { # Don't bother unless you have a few landed house members who would benefit + any_house_unity_member = { + count >= 3 + } + } + ai_has_warlike_personality = no + } + + ai_will_do = { + base = 10 + } +} + +unity_consult_house_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/decision_realm.dds" + is_invisible = yes + + sort_order = 60 + + desc = unity_consult_house_decision_desc + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + } + + is_valid = { + house = { + has_house_unity_stage = impassive + } + } + + is_valid_showing_failures_only = { + custom_tooltip = { + text = unity_consult_house_decision.tt_cooldown + NOT = { has_character_flag = fp3_consulted_house } + } + } + + effect = { + custom_tooltip = unity_consult_house_decision.tt_house_council_bonus + #custom_tooltip = unity_consult_house_decision.tt_no_unity_change + custom_tooltip = unity_consult_house_decision.tt_lifetime + add_character_flag = { + flag = fp3_consulted_house + } + } + + cost = { + piety = { value = unity_minor_decision_piety_cost } + } + + ai_potential = { + exists = house + # AI has more than 1 house member that is their vassal/courtier (can serve as a councillor) + house = { + any_house_member = { + count > 1 + OR = { + is_vassal_of = root + is_courtier_of = root + } + } + } + } + + ai_will_do = { + base = 20 + # AI has more than 1 house member actively serving as a councillor + modifier = { + any_councillor = { + count > 1 + exists = house + house = root.house + } + add = 100 + } + # Benefits AI to stack family buffs + modifier = { + culture = { has_cultural_parameter = close_family_better_councillors } + add = 50 + } + } +} + +#unity_establish_futuwaa_lodges_decision + +unity_educate_youth_in_madrasas_decision = { + ai_check_interval = 36 + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" + is_invisible = yes + sort_order = 60 + + title = { + desc = unity_educate_youth_in_madrasas_decision.t_intro + first_valid = { + # Call them madrasas if our capital is advanced enough + triggered_desc = { + trigger = { + capital_county ?= { + development_level >= bad_development_level + } + } + desc = unity_educate_youth_in_madrasas_decision.t_madrasas + } + # Otherwise just say that the youth are being educated in houses of worship + desc = unity_educate_youth_in_madrasas_decision.t_houses_of_worship + } + } + + desc = { + desc = unity_educate_youth_in_madrasas_decision_desc_intro + first_valid = { + # "People" + triggered_desc = { + trigger = { has_realm_law = equal_law } + desc = people + } + # "Women" + triggered_desc = { + trigger = { + OR = { + has_realm_law = female_only_law + has_realm_law = female_preference_law + } + } + desc = women + } + # "Men" + triggered_desc = { + trigger = { + OR = { + has_realm_law = male_only_law + has_realm_law = male_preference_law + } + } + desc = loc_men + } + } + desc = unity_educate_youth_in_madrasas_decision_desc_outro + } + + cooldown = { years = 20 } + + is_shown = { + government_has_flag = government_is_clan + is_landed = yes + exists = house + exists = capital_province # Sanity check + culture = { has_cultural_tradition = tradition_fp3_beacon_of_learning } # TODO_CD_EREN: Allow this for people w/o the tradition, but nerf it. See the futuwaa decision + } + + is_valid = { + is_at_war = no + house = { + OR = { + has_house_unity_stage = harmonious + has_house_unity_stage = friendly + } + } + } + + effect = { + save_scope_as = sponsor # For loc + # TT for who is educated + # Yup this nonsense is necessary, custom_tooltip does not support triggered_desc + if = { + limit = { has_realm_law = equal_law } + save_scope_as = realm_law_people # This is relevant for a TT later on + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_people } + } + else_if = { + limit = { + OR = { + has_realm_law = female_only_law + has_realm_law = female_preference_law + } + } + save_scope_as = realm_law_women + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_women } + } + else_if = { + limit = { + OR = { + has_realm_law = male_only_law + has_realm_law = male_preference_law + } + } + save_scope_as = realm_law_men + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_men } + } + + if = { + limit = { exists = scope:realm_law_people } + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_num_people } + } + else_if = { + limit = { exists = scope:realm_law_women } + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_num_women } + } + else_if = { + limit = { exists = scope:realm_law_men } + custom_tooltip = { text = unity_educate_youth_in_madrasas_decision.tt_num_men } + } + + add_character_modifier = { + modifier = fp3_established_madrasas_modifier + years = 20 + } + + add_character_flag = { + flag = fp3_educated_youth_in_madrasas + years = 20 + } + + create_story = story_cycle_madrasas + } + + cost = { + piety = { value = unity_minor_decision_piety_cost } + } + + ai_potential = { + exists = house + # AI has at least one valid madrasa pupil + any_courtier = { + # Young + fp3_is_valid_madrasa_pupil = { SPONSOR = root } + } + } + + ai_will_do = { + base = 20 + # Chance increases if root has lots of valid members + modifier = { + add = 40 + any_courtier = { + count >= 2 + fp3_is_valid_madrasa_pupil = { SPONSOR = root } + } + } + modifier = { + add = 40 + any_courtier = { + count >= 4 + fp3_is_valid_madrasa_pupil = { SPONSOR = root } + } + } + } +} diff --git a/common/decisions/04_ep2_decisions.txt b/common/decisions/04_ep2_decisions.txt deleted file mode 100644 index 6bd7a43b1c..0000000000 --- a/common/decisions/04_ep2_decisions.txt +++ /dev/null @@ -1,332 +0,0 @@ -###DECISIONS LIST### - -#decision_solve_the_journals - -decision_solve_the_journals = { - picture = "gfx/interface/illustrations/decisions/decision_realm.dds" - major = yes - ai_check_interval = 120 - desc = decision_solve_the_journals_desc - cooldown = { years = 1 } - - is_shown = { - any_owned_story = { - story_type = story_cycle_mysterious_journal - NOT = { exists = var:journal_complete_solved } - } - } - - is_valid_showing_failures_only = { - is_available_adult = yes - } - - is_valid = { - custom_tooltip = { - text = you_have_journal_1_tt - any_owned_story = { - story_type = story_cycle_mysterious_journal - exists = var:mysterious_journal.var:secret_journal - } - } - custom_tooltip = { - text = you_have_journal_2_tt - any_owned_story = { - story_type = story_cycle_mysterious_journal - exists = var:mysterious_journal.var:secret_puzzle - } - } - custom_tooltip = { - text = you_have_journal_3_tt - any_owned_story = { - story_type = story_cycle_mysterious_journal - exists = var:mysterious_journal.var:secret_cipher - } - } - } - - effect = { - hidden_effect = { - random_owned_story = { - limit = { story_type = story_cycle_mysterious_journal } - var:mysterious_journal = { save_scope_as = mysterious_journal } - } - } - duel = { - skill = learning - value = high_skill_rating - 50 = { # You solve the puzzle! - compare_modifier = { - value = scope:duel_value - multiplier = 0.5 - } - custom_tooltip = { - text = open_the_journal_tt - trigger_event = tour_general.5010 - } - } - 50 = { # You fail - compare_modifier = { - value = scope:duel_value - multiplier = -0.5 - } - show_as_tooltip = { - add_stress = major_stress_gain - } - hidden_effect = { - trigger_event = tour_general.5000 - } - } - } - } - - - ai_potential = { - always = yes - } - - ai_will_do = { - base = 100 - } -} - - -call_for_acclaimed_knight_candidates_decision = { - picture = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" - ai_check_interval = 180 - desc = call_for_acclaimed_knight_candidates_decision_desc - cooldown = { years = 5 } - - is_shown = { - has_dlc_feature = accolades - any_accolade = { - is_accolade_active = no - } - } - - is_valid = { - custom_tooltip = { - text = you_have_empty_accolades - any_accolade = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - } - exists = root.capital_province - highest_held_title_tier >= tier_county - NOT = { government_has_flag = government_is_theocracy } - } - - } - - effect = { - custom_tooltip = call_for_acclaimed_knight_candidates_decision.tt - save_scope_as = accolade_owner - # save all the accolades that are missing knights - random_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - } - save_scope_as = empty_accolade_1 - } - random_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - NOT = { this = scope:empty_accolade_1 } - } - save_scope_as = empty_accolade_2 - } - random_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - NOR = { - this = scope:empty_accolade_1 - this = scope:empty_accolade_2 - } - } - save_scope_as = empty_accolade_3 - } - random_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - NOR = { - this = scope:empty_accolade_1 - this = scope:empty_accolade_2 - this = scope:empty_accolade_3 - } - } - save_scope_as = empty_accolade_4 - } - random_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - NOR = { - this = scope:empty_accolade_1 - this = scope:empty_accolade_2 - this = scope:empty_accolade_3 - this = scope:empty_accolade_4 - } - } - save_scope_as = empty_accolade_5 - } - #accolade 1 event - trigger_event = { - id = accolade.0008 - days = { 10 20 } - } - if = { - limit = { - exists = scope:empty_accolade_2 - } - #accolade 2 event - trigger_event = { - id = accolade.0009 - days = { 20 30 } - } - } - if = { - limit = { - exists = scope:empty_accolade_3 - } - #accolade 3 event - trigger_event = { - id = accolade.0010 - days = { 30 40 } - } - } - if = { - limit = { - exists = scope:empty_accolade_4 - } - #accolade 4 event - trigger_event = { - id = accolade.0011 - days = { 40 50 } - } - } - if = { - limit = { - exists = scope:empty_accolade_5 - } - #accolade 5 event - trigger_event = { - id = accolade.0012 - days = { 50 60 } - } - } - } - - cost = { - prestige = { - value = 100 - if = { - limit = { - highest_held_title_tier >= tier_empire - } - add = 100 - } - else_if = { - limit = { - highest_held_title_tier = tier_kingdom - } - add = 50 - } - else_if = { - limit = { - highest_held_title_tier = tier_duchy - } - add = 25 - } - if = { - limit = { - any_accolade = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - } - } - multiply = num_accolades_multiplier - } - } - } - - ai_potential = { - has_dlc_feature = accolades - } - - ai_will_do = { - base = 200 - modifier = { - any_accolade = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - accolade_rank > 1 - } - add = 200 - } - modifier = { - any_accolade = { - is_accolade_active = no - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - accolade_rank > 3 - } - add = 500 - } - } -} diff --git a/common/decisions/10_religious_decisions.txt b/common/decisions/10_religious_decisions.txt index ec037e8746..bf87cb6b5a 100644 --- a/common/decisions/10_religious_decisions.txt +++ b/common/decisions/10_religious_decisions.txt @@ -46,7 +46,7 @@ } renounce_vow_of_poverty_decision = { - picture = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + picture = "gfx/interface/illustrations/decisions/decision_spend_money.dds" desc = renounce_vow_of_poverty_decision_desc selection_tooltip = renounce_vow_of_poverty_decision_tooltip @@ -218,7 +218,10 @@ meditate_in_seclusion_decision = { is_shown = { OR = { - faith = { has_doctrine_parameter = meditation_mechanics_active } + faith = { + has_doctrine_parameter = meditation_mechanics_active + } + has_character_modifier = fp3_sufi_initiate_modifier #FP3 addition has_trait = calm } holds_landed_title = yes @@ -462,22 +465,20 @@ divine_the_stars_decision = { revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. ai_check_interval = 60 - picture = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" desc = revoke_false_conversion_decision.desc selection_tooltip = revoke_false_conversion_decision.tt is_shown = { - has_variable = false_convert - NOR = { - this = faith.religious_head - var:false_convert = faith + any_secret = { + secret_type = secret_crypto_religionist } + NOT = { this = faith.religious_head } } is_valid = { is_adult = yes - NOT = { has_trait = zealous } } is_valid_showing_failures_only = { @@ -491,50 +492,63 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. } cost = { - piety = major_piety_value + piety = { + value = major_piety_value + # Free if secret faith has sanctioned false conversions tenet + if = { + limit = { secret_faith ?= { has_doctrine_parameter = sanctioned_false_conversion } } + multiply = 0 + } + } } cooldown = { years = 20 } effect = { + save_scope_value_as = { + name = decision_piety_cost + value = { + add = major_piety_value + if = { # Free if secret faith has sanctioned false conversions tenet + limit = { + secret_faith ?= { + has_doctrine_parameter = sanctioned_false_conversion + } + } + multiply = 0 + } + } + } trigger_event = false_conversion.0020 custom_tooltip = revoke_false_conversion_decision.desc.tt custom_tooltip = revoke_false_conversion_decision.desc.tt_own_faith_counties } ai_potential = { - has_variable = false_convert - save_temporary_scope_as = current_character - liege.faith = { - faith_hostility_level_comparison = { scope:current_character.var:false_convert <= root.faith } - } + exists = secret_faith + any_secret = { secret_type = secret_crypto_religionist } + liege.faith = { faith_hostility_level_comparison = { root.secret_faith <= root.faith } } } ai_will_do = { base = 25 - modifier = { #Having a tolerant liege helps. + modifier = { # Having a tolerant liege helps. add = 25 liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } } - modifier = { #If no one is fussed, and your old faith waxes while your current one wanes, then that seems like a good reason to jump ship. + modifier = { # If no one is fussed, and your old faith waxes while your current one wanes, then that seems like a good reason to jump ship. add = 35 - NOT = { - liege.faith = { has_doctrine = doctrine_pluralism_fundamentalist } - } - var:false_convert = { - fervor >= medium_fervor_value - } - faith = { - fervor <= medium_fervor_value - } + NOT = { liege.faith = { has_doctrine = doctrine_pluralism_fundamentalist } } + secret_faith ?= { fervor >= medium_fervor_value } + faith = { fervor <= medium_fervor_value } } } } -encourage_confession_of_false_conversions_decision = { #Ask that crypto-religionists in your realm start practicing in the open. +encourage_confession_of_false_conversions_decision = { # Ask that crypto-religionists in your realm start practicing in the open. ai_check_interval = 120 - picture = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" desc = encourage_confession_of_false_conversions_decision.desc selection_tooltip = encourage_confession_of_false_conversions_decision.tt @@ -543,15 +557,15 @@ encourage_confession_of_false_conversions_decision = { #Ask that crypto-religion is_shown = { OR = { - AND = { #Pluralists will encourage anyone to convert. + AND = { # Pluralists will encourage anyone to convert. OR = { any_vassal = { #... Be they person... - has_variable = false_convert - save_temporary_scope_as = current_character - root.faith = { - faith_hostility_level_comparison = { - scope:current_character.var:false_convert <= scope:current_character.faith - } + any_secret = { + secret_type = secret_crypto_religionist + is_known_by = root + } + liege.faith = { + faith_hostility_level_comparison = { prev.secret_faith <= root.faith } } } any_sub_realm_county = { #... Or county. @@ -566,13 +580,16 @@ encourage_confession_of_false_conversions_decision = { #Ask that crypto-religion } faith = { has_doctrine = doctrine_pluralism_pluralistic } } - any_vassal = { #Otherwise, you can have a vassal who practices your faith in secret. - has_variable = false_convert - var:false_convert = root.faith + any_vassal = { #Otherwise, you can have a vassal who practices your faith in secret. + any_secret = { + secret_type = secret_crypto_religionist + is_known_by = root + } + secret_faith = root.secret_faith } any_sub_realm_county = { #... Or a county! has_variable = false_convert - var:false_convert = root.faith + var:false_convert = root.secret_faith } } } @@ -617,7 +634,7 @@ encourage_confession_of_false_conversions_decision = { #Ask that crypto-religion add = 5 liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } } - modifier = { #A tolerant top-lliege, including yourself, *also* makes this more likely. + modifier = { #A tolerant top-liege, including yourself, *also* makes this more likely. add = 5 top_liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } } @@ -640,126 +657,70 @@ encourage_confession_of_false_conversions_decision = { #Ask that crypto-religion } } -# Deprecated -#go_on_pilgrimage_decision = { -# picture = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" -# ai_check_interval = 60 -# -# sort_order = 64 -# -# desc = go_on_pilgrimage_decision_desc -# selection_tooltip = go_on_pilgrimage_decision_tooltip -# -# cooldown = { years = pilgrimage_cooldown_year_amount } -# -# is_shown = { -# is_landed = yes -# believes_in_pilgrimage_trigger = yes -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = pilgrimage_effect_1 -# custom_tooltip = pilgrimage_effect_2 -# if = { #What is the minimum you will have to pay? -# limit = { -# faith = { -# any_holy_site = { -# squared_distance = { -# target = root.capital_province -# value <= short_pilgrimage_max_length -# } -# } -# } -# } -# custom_tooltip = pilgrimage_effect_3 -# } -# else_if = { -# limit = { -# faith = { -# any_holy_site = { -# squared_distance = { -# target = root.capital_province -# value <= medium_pilgrimage_max_length -# } -# } -# } -# } -# custom_tooltip = pilgrimage_effect_4 -# } -# else_if = { -# limit = { -# faith = { -# any_holy_site = { -# squared_distance = { -# target = root.capital_province -# value <= long_pilgrimage_max_length -# } -# } -# } -# } -# custom_tooltip = pilgrimage_effect_5 -# } -# else = { -# custom_tooltip = pilgrimage_effect_6 -# } -# if = { -# limit = { has_trait = ill } -# custom_tooltip = line_break -# custom_tooltip = pilgrimage_illness_warning -# } -# if = { -# limit = { is_ai = yes } -# trigger_event = pilgrimage.0999 -# } -# else = { -# trigger_event = pilgrimage.0001 -# } -# } -# -# ai_potential = { -# is_landed = yes -# is_available_adult = yes -# short_term_gold > pilgrimage_minimum_cost -# } -# -# ai_will_do = { -# base = 20 -# modifier = { -# add = -100 -# NOT = { short_term_gold >= pilgrimage_medium_extra_cost } -# } -# modifier = { -# add = 30 -# short_term_gold >= pilgrimage_long_extra_cost -# } -# modifier = { -# add = 20 -# piety_level <= 2 -# } -# modifier = { -# add = 20 -# has_trait = zealous -# } -# modifier = { -# add = 20 -# has_trait = zealous -# NOT = { has_trait = pilgrim } -# } -# modifier = { -# add = -30 -# has_trait = cynical -# } -# modifier = { -# add = -30 -# has_trait = pilgrim -# } -# } -#} +abandon_crypto_faith_decision = { #Abandon your secret faith. + ai_check_interval = 60 + picture = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" + + desc = abandon_crypto_faith_decision.desc + selection_tooltip = abandon_crypto_faith_decision.tt + + is_shown = { + any_secret = { secret_type = secret_crypto_religionist } + } + + is_valid = { + is_adult = yes + NOT = { has_trait = zealous } + } + + + cost = { + #It shouldn't _cost_ piety to abandon your crypto faith in favor of your actual faith + } + + cooldown = { years = 20 } + + effect = { + custom_tooltip = abandon_crypto_faith_decision.tt + random_secret = { + limit = { secret_type = secret_crypto_religionist } + remove_secret = yes + } + #Something to remember it by + create_character_memory = { + type = abandoned_crypto_faith_memory + } + scope:new_memory = { + set_variable = { + name = old_faith_to_reminisce + value = prev.secret_faith #The one taking the decision + } + } + if = { + limit = { exists = var:old_faith_to_reminisce } + #To prevent 'unused except in loc' errors :catto: + } + hidden_effect = { remove_character_secret_faith = yes } + } + + ai_potential = { + exists = secret_faith + any_secret = { + secret_type = secret_crypto_religionist + } + liege.faith = { + faith_hostility_level_comparison = { root.secret_faith <= root.faith } + } + } + + ai_will_do = { + base = 0 + ai_value_modifier = { + ai_zeal = -0.5 + } + } +} + ai_create_head_of_faith_decision = { picture = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" diff --git a/common/decisions/30_activity_decisions.txt b/common/decisions/30_activity_decisions.txt index f0b749f05d..b31d685e66 100644 --- a/common/decisions/30_activity_decisions.txt +++ b/common/decisions/30_activity_decisions.txt @@ -1,556 +1,4 @@ -#host_feast_decision = { -# picture = "gfx/interface/illustrations/decisions/decision_misc.dds" -# ai_check_interval = 60 -# -# sort_order = 69 -# -# title = { -# first_valid = { -# triggered_desc = { -# trigger = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 5 } -# } -# desc = host_exotic_feast_decision -# } -# triggered_desc = { -# trigger = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 4 } -# } -# desc = host_lavish_feast_decision -# } -# triggered_desc = { -# trigger = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 3 } -# } -# desc = host_grand_feast_decision -# } -# triggered_desc = { -# trigger = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 2 } -# } -# desc = host_modest_feast_decision -# } -# desc = host_feast_decision -# } -# } -# -# cost = { -# gold = feast_activity_cost -# } -# -# -# cooldown = { days = standard_feast_cooldown_time } -# -# desc = host_feast_decision_opening_desc -# selection_tooltip = host_feast_decision_tooltip -# -# is_shown = { -# # Warcraft -# feast_possible_trigger = yes -# -# is_landed = yes -# highest_held_title_tier > tier_barony -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# capital_province = { -# spawn_activity = { -# type = activity_feast -# owner = root -# } -# } -# custom_tooltip = host_feast_decision_desc_vassals -# if = { -# limit = { -# is_independent_ruler = no -# } -# custom_tooltip = host_feast_decision_desc_liege_opinion -# } -# if = { -# limit = { -# employs_court_position = court_musician_court_position -# any_court_position_holder = { -# type = court_musician_court_position -# is_physically_able = yes -# } -# } -# custom_tooltip = host_feast_decision_desc_court_musician_opinion -# } -# -# #Piety gain -# if = { -# limit = { -# faith = { -# OR = { -# has_doctrine_parameter = piety_from_feasts_active -# AND = { -# has_doctrine_parameter = summer_festivals_active -# # Only during 'summer' (May 1st through July 31st). -# current_month >= 5 -# current_month <= 7 -# } -# } -# } -# } -# add_piety = { -# value = 0 -# -# faith = { -# if = { -# limit = { -# has_doctrine_parameter = summer_festivals_active -# # Only during 'summer' (May 1st through July 31st). -# current_month >= 5 -# current_month <= 7 -# } -# add = major_piety_value -# } -# if = { -# limit = { -# has_doctrine = tenet_ritual_celebrations -# } -# add = medium_piety_value -# } -# if = { -# limit = { -# has_doctrine = tenet_hedonistic -# } -# add = medium_piety_value -# } -# } -# if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 5 } -# } -# multiply = 2.5 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 4 } -# } -# multiply = 2 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 3 } -# } -# multiply = 1.5 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 2 } -# } -# multiply = 1 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value <= 1 } -# } -# multiply = 0.5 -# } -# -# min = medium_piety_value # Always give some piety, even if we don't have any of the specified tenets. -# } -# } -# -# #Prestige gain from Tradition -# if = { -# limit = { -# culture = { -# has_cultural_parameter = refined_feasts -# } -# } -# add_prestige = { -# value = medium_prestige_value -# if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 5 } -# } -# multiply = 2.5 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 4 } -# } -# multiply = 2 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 3 } -# } -# multiply = 1.5 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 2 } -# } -# multiply = 1 -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value <= 1 } -# } -# multiply = 0.5 -# } -# } -# } -# -# #Stress loss -# if = { -# limit = { -# OR = { -# has_trait = shy -# } -# } -# custom_tooltip = host_feast_decision_desc_shy -# } -# else = { -# if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 5 } -# } -# stress_impact = { -# base = exotic_feast_stress_loss_value -# gluttonous = feast_stress_loss_value -# gregarious = feast_stress_loss_value -# reveler_1 = feast_stress_loss_value -# reveler_2 = feast_stress_loss_value -# reveler_3 = feast_stress_loss_value -# drunkard = feast_stress_loss_value -# comfort_eater = feast_stress_loss_value -# generous = feast_stress_loss_value -# greedy = activity_stress_gain_impact -# } -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 4 } -# } -# stress_impact = { -# base = lavish_feast_stress_loss_value -# gluttonous = feast_stress_loss_value -# gregarious = feast_stress_loss_value -# reveler_1 = feast_stress_loss_value -# reveler_2 = feast_stress_loss_value -# reveler_3 = feast_stress_loss_value -# drunkard = feast_stress_loss_value -# comfort_eater = feast_stress_loss_value -# generous = feast_stress_loss_value -# greedy = activity_stress_gain_impact -# } -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value >= 3 } -# } -# stress_impact = { -# base = medium_feast_stress_loss_value -# gluttonous = feast_stress_loss_value -# gregarious = feast_stress_loss_value -# reveler_1 = feast_stress_loss_value -# reveler_2 = feast_stress_loss_value -# reveler_3 = feast_stress_loss_value -# drunkard = feast_stress_loss_value -# comfort_eater = feast_stress_loss_value -# generous = feast_stress_loss_value -# greedy = activity_stress_gain_impact -# } -# } -# else_if = { -# limit = { -# has_royal_court = yes -# amenity_level = { type = court_food_quality value <= 1 } -# } -# stress_impact = { -# base = meager_feast_stress_loss_value -# gluttonous = feast_stress_loss_value -# gregarious = feast_stress_loss_value -# reveler_1 = feast_stress_loss_value -# reveler_2 = feast_stress_loss_value -# reveler_3 = feast_stress_loss_value -# drunkard = feast_stress_loss_value -# comfort_eater = feast_stress_loss_value -# generous = feast_stress_loss_value -# greedy = activity_stress_gain_impact -# } -# } -# else = { -# stress_impact = { -# base = feast_stress_loss_value -# gluttonous = activity_stress_loss_impact -# gregarious = activity_stress_loss_impact -# reveler_1 = activity_stress_loss_impact -# reveler_2 = activity_stress_loss_impact -# reveler_3 = activity_stress_loss_impact -# drunkard = activity_stress_loss_impact -# comfort_eater = activity_stress_loss_impact -# generous = activity_stress_loss_impact -# greedy = activity_stress_gain_impact -# } -# } -# } -# if = { -# limit = { exists = var:protected_alcohol_stores } -# set_variable = { -# name = protected_alcohol_stores -# value = 0 -# } -# } -# } -# -# ai_potential = { -# short_term_gold > standard_activity_cost -# war_chest_gold >= halved_ai_war_chest_gold_maximum -# NOT = { -# has_trait = reclusive -# } -# } -# -# ai_will_do = { -# base = 35 -# -# ai_value_modifier = { -# ai_sociability = 1 -# ai_greed = -0.5 -# } -# -# modifier = { -# add = 30 # Has Greed of 20, so this is only (-10 + 30 = +20) -# has_trait = gluttonous -# } -# modifier = { -# add = 12.5 # Has Greed of 5, so this is only (-2.5 + 12.5 = +10) -# has_trait = comfort_eater -# } -# modifier = { -# add = 47.5 # Has Greed of 75, so this is only (-37.5 + 45 = +10) -# has_trait = ambitious -# } -# -# modifier = { # Too busy booming the economy -# add = -50 -# OR = { -# ai_has_economical_boom_personality = yes -# has_character_flag = ai_boom -# } -# } -# -# modifier = { # Work first, play later -# add = -35 -# exists = capital_county -# capital_county.title_province = { -# free_building_slots > 0 -# } -# } -# -# modifier = { -# add = 35 -# stress > low_stress -# } -# -# modifier = { -# add = 35 -# faith = { -# has_doctrine = tenet_ritual_celebrations -# } -# } -# -# modifier = { -# add = 35 -# faith = { -# has_doctrine = tenet_hedonistic -# } -# } -# } -#} -# -#start_hunt_decision = { -# picture = "gfx/interface/illustrations/decisions/decision_activity.dds" -# ai_check_interval = 60 -# -# sort_order = 68 -# -# cost = { -# gold = hunt_activity_cost -# } -# -# cooldown = { days = standard_hunting_cooldown_time } -# -# is_shown = { -# # Warcraft -# hunt_possible_trigger = yes -# -# is_landed = yes -# highest_held_title_tier > tier_barony -# NOT = { -# culture = { has_cultural_parameter = cannot_hunt } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# custom_tooltip = start_hunt_decision_go_on_hunt -# -# hidden_effect = { -# if = { -# limit = { -# has_character_flag = free_hunt -# } -# remove_character_flag = free_hunt -# } -# } -# -# #Stress loss -# if = { -# limit = { -# has_trait = lazy -# } -# custom_tooltip = start_hunt_decision_stress_lazy -# } -# else = { -# stress_impact = { -# base = hunt_stress_loss_value -# craven = activity_stress_gain_impact -# diligent = activity_stress_loss_impact -# athletic = activity_stress_loss_impact -# sadistic = activity_stress_loss_impact -# brave = activity_stress_loss_impact -# hunter_1 = activity_stress_loss_impact -# hunter_2 = activity_stress_loss_impact -# hunter_3 = activity_stress_loss_impact -# generous = activity_stress_loss_impact -# } -# } -# -# # Prestige tooltips -# ## Notification of potential bonus prestige via events -# custom_tooltip = start_hunt_decision_prestige -# ## Notification of extra/reduced prestige due to servants amenity -# ### Low servants: you may get less prestige if your hunt is unsuccessful, and it'll be harder to begin with. -# if = { -# limit = { -# has_royal_court = yes -# NOT = { has_government = tribal_government } -# amenity_level = { -# type = court_servants -# value <= medium_amenity_level -# } -# } -# custom_tooltip = start_hunt_decision.tt.servants_prestige.reduced -# } -# ### High servants: you may get extra prestige if your hunt is successful. -# if = { -# limit = { -# has_royal_court = yes -# NOT = { has_government = tribal_government } -# amenity_level = { -# type = court_servants -# value >= very_high_amenity_level -# } -# } -# custom_tooltip = start_hunt_decision.tt.servants_prestige.increased -# } -# ### Greater chance of success if you have a Master of the Hunt employed. -# if = { -# limit = { -# employs_court_position = master_of_hunt_court_position -# any_court_position_holder = { -# type = master_of_hunt_court_position -# is_physically_able = yes -# } -# } -# custom_tooltip = start_hunt_decision_master_of_hunt -# } -# -# hidden_effect = { -# random_sub_realm_barony = { -# title_province = { -# spawn_activity = { -# type = activity_hunt -# owner = root -# } -# } -# } -# } -# } -# -# ai_potential = { -# short_term_gold > standard_activity_cost -# war_chest_gold >= halved_ai_war_chest_gold_maximum -# } -# -# ai_will_do = { -# base = 35 -# -# ai_value_modifier = { -# ai_energy = 1 -# ai_greed = -0.5 -# ai_compassion = -0.5 -# } -# -# modifier = { -# add = 10 -# has_trait_rank = { -# trait = education_martial -# rank > 0 -# } -# } -# modifier = { -# add = 10 -# has_trait_rank = { -# trait = education_martial -# rank > 2 -# } -# } -# -# modifier = { -# add = 35 -# stress > low_stress -# } -# -# modifier = { # Too busy booming the economy -# add = -50 -# OR = { -# ai_has_economical_boom_personality = yes -# has_character_flag = ai_boom -# } -# } -# -# modifier = { # Work first, play later -# add = -35 -# exists = capital_county -# capital_county.title_province = { -# free_building_slots > 0 -# } -# } -# } -#} - -hold_court_decision = { +hold_court_decision = { ai_check_interval = 96 picture = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" major = yes @@ -855,8 +303,6 @@ petition_liege_decision = { widget = { gui = "decision_view_widget_petition_liege" controller = decision_option_list_controller - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" decision_to_second_step_button = "CHOOSE_PETITION_DECISION_NEXT_STEP_BUTTON" ### General @@ -1061,6 +507,11 @@ petition_liege_decision = { item = { # Construct Temple value = petition_liege_construct_temple is_valid = { + custom_tooltip = { + text = petition_liege_city_planning_innovation_tt + culture = { has_innovation = innovation_city_planning } + liege.culture = { has_innovation = innovation_city_planning } + } custom_tooltip = { text = petition_liege_faith_tt faith = liege.faith @@ -1220,234 +671,3 @@ petition_liege_decision = { always = no # Only players can do this. AI vassals go through the normal court events/hold court activity. } } - -#host_witch_ritual_decision = { -# picture = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# ai_check_interval = 60 -# -# sort_order = 80 -# -# cost = { gold = 50 } -# -# cooldown = { days = 3650 } -# -# desc = host_witch_ritual_decision_desc -# selection_tooltip = host_witch_ritual_decision_tooltip -# -# is_shown = { -# is_witch_trigger = yes -# exists = house -# house = { has_house_modifier = witch_coven } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# is_landed = yes -# } -# -# effect = { -# capital_province = { -# spawn_activity = { -# type = activity_witch_ritual -# owner = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 0 -# -# modifier = { -# add = 50 -# short_term_gold > 150 -# } -# } -#} -# -#playdate_decision = { -# picture = "gfx/interface/illustrations/decisions/decision_realm.dds" -# -# desc = playdate_decision_desc -# selection_tooltip = playdate_decision_tooltip -# -# cooldown = { days = standard_playdate_cooldown_time } -# -# ai_check_interval = 120 -# -# cost = { gold = standard_playdate_activity_cost } -# -# sort_order = 67 -# -# is_shown = { -# is_adult = no -# } -# -# is_valid_showing_failures_only = { -# is_available = yes -# age >= 4 -# } -# -# effect = { -# hidden_effect = { -# capital_province = { -# save_scope_as = capital_province -# spawn_activity = { -# type = activity_playdate -# owner = root -# } -# } -# } -# custom_tooltip = start_playdate_decision -# custom_tooltip = host_playdate_decision_desc_vassal_and_courtiers -# if = { -# limit = { -# exists = liege -# NOT = { liege = this } -# liege = { -# is_available_for_child_activity_trigger = yes -# } -# } -# custom_tooltip = host_feast_decision_desc_liege_opinion -# } -# -# -# #Piety gain -# if = { -# limit = { -# faith = { -# OR = { -# has_doctrine_parameter = piety_from_feasts_active -# AND = { -# has_doctrine_parameter = summer_festivals_active -# # Only during 'summer' (May 1st through July 31st). -# current_month >= 5 -# current_month <= 7 -# } -# } -# } -# } -# add_piety = { -# value = 0 -# -# faith = { -# if = { -# limit = { -# has_doctrine_parameter = summer_festivals_active -# # Only during 'summer' (May 1st through July 31st). -# current_month >= 5 -# current_month <= 7 -# } -# add = medium_piety_value -# } -# if = { -# limit = { -# has_doctrine = tenet_ritual_celebrations -# } -# add = minor_piety_value -# } -# if = { -# limit = { -# has_doctrine = tenet_hedonistic -# } -# add = minor_piety_value -# } -# } -# -# min = minor_piety_value # Always give some piety, even if we don't have any of the specified tenets. -# } -# } -# -# #Stress loss -# if = { -# limit = { -# has_trait = shy -# } -# custom_tooltip = host_feast_decision_desc_shy -# } -# else_if = { -# limit = { -# has_trait = pensive -# } -# custom_tooltip = host_feast_decision_desc_pensive -# } -# else_if = { -# limit = { -# OR = { -# has_trait = gluttonous -# has_trait = gregarious -# has_trait = reveler_1 -# has_trait = reveler_2 -# has_trait = reveler_3 -# has_trait = drunkard -# has_trait = comfort_eater -# has_trait = greedy -# has_trait = curious -# has_trait = charming -# } -# } -# stress_impact = { -# base = feast_stress_loss_value -# gluttonous = activity_stress_loss_impact -# gregarious = activity_stress_loss_impact -# reveler_1 = activity_stress_loss_impact -# reveler_2 = activity_stress_loss_impact -# reveler_3 = activity_stress_loss_impact -# drunkard = activity_stress_loss_impact -# comfort_eater = activity_stress_loss_impact -# greedy = activity_stress_loss_impact -# curious = activity_stress_loss_impact -# charming = activity_stress_loss_impact -# -# } -# } -# else = { -# stress_impact = { -# base = feast_stress_loss_value -# } -# } -# } -# -# ai_potential = { -# short_term_gold > standard_playdate_activity_cost -# } -# -# ai_will_do = { -# base = 1000 -# -# modifier = { -# add = 35 -# NOT = { has_trait = shy } -# } -# -# modifier = { -# add = 30 -# short_term_gold >= medium_gold_value -# } -# -# modifier = { -# add = 15 -# stress > low_stress -# } -# -# modifier = { -# add = 35 -# has_trait = charming -# } -# -# modifier = { -# add = -35 -# has_trait = pensive -# } -# -# modifier = { -# add = 25 -# faith = { -# has_doctrine = tenet_ritual_celebrations -# } -# } -# } -#} diff --git a/common/decisions/30_court_decisions.txt b/common/decisions/30_court_decisions.txt index 64d257d3b1..771cf05acc 100644 --- a/common/decisions/30_court_decisions.txt +++ b/common/decisions/30_court_decisions.txt @@ -73,8 +73,6 @@ widget = { gui = "decision_view_widget_pay_homage" controller = decision_option_list_controller - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" decision_to_second_step_button = "PAY_HOMAGE_DECISION_NEXT_STEP_BUTTON" item = { # Submission diff --git a/common/decisions/80_major_decisions.txt b/common/decisions/80_major_decisions.txt index edad297b0a..e43153fd7c 100644 --- a/common/decisions/80_major_decisions.txt +++ b/common/decisions/80_major_decisions.txt @@ -532,8 +532,26 @@ dynasty_of_many_crowns_decision = { #by Mathilda Bjarnehed } + + + + + + + + + + +################################################## +# DE JURE DECISIONS + +################################################## +# Found New Kingdom +# by some unknown hero +################################################## + found_kingdom_decision = { - picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + picture = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" major = yes ai_check_interval = 60 desc = found_kingdom_decision_desc @@ -682,6 +700,7 @@ adopt_special_succession_decision = { #by Ewan Cowhig Croft #special_succession_witengamot_trigger = yes special_succession_thing_trigger = yes special_succession_tanistry_trigger = yes + special_succession_jirga_trigger = yes } AND = { highest_held_title_tier >= tier_kingdom @@ -1120,8 +1139,8 @@ found_witch_coven_decision = { # by Linnéa Thimrén ################################################## -repay_loan_decision = { #by Linnéa Thimrén - picture = "gfx/interface/illustrations/decisions/decision_misc.dds" +repay_loan_decision = { + picture = "gfx/interface/illustrations/decisions/decision_spend_money.dds" major = yes @@ -1239,8 +1258,8 @@ repay_loan_decision = { #by Linnéa Thimrén # by Linnéa Thimrén ################################################## -escape_from_prison_decision = { #by Linnéa Thimrén - picture = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" +escape_from_prison_decision = { + picture = "gfx/interface/illustrations/decisions/decision_prison.dds" major = yes desc = escape_from_prison_decision_desc selection_tooltip = escape_from_prison_decision_tooltip diff --git a/common/decisions/90_minor_decisions.txt b/common/decisions/90_minor_decisions.txt index 798ef08b02..ab1af6a4fd 100644 --- a/common/decisions/90_minor_decisions.txt +++ b/common/decisions/90_minor_decisions.txt @@ -1,5 +1,5 @@ hire_physician_decision = { - picture = "gfx/interface/illustrations/decisions/decision_recruitment.dds" + picture = "gfx/interface/illustrations/decisions/decision_physician.dds" sort_order = 81 @@ -720,22 +720,13 @@ stress_loss_drunkard_decision = { #by Linnéa Thimrén } effect = { - custom_tooltip = stress_loss_drunkard_decision_effect_tooltip + show_as_tooltip = { add_prestige = medium_prestige_loss } # The effect is actually applied in the event itself - show_as_tooltip = { #The effect is actually applied in the event itself - add_prestige = medium_prestige_loss - } - - trigger_event = { - on_action = stress_loss_drunkard - } + trigger_event = { on_action = stress_loss_drunkard } } - ai_potential = { - has_trait = drunkard - } - + ai_potential = { has_trait = drunkard } ai_will_do = { base = 0 @@ -1479,3 +1470,4 @@ hire_travel_leader_decision = { base = 100 } } + diff --git a/common/decisions/dlc_decisions/fp3_decisions.txt b/common/decisions/dlc_decisions/fp3_decisions.txt new file mode 100644 index 0000000000..ad95e4549d --- /dev/null +++ b/common/decisions/dlc_decisions/fp3_decisions.txt @@ -0,0 +1,362 @@ +################################### +# Favour Skilled Outsiders +# By Ewan Cowhig Croft +################################### + +# Bring in skilled characters that like you at the cost of offending your other vassals. +favour_skilled_outsiders_decision = { + desc = favour_skilled_outsiders_decision_desc + confirm_text = favour_skilled_outsiders_decision_confirm + selection_tooltip = favour_skilled_outsiders_decision_tooltip + picture = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds" + sort_order = 180 + + is_shown = { + has_fp3_dlc_trigger = yes + is_landed = yes + favour_skilled_outsiders_decision_valid_character_to_take_trigger = yes + } + + is_valid = { + any_sub_realm_county = { favour_skilled_outsiders_decision_valid_county_to_generate_trigger = yes } + favour_skilled_outsiders_decision_valid_character_to_take_trigger = yes + realm_size >= medium_realm_size + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_at_war = no + } + + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "favour_skilled_outsiders_decision.second_step" + + # Diplomacy-Martial: Eloquent Captains + item = { + value = outsider_diplomacy_martial + current_description = favour_skilled_outsiders_decision.tt.diplomacy_martial + localization = favour_skilled_outsiders_decision.tt.diplomacy_martial + icon = "gfx/interface/icons/message_feed/a_catch_all_councillor_icon.dds" + is_valid = { + custom_tooltip = { + text = COUNCILLOR_MISSING_CHANCELLOR + exists = cp:councillor_chancellor + } + trigger_if = { + limit = { exists = cp:councillor_chancellor } + cp:councillor_chancellor = { diplomacy < favour_skilled_outsiders_decision_skill_threshold_value } + # And an extra tooltip for narrative clarity. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.skilled_councillor_keeps_clean_house + cp:councillor_chancellor = { diplomacy < favour_skilled_outsiders_decision_skill_threshold_value } + } + } + } + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = diplomacy + subtract = martial + } + } + # Martial-Prowess: Career Soldiers + item = { + value = outsider_martial_prowess + current_description = favour_skilled_outsiders_decision.tt.martial_prowess + localization = favour_skilled_outsiders_decision.tt.martial_prowess + icon = "gfx/interface/icons/message_feed/mercenary.dds" + is_valid = { + custom_tooltip = { + text = COUNCILLOR_MISSING_MARSHAL + exists = cp:councillor_marshal + } + trigger_if = { + limit = { exists = cp:councillor_marshal } + cp:councillor_marshal = { martial < favour_skilled_outsiders_decision_skill_threshold_value } + # And an extra tooltip for narrative clarity. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.skilled_councillor_keeps_clean_house + cp:councillor_marshal = { martial < favour_skilled_outsiders_decision_skill_threshold_value } + } + } + } + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = martial + subtract = prowess + } + } + # Prowess-Learning: Fringe Nobility + item = { + value = outsider_prowess_learning + current_description = favour_skilled_outsiders_decision.tt.prowess_learning + localization = favour_skilled_outsiders_decision.tt.prowess_learning + icon = "gfx/interface/icons/message_feed/tier_down.dds" + # Always valid. + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = prowess + subtract = learning + } + } + # Learning-Intrigue: Dedicated Functionaries + item = { + value = outsider_learning_intrigue + current_description = favour_skilled_outsiders_decision.tt.learning_intrigue + localization = favour_skilled_outsiders_decision.tt.learning_intrigue + icon = "gfx/interface/icons/message_feed/secret.dds" + is_valid = { + custom_tooltip = { + text = COUNCILLOR_MISSING_COURT_CHAPLAIN + exists = cp:councillor_court_chaplain + } + trigger_if = { + limit = { exists = cp:councillor_court_chaplain } + cp:councillor_court_chaplain = { learning < favour_skilled_outsiders_decision_skill_threshold_value } + # And an extra tooltip for narrative clarity. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.skilled_councillor_keeps_clean_house + cp:councillor_court_chaplain = { learning < favour_skilled_outsiders_decision_skill_threshold_value } + } + } + } + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = learning + subtract = intrigue + } + } + # Intrigue-Stewardship: Cunning Officials + item = { + value = outsider_intrigue_stewardship + current_description = favour_skilled_outsiders_decision.tt.intrigue_stewardship + localization = favour_skilled_outsiders_decision.tt.intrigue_stewardship + icon = "gfx/interface/icons/message_feed/spy_master.dds" + is_valid = { + custom_tooltip = { + text = COUNCILLOR_MISSING_SPYMASTER + exists = cp:councillor_spymaster + } + trigger_if = { + limit = { exists = cp:councillor_spymaster } + cp:councillor_spymaster = { intrigue < favour_skilled_outsiders_decision_skill_threshold_value } + # And an extra tooltip for narrative clarity. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.skilled_councillor_keeps_clean_house + cp:councillor_spymaster = { intrigue < favour_skilled_outsiders_decision_skill_threshold_value } + } + } + } + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = intrigue + subtract = stewardship + } + } + # Stewardship-Diplomacy: Skilled Administrators + item = { + value = outsider_stewardship_diplomacy + current_description = favour_skilled_outsiders_decision.tt.stewardship_diplomacy + localization = favour_skilled_outsiders_decision.tt.stewardship_diplomacy + icon = "gfx/interface/icons/message_feed/money.dds" + is_valid = { + custom_tooltip = { + text = COUNCILLOR_MISSING_STEWARD + exists = cp:councillor_steward + } + trigger_if = { + limit = { exists = cp:councillor_steward } + cp:councillor_steward = { stewardship < favour_skilled_outsiders_decision_skill_threshold_value } + # And an extra tooltip for narrative clarity. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.skilled_councillor_keeps_clean_house + cp:councillor_steward = { stewardship < favour_skilled_outsiders_decision_skill_threshold_value } + } + } + } + ai_chance = { + # The AI wants to recruit characters that compensate for their skills. + ## So we set a high base. + value = 100 + ## Then we subtract root's relevant skills. + subtract = stewardship + subtract = diplomacy + } + } + } + + effect = { + # So here's what'll happen. + custom_tooltip = favour_skilled_outsiders_decision.tt.promote_minorities_from_within_realm + custom_tooltip = favour_skilled_outsiders_decision.tt.two_batches_to_choose_from + # And how people will react. + show_as_tooltip = { favour_skilled_outsiders_decision_apply_opinions_effect = yes } + # Save how much prestige we paid in case we back out. + save_scope_value_as = { + name = prestige_cost + value = favour_skilled_outsiders_decision_prestige_cost_value + } + # Now fire the actual event. + trigger_event = fp3_misc_decisions.0032 + } + + cooldown = { years = 25 } + + cost = { prestige = favour_skilled_outsiders_decision_prestige_cost_value } + + ai_check_interval = 24 + + ai_potential = { + # Check this stuff early, else we'll go through a bunch of county checks unnecessarily. + favour_skilled_outsiders_decision_valid_character_to_take_trigger = yes + # Plus simple validity checks. + is_adult = yes + is_at_war = no + } + + ai_will_do = { + # We don't want to use this too much - the AI is gonna have trouble utilising such characters correctly. + base = -50 + + # Missing councillors. + ## Chancellor + modifier = { + add = 50 + NOT = { exists = cp:councillor_chancellor } + } + ## Steward + modifier = { + add = 50 + NOT = { exists = cp:councillor_steward } + } + ## Marshal + modifier = { + add = 50 + NOT = { exists = cp:councillor_marshal } + } + ## Spymaster + modifier = { + add = 50 + NOT = { exists = cp:councillor_spymaster } + } + ## Court_chaplain + modifier = { + add = 50 + NOT = { exists = cp:councillor_court_chaplain } + } + # Government. + ## Teensy upweight for clans, as the model for the decision. + modifier = { + add = 20 + government_has_flag = government_is_clan + } + # Traits. + ## Calm + modifier = { + add = 15 + has_trait = calm + } + ## Humble + modifier = { + add = 15 + has_trait = humble + } + ## Ambitious + modifier = { + add = 15 + has_trait = ambitious + } + } +} + +################################### +# Become a Clan Government +################################### +fp3_become_clan_government_decision = { + picture = "gfx/interface/illustrations/decisions/fp3/friendly.dds" + + desc = fp3_become_clan_government_decision_desc + selection_tooltip = fp3_become_clan_government_decision_tooltip + + ai_check_interval = 64 + + cost = { prestige = major_prestige_value } + + is_shown = { + has_fp3_dlc_trigger = yes + # You are Feudal + government_has_flag = government_is_feudal + # Has a House and is not House Head + exists = house + NOT = { house.house_head = root } + # Religion is Islam (Clan) + like_islam_religion_trigger = yes + # House head is Clan + house.house_head = { government_has_flag = government_is_clan } + } + + is_valid = { + # You are Feudal + government_has_flag = government_is_feudal + # Religion is Islam (Clan) + like_islam_religion_trigger = yes + # House head is Clan + custom_tooltip = { + text = fp3_become_clan_government_decision_house_head_tt + house.house_head = { government_has_flag = government_is_clan } + } + } + + effect = { + show_as_tooltip ={ + change_government = clan_government + # Increase unity, uses this effect since both chars are not clan when script is evaluated + house.house_head = { + apply_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = root.house.house_head + DESC = clan_unity_adopt_clan.desc + VALUE = medium_unity_gain + VALUE_REVERSED = no + } + } + } + trigger_event = fp3_misc_decisions.0051 + } + + ai_will_do = { + base = -25 + # More likely if Clan preferred culture + modifier = { + add = 10 + culture = { + OR = { + like_heritage_arabic_trigger = yes + like_heritage_iranian_trigger = yes + like_turkic_group_trigger = yes + } + } + } + # More likely if a fan of House Head + opinion_modifier = { + opinion_target = house.house_head + multiplier = 0.5 + } + } +} diff --git a/common/decisions/dlc_decisions/fp_1/00_fp1_other_decisions.txt b/common/decisions/dlc_decisions/fp_1/00_fp1_other_decisions.txt deleted file mode 100644 index 2b301c031e..0000000000 --- a/common/decisions/dlc_decisions/fp_1/00_fp1_other_decisions.txt +++ /dev/null @@ -1,97 +0,0 @@ -################################################## - -# Fury of the Northmen Other Decisions List - -# Raise Runestone [Expanded] - Raise a runestone to yourself, your actions, or your family. - -################################################## - - -############################################# -# Raise Runestone [Expanded] # -# by Ewan Cowhig Croft # -############################################# - -raise_stele_decision = { - title = raise_stele_decision_name - picture = "gfx/interface/illustrations/decisions/fp1_decision_raise_runestone.dds" - desc = raise_stele_decision_desc - selection_tooltip = raise_stele_decision_tooltip - major = yes - - cooldown = { years = 10 } - - sort_order = 80 - - is_shown = { - # DLC check. - has_fp1_dlc_trigger = yes - # Landed characters only: nobody likes a mercenary. - is_landed = yes - primary_title.tier > tier_barony - # Holds a suitable culture at a suitable period. - fp1_can_raise_stele_trigger = yes - } - - is_valid = { - # Has a valid reason. - OR = { - custom_description = { - text = raise_stele_decision_ancestor - # For family. - has_variable = ancestor_to_bury - } - custom_description = { - text = raise_stele_decision_victory - # Won a war that gained them territory. - has_variable = recent_conquest_victory - } - custom_description = { - text = raise_stele_decision_rank - # Marking going up a rank. - has_variable = recent_rank_increase - } - } - } - - is_valid_showing_failures_only = { - # Standard checks. - is_available_adult = yes - # Shouldn't be at war. - is_at_war = no - } - - cost = { gold = raise_stele_gold_cost } - - effect = { - # Save the gold value for refund purposes. - set_variable = { - name = raise_stele_refund - value = raise_stele_gold_cost - } - # Generic effects. - show_as_tooltip = { fp1_apply_generic_stele_bonuses_effect = yes } - # Inform that they'll be a bit weaker outside of your own culture (& similar). - custom_tooltip = raise_stele_decision_tt.variable_strength - # Show type effects. - custom_tooltip = raise_stele_decision_tt.effects_list - # Show a warning about it being destroyed if someone outside of your dynasty takes over the county it's built in - custom_description_no_bullet = { - text = raise_runestone_decision_warning - } - # Moved ahead to selection. - trigger_event = fp1_other_decisions.0101 - } - - ai_check_interval = 36 - - ai_potential = { - # Only take it if you can afford it. - short_term_gold >= raise_stele_gold_cost - } - - ai_will_do = { - # We don't want too many runestones all over the place. - base = 50 - } -} diff --git a/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt new file mode 100644 index 0000000000..c9efe2f944 --- /dev/null +++ b/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt @@ -0,0 +1,562 @@ +################################# +# Embellish Capital # +# By Ola Jentzsch # +# Reworked by Chad Uhl # +################################# + +fp3_embellish_capital_decision = { + title = fp3_embellish_capital_decision_name + picture = "gfx/interface/illustrations/holding_types/fp3_castle_iranian.dds" + desc = fp3_embellish_capital_decision.desc + major = no + selection_tooltip = fp3_embellish_capital_decision_tooltip + cooldown = { years = 30 } + sort_order = 1250 + + is_shown = { + exists = dynasty + dynasty = { + has_dynasty_perk = fp3_khvarenah_legacy_5 + } + exists = capital_county + } + + is_valid = { + OR = { + custom_tooltip = { + text = recently_conquered_land_tooltip + any_held_county = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + } + short_term_gold >= embellish_capital_gold_cost + } + } + + is_valid_showing_failures_only = { + is_available_at_peace_adult = yes + OR = { + # At least one of the decision options is available + employs_court_position = royal_architect_court_position + any_consort = { fp3_embellish_capital_decision_character_trigger = yes } + any_courtier = { fp3_embellish_capital_decision_character_trigger = yes } + cp:councillor_court_chaplain ?= { fp3_embellish_capital_decision_character_trigger = yes } + } + } + + cost = { + gold = { + value = 0 + if = { + limit = { + NOT = { + any_held_county = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + } + } + add = embellish_capital_gold_cost + } + } + } + + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_ARCHITECT_DECISION_NEXT_STEP_BUTTON" + + ### Royal Architect + # Mausoleum + # Refurbish Residence + # Baths and Fountains + item = { + value = embellish_capital_royal_architect + is_valid = { + employs_court_position = royal_architect_court_position + trigger_if = { + limit = { employs_court_position = royal_architect_court_position } + court_position:royal_architect_court_position = { + fp3_embellish_capital_decision_character_trigger = yes + } + } + } + localization = embellish_capital_option_royal_architect + icon = "gfx/interface/icons/message_feed/building.dds" + ai_chance = { + value = 100 + } + } + + #### Courtier + # Hammam + # Temple + # Palace + item = { + value = embellish_capital_consort_courtier + is_valid = { + OR = { + any_consort = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + trigger_if = { + limit = { + root = { employs_court_position = royal_architect_court_position } + } + has_court_position = royal_architect_court_position + } + is_councillor_of = root + } + } + any_courtier = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + trigger_if = { + limit = { + root = { employs_court_position = royal_architect_court_position } + } + has_court_position = royal_architect_court_position + } + is_councillor_of = root + } + } + } + } + localization = embellish_capital_option_consort_courtier + icon = "gfx/interface/icons/message_feed/council.dds" + ai_chance = { + value = 90 + } + } + + #### Chaplain + # Temple + # Dakhma + # Madrasa + # Fresco + item = { + value = embellish_capital_chaplain + is_valid = { + cp:councillor_court_chaplain ?= { fp3_embellish_capital_decision_character_trigger = yes } + } + localization = embellish_capital_option_chaplain + icon = "gfx/interface/icons/message_feed/religious.dds" + ai_chance = { + value = 70 + if = { + limit = { + has_trait = zealous + } + add = 30 + } + } + } + + #### Me + # Monument to myself + item = { + value = embellish_capital_me + is_valid = { + is_available_adult = yes + } + localization = embellish_capital_option_me + icon = "gfx/interface/icons/character_interactions/icon_scheme_claim_throne.dds" + ai_chance = { + value = 60 + if = { + limit = { + has_trait = arrogant + } + add = 50 + } + } + } + } + + effect = { + custom_tooltip = fp3_embellish_capital_decision_effects.tt + hidden_effect = { + save_scope_as = root_scope # For custom tooltips within the event chain + capital_county = { save_scope_as = capital_county } + capital_province = { save_scope_as = capital_province } + if = { # Case: You don't have the gold but you do have the recently conquered county + limit = { + any_held_county = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + NOT = { + short_term_gold >= embellish_capital_gold_cost + } + } + random_held_county = { + limit = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + save_scope_as = target_county + } + # Fire the event based on the option selected + if = { # Royal Architect + limit = { scope:embellish_capital_royal_architect = yes } + random_court_position_holder = { + type = royal_architect_court_position + limit = { fp3_embellish_capital_decision_character_trigger = yes } + save_scope_as = chosen_architect + } + trigger_event = { + id = fp3_dynasty_decision.0004 + days = { 3 10 } + } + } + else_if = { # Consort or Courtier + limit = { scope:embellish_capital_consort_courtier = yes } + random_list = { + 1 = { + trigger = { + any_consort = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + } + random_consort = { + limit = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + weight = { + base = 1 + compare_modifier = { + value = stewardship + multiplier = 0.25 + } + modifier = { + has_trait = lazy + add = -50 + } + + modifier = { + OR = { + has_trait = administrator + has_trait = architect + has_trait = scholar + has_trait = lifestyle_gardener + has_trait = overseer + } + add = 50 + } + } + save_scope_as = chosen_architect + } + } + 1 = { + trigger = { + any_courtier = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + } + random_courtier = { + limit = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + weight = { + base = 1 + compare_modifier = { + value = stewardship + multiplier = 0.25 + } + modifier = { + has_trait = lazy + add = -50 + } + + modifier = { + OR = { + has_trait = administrator + has_trait = architect + has_trait = scholar + has_trait = lifestyle_gardener + has_trait = overseer + } + add = 50 + } + } + save_scope_as = chosen_architect + } + } + } + trigger_event = { + id = fp3_dynasty_decision.0005 + days = { 3 10 } + } + } + else_if = { # Court Chaplain + limit = { scope:embellish_capital_chaplain = yes } + cp:councillor_court_chaplain = { save_scope_as = chosen_architect } + trigger_event = { + id = fp3_dynasty_decision.0007 + days = { 3 10 } + } + } + else_if = { # Me + limit = { scope:embellish_capital_me = yes } + save_scope_as = chosen_architect + trigger_event = { + id = fp3_dynasty_decision.0008 + days = { 3 10 } + } + } + } + else_if = { # Case: you have the gold but not the recently conquered county + limit = { + short_term_gold >= embellish_capital_gold_cost + NOT = { + any_held_county = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + } + } + set_variable = { + name = embellish_capital_cost + value = embellish_capital_gold_cost + } + # Fire the event based on the option selected + if = { # Royal Architect + limit = { scope:embellish_capital_royal_architect = yes } + random_court_position_holder = { + type = royal_architect_court_position + limit = { fp3_embellish_capital_decision_character_trigger = yes } + save_scope_as = chosen_architect + } + trigger_event = { + id = fp3_dynasty_decision.0004 + days = { 3 10 } + } + } + else_if = { # Consort or Courtier + limit = { scope:embellish_capital_consort_courtier = yes } + random_list = { + 1 = { + trigger = { + any_consort = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + } + random_consort = { + limit = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + weight = { + base = 1 + compare_modifier = { + value = stewardship + multiplier = 0.25 + } + modifier = { + has_trait = lazy + add = -50 + } + + modifier = { + OR = { + has_trait = administrator + has_trait = architect + has_trait = scholar + has_trait = lifestyle_gardener + has_trait = overseer + } + add = 50 + } + } + save_scope_as = chosen_architect + } + } + 1 = { + trigger = { + any_courtier = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + } + random_courtier = { + limit = { + fp3_embellish_capital_decision_character_trigger = yes + NOR = { + has_court_position = royal_architect_court_position + is_councillor_of = root + } + } + weight = { + base = 1 + compare_modifier = { + value = stewardship + multiplier = 0.25 + } + modifier = { + has_trait = lazy + add = -50 + } + + modifier = { + OR = { + has_trait = administrator + has_trait = architect + has_trait = scholar + has_trait = lifestyle_gardener + has_trait = overseer + } + add = 50 + } + } + save_scope_as = chosen_architect + } + } + } + trigger_event = { + id = fp3_dynasty_decision.0005 + days = { 3 10 } + } + } + else_if = { # Court Chaplain + limit = { scope:embellish_capital_chaplain = yes } + cp:councillor_court_chaplain = { save_scope_as = chosen_architect } + trigger_event = { + id = fp3_dynasty_decision.0007 + days = { 3 10 } + } + } + else_if = { # Me + limit = { scope:embellish_capital_me = yes } + save_scope_as = chosen_architect + trigger_event = { + id = fp3_dynasty_decision.0008 + days = { 3 10 } + } + } + scope:chosen_architect = { + add_opinion = { + target = root + modifier = trusted_me_opinion + opinion = 10 + } + } + } + else = { # Case: You have both the gold and the recently conquered county, so we let you choose how to pay + # Save the gold value for refund purposes. Deleted later if you choose to pay by pillaging the recently conquered county + set_variable = { + name = embellish_capital_cost + value = embellish_capital_gold_cost + } + # Save architect scope and give opinion + if = { # Royal Architect + limit = { scope:embellish_capital_royal_architect = yes } + random_court_position_holder = { + type = royal_architect_court_position + limit = { fp3_embellish_capital_decision_character_trigger = yes } + save_scope_as = chosen_architect + } + } + else_if = { # Consort or Courtier + limit = { scope:embellish_capital_consort_courtier = yes } + random_list = { + 1 = { + trigger = { + any_consort = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + } + } + random_consort = { + limit = { fp3_embellish_capital_decision_character_trigger = yes } + save_scope_as = chosen_architect + } + } + 1 = { + trigger = { + any_courtier = { + count >= 1 + fp3_embellish_capital_decision_character_trigger = yes + } + } + random_courtier = { + limit = { fp3_embellish_capital_decision_character_trigger = yes } + save_scope_as = chosen_architect + } + } + } + } + else_if = { # Court Chaplain + limit = { scope:embellish_capital_chaplain = yes } + cp:councillor_court_chaplain = { save_scope_as = chosen_architect } + } + else_if = { # Me + limit = { scope:embellish_capital_me = yes } + save_scope_as = chosen_architect + } + random_held_county = { + limit = { + NOT = { this = this.holder.top_liege.capital_county } + recent_history = { + type = conquest + years = 10 + } + } + save_scope_as = target_county + } + trigger_event = fp3_dynasty_decision.0003 + } + } + } + + ai_check_interval = 120 + + ai_potential = {} + + ai_will_do = { base = 100 } +} diff --git a/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/decisions/dlc_decisions/fp_3/fp3_scholarship_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_scholarship_decisions.txt new file mode 100644 index 0000000000..6fa432fcaf --- /dev/null +++ b/common/decisions/dlc_decisions/fp_3/fp3_scholarship_decisions.txt @@ -0,0 +1,282 @@ +fp3_sponsor_persian_scholars_decision = { + picture = "gfx/interface/illustrations/event_scenes/dalaran_sm.dds" + desc = fp3_sponsor_persian_scholars_decision_desc + selection_tooltip = fp3_sponsor_persian_scholars_decision_tooltip + sort_order = 175 + ai_check_interval = 120 + + is_shown = { + OR = { + has_culture = culture:high_elf + has_culture = culture:blood_elf + culture = { has_cultural_pillar = heritage_gilnean } + culture = { has_cultural_pillar = heritage_arathi } + } + + has_fp3_dlc_trigger = yes + can_employ_court_position_type = court_scholar_court_position + } + + is_valid_showing_failures_only = { + is_available_healthy_adult = yes + } + + cost = { prestige = { value = medium_prestige_value } } + + cooldown = { years = 5 } + + effect = { + set_variable = { + name = number_of_invite_scholars_countdown + value = 3 + days = 1000 + } + custom_tooltip = fp3_sponsor_persian_scholars_decision.tt + trigger_event = { + id = fp3_scholarship.0001 + days = { 20 40 } + } + } + + ai_potential = { + can_employ_court_position_type = court_scholar_court_position + } + + ai_will_do = { + base = 0 + # Won't do if employs a decent court scholar already + modifier = { + factor = 0 + employs_court_position = court_scholar_court_position + any_court_position_holder = { + type = court_scholar_court_position + aptitude:court_scholar_court_position > 1 + } + } + modifier = { + add = 50 + exists = culture_head + culture_head = root + } + modifier = { + factor = 2 + has_trait = education_learning + } + } +} + +fp3_sponsor_research_project_decision = { + picture = "gfx/interface/illustrations/decisions/decision_golden_age.dds" + desc = fp3_sponsor_research_project_decision_desc + selection_tooltip = fp3_sponsor_research_project_decision_tooltip + sort_order = 1000 + + is_shown = { + OR = { + can_employ_court_position_type = court_scholar_court_position + employs_court_position = court_scholar_court_position + } + } + is_valid = { + employs_court_position = court_scholar_court_position + custom_tooltip = { + text = fp3_sponsor_research_project_decision.trigger.learning + any_court_position_holder = { + type = court_scholar_court_position + aptitude = { + court_position = court_scholar_court_position + value >= 3 + } + } + } + } + + is_valid_showing_failures_only = { + trigger_if = { + limit = { + employs_court_position = court_scholar_court_position + } + custom_tooltip = { + text = fp3_sponsor_research_project_decision.trigger.is_available_healthy_adult + any_court_position_holder = { + type = court_scholar_court_position + is_available_healthy_adult = yes + } + } + } + trigger_if = { + limit = { + employs_court_position = court_scholar_court_position + } + custom_tooltip = { + text = fp3_sponsor_research_project_decision.trigger.busy_inspiration + any_court_position_holder = { + type = court_scholar_court_position + NOT = { exists = inspiration } + } + } + } + } + + widget = { + gui = "decision_view_widget_generic_multichoice_with_effects" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_RESEARCH_PATH" + show_from_start = yes + + ### Military + item = { + value = sponsor_military_research + current_description = sponsor_military_research_desc + localization = sponsor_military_research_name + icon = "gfx/interface/icons/icon_prowess.dds" + ai_chance = { + value = 1 + if = { + limit = { + is_at_war = yes + } + add = 10 + } + if = { + limit = { + martial > learning + } + add = 10 + } + } + } + ### Research + item = { + value = sponsor_civil_research + current_description = sponsor_civil_research_desc + localization = sponsor_civil_research_name + icon = "gfx/interface/icons/icon_domain.dds" + ai_chance = { + value = 1 + if = { + limit = { + is_at_war = no + } + add = 5 + } + if = { + limit = { + stewardship > martial + } + add = 5 + } + if = { + limit = { + learning > martial + } + add = 5 + } + } + } + } + + cooldown = { years = 5 } + + cost = { + gold = major_gold_value + prestige = medium_prestige_value + } + + effect = { + hidden_effect = { + court_position:court_scholar_court_position ?= { + set_variable = { + name = research_success_chance + value = { + value = aptitude:court_scholar_court_position + min = 1 + } + years = 20 # Just in case + } + create_inspiration = research_inspiration + if = { + limit = { exists = inspiration } + inspiration = { + save_temporary_scope_as = research_project + } + root = { sponsor_inspiration = scope:research_project } + } + } + trigger_event = { + id = fp3_scholarship.8000 + } + } + if = { + limit = { + scope:sponsor_military_research = yes + } + custom_tooltip = { + text = fp3_sponsor_military_research_project_decision.tt + court_position:court_scholar_court_position ?= { + remove_character_flag = civil_research + add_character_flag = military_research + } + } + } + if = { + limit = { + scope:sponsor_civil_research = yes + } + custom_tooltip = { + text = fp3_sponsor_civil_research_project_decision.tt + court_position:court_scholar_court_position ?= { + remove_character_flag = military_research + add_character_flag = civil_research + } + } + } + } + + ai_check_interval = 120 + ai_potential = { + employs_court_position = court_scholar_court_position + any_court_position_holder = { + type = court_scholar_court_position + aptitude = { + court_position = court_scholar_court_position + value >= 3 + } + } + gold >= massive_gold_value + } + ai_will_do = { + base = 0 + modifier = { + add = 5 + gold >= major_gold_value + } + modifier = { + factor = 5 + learning >= 15 + } + modifier = { + factor = 10 + learning >= 20 + } + modifier = { + factor = 10 + OR = { + has_trait = scholar + has_trait = lifestyle_physician + has_trait = lifestyle_mystic + } + } + modifier = { # Has a tendency to spend money + factor = 10 + OR = { + has_trait = generous + has_trait = improvident + } + } + modifier = { + factor = 0 + is_independent_ruler = no + } + } +} diff --git a/common/decisions/dlc_decisions/fp_3/fp3_zoroastrian_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_zoroastrian_decisions.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/decisions/dlc_decisions/fp_3/fp3_zoroastrian_decisions.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/decisions/test_decision.txt b/common/decisions/test_decision.txt index ac4c245461..5f282702bb 100644 --- a/common/decisions/test_decision.txt +++ b/common/decisions/test_decision.txt @@ -1,16 +1 @@ -wild_goose_chase_decision = { - picture = "gfx/interface/illustrations/decisions/decision_major_religion.dds" - - is_shown = { - debug_only = yes - } - - is_valid = { - always = yes - } - effect = { - create_artifact_frostmourne_effect = { OWNER = root } - } - - ai_check_interval = 0 -} + \ No newline at end of file diff --git a/common/decisions/wc_debug_decision.txt b/common/decisions/wc_debug_decision.txt deleted file mode 100644 index a0d74be81a..0000000000 --- a/common/decisions/wc_debug_decision.txt +++ /dev/null @@ -1,56 +0,0 @@ -create_holy_orders_debug = { - picture = "gfx/interface/illustrations/decisions/decision_major_religion.dds" - - is_shown = { - debug_only = yes - } - - is_valid = { - } - effect = { - every_independent_ruler = { - add_to_list = holy_order_creators - - every_vassal = { - add_to_list = holy_order_creators - } - } - - # Creates 3 holy orders - every_in_list = { - list = holy_order_creators - - add_character_flag = { flag = holy_order_debug days = 1 } - - if = { - limit = { - can_execute_decision = create_holy_order_decision - - faith = { - trigger_if = { - limit = { exists = var:created_holy_orders } - var:created_holy_orders < 3 - } - trigger_else = { - always = yes - } - } - } - - faith = { - if = { - limit = { exists = var:created_holy_orders } - change_variable = { name = created_holy_orders add = 1 } - } - else = { - set_variable = { name = created_holy_orders value = 1 days = 1 } - } - } - - execute_decision = create_holy_order_decision - } - } - } - - ai_check_interval = 0 -} \ No newline at end of file diff --git a/common/decisions/wc_pol_faction_decisions.txt b/common/decisions/wc_pol_faction_decisions.txt index 06965ee036..5e04762b19 100644 --- a/common/decisions/wc_pol_faction_decisions.txt +++ b/common/decisions/wc_pol_faction_decisions.txt @@ -41,9 +41,6 @@ create_union_universal = { widget = { gui = "decision_view_widget_universal_union" controller = decision_option_list_controller - - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" decision_to_second_step_button = "choose_a_union_gui_button" item = { @@ -314,9 +311,6 @@ join_universal_union = { widget = { gui = "decision_view_widget_universal_union" controller = decision_option_list_controller - - decision_has_second_step = yes - decision_custom_widget_container = "custom_widgets_container_step_two" decision_to_second_step_button = "choose_a_union_gui_button" item = { diff --git a/common/defines/00_defines.txt b/common/defines/00_defines.txt index 4c487b118c..da2eeaa554 100644 --- a/common/defines/00_defines.txt +++ b/common/defines/00_defines.txt @@ -1319,13 +1319,19 @@ NCourtPositions = { } NStruggle = { - PHASE_TRANSITION_THRESHOLD = 1000 # How much points need to be accumulated in order to trigger the transition to a new phase + # How much points need to be accumulated during point-based phase in order to trigger the transition to a new phase + POINT_BASED_PHASE_DEFAULT_DURATION = 1000 # Sound effect played when change animation for struggle button PHASE_TRANSITION_SOUND_EFFECT_PATH = "event:/DLC/FP2/SFX/UI/fp2_struggle_button_state_change" YEARLY_DEFAULT_PHASE_POINTS = 0 # How many points are given to the default phase every year PHASE_TRANSITION_DURATION = 90 # How many days before the new phase starts once the threshold is reached NUM_CATALYST_HISTORIES_DISPLAYED = 5 # How many catalyst histories that should be shown in the struggle tooltip NOTIFICATION_MESSAGE_RELATIONS = { "friend", "rival", "nemesis" } + +} + +NHouseUnity = { + CHANGELOG_DURATION = 5 # After how many years do changelog entries get deleted? } NMemories = { @@ -1333,6 +1339,7 @@ NMemories = { DEATH_MEMORY_RETENTION_YEARS_PER_TIER = { -1 -1 -1 -1 0 0 } # We can keep or extend memories of dead characters by tier. (-1 forgets characters' memories on death, 0 keeps, and X positive adds X years) DEATH_MEMORY_RETENTION_YEARS_PLAYED_CHARACTER = 1000 # Any character that was played by a player retains their memories, adding X years } + # Settings for character based travel (not army travel) NTravel = { TRAVEL_SPEED_BASE = 0 # Travel speed base score value @@ -1376,7 +1383,7 @@ NTravel = { NDiarchy = { DIARCHY_SUCCESSION_SIZE = 5 # How many people are in diarchy line of succession. Active or designated diarch takes 1st spot there DIARCHY_MONTHLY_POWER_CHANGE = 0.25 # How much scales of power level changes each months towards balance value - DIARCH_APTITUDE_LEVELS = { 20 40 60 80 100 } # diarchy aptitude value cutoff points + DIARCH_APTITUDE_LEVELS = { 20 40 60 80 } # diarchy aptitude value cutoff points DESIGNATE_DIARCH_INTERVAL_DAYS = 3650 # Length of the cooldown after designating a diarch } @@ -1434,3 +1441,7 @@ NHostage = { GAIN_REDUCTION_PER_HOSTAGE = 0.2 # Income from every subsequent hostage is relatively reduced by this value. More valuable hostages are evaluated first MIN_GAIN_PER_HOSTAGE = 0.05 # Minimum possible fraction of income the hostage can give } + +NTaxSlot = { + TAX_DECREE_COOLDOWN = 5 # number of years you have to wait before changing a jurisdictions tax decree again +} diff --git a/common/defines/ai/00_ai.txt b/common/defines/ai/00_ai.txt index aef2b4b9d4..7b4850fa9d 100644 --- a/common/defines/ai/00_ai.txt +++ b/common/defines/ai/00_ai.txt @@ -62,6 +62,16 @@ 360 } + # Number of days between checking tax collector ticks per tier + TAX_COLLECTOR_TASK_TICK = { + 1800 # Unlanded has no vassals + 1800 # Barons have no vassals + 1100 + 720 + 120 + 60 + } + MINIMUM_TASKS_IN_TICK = 128 # How many tasks do we need in each tick? MAX_TASKS_IN_TICK = 192 # How high do we cap out? (If the frequency of a tick means we should do even more than this, we ignore this) MAX_TICK_STALENESS = 8 # How long can we delay a tick for better load-balancing? @@ -235,12 +245,12 @@ REGIMENT_OBSOLETION_SCORE_DIFFERENCE = 20 # The AI will disband a regiment if it is this much worse than the best available regiment, and it is unable to hire more regiments (due to cost or being at cap). Quick math: 10 damage * 100 men / 200 cost = 5 score difference - AI_BASE_WAR_CHANCE = 0.1 # Basic chance of declaring war. Further reduced by energy; x0 at -100, x1 at 100, x0.5 at 0 energy - AI_WAR_BASE_COOLDOWN = 365 # How long, in days, does the AI have to wait between wars? - AI_WAR_COOLDOWN_RATIO_FOR_FULL_CHANCE = 5 # How far beyond the cooldown do you have to go before the time since the last war stops reducing the chance? With these numbers, chance at day 3650 would be 0x, 1x at 3650*2, and 0.5x at 3650*1.5 + AI_BASE_WAR_CHANCE = 1 # Basic chance of declaring war. Further reduced by energy; x0 at -100, x1 at 100, x0.5 at 0 energy + AI_WAR_BASE_COOLDOWN = 50 # How long, in days, does the AI have to wait between wars? + AI_WAR_COOLDOWN_RATIO_FOR_FULL_CHANCE = 0 # How far beyond the cooldown do you have to go before the time since the last war stops reducing the chance? With these numbers, chance at day 3650 would be 0x, 1x at 3650*2, and 0.5x at 3650*1.5 AI_WAR_MAX_OFFENSIVE_WAR_PENALTY = 0.0 # If your offensive war penalty is higher than this, don't declare war unless you're a warmonger (faith doctrine) or irrational AI_WAR_MIN_RATIONALITY_FOR_OFFENSIVE_WAR_PENALTY = -30 # At or below this value, the AI will declare war even if their offensive war penalty is high - MIN_SCORE_RATIO_FOR_CASUS_BELLI = 0.6 # The AI will never declare a war below this ratio of the best war it has available + MIN_SCORE_RATIO_FOR_CASUS_BELLI = 0.9 # The AI will never declare a war below this ratio of the best war it has available AI_VENGEFULLNESS_FOR_WAR_WITH_HOSTAGE = 50 # AI must be at least this vengeful to attack a target warden of their hostage AI_COMPASSION_FOR_WAR_WITH_HOSTAGE = -50 # AI must be less compassionate than this to attack a target warden of their hostage @@ -249,13 +259,13 @@ AI_BOLDNESS_FOR_WAR_WITH_HOSTAGE = 50 # AI warden must be at least this bold to attack a target who gave them hostage AI_CHANCE_TO_START_WAR_WITH_HOSTAGE = 0.5 # How likely is AI to attack a target if they are bound by hostages. Random chance between [0, 1) - CB_SCORE_DE_JURE_MULTIPLIER = 20 # If the title is de jure under the AI character + CB_SCORE_DE_JURE_MULTIPLIER = 100 # If the title is de jure under the AI character CB_SCORE_DE_JURE_UNDER_LIEGE_MULTIPLIER = 1.5 # If the title is de jure under the AI character's liege - CB_SCORE_DE_JURE_UNDER_HIGHER_TITLE_MULTIPLIER = 15 # If the title is de jure under the de jure title directly above an independent AI character - CB_SCORE_HIGHER_TITLE_MULTIPLIER = 5.0 # If the title is a higher tier than the AI character's current primary title + CB_SCORE_DE_JURE_UNDER_HIGHER_TITLE_MULTIPLIER = 25 # If the title is de jure under the de jure title directly above an independent AI character + CB_SCORE_HIGHER_TITLE_MULTIPLIER = 100 # If the title is a higher tier than the AI character's current primary title EXTRA_CB_SCORE_FOR_HOLY_SITES = 10 # The AI will assign this much extra score to conquering a province that is its holy site - CB_SCORE_MULT_NEIGHBOR_TITLE = 5 # The AI will multiply the score of neighboring titles taken by a CB by this much + CB_SCORE_MULT_NEIGHBOR_TITLE = 15 # The AI will multiply the score of neighboring titles taken by a CB by this much TARGET_MAX_DEFENSIVE_WARS = 3 # AI won't declare war on someone who already has this many or more defensive wars DESIRED_WAR_SIDE_STRENGTH = 1.25 # AI won't call in more allies if its side in a war has at least this ratio of troops compared to the enemy. Uses current strength for own side, max strength for enemy side @@ -272,7 +282,7 @@ CB_OPINION_OF_TARGET_MULTIPLIER = 0.1 # Multiplier for opinion of target CB_OPINION_OF_CLAIMANT_MULTIPLIER = 0.1 # Multiplier for opinion of claimant (if claimant is the AI, we use MAX_OPINION) - CB_CLAIMANT_BECOMES_INDEPENDENT_MULTIPLIER = 0.25 # Multiplier if the claimant becomes indepent dut to this CB + CB_CLAIMANT_BECOMES_INDEPENDENT_MULTIPLIER = 0.25 # Multiplier if the claimant becomes indepent due to this CB CB_CLAIMANT_IS_CLOSE_RELATIVE_MULTIPLIER = 2 # Multiplier if the claimant is a close relative CB_CLAIMANT_IS_NOT_CLOSE_RELATIVE_MULTIPLIER = 0.75 # Multiplier if the claimant is not a close relative CB_CLAIMANT_GREED_MULTIPLIER = -0.5 # Multiplier of the AI's greed when scoring a CB for a claimant. Full greed gives this value while full generous gives the positive equivalent @@ -317,10 +327,10 @@ RAID_SCORE_MULT_SAME_CULTURE = 0.5 RAID_SCORE_MULT_SAME_HERITAGE = 0.75 - CHASE_MIN_SIZE = 100 # The AI will not bother trying to chase armies smaller than this - CHASE_PRIMARY_ENEMY_MIN_SCORE = 0.75 # Score is between 0.0 and 1.0 and represents the percentage of the enemy's total strength the target unit contains. If lead by the primary enemy, the score is capped to this minimum + CHASE_MIN_SIZE = 500 # The AI will not bother trying to chase armies smaller than this + CHASE_PRIMARY_ENEMY_MIN_SCORE = 0.75 # Score is between 0.0 and 1.0 and represents the percentage of the enemy's total strength the target unit contains. If led by the primary enemy, the score is capped to this minimum CHASE_PRIMARY_ENEMY_SOLDIER_MODIFIER = 2.0 # Modifies the number of target unit soldiers when considering if it's worth taking hostile attrition to attack it. I.e. AI won't attack a unit with 200 if it loses more by moving there - CHASE_MAX_SPEED_DIFFERENCE = 0.5 # Ignore chasing units that are this much faster unless adjacent + CHASE_MAX_SPEED_DIFFERENCE = 0.2 # Ignore chasing units that are this much faster unless adjacent COMBAT_RATIO_THRESHOLD = 0.5 # The AI will consider it valid to enter provinces where the predicted combat ratio compared to nearby enemies is above this value COMBAT_RATIO_THRESHOLD_DESPERATE = 0.4 # When in desperate mode, the AI will consider it valid to enter provinces where the predicted combat ratio compared to nearby enemies is above this value @@ -328,13 +338,13 @@ # The AI will only retreat if the following are true: # It predicts it'll lose according to RETREAT_COMBAT_PREDICTION_RATIO # AND it either has significant forces elsewhere, or there's a better defensive location nearby as defined by RETREAT_TO_BETTER_TERRAIN_DISTANCE - ASK_FOR_HELP_COMBAT_PREDICTION_RATIO = 0.66 # Below this combat prediction ratio the AI will try to call in more troops + ASK_FOR_HELP_COMBAT_PREDICTION_RATIO = 0.99 # Below this combat prediction ratio the AI will try to call in more troops ASK_FOR_HELP_OTHER_STACK_TROOPS_RATIO = 1.5 # The incoming enemies RETREAT_COMBAT_PREDICTION_RATIO = 0.45 # Below this combat prediction ratio the AI will retreat RETREAT_TO_BETTER_TERRAIN_DISTANCE = 2 # The AI will retreat to better terrain this many provinces away (might do another retreat once it gets there) RETREAT_IF_MISSING_STRENGTH = 0.25 # The AI will retreat if it has this many troops elsewhere compared to the potentially retreating army. E.G., if 2000 men are considered for retreat, it'll do so if there's at least 0.25 * 2000 = 500 men elsewhere STAND_AND_FIGHT_DAYS = 30 # If the AI decides to stand still so the other party can kill it on defensible terrain, it'll start doing regular orders again after this many days if death is not forthcoming - STAND_AND_FIGHT_COOLDOWN_DAYS = 90 # If the AI abandons "stand and fight" due to the above, it'll avoid "stand and fight" for this many days + STAND_AND_FIGHT_COOLDOWN_DAYS = 45 # If the AI abandons "stand and fight" due to the above, it'll avoid "stand and fight" for this many days MIN_GOALS_PER_STACK = 10 # Of all potential target goals found, each unit stack will only do a final evaluation, including pathfinding, on the top x ones. MIN_SUPPLY_COMPARED_TO_AVERAGE_SUPPLY_FACTOR = 0.7 # For the purpose of army sizes, the AI uses the highest of this factor times the average supply in the war area, and the lowest supply in the war area. E.G., if average supply is 2k, and lowest supply is 1k, the AI will act as if available supply is 0.7 * 2k = 1.4k. But if the lowest supply was 1.5k, it'd be using that instead ARMY_SIZE_COMPARED_TO_SUPPLY = 10 # How much larger than the supply are we willing to make a stack? "Supply" here refers to the same number as MIN_SUPPLY_COMPARED_TO_AVERAGE_SUPPLY_FACTOR does @@ -399,27 +409,27 @@ LAST_STAND_CAPITAL_SCORE = 5 # Score added to capital province when picking a final stand province while desperate (Should together with second best terrain advantage be less than best terrain advantage) LAST_STAND_OCCUPIED_SCORE = -1000 # Score added for provinces already occupied by the enemy, prefer making a stand in an unoccupied province to force the enemy into combat - DESPERATE_UNIT_MIN_SIZE = 50 # The AI will not make desperate last stands or attacks with units smaller than this + DESPERATE_UNIT_MIN_SIZE = 150 # The AI will not make desperate last stands or attacks with units smaller than this PLAYER_SUPPORT_WANTED_COMBAT_RATIO = 5.0 # Try to call in nearby allied AI units until this strength ratio is met - PLAYER_SUPPORT_ATTACK_TARGET_MAX_DISTANCE = 200 # If the first enemy unit on the player unit's path is further away than this, the AI units in support will ignore it and instead find better things to do around the player unit - PLAYER_SUPPORT_ATTACK_MAX_ARRIVAL_DELAY = 30 # Ignore to help out in the attack if estimated arrival is this many days after the combat starts - PLAYER_SUPPORT_IGNORE_BAD_SUPPLY_WITHIN_STEPS = 3 # Ignore trying to re-route to avoid bad supply situations when within this many steps from the target province + PLAYER_SUPPORT_ATTACK_TARGET_MAX_DISTANCE = 400 # If the first enemy unit on the player unit's path is further away than this, the AI units in support will ignore it and instead find better things to do around the player unit + PLAYER_SUPPORT_ATTACK_MAX_ARRIVAL_DELAY = 45 # Ignore to help out in the attack if estimated arrival is this many days after the combat starts + PLAYER_SUPPORT_IGNORE_BAD_SUPPLY_WITHIN_STEPS = 4 # Ignore trying to re-route to avoid bad supply situations when within this many steps from the target province - PLAYER_SUPPORT_ENEMY_STRENGTH_MULTIPLIER = 1.25 # The AI will overestimate enemy strength with this multiplier when calculating how many troops should support a player unit + PLAYER_SUPPORT_ENEMY_STRENGTH_MULTIPLIER = 1.5 # The AI will overestimate enemy strength with this multiplier when calculating how many troops should support a player unit PLAYER_SUPPORT_MIN_SIEGE_STRENGTH = 1.25 # The AI will try to add enought troops supporting a player unit to reach a total number that is higher than the largest enemy garrison times this number - TARGET_SCORE_SUPPORT_PLAYER_ONE_STEP = 500 # Added to score when supporting a player unit, and target province is one step away - TARGET_SCORE_SUPPORT_PLAYER_TWO_STEP = 250 # Added to score when supporting a player unit, and target province is two steps away - TARGET_SCORE_SUPPORT_PLAYER_THREE_STEP = 50 # Added to score when supporting a player unit, and target province is three steps away + TARGET_SCORE_SUPPORT_PLAYER_ONE_STEP = 1000 # Added to score when supporting a player unit, and target province is one step away + TARGET_SCORE_SUPPORT_PLAYER_TWO_STEP = 500 # Added to score when supporting a player unit, and target province is two steps away + TARGET_SCORE_SUPPORT_PLAYER_THREE_STEP = 250 # Added to score when supporting a player unit, and target province is three steps away - TARGET_SCORE_IS_SIEGING = 200 # Added to score if the specific AI unit evaluating is sieging the province + TARGET_SCORE_IS_SIEGING = 500 # Added to score if the specific AI unit evaluating is sieging the province TARGET_SCORE_WOULD_LIFT_SIEGE = 190 # Added to score if moving to this province would lift a siege TARGET_SCORE_WOULD_START_COMBAT = 80 # Added to score if moving to this province would start a combat TARGET_SCORE_WOULD_START_SIEGE = 70 # Added to score if moving to this province would start a siege MAX_DISTANCE_SCORE_CLOSE_TO_WAR_GOAL = 75 # At what point do we stop giving extra score to sieging provinces close to the war goal? In pixels added to the war goal radius - TARGET_SCORE_CLOSE_TO_WAR_GOAL = 350 # Added to score if not a war goal province but close enough to the war goal area + TARGET_SCORE_CLOSE_TO_WAR_GOAL = 100 # Added to score if not a war goal province but close enough to the war goal area TARGET_SCORE_SAME_PROVINCE = 25 # Bonus to targets in same province as unit TARGET_SCORE_SAME_COUNTY = 150 # Bonus to targets in same county as unit @@ -470,3 +480,11 @@ NInventory = { NActivity = { ACTIVITY_SCORE_THRESHOLD = 20 # Activities with scores above this threshold will be eligible for hosting. } + +NTaxSlot = { + MIN_SCORE_TO_HIRE_TAX_COLLECTOR = 0 # Threshold for tax_collector_score for ai to consider hiring a candidate as a tax collector + MAX_SCORE_TO_FIRE_TAX_COLLECTOR = -25 # Threshold for tax_collector_score for ai to fire them, anything below will be fired + + MIN_SCORE_RATIO_FOR_TAX_COLLECTOR_HIRE = 0.6 # When selecting a tax collector to hire, anything below this compared to the highest score is discarded + USE_EMPLOYED_CHARACTER_TO_HIRE_CHANCE = 0.15 # The chance to use assigned tax collector for a new tax slot. That means the character will be moved from the current tax slot to a new one +} diff --git a/common/defines/audio/00_audio.txt b/common/defines/audio/00_audio.txt deleted file mode 100644 index 8fc1162712..0000000000 --- a/common/defines/audio/00_audio.txt +++ /dev/null @@ -1,33 +0,0 @@ -NJominiEars = { - RANGE_MIN = 10.0 - RANGE_MAX = 2000.0 -} - -NGameAudioEffects = { - SELECT_PROVINCE = "event:/SFX/UI/Generic/sfx_ui_generic_region_select" - SELECT_ARMY = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_select_army" - SELECT_FLEET = "event:/SFX/UI/Unit/Fleet/sfx_ui_unit_fleet_select_fleet" - MOVE_ARMY = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_move_order" - MOVE_FLEET = "event:/SFX/UI/Unit/Fleet/sfx_ui_unit_fleet_select_fleet" - DEFAULT_IMPORTANT_ACTION = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_alert" # A fallback sound for important actions with so sound defined, see common/important_actions for specific alert sounds - CREATE_ACCOLADE = "event:/DLC/EP2/SFX/UI/Knighthood/ep2_ui_knighthood_lineage_creation" # when creating a new accolade from an acclaimed knight - DIALOG_CONFIRM = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" # default clicksound used for game dialogs when clicking "confirm" -} - -NTextLinkAudio = { # Sounds that should play when clicking text links - CHARACTER = "event:/SFX/UI/Character/sfx_ui_character_portrait_select" - TITLE = "event:/SFX/UI/Generic/sfx_ui_generic_select" - GEOGRAPHICAL_REGION = "event:/SFX/UI/Generic/sfx_ui_generic_region_select" - FAITH = "event:/SFX/UI/Generic/sfx_ui_generic_select" - CULTURE = "event:/SFX/UI/Generic/sfx_ui_generic_select" - DYNASTY_HOUSE = "event:/SFX/UI/Generic/sfx_ui_generic_select" - DYNASTY = "event:/SFX/UI/Generic/sfx_ui_generic_select" -} - -NGameAudio = { - BUSES_TO_STOP_WHEN_NOT_IN_GAME = { "bus:/SFX/Ambience" } # Those buses will have all their events stopped when leaving the map (to main menu, loading a save...) -} - -NCourtScene = { - MAX_CROWD = 20 # how many characters in the royal court scene will trigger max ambient crowd sound intensity -} diff --git a/common/defines/graphic/00_coa.txt b/common/defines/graphic/00_coa.txt deleted file mode 100644 index a006146cb8..0000000000 --- a/common/defines/graphic/00_coa.txt +++ /dev/null @@ -1,3 +0,0 @@ -NCoatOfArms = { - FALLBACK_COLOR = { 204 202 200 } # white -} \ No newline at end of file diff --git a/common/defines/graphic/00_graphics.txt b/common/defines/graphic/00_graphics.txt index 6431552021..daa17a9023 100644 --- a/common/defines/graphic/00_graphics.txt +++ b/common/defines/graphic/00_graphics.txt @@ -408,6 +408,7 @@ NWarMapModes = { NCharacterWindow = { MAX_TRAITS_IN_PERSONALITY_BOX = 4 # How many traits per row in the trait box SKILL_LIST_ITEMS = { 0 1 2 3 4 } + MAX_VISIBLE_MODIFIERS = 8 # When to show the number of extra modifiers } NArmyWindow = { @@ -626,6 +627,8 @@ NGameIcons = { COURT_AMENITY_ICON_PATH = "gfx/interface/icons/amenities" STRUGGLE_PHASE_TYPE_ICON_PATH = "gfx/interface/icons/struggle_types" STRUGGLE_TYPE_ICON_PATH = "gfx/interface/icons/struggle_types" + STRUGGLE_PHASE_TYPE_BACKGROUND_PATH = "gfx/interface/illustrations/struggle_backgrounds" + STRUGGLE_PHASE_TYPE_DETAIL_BACKGROUND_PATH = "gfx/interface/illustrations/struggle_backgrounds/details" MAP_MODE_ICON_PATH = "gfx/interface/icons/flat_icons/map_modes" MEMORY_TYPE_ICON_PATH = "gfx/interface/icons/memory_types" DLC_ICON_PATH = "gfx/interface/icons/dlc" @@ -635,6 +638,10 @@ NGameIcons = { TRAVEL_OPTION_ICON_PATH = "gfx/interface/icons/travel_options" DIARCHY_MANDATE_TYPE_ICON_PATH = "gfx/interface/icons/diarchy_mandates" POINT_OF_INTEREST_TYPE_ICON_PATH = "gfx/interface/icons/point_of_interest_types" + HOUSE_UNITY_STAGE_ICON_PATH = "gfx/interface/icons/currencies/house_unity" + HOUSE_UNITY_STAGE_PROGRESS_BAR_PATH = "gfx/interface/progressbars/house_unity" + HOUSE_UNITY_STAGE_BACKGROUND_PATH = "gfx/interface/illustrations/decisions/fp3" + TAX_SLOT_OBLIGATION_TYPE_PATH = "gfx/interface/icons/tax_slot_obligations" } NOwnMapMode = { @@ -848,3 +855,17 @@ NCoatOfArmsDesigner = { NEW_EMBLEM_DEFAULT_TEXTURE = "ce_fleur.dds" # Default texture for when adding a new emblem and no others exist NEW_EMBLEM_DEFAULT_COLOR = "yellow" # Default color to use in the above texture } + +NStruggle = { + # Default define for showing point based content in gui + POINT_BASED_PHASE_WIDGET_CONTENT = "point_based" + # Default define for showing time based content in gui + TIME_BASED_PHASE_WIDGET_CONTENT = "time_based" + # Default define for showing ending phase content in gui + ENDING_PHASE_WIDGET_CONTENT = "ending_phase" +} + +NHouseUnity = { + NUM_HISTORY_ITEMS_DISPLAYED = 5 # How many house unity history items that should be shown in the tooltip +} + diff --git a/common/diarchies/diarchy_types/00_primeministerships.txt b/common/diarchies/diarchy_types/00_primeministerships.txt new file mode 100644 index 0000000000..38fa38a2d5 --- /dev/null +++ b/common/diarchies/diarchy_types/00_primeministerships.txt @@ -0,0 +1,145 @@ +################################################## +# PRIMEMINISTERSHIPS +## Power sharing arrangements where the diarch is expected to hold authority semi-permanently in order to assist their liege, but still derives that authority from their liege rather than themselves. + +# Vizierates +## A type of diarchy accessible to clans, where the chief minister exercises huge amounts of discretion on behalf of their ruler. This frees the ruler up to better perform at many tasks, but poses greater long-term risks. +## Generally intended to be lower tempo than regencies. +vizierate = { + # Handled via content - this is only for power sharing arrangements we want to start automatically. + start = { always = yes } + + end = { + liege = { + NOT = { government_has_flag = may_appoint_viziers } + } + } + + # Mandates + ## Just the standard suite + mandate = fill_coffers + mandate = swell_armies + mandate = promote_authority + ## Aptitudes. + aptitude_score = { + add = mandate_type_qualification:fill_coffers + add = mandate_type_qualification:swell_armies + add = mandate_type_qualification:promote_authority + } + + # Scales of Power + ## 000 + power_level = { + swing = 0 + parameter = unlock_syphon_treasury_interaction + parameter = unlock_shift_privileges_interaction + parameter = unlock_mulct_vizier_interaction + parameter = lieges_swing_more_against_diarchs + # We put a toggle on here so we can early out of diarchy checks for tax collectors a little faster + explicitly list the diarch bonus. + parameter = diarch_aptitude_helps_tax_collectors_toggle + } + ## 020 + power_level = { + swing = 20 + parameter = primeminister_dismissal_will_upset_administration + parameter = primeminister_requires_county + parameter = diarch_aptitude_helps_tax_collectors_t1 + } + ## 040 + power_level = { + swing = 40 + parameter = diarch_aptitude_helps_tax_collectors_t2 + } + ## 60 + power_level = { + swing = 60 + parameter = primeminister_requires_duchy + parameter = diarch_aptitude_helps_tax_collectors_t3 + parameter = liege_pays_currency_surcharge_for_mundane_interactions_mild + } + power_level = { + swing = 60 + hidden_parameter = vizier_cannot_be_snaked + } + ## 70 + power_level = { + swing = 70 + parameter = liege_pays_currency_surcharge_for_mundane_interactions_medium + } + ## 080 + power_level = { + swing = 80 + parameter = diarch_aptitude_helps_tax_collectors_t4 + parameter = liege_pays_currency_surcharge_for_mundane_interactions_major + } + ## 90 + power_level = { + swing = 90 + parameter = liege_pays_currency_surcharge_for_mundane_interactions_massive + parameter = regents_can_try_to_overthrow_present_lieges + } + + # Trend towards an even balance of power. + swing_balance = { + value = 40 + + # FP3: some phases empower viziers. + #if = { + # limit = { + # any_character_struggle = { + # involvement = involved + # has_struggle_phase_parameter = empowered_vizierate + # } + # } + # add = fp3_empower_viziers_swing_value + #} + } + + succession = yes + # Candidate scoring for succession. + candidate_score = { add = diarchy_vizier_succession_score_value } + + # Container for hidden parameters. + power_level = { + swing = 0 + hidden_parameter = diarchy_is_vizierate + hidden_parameter = vizier_sits_in_the_council_instead_of_spouse + # This one isn't hooked up to anything yet - just here to establish a parameter standard for mods & potential... _future_ diarchies. + hidden_parameter = diarchy_is_primeministership + hidden_parameter = mandate_tempo_slow + } + + loyalty_score = { add = diarch_loyalty_score_type_vizierate_value } + + end_interaction = liege_dismiss_vizier_interaction + + liege_modifier = { + name = from_diarch_domain_limit_bonus + tax_slot_add = 1 + scale = { add = vizier_bonus_tax_jurisdictions_value } + } + + diarch_modifier = { + name = family_member_is_civil_servant + stress_gain_mult = 0.3 + monthly_dynasty_prestige = -0.25 + } + diarch_modifier = { + name = civil_servant_salary_and_corruption + monthly_income = 1 + scale = { + add = liege.monthly_character_balance + multiply = { + add = stewardship + # Get nearest complete 5. + divide = 5 + round = yes + min = 1 + # And fractalise. + divide = 20 + # So we should be getting something like 5% of our liege's income per 5 stewardship, with rounding errors. + ## Plus, y'know, Paradox maths. + } + } + } +} diff --git a/common/diarchies/diarchy_types/00_regencies.txt b/common/diarchies/diarchy_types/00_regencies.txt deleted file mode 100644 index 833d07e2aa..0000000000 --- a/common/diarchies/diarchy_types/00_regencies.txt +++ /dev/null @@ -1,211 +0,0 @@ -################################################## -# REGENCIES -## Power sharing arrangements where the diarch is expected to hold authority temporarily in order to assist their liege. - -# Temporary Regencies -## Regencies that are expected to be over shortly, and where the liege can take authority back without issue. -## Referenced in code - this is the default diarchy type, it must always exist and be available to any ruler -temporary_regency = { - # Handled via content - this is only for power sharing arrangements we want to start automatically. - start = { always = yes } - - # Handled via content - this is only for power sharing arrangements we want to end automatically. - end = { always = no } - - # Mandates - ## Just the standard suite - mandate = fill_coffers - mandate = swell_armies - mandate = promote_authority - ## Aptitudes. - aptitude_score = { - add = mandate_type_qualification:fill_coffers - add = mandate_type_qualification:swell_armies - add = mandate_type_qualification:promote_authority - } - - # 000 - ## Diarch unlocks Syphon Treasury interaction. - power_level = { - swing = 0 - parameter = can_be_instantly_dismissed - parameter = unlock_syphon_treasury_interaction - } - # 033 - ## Diarch unlocks Diarch Imprison interaction. - power_level = { - swing = 33 - parameter = unlock_diarch_imprison_interaction - } - # 066 - ## Diarch unlocks Legal Meddling interaction. - power_level = { - swing = 66 - parameter = unlock_legal_meddling_interaction - } - # 100 - ## Diarch unlocks Entrench Regency interaction. - power_level = { - swing = 100 - parameter = unlock_entrench_regency_interaction - parameter = diarch_gets_a_free_change_on_vassal_contract - } - - # The longer a temporary regency goes on, the more likely it is to become entrenched. - swing_balance = { value = 100 } - - succession = yes - # Candidate scoring for succession. - candidate_score = { add = diarchy_regent_succession_score_value } - - # Container for hidden parameters. - power_level = { - swing = 0 - hidden_parameter = diarchy_is_regency - hidden_parameter = diarchy_type_is_temporary_regency - } - - loyalty_score = { add = diarch_loyalty_score_type_regency_value } - - end_interaction = liege_dismiss_temporary_regency_interaction - - liege_modifier = { - name = from_diarch_stress_loss - stress_loss_mult = 0.1 - } - - diarch_modifier = { - name = to_diarch_stress_gain - stress_gain_mult = 0.15 - } -} - -# Entrenched Regencies -## Regencies that have matured or had time to become severe, making them more of a pain to remove. -## Referenced in code - this is the diarchy type used for long-term diarchies, it must always exist and be available to any ruler -regency = { - # Handled via content - this is only for power sharing arrangements we want to start automatically. - start = { always = yes } - - # Handled via content - this is only for power sharing arrangements we want to end automatically. - end = { always = no } - - # Mandates - ## Just the standard suite - mandate = fill_coffers - mandate = swell_armies - mandate = promote_authority - ## Aptitudes. - aptitude_score = { - add = mandate_type_qualification:fill_coffers - add = mandate_type_qualification:swell_armies - add = mandate_type_qualification:promote_authority - } - - # Scales of Power - ## 000 - power_level = { - swing = 0 - parameter = dismissal_requires_gift - parameter = unlock_syphon_treasury_interaction - parameter = diarch_can_subsidise_liege_authority - } - ## 020 - power_level = { - swing = 20 - parameter = unlock_shift_privileges_interaction - parameter = diarch_gets_a_free_change_on_vassal_contract - parameter = regency_free_end_below_this_point - } - ## 040 - power_level = { - swing = 40 - parameter = unlock_legal_meddling_interaction - parameter = unlock_diarch_revoke_title_interaction - parameter = liege_pays_currency_surcharge_for_mundane_interactions_mild - } - ## 60 - power_level = { - swing = 60 - parameter = unlock_diarch_retract_vassal_interaction - parameter = unlock_diarch_imprison_interaction - parameter = liege_pays_currency_surcharge_for_mundane_interactions_medium - } - ## 080 - power_level = { - swing = 80 - parameter = liege_pays_currency_surcharge_for_mundane_interactions_major - parameter = regency_cant_be_ended_above_this_point - } - ## 95 - power_level = { - swing = 95 - parameter = liege_pays_currency_surcharge_for_mundane_interactions_massive - parameter = regents_can_try_to_overthrow_present_lieges - parameter = regents_can_try_to_overthrow_present_lieges_help - } - - # Trend towards an even balance of power. - swing_balance = { - value = 50 - - # Accolades - ## Politicker helps liege during a regency - if = { - limit = { - liege ?= { - any_active_accolade = { - has_accolade_parameter = accolade_influences_regency - } - } - } - add = accolade_scales_of_power_value - } - if = { - limit = { - liege ?= { - any_active_accolade = { - has_accolade_parameter = accolade_influences_regency_high - } - } - } - add = accolade_scales_of_power_value_high - } - # Liege is able to end diarchy. - if = { - limit = { - liege ?= { can_leave_diarchy_trigger = yes } - } - multiply = 0 - } - } - - succession = yes - # Candidate scoring for succession. - candidate_score = { add = diarchy_regent_succession_score_value } - - # Container for hidden parameters. - power_level = { - swing = 0 - hidden_parameter = diarchy_is_regency - hidden_parameter = diarchy_type_is_entrenched_regency - } - - loyalty_score = { add = diarch_loyalty_score_type_regency_value } - - end_interaction = liege_dismiss_entrenched_regency_interaction - - liege_modifier = { - name = from_diarch_domain_limit_bonus - domain_limit = 1 - scale = { - add = stewardship - divide = 6 - } - } - - diarch_modifier = { - name = to_diarch_stress_gain - stress_gain_mult = 0.3 - } -} diff --git a/common/customizable_localization/00_retinue_custom_loc.txt b/common/dna_data/00_fp3_dna.txt similarity index 100% rename from common/customizable_localization/00_retinue_custom_loc.txt rename to common/dna_data/00_fp3_dna.txt diff --git a/common/dynasty_legacies/95_fp3_legacies.txt b/common/dynasty_legacies/95_fp3_legacies.txt new file mode 100644 index 0000000000..07709069a4 --- /dev/null +++ b/common/dynasty_legacies/95_fp3_legacies.txt @@ -0,0 +1,18 @@ +fp3_khvarenah_legacy_track = { + is_shown = { + has_dlc_feature = legacy_of_persia + dynasty = { + OR = { + AND = { + dynast = { + is_ruler = yes + government_has_flag = government_is_clan + } + } + has_dynasty_perk = fp3_khvarenah_legacy_1 + } + } + } +} + + diff --git a/common/dynasty_legacies/96_fp2_legacies.txt b/common/dynasty_legacies/96_fp2_legacies.txt index 4b3089860a..441cb46908 100644 --- a/common/dynasty_legacies/96_fp2_legacies.txt +++ b/common/dynasty_legacies/96_fp2_legacies.txt @@ -27,7 +27,6 @@ fp2_urbanism_legacy_track = { has_dynasty_perk = fp2_urbanism_legacy_1 } } - } } diff --git a/common/dynasty_perks/03_fp3_dynasty_perks.txt b/common/dynasty_perks/03_fp3_dynasty_perks.txt new file mode 100644 index 0000000000..7d26d2b0f9 --- /dev/null +++ b/common/dynasty_perks/03_fp3_dynasty_perks.txt @@ -0,0 +1,115 @@ +fp3_khvarenah_legacy_1 = { # Sense of Purpose + legacy = fp3_khvarenah_legacy_track + + can_be_picked = { eligible_for_fp3_khvarenah_legacy_trigger = yes } + + effect = { + custom_description_no_bullet = { text = fp3_khvarenah_legacy_court_positions_effect } + } + + character_modifier = { + clan_tax_slot_add = 1 + } + + ai_chance = { + value = 11 + if = { + limit = { + culture = { like_heritage_iranian_trigger = yes } + } + multiply = 10 + } + if = { + limit = { + can_start_new_legacy_track_trigger = no + } + multiply = 0 + } + } +} + +fp3_khvarenah_legacy_2 = { # Lofty Ambitions + legacy = fp3_khvarenah_legacy_track + + can_be_picked = { eligible_for_fp3_khvarenah_legacy_trigger = yes } + + effect = { + custom_description_no_bullet = { text = fp3_khvarenah_legacy_2_hostile_effect } + } + + character_modifier = { + personal_scheme_power_mult = 0.25 + owned_personal_scheme_success_chance_add = 15 + monthly_stewardship_lifestyle_xp_gain_mult = 0.15 + } + + ai_chance = { + value = 100 + } +} + +fp3_khvarenah_legacy_3 = { # Light of Glory + legacy = fp3_khvarenah_legacy_track + + can_be_picked = { eligible_for_fp3_khvarenah_legacy_trigger = yes } + + effect = { + custom_description_no_bullet = { + text = fp3_khvarenah_legacy_3_marriage_effect + } + custom_description_no_bullet = { + text = fp3_khvarenah_legacy_3_spouse_task_effect + } + } + + character_modifier = { + courtly_tax_contribution_mult = 0.15 + glory_hound_levy_contribution_mult = 0.15 + } + + ai_chance = { + value = 100 + } +} + +fp3_khvarenah_legacy_4 = { # Ancient Authority + legacy = fp3_khvarenah_legacy_track + + can_be_picked = { eligible_for_fp3_khvarenah_legacy_trigger = yes } + + + effect = { + custom_description_no_bullet = { + text = fp3_khvarenah_legacy_tax_collector_effect #better tax collectors + } + if = { + limit = { has_dlc_feature = royal_court } + custom_description_no_bullet = { + text = fp3_khvarenah_legacy_4_effect #Better Bestow Royal Favor council task + } + } + custom_description_no_bullet = { + text = fp3_khvarenah_legacy_4_secondary_effect #can recruit Asawira + } + } + + ai_chance = { + value = 100 + } +} + +fp3_khvarenah_legacy_5 = { # Splendor Reborn + legacy = fp3_khvarenah_legacy_track + + can_be_picked = { eligible_for_fp3_khvarenah_legacy_trigger = yes } + + effect = { + custom_description_no_bullet = { text = fp3_khvarenah_legacy_5_decision_effect } + } + + ai_chance = { + value = 100 + } +} + + diff --git a/common/effect_localization/00_activity_effects.txt b/common/effect_localization/00_activity_effects.txt deleted file mode 100644 index 2f1688a796..0000000000 --- a/common/effect_localization/00_activity_effects.txt +++ /dev/null @@ -1,56 +0,0 @@ -accept_activity_invite = { - first = I_ACCEPT_THE_INVITATION - third = CHARACTER_ACCEPTS_INVITATION - global = GLOBAL_ACCEPTS_INVITATION - first_past = I_ACCEPT_THE_INVITATION_PAST - third_past = CHARACTER_ACCEPTS_INVITATION_PAST - global_past = GLOBAL_ACCEPTS_INVITATION_PAST -} - -decline_activity_invite = { - first = I_DECLINE_THE_INVITATION - third = CHARACTER_DECLINES_INVITATION - global = GLOBAL_DECLINES_INVITATION - first_past = I_DECLINE_THE_INVITATION_PAST - third_past = CHARACTER_DECLINES_INVITATION_PAST - global_past = GLOBAL_DECLINES_INVITATION_PAST -} - -invite_to_activity = { - first = I_AM_INVITED - third = CHARACTER_IS_INVITED - global = GLOBAL_IS_INVITED -} - -spiteful_guests_liked_defacing = { - global = GUESTS_LIKED_DEFACING - first = GUESTS_LIKED_DEFACING - third = GUESTS_LIKED_DEFACING -} - -remove_from_activity = { - first = I_AM_REMOVED_FROM_ACTIVITY - third = CHARACTER_IS_REMOVED_FROM_ACTIVITY - global = GLOBAL_IS_REMOVED_FROM_ACTIVITY - first_past = I_AM_REMOVED_FROM_ACTIVITY_PAST - third_past = CHARACTER_IS_REMOVED_FROM_ACTIVITY_PAST - global_past = GLOBAL_IS_REMOVED_FROM_ACTIVITY_PAST -} - -add_to_activity = { - first = I_AM_ADDED_TO_ACTIVITY - third = THEY_ARE_ADDED_TO_ACTIVITY - global = ADDED_TO_ACTIVITY - first_past = I_AM_ADDED_TO_ACTIVITY_PAST - third_past = THEY_ARE_ADDED_TO_ACTIVITY_PAST - global_past = ADDED_TO_ACTIVITY_PAST -} - -skip_activity_phase = { - first = SKIP_ACTIVITY_PHASE_FIRST - third = SKIP_ACTIVITY_PHASE_FIRST - global = SKIP_ACTIVITY_PHASE_GLOBAL - first_past = SKIP_ACTIVITY_PHASE_FIRST_PAST - third_past = SKIP_ACTIVITY_PHASE_FIRST_PAST - global_past = SKIP_ACTIVITY_PHASE_GLOBAL_PAST -} diff --git a/common/effect_localization/00_additional_effects.txt b/common/effect_localization/00_additional_effects.txt deleted file mode 100644 index 666630ca71..0000000000 --- a/common/effect_localization/00_additional_effects.txt +++ /dev/null @@ -1,223 +0,0 @@ -# Effects that are unlikely to ever be seen, but have loc just in case - -set_num_pregnancy_children = { - global = SET_NUM_PREGNANCY_CHILDREN_EFFECT - global_past = SET_NUM_PREGNANCY_CHILDREN_PAST_EFFECT -} -copy_inheritable_appearance_from = { - global = COPY_INHERITABLE_APPEARANCE_FROM_EFFECT - global_past = COPY_INHERITABLE_APPEARANCE_FROM_PAST_EFFECT -} -start_tutorial_lesson = { - global = START_TUTORIAL_LESSON_EFFECT - global_past = START_TUTORIAL_LESSON_PAST_EFFECT -} -clear_title_laws_effects = { - global = CLEAR_TITLE_LAWS_EFFECTS_EFFECT - global_past = CLEAR_TITLE_LAWS_EFFECTS_PAST_EFFECT -} -add_title_law_effects = { - global = ADD_TITLE_LAW_EFFECTS_EFFECT - global_past = ADD_TITLE_LAW_EFFECTS_PAST_EFFECT -} -add_knows_of_killer = { - global = ADD_KNOWS_OF_KILLER_EFFECT - global_past = ADD_KNOWS_OF_KILLER_PAST_EFFECT -} -set_generated_bisexuality_chance = { - global = SET_GENERATED_BISEXUALITY_CHANCE_EFFECT - global_past = SET_GENERATED_BISEXUALITY_CHANCE_PAST_EFFECT -} -change_target_weight = { - global = CHANGE_TARGET_WEIGHT_EFFECT - global_past = CHANGE_TARGET_WEIGHT_PAST_EFFECT -} -remove_special_title = { - global = REMOVE_SPECIAL_TITLE_EFFECT - global_past = REMOVE_SPECIAL_TITLE_PAST_EFFECT -} -pledge_defender = { - global = PLEDGE_DEFENDER_EFFECT - global_past = PLEDGE_DEFENDER_PAST_EFFECT -} -remove_perk = { - global = REMOVE_PERK_EFFECT - global_past = REMOVE_PERK_PAST_EFFECT -} -try_create_suggestion = { - global = TRY_CREATE_SUGGESTION_EFFECT - global_past = TRY_CREATE_SUGGESTION_PAST_EFFECT -} -join_faction_skip_check = { - global = JOIN_FACTION_SKIP_CHECK_EFFECT - global_past = JOIN_FACTION_SKIP_CHECK_PAST_EFFECT -} -create_alliance = { - global = CREATE_ALLIANCE_EFFECT - global_past = CREATE_ALLIANCE_PAST_EFFECT -} -title_create_faction = { - global = TITLE_CREATE_FACTION_EFFECT - global_past = TITLE_CREATE_FACTION_PAST_EFFECT - third = TITLE_CREATE_FACTION_EFFECT -} -set_special_title = { - global = SET_SPECIAL_TITLE_EFFECT - global_past = SET_SPECIAL_TITLE_PAST_EFFECT -} -set_pregnancy_assumed_father = { - global = SET_PREGNANCY_ASSUMED_FATHER_EFFECT - global_past = SET_PREGNANCY_ASSUMED_FATHER_PAST_EFFECT -} -battle_event = { - global = BATTLE_EVENT_EFFECT - global_past = BATTLE_EVENT_PAST_EFFECT -} -remove_province_modifier = { - global = REMOVE_PROVINCE_MODIFIER_EFFECT - global_past = REMOVE_PROVINCE_MODIFIER_PAST_EFFECT -} -remove_realm_law = { - global = REMOVE_REALM_LAW_EFFECT - global_past = REMOVE_REALM_LAW_PAST_EFFECT -} -remove_all_character_modifier_instances = { - global = REMOVE_ALL_CHARACTER_MODIFIER_INSTANCES_EFFECT - global_past = REMOVE_ALL_CHARACTER_MODIFIER_INSTANCES_PAST_EFFECT -} -set_special_character = { - global = SET_SPECIAL_CHARACTER_EFFECT - global_past = SET_SPECIAL_CHARACTER_PAST_EFFECT -} -set_killer_public = { - global = SET_KILLER_PUBLIC_EFFECT - global_past = SET_KILLER_PUBLIC_PAST_EFFECT -} -set_generated_homosexuality_chance = { - global = SET_GENERATED_HOMOSEXUALITY_CHANCE_EFFECT - global_past = SET_GENERATED_HOMOSEXUALITY_CHANCE_PAST_EFFECT -} -consume_divorce_reasons = { - global = CONSUME_DIVORCE_REASONS_EFFECT - global_past = CONSUME_DIVORCE_REASONS_PAST_EFFECT -} -copy_title_history = { - global = COPY_TITLE_HISTORY_EFFECT - global_past = COPY_TITLE_HISTORY_PAST_EFFECT -} -remove_all_dynasty_modifier_instances = { - global = REMOVE_ALL_DYNASTY_MODIFIER_INSTANCES_EFFECT - global_past = REMOVE_ALL_DYNASTY_MODIFIER_INSTANCES_PAST_EFFECT -} -assign_commander = { - global = ASSIGN_COMMANDER_EFFECT - global_past = ASSIGN_COMMANDER_PAST_EFFECT -} -refund_perks = { - global = REFUND_PERKS_EFFECT - global_past = REFUND_PERKS_PAST_EFFECT -} -remove_special_character = { - global = REMOVE_SPECIAL_CHARACTER_EFFECT - global_past = REMOVE_SPECIAL_CHARACTER_PAST_EFFECT -} -allow_in_scheme = { - global = ALLOW_IN_SCHEME_EFFECT - global_past = ALLOW_IN_SCHEME_PAST_EFFECT -} -add_perk = { - global = ADD_PERK_EFFECT - first = ADD_PERK_EFFECT - third = ADD_PERK_EFFECT - global_past = ADD_PERK_PAST_EFFECT - first_past = ADD_PERK_PAST_EFFECT - third_past = ADD_PERK_PAST_EFFECT -} -set_generated_asexuality_chance = { - global = SET_GENERATED_ASEXUALITY_CHANCE_EFFECT - global_past = SET_GENERATED_ASEXUALITY_CHANCE_PAST_EFFECT -} -clear_forced_vote = { - global = CLEAR_FORCED_VOTE_EFFECT - global_past = CLEAR_FORCED_VOTE_PAST_EFFECT -} -remove_title_law_effects = { - global = REMOVE_TITLE_LAW_EFFECTS_EFFECT - global_past = REMOVE_TITLE_LAW_EFFECTS_PAST_EFFECT -} -change_first_name = { - global = CHANGE_FIRST_NAME_EFFECT - global_past = CHANGE_FIRST_NAME_PAST_EFFECT -} -remove_all_house_modifier_instances = { - global = REMOVE_ALL_HOUSE_MODIFIER_INSTANCES_EFFECT - global_past = REMOVE_ALL_HOUSE_MODIFIER_INSTANCES_PAST_EFFECT -} -add_hook_no_toast = { - global = ADD_HOOK_NO_TOAST_EFFECT - global_past = ADD_HOOK_NO_TOAST_PAST_EFFECT -} -set_real_father = { - global = SET_REAL_FATHER_EFFECT - global_past = SET_REAL_FATHER_PAST_EFFECT -} -set_real_mother = { - global = SET_REAL_MOTHER_EFFECT - global_past = SET_REAL_MOTHER_PAST_EFFECT -} -adopt = { - first = I_ADOPT_EFFECT - first_past = I_ADOPTED_EFFECT - third = THEY_ADOPT_EFFECT - third_past = THEY_ADOPTED_EFFECT - global = ADOPT_EFFECT - global_past = ADOPTED_EFFECT -} -set_immortal_age = { - global = SET_IMMORTAL_AGE_EFFECT - global_past = SET_IMMORTAL_AGE_PAST_EFFECT -} -add_dynasty_perk = { - global = ADD_DYNASTY_PERK_EFFECT - global_past = ADD_DYNASTY_PERK_PAST_EFFECT -} -remove_dynasty_perk = { - global = REMOVE_DYNASTY_PERK_EFFECT - global_past = REMOVE_DYNASTY_PERK_PAST_EFFECT -} -change_current_weight = { - global = CHANGE_CURRENT_WEIGHT_EFFECT - global_past = CHANGE_CURRENT_WEIGHT_PAST_EFFECT -} -remove_all_province_modifier_instances = { - global = REMOVE_ALL_PROVINCE_MODIFIER_INSTANCES_EFFECT - global_past = REMOVE_ALL_PROVINCE_MODIFIER_INSTANCES_PAST_EFFECT -} -create_dynamic_title = { - global = CREATE_DYNAMIC_TITLE_EFFECT - global_past = CREATE_DYNAMIC_TITLE_PAST_EFFECT -} -remove_commander = { - global = REMOVE_COMMANDER_EFFECT - global_past = REMOVE_COMMANDER_PAST_EFFECT -} -remove_title_law = { - global = REMOVE_TITLE_LAW_EFFECT - global_past = REMOVE_TITLE_LAW_PAST_EFFECT -} -remove_all_county_modifier_instances = { - global = REMOVE_ALL_COUNTY_MODIFIER_INSTANCES_EFFECT - global_past = REMOVE_ALL_COUNTY_MODIFIER_INSTANCES_PAST_EFFECT -} -faction_remove_war = { - global = FACTION_REMOVE_WAR_EFFECT - global_past = FACTION_REMOVE_WAR_PAST_EFFECT -} -get_all_innovations_from = { - global = GET_ALL_INNOVATIONS_FROM_EFFECT - global_past = GET_ALL_INNOVATIONS_FROM_PAST_EFFECT -} -add_loot = { - global = ADD_LOOT_RAIDING_ARMY_EFFECT - global_past = ADD_LOOT_RAIDING_ARMY_PAST_EFFECT -} diff --git a/common/effect_localization/00_character_effects.txt b/common/effect_localization/00_character_effects.txt deleted file mode 100644 index 5d026b863a..0000000000 --- a/common/effect_localization/00_character_effects.txt +++ /dev/null @@ -1,1809 +0,0 @@ -add_gold = { - first_past = I_GAINED_GOLD_EFFECT - third_past = THEY_GAINED_GOLD_EFFECT - global_past = GAINED_GOLD_EFFECT - first = I_GAIN_GOLD_EFFECT - third = THEY_GAIN_GOLD_EFFECT - global = GAIN_GOLD_EFFECT -} - -remove_gold = { - first_past = I_LOST_GOLD_EFFECT - third_past = THEY_LOST_GOLD_EFFECT - global_past = LOST_GOLD_EFFECT - first = I_LOSE_GOLD_EFFECT - third = THEY_LOSE_GOLD_EFFECT - global = LOSE_GOLD_EFFECT -} - -pay_gold = { - global = PAYS_GOLD_EFFECT - global_neg = PAYS_GOLD_EFFECT_NEG - first_past = I_PAID_GOLD_EFFECT - first_past_neg = I_WAS_PAID_GOLD_EFFECT - third_past = THEY_PAID_GOLD_EFFECT - third_past_neg = THEY_WERE_PAID_GOLD_EFFECT - global_past = PAID_GOLD_EFFECT - global_past_neg = WERE_PAID_GOLD_EFFECT - first = I_PAY_GOLD_EFFECT - first_neg = I_AM_PAID_GOLD_EFFECT - third = PAY_GOLD_EFFECT - third_neg = IS_PAID_GOLD_EFFECT -} - -add_opinion = { - first_past = I_GAINED_OPINION_EFFECT - first_past_neg = I_LOST_OPINION_EFFECT - third_past = THEY_GAINED_OPINION_EFFECT - third_past_neg = THEY_LOST_OPINION_EFFECT - global_past = GAINED_OPINION_EFFECT - global_past_neg = LOST_OPINION_EFFECT - first = I_GAIN_OPINION_EFFECT - first_neg = I_LOSE_OPINION_EFFECT - third = THEY_GAIN_OPINION_EFFECT - third_neg = THEY_LOSE_OPINION_EFFECT - global = GAIN_OPINION_EFFECT - global_neg = LOSE_OPINION_EFFECT -} -add_opinion_for_duration = { - first_past = I_GAINED_OPINION_FOR_DURATION_EFFECT - first_past_neg = I_LOST_OPINION_FOR_DURATION_EFFECT - third_past = THEY_GAINED_OPINION_FOR_DURATION_EFFECT - third_past_neg = THEY_LOST_OPINION_FOR_DURATION_EFFECT - global_past = GAINED_OPINION_FOR_DURATION_EFFECT - global_past_neg = LOST_OPINION_FOR_DURATION_EFFECT - first = I_GAIN_OPINION_FOR_DURATION_EFFECT - first_neg = I_LOSE_OPINION_FOR_DURATION_EFFECT - third = THEY_GAIN_OPINION_FOR_DURATION_EFFECT - third_neg = THEY_LOSE_OPINION_FOR_DURATION_EFFECT - global = GAIN_OPINION_FOR_DURATION_EFFECT - global_neg = LOSE_OPINION_FOR_DURATION_EFFECT -} -add_opinion_decaying = { - first_past = I_GAINED_DECAYING_OPINION_EFFECT - first_past_neg = I_LOST_DECAYING_OPINION_EFFECT - third_past = THEY_GAINED_DECAYING_OPINION_EFFECT - third_past_neg = THEY_LOST_DECAYING_OPINION_EFFECT - global_past = GAINED_DECAYING_OPINION_EFFECT - global_past_neg = LOST_DECAYING_OPINION_EFFECT - first = I_GAIN_DECAYING_OPINION_EFFECT - first_neg = I_LOSE_DECAYING_OPINION_EFFECT - third = THEY_GAIN_DECAYING_OPINION_EFFECT - third_neg = THEY_LOSE_DECAYING_OPINION_EFFECT - global = GAIN_DECAYING_OPINION_EFFECT - global_neg = LOSE_DECAYING_OPINION_EFFECT -} -add_opinion_growing = { - first = I_GAIN_GROWING_OPINION_EFFECT - first_neg = I_LOSE_GROWING_OPINION_EFFECT - third = THEY_GAIN_GROWING_OPINION_EFFECT - third_past = THEY_GAINED_GROWING_OPINION_EFFECT - third_neg = THEY_LOSE_GROWING_OPINION_EFFECT - global = GAIN_GROWING_OPINION_EFFECT - global_neg = LOSE_GROWING_OPINION_EFFECT -} - -add_opinion_imprison_reason = { - first_past = ADD_OPINION_EFFECT_HAD_IMPRISONMENT_REASON - first = ADD_OPINION_EFFECT_HAS_IMPRISONMENT_REASON - third_past = ADD_OPINION_EFFECT_HAD_IMPRISONMENT_REASON - third = ADD_OPINION_EFFECT_HAS_IMPRISONMENT_REASON - global_past = ADD_OPINION_EFFECT_HAD_IMPRISONMENT_REASON - global = ADD_OPINION_EFFECT_HAS_IMPRISONMENT_REASON -} - -add_opinion_imprison_reason_unusable = { - first_past = ADD_OPINION_EFFECT_I_HAVE_IMPRISONMENT_REASON_UNUSABLE - first = ADD_OPINION_EFFECT_I_HAVE_IMPRISONMENT_REASON_UNUSABLE - global_past = ADD_OPINION_EFFECT_HAD_IMPRISONMENT_REASON_UNUSABLE - global = ADD_OPINION_EFFECT_HAS_IMPRISONMENT_REASON_UNUSABLE -} - -remove_opinion = { - global = REMOVE_OPINION_EFFECT - global_past = REMOVED_OPINION_EFFECT - first = REMOVE_OPINION_EFFECT_FIRST - third = REMOVE_OPINION_EFFECT_THIRD - third_past = REMOVED_OPINION_EFFECT_THIRD -} - -add_dread = { - first_past = I_GAINED_DREAD_EFFECT - first_past_neg = I_LOST_DREAD_EFFECT - third_past = THEY_GAINED_DREAD_EFFECT - third_past_neg = THEY_LOST_DREAD_EFFECT - global_past = GAINED_DREAD_EFFECT - global_past_neg = LOST_DREAD_EFFECT - first = I_GAIN_DREAD_EFFECT - first_neg = I_LOSE_DREAD_EFFECT - third = THEY_GAIN_DREAD_EFFECT - third_neg = THEY_LOSE_DREAD_EFFECT - global = GAIN_DREAD_EFFECT - global_neg = LOSE_DREAD_EFFECT -} - -create_betrothal = { - global = CREATE_BETROTHAL_EFFECT - third = THEY_GET_BETROTHED_EFFECT - global_past = CREATED_BETROTHAL_EFFECT - third_past = THEY_GOT_BETROTHED_EFFECT -} - -create_betrothal_matrilineal = { - global = CREATE_BETROTHAL_MATRILINEAL_EFFECT -} - -break_betrothal = { - first = I_BREAK_BETROTHAL_EFFECT - third = THEY_BREAK_BETROTHAL_EFFECT - global = BREAK_BETROTHAL_EFFECT - first_past = I_BROKE_BETROTHAL_EFFECT - third_past = THEY_BROKE_BETROTHAL_EFFECT - global_past = BROKE_BETROTHAL_EFFECT -} - -make_concubine = { - first_past = I_MADE_CONCUBINE_EFFECT - third_past = THEY_MADE_CONCUBINE_EFFECT - global_past = MADE_CONCUBINE_EFFECT - global = MAKE_CONCUBINE_EFFECT -} - -remove_concubine = { - third_past = THEY_REMOVE_CONCUBINE_EFFECT - global = REMOVE_CONCUBINE_EFFECT -} - -add_stress = { - first_past = I_GAINED_STRESS_EFFECT - first_past_neg = I_LOST_STRESS_EFFECT - third_past = THEY_GAINED_STRESS_EFFECT - third_past_neg = THEY_LOST_STRESS_EFFECT - global_past = GAINED_STRESS_EFFECT - global_past_neg = LOST_STRESS_EFFECT - first = I_GAIN_STRESS_EFFECT - first_neg = I_LOSE_STRESS_EFFECT - third = THEY_GAIN_STRESS_EFFECT - third_neg = THEY_LOSE_STRESS_EFFECT - global = GAIN_STRESS_EFFECT - global_neg = LOSE_STRESS_EFFECT -} - -add_stress_critical = { - first_past = I_GAINED_STRESS_CRITICAL_EFFECT - global_past = GAINED_STRESS_CRITICAL_EFFECT - first = I_GAIN_STRESS_CRITICAL_EFFECT - global = GAIN_STRESS_CRITICAL_EFFECT - third = THEY_GAIN_STRESS_CRITICAL_EFFECT -} - -set_to_lowborn = { - first_past = I_BECAME_LOWBORN_EFFECT - third_past = THEY_BECAME_LOWBORN_EFFECT - global_past = BECAME_LOWBORN_EFFECT - first = I_BECOME_LOWBORN_EFFECT - third = THEY_BECOME_LOWBORN_EFFECT - global = BECOMES_LOWBORN_EFFECT - global_neg = DO_NOT_SET_TO_LOWBORN -} - -set_dynasty = { - global = SET_DYNASTY_EFFECT -} - -set_known_bastard_on_pregnancy = { - first = SET_MY_KNOWN_BASTARD_ON_PREGNANCY - third = SET_THEIR_KNOWN_BASTARD_ON_PREGNANCY - global = SET_KNOWN_BASTARD_ON_PREGNANCY - first_past = SET_MY_KNOWN_BASTARD_ON_PREGNANCY - third_past = SET_THEIR_KNOWN_BASTARD_ON_PREGNANCY - global_past = SET_KNOWN_BASTARD_ON_PREGNANCY - - first_neg = SET_MY_UNKNOWN_BASTARD_ON_PREGNANCY - third_neg = SET_THEIR_UNKNOWN_BASTARD_ON_PREGNANCY - global_neg = SET_UNKNOWN_BASTARD_ON_PREGNANCY - first_past_neg = SET_MY_UNKNOWN_BASTARD_ON_PREGNANCY - third_past_neg = SET_THEIR_UNKNOWN_BASTARD_ON_PREGNANCY - global_past_neg = SET_UNKNOWN_BASTARD_ON_PREGNANCY -} - -make_pregnant = { - global = BECOMES_PREGNANT_WITH_TARGET_CHARACTERS_CHILD - first = I_BECOME_PREGNANT_WITH_TARGET_CHARACTERS_CHILD - third = CHARACTER_BECOMES_PREGNANT_WITH_TARGET_CHARACTERS_CHILD -} - -set_father = { - global = SET_FATHER_OF_CHARACTER - first = SET_MY_FATHER - third = SET_THEIR_FATHER - global_past = SAT_FATHER_OF_CHARACTER - first_past = SAT_MY_FATHER - third_past = SAT_THEIR_FATHER -} - -add_prestige = { - first_past = I_GAINED_PRESTIGE_EFFECT - first_past_neg = I_LOST_PRESTIGE_EFFECT - third_past = THEY_GAINED_PRESTIGE_EFFECT - third_past_neg = THEY_LOST_PRESTIGE_EFFECT - global_past = GAINED_PRESTIGE_EFFECT - global_past_neg = LOST_PRESTIGE_EFFECT - first = I_GAIN_PRESTIGE_EFFECT - first_neg = I_LOSE_PRESTIGE_EFFECT - third = THEY_GAIN_PRESTIGE_EFFECT - third_neg = THEY_LOSE_PRESTIGE_EFFECT - global = GAIN_PRESTIGE_EFFECT - global_neg = LOSE_PRESTIGE_EFFECT -} - -add_prestige_experience = { - first_past = I_GAINED_PRESTIGE_EXPERIENCE_EFFECT - first_past_neg = I_LOST_PRESTIGE_EXPERIENCE_EFFECT - third_past = THEY_GAINED_PRESTIGE_EXPERIENCE_EFFECT - third_past_neg = THEY_LOST_PRESTIGE_EXPERIENCE_EFFECT - global_past = GAINED_PRESTIGE_EXPERIENCE_EFFECT - global_past_neg = LOST_PRESTIGE_EXPERIENCE_EFFECT - first = I_GAIN_PRESTIGE_EXPERIENCE_EFFECT - first_neg = I_LOSE_PRESTIGE_EXPERIENCE_EFFECT - third = THEY_GAIN_PRESTIGE_EXPERIENCE_EFFECT - third_neg = THEY_LOSE_PRESTIGE_EXPERIENCE_EFFECT - global = GAIN_PRESTIGE_EXPERIENCE_EFFECT - global_neg = LOSE_PRESTIGE_EXPERIENCE_EFFECT -} - -set_child_of_concubine_on_pregnancy = { - global = SET_CHILD_OF_CONCUBINE_ON_PREGNANCY - global_neg = DO_NOT_SET_CHILD_OF_CONCUBINE_ON_PREGNANCY -} - -spawn_activity = { - global = SPAWN_ACTIVITY - first = I_SPAWN_ACTIVITY - third = THEY_SPAWN_ACTIVITY -} - -complete_activity = { - global = COMPLETE_ACTIVITY - global_neg = COMPLETE_ACTIVITY_NEG - first = I_COMPLETE_ACTIVITY - first_neg = COMPLETE_ACTIVITY_NEG - third = I_COMPLETE_ACTIVITY - third_neg = COMPLETE_ACTIVITY_NEG - global_past = COMPLETE_ACTIVITY - global_past_neg = COMPLETE_ACTIVITY_NEG - first_past = I_COMPLETE_ACTIVITY - first_past_neg = COMPLETE_ACTIVITY_NEG - third_past = I_COMPLETE_ACTIVITY - third_past_neg = COMPLETE_ACTIVITY_NEG -} - -add_trait = { - global = ADD_TRAIT - first = ADD_MY_TRAIT - third = ADD_THEIR_TRAIT - global_past = ADDED_TRAIT - first_past = ADDED_MY_TRAIT - third_past = ADDED_THEIR_TRAIT -} - - -add_trait_force_tooltip = { - global = ADD_TRAIT - first = ADD_MY_TRAIT - third = ADD_THEIR_TRAIT - global_past = ADDED_TRAIT - first_past = ADDED_MY_TRAIT - third_past = ADDED_THEIR_TRAIT -} - -make_trait_active = { - global = ADD_TRAIT - first = ADD_MY_TRAIT - third = ADD_THEIR_TRAIT - global_past = ADDED_TRAIT - first_past = ADDED_MY_TRAIT - third_past = ADDED_THEIR_TRAIT -} - -make_trait_active_force_tooltip = { - global = ADD_TRAIT - first = ADD_MY_TRAIT - third = ADD_THEIR_TRAIT - global_past = ADDED_TRAIT - first_past = ADDED_MY_TRAIT - third_past = ADDED_THEIR_TRAIT -} - -add_trait_xp = { - global = GAIN_TRAIT_XP - first = I_GAIN_TRAIT_XP - third = THEY_GAIN_TRAIT_XP - - global_past = GAINED_TRAIT_XP - first_past = I_GAINED_TRAIT_XP - third_past = THEY_GAINED_TRAIT_XP - - global_neg = LOSE_TRAIT_XP - first_neg = I_LOSE_TRAIT_XP - third_neg = THEY_LOSE_TRAIT_XP - - global_past_neg = LOST_TRAIT_XP - first_past_neg = I_LOST_TRAIT_XP - third_past_neg = THEY_LOST_TRAIT_XP -} - -add_trait_xp_single = { - global = GAIN_TRAIT_XP_SINGLE - first = I_GAIN_TRAIT_XP_SINGLE - third = THEY_GAIN_TRAIT_XP_SINGLE - - global_past = GAINED_TRAIT_XP_SINGLE - first_past = I_GAINED_TRAIT_XP_SINGLE - third_past = THEY_GAINED_TRAIT_XP_SINGLE - - global_neg = LOSE_TRAIT_XP_SINGLE - first_neg = I_LOSE_TRAIT_XP_SINGLE - third_neg = THEY_LOSE_TRAIT_XP_SINGLE - - global_past_neg = LOST_TRAIT_XP_SINGLE - first_past_neg = I_LOST_TRAIT_XP_SINGLE - third_past_neg = THEY_LOST_TRAIT_XP_SINGLE -} - -remove_trait = { - global = REMOVE_TRAIT - first = REMOVE_MY_TRAIT - third = REMOVE_THEIR_TRAIT - global_past = REMOVED_TRAIT - first_past = REMOVED_MY_TRAIT - third_past = REMOVED_THEIR_TRAIT -} - -remove_trait_force_tooltip = { - global = REMOVE_TRAIT - first = REMOVE_MY_TRAIT - third = REMOVE_THEIR_TRAIT - global_past = REMOVED_TRAIT - first_past = REMOVED_MY_TRAIT - third_past = REMOVED_THEIR_TRAIT -} - -make_trait_inactive = { - global = REMOVE_TRAIT - first = REMOVE_MY_TRAIT - third = REMOVE_THEIR_TRAIT - global_past = REMOVED_TRAIT - first_past = REMOVED_MY_TRAIT - third_past = REMOVED_THEIR_TRAIT -} - -make_trait_inactive_force_tooltip = { - global = REMOVE_TRAIT - first = REMOVE_MY_TRAIT - third = REMOVE_THEIR_TRAIT - global_past = REMOVED_TRAIT - first_past = REMOVED_MY_TRAIT - third_past = REMOVED_THEIR_TRAIT -} - - -add_courtier = { - global = ADD_COURTIER_TO_COURT - first = ADD_COURTIER_TO_MY_COURT - third = ADD_COURTIER_TO_THEIR_COURT - global_past = ADDED_COURTIER_TO_COURT - first_past = ADDED_COURTIER_TO_MY_COURT - third_past = ADDED_COURTIER_TO_THEIR_COURT -} - -set_knight_status = { - global = SET_KNIGHT_STATUS - first = SET_MY_KNIGHT_STATUS - third = SET_THEIR_KNIGHT_STATUS - global_past = SET_KNIGHT_STATUS_PAST - first_past = SET_MY_KNIGHT_STATUS_PAST - third_past = SET_THEIR_KNIGHT_STATUS_PAST -} - -start_scheme ={ - first = START_SCHEME_EFFECT - first_past = STARTED_SCHEME_EFFECT - third = THEY_START_SCHEME_EFFECT -} - - -add_scheme_modifier_duration = { - global = ADD_SCHEME_MODIFIER_EFFECT_DURATION - first = ADD_MODIFIER_TO_MY_SCHEME_DURATION - third = ADD_SCHEME_MODIFIER_TO_SCHEME_EFFECT_DURATION - global_past = ADDED_SCHEME_MODIFIER_EFFECT_DURATION -} - - - - -set_focus = { - global = SET_FOCUS_EFFECT - -} - -set_focus_no = { - global = SET_FOCUS_NO_EFFECT -} - -set_trait_rank = { - global = CHANGE_TRAIT_RANK - first = I_CHANGE_TRAIT_RANK - third = THEY_CHANGE_TRAIT_RANK - global_past = CHANGED_TRAIT_RANK - first_past = I_CHANGED_TRAIT_RANK - third_past = THEY_CHANGED_TRAIT_RANK -} - -stress_impact = { - first = I_STRESS_IMPACT_GAIN - first_neg = I_STRESS_IMPACT_LOSS - third = THEY_STRESS_IMPACT_GAIN - third_neg = THEY_STRESS_IMPACT_LOSS - first_past = I_PAST_STRESS_IMPACT_GAIN - first_past_neg = I_PAST_STRESS_IMPACT_LOSS - third_past = THEY_PAST_STRESS_IMPACT_GAIN - third_past_neg = THEY_PAST_STRESS_IMPACT_LOSS - global = STRESS_IMPACT_GAIN - global_neg = STRESS_IMPACT_LOSS - global_past = PAST_STRESS_IMPACT_GAIN - global_past_neg = PAST_STRESS_IMPACT_LOSS -} - -stress_impact_critical = { - first = I_STRESS_IMPACT_GAIN_CRITICAL - first_past = I_STRESS_IMPACT_GAIN_CRITICAL - third = THEY_STRESS_IMPACT_GAIN_CRITICAL - third_past = THEY_STRESS_IMPACT_GAIN_CRITICAL - global = STRESS_IMPACT_GAIN_CRITICAL - global_past = STRESS_IMPACT_GAIN_CRITICAL -} - -add_guest_courtier = { - global = ADD_GUEST_COURTIER_EFFECT -} - -return_to_court = { - global = RETURN_TO_COURT_EFFECT - first = I_RETURN_TO_COURT_EFFECT - third = THEY_RETURN_TO_COURT_EFFECT - global_past = RETURNED_TO_COURT_EFFECT - first_past = I_RETURNED_TO_COURT_EFFECT - third_past = THEY_RETURNED_TO_COURT_EFFECT -} - -remove_courtier_or_guest = { - global = REMOVE_COURT_CHARACTER_EFFECT - first_past = REMOVED_COURT_CHARACTER_EFFECT - first = REMOVE_COURT_CHARACTER_EFFECT - third = REMOVE_COURT_CHARACTER_EFFECT -} - -add_focus_progress = { - third = THEY_ADD_FOCUS_PROGRESS -} - -multiply_focus_progress = { - third = THEY_MULTIPLY_FOCUS_PROGRESS -} - -set_focus_progress = { - third = THEY_SET_FOCUS_PROGRESS -} - -set_relation_guardian = { - third = THEY_GET_A_GUARDIAN - third_past = THEY_GOT_A_GUARDIAN - global = GLOBAL_BECOME_WARD - global_past = GLOBAL_BECAME_WARD -} - -remove_relation_guardian = { - first = I_LOSE_A_GUARDIAN - first_past = I_LOST_A_GUARDIAN - third = THEY_LOSE_A_GUARDIAN - third_past = THEY_LOSE_A_GUARDIAN - global = GLOBAL_LOSE_A_GUARDIAN - global_past = GLOBAL_LOST_A_GUARDIAN -} - -set_relation_ward = { - third = THEY_GET_A_WARD - third_past = THEY_GET_A_WARD - global = GLOBAL_BECOME_GUARDIAN - global_past = GLOBAL_BECOME_GUARDIAN -} - -remove_relation_ward = { - third = THEY_LOSE_A_WARD - third_past = THEY_LOST_A_WARD - global = LOSE_A_WARD - global_past = LOST_A_WARD -} - -educate_child_option_convert_culture_effect = { - first = EDUCATE_ME_OPTION_CONVERT_CULTURE_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_CULTURE_EFFECT -} - -educate_child_option_convert_culture_likely_effect = { - first = EDUCATE_ME_OPTION_CONVERT_CULTURE_LIKELY_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_CULTURE_LIKELY_EFFECT -} - -educate_child_option_convert_culture_unlikely_effect = { - first = EDUCATE_ME_OPTION_CONVERT_CULTURE_UNLIKELY_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_CULTURE_UNLIKELY_EFFECT -} - -educate_child_option_convert_faith_effect = { - first = EDUCATE_ME_OPTION_CONVERT_FAITH_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_FAITH_EFFECT -} -educate_child_option_convert_faith_likely_effect = { - first = EDUCATE_ME_OPTION_CONVERT_FAITH_LIKELY_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_FAITH_LIKELY_EFFECT -} -educate_child_option_convert_faith_unlikely_effect = { - first = EDUCATE_ME_OPTION_CONVERT_FAITH_UNLIKELY_EFFECT - global = EDUCATE_CHILD_OPTION_CONVERT_FAITH_UNLIKELY_EFFECT -} - -set_relation_mentor = { - first = I_GAIN_MENTOR - third = THEY_GET_MENTOR -} - -set_relation_student = { - first = I_GAIN_STUDENT -} - -remove_relation_mentor = { - first = I_LOSE_MENTOR -} - -remove_relation_student = { - first = I_LOSE_STUDENT -} - -set_relation_intrigue_mentor = { - first = I_GAIN_INTRIGUE_MENTOR -} - -set_relation_intrigue_student = { - first = I_GAIN_INTRIGUE_STUDENT -} - -remove_relation_intrigue_mentor = { - first = I_LOSE_INTRIGUE_MENTOR -} - -remove_relation_intrigue_student = { - first = I_LOSE_INTRIGUE_STUDENT -} - -set_relation_potential_lover = { - first = I_GAIN_POTENTIAL_LOVER - third = THEY_GAIN_POTENTIAL_LOVER - global = GAINS_POTENTIAL_LOVER - first_past = I_GOT_POTENTIAL_LOVER - third_past = THEY_GAINED_POTENTIAL_LOVER - global_past = GAINED_POTENTIAL_LOVER -} - -remove_relation_potential_lover = { - first = I_LOSE_POTENTIAL_LOVER -} - -set_relation_potential_friend = { - first = I_GAIN_POTENTIAL_FRIEND - first_past = I_GAINED_POTENTIAL_FRIEND - third = THEY_GAIN_POTENTIAL_FRIEND - third_past = THEY_GAINED_POTENTIAL_FRIEND - global = GAINS_POTENTIAL_FRIEND - global_past = GAINED_POTENTIAL_FRIEND -} - -remove_relation_potential_friend = { - global = LOSE_POTENTIAL_FRIEND - global_past = LOST_POTENTIAL_FRIEND - first = I_LOSE_POTENTIAL_FRIEND - first_past = I_LOST_POTENTIAL_FRIEND - third = THEY_LOSE_POTENTIAL_FRIEND - third_past = THEY_LOST_POTENTIAL_FRIEND -} - -set_relation_potential_rival = { - first = I_GAIN_POTENTIAL_RIVAL - first_past = I_GAINED_POTENTIAL_RIVAL - global = GAINS_POTENTIAL_RIVAL - global_past = GAINED_POTENTIAL_RIVAL - third = THEY_GAIN_POTENTIAL_RIVAL - third_past = THEY_GAINED_POTENTIAL_RIVAL -} - -set_relation_wedding_good_fertility = { - first = I_GAIN_WEDDING_GOOD_FERTILITY - first_past = I_GAINED_WEDDING_GOOD_FERTILITY - global = GAINS_WEDDING_GOOD_FERTILITY - global_past = GAINED_WEDDING_GOOD_FERTILITY - third = THEY_GAIN_WEDDING_GOOD_FERTILITY - third_past = THEY_GAINED_WEDDING_GOOD_FERTILITY -} - -set_relation_wedding_very_good_fertility = { - first = I_GAIN_WEDDING_VERY_GOOD_FERTILITY - first_past = I_GAINED_WEDDING_VERY_GOOD_FERTILITY - global = GAINS_WEDDING_VERY_GOOD_FERTILITY - global_past = GAINED_WEDDING_VERY_GOOD_FERTILITY - third = THEY_GAIN_WEDDING_VERY_GOOD_FERTILITY - third_past = THEY_GAINED_WEDDING_VERY_GOOD_FERTILITY -} - -set_relation_wedding_bad_fertility = { - first = I_GAIN_WEDDING_BAD_FERTILITY - first_past = I_GAINED_WEDDING_BAD_FERTILITY - global = GAINS_WEDDING_BAD_FERTILITY - global_past = GAINED_WEDDING_BAD_FERTILITY - third = THEY_GAIN_WEDDING_BAD_FERTILITY - third_past = THEY_GAINED_WEDDING_BAD_FERTILITY -} - -set_relation_wedding_very_bad_fertility = { - first = I_GAIN_WEDDING_VERY_BAD_FERTILITY - first_past = I_GAINED_WEDDING_VERY_BAD_FERTILITY - global = GAINS_WEDDING_VERY_BAD_FERTILITY - global_past = GAINED_WEDDING_VERY_BAD_FERTILITY - third = THEY_GAIN_WEDDING_VERY_BAD_FERTILITY - third_past = THEY_GAINED_WEDDING_VERY_BAD_FERTILITY -} - -remove_relation_potential_rival = { - first = I_LOSE_POTENTIAL_RIVAL - global = LOSES_POTENTIAL_RIVAL -} - -add_visiting_courtier = { - first = I_GET_A_VISITOR - third = THEY_GET_A_VISITOR -} - -visit_court_of = { - first = I_VISIT_COURT_OF - third = THEY_VISIT_COURT_OF - global = GLOBAL_VISIT_COURT_OF - global_past = GLOBAL_PAST_VISIT_COURT_OF -} - -set_relation_oaf = { - global = GET_OAF - first = I_GET_OAF - third = THEY_GET_OAF -} - -remove_relation_oaf = { - global = LOSE_OAF - first = I_LOSE_OAF - third = THEY_LOSE_OAF -} - -set_relation_bully = { - global = GET_BULLY - first = I_GET_BULLY - first_past = I_GOT_BULLY - third = THEY_GET_BULLY - third_past = THEY_GOT_BULLY -} - -remove_relation_bully = { - global = REMOVE_BULLY - first = I_LOSE_BULLY -} - -set_relation_crush = { - global = GET_CRUSH - first = I_GET_CRUSH -} - -remove_relation_crush = { - global = LOSE_CRUSH - first = I_LOSE_CRUSH -} - -set_relation_victim = { - global = GET_VICTIM - first = I_GET_VICTIM - third = THEY_GET_VICTIM -} - -remove_relation_victim = { - global = LOSE_VICTIM - first = I_LOSE_VICTIM -} - -set_relation_friend = { - global = GET_FRIEND - global_past = GOT_FRIEND - first = I_GET_FRIEND - first_past = I_GOT_FRIEND - third = THEY_GET_FRIEND - third_past = THEY_GOT_FRIEND -} - -remove_relation_friend = { - global = LOSE_FRIEND - first = I_LOSE_FRIEND - third = THEY_LOSE_FRIEND - global_past = LOST_FRIEND -} - -set_relation_soldier_friend = { - global = GET_SOLDIER_FRIEND - first = I_GET_SOLDIER_FRIEND - third = THEY_GET_SOLDIER_FRIEND -} - -remove_relation_soldier_friend = { - global = LOSE_SOLDIER_FRIEND - first = I_LOSE_SOLDIER_FRIEND - third = THEY_LOSE_SOLDIER_FRIEND -} - -set_relation_rival = { - global = GET_RIVAL - first = I_GET_RIVAL - third = THEY_GET_RIVAL - global_past = GOT_RIVAL - first_past = I_GOT_RIVAL - third_past = THEY_GOT_RIVAL -} - -remove_relation_rival = { - global = LOSE_RIVAL - first = I_LOSE_RIVAL - first_past = I_LOST_RIVAL - third = THEY_LOSE_RIVAL -} - -set_relation_lover = { - global = GET_LOVER - global_past = GOT_LOVER - first = I_GET_LOVER - third = THEY_GET_LOVER - first_past = I_GOT_LOVER - third_past = THEY_GOT_LOVER -} - -set_relation_court_physician = { - global = GET_COURT_PHYSICIAN - first = YOU_GET_COURT_PHYSICIAN - third = THEY_GET_COURT_PHYSICIAN - first_past = YOU_GOT_COURT_PHYSICIAN - third_past = THEY_GOT_COURT_PHYSICIAN -} - -remove_relation_court_physician = { - global = LOSE_COURT_PHYSICIAN - first = YOU_LOSE_COURT_PHYSICIAN - third = THEY_LOSE_COURT_PHYSICIAN - first_past = YOU_LOST_COURT_PHYSICIAN - third_past = THEY_LOST_COURT_PHYSICIAN -} - -remove_relation_lover = { - global = LOSE_LOVER - global_past = LOST_LOVER - first = I_LOSE_LOVER - third = THEY_LOSE_LOVER - first_past = I_LOST_LOVER - third_past = THEY_LOST_LOVER -} - -set_relation_soulmate = { - global = GET_SOULMATE - global_past = GOT_SOULMATE - first = I_GET_SOULMATE - third = THEY_GET_SOULMATE - first_past = I_GOT_SOULMATE - third_past = THEY_GOT_SOULMATE -} - -remove_relation_soulmate = { - global = LOSE_SOULMATE - global_past = LOST_SOULMATE - first = I_LOSE_SOULMATE - third = THEY_LOSE_SOULMATE - first_past = I_LOST_SOULMATE - third_past = THEY_LOST_SOULMATE -} - -set_relation_best_friend = { - global = GET_BEST_FRIEND - global_past = GOT_BEST_FRIEND - first = I_GET_BEST_FRIEND - third = THEY_GET_BEST_FRIEND - first_past = I_GOT_BEST_FRIEND - third_past = THEY_GOT_BEST_FRIEND -} - -remove_relation_best_friend = { - global = LOSE_BEST_FRIEND - global_past = LOST_BEST_FRIEND - first = I_LOSE_BEST_FRIEND - third = THEY_LOSE_BEST_FRIEND - first_past = I_LOST_BEST_FRIEND - third_past = THEY_LOST_BEST_FRIEND -} - -set_relation_nemesis = { - global = GET_NEMESIS - global_past = GOT_NEMESIS - first = I_GET_NEMESIS - third = THEY_GET_NEMESIS - first_past = I_GOT_NEMESIS - third_past = THEY_GOT_NEMESIS -} - -remove_relation_nemesis = { - global = LOSE_NEMESIS - global_past = LOST_NEMESIS - first = I_LOSE_NEMESIS - third = THEY_LOSE_NEMESIS - first_past = I_LOST_NEMESIS - third_past = THEY_LOST_NEMESIS -} - -add_character_modifier = { - first_past = I_RECEIVED_MODIFIER_EFFECT - third_past = THEY_RECEIVED_MODIFIER_EFFECT - global_past = RECEIVED_MODIFIER_EFFECT - first = I_RECEIVE_MODIFIER_EFFECT - third = THEY_RECEIVE_MODIFIER_EFFECT - global = RECEIVES_MODIFIER_EFFECT -} - -add_character_modifier_duration = { - first_past = I_RECEIVED_MODIFIER_UNTIL_EFFECT - third_past = THEY_RECEIVED_MODIFIER_UNTIL_EFFECT - global_past = RECEIVED_MODIFIER_UNTIL_EFFECT - first = I_RECEIVE_MODIFIER_UNTIL_EFFECT - third = THEY_RECEIVE_MODIFIER_UNTIL_EFFECT - global = RECEIVES_MODIFIER_UNTIL_EFFECT -} - -remove_character_modifier = { - first_past = I_LOST_MODIFIER_EFFECT - third_past = THEY_LOST_MODIFIER_EFFECT - global_past = LOST_MODIFIER_EFFECT - first = I_LOSE_MODIFIER_EFFECT - third = THEY_LOSE_MODIFIER_EFFECT - global = LOSES_MODIFIER_EFFECT -} - -duel = { - first_past = I_ENTERED_CHALLENGE_EFFECT - third_past = THEY_ENTERED_CHALLENGE_EFFECT - global_past = ENTERED_CHALLENGE_EFFECT - first = I_ENTER_CHALLENGE_EFFECT - third = THEY_ENTER_CHALLENGE_EFFECT - global = ENTERS_CHALLENGE_EFFECT -} - -duel_against = { - first_past = I_ENTERED_DUEL_AGAINST_EFFECT - third_past = THEY_ENTERED_DUEL_AGAINST_EFFECT - global_past = ENTERED_DUEL_AGAINST_EFFECT - first = I_ENTER_DUEL_AGAINST_EFFECT - third = THEY_ENTER_DUEL_AGAINST_EFFECT - global = ENTERS_DUEL_AGAINST_EFFECT -} - -add_prestige_level = { - first = I_GAIN_PRESTIGE_LEVEL_EFFECT - first_past = I_GAINED_PRESTIGE_LEVEL_EFFECT - first_neg = I_LOSE_PRESTIGE_LEVEL_EFFECT - first_past_neg = I_LOST_PRESTIGE_LEVEL_EFFECT - third = THEY_GAIN_PRESTIGE_LEVEL_EFFECT - third_past = THEY_GAINED_PRESTIGE_LEVEL_EFFECT - third_neg = THEY_LOSE_PRESTIGE_LEVEL_EFFECT - third_past_neg = THEY_LOST_PRESTIGE_LEVEL_EFFECT - global = GAIN_PRESTIGE_LEVEL_EFFECT - global_past = GAINED_PRESTIGE_LEVEL_EFFECT - global_neg = LOSE_PRESTIGE_LEVEL_EFFECT - global_past_neg = LOST_PRESTIGE_LEVEL_EFFECT -} - -add_piety = { - first_past = I_GAINED_PIETY_EFFECT - first_past_neg = I_LOST_PIETY_EFFECT - third_past = THEY_GAINED_PIETY_EFFECT - third_past_neg = THEY_LOST_PIETY_EFFECT - global_past = GAINED_PIETY_EFFECT - global_past_neg = LOST_PIETY_EFFECT - first = I_GAIN_PIETY_EFFECT - first_neg = I_LOSE_PIETY_EFFECT - third = THEY_GAIN_PIETY_EFFECT - third_neg = THEY_LOSE_PIETY_EFFECT - global = GAIN_PIETY_EFFECT - global_neg = LOSE_PIETY_EFFECT -} - -add_piety_no_experience = { - first_past = I_GAINED_PIETY_EFFECT - first_past_neg = I_LOST_PIETY_EFFECT - third_past = THEY_GAINED_PIETY_EFFECT - third_past_neg = THEY_LOST_PIETY_EFFECT - global_past = GAINED_PIETY_EFFECT - global_past_neg = LOST_PIETY_EFFECT - first = I_GAIN_PIETY_EFFECT - first_neg = I_LOSE_PIETY_EFFECT - third = THEY_GAIN_PIETY_EFFECT - third_neg = THEY_LOSE_PIETY_EFFECT - global = GAIN_PIETY_EFFECT - global_neg = LOSE_PIETY_EFFECT -} - -add_piety_experience = { - first_past = I_GAINED_PIETY_EXPERIENCE_EFFECT - first_past_neg = I_LOST_PIETY_EXPERIENCE_EFFECT - third_past = THEY_GAINED_PIETY_EXPERIENCE_EFFECT - third_past_neg = THEY_LOST_PIETY_EXPERIENCE_EFFECT - global_past = GAINED_PIETY_EXPERIENCE_EFFECT - global_past_neg = LOST_PIETY_EXPERIENCE_EFFECT - first = I_GAIN_PIETY_EXPERIENCE_EFFECT - first_neg = I_LOSE_PIETY_EXPERIENCE_EFFECT - third = THEY_GAIN_PIETY_EXPERIENCE_EFFECT - third_neg = THEY_LOSE_PIETY_EXPERIENCE_EFFECT - global = GAIN_PIETY_EXPERIENCE_EFFECT - global_neg = LOSE_PIETY_EXPERIENCE_EFFECT -} - -add_piety_level = { - first_past = I_GAINED_PIETY_LEVEL_EFFECT - first_past_neg = I_LOST_PIETY_LEVEL_EFFECT - third_past = THEY_GAINED_PIETY_LEVEL_EFFECT - third_past_neg = THEY_LOST_PIETY_LEVEL_EFFECT - global_past = GAINED_PIETY_LEVEL_EFFECT - global_past_neg = LOST_PIETY_LEVEL_EFFECT - first = I_GAIN_PIETY_LEVEL_EFFECT - first_neg = I_LOSE_PIETY_LEVEL_EFFECT - third = THEY_GAIN_PIETY_LEVEL_EFFECT - third_neg = THEY_LOSE_PIETY_LEVEL_EFFECT - global = GAIN_PIETY_LEVEL_EFFECT - global_neg = LOSE_PIETY_LEVEL_EFFECT -} - -set_culture = { - global = SET_CULTURE_GLOBAL - first = SET_CULTURE_FIRST - third = SET_CULTURE_THIRD - global_past = SET_CULTURE_GLOBAL_PAST - first_past = SET_CULTURE_FIRST_PAST - third_past = SET_CULTURE_THIRD_PAST -} - -set_culture_same_as = { - global = SET_CULTURE_OF_CHARACTER_SAME_AS - global_past = SAT_CUTLURE_OF_CHARACTER_SAME_AS -} - -add_prowess_skill = { - global = ADD_PROWESS_SKILL_EFFECT - global_neg = REMOVE_PROWESS_SKILL_EFFECT - first = I_ADD_PROWESS_SKILL_EFFECT - first_neg = I_REMOVE_PROWESS_SKILL_EFFECT - third = THEY_ADD_PROWESS_SKILL_EFFECT - third_neg = THEY_REMOVE_PROWESS_SKILL_EFFECT - global_past = ADDED_PROWESS_SKILL_EFFECT - global_past_neg = REMOVED_PROWESS_SKILL - first_past = I_ADDED_PROWESS_SKILL_EFFECT - first_past_neg = I_REMOVED_PROWESS_SKILL_EFFECT - third_past = THEY_ADDED_PROWESS_SKILL_EFFECT - third_past_neg = THEY_REMOVED_PROWESS_SKILL_EFFECT -} - -add_diplomacy_skill = { - global = ADD_DIPLOMACY_SKILL_EFFECT - global_neg = REMOVE_DIPLOMACY_SKILL_EFFECT - first = I_ADD_DIPLOMACY_SKILL_EFFECT - first_neg = I_REMOVE_DIPLOMACY_SKILL_EFFECT - third = THEY_ADD_DIPLOMACY_SKILL_EFFECT - third_neg = THEY_REMOVE_DIPLOMACY_SKILL_EFFECT - global_past = ADDED_DIPLOMACY_SKILL_EFFECT - global_past_neg = REMOVED_DIPLOMACY_SKILL - first_past = I_ADDED_DIPLOMACY_SKILL_EFFECT - first_past_neg = I_REMOVED_DIPLOMACY_SKILL_EFFECT - third_past = THEY_ADDED_DIPLOMACY_SKILL_EFFECT - third_past_neg = THEY_REMOVED_DIPLOMACY_SKILL_EFFECT -} - -add_stewardship_skill = { - global = ADD_STEWARDSHIP_SKILL_EFFECT - global_neg = REMOVE_STEWARDSHIP_SKILL_EFFECT - first = I_ADD_STEWARDSHIP_SKILL_EFFECT - first_neg = I_REMOVE_STEWARDSHIP_SKILL_EFFECT - third = THEY_ADD_STEWARDSHIP_SKILL_EFFECT - third_neg = THEY_REMOVE_STEWARDSHIP_SKILL_EFFECT - global_past = ADDED_STEWARDSHIP_SKILL_EFFECT - global_past_neg = REMOVED_STEWARDSHIP_SKILL - first_past = I_ADDED_STEWARDSHIP_SKILL_EFFECT - first_past_neg = I_REMOVED_STEWARDSHIP_SKILL_EFFECT - third_past = THEY_ADDED_STEWARDSHIP_SKILL_EFFECT - third_past_neg = THEY_REMOVED_STEWARDSHIP_SKILL_EFFECT -} - -add_martial_skill = { - global = ADD_MARTIAL_SKILL_EFFECT - global_neg = REMOVE_MARTIAL_SKILL_EFFECT - first = I_ADD_MARTIAL_SKILL_EFFECT - first_neg = I_REMOVE_MARTIAL_SKILL_EFFECT - third = THEY_ADD_MARTIAL_SKILL_EFFECT - third_neg = THEY_REMOVE_MARTIAL_SKILL_EFFECT - global_past = ADDED_MARTIAL_SKILL_EFFECT - global_past_neg = REMOVED_MARTIAL_SKILL - first_past = I_ADDED_MARTIAL_SKILL_EFFECT - first_past_neg = I_REMOVED_MARTIAL_SKILL_EFFECT - third_past = THEY_ADDED_MARTIAL_SKILL_EFFECT - third_past_neg = THEY_REMOVED_MARTIAL_SKILL_EFFECT -} - -add_intrigue_skill = { - global = ADD_INTRIGUE_SKILL_EFFECT - global_neg = REMOVE_INTRIGUE_SKILL_EFFECT - first = I_ADD_INTRIGUE_SKILL_EFFECT - first_neg = I_REMOVE_INTRIGUE_SKILL_EFFECT - third = THEY_ADD_INTRIGUE_SKILL_EFFECT - third_neg = THEY_REMOVE_INTRIGUE_SKILL_EFFECT - global_past = ADDED_INTRIGUE_SKILL_EFFECT - global_past_neg = REMOVED_INTRIGUE_SKILL - first_past = I_ADDED_INTRIGUE_SKILL_EFFECT - first_past_neg = I_REMOVED_INTRIGUE_SKILL_EFFECT - third_past = THEY_ADDED_INTRIGUE_SKILL_EFFECT - third_past_neg = THEY_REMOVED_INTRIGUE_SKILL_EFFECT -} - -add_learning_skill = { - global = ADD_LEARNING_SKILL_EFFECT - global_neg = REMOVE_LEARNING_SKILL_EFFECT - first = I_ADD_LEARNING_SKILL_EFFECT - first_neg = I_REMOVE_LEARNING_SKILL_EFFECT - third = THEY_ADD_LEARNING_SKILL_EFFECT - third_neg = THEY_REMOVE_LEARNING_SKILL_EFFECT - global_past = ADDED_LEARNING_SKILL_EFFECT - global_past_neg = REMOVED_LEARNING_SKILL - first_past = I_ADDED_LEARNING_SKILL_EFFECT - first_past_neg = I_REMOVED_LEARNING_SKILL_EFFECT - third_past = THEY_ADDED_LEARNING_SKILL_EFFECT - third_past_neg = THEY_REMOVED_LEARNING_SKILL_EFFECT -} - -imprison = { - first = I_IMPRISON_EFFECT - third = THEY_IMPRISON_EFFECT - global = IMPRISON_EFFECT - first_past = I_IMPRISONED_EFFECT - third_past = THEY_IMPRISONED_EFFECT - global_past = IMPRISONED_EFFECT -} - -release_from_prison = { - global = RELEASE_FROM_PRISON_EFFECT - global_past = RELEASED_FROM_PRISON_EFFECT - first = RELEASE_ME_FROM_PRISON_EFFECT - first_past = RELEASED_ME_FROM_PRISON_EFFECT - third = RELEASE_THEM_FROM_PRISON_EFFECT - third_past = RELEASED_THEM_FROM_PRISON_EFFECT -} - -change_prison_type = { - global = CHANGE_PRISON_TYPE -} - -add_tyranny = { - first_past = I_GAINED_TYRANNY_EFFECT - first_past_neg = I_LOST_TYRANNY_EFFECT - third_past = THEY_GAINED_TYRANNY_EFFECT - third_past_neg = THEY_LOST_TYRANNY_EFFECT - global_past = GAINED_TYRANNY_EFFECT - global_past_neg = LOST_TYRANNY_EFFECT - first = I_GAIN_TYRANNY_EFFECT - first_neg = I_LOSE_TYRANNY_EFFECT - third = THEY_GAIN_TYRANNY_EFFECT - third_neg = THEY_LOSE_TYRANNY_EFFECT - global = GAIN_TYRANNY_EFFECT - global_neg = LOSE_TYRANNY_EFFECT -} - -create_character = { - global = CREATE_CHARACTER_EFFECT -} - -create_named_character = { - global = CREATE_NAMED_CHARACTER_EFFECT -} - -add_hook = { - global = GAIN_HOOK_EFFECT - global_past = GAINED_HOOK_EFFECT - first = I_GAIN_HOOK_EFFECT - first_past = I_GAINED_HOOK_EFFECT - third = THEY_GAIN_HOOK_EFFECT - third_past = THEY_GAINED_HOOK_EFFECT -} - -add_hook_strong = { - global = GAIN_HOOK_EFFECT_STRONG - global_past = GAINED_HOOK_EFFECT_STRONG - first = I_GAIN_HOOK_EFFECT_STRONG - first_past = I_GAINED_HOOK_EFFECT_STRONG - third = THEY_GAIN_HOOK_EFFECT_STRONG - third_past = THEY_GAINED_HOOK_EFFECT_STRONG -} - -add_hook_perpetual = { - global = GAIN_HOOK_EFFECT_PERPETUAL - global_past = GAINED_HOOK_EFFECT_PERPETUAL - first = I_GAIN_HOOK_EFFECT_PERPETUAL - first_past = I_GAINED_HOOK_EFFECT_PERPETUAL - third = THEY_GAIN_HOOK_EFFECT_PERPETUAL - third_past = THEY_GAINED_HOOK_EFFECT_PERPETUAL -} - -remove_hook = { - global = REMOVE_HOOK_EFFECT - third = REMOVE_HOOK_EFFECT_THIRD - first = REMOVE_HOOK_EFFECT_FIRST - first_past = REMOVED_HOOK_EFFECT_FIRST -} - -use_hook = { - global = USE_HOOK_EFFECT - third = USE_HOOK_EFFECT_THIRD - first = USE_HOOK_EFFECT_FIRST - global_past = USE_HOOK_EFFECT_PAST - third_past = USE_HOOK_EFFECT_THIRD_PAST - first_past = USE_HOOK_EFFECT_FIRST_PAST -} - -use_hook_strong = { - global = USE_STRONG_HOOK_EFFECT - third = USE_STRONG_HOOK_EFFECT_THIRD - first = USE_STRONG_HOOK_EFFECT_FIRST - global_past = USE_STRONG_HOOK_EFFECT_PAST - third_past = USE_STRONG_HOOK_EFFECT_THIRD_PAST - first_past = USE_STRONG_HOOK_EFFECT_FIRST_PAST -} - - -banish = { - global = BANISH_EFFECT - first = BANISH_EFFECT_FIRST - third = BANISH_EFFECT_THIRD -} - -depose = { - global = DEPOSE_EFFECT - first = DEPOSE_EFFECT_FIRST - third = DEPOSE_EFFECT_THIRD -} - -add_truce_one_way = { - global = ADD_TRUCE_ONE_WAY_EFFECT - first = ADD_TRUCE_ONE_WAY_EFFECT_FIRST - third = ADD_TRUCE_ONE_WAY_EFFECT_THIRD - global_past = ADD_TRUCE_ONE_WAY_EFFECT_PAST - first_past = ADD_TRUCE_ONE_WAY_EFFECT_FIRST_PAST - third_past = ADD_TRUCE_ONE_WAY_EFFECT_THIRD_PAST -} - -add_truce_both_ways = { - global = ADD_TRUCE_BOTH_WAYS_EFFECT - first = ADD_TRUCE_BOTH_WAYS_EFFECT_FIRST - third = ADD_TRUCE_BOTH_WAYS_EFFECT_THIRD - global_past = ADD_TRUCE_BOTH_WAYS_EFFECT_PAST - first_past = ADD_TRUCE_BOTH_WAYS_EFFECT_FIRST_PAST - third_past = ADD_TRUCE_BOTH_WAYS_EFFECT_THIRD_PAST -} - -cancel_truce_one_way = { - global = CANCEL_TRUCE_ONE_WAY_EFFECT - first = CANCEL_TRUCE_ONE_WAY_EFFECT_FIRST - third = CANCEL_TRUCE_ONE_WAY_EFFECT_THIRD - global_past = CANCEL_TRUCE_ONE_WAY_EFFECT_PAST - first_past = CANCEL_TRUCE_ONE_WAY_EFFECT_FIRST_PAST - third_past = CANCEL_TRUCE_ONE_WAY_EFFECT_THIRD_PAST -} - -cancel_truce_both_ways = { - global = CANCEL_TRUCE_BOTH_WAYS_EFFECT - first = CANCEL_TRUCE_BOTH_WAY_EFFECT_FIRST - third = CANCEL_TRUCE_BOTH_WAY_EFFECT_THIRD - global_past = CANCEL_TRUCE_BOTH_WAY_EFFECT_PAST - first_past = CANCEL_TRUCE_BOTH_WAY_EFFECT_FIRST_PAST - third_past = CANCEL_TRUCE_BOTH_WAY_EFFECT_THIRD_PAST -} - -change_liege = { - global = CHANGE_LIEGE_EFFECT - global_past = CHANGED_LIEGE_EFFECT - first = CHANGE_LIEGE_EFFECT_FIRST - first_past = CHANGED_LIEGE_EFFECT_FIRST - third = CHANGE_LIEGE_EFFECT_THIRD - third_past = CHANGED_LIEGE_EFFECT_THIRD -} - -keep_liege = { - global = KEEP_LIEGE_EFFECT - first = KEEP_LIEGE_EFFECT_FIRST - third = KEEP_LIEGE_EFFECT_THIRD -} - -death = { - global = CHARACTER_DEATH_EFFECT - third = CHARACTER_DEATH_EFFECT_THIRD - first = CHARACTER_DEATH_EFFECT_FIRST - global_past = CHARACTER_DIED_EFFECT - third_past = CHARACTER_DIED_EFFECT_THIRD - first_past = CHARACTER_DIED_EFFECT_FIRST -} - -death_killer = { - global = CHARACTER_DEATH_EFFECT_KILLER - third = CHARACTER_DEATH_EFFECT_KILLER_THIRD - first = CHARACTER_DEATH_EFFECT_KILLER_FIRST - global_past = CHARACTER_DIED_EFFECT_KILLER - third_past = CHARACTER_DIED_EFFECT_KILLER_THIRD - first_past = CHARACTER_DIED_EFFECT_KILLER_FIRST -} - -end_pregnancy = { - global = END_PREGNANCY_EFFECT - first = MY_PREGNANCY_ENDS_EFFECT - third = THEIR_PREGNANCY_ENDS_EFFECT - first_past = MY_PREGNANCY_HAS_ENDED_EFFECT - third_past = THEIR_PREGNANCY_HAS_ENDED -} - -set_character_faith = { - first = I_CONVERT_TO - third = THEY_CONVERTS_TO - global = COVERTS_TO - first_past = I_CONVERTED_TO - third_past = THEY_CONVERTED_TO - global_past = COVERTED_TO -} - -set_character_faith_with_conversion = { - global = CONVERTS_WITH_CONVERSION - first = I_CONVERT_WITH_CONVERSION - third = THEY_CONVERT_WITH_CONVERSION - first_past = I_CONVERTED_WITH_CONVERSION -} - -set_house = { - global = SET_HOUSE_EFFECT - first = MY_SET_HOUSE_EFFECT - third = THEIR_SET_HOUSE_EFFECT - global_past = SET_HOUSE_EFFECT_PAST - first_past = MY_SET_HOUSE_EFFECT_PAST - third_past = THEIR_SET_HOUSE_EFFECT_PAST -} - -break_alliance = { - global = BREAK_ALLIANCE_EFFECT - first = BREAK_ALLIANCE_EFFECT_FIRST - third = BREAK_ALLIANCE_EFFECT_THIRD - global_past = BREAK_ALLIANCE_EFFECT_PAST - first_past = BREAK_ALLIANCE_EFFECT_FIRST_PAST - third_past = BREAK_ALLIANCE_EFFECT_THIRD_PAST -} - -allow_alliance = { - global = ALLOW_ALLIANCE_EFFECT - first = ALLOW_ALLIANCE_EFFECT_FIRST - third = ALLOW_ALLIANCE_EFFECT_THIRD -} - -set_employer = { - global = ENTERS_SERVICE - first = ENTERS_MY_SERVICE - third = ENTERS_THEIR_SERVICE -} - -give_nickname = { - global = GIVE_NICKNAME_GLOBAL - first = GIVE_NICKNAME_FIRST - third = GIVE_NICKNAME_THIRD - global_past = GAVE_NICKNAME_GLOBAL - first_past = GAVE_NICKNAME_FIRST - third_past = GAVE_NICKNAME_THIRD -} - -remove_nickname = { - global = REMOVE_NICKNAME_GLOBAL - first = REMOVE_NICKNAME_FIRST - third = REMOVE_NICKNAME_THIRD - global_past = REMOVED_NICKNAME_GLOBAL - first_past = REMOVED_NICKNAME_FIRST - third_past = REMOVED_NICKNAME_THIRD -} - -spawn_army = { - global = SPAWN_ARMY_GLOBAL - first = SPAWN_ARMY_FIRST - third = SPAWN_ARMY_THIRD - global_past = SPAWNED_ARMY_GLOBAL - first_past = SPAWNED_ARMY_FIRST - third_past = SPAWNED_ARMY_THIRD -} - -add_realm_law = { - global = ADD_REALM_LAW_GLOBAL - global_past = ADD_REALM_LAW_GLOBAL_PAST - first = ADD_REALM_LAW_FIRST - first_past = ADD_REALM_LAW_FIRST_PAST - third = ADD_REALM_LAW_THIRD - third_past = ADD_REALM_LAW_THIRD_PAST -} - -add_realm_law_skip_effects = { - global = ADD_REALM_LAW_GLOBAL - global_past = ADD_REALM_LAW_GLOBAL_PAST - first = ADD_REALM_LAW_FIRST - first_past = ADD_REALM_LAW_FIRST_PAST - third = ADD_REALM_LAW_THIRD - third_past = ADD_REALM_LAW_THIRD_PAST -} - -set_designated_heir = { - global = SET_DESIGNATED_HEIR_GLOBAL - first = SET_DESIGNATED_HEIR_FIRST - first_past = SET_DESIGNATED_HEIR_FIRST_PAST - third = SET_DESIGNATED_HEIR_THIRD -} - -set_designated_heir_none = { - global = SET_DESIGNATED_HEIR_NONE_GLOBAL - first = SET_DESIGNATED_HEIR_NONE_FIRST - third = SET_DESIGNATED_HEIR_NONE_THIRD -} - -divorce = { - global = DIVORCE_GLOBAL - first = DIVORCE_FIRST - third = DIVORCE_THIRD - third_past = DIVORCED_THIRD -} - -add_opinion_theocracy_approve = { - global = THEOCRACY_APPROVE_EFFECT - global_past = THEOCRACY_STARTED_APPROVING_EFFECT - global_neg = THEOCRACY_DISAPPROVE_EFFECT - global_past_neg = THEOCRACY_STOPPED_APPROVING_EFFECT -} - -add_hook_theocracy_approve = { - global = THEOCRACY_APPROVE_EFFECT - global_past = THEOCRACY_STARTED_APPROVING_EFFECT - global_neg = THEOCRACY_DISAPPROVE_EFFECT - global_past_neg = THEOCRACY_STOPPED_APPROVING_EFFECT -} - -marry = { - global = WILL_MARRY_EFFECT - first = I_WILL_MARRY_EFFECT - third = THEY_WILL_MARRY_EFFECT - global_past = WILL_MARRY_EFFECT_PAST - first_past = I_WILL_MARRY_EFFECT_PAST - third_past = THEY_WILL_MARRY_EFFECT_PAST -} -marry_matrilineal = { - global = WILL_MARRY_MATRILINEALLY_EFFECT - first = I_WILL_MARRY_MATRILINEALLY_EFFECT - third = THEY_WILL_MARRY_MATRILINEALLY_EFFECT -} -marry_same_sex = { - global = WILL_MARRY_EFFECT - first = I_WILL_MARRY_EFFECT - third = THEY_WILL_MARRY_EFFECT -} - -change_government = { - first_past = CHANGED_MY_GOVERNMENT - third_past = CHANGED_THEIR_GOVERNMENT - global_past = CHANGED_GOVERNMENT - first = CHANGE_MY_GOVERNMENT - third = CHANGE_THEIR_GOVERNMENT - global = CHANGE_GOVERNMENT -} - -add_house_modifier = { - first_past = MY_HOUSE_RECEIVED_MODIFIER_EFFECT - third_past = THEIR_HOUSE_RECEIVED_MODIFIER_EFFECT - global_past = RECEIVED_MODIFIER_EFFECT - first = MY_HOUSE_RECEIVE_MODIFIER_EFFECT - third = THEIR_HOUSE_RECEIVE_MODIFIER_EFFECT - global = HOUSE_RECEIVES_MODIFIER_EFFECT -} - -add_house_modifier_duration = { - first_past = MY_HOUSE_RECEIVED_MODIFIER_UNTIL_EFFECT - third_past = THEIR_HOUSE_RECEIVED_MODIFIER_UNTIL_EFFECT - global_past = RECEIVED_MODIFIER_UNTIL_EFFECT - first = MY_HOUSE_RECEIVE_MODIFIER_UNTIL_EFFECT - third = THEIR_HOUSE_RECEIVE_MODIFIER_UNTIL_EFFECT - global = HOUSE_RECEIVES_MODIFIER_UNTIL_EFFECT -} - -remove_house_modifier = { - first_past = MY_HOUSE_LOST_MODIFIER_EFFECT - third_past = THEIR_HOUSE_LOST_MODIFIER_EFFECT - global_past = LOST_MODIFIER_EFFECT - first = MY_HOUSE_LOSES_MODIFIER_EFFECT - third = THEIR_HOUSE_LOSE_MODIFIER_EFFECT - global = HOUSE_LOSES_MODIFIER_EFFECT -} - -add_dynasty_modifier = { - first_past = MY_DYNASTY_RECEIVED_MODIFIER_EFFECT - third_past = THEIR_DYNASTY_RECEIVED_MODIFIER_EFFECT - global_past = RECEIVED_MODIFIER_EFFECT - first = MY_DYNASTY_RECEIVE_MODIFIER_EFFECT - third = THEIR_DYNASTY_RECEIVE_MODIFIER_EFFECT - global = DYNASTY_RECEIVES_MODIFIER_EFFECT -} - -add_dynasty_modifier_duration = { - first_past = MY_DYNASTY_RECEIVED_MODIFIER_UNTIL_EFFECT - third_past = THEIR_DYNASTY_RECEIVED_MODIFIER_UNTIL_EFFECT - global_past = RECEIVED_MODIFIER_UNTIL_EFFECT - first = MY_DYNASTY_RECEIVE_MODIFIER_UNTIL_EFFECT - third = THEIR_DYNASTY_RECEIVE_MODIFIER_UNTIL_EFFECT - global = DYNASTY_RECEIVES_MODIFIER_UNTIL_EFFECT -} - -remove_dynasty_modifier = { - first_past = MY_DYNASTY_LOST_MODIFIER_EFFECT - third_past = THEIR_DYNASTY_LOST_MODIFIER_EFFECT - global_past = LOST_MODIFIER_EFFECT - first = MY_DYNASTY_LOSES_MODIFIER_EFFECT - third = THEIR_DYNASTY_LOSE_MODIFIER_EFFECT - global = DYNASTY_LOSES_MODIFIER_EFFECT -} - -create_holy_order = { - global = CREATE_HOLY_ORDER -} - -refill_garrison = { - global = REFILLS_GARRISON -} - -refill_levy = { - global = REFILLS_LEVIES -} - -set_player_character = { - global = SET_PLAYER_CHARACTER_GLOBAL - first = SET_PLAYER_CHARACTER_FIRST - third = SET_PLAYER_CHARACTER_THIRD -} - -move_to_pool = { - global = LEAVES_COURT - third = CHARACTER_LEAVES_COURT - global_past = LEFT_COURT - third_past = CHARACTER_LEFT_COURT -} -move_to_pool_at = { - global = LEAVES_COURT - third = CHARACTER_LEAVES_COURT - global_past = LEFT_COURT - third_past = CHARACTER_LEFT_COURT -} - -recruit_courtier = { - global = RECRUIT_COURTIER_EFFECT - global_past = RECRUITED_COURTIER_EFFECT - third = THEY_RECRUIT_COURTIER_EFFECT - third_past = THEY_RECRUITED_COURTIER_EFFECT - first = I_RECRUIT_COURTIER_EFFECT - first_past = I_RECRUITED_COURTIER_EFFECT -} - -vassal_contract_increase_obligation_level = { - global = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_GLOBAL - third = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_THIRD - first = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_FIRST - global_past = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_GLOBAL_PAST - third_past = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_THIRD_PAST - first_past = VASSAL_CONTRACT_INCREASE_OBLIGATIONS_FIRST_PAST -} - -vassal_contract_decrease_obligation_level = { - global = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_GLOBAL - third = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_THIRD - first = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_FIRST - global_past = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_GLOBAL_PAST - third_past = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_THIRD_PAST - first_past = VASSAL_CONTRACT_DECREASE_OBLIGATIONS_FIRST_PAST -} - -set_primary_spouse = { - first = SET_PRIMARY_SPOUSE_FIRST - third = SET_PRIMARY_SPOUSE_THIRD - first_past = SET_PRIMARY_SPOUSE_FIRST_PAST - third_past = SET_PRIMARY_SPOUSE_THIRD_PAST -} - -add_diplomacy_lifestyle_xp = { - global = GAINS_DIPLOMACY_LIFESTYLE_XP - global_past = GAINED_DIPLOMACY_LIFESTYLE_XP - first = I_GAIN_DIPLOMACY_LIFESTYLE_XP - first_past = I_GAINED_DIPLOMACY_LIFESTYLE_XP - third = TARGET_GAINS_DIPLOMACY_LIFESTYLE_XP - third_past = TARGET_GAINED_DIPLOMACY_LIFESTYLE_XP -} - -add_martial_lifestyle_xp = { - global = GAINS_MARTIAL_LIFESTYLE_XP - global_past = GAINED_MARTIAL_LIFESTYLE_XP - first = I_GAIN_MARTIAL_LIFESTYLE_XP - first_past = I_GAINED_MARTIAL_LIFESTYLE_XP - third = TARGET_GAINS_MARTIAL_LIFESTYLE_XP - third_past = TARGET_GAINED_MARTIAL_LIFESTYLE_XP -} - -add_stewardship_lifestyle_xp = { - global = GAINS_STEWARDSHIP_LIFESTYLE_XP - global_past = GAINED_STEWARDSHIP_LIFESTYLE_XP - first = I_GAIN_STEWARDSHIP_LIFESTYLE_XP - first_past = I_GAINED_STEWARDSHIP_LIFESTYLE_XP - third = TARGET_GAINS_STEWARDSHIP_LIFESTYLE_XP - third_past = TARGET_GAINED_STEWARDSHIP_LIFESTYLE_XP -} - -add_intrigue_lifestyle_xp = { - global = GAINS_INTRIGUE_LIFESTYLE_XP - global_past = GAINED_INTRIGUE_LIFESTYLE_XP - first = I_GAIN_INTRIGUE_LIFESTYLE_XP - first_past = I_GAINED_INTRIGUE_LIFESTYLE_XP - third = TARGET_GAINS_INTRIGUE_LIFESTYLE_XP - third_past = TARGET_GAINED_INTRIGUE_LIFESTYLE_XP -} - -add_learning_lifestyle_xp = { - global = GAINS_LEARNING_LIFESTYLE_XP - global_past = GAINED_LEARNING_LIFESTYLE_XP - first = I_GAIN_LEARNING_LIFESTYLE_XP - first_past = I_GAINED_LEARNING_LIFESTYLE_XP - third = TARGET_GAINS_LEARNING_LIFESTYLE_XP - third_past = TARGET_GAINED_LEARNING_LIFESTYLE_XP -} - -add_diplomacy_lifestyle_perk_points = { - global = GAINS_A_DIPLOMACY_LIFESTYLE_PERKPOINT - global_past = GAINED_A_DIPLOMACY_LIFESTYLE_PERKPOINT - first = I_GAIN_A_DIPLOMACY_LIFESTYLE_PERKPOINT - first_past = I_GAINED_A_DIPLOMACY_LIFESTYLE_PERKPOINT - third = TARGET_GAINS_A_DIPLOMACY_LIFESTYLE_PERKPOINT - third_past = TARGET_GAINED_A_DIPLOMACY_LIFESTYLE_PERKPOINT -} - -add_martial_lifestyle_perk_points = { - global = GAINS_A_MARTIAL_LIFESTYLE_PERKPOINT - global_past = GAINED_A_MARTIAL_LIFESTYLE_PERKPOINT - first = I_GAIN_A_MARTIAL_LIFESTYLE_PERKPOINT - first_past = I_GAINED_A_MARTIAL_LIFESTYLE_PERKPOINT - third = TARGET_GAINS_A_MARTIAL_LIFESTYLE_PERKPOINT - third_past = TARGET_GAINED_A_MARTIAL_LIFESTYLE_PERKPOINT -} - -add_stewardship_lifestyle_perk_points = { - global = GAINS_A_STEWARDSHIP_LIFESTYLE_PERKPOINT - global_past = GAINED_A_STEWARDSHIP_LIFESTYLE_PERKPOINT - first = I_GAIN_A_STEWARDSHIP_LIFESTYLE_PERKPOINT - first_past = I_GAINED_A_STEWARDSHIP_LIFESTYLE_PERKPOINT - third = TARGET_GAINS_A_STEWARDSHIP_LIFESTYLE_PERKPOINT - third_past = TARGET_GAINED_A_STEWARDSHIP_LIFESTYLE_PERKPOINT -} - -add_intrigue_lifestyle_perk_points = { - global = GAINS_A_INTRIGUE_LIFESTYLE_PERKPOINT - global_past = GAINED_A_INTRIGUE_LIFESTYLE_PERKPOINT - first = I_GAIN_A_INTRIGUE_LIFESTYLE_PERKPOINT - first_past = I_GAINED_A_INTRIGUE_LIFESTYLE_PERKPOINT - third = TARGET_GAINS_A_INTRIGUE_LIFESTYLE_PERKPOINT - third_past = TARGET_GAINED_A_INTRIGUE_LIFESTYLE_PERKPOINT -} - -add_learning_lifestyle_perk_points = { - global = GAINS_A_LEARNING_LIFESTYLE_PERKPOINT - global_past = GAINED_A_LEARNING_LIFESTYLE_PERKPOINT - first = I_GAIN_LEARNING_A_LIFESTYLE_PERKPOINT - first_past = I_GAINED_A_LEARNING_LIFESTYLE_PERKPOINT - third = TARGET_GAINS_A_LEARNING_LIFESTYLE_PERKPOINT - third_past = TARGET_GAINED_A_LEARNING_LIFESTYLE_PERKPOINT -} - -loyalty_and_respect_perk_stats_effect = { - global = LOYALTY_AND_RESPECT_PERK_STATS_EFFECT -} - -set_sexuality = { - global = SET_SEXUALITY_EFFECT - global_past = REALIZED_SEXUALITY_EFFECT - third = THEY_SET_SEXUALITY_EFFECT - third_past = THEY_REALIZED_SEXUALITY_EFFECT - first = I_SET_SEXUALITY_EFFECT - first_past = I_REALIZED_SEXUALITY_EFFECT -} - -hajj_distance_info_text = { - first = hajj_distance_info_text -} - -remove_decision_cooldown = { - first = I_REMOVE_DECISION_COOLDOWN_EFFECT - third = THEY_REMOVE_DECISION_COOLDOWN_EFFECT -} - -remove_interaction_cooldown = { - first = I_REMOVE_INTERACTION_COOLDOWN_EFFECT - third = THEY_REMOVE_INTERACTION_COOLDOWN_EFFECT -} - -remove_interaction_cooldown_against = { - first = I_REMOVE_INTERACTION_COOLDOWN_AGAINST_EFFECT - third = THEY_REMOVE_INTERACTION_COOLDOWN_AGAINST_EFFECT -} - -remove_scheme_cooldown_against = { - first = I_REMOVE_SCHEME_COOLDOWN_AGAINST_EFFECT - third = THEY_REMOVE_SCHEME_COOLDOWN_AGAINST_EFFECT -} - -destroy_character_memory = { - first = I_LOSE_MEMORY_EFFECT -} - -consume_imprisonment_reasons = { - global = CONCEDES_THEIR_RIGHT_TO_IMPRISON_CHARACTER - first = YOU_CONCEDE_YOUR_RIGHT_TO_IMPRISON_CHARACTER - third = CHARACTER_CONCEDES_THEIR_RIGHT_TO_IMPRISON_CHARACTER - global_past = CONCEDED_THEIR_RIGHT_TO_IMPRISON_CHARACTER - first_past = YOU_CONCEDED_YOUR_RIGHT_TO_IMPRISON_CHARACTER - third_past = CHARACTER_CONCEDED_THEIR_RIGHT_TO_IMPRISON_CHARACTER -} - -consume_banish_reasons = { - global = CONCEDES_THEIR_RIGHT_TO_BANISH_CHARACTER - first = YOU_CONCEDE_YOUR_RIGHT_TO_BANISH_CHARACTER - third = CHARACTER_CONCEDES_THEIR_RIGHT_TO_BANISH_CHARACTER - global_past = CONCEDED_THEIR_RIGHT_TO_BANISH_CHARACTER - first_past = YOU_CONCEDED_YOUR_RIGHT_TO_BANISH_CHARACTER - third_past = CHARACTER_CONCEDED_THEIR_RIGHT_TO_BANISH_CHARACTER -} - -consume_revoke_title_reason = { - global = CONCEDES_THEIR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER - first = YOU_CONCEDE_YOUR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER - third = CHARACTER_CONCEDES_THEIR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER - global_past = CONCEDED_THEIR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER - first_past = YOU_CONCEDED_YOUR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER - third_past = CHARACTER_CONCEDED_THEIR_RIGHT_TO_REVOKE_A_TITLE_FROM_CHARACTER -} - -consume_execute_reasons = { - global = CONCEDES_THEIR_RIGHT_TO_EXECUTE_CHARACTER - first = YOU_CONCEDE_YOUR_RIGHT_TO_EXECUTE_CHARACTER - third = CHARACTER_CONCEDES_THEIR_RIGHT_TO_EXECUTE_CHARACTER - global_past = CONCEDED_THEIR_RIGHT_TO_EXECUTE_CHARACTER - first_past = YOU_CONCEDED_YOUR_RIGHT_TO_EXECUTE_CHARACTER - third_past = CHARACTER_CONCEDED_THEIR_RIGHT_TO_EXECUTE_CHARACTER -} - -end_story = { - global = END_STORY_EFFECT -} - -force_vote_as_no_duration = { - global = FORCE_VOTE_AS_NO_DURATION - third = FORCE_VOTE_AS_NO_DURATION_THIRD - first = FORCE_VOTE_AS_NO_DURATION_FIRST -} - -force_vote_as = { - global = FORCE_VOTE_AS - third = FORCE_VOTE_AS_THIRD - first = FORCE_VOTE_AS_FIRST -} - -party_baron_negative_attitude_counter_stress_tt = { - global = party_baron_negative_attitude_counter_stress_tt - third = party_baron_negative_attitude_counter_stress_tt - first = party_baron_negative_attitude_counter_stress_tt -} - -party_baron_positive_attitude_counter_stress_tt = { - global = party_baron_positive_attitude_counter_stress_tt - third = party_baron_positive_attitude_counter_stress_tt - first = party_baron_positive_attitude_counter_stress_tt -} - -set_vassal_contract_modification_blocked = { - global = CONTRACT_MODIFICATION_BLOCKED_GLOBAL - global_past = CONTRACT_MODIFICATION_BLOCKED_GLOBAL_PAST - first = CONTRACT_MODIFICATION_BLOCKED_FIRST - first_past = CONTRACT_MODIFICATION_BLOCKED_FIRST_PAST - third = CONTRACT_MODIFICATION_BLOCKED_THIRD - third_past = CONTRACT_MODIFICATION_BLOCKED_THIRD_PAST -} - -copy_localized_text = { - global = COPY_LOCALIZED_TEXT -} - -remove_localized_text = { - global = REMOVE_LOCALIZED_TEXT -} - -set_mother = { - global = SET_MOTHER_OF_CHARACTER - first = SET_MY_MOTHER - third = SET_THEIR_MOTHER - global_past = SAT_MOTHER_OF_CHARACTER - first_past = SAT_MY_MOTHER - third_past = SAT_THEIR_MOTHER -} - -change_trait_rank = { - global = CHANGE_TRAIT_RANK_GLOBAL - first = CHANGE_TRAIT_RANK_FIRST - third = CHANGE_TRAIT_RANK_THIRD -} - -set_relation_potential_hook = { - first = I_GAIN_POTENTIAL_HOOK - third = THEY_GAIN_POTENTIAL_HOOK - global = GAINS_POTENTIAL_HOOK - first_past = I_GOT_POTENTIAL_HOOK - third_past = THEY_GAINED_POTENTIAL_HOOK - global_past = GAINED_POTENTIAL_HOOK -} - -remove_relation_potential_hook = { - first = I_LOSE_POTENTIAL_HOOK -} - -add_glory = { - first_past = I_GAINED_GLORY_EFFECT - first_past_neg = I_LOST_GLORY_EFFECT - third_past = THEY_GAINED_GLORY_EFFECT - third_past_neg = THEY_LOST_GLORY_EFFECT - global_past = GAINED_GLORY_EFFECT - global_past_neg = LOST_GLORY_EFFECT - first = I_GAIN_GLORY_EFFECT - first_neg = I_LOSE_GLORY_EFFECT - third = THEY_GAIN_GLORY_EFFECT - third_neg = THEY_LOSE_GLORY_EFFECT - global = GAIN_GLORY_EFFECT - global_neg = LOSE_GLORY_EFFECT -} - -upon_holding_completion = { - global = UPON_HOLDING_COMPLETION - first = UPON_HOLDING_COMPLETION - third = UPON_HOLDING_COMPLETION -} - -reminds_of_childhood_decision = { - first = REMINDS_OF_CHILDHOOD_DECISION - first_past = REMINDED_OF_CHILDHOOD_DECISION -} diff --git a/common/effect_localization/00_council_effects.txt b/common/effect_localization/00_council_effects.txt deleted file mode 100644 index c9badf2e6d..0000000000 --- a/common/effect_localization/00_council_effects.txt +++ /dev/null @@ -1,45 +0,0 @@ -finish_council_task = { - global = FINISH_COUNCIL_TASK_EFFECT -} - -start_default_task = { - global = START_DEFAULT_TASK_EFFECT - global_past = START_DEFAULT_TASK_EFFECT_PAST - third_past = START_DEFAULT_TASK_EFFECT_PAST -} - -assign_council_task = { - global = ASSIGN_COUNCIL_TASK - global_past = ASSIGN_COUNCIL_TASK_PAST -} - -assign_councillor = { - global = ASSIGN_COUNCILLOR - first = BECOME_MY_COUNCILLOR -} - -assign_councillor_type = { - global = ASSIGN_COUNCILLOR_TYPE - first = BECOME_MY_COUNCILLOR -} - -fire_councillor = { - global = FIRE_COUNCILLOR - first = FIRED_FROM_MY_COUNCIL -} - -set_council_task = { - third = "SET_COUNCIL_TASK_EFFECT" -} - -set_court_council_task = { - third = "SET_COURT_COUNCIL_TASK_EFFECT" -} - -set_county_council_task = { - third = "SET_COUNTY_COUNCIL_TASK_EFFECT" -} - -change_de_jure_drift_progress = { - global = CHANGE_DE_JURE_DRIFT_PROGRESS_EFFECT -} diff --git a/common/effect_localization/00_county_effects.txt b/common/effect_localization/00_county_effects.txt deleted file mode 100644 index fc6c656ff4..0000000000 --- a/common/effect_localization/00_county_effects.txt +++ /dev/null @@ -1,24 +0,0 @@ -add_county_modifier = { - third = IT_RECEIVES_COUNTY_MODIFIER - global = RECEIVES_COUNTY_MODIFIER - third_past = IT_RECEIVED_COUNTY_MODIFIER - global_past = RECEIVED_COUNTY_MODIFIER -} - -add_county_modifier_duration = { - third = IT_RECEIVES_COUNTY_MODIFIER_UNTIL_EFFECT - global = RECEIVES_COUNTY_MODIFIER_DURATION - third_past = IT_RECEIVED_COUNTY_MODIFIER_UNTIL_EFFECT - global_past = RECEIVED_COUNTY_MODIFIER_DURATION -} - -remove_county_modifier = { - third = IT_LOSES_COUNTY_MODIFIER - global = LOSES_COUNTY_MODIFIER - third_past = IT_LOST_COUNTY_MODIFIER - global_past = LOST_COUNTY_MODIFIER -} - -add_terrain_modifier = { - global = ADD_TERRAIN_MODIFIER_EFFECT -} diff --git a/common/effect_localization/00_culture_effect.txt b/common/effect_localization/00_culture_effect.txt deleted file mode 100644 index f08ae1d37d..0000000000 --- a/common/effect_localization/00_culture_effect.txt +++ /dev/null @@ -1,96 +0,0 @@ -add_innovation = { - global = ADD_INNOVATION_EFFECT - global_past = ADDED_INNOVATION_EFFECT -} - -remove_innovation = { - global = REMOVE_INNOVATION_EFFECT - global_past = REMOVED_INNOVATION_EFFECT -} - -get_random_innovation_from = { - global = GET_RANDOM_INNOVATION_FROM_EFFECT - global_past = GOT_RANDOM_INNOVATION_FROM_EFFECT - third = GET_RANDOM_INNOVATION_FROM_EFFECT - third_past = GOT_RANDOM_INNOVATION_FROM_EFFECT -} - -add_random_innovation = { - global = ADD_RANDOM_INNOVATION_EFFECT - global_past = GOT_RANDOM_INNOVATION_EFFECT -} - -decide_on_local_culture_conversion = { - global = DECIDE_ON_CULTURE_CONVERSION - first = YOU_MUST_DECIDE_ON_CULTURE_CONVERSION - third = THEY_MUST_DECIDE_ON_CULTURE_CONVERSION -} - -change_cultural_acceptance = { - global = INCREASE_CULTURAL_ACCEPTANCE - global_neg = REDUCE_CULTURAL_ACCEPTANCE - global_past = INCREASED_CULTURAL_ACCEPTANCE - global_past_neg = REDUCED_CULTURAL_ACCEPTANCE - third = INCREASE_CULTURAL_ACCEPTANCE_WITH - third_neg = REDUCE_CULTURAL_ACCEPTANCE_WITH - third_past = INCREASED_CULTURAL_ACCEPTANCE_WITH - third_past_neg = REDUCED_CULTURAL_ACCEPTANCE_WITH -} - -learn_language_of_culture = { - first = LEARN_LANGUAGE_OF_CULTURE_FIRST - third = LEARN_LANGUAGE_OF_CULTURE_THIRD - global = LEARN_LANGUAGE_OF_CULTURE_GLOBAL - global_past = LEARN_LANGUAGE_OF_CULTURE_PAST - first_past = LEARN_LANGUAGE_OF_CULTURE_FIRST_PAST - third_past = LEARN_LANGUAGE_OF_CULTURE_THIRD_PAST -} - -unlearn_language_of_culture = { - first = UNLEARN_LANGUAGE_OF_CULTURE_FIRST - third = UNLEARN_LANGUAGE_OF_CULTURE_THIRD - global = UNLEARN_LANGUAGE_OF_CULTURE_GLOBAL -} - -learn_language = { - first = LEARN_LANGUAGE_FIRST - third = LEARN_LANGUAGE_THIRD - global = LEARN_LANGUAGE_GLOBAL - first_past = LEARN_LANGUAGE_FIRST_PAST - third_past = LEARN_LANGUAGE_THIRD_PAST - global_past = LEARN_LANGUAGE_GLOBAL_PAST -} - -unlearn_language = { - first = UNLEARN_LANGUAGE_FIRST - third = UNLEARN_LANGUAGE_THIRD - global = UNLEARN_LANGUAGE_GLOBAL - first_past = UNLEARN_LANGUAGE_FIRST_PAST - third_past = UNLEARN_LANGUAGE_THIRD_PAST - global_past = UNLEARN_LANGUAGE_GLOBAL_PAST -} - -set_ethos_from = { - global = SET_ETHOS_FROM - global_past = SET_ETHOS_FROM_PAST -} - -set_language_from = { - global = SET_LANGUAGE_FROM - global_past = SET_LANGUAGE_FROM_PAST -} - -reset_culture_creation_date = { - global = RESET_CULTURE_CREATION_DATE - global_past = RESET_CULTURE_CREATION_DATE_PAST -} - -remove_culture_tradition = { - global = REMOVE_CULTURAL_TRADITION - third = REMOVE_CULTURAL_TRADITION_THIRD -} - -add_culture_tradition = { - global = ADD_CULTURAL_TRADITION - third = ADD_CULTURAL_TRADITION_THIRD -} diff --git a/common/effect_localization/00_custom_effects.txt b/common/effect_localization/00_custom_effects.txt deleted file mode 100644 index 7f8c167b69..0000000000 --- a/common/effect_localization/00_custom_effects.txt +++ /dev/null @@ -1,92 +0,0 @@ -custom_seize_title_and_below_de_jure = { - global = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT - global_past = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT_PAST - first = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT_FIRST - first_past = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT_FIRST_PAST - third = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT_THIRD - third_past = CUSTOM_SEIZE_TITLE_AND_BELOW_DE_JURE_EFFECT_THIRD_PAST -} - -custom_seize_title = { - global = CUSTOM_SEIZE_TITLE_EFFECT - global_past = CUSTOM_SEIZE_TITLE_EFFECT_PAST - first = CUSTOM_SEIZE_TITLE_EFFECT_FIRST - first_past = CUSTOM_SEIZE_TITLE_EFFECT_FIRST_PAST - third = CUSTOM_SEIZE_TITLE_EFFECT_THIRD - third_past = CUSTOM_SEIZE_TITLE_EFFECT_THIRD_PAST -} - -feast_main_befriend.2002.because_of_hospitality_tenet = { - first = feast_main_befriend.2002.because_of_hospitality_tenet -} - -raise_runestone_decision_warning = { - first = raise_runestone_decision_warning -} - -weapon_inspiration_cost_tt = { - global = weapon_inspiration_cost_tt -} - -armor_inspiration_cost_tt = { - global = armor_inspiration_cost_tt -} - -book_inspiration_cost_tt = { - global = book_inspiration_cost_tt -} - -weaver_inspiration_cost_tt = { - global = weaver_inspiration_cost_tt -} - -adventure_inspiration_cost_tt = { - global = adventure_inspiration_cost_tt -} - -artisan_inspiration_cost_tt = { - global = artisan_inspiration_cost_tt -} - -smith_inspiration_cost_tt = { - global = smith_inspiration_cost_tt -} - -alchemy_inspiration_cost_tt = { - global = alchemy_inspiration_cost_tt -} - -stewardship_haggle_cheap_trinket_tt = { - global = stewardship_haggle_cheap_trinket_tt -} - -stewardship_haggle_expensive_trinket_tt = { - global = stewardship_haggle_expensive_trinket_tt -} - -stewardship_haggle_helpful_trinket_tt = { - global = stewardship_haggle_helpful_trinket_tt -} - -fp2_struggle_hostility_list_tt = { # Pick one or both of the following for FP2 Hositility ending - global = fp2_struggle_hostility_list_tt - first = fp2_struggle_hostility_list_tt -} - -fp2_struggle_secure_iberian_foothold_list_tt = { - global = fp2_struggle_secure_iberian_foothold_list_tt -} - -fp2_struggle_house_tt = { - global = fp2_struggle_house_tt - first = fp2_struggle_house_tt -} - -murder_outcome_murdered_rival_tt = { - global = murder_outcome_murdered_rival_tt -} - -ep2_tournament_maysir_tt = { - global = ep2_tournament_maysir_tt -} - diff --git a/common/effect_localization/00_dynasty_effects.txt b/common/effect_localization/00_dynasty_effects.txt deleted file mode 100644 index 45e96bb7a8..0000000000 --- a/common/effect_localization/00_dynasty_effects.txt +++ /dev/null @@ -1,22 +0,0 @@ - -create_cadet_branch = { - first = I_CREATE_CADET_BRANCH -} - -add_dynasty_prestige_level = { - global = DYNASTY_NO_NAME_GAINS_PRESTIGE_LEVEL_EFFECT - global_neg = DYNASTY_NO_NAME_LOSES_PRESTIGE_LEVEL_EFFECT - third = DYNASTY_GAINS_PRESTIGE_LEVEL_EFFECT - third_neg = DYNASTY_LOSES_PRESTIGE_LEVEL_EFFECT -} - -add_dynasty_prestige = { - global = DYNASTY_GAINED_PRESTIGE_GLOBAL_EFFECT - global_neg = DYNASTY_LOST_PRESTIGE_GLOBAL_EFFECT - third = DYNASTY_GAINS_PRESTIGE_EFFECT - third_neg = DYNASTY_LOSES_PRESTIGE_EFFECT - third_past = DYNAST_GAINED_PRESTIGE_EFFECT - third_past_neg = DYNAST_LOST_PRESTIGE_EFFECT - first = DYNASTY_GAIN_PRESTIGE_EFFECT - first_neg = DYNASTY_LOSE_PRESTIGE_EFFECT -} diff --git a/common/effect_localization/00_faction_effects.txt b/common/effect_localization/00_faction_effects.txt deleted file mode 100644 index 96044e19b2..0000000000 --- a/common/effect_localization/00_faction_effects.txt +++ /dev/null @@ -1,69 +0,0 @@ -add_faction_discontent = { - global = ADD_FACTION_DISCONTENT_EFFECT - global_neg = REMOVE_FACTION_DISCONTENT_EFFECT - third = ADD_FACTION_DISCONTENT_EFFECT_THIRD - third_neg = REMOVE_FACTION_DISCONTENT_EFFECT_THIRD -} - -add_joined_faction_discontent = { - global = ADD_JOINED_FACTION_DISCONTENT_EFFECT - global_neg = REMOVE_JOINED_FACTION_DISCONTENT_EFFECT - third = ADD_JOINED_FACTION_DISCONTENT_EFFECT_THIRD - third_neg = REMOVE_JOINED_FACTION_DISCONTENT_EFFECT_THIRD -} - -add_targeting_factions_discontent = { - global = ADD_TARGETING_FACTIONS_DISCONTENT_EFFECT - global_neg = REMOVE_TARGETING_FACTIONS_DISCONTENT_EFFECT - third = ADD_TARGETING_FACTIONS_DISCONTENT_EFFECT_THIRD - third_neg = REMOVE_TARGETING_FACTIONS_DISCONTENT_EFFECT_THIRD -} - -join_faction = { - first = I_JOIN_FACTION_EFFECT - first_past = I_JOINED_FACTION_EFFECT - global = JOIN_FACTION_EFFECT - global_past = JOINED_FACTION_EFFECT -} - -join_faction_forced = { - global = JOIN_FACTION_FORCED_EFFECT -} - -leave_faction = { - global = LEAVE_FACTION_EFFECT - first = I_LEAVE_FACTION_EFFECT - third = CHARACTER_LEAVES_FACTION_EFECT -} - -destroy_faction = { - global = DESTROY_FACTION_EFFECT - global_past = DESTROY_FACTION_EFFECT -} - -create_faction = { - third = THEY_CREATE_FACTION_EFFECT - global = CREATE_FACTION_EFFECT - global_past = CREATED_FACTION_EFFECT -} - -faction_start_war = { - global = FACTION_STARTS_WAR -} - -title_join_faction = { - global = TITLE_JOIN_FACTION -} - -title_leave_faction = { - global = TITLE_LEAVE_FACTION -} - -faction_cooldown_effect = { - first = leave_faction_with_cooldown_effect_first.tt - third = leave_faction_with_cooldown_effect_third.tt - global = leave_faction_with_cooldown_effect_global.tt - first_past = leave_faction_with_cooldown_effect_first.tt - third_past = leave_faction_with_cooldown_effect_third.tt - global_past = leave_faction_with_cooldown_effect_global.tt -} diff --git a/common/effect_localization/00_landed_title_effects.txt b/common/effect_localization/00_landed_title_effects.txt deleted file mode 100644 index e0f23e17a0..0000000000 --- a/common/effect_localization/00_landed_title_effects.txt +++ /dev/null @@ -1,42 +0,0 @@ -set_county_culture = { - global = SET_CULTURE_EFFECT - global_past = SET_CULTURE_PAST_EFFECT - third = COUNTY_CULTURE_EFFECT - third_past = COUNTY_CULTURE_PAST_EFFECT -} - -set_county_faith = { - global = COUNTY_FAITH_EFFECT - global_past = COUNTY_FAITH_PAST_EFFECT - third = THIRD_COUNTY_FAITH_EFFECT - third_past = THIRD_COUNTY_FAITH_PAST_EFFECT -} - - -set_title_name = { - global = GLOBAL_SET_TITLE_NAME_EFFECT - global_past = GLOBAL_SET_TITLE_NAME_EFFECT_PAST - third = THIRD_SET_TITLE_NAME_EFFECT - third_past = THIRD_SET_TITLE_NAME_EFFECT_PAST -} - -set_title_prefix = { - global = GLOBAL_SET_TITLE_PREFIX_EFFECT - global_past = GLOBAL_SET_TITLE_PREFIX_EFFECT_PAST - third = THIRD_SET_TITLE_PREFIX_EFFECT - third_past = THIRD_SET_TITLE_PREFIX_EFFECT_PAST -} - -reset_title_name = { - global = GLOBAL_RESET_TITLE_NAME_EFFECT - global_past = GLOBAL_RESET_TITLE_NAME_EFFECT_PAST - third = THIRD_RESET_TITLE_NAME_EFFECT - third_past = THIRD_RESET_TITLE_NAME_EFFECT_PAST -} - -reset_title_prefix = { - global = GLOBAL_RESET_TITLE_PREFIX_EFFECT - global_past = GLOBAL_RESET_TITLE_PREFIX_EFFECT_PAST - third = THIRD_RESET_TITLE_PREFIX_EFFECT - third_past = THIRD_RESET_TITLE_PREFIX_EFFECT_PAST -} \ No newline at end of file diff --git a/common/effect_localization/00_perk_effects.txt b/common/effect_localization/00_perk_effects.txt deleted file mode 100644 index bd498a640c..0000000000 --- a/common/effect_localization/00_perk_effects.txt +++ /dev/null @@ -1,553 +0,0 @@ - -unshackled_lust_perk_effect = { - global = NO_PENALTY_FOR_LACK_OF_ATTRACTION - first = I_SUFFER_NO_PENALTY_FOR_LACK_OF_ATTRACTION - third = THEY_SUFFER_NO_PENALTY_FOR_LACK_OF_ATTRACTION -} - -subtle_desire_perk_effect = { - global = REMOVES_INCEST_SEDUCTION_PENALTIES - first = REMOVES_MY_INCEST_SEDUCTION_PENALTIES - third = REMOVES_THEIR_INCEST_SEDCUTION_PENALTIES -} - -mortal_adoration_perk_effect = { - global = INCREASED_CHANCE_OF_LOVERS_SAVING - first = INCREASED_CHANCE_OF_MY_LOVERS_SAVING_ME - third = INCREASED_CHANCE_OF_THEIR_LOVERS_SAVING_THEM -} - -murder_feast_perk_effect = { - global = MURDER_FEAST_UNLOCKED - first = MY_MURDER_FEAST_UNLOCKED - third = THEIR_MURDER_FEAST_UNLOCKED -} - -home_advantage_perk_effect = { - global = INCREASED_SEDUCE_SUCCESS_CHANCE_AGAINST_COURTIERS - first = INCREASED_SEDUCE_SUCCESS_CHANCE_AGAINST_MY_COURTIERS - third = INCREASED_SEDUCE_SUCCESS_CHANCE_AGAINST_THEIR_COURTIERS -} - -graceful_recovery_perk_effect = { - global = CAN_NO_LONGER_CRITICALLY_FAIL_SEDUCTION_SCHEMES - first = I_CAN_NO_LONGER_CRITICALLY_FAIL_SEDUCTION_SCHEMES - third = THEY_CAN_NO_LONGER_CRITICALLY_FAIL_SEDUCTION_SCHEMES -} - -smooth_operator_perk_effect = { - global = INCREASED_SEDUCE_SUCCESS_CHANCE_25 - first = INCREASED_SEDUCE_SUCCESS_CHANCE_25_YOU - third = INCREASED_SEDUCE_SUCCESS_CHANCE_25_THEY -} - -truth_is_relative_perk_effect = { - global = ESPIONAGE_MAY_FABRICATE_HOOKS -} - -truth_is_relative_scheme_effect = { - global = ENABLE_FABRICATE_HOOK_SCHEME -} - -digging_for_dirt_perk_effect = { - global = ESPIONAGE_COUNCILLOR_TASK_BONUS_25 - first = ESPIONAGE_COUNCILLOR_TASK_BONUS_25 - third = ESPIONAGE_COUNCILLOR_TASK_BONUS_25 -} - -kidnapper_perk_effect = { - global = ENABLE_ABDUCTION_SCHEME - first = ENABLE_ABDUCTION_SCHEME - third = ENABLE_ABDUCTION_SCHEME -} - -court_of_shadows_perk_effect = { - global = DISRUPT_SCHEMES_COUNCILLOR_TASK_BONUS_25 -} - -prepared_for_anything_perk_bonus_effect = { - global = ENEMY_HOSTILE_SCHEME_TARGETING_COURTIER_REDUCTION -} - -dark_insights_perk_effect = { - global = SKILL_POINT_FROM_TORTURE_GAIN_CHANCE - first = SKILL_POINT_FROM_ME_TORTURING_GAIN_CHANCE - third = SKILL_POINT_FROM_THEM_TORTURING_GAIN_CHANCE -} - -divine_retribution_perk_effect = { - global = NO_PIETY_OR_OPINION_LOSS_FROM_TORTURE - first = I_DO_NOT_LOSE_PIETY_OR_TEMPLE_VASSAL_OPINION_FROM_TORTURE - third = THEY_DO_NOT_LOSE_PIETY_OR_TEMPLE_VASSAL_OPINION_FROM_TORTURE -} - -prison_feudal_complex_perk_effect = { - global = INCREASED_IMPRISONMENT_CHANCE_AGAINST_OTHERS - first = INCREASED_IMPRISONMENT_CHANCE_AGAINST_OTHERS - third = INCREASED_IMPRISONMENT_CHANCE_AGAINST_OTHERS -} - -strict_organization_perk_effect = { - global = COUNCIL_TASK_INCREASE_CONTROL_PROGRESS_INCREASE - first = COUNCIL_TASK_INCREASE_CONTROL_PROGRESS_INCREASE - third = COUNCIL_TASK_INCREASE_CONTROL_PROGRESS_INCREASE -} - -courtship_perk_effect = { - global = COURTING_PERK_SUCCESS_CHANCE_BONUS - first = COURTING_PERK_SUCCESS_CHANCE_BONUS - third = COURTING_PERK_SUCCESS_CHANCE_BONUS -} - -promising_prospects_perk_effect = { - global = MARRIAGE_ACCEPTANCE_FOR_SELF_AND_EXTENDED_FAMILY - first = MARRIAGE_ACCEPTANCE_FOR_ME_AND_MY_EXTENDED_FAMILY - third = MARRIAGE_ACCEPTANCE_FOR_THEM_AND_THEIR_EXTENDED_FAMILY -} - -peacemaker_perk_effect = { - global = PEACE_OFFER_ACCEPTANCE -} - -thoughtful_perk_effect = { - global = SEND_GIFT_OPINION_GAIN_DOUBLED -} - -ducal_conquest_perk_effect = { - global = UNLOCK_DUCAL_CONQUEST_CB - first = I_AM_ABLE_TO_USE_DUCAL_CONQUEST_CB - third = THEY_ARE_ABLE_TO_USE_THE_DUCAL_CONQUEST_CB -} - -forced_vassalage_perk_effect = { - global = UNLOCK_FORCED_VASSALAGE_CB - first = I_AM_ABLE_TO_USE_FORCED_VASSALAGE_CB - third = THEY_ARE_ABLE_TO_USE_THE_FORCED_VASSALAGE_CB -} - -adaptive_traditions_perk_effect = { - global = FOREIGN_AFFAIRS_TASK_EFFECTIVENESS -} - -bellum_justum_effect = { - global = CASUS_BELLI_COST_PERK_REDUCTION -} - -flexible_truces_perk_effect = { - global = PERK_TRUCE_BREAKING_COST_REDUCTION -} - -defensive_negotiations_perk_effect = { - global = PERK_CAN_SIGN_ALLIANCE -} - -embassies_perk_effect = { - global = EACH_ALLIANCE_GRANTS_DIPLOMACY -} - -accomplished_forger_perk_effect = { - global = FABRICATE_CLAIM_SPEED_GAIN -} - -red_wedding_perk_effect = { - global = RED_WEDDING_UNLOCKED - first = MY_RED_WEDDING_UNLOCKED - third = THEIR_RED_WEDDING_UNLOCKED -} - -befriend_perk_effect = { - global = UNLOCK_BEFRIEND_SCHEME - first = I_CAN_USE_THE_BEFRIEND_SCHEME - third = THEY_CAN_USE_THE_BEFRIEND_SCHEME -} - -unlocks_board_games_interaction_effect = { - first = unlocks_board_games_interaction_effect -} - -confidants_perk_effect = { - global = EACH_FRIEND_ADDS_STRESS_REDUCTION -} - -groomed_to_rule_perk_effect = { - global = CHILDREN_ARE_BORN_WITH_EXTRA_STATS -} - -thicker_than_water_perk_effect = { - global = BEFRIEND_SUCCESS_CHANCE_AGAINST_FAMILY -} - -kin_legacy_2_legacy_effect = { - global = BETTER_EDUCATION_OUTCOMES - first = BETTER_EDUCATION_OUTCOMES - third = BETTER_EDUCATION_OUTCOMES -} - -kin_legacy_3_legacy_effect = { - global = FEWER_COMPLICATIONS_DURING_PREGNANCY - first = FEWER_COMPLICATIONS_DURING_PREGNANCY - third = FEWER_COMPLICATIONS_DURING_PREGNANCY -} - -kin_legacy_4_legacy_effect = { - global = PERSONAL_SCHEME_SUCCESS_CHANCE_AGAINST_DYNASTY - first = PERSONAL_SCHEME_SUCCESS_CHANCE_AGAINST_DYNASTY - third = PERSONAL_SCHEME_SUCCESS_CHANCE_AGAINST_DYNASTY -} - -kin_accolade_effect = { - global = UNLOCK_HOUSE_KNIGHT_ACCOLADE_TYPE - first = UNLOCK_HOUSE_KNIGHT_ACCOLADE_TYPE - third = UNLOCK_HOUSE_KNIGHT_ACCOLADE_TYPE -} - -kin_legacy_5_legacy_effect = { - global = GAIN_SKILL_FROM_AGING - first = GAIN_SKILL_FROM_AGING - third = GAIN_SKILL_FROM_AGING -} - -friendly_counsel_perk_effect = { - global = EACH_FRIEND_ADDS_RANDOM_SKILL_POINT - first = EACH_FRIEND_ADDS_RANDOM_SKILL_POINT -} - -sound_foundations_perk_effect = { - first = EACH_LIVING_CHILD_ADDS_RANDOM_SKILL_POINT -} - -true_ruler_perk_effect = { - global = OFFER_VASSALIZATION_ACCEPTANCE_INCREASE -} - -refund_all_perks = { - first = REFUND_ALL_PERKS_EFFECT -} - -stalwart_leader_perk_effect = { - global = REDUCED_CHANCE_OF_BEING_WOUNDED_KILLED_OR_IMPRISONED_IN_BATTLE -} - -it_is_my_domain_perk_effect = { - global = CAN_USE_THE_EXTORT_SUBJECTS_DECISION -} - -at_any_cost_perk_effect = { - global = CAN_USE_THE_SELL_TITLES_DECISION -} - -tax_man_perk_effect = { - global = COLLECT_TAXES_EFFECTIVENESS_GAIN -} - -unlocks_truce_purchasing_interaction_desc = { - global = unlocks_truce_purchasing_interaction_desc -} - -pedagogy_perk_effect = { - global = CHILDREN_HAVE_CHANCE_OF_IMPROVEMENT - first = CHILDREN_I_EDUCATE_HAVE_CHANCE_OF_IMPROVEMENT - third = CHILDREN_THEY_EDUCATE_HAVE_CHANCE_OF_IMPROVEMENT -} - -open_minded_perk_effect = { - global = open_minded_perk_effect - first = my_open_minded_perk_effect - third = their_open_minded_perk_effect -} - -anatomical_studies_perk_effect = { - global = CHEAPER_COURT_PHYSICIAN_AND_BETTER_OUTCOMES -} - -mental_resilience_perk_effect = { - global = MENTAL_BREAK_SPACING -} - -restraint_perk_effect = { - global = UNLOCKS_CELIBACY_DECISIONS - first = I_CAN_USE_CELIBACY_DECISIONS - third = THEY_CAN_USE_CELIBACY_DECISIONS -} - -know_thyself_perk_effect = { - global = RECEIVE_WARNING_OF_NATURAL_DEATH - first = I_WILL_RECEIVE_WARNING_OF_NATURAL_DEATH - third = THEY_WILL_RECEIVE_WARNING_OF_NATURAL_DEATH -} - -religious_icon_perk_effect = { - global = CONVERT_COUNTY_NO_NEGATIVE_FERVOR_MODIFIERS -} - -wash_your_hands_perk_effect = { - global = REDUCED_DISEASE_FREQUENCY_AT_COURT -} - -writing_history_perk_effect = { - global = UNLOCKS_COMMISSION_EPIC_DECISION - first = I_CAN_TAKE_THE_COMMISSION_EPIC_DECISION - third = THEY_CAN_TAKE_THE_COMMISSION_EPIC_DECISION -} - -golden_obligations_perk_effect = { - global = UNLOCKS_DEMAND_PAYMENT_INTERACTION - first = I_CAN_DEMAND_PAYMENT_FOR_HOOKS - third = THEY_CAN_DEMAND_PAYMENT_FOR_HOOKS -} - -meritocracy_perk_effect = { - global = UNLOCKS_CLAIM_THRONE_INTERACTION - first = I_CAN_USE_THE_CLAIM_THRONE_INTERACTION - third = THEY_CAN_USE_THE_CLAIM_THRONE_INTERACTION -} - -chains_of_loyalty_perk_effect = { - global = DOMESTIC_AFFAIRS_EFFICIENCY_BONUS -} - -toe_the_line_perk_effect = { - global = VASSALS_LESS_LIKELY_TO_JOIN_INDEPENDENCE_FACTIONS - first = MY_VASSALS_ARE_MUCH_LESS_LIKELY_TO_JOIN_INDEPENDENCE_FACTIONS - third = THEIR_VASSALS_ARE_MUCH_LESS_LIKELY_TO_JOIN_INDEPENDENCE_FACTIONS -} - -clerical_justifications_perk_effect = { - global = RELIGIOUS_RELATIONS_EFFICIENCY_GAIN - first = RELIGIOUS_RELATIONS_EFFICIENCY_GAIN - third = RELIGIOUS_RELATIONS_EFFICIENCY_GAIN -} - -hard_rule_perk_effect = { - global = FACTION_DISCONTENT_TARGET_REDUCTION -} - -learn_on_the_job_perk_effect = { - global = COUNCILLORS_GRANT_SKILL_BONUS - first = I_GAIN_COUNCILLORS_SKILL_MYSELF - third = THEY_GAIN_COUNCILLORS_SKILL_THEMSELVES -} - -zealous_proselytizer_perk_effect = { - global = CONVERT_COUNTY_SPEED_BONUS -} - -sanctioned_loopholes_perk_effect = { - global = UNLOCK_BUY_CLAIM_INTERACTION - first = I_CAN_USE_BUY_CLAIM_INTERACTION - third = THEY_CAN_USE_BUY_CLAIM_INTERACTION -} - -planned_cultivation_perk_effect = { - global = DEVELOP_COUNTY_EFFICIENCY_INCREASE -} - -enduring_hardships_perk_effect = { - global = NO_CONTROL_LOSS_ON_OCCUPATION -} - -blood_legacy_4_effect = { - global = SELECT_GENETIC_TRAIT_FOR_BLOODLINE_NO_BULLETTAB - first = SELECT_GENETIC_TRAIT_FOR_BLOODLINE_NO_BULLETTAB - third = SELECT_GENETIC_TRAIT_FOR_BLOODLINE_NO_BULLETTAB -} - -warfare_legacy_2_effect = { - global = CASUS_BELLI_COST_DYNASTY_PERK_REDUCTION - first = CASUS_BELLI_COST_DYNASTY_PERK_REDUCTION - third = CASUS_BELLI_COST_DYNASTY_PERK_REDUCTION -} - -warfare_legacy_3_effect = { - global = BETTER_KNIGHTS_DYNASTY_PERK_REDUCTION - first = BETTER_KNIGHTS_DYNASTY_PERK_REDUCTION - third = BETTER_KNIGHTS_DYNASTY_PERK_REDUCTION -} - -warfare_legacy_5_unlock_effect = { - global = HOUSE_GUARD_UNLOCK_DESCRIPTION - first = HOUSE_GUARD_UNLOCK_DESCRIPTION - third = HOUSE_GUARD_UNLOCK_DESCRIPTION -} - -warfare_legacy_5_effect = { - global = HOUSE_GUARD_DESCRIPTION - first = HOUSE_GUARD_DESCRIPTION - third = HOUSE_GUARD_DESCRIPTION -} - -guile_legacy_2_effect = { - global = CHEAPER_AGENTS_LEGACY - first = CHEAPER_AGENTS_LEGACY - third = CHEAPER_AGENTS_LEGACY -} - -law_legacy_1_effect = { - global = CHEAPER_HUNTS_AND_FEASTS - first = CHEAPER_HUNTS_AND_FEASTS - third = CHEAPER_HUNTS_AND_FEASTS -} - -glory_legacy_1_perk_effect = { - global = MARRIAGE_ACCEPTANCE_LEGACY_FOR_SELF - first = MARRIAGE_ACCEPTANCE_LEGACY_FOR_SELF - third = MARRIAGE_ACCEPTANCE_LEGACY_FOR_SELF -} - -glory_legacy_4_perk_effect = { - global = FEWER_FACTIONS_LEGACY - first = FEWER_FACTIONS_LEGACY - third = FEWER_FACTIONS_LEGACY -} - -erudition_legacy_4_effect = { - global = MORE_PIETY_FROM_PILGRIMAGES_LEGACY - first = MORE_PIETY_FROM_PILGRIMAGES_LEGACY - third = MORE_PIETY_FROM_PILGRIMAGES_LEGACY -} - -erudition_legacy_1_effect = { - global = BETTER_GUESTS_LEGACY - first = BETTER_GUESTS_LEGACY - third = BETTER_GUESTS_LEGACY -} - -erudition_legacy_5_effect = { - global = LEGACY_IMPROVED_COUNCIL_TASKS - first = LEGACY_IMPROVED_COUNCIL_TASKS - third = LEGACY_IMPROVED_COUNCIL_TASKS -} - -guile_legacy_5_effect = { - global = ALL_DYNASTY_MEMBERS_HAVE_MURDER_SAVE - first = ALL_DYNASTY_MEMBERS_HAVE_MURDER_SAVE - third = ALL_DYNASTY_MEMBERS_HAVE_MURDER_SAVE -} - -legacy_additional_language_effect = { - global = legacy_additional_language_effect - first = legacy_additional_language_effect - third = legacy_additional_language_effect -} - -legacy_cultural_acceptance_from_language_schemes_effect = { - global = legacy_cultural_acceptance_from_language_schemes_effect - first = legacy_cultural_acceptance_from_language_schemes_effect - third = legacy_cultural_acceptance_from_language_schemes_effect -} - -legacy_more_acceptance_from_council_job_effect = { - global = legacy_more_acceptance_from_council_job_effect - first = legacy_more_acceptance_from_council_job_effect - third = legacy_more_acceptance_from_council_job_effect -} - -legacy_cultural_emissary_court_position_effect = { - global = legacy_cultural_emissary_court_position_effect - first = legacy_cultural_emissary_court_position_effect - third = legacy_cultural_emissary_court_position_effect -} - -legacy_promote_culture_decision_effect = { - global = legacy_promote_culture_decision_effect - first = legacy_promote_culture_decision_effect - third = legacy_promote_culture_decision_effect -} - -legacy_hooks_on_different_culture_vassals_effect = { - global = legacy_hooks_on_different_culture_vassals_effect - first = legacy_hooks_on_different_culture_vassals_effect - third = legacy_hooks_on_different_culture_vassals_effect -} - -set_absolute_country_control = { - global = SET_ABSOLUTE_COUNTY_CONTROL -} - -commission_epic_potential_cost_effect = { - global = COMMISSION_EPIC_POTENTIAL_COST -} - -commission_epic_once_complete_effect = { - global = COMMISSION_EPIC_ONCE_COMPLETE -} - -extort_subjects_effect = { - first = extort_subjects_effect_tt -} - -unlock_dueling_rivals_effect = { - global = UNLOCKS_ABILITY_TO_DUEL_RIVALS -} - -ep2_activities_legacy_2_grand_weddings_cheaper_effect = { - global = ep2_activities_legacy_2_grand_weddings_cheaper_effect - first = ep2_activities_legacy_2_grand_weddings_cheaper_effect - third = ep2_activities_legacy_2_grand_weddings_cheaper_effect -} - -ep2_activities_legacy_2_grand_weddings_acceptance_boost_effect = { - global = ep2_activities_legacy_2_grand_weddings_acceptance_boost_effect - first = ep2_activities_legacy_2_grand_weddings_acceptance_boost_effect - third = ep2_activities_legacy_2_grand_weddings_acceptance_boost_effect -} - -ep2_activities_legacy_2_grand_weddings_increased_strong_hook_on_liege_event_effect = { - global = ep2_activities_legacy_2_grand_weddings_increased_strong_hook_on_liege_event_effect - first = ep2_activities_legacy_2_grand_weddings_increased_strong_hook_on_liege_event_effect - third = ep2_activities_legacy_2_grand_weddings_increased_strong_hook_on_liege_event_effect -} - -ep2_activities_legacy_1_pilgrimages_cheaper_effect = { - global = ep2_activities_legacy_1_pilgrimages_cheaper_effect - first = ep2_activities_legacy_1_pilgrimages_cheaper_effect - third = ep2_activities_legacy_1_pilgrimages_cheaper_effect -} - -ep2_activities_legacy_1_pilgrimages_add_learning_per_holy_site_effect = { - global = ep2_activities_legacy_1_pilgrimages_add_learning_per_holy_site_effect - first = ep2_activities_legacy_1_pilgrimages_add_learning_per_holy_site_effect - third = ep2_activities_legacy_1_pilgrimages_add_learning_per_holy_site_effect -} - -ep2_activities_legacy_3_tours_majesty_modifier_effect = { - global = ep2_activities_legacy_3_tours_majesty_modifier_effect - first = ep2_activities_legacy_3_tours_majesty_modifier_effect - third = ep2_activities_legacy_3_tours_majesty_modifier_effect -} - -ep2_activities_legacy_3_tours_intimidation_modifier_effect = { - global = ep2_activities_legacy_3_tours_intimidation_modifier_effect - first = ep2_activities_legacy_3_tours_intimidation_modifier_effect - third = ep2_activities_legacy_3_tours_intimidation_modifier_effect -} - -ep2_activities_legacy_3_tours_taxation_modifier_effect = { - global = ep2_activities_legacy_3_tours_taxation_modifier_effect - first = ep2_activities_legacy_3_tours_taxation_modifier_effect - third = ep2_activities_legacy_3_tours_taxation_modifier_effect -} - -ep2_activities_legacy_3_tours_reset_modifier_timers_effect = { - global = ep2_activities_legacy_3_tours_reset_modifier_timers_effect - first = ep2_activities_legacy_3_tours_reset_modifier_timers_effect - third = ep2_activities_legacy_3_tours_reset_modifier_timers_effect -} - -ep2_activities_legacy_4_hunts_up_legendary_hunt_sightings_effect = { - global = ep2_activities_legacy_4_hunts_up_legendary_hunt_sightings_effect - first = ep2_activities_legacy_4_hunts_up_legendary_hunt_sightings_effect - third = ep2_activities_legacy_4_hunts_up_legendary_hunt_sightings_effect -} - -ep2_activities_legacy_5_tournaments_invite_knights_boosts_effect = { - global = ep2_activities_legacy_5_tournaments_invite_knights_boosts_effect - first = ep2_activities_legacy_5_tournaments_invite_knights_boosts_effect - third = ep2_activities_legacy_5_tournaments_invite_knights_boosts_effect -} - -ep2_activities_legacy_5_house_heads_get_one_freebie_grand_activity_effect = { - global = ep2_activities_legacy_5_house_heads_get_one_freebie_grand_activity_effect - first = ep2_activities_legacy_5_house_heads_get_one_freebie_grand_activity_effect - third = ep2_activities_legacy_5_house_heads_get_one_freebie_grand_activity_effect -} diff --git a/common/effect_localization/00_province_effects.txt b/common/effect_localization/00_province_effects.txt deleted file mode 100644 index e57c599ec0..0000000000 --- a/common/effect_localization/00_province_effects.txt +++ /dev/null @@ -1,52 +0,0 @@ -add_province_modifier = { - third = PROVINCE_RECEIVES_MODIFIER_EFFECT - third_past = PROVINCE_RECEIVED_MODIFIER_EFFECT - global = RECEIVES_MODIFIER_EFFECT - global_past = RECEIVED_MODIFIER_EFFECT -} - -add_province_modifier_duration = { - third = PROVINCE_RECEIVES_MODIFIER_UNTIL_EFFECT - third_past = PROVINCE_RECEIVED_MODIFIER_UNTIL_EFFECT - global = RECEIVES_MODIFIER_UNTIL_EFFECT - global_past = RECEIVED_MODIFIER_UNTIL_EFFECT -} - -add_building = { - global = GAINS_THE_BUILDING_NAME - global_past = GAINED_THE_BUILDING_NAME - third = PROVINCE_GAINS_THE_BUILDING_NAME - third_past = PROVINCE_GAINED_THE_BUILDING_NAME -} - -remove_building = { - global = LOSES_THE_BUILDING_NAME - global_past = LOST_THE_BUILDING_NAME - third = PROVINCE_LOSES_THE_BUILDING_NAME - third_past = PROVINCE_LOST_THE_BUILDING_NAME -} - -set_holding_type = { - global = SET_HOLDING_TYPE_EFFECT_GLOBAL - global_past = SET_HOLDING_TYPE_EFFECT_GLOBAL_PAST -} - -add_special_building_slot = { - global = ADD_SPECIAL_BUILDING_SLOT_EFFECT_GLOBAL - global_past = ADDED_SPECIAL_BUILDING_SLOT_EFFECT_GLOBAL - third = ADD_SPECIAL_BUILDING_SLOT_EFFECT_THIRD - third_past = ADDED_SPECIAL_BUILDING_SLOT_EFFECT_THIRD -} - -add_special_building = { - global = ADD_SPECIAL_BUILDING_EFFECT_GLOBAL - global_past = ADDED_SPECIAL_BUILDING_EFFECT_GLOBAL - third = ADD_SPECIAL_BUILDING_EFFECT_THIRD - third_past = ADDED_SPECIAL_BUILDING_EFFECT_THIRD -} - -begin_create_holding = { - global = BEGIN_CREATE_HOLDING_EFFECT_GLOBAL - third = BEGIN_CREATE_HOLDING_EFFECT - third_past = BEGIN_CREATE_HOLDING_EFFECT_PAST -} diff --git a/common/effect_localization/00_religion_effects.txt b/common/effect_localization/00_religion_effects.txt deleted file mode 100644 index 3594c94fcb..0000000000 --- a/common/effect_localization/00_religion_effects.txt +++ /dev/null @@ -1,220 +0,0 @@ -change_fervor = { - global = CHANGE_FERVOR_GLOBAL - global_neg = CHANGE_FERVOR_GLOBAL_NEG - global_past = CHANGE_FERVOR_GLOBAL_PAST - global_past_neg = CHANGE_FERVOR_GLOBAL_PAST_NEG - third = CHANGE_FERVOR_THIRD - third_neg = CHANGE_FERVOR_THIRD_NEG - third_past = CHANGE_FERVOR_THIRD_PAST - third_past_neg = CHANGE_FERVOR_THIRD_PAST_NEG - first = CHANGE_FERVOR_FIRST - first_neg = CHANGE_FERVOR_FIRST_NEG - first_past = CHANGE_FERVOR_FIRST_PAST - first_past_neg = CHANGE_FERVOR_FIRST_PAST_NEG -} - -warchest_divide_gold = { - global = WARCHEST_DIVIDE_GOLD - global_past = WARCHEST_DIVIDED_GOLD -} -warchest_divide_piety = { - global = WARCHEST_DIVIDE_PIETY - global_past = WARCHEST_DIVIDED_PIETY -} -warchest_divide_prestige = { - global = WARCHEST_DIVIDE_PRESTIGE - global_past = WARCHEST_DIVIDED_PRESTIGE -} - -warchest_divide_gold_player = { - global = WARCHEST_DIVIDE_GOLD_PLAYER - global_past = WARCHEST_DIVIDED_GOLD_PLAYER -} -warchest_divide_piety_player = { - global = WARCHEST_DIVIDE_PIETY_PLAYER - global_past = WARCHEST_DIVIDED_PIETY_PLAYER -} -warchest_divide_prestige_player = { - global = WARCHEST_DIVIDE_PRESTIGE_PLAYER - global_past = WARCHEST_DIVIDED_PRESTIGE_PLAYER -} -unpledge_attacker = { - global = GHW_UNPLEDGE_ATTACKER_PLAYER - global_past = GHW_UNPLEDGED_ATTACKER_PLAYER - first = GHW_I_UNPLEDGE_ATTACKER - first_past = GHW_I_UNPLEDGED_ATTACKER -} -unpledge_defender = { - global = GHW_UNPLEDGE_DEFENDER_PLAYER - global_past = GHW_UNPLEDGED_DEFENDER_PLAYER - first = GHW_I_UNPLEDGE_DEFENDER - first_past = GHW_I_UNPLEDGED_DEFENDER -} -set_great_holy_war_target = { - global = GHW_CHANGE_TARGET_EFFECT -} -set_beneficiary = { - global = GHW_SET_BENEFICIARY_EFFECT -} -reset_designated_winner = { - global = GHW_SET_RESET_DESIGNATED_WINNER -} -divide_war_chest = { - global = GHW_DIVIDE_WAR_CHEST -} -reset_beneficiary = { - global = GHW_RESET_BENEFICIARY -} -change_war_chest_gold = { - global = CHANGE_WAR_CHEST_GOLD - global_past = CHANGED_WAR_CHEST_GOLD - global_neg = CHANGE_WAR_CHEST_GOLD_NEG - global_past_neg = CHANGED_WAR_CHEST_GOLD_NEG -} -change_war_chest_piety = { - global = CHANGE_WAR_CHEST_PIETY - global_past = CHANGED_WAR_CHEST_PIETY - global_neg = CHANGE_WAR_CHEST_PIETY_NEG - global_past_neg = CHANGED_WAR_CHEST_PIETY_NEG -} -change_war_chest_prestige = { - global = CHANGE_WAR_CHEST_PRESTIGE - global_past = CHANGED_WAR_CHEST_PRESTIGE - global_neg = CHANGE_WAR_CHEST_PRESTIGE_NEG - global_past_neg = CHANGED_WAR_CHEST_PRESTIGE_NEG -} -do_ghw_title_handout = { - global = GHW_TITLE_HANDOUT - global_past = GHW_TITLE_HANDOUT_PAST -} -set_designated_winner = { - global = GHW_SET_DESIGNATED_WINNER -} - -add_doctrine = { - global = ADD_DOCTRINE_GLOBAL_DESC - global_past = ADD_DOCTRINE_GLOBAL_PAST_DESC - third = ADD_DOCTRINE_THIRD_DESC - third_past = ADD_DOCTRINE_THIRD_PAST_DESC -} - -remove_doctrine = { - global = REMOVE_DOCTRINE_GLOBAL_DESC - global_past = REMOVE_DOCTRINE_GLOBAL_PAST_DESC - third = REMOVE_DOCTRINE_THIRD_DESC - third_past = REMOVE_DOCTRINE_THIRD_PAST_DESC -} - -activate_holy_site = { - global = ACTIVATE_HOLY_SITE_DESC - global_past = ACTIVATE_HOLY_SITE_PAST_DESC -} - -deactivate_holy_site = { - global = DEACTIVATE_HOLY_SITE_DESC - global_past = DEACTIVATE_HOLY_SITE_PAST_DESC -} - -pledge_attacker = { - first = I_PLEDGE_ATTACKER_GHW_DESC -} - -set_religious_head_title = { - global = SET_RELIGIOUS_HEAD_TITLE_GLOBAL_DESC - global_past = SET_RELIGIOUS_HEAD_TITLE_GLOBAL_PAST_DESC - first = SET_RELIGIOUS_HEAD_TITLE_FIRST_DESC - first_past = SET_RELIGIOUS_HEAD_TITLE_FIRST_PAST_DESC - third = SET_RELIGIOUS_HEAD_TITLE_THIRD_DESC - third_past = SET_RELIGIOUS_HEAD_TITLE_THIRD_PAST_DESC -} - -remove_religious_head_title = { - global = REMOVE_RELIGIOUS_HEAD_TITLE_DESC - global_past = REMOVE_RELIGIOUS_HEAD_TITLE_PAST_DESC -} - -# Pilgrimage extra desc destination -pilgrimage_because_i_have_armed_pilgrimages = { - global = pilgrimage_because_global_have_armed_pilgrimages - global_past = pilgrimage_because_global_had_armed_pilgrimages - third = pilgrimage_because_they_have_armed_pilgrimages - third_past = pilgrimage_because_they_had_armed_pilgrimages - first = pilgrimage_because_i_have_armed_pilgrimages - first_past = pilgrimage_because_i_had_armed_pilgrimages -} -pilgrimage_because_i_have_tenet_mendicant_preachers = { - global = pilgrimage_because_global_have_tenet_mendicant_preachers - global_past = pilgrimage_because_global_had_tenet_mendicant_preachers - third = pilgrimage_because_they_have_tenet_mendicant_preachers - third_past = pilgrimage_because_they_had_tenet_mendicant_preachers - first = pilgrimage_because_i_have_tenet_mendicant_preachers - first_past = pilgrimage_because_i_had_tenet_mendicant_preachers -} -pilgrimage_because_i_have_tenet_pentarchy = { - global = pilgrimage_because_global_have_tenet_pentarchy - global_past = pilgrimage_because_global_had_tenet_pentarchy - third = pilgrimage_because_they_have_tenet_pentarchy - third_past = pilgrimage_because_they_had_tenet_pentarchy - first = pilgrimage_because_i_have_tenet_pentarchy - first_past = pilgrimage_because_i_had_tenet_pentarchy -} -pilgrimage_because_i_have_tenet_esotericism = { - global = pilgrimage_because_global_have_tenet_esotericism - global_past = pilgrimage_because_global_had_tenet_esotericism - third = pilgrimage_because_they_have_tenet_esotericism - third_past = pilgrimage_because_they_had_tenet_esotericism - first = pilgrimage_because_i_have_tenet_esotericism - first_past = pilgrimage_because_i_had_tenet_esotericism -} -pilgrimage_because_i_have_tenet_struggle_submission = { - global = pilgrimage_because_global_have_tenet_struggle_submission - global_past = pilgrimage_because_global_had_tenet_struggle_submission - third = pilgrimage_because_they_have_tenet_struggle_submission - third_past = pilgrimage_because_they_had_tenet_struggle_submission - first = pilgrimage_because_i_have_tenet_struggle_submission - first_past = pilgrimage_because_i_had_tenet_struggle_submission -} -pilgrimage_because_i_have_tenet_ancestor_worship = { - global = pilgrimage_because_global_have_tenet_ancestor_worship - global_past = pilgrimage_because_global_had_tenet_ancestor_worship - third = pilgrimage_because_they_have_tenet_ancestor_worship - third_past = pilgrimage_because_they_had_tenet_ancestor_worship - first = pilgrimage_because_i_have_tenet_ancestor_worship - first_past = pilgrimage_because_i_had_tenet_ancestor_worship -} - -#Pilgrimage extra desc events "Piousness increased because of x tenet" -pilgrimage_piousness_because_i_have_tenet_armed_pilgrimages = { - first = pilgrimage_piousness_because_i_have_tenet_armed_pilgrimages -} -pilgrimage_piousness_because_i_have_tenet_struggle_submission = { - first = pilgrimage_piousness_because_i_have_tenet_struggle_submission -} -pilgrimage_piousness_because_i_have_tenet_warmonger = { - first = pilgrimage_piousness_because_i_have_tenet_warmonger -} - -#Pilgrimage entourage gain/gained pilgrimage trait/xp -pilgrimage_entourage_gains_pilgrim_trait = { - first = ENTOURAGE_GAINS_PILGRIM_TRAIT - first_past = ENTOURAGE_GAINED_PILGRIM_TRAIT -} - -create_temporal_head_of_faith = { - first = I_CREATE_TEMPORAL_HEAD_OF_FAITH -} - -new_religious_head_title = { - global = NEW_RELIGIOUS_HEAD_TITLE_GLOBAL_DESC - global_past = NEW_RELIGIOUS_HEAD_TITLE_GLOBAL_PAST_DESC - first = NEW_RELIGIOUS_HEAD_TITLE_FIRST_DESC - first_past = NEW_RELIGIOUS_HEAD_TITLE_FIRST_PAST_DESC - third = NEW_RELIGIOUS_HEAD_TITLE_THIRD_DESC - third_past = NEW_RELIGIOUS_HEAD_TITLE_THIRD_PAST_DESC -} - -can_never_reform_kuzarism_tt = { - global = can_never_reform_kuzarism_tt - first = can_never_reform_kuzarism_tt - third = can_never_reform_kuzarism_tt -} diff --git a/common/effect_localization/00_scheme_effects.txt b/common/effect_localization/00_scheme_effects.txt deleted file mode 100644 index a4ae3ee8b6..0000000000 --- a/common/effect_localization/00_scheme_effects.txt +++ /dev/null @@ -1,130 +0,0 @@ - -### NOTE! For non-character scopes, FIRST is not used, THIRD should include the name of the scope in question (for schemes: name of the scheme), and GLOBAL should not use the name of the scope ( the name of the scope will be the header) - -force_add_to_scheme = { - third = FORCE_ADD_TO_SCHEME_THIRD -} - -add_to_scheme = { - third = ADD_TO_SCHEME_THIRD -} - -forbid_from_scheme = { - third = FORBID_FROM_SCHEME_EFFECT_THIRD -} - -expose_scheme = { - global = SCHEME_EXPOSE_EXISTENCE_EFFECT - third = SCHEME_NAME_IS_EXPOSED - third_past = SCHEME_NAME_IS_EXPOSED_PAST -} - -expose_scheme_agent = { - global = THEY_ARE_EXPOSED_AS_AGENT - third = THEY_ARE_EXPOSED_AS_AGENT_IN_SCHEME_NAME - global_past = THEY_HAVE_BEEN_EXPOSED_AS_AGENT - third_past = THEY_HAVE_BEEN_EXPOSED_AS_AGENT_IN_SCHEME_NAME -} - -add_scheme_cooldown = { - first = SCHEME_COOLDOWN_EFFECT -} - -claim_throne_success_discovery_warning_effect = { - global = claim_throne_success_discovery_tt - first = claim_throne_success_discovery_tt -} - -scheme_target_died = { - global = scheme_target_died - first = scheme_target_died - third = scheme_target_died -} - -scheme_target_imprisoned_by_other = { - global_past = scheme_target_imprisoned_by_other - first_past = scheme_target_imprisoned_by_other - third_past = scheme_target_imprisoned_by_other -} - -scheme_target_no_longer_courtier = { - global_past = scheme_target_no_longer_courtier - first_past = scheme_target_no_longer_courtier - third_past = scheme_target_no_longer_courtier -} - -scheme_target_no_longer_courtier_no_var = { - global_past = scheme_target_no_longer_courtier_no_var - first_past = scheme_target_no_longer_courtier_no_var - third_past = scheme_target_no_longer_courtier_no_var -} - -scheme_target_is_your_courtier = { - global_past = scheme_target_is_your_courtier - first_past = scheme_target_is_your_courtier - third_past = scheme_target_is_your_courtier -} - -scheme_target_no_longer_lover = { - global_past = scheme_target_no_longer_lover - first_past = scheme_target_no_longer_lover - third_past = scheme_target_no_longer_lover -} - -scheme_target_not_in_diplomatic_range = { - global_past = scheme_target_not_in_diplomatic_range - first_past = scheme_target_not_in_diplomatic_range - third_past = scheme_target_not_in_diplomatic_range -} - -i_could_not_take_their_place = { - global_past = i_could_not_take_their_place - first_past = i_could_not_take_their_place - third_past = i_could_not_take_their_place -} - -add_scheme_modifier = { - global = ADD_SCHEME_MODIFIER_EFFECT - global_past = ADDED_SCHEME_MODIFIER_EFFECT - third = SCHEME_GAINS_MODIFIER_EFFECT - third_past = SCHEME_GAINED_MODIFIER_EFFECT -} - -remove_scheme_modifier = { - global = REMOVE_SCHEME_MODIFIER_EFFECT - global_past = LOST_SCHEME_MODIFIER_EFFECT - third = SCHEME_LOSES_MODIFIER_EFFECT - third_past = SCHEME_LOST_MODIFIER_EFFECT -} - -add_scheme_progress = { - first = ADD_PROGRESS_TO_MY_SCHEME - first_past = ADDED_PROGRESS_TO_MY_SCHEME - first_neg = LOSE_PROGRESS_TO_MY_SCHEME - first_past_neg = LOST_PROGRESS_TO_MY_SCHEME - third = THEY_ADD_PROGRESS_TO_SCHEME - third_neg = THEY_LOSE_PROGRESS_TO_SCHEME - global = ADD_PROGRESS_TO_SCHEME - global_neg = LOSE_PROGRESS_TO_SCHEME -} - -end_scheme = { - third = END_SCHEME_EFFECT - third_past = ENDED_SCHEME_EFFECT -} - -in_addition_effect_tooltip = { - first = IN_ADDITION_EFFECT_TOOLTIP -} - -learn_language_will_cancel_ongoing_schemes_tt = { - global = learn_language_will_cancel_ongoing_schemes_tt - third = learn_language_will_cancel_ongoing_schemes_tt - first = learn_language_will_cancel_ongoing_schemes_tt -} - -petition_liege_second_if_tt = { - global = petition_liege_second_if_tt - third = petition_liege_second_if_tt - first = petition_liege_second_if_tt -} diff --git a/common/effect_localization/00_secret_effects.txt b/common/effect_localization/00_secret_effects.txt deleted file mode 100644 index 569fe3f017..0000000000 --- a/common/effect_localization/00_secret_effects.txt +++ /dev/null @@ -1,59 +0,0 @@ -add_secret = { - global = ADD_SECRET - first = ADD_MY_SECRET - third = ADD_THEIR_SECRET - global_past = ADDED_SECRET - first_past = ADDED_MY_SECRET - third_past = ADDED_THEIR_SECRET -} - -add_secret_participant = { - global = ADD_SECRET_PARTICIPANT - first = MY_ADD_SECRET_PARTICIPANT - third = THEIR_ADD_SECRET_PARTICIPANT -} - -remove_secret = { - global = REMOVE_SECRET - first = REMOVE_MY_SECRET - third = REMOVE_THEIR_SECRET - global_past = REMOVE_SECRET - first_past = REMOVE_MY_SECRET - third_past = REMOVE_THEIR_SECRET -} - -expose_secret = { - global = SECRET_IS_EXPOSED - first = MY_SECRET_IS_EXPOSED - third = THEIR_SECRET_IS_EXPOSED - global_past = SECRET_WAS_EXPOSED - first_past = MY_SECRET_WAS_EXPOSED - third_past = THEIR_SECRET_WAS_EXPOSED -} - -reveal_to = { - global = LEARN_SECRET - global_past = LEARNED_SECRET - first = I_LEARN_SECRET - first_past = I_LEARNED_SECRET - third = THEY_LEARN_SECRET - third_past = THEY_LEARNED_SECRET -} - -set_secret_owner = { - global = SET_SECRET_OWNER_EFFECT - first = MY_SET_SECRET_OWNER_EFFECT - third = THEIR_SET_SECRET_OWNER_EFFECT -} - -spend_by = { - global = SPEND_SECRET - first = SPEND_MY_SECRET - third = SPEND_THEIR_SECRET -} - -disable_exposure_by = { - global = DISABLE_EXPOSURE_EFFECT - first = DISABLE_EXPOSURE_ME_EFFECT - third = DISABLE_EXPOSURE_THEIR_EFFECT -} diff --git a/common/effect_localization/00_title_effects.txt b/common/effect_localization/00_title_effects.txt index 0a3831aead..83d17a975c 100644 --- a/common/effect_localization/00_title_effects.txt +++ b/common/effect_localization/00_title_effects.txt @@ -162,6 +162,7 @@ set_realm_capital = { global = SET_REALM_CAPITAL_DESC first = SET_REALM_CAPITAL_FIRST_DESC third = SET_REALM_CAPITAL_THIRD_DESC + first_past = SET_REALM_CAPITAL_FIRST_DESC } clear_title_laws = { diff --git a/common/effect_localization/00_travel_effects.txt b/common/effect_localization/00_travel_effects.txt deleted file mode 100644 index f95058b475..0000000000 --- a/common/effect_localization/00_travel_effects.txt +++ /dev/null @@ -1,102 +0,0 @@ -add_companion = { - global = ADD_COMPANION_EFFECT - third = THEY_ADD_COMPANION_EFFECT - first = I_ADD_COMPANION_EFFECT - first_past = I_ADDED_COMPANION_EFFECT -} - -start_travel_plan = { - global = START_TRAVEL_PLAN_EFFECT - global_past = START_TRAVEL_PLAN_EFFECT_PAST -} - -complete_travel_plan = { - global = COMPLETE_TRAVEL_PLAN_EFFECT - global_past = COMPLETE_TRAVEL_PLAN_EFFECT_PAST - third = THEY_COMPLETE_TRAVEL_PLAN_EFFECT - third_past = THEY_COMPLETED_TRAVEL_PLAN_EFFECT_PAST -} - -pause_travel_plan = { - global = PAUSE_TRAVEL_PLAN_EFFECT - global_past = PAUSE_TRAVEL_PLAN_EFFECT_PAST -} - -resume_travel_plan = { - global = RESUME_TRAVEL_PLAN_EFFECT - global_past = RESUME_TRAVEL_PLAN_EFFECT_PAST -} - -abort_travel_plan = { - global = ABORT_TRAVEL_PLAN_EFFECT - global_past = ABORT_TRAVEL_PLAN_EFFECT_PAST -} - -cancel_travel_plan = { - global = CANCEL_TRAVEL_PLAN_EFFECT - global_past = CANCEL_TRAVEL_PLAN_EFFECT_PAST - third = THEY_CANCEL_TRAVEL_PLAN_EFFECT - third_past = THEY_CANCEL_TRAVEL_PLAN_EFFECT_PAST -} - -reroute_to_home = { - global = GO_HOME_TRAVEL_EFFECT - global_past = GO_HOME_TRAVEL_EFFECT_PAST - third = THEY_GO_HOME_TRAVEL_EFFECT - third_past = THEY_GO_HOME_TRAVEL_EFFECT_PAST -} - -add_travel_option = { - global = ADD_TRAVEL_OPTION_EFFECT - global_past = ADD_TRAVEL_OPTION_EFFECT_PAST - first = I_ADD_TRAVEL_OPTION_EFFECT - first_past = I_ADD_TRAVEL_OPTION_EFFECT_PAST - third = THEY_ADD_TRAVEL_OPTION_EFFECT -} - -add_travel_plan_modifier = { - global = ADD_TRAVEL_PLAN_MODIFIER_EFFECT - global_past = ADD_TRAVEL_PLAN_MODIFIER_EFFECT_PAST - third = THIRD_ADD_TRAVEL_PLAN_MODIFIER_EFFECT - third_past = THIRD_ADD_TRAVEL_PLAN_MODIFIER_EFFECT_PAST -} - -add_travel_plan_modifier_duration = { - global = ADD_TRAVEL_PLAN_MODIFIER_EFFECT_DURATION - global_past = ADD_TRAVEL_PLAN_MODIFIER_EFFECT_DURATION_PAST - third = THIRD_ADD_TRAVEL_PLAN_MODIFIER_EFFECT_DURATION - third_past = THIRD_ADD_TRAVEL_PLAN_MODIFIER_EFFECT_DURATION_PAST -} - -set_travel_leader = { - global = SET_TRAVEL_LEADER_EFFECT - global_past = SET_TRAVEL_LEADER_EFFECT_PAST -} - -delay_travel_plan = { - global = DELAY_TRAVEL_PLAN_EFFECT - global_past = DELAY_TRAVEL_PLAN_EFFECT_PAST - third = THIRD_DELAY_TRAVEL_PLAN_EFFECT - third_past = THIRD_DELAY_TRAVEL_PLAN_EFFECT_PAST -} - -add_destination_progress = { - global = ADD_DESTINATION_PROGRESS_EFFECT - global_past = ADD_DESTINATION_PROGRESS_EFFECT_PAST - third = THIRD_ADD_DESTINATION_PROGRESS_EFFECT - third_past = THIRD_ADD_DESTINATION_PROGRESS_EFFECT_PAST -} - -add_travel_waypoint = { - global = ADD_TRAVEL_WAYPOINT_EFFECT - global_past = ADD_TRAVEL_WAYPOINT_EFFECT_PAST - third = THIRD_ADD_TRAVEL_WAYPOINT_EFFECT - third_past = THIRD_ADD_TRAVEL_WAYPOINT_EFFECT_PAST -} - -remove_character = { - global = LEAVE_TRAVEL_PLAN - global_past = LEFT_TRAVEL_PLAN - third = THEY_LEAVE_TRAVEL_PLAN - third_past = THEY_LEFT_TRAVEL_PLAN -} \ No newline at end of file diff --git a/common/effect_localization/00_vassal_effects.txt b/common/effect_localization/00_vassal_effects.txt deleted file mode 100644 index 893061176c..0000000000 --- a/common/effect_localization/00_vassal_effects.txt +++ /dev/null @@ -1,26 +0,0 @@ -vassal_contract_set_obligation_level = { - global = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT - global_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_GLOBAL_PAST - third = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD - third_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD_PAST - first = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST - first_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST_PAST -} - -apply_ai_vassal_obligation_vassal_most_desired = { - global = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT - global_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_GLOBAL_PAST - third = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD - third_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD_PAST - first = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST - first_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST_PAST -} - -apply_ai_vassal_obligation_liege_most_desired = { - global = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT - global_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_GLOBAL_PAST - third = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD - third_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_THIRD_PAST - first = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST - first_past = VASSAL_CONTRACT_SET_OBLIGATION_LEVEL_EFFECT_FIRST_PAST -} diff --git a/common/effect_localization/00_war_effects.txt b/common/effect_localization/00_war_effects.txt index ff4f1fd30e..1381229d7b 100644 --- a/common/effect_localization/00_war_effects.txt +++ b/common/effect_localization/00_war_effects.txt @@ -1,4 +1,6 @@ start_war = { + first = START_WAR_EFFECT_FIRST + third = START_WAR_EFFECT_THIRD global = START_WAR_EFFECT } @@ -125,4 +127,4 @@ attack_breaking_truce_text = { global = BREAKING_TRUCE first = BREAKING_TRUCE third = BREAKING_TRUCE -} +} \ No newline at end of file diff --git a/common/effect_localization/01_fp1_effects.txt b/common/effect_localization/01_fp1_effects.txt deleted file mode 100644 index bf51b01313..0000000000 --- a/common/effect_localization/01_fp1_effects.txt +++ /dev/null @@ -1,60 +0,0 @@ - -fp1_adventure_legacy_1_effect = { - global = LEGACY_DYNASTY_MEMBERS_GAIN_BONUS_TROOPS_WHEN_VARANGIAN_ADVENTURING - first = LEGACY_DYNASTY_MEMBERS_GAIN_BONUS_TROOPS_WHEN_VARANGIAN_ADVENTURING - third = LEGACY_DYNASTY_MEMBERS_GAIN_BONUS_TROOPS_WHEN_VARANGIAN_ADVENTURING -} - -fp1_adventure_legacy_2_effect = { - global = LEGACY_SEDUCE_BONUSES - first = LEGACY_SEDUCE_BONUSES - third = LEGACY_SEDUCE_BONUSES -} - -fp1_adventure_legacy_3_effect = { - global = LEGACY_DYNASTY_MEMBERS_MORE_LIKELY_TO_ACCEPT_CONVERSIONS - first = LEGACY_DYNASTY_MEMBERS_MORE_LIKELY_TO_ACCEPT_CONVERSIONS - third = LEGACY_DYNASTY_MEMBERS_MORE_LIKELY_TO_ACCEPT_CONVERSIONS -} - -fp1_adventure_legacy_5_effect = { - global = LEGACY_BONUS_PER_FRIEND - first = LEGACY_BONUS_PER_FRIEND - third = LEGACY_BONUS_PER_FRIEND -} - -send_to_varangian_guard_interaction_effect = { - global = send_to_varangian_guard_interaction_effect_desc - first = send_to_varangian_guard_interaction_effect_desc - third = send_to_varangian_guard_interaction_effect_desc -} - -fp1_pillage_legacy_1_effect = { - global = LEGACY_MORE_PRESTIGE_FROM_BATTLES - first = LEGACY_MORE_PRESTIGE_FROM_BATTLES - third = LEGACY_MORE_PRESTIGE_FROM_BATTLES -} - -fp1_pillage_legacy_3_effect = { - global = LEGACY_DYNASTY_MEMBERS_KIDNAP_AFTER_SIEGES_BETTER - first = LEGACY_DYNASTY_MEMBERS_KIDNAP_AFTER_SIEGES_BETTER - third = LEGACY_DYNASTY_MEMBERS_KIDNAP_AFTER_SIEGES_BETTER -} - -fp1_pillage_legacy_4_effect = { - global = LEGACY_GOLD_FROM_BATTLES - first = LEGACY_GOLD_FROM_BATTLES - third = LEGACY_GOLD_FROM_BATTLES -} - -fp1_pillage_legacy_5_effect = { - global = LEGACY_ENEMIES_LOSE_EXTRA_CONTROL_WHEN_OCCUPIED - first = LEGACY_ENEMIES_LOSE_EXTRA_CONTROL_WHEN_OCCUPIED - third = LEGACY_ENEMIES_LOSE_EXTRA_CONTROL_WHEN_OCCUPIED -} - -fp1_adventure_legacy_2_secondary_effect = { - global = LEGACY_MORE_LIKELY_TO_GET_TRADE_EVENTS_WHEN_RAIDING - first = LEGACY_MORE_LIKELY_TO_GET_TRADE_EVENTS_WHEN_RAIDING - third = LEGACY_MORE_LIKELY_TO_GET_TRADE_EVENTS_WHEN_RAIDING -} diff --git a/common/effect_localization/02_ep1_effects.txt b/common/effect_localization/02_ep1_effects.txt deleted file mode 100644 index b41054d961..0000000000 --- a/common/effect_localization/02_ep1_effects.txt +++ /dev/null @@ -1,38 +0,0 @@ -set_amenity_level = { - global = SET_AMENITY_LEVEL - first = SET_YOUR_AMENITY_LEVEL - third = SET_THEIR_AMENITY_LEVEL -} - -change_current_court_grandeur = { - first_past = I_GAINED_COURT_GRANDEUR_EFFECT - first_past_neg = I_LOST_COURT_GRANDEUR_EFFECT - third_past = THEY_GAINED_COURT_GRANDEUR_EFFECT - third_past_neg = THEY_LOST_COURT_GRANDEUR_EFFECT - global_past = GAINED_COURT_GRANDEUR_EFFECT - global_past_neg = LOST_COURT_GRANDEUR_EFFECT - first = I_GAIN_COURT_GRANDEUR_EFFECT - first_neg = I_LOSE_COURT_GRANDEUR_EFFECT - third = THEY_GAIN_COURT_GRANDEUR_EFFECT - third_neg = THEY_LOSE_COURT_GRANDEUR_EFFECT - global = GAIN_COURT_GRANDEUR_EFFECT - global_neg = LOSE_COURT_GRANDEUR_EFFECT -} - -commission_artifact_decision_warning_effect = { - global = commission_artifact_decision_warning_effect - first = commission_artifact_decision_warning_effect - third = commission_artifact_decision_warning_effect -} - -pay_homage_gift_warning_effect = { - global = pay_homage_gift_warning_effect - first = pay_homage_gift_warning_effect - third = pay_homage_gift_warning_effect -} - -petition_liege_warning_effect = { - global = petition_liege_warning_effect - first = petition_liege_warning_effect - third = petition_liege_warning_effect -} \ No newline at end of file diff --git a/common/effect_localization/03_fp2_effects.txt b/common/effect_localization/03_fp2_effects.txt deleted file mode 100644 index 89d9d56dd4..0000000000 --- a/common/effect_localization/03_fp2_effects.txt +++ /dev/null @@ -1,100 +0,0 @@ -fp2_urbanism_legacy_1_effect = { - global = LEGACY_DYNASTY_CITIES_INCREASE_DEVELOPMENT - first = LEGACY_DYNASTY_CITIES_INCREASE_DEVELOPMENT - third = LEGACY_DYNASTY_CITIES_INCREASE_DEVELOPMENT -} - -fp2_urbanism_legacy_3_effect = { - global = LEGACY_DYNASTY_BETTER_CONTRIBUTION_FROM_REPUBLICAN_VASSALS - first = LEGACY_DYNASTY_BETTER_CONTRIBUTION_FROM_REPUBLICAN_VASSALS - third = LEGACY_DYNASTY_BETTER_CONTRIBUTION_FROM_REPUBLICAN_VASSALS -} - -fp2_urbanism_legacy_4_effect = { - global = LEGACY_DYNASTY_PRESTIGE_AND_GUEST_FROM_BUILDING_COMPLETION - first = LEGACY_DYNASTY_PRESTIGE_AND_GUEST_FROM_BUILDING_COMPLETION - third = LEGACY_DYNASTY_PRESTIGE_AND_GUEST_FROM_BUILDING_COMPLETION -} - -fp2_urbanism_legacy_2_effect = { - global = LEGACY_DYNASTY_EXTRA_TRAITS_FROM_CITIES - first = LEGACY_DYNASTY_EXTRA_TRAITS_FROM_CITIES - third = LEGACY_DYNASTY_EXTRA_TRAITS_FROM_CITIES -} - -fp2_urbanism_legacy_5_effect = { - global = LEGACY_DYNASTY_UNLOCK_CITY_CELEBRATION_DECISION - first = LEGACY_DYNASTY_UNLOCK_CITY_CELEBRATION_DECISION - third = LEGACY_DYNASTY_UNLOCK_CITY_CELEBRATION_DECISION -} - -fp2_coterie_legacy_1_effect = { - global = LEGACY_DYNASTY_NO_SALARY_FREE_FIRING_COURT_POSITION_FROM_DYNASTY - first = LEGACY_DYNASTY_NO_SALARY_FREE_FIRING_COURT_POSITION_FROM_DYNASTY - third = LEGACY_DYNASTY_NO_SALARY_FREE_FIRING_COURT_POSITION_FROM_DYNASTY -} - -fp2_coterie_legacy_2_effect = { - global = LEGACY_DYNASTY_SUPPORT_FROM_COUNCILORS - first = LEGACY_DYNASTY_SUPPORT_FROM_COUNCILORS - third = LEGACY_DYNASTY_SUPPORT_FROM_COUNCILORS -} - -fp2_coterie_legacy_3_effect = { - global = LEGACY_DYNASTY_MORE_PRESTIGE_FROM_WAR_SUPPORT_HOUSE_MEMBERS - first = LEGACY_DYNASTY_MORE_PRESTIGE_FROM_WAR_SUPPORT_HOUSE_MEMBERS - third = LEGACY_DYNASTY_MORE_PRESTIGE_FROM_WAR_SUPPORT_HOUSE_MEMBERS -} - -fp2_coterie_legacy_4_effect = { - global = LEGACY_DYNASTY_UNLOCK_SHARE_SECRETS - first = LEGACY_DYNASTY_UNLOCK_SHARE_SECRETS - third = LEGACY_DYNASTY_UNLOCK_SHARE_SECRETS -} - - -fp2_coterie_legacy_5_effect = { - global = LEGACY_DYNASTY_UNLOCK_DISINHERIT_CHILDREN - first = LEGACY_DYNASTY_UNLOCK_DISINHERIT_CHILDREN - third = LEGACY_DYNASTY_UNLOCK_DISINHERIT_CHILDREN -} - -start_struggle = { - global = START_STRUGGLE_EFFECT -} - -activate_struggle_catalyst = { - global = ACTIVATE_STRUGGLE_CATALYST -} - -change_struggle_phase = { - global = CHANGE_STRUGGLE_PHASE_EFFECT -} - -set_culture_as_involved = { - global = SET_CULTURE_AS_INVOLVED -} - -set_culture_as_uninvolved = { - global = SET_CULTURE_AS_UNINVOLVED -} - -set_faith_as_involved = { - global = SET_FAITH_AS_INVOLVED -} - -set_faith_as_uninvolved = { - global = SET_FAITH_AS_UNINVOLVED -} - -many_secrets_exchanged = { - global = many_secrets_exchanged -} - -several_secrets_exchanged = { - global = several_secrets_exchanged -} - -few_secrets_exchanged = { - global = few_secrets_exchanged -} diff --git a/common/effect_localization/04_ep2_diarchy_effects.txt b/common/effect_localization/04_ep2_diarchy_effects.txt deleted file mode 100644 index 82f8f7e30a..0000000000 --- a/common/effect_localization/04_ep2_diarchy_effects.txt +++ /dev/null @@ -1,92 +0,0 @@ -designate_diarch = { - first = I_DESIGNATE_DIARCH - third = THEY_DESIGNATE_DIARCH - global = THEY_DESIGNATE_DIARCH - first_past = I_DESIGNATED_DIARCH - third_past = THEY_DESIGNATED_DIARCH - global_past = THEY_DESIGNATED_DIARCH -} - -start_diarchy = { - first = I_START_DIARCHY - third = THEY_START_DIARCHY - first_past = I_STARTED_DIARCHY - third_past = THEY_STARTED_DIARCHY -} - -end_diarchy = { - first = I_END_DIARCHY - third = THEY_END_DIARCHY - global = GLOBAL_END_DIARCHY - first_past = I_ENDED_DIARCHY - third_past = THEY_ENDED_DIARCHY - global_past = GLOBAL_ENDED_DIARCHY -} - -set_diarchy_type = { - first = I_SET_DIARCHY_TYPE - third = THEY_SET_DIARCHY_TYPE - global = GLOBAL_SET_DIARCHY_TYPE - first_past = I_CHANGED_DIARCHY_TYPE - third_past = THEY_CHANGED_DIARCHY_TYPE - global_past = GLOBAL_CHANGED_DIARCHY_TYPE -} - -set_diarch = { - first = I_SET_DIARCH - third = THEY_SET_DIARCH - first_past = I_CHANGED_DIARCH - third_past = THEY_CHANGED_DIARCH -} - -set_diarchy_swing = { - first = I_SET_POWER_LEVEL - third = THEY_SET_POWER_LEVEL - global = THEY_SET_POWER_LEVEL - first_past = I_HAVE_SET_POWER_LEVEL - third_past = THEY_HAVE_SET_POWER_LEVEL - global_past = THEY_HAVE_SET_POWER_LEVEL -} - -change_diarchy_swing = { - first = I_CHANGE_POWER_LEVEL - first_neg = I_CHANGE_POWER_LEVEL_NEG - first_past = I_CHANGED_POWER_LEVEL - third = THEY_CHANGE_POWER_LEVEL - third_neg = THEY_CHANGE_POWER_LEVEL_NEG - third_past = THEY_CHANGED_POWER_LEVEL - global = GLOBAL_CHANGE_POWER_LEVEL - global_neg = GLOBAL_CHANGE_POWER_LEVEL_NEG - global_past = GLOBAL_CHANGED_POWER_LEVEL -} - -depose_diarch = { - first = I_GET_DEPOSED_DIARCH - third = THEY_GET_DEPOSED_DIARCH - global = THEY_GET_DEPOSED_DIARCH - first_past = I_GOT_DEPOSED_DIARCH - third_past = THEY_GOT_DEPOSED_DIARCH - global_past = THEY_GOT_DEPOSED_DIARCH -} - -change_strife_opinion = { - first = I_GAIN_STRIFE_OPINION - first_neg = I_LOSE_STRIFE_OPINION - third = THEY_GAIN_STRIFE_OPINION - third_neg = THEY_LOSE_STRIFE_OPINION - global = THEY_GAIN_STRIFE_OPINION - global_neg = THEY_LOSE_STRIFE_OPINION - first_past = I_GAINED_STRIFE_OPINION - first_past_neg = I_LOST_STRIFE_OPINION - third_past = THEY_GAINED_STRIFE_OPINION - third_past_neg = THEY_LOST_STRIFE_OPINION - global_past = THEY_GAINED_STRIFE_OPINION - global_past_neg = THEY_LOST_STRIFE_OPINION -} - -set_diarchy_mandate = { - first = I_GET_DIARCHY_MANDATE - third = THEY_GET_DIARCHY_MANDATE - first_past = I_GOT_DIARCHY_MANDATE - third_past = THEY_GOT_DIARCHY_MANDATE -} diff --git a/common/effect_localization/04_ep2_effects.txt b/common/effect_localization/04_ep2_effects.txt deleted file mode 100644 index 4f693813a7..0000000000 --- a/common/effect_localization/04_ep2_effects.txt +++ /dev/null @@ -1,152 +0,0 @@ -complete_activity_intent = { - first = I_COMPLETE_ACTIVITY_INTENT - third = CHARACTER_COMPLETES_ACTIVITY_INTENT - global = GLOBAL_COMPLETE_ACTIVITY_INTENT - first_past = I_COMPLETE_ACTIVITY_INTENT_PAST - third_past = CHARACTER_COMPLETES_ACTIVITY_INTENT_PAST - global_past = GLOBAL_COMPLETE_ACTIVITY_INTENT_PAST -} - -tournament_disqualify_tt = { - first = tournament_disqualify_tt_first - third = tournament_disqualify_tt - global = tournament_disqualify_tt - first_past = tournament_disqualify_tt_past_first - third_past = tournament_disqualify_tt_past - global_past = tournament_disqualify_tt_past -} - -tournament_contest_disqualify_tt = { - first = tournament_contest_disqualify_tt_first - third = tournament_contest_disqualify_tt - global = tournament_contest_disqualify_tt - first_past = tournament_contest_disqualify_tt_past_first - third_past = tournament_contest_disqualify_tt_past - global_past = tournament_contest_disqualify_tt_past -} - -tournament_contest_disqualify_round_tt = { # Disqualification Round - first = tournament_contest_disqualify_round_tt_first - third = tournament_contest_disqualify_round_tt - global = tournament_contest_disqualify_round_tt - first_past = tournament_contest_disqualify_round_tt_past - third_past = tournament_contest_disqualify_round_tt_past - global_past = tournament_contest_disqualify_round_tt_past -} - -tournament_contest_disqualify_win_tt = { # Disqualification Win - first = tournament_contest_disqualify_win_tt_first - third = tournament_contest_disqualify_win_tt - global = tournament_contest_disqualify_win_tt - first_past = tournament_contest_disqualify_win_tt_past - third_past = tournament_contest_disqualify_win_tt_past - global_past = tournament_contest_disqualify_win_tt_past -} - -tournament_contest_resign_tt = { # Resignation Contest - first = tournament_contest_resign_tt_first - third = tournament_contest_resign_tt - global = tournament_contest_resign_tt - first_past = tournament_contest_resign_tt_past - third_past = tournament_contest_resign_tt_past - global_past = tournament_contest_resign_tt_past -} - -tournament_contest_resign_round_tt = { # Resignation Round - first = tournament_contest_resign_round_tt_first - third = tournament_contest_resign_round_tt - global = tournament_contest_resign_round_tt - first_past = tournament_contest_resign_round_tt_past - third_past = tournament_contest_resign_round_tt_past - global_past = tournament_contest_resign_round_tt_past -} - -tournament_contest_resign_win_tt = { # Resignation Win - first = tournament_contest_resign_win_tt_first - third = tournament_contest_resign_win_tt - global = tournament_contest_resign_win_tt - first_past = tournament_contest_resign_win_tt_past - third_past = tournament_contest_resign_win_tt_past - global_past = tournament_contest_resign_win_tt_past -} - -tournament_contest_replaced_tt = { # Replaced - first = tournament_contest_replaced_tt_first - third = tournament_contest_replaced_tt - global = tournament_contest_replaced_tt - first_past = tournament_contest_replaced_tt_past - third_past = tournament_contest_replaced_tt_past - global_past = tournament_contest_replaced_tt_past -} - -tournament_contest_round_tt = { # Win Round - first = tournament_contest_round_tt_first - third = tournament_contest_round_tt - global = tournament_contest_round_tt - first_past = tournament_contest_round_tt_past - third_past = tournament_contest_round_tt_past - global_past = tournament_contest_round_tt_past -} - -tournament_contest_round_win_tt = { # Win Contest - first = tournament_contest_round_win_tt_first - third = tournament_contest_round_win_tt - global = tournament_contest_round_win_tt - first_past = tournament_contest_round_win_tt_past - third_past = tournament_contest_round_win_tt_past - global_past = tournament_contest_round_win_tt_past -} - -tournament_contest_withdraw_tt = { # Withdraw - first = tournament_contest_withdraw_tt - third = tournament_contest_withdraw_tt - global = tournament_contest_withdraw_tt - first_past = tournament_contest_withdraw_tt_past - third_past = tournament_contest_withdraw_tt_past - global_past = tournament_contest_withdraw_tt_past -} - -tournament_contest_knocked_tt = { # Withdraw - first = tournament_contest_knocked_tt_first - third = tournament_contest_knocked_tt - global = tournament_contest_knocked_tt - first_past = tournament_contest_knocked_tt_past - third_past = tournament_contest_knocked_tt_past - global_past = tournament_contest_knocked_tt_past -} - -winning_knight_rewards_tt = { - first = winning_knight_rewards_tt - third = winning_knight_rewards_tt - global = winning_knight_rewards_tt - first_past = winning_knight_rewards_tt - third_past = winning_knight_rewards_tt - global_past = winning_knight_rewards_tt -} - -losing_knight_rewards_tt = { - first = losing_knight_rewards_tt - third = losing_knight_rewards_tt - global = losing_knight_rewards_tt - first_past = losing_knight_rewards_tt - third_past = losing_knight_rewards_tt - global_past = losing_knight_rewards_tt -} - -qualifying_knight_rewards_tt = { - first = qualifying_knight_rewards_tt - third = qualifying_knight_rewards_tt - global = qualifying_knight_rewards_tt - first_past = qualifying_knight_rewards_tt - third_past = qualifying_knight_rewards_tt - global_past = qualifying_knight_rewards_tt -} - -tournament_contest_round_next_tt = { - first = tournament_contest_round_next_tt - third = tournament_contest_round_next_tt - global = tournament_contest_round_next_tt - first_past = tournament_contest_round_next_tt_past_first - third_past = tournament_contest_round_next_tt_past - global_past = tournament_contest_round_next_tt_past -} diff --git a/common/event_backgrounds/01_event_backgrounds.txt b/common/event_backgrounds/01_event_backgrounds.txt index f614280919..f712915ff6 100644 --- a/common/event_backgrounds/01_event_backgrounds.txt +++ b/common/event_backgrounds/01_event_backgrounds.txt @@ -166,6 +166,12 @@ temple = { environment = "environment_event_mosque" ambience = "event:/SFX/Events/Backgrounds/temple_muslim" } + background = { # FP3 + trigger = { like_zoroastrianism_religion_trigger = yes } + reference = "gfx/interface/illustrations/event_scenes/fp3_temple.dds" + environment = "environment_event_fp3_temple" + ambience = "event:/SFX/Events/Backgrounds/temple_generic" + } background = { # FP1 trigger = { like_norse_religion_trigger = yes } reference = "gfx/interface/illustrations/event_scenes/fp1_tribal_temple.dds" @@ -198,6 +204,12 @@ temple_scope = { environment = "environment_event_mosque" ambience = "event:/SFX/Events/Backgrounds/temple_muslim" } + background = { # FP3 + trigger = { scope:background_temple_scope = { like_zoroastrianism_religion_trigger = yes } } + reference = "gfx/interface/illustrations/event_scenes/fp3_temple.dds" + environment = "environment_event_fp3_temple" + ambience = "event:/DLC/FP2/SFX/Events/temple" + } background = { # FP1 trigger = { scope:background_temple_scope = { like_norse_religion_trigger = yes } @@ -280,7 +292,14 @@ corridor_night = { environment = "environment_character_eldritch" ambience = "event:/SFX/Events/Backgrounds/castle_corridor_night" } - + background = { #FP3 + trigger = { + location.culture ?= { has_building_gfx = iranian_building_gfx } + } + reference = "gfx/interface/illustrations/event_scenes/fp3_courtyard_night.dds" + environment = "environment_event_fp3_courtyard_night" + ambience = "event:/SFX/Events/Backgrounds/castle_corridor_night" + } background = { #FP1 trigger = { OR = { @@ -339,7 +358,17 @@ corridor_day = { environment = "environment_character_eldritch" ambience = "event:/SFX/Events/Backgrounds/castle_corridor_day" } - + background = { #FP2 + trigger = { + OR = { + location.culture ?= { has_building_gfx = iberian_building_gfx } + location.culture ?= { has_building_gfx = iranian_building_gfx } + } + } + reference = "gfx/interface/illustrations/event_scenes/fp2_corridor_day.dds" + environment = "environment_event_fp2_corridor_day" + ambience = "event:/DLC/FP2/SFX/Events/corridor_day" + } background = { #FP1 trigger = { OR = { @@ -402,6 +431,8 @@ council_chamber = { background = { #MENA, Africa trigger = { OR = { + location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } location.culture ?= { has_graphical_mena_culture_group_trigger = yes } location.culture ?= { has_graphical_african_culture_group_trigger = yes } location.culture ?= { has_building_gfx = berber_group_building_gfx } @@ -480,6 +511,7 @@ courtyard = { trigger = { OR = { location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } location.culture ?= { has_graphical_steppe_culture_group_trigger = yes } } } @@ -487,7 +519,6 @@ courtyard = { environment = "environment_event_bp1_courtyard_mena" ambience = "event:/SFX/Events/Backgrounds/castle_courtyard_western" } - background = { #Fallback reference = "gfx/interface/illustrations/event_scenes/courtyard.dds" environment = "environment_event_courtyard" @@ -524,7 +555,6 @@ dungeon = { environment = "environment_character_eldritch" ambience = "event:/SFX/Events/Backgrounds/dungeon" } - background = { #Tribal Prison trigger = { OR = { @@ -540,7 +570,6 @@ dungeon = { environment = "environment_event_fp1_tribal_prison" ambience = "event:/DLC/FP1/SFX/Events/event_prison" } - background = { #Fallback reference = "gfx/interface/illustrations/event_scenes/dungeon.dds" environment = "environment_event_dungeon" @@ -608,7 +637,6 @@ dungeon_scope = { } } - ### WILDERNESS ### wilderness = { background = { #Desert @@ -1867,6 +1895,17 @@ docks = { environment = "environment_character_crucible_of_storms" ambience = "event:/SFX/Events/Backgrounds/dungeon" } + background = { + trigger = { + OR = { + location ?= { fp3_should_use_iranian_graphics_trigger = yes } + location.culture ?= { has_graphical_india_culture_group_trigger = yes } + } + } + reference = "gfx/interface/illustrations/event_scenes/fp3_docks.dds" + environment = "environment_event_fp3_docks" + ambience = "event:/SFX/Events/Backgrounds/docks_day" + } background = { trigger = { OR = { @@ -1979,6 +2018,7 @@ feast = { has_building_gfx = arabic_group_building_gfx has_building_gfx = berber_group_building_gfx has_building_gfx = iberian_building_gfx + has_building_gfx = iranian_building_gfx } } } @@ -2063,6 +2103,7 @@ feast_event = { location.culture = { has_building_gfx = arabic_group_building_gfx } location.culture = { has_building_gfx = berber_group_building_gfx } location.culture = { has_building_gfx = iberian_building_gfx } + location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_feast_mena.dds" @@ -2198,13 +2239,13 @@ market = { environment = "environment_character_crucible_of_storms" ambience = "event:/SFX/Events/Backgrounds/dungeon" } - background = { #Eastern trigger = { location = { OR = { geographical_region = graphical_mena geographical_region = graphical_india + culture ?= { has_building_gfx = iranian_building_gfx } # Warcraft } } @@ -2213,7 +2254,6 @@ market = { environment = "environment_event_market_east" ambience = "event:/SFX/Events/Backgrounds/town_market_middleeastern_day" } - background = { #Tribal trigger = { location = { @@ -2232,9 +2272,6 @@ market = { environment = "environment_event_market_tribal" ambience = "event:/SFX/Events/Backgrounds/townmarket_day_tribal_pagan" } - - - background = { #Western (standard/fallback) reference = "gfx/interface/illustrations/event_scenes/market_west.dds" environment = "environment_event_market_west" @@ -2278,6 +2315,7 @@ market_scope = { OR = { geographical_region = graphical_mena geographical_region = graphical_india + location.culture ?= { has_building_gfx = iranian_building_gfx } # Warcraft } } @@ -2319,6 +2357,7 @@ market_activity = { OR = { geographical_region = graphical_mena geographical_region = graphical_india + culture ?= { has_building_gfx = iranian_building_gfx } # Warcraft } } @@ -2424,7 +2463,18 @@ sitting_room = { environment = "environment_character_eldritch" ambience = "event:/SFX/Events/Backgrounds/dungeon" } - + background = { #FP2 + trigger = { + OR = { + location.culture ?= { has_building_gfx = iberian_building_gfx } + location.culture ?= { has_building_gfx = iranian_building_gfx } + } + } + reference = "gfx/interface/illustrations/event_scenes/fp2_relaxing_room.dds" + environment = "environment_event_fp2_relaxing_room" + ambience = "event:/DLC/FP2/SFX/Events/relaxing_room" + } + background = { reference = "gfx/interface/illustrations/event_scenes/sittingroom.dds" environment = "environment_event_sittingroom" @@ -2468,6 +2518,7 @@ bedchamber = { location.culture ?= { has_building_gfx = mena_building_gfx } location.culture ?= { has_building_gfx = berber_group_building_gfx } location.culture ?= { has_building_gfx = african_building_gfx } + location.culture ?= { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_wedding_bedroom_mena.dds" @@ -2542,6 +2593,7 @@ study = { trigger = { OR = { location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } location.culture ?= { has_graphical_african_culture_group_trigger = yes } location.culture ?= { has_graphical_steppe_culture_group_trigger = yes } location.culture ?= { has_building_gfx = berber_group_building_gfx } @@ -2568,7 +2620,6 @@ study = { } ### RELAXING ROOM ### - relaxing_room = { background = { #MENA Relaxing Room trigger = { @@ -2577,6 +2628,7 @@ relaxing_room = { location.culture ?= { has_graphical_mena_culture_group_trigger = yes } location.culture ?= { has_graphical_african_culture_group_trigger = yes } location.culture ?= { has_graphical_steppe_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/bp1_relaxing_room_mena.dds" @@ -2600,6 +2652,7 @@ relaxing_room_scope = { capital_province.culture = { has_graphical_mena_culture_group_trigger = yes } capital_province.culture = { has_graphical_african_culture_group_trigger = yes } capital_province.culture = { has_graphical_steppe_culture_group_trigger = yes } + capital_province.culture ?= { has_building_gfx = iranian_building_gfx } } } } @@ -2616,7 +2669,6 @@ relaxing_room_scope = { } - ### PHYSICIAN'S STUDY ### physicians_study = { # Undead @@ -2661,6 +2713,7 @@ tavern = { OR = { location.culture ?= { has_graphical_india_culture_group_trigger = yes } location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } location.culture ?= { has_graphical_african_culture_group_trigger = yes } location.culture ?= { has_graphical_steppe_culture_group_trigger = yes } } @@ -2676,8 +2729,6 @@ tavern = { } } - - ### THRONE ROOM ### throne_room = { # Warcraft @@ -2735,7 +2786,28 @@ throne_room = { environment = "environment_character_kaldorei" ambience = "event:/SFX/Events/Backgrounds/throneroom_western" } - + background = { #FP3 + trigger = { + #OR = { + location.culture = { has_building_gfx = iranian_building_gfx } + #} + } + reference = "gfx/interface/illustrations/event_scenes/fp3_throneroom.dds" + environment = "environment_event_temple" + ambience = "event:/SFX/Events/Backgrounds/throneroom_middleeastern_african" + } + background = { #FP2 + trigger = { + #OR = { + location.culture ?= { has_building_gfx = iberian_building_gfx } + # location = { geographical_region = world_europe_west_iberia } + #} + } + reference = "gfx/interface/illustrations/event_scenes/fp2_throneroom.dds" + environment = "environment_event_fp2_throneroom" + ambience = "event:/DLC/FP2/SFX/Events/throneroom" + } + background = { #FP1 Tribal trigger = { location.culture ?= { has_building_gfx = norse_building_gfx } @@ -3015,8 +3087,16 @@ army_camp = { } } -### FP1 ### +#### BATHHOUSE ### +bath_house = { + background = { # Bathhouse + reference = "gfx/interface/illustrations/event_scenes/fp3_bathhouse.dds" + environment = "environment_event_fp3_bathhouse" + ambience = "event:/SFX/Events/Backgrounds/dungeon" + } +} +### FP1 ### fp1_ocean = { background = { # Ocean reference = "gfx/interface/illustrations/event_scenes/fp1_ocean.dds" @@ -3056,6 +3136,7 @@ fp1_beached_longships = { ambience = "event:/DLC/FP1/SFX/Events/event_beached_longships" } } + fp1_steward_study = { background = { # Viking Steward Study reference = "gfx/interface/illustrations/event_scenes/fp1_steward_study.dds" @@ -3063,6 +3144,7 @@ fp1_steward_study = { ambience = "event:/DLC/FP1/SFX/Events/event_steward_study" } } + fp1_tribal_temple = { background = { # Viking temple reference = "gfx/interface/illustrations/event_scenes/fp1_tribal_temple.dds" @@ -3070,6 +3152,7 @@ fp1_tribal_temple = { ambience = "event:/DLC/FP1/SFX/Events/event_temple" } } + fp1_throneroom_nontribal = { background = { # Throneroom NonTribal reference = "gfx/interface/illustrations/event_scenes/fp1_throneroom_nontribal.dds" @@ -3077,6 +3160,7 @@ fp1_throneroom_nontribal = { ambience = "event:/DLC/FP1/SFX/Events/event_throneroom_nontribal" } } + fp1_throneroom_tribal = { background = { # Tribal Throneroom reference = "gfx/interface/illustrations/event_scenes/fp1_throneroom_tribal.dds" @@ -3084,6 +3168,7 @@ fp1_throneroom_tribal = { ambience = "event:/DLC/FP1/SFX/Events/event_throneroom" } } + fp1_tribal_corridor = { background = { # Tribal Corridor reference = "gfx/interface/illustrations/event_scenes/fp1_tribal_corridor.dds" @@ -3091,6 +3176,7 @@ fp1_tribal_corridor = { ambience = "event:/DLC/FP1/SFX/Events/event_tribal_corridor" } } + fp1_viking_feast = { background = { # viking Feast reference = "gfx/interface/illustrations/event_scenes/fp1_viking_feast.dds" @@ -3098,6 +3184,7 @@ fp1_viking_feast = { ambience = "event:/DLC/FP1/SFX/Events/event_viking_feast" } } + fp1_tribal_prison = { background = { # Prison reference = "gfx/interface/illustrations/event_scenes/fp1_tribal_prison.dds" @@ -3115,7 +3202,6 @@ fp2_test = { } #### FP2 Fullscreen Backgrounds #### - fp2_fullscreen_intro = { background = { # Intro reference = "gfx/interface/illustrations/event_story/fp2_struggle_start.dds" @@ -3148,7 +3234,57 @@ fp2_fullscreen_conciliation = { } } -# BP1 +#### FP3 Fullscreen Backgrounds #### +fp3_fullscreen_intro = { + background = { # Intro + reference = "gfx/interface/illustrations/event_story/fp3_struggle_start.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_start_loop" + } +} + +fp3_fullscreen_concession = { + background = { # Concession Ending + reference = "gfx/interface/illustrations/event_story/fp3_concession.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_end_loop_conciliation" + } +} + +fp3_fullscreen_rekindle = { + background = { # Rekindle Ending + reference = "gfx/interface/illustrations/event_story/fp3_rekindle.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_end_loop_conciliation" + } +} + + +fp3_fullscreen_strength = { + background = { # Strenghten the Caliphate Ending + reference = "gfx/interface/illustrations/event_story/fp3_strength.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_end_loop_hostility" + } +} + +fp3_fullscreen_temper = { + background = { # Temper the Caliphate Ending + reference = "gfx/interface/illustrations/event_story/fp3_temper.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_end_loop_hostility" + } +} + +fp3_fullscreen_sunder = { + background = { # Sunder the Caliphate Major Decision + reference = "gfx/interface/illustrations/event_story/fp3_sunder.dds" + environment = "environment_event_steppe" + ambience = "event:/DLC/FP2/SFX/UI/fp2_struggle_end_loop_hostility" + } +} + +#### BP1 #### bp1_indian_corridor_night = { background = { #Indian Corridor reference = "gfx/interface/illustrations/event_scenes/bp1_corridor_indian_night.dds" @@ -3156,6 +3292,7 @@ bp1_indian_corridor_night = { ambience = "event:/SFX/Events/Backgrounds/castle_corridor_night" } } + bp1_indian_corridor_day = { background = { #Indian Corridor reference = "gfx/interface/illustrations/event_scenes/bp1_corridor_indian_day.dds" @@ -3228,6 +3365,48 @@ bp1_crossroads_inn = { } } +### FP3 ### +fp3_courtyard_night = { + background = { + reference = "gfx/interface/illustrations/event_scenes/fp3_courtyard_night.dds" + environment = "environment_event_fp3_courtyard_night" + ambience = "event:/DLC/FP2/SFX/Events/corridor_night" + } +} + +fp3_cave = { + background = { + reference = "gfx/interface/illustrations/event_scenes/fp3_cave.dds" + environment = "environment_event_sittingroom" + ambience = "event:/SFX/Events/Backgrounds/dungeon" + } +} + +fp3_zoroastrian_temple = { + background = { # FP3 + reference = "gfx/interface/illustrations/event_scenes/fp3_temple.dds" + environment = "environment_event_fp3_temple" + ambience = "event:/SFX/Events/Backgrounds/temple_generic" + } +} + +fp3_iranian_docks = { + background = { + reference = "gfx/interface/illustrations/event_scenes/fp3_docks.dds" + environment = "environment_event_fp3_docks" + ambience = "event:/SFX/Events/Backgrounds/docks_day" + } +} + +fp3_iranian_throne_room = { + background = { #FP3 + reference = "gfx/interface/illustrations/event_scenes/fp3_throneroom.dds" + environment = "environment_event_temple" + ambience = "event:/SFX/Events/Backgrounds/throneroom_middleeastern_african" + } +} + + # EP2 tour_arrival_turned_away = { @@ -3265,7 +3444,10 @@ tour_arrival_turned_away = { trigger = { scope:activity ?= { activity_location.culture = { - has_graphical_mena_culture_group_trigger = yes + OR = { + has_building_gfx = iranian_building_gfx + has_graphical_mena_culture_group_trigger = yes + } } } } @@ -3410,7 +3592,10 @@ tour_arrival = { } } activity_location.culture = { - has_graphical_mena_culture_group_trigger = yes + OR = { + has_graphical_mena_culture_group_trigger = yes + has_building_gfx = iranian_building_gfx + } } } } @@ -3424,7 +3609,10 @@ tour_arrival = { trigger = { scope:activity ?= { activity_location.culture = { - has_graphical_mena_culture_group_trigger = yes + OR = { + has_graphical_mena_culture_group_trigger = yes + has_building_gfx = iranian_building_gfx + } } } } @@ -3559,10 +3747,10 @@ ep2_tournament = { background = { #MENA trigger = { location = { - #OR = { + OR = { geographical_region = graphical_mena - # - #} + culture ?= { has_building_gfx = iranian_building_gfx } + } } } reference = "gfx/interface/illustrations/event_scenes/ep2_tournament_mena.dds" @@ -3723,6 +3911,9 @@ tournament_contest = { geographical_region = world_europe_west_iberia scope:activity.activity_host = { like_islam_religion_trigger = yes } } + culture ?= { + has_building_gfx = iranian_building_gfx + } } } } @@ -3782,6 +3973,21 @@ holy_site_generic = { ambience = "event:/DLC/EP2/SFX/Events/Backgrounds/evn_background_jungle" } + background = { #Western generic holy site + trigger = { + OR = { + AND = { + exists = scope:activity + scope:activity.activity_location.culture = { has_graphical_western_culture_group_trigger = yes } + } + location.culture ?= { has_graphical_western_culture_group_trigger = yes } + } + } + reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_western.dds" + environment = "environment_western_holy_site" + ambience = "event:/SFX/Events/Backgrounds/temple_christian" + } + background = { #Pagan generic holy site trigger = { OR = { @@ -3815,6 +4021,7 @@ holy_site_generic = { scope:activity.activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } } location.culture = { has_graphical_mena_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_mena.dds" @@ -3852,7 +4059,7 @@ holy_site_generic = { ambience = "event:/DLC/FP1/SFX/Events/event_temple" } - background = { #Western generic holy site + background = { #Western generic holy site fallback reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_western.dds" environment = "environment_western_holy_site" ambience = "event:/SFX/Events/Backgrounds/temple_christian" @@ -4089,6 +4296,7 @@ ep2_wedding_ceremony = { location.culture = { has_graphical_mena_culture_group_trigger = yes } location.culture = { has_graphical_steppe_culture_group_trigger = yes } location.culture = { has_graphical_african_culture_group_trigger = yes } + location.culture ?= { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_wedding_ceremony_mena.dds" @@ -4144,6 +4352,7 @@ ep2_involved_activity = { trigger = { involved_activity ?= { has_activity_type = activity_wedding } OR = { + location.culture ?= { has_building_gfx = iranian_building_gfx } location.culture = { has_graphical_mena_culture_group_trigger = yes } location.culture = { has_graphical_steppe_culture_group_trigger = yes } location.culture = { has_graphical_african_culture_group_trigger = yes } @@ -4279,7 +4488,7 @@ ep2_involved_activity = { OR = { involved_activity.activity_location.province_owner ?= { OR = { - government_has_flag = clan_government + government_has_flag = government_is_clan government_has_flag = government_is_tribal } } @@ -4333,6 +4542,7 @@ ep2_involved_activity = { involved_activity.activity_location.culture = { has_building_gfx = arabic_group_building_gfx } involved_activity.activity_location.culture = { has_building_gfx = berber_group_building_gfx } involved_activity.activity_location.culture = { has_building_gfx = iberian_building_gfx } + involved_activity.activity_location.culture ?= { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_feast_mena.dds" @@ -4409,6 +4619,7 @@ ep2_activity = { location.culture = { has_graphical_mena_culture_group_trigger = yes } location.culture = { has_graphical_steppe_culture_group_trigger = yes } location.culture = { has_graphical_african_culture_group_trigger = yes } + location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_wedding_ceremony_mena.dds" @@ -4502,7 +4713,10 @@ ep2_activity = { background = { #MENA generic holy site trigger = { scope:activity ?= { has_activity_type = activity_pilgrimage } - scope:activity.activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } + OR = { + scope:activity.activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } + scope:activity.activity_location.culture = { has_building_gfx = iranian_building_gfx } + } } reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_mena.dds" environment = "environment_generic_holy_site_mena" @@ -4595,6 +4809,7 @@ ep2_activity = { scope:activity.activity_location.culture = { has_building_gfx = arabic_group_building_gfx } scope:activity.activity_location.culture = { has_building_gfx = berber_group_building_gfx } scope:activity.activity_location.culture = { has_building_gfx = iberian_building_gfx } + scope:activity.activity_location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_feast_mena.dds" @@ -4943,7 +5158,6 @@ bp2_university = { } background = { #Fallback: Madrasa reference = "gfx/interface/illustrations/event_scenes/bp2_university_mena.dds" - # TODO_ART_BP2: Hook in environment lighting environment = "environment_bp2_university_mena" ambience = "event:/SFX/Events/Backgrounds/meetingchamber_western" } diff --git a/common/event_backgrounds/activity_backgrounds.txt b/common/event_backgrounds/activity_backgrounds.txt index c263e7bf51..6da83e8ca7 100644 --- a/common/event_backgrounds/activity_backgrounds.txt +++ b/common/event_backgrounds/activity_backgrounds.txt @@ -594,6 +594,7 @@ activity_location.culture = { has_building_gfx = arabic_group_building_gfx } activity_location.culture = { has_building_gfx = berber_group_building_gfx } activity_location.culture = { has_building_gfx = iberian_building_gfx } + activity_location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_feast_mena.dds" @@ -1703,7 +1704,10 @@ activity_pilgrimage = { #Generic holy sites background = { trigger = { - activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } + OR = { + activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } + activity_location.culture = { has_building_gfx = iranian_building_gfx } + } } reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_mena.dds" environment = "environment_generic_holy_site_mena" @@ -2381,7 +2385,10 @@ activity_tour = { background = { #MENA Courtyard trigger = { has_current_phase = tour_phase_tour_grounds - activity_location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + OR = { + activity_location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + activity_location.culture ?= { has_building_gfx = iranian_building_gfx } + } } reference = "gfx/interface/illustrations/event_scenes/bp1_courtyard_mena.dds" environment = "environment_event_bp1_courtyard_mena" @@ -2423,6 +2430,7 @@ activity_tour = { activity_location.culture = { has_building_gfx = arabic_group_building_gfx } activity_location.culture = { has_building_gfx = berber_group_building_gfx } activity_location.culture = { has_building_gfx = iberian_building_gfx } + activity_location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_feast_mena.dds" @@ -2481,7 +2489,7 @@ activity_tour = { reference = "gfx/interface/illustrations/event_scenes/docks.dds" environment = "environment_event_docks" ambience = "event:/SFX/Events/Backgrounds/docks_day" - } + } background = { #Eastern trigger = { has_current_phase = tour_phase_cultural_festival @@ -2489,6 +2497,7 @@ activity_tour = { OR = { geographical_region = graphical_mena geographical_region = graphical_india + culture ?= { has_building_gfx = iranian_building_gfx } #AND = { # geographical_region = world_europe_west_iberia # faith ?= { like_islam_religion_trigger = yes } @@ -2551,7 +2560,10 @@ activity_tour = { background = { trigger = { - activity_location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + OR = { + activity_location.culture ?= { has_graphical_mena_culture_group_trigger = yes } + activity_location.culture ?= { has_building_gfx = iranian_building_gfx } + } } reference = "gfx/interface/illustrations/event_scenes/throneroom_east.dds" environment = "environment_frontend_east_main" @@ -3170,6 +3182,7 @@ activity_wedding = { activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } activity_location.culture = { has_graphical_steppe_culture_group_trigger = yes } activity_location.culture = { has_graphical_african_culture_group_trigger = yes } + activity_location.culture = { has_building_gfx = iranian_building_gfx } } } reference = "gfx/interface/illustrations/event_scenes/ep2_wedding_ceremony_mena.dds" diff --git a/common/event_themes/ep2_tournament_themes.txt b/common/event_themes/ep2_tournament_themes.txt deleted file mode 100644 index f238079e90..0000000000 --- a/common/event_themes/ep2_tournament_themes.txt +++ /dev/null @@ -1,610 +0,0 @@ - -#TOURNAMENT EVENTS -tournament_locale_tavern = { - icon = { - reference = "gfx/interface/icons/event_types/type_domain.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_social" - } - background = { - reference = tavern - } -} - -tournament_locale_camp = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_martial" - } - background = { - reference = army_camp - } -} - -tournament_locale_forge = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_martial" - } - background = { - reference = armory - } -} - -tournament_locale_artisans = { - icon = { - reference = "gfx/interface/icons/event_types/type_stewardship.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_stewardship" - } - background = { - reference = study - } -} - -tournament_locale_temple = { - icon = { - reference = "gfx/interface/icons/event_types/type_faith.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_faith" - } - background = { - reference = temple - } -} - -tournament_locale_village = { - icon = { - reference = "gfx/interface/icons/event_types/type_domain.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_social" - } - background = { - reference = market - } -} - -tournament_outskirts = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = terrain_travel - } -} - -tournament_grounds = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = ep2_tournament - } -} - -tournament_contest = { - ### ICON - icon = { # Martial - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - OR = { - scope:contest_complete = flag:melee - scope:contest_complete = flag:duel - scope:contest_complete = flag:wrestling - scope:contest_complete = flag:joust - scope:contest_complete = flag:horse_race - scope:contest_complete = flag:archery - } - } - trigger_else = { - OR = { - has_current_phase = tournament_phase_melee - has_current_phase = tournament_phase_duel - has_current_phase = tournament_phase_wrestling - has_current_phase = tournament_phase_joust - has_current_phase = tournament_phase_horse_race - has_current_phase = tournament_phase_archery - } - } - } - } - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - icon = { # Diplomacy - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - scope:contest_complete = flag:recital - } - trigger_else = { has_current_phase = tournament_phase_recital } - } - } - reference = "gfx/interface/icons/event_types/type_diplomacy.dds" - } - icon = { # Learning - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - scope:contest_complete = flag:board_game - } - trigger_else = { has_current_phase = tournament_phase_board_game } - } - } - reference = "gfx/interface/icons/event_types/type_chivalry.dds" - } - icon = { # Fallback - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - ### SOUND - sound = { # Martial - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - OR = { - scope:contest_complete = flag:melee - scope:contest_complete = flag:duel - scope:contest_complete = flag:wrestling - scope:contest_complete = flag:joust - scope:contest_complete = flag:horse_race - scope:contest_complete = flag:archery - } - } - trigger_else = { - OR = { - has_current_phase = tournament_phase_melee - has_current_phase = tournament_phase_duel - has_current_phase = tournament_phase_wrestling - has_current_phase = tournament_phase_joust - has_current_phase = tournament_phase_horse_race - has_current_phase = tournament_phase_archery - } - } - } - } - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_martial" - } - sound = { # Diplomacy - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - scope:contest_complete = flag:recital - } - trigger_else = { has_current_phase = tournament_phase_recital } - } - } - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_diplomacy" - } - sound = { # Learning - trigger = { - scope:activity ?= { - trigger_if = { - limit = { exists = scope:contest_complete } - scope:contest_complete = flag:board_game - } - trigger_else = { has_current_phase = tournament_phase_board_game } - } - } - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_learning" - } - sound = { # Fallback - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } -} - -tournament_contest_martial = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_martial" - } - background = { - reference = tournament_contest - } -} - -tournament_contest_boardgame = { - icon = { - reference = "gfx/interface/icons/event_types/type_chivalry.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_learning" - } - background = { - reference = tournament_contest - } -} - -tournament_contest_recital = { - icon = { - reference = "gfx/interface/icons/event_types/type_diplomacy.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_diplomacy" - } - background = { - reference = tournament_contest - } -} - -tournament_archery_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_archery_neutral - } -} - -tournament_horse_race_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_horse_race_neutral - } -} - -tournament_boardgame_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_boardgame_neutral - } -} - -tournament_joust_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_joust_neutral - } -} - -tournament_melee_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_melee_neutral - } -} - -tournament_recital_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_recital_neutral - } -} - -tournament_wrestling_pivotal = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = tournament_contest - } - transition = { - reference = pivotal_wrestling_neutral - } -} - -# Pivotal Moment Illustrations - -tournament_archery_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_archery_win - } -} - -tournament_archery_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_archery_neutral - } -} - -tournament_archery_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_archery_fail - } -} - -tournament_boardgame_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_boardgame_win - } -} - -tournament_boardgame_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_boardgame_neutral - } -} - -tournament_boardgame_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_boardgame_fail - } -} - -tournament_horse_race_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_horse_racing_win - } -} - -tournament_horse_race_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_horse_racing_neutral - } -} - -tournament_horse_race_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_horse_racing_fail - } -} - -tournament_joust_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_joust_win - } -} - -tournament_joust_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_joust_neutral - } -} - -tournament_joust_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_joust_fail - } -} - -tournament_melee_win = { #Also used for Duel - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_melee_win - } -} - -tournament_melee_neutral = { #Also used for Duel - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_melee_neutral - } -} - -tournament_melee_lose = { #Also used for Duel - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_melee_fail - } -} - -tournament_recital_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_recital_win - } -} - -tournament_recital_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_recital_neutral - } -} - -tournament_recital_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_recital_fail - } -} - -tournament_wrestling_win = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_wrestling_win - } -} - -tournament_wrestling_neutral = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_wrestling_neutral - } -} - -tournament_wrestling_lose = { - icon = { - reference = "gfx/interface/icons/event_types/type_martial.dds" - } - sound = { - reference = "event:/SFX/Events/Themes/sfx_event_theme_type_activity" - } - background = { - reference = pivotal_wrestling_fail - } -} \ No newline at end of file diff --git a/common/event_transitions/_event_transitions.info b/common/event_transitions/_event_transitions.info deleted file mode 100644 index 25962e0be7..0000000000 --- a/common/event_transitions/_event_transitions.info +++ /dev/null @@ -1,42 +0,0 @@ -reference_key = { - - ### Brief: transition - # A background that can be shown when the event pops up. In case that there - # are multiples the first one that fits the trigger will be the one - # selected. - # - transition = { - - ### Brief: trigger ( jomini trigger ) - # Receives the event scope to check if it's valid. - trigger = { ... } - - ### Brief: reference ( string path ) - # Path to the texture - # - reference = "gfx/interface/illustrations/my/example/illustration.dds" - - ### Brief: ( bool ) - # Is the reference a video? - # - video = yes/no - - ### Brief: ambience ( string ) - # Reference to the ambience sound effect as defined in - # game/sound/GUIDs.txt - # - ambience = "event:/SFX/My/Test/Reference" - - ### Brief: video_mask ( string path ) - # Video mask to use in doing an alpha multiply on the fade video or - # image. - # - video_mask = "path/to/my/video.bk2" - - ### Brief: duration ( CFixedPoint ) - # How long will this transition show? - # - # Must be larger than 0. - duration = 1.0 - } -} diff --git a/common/event_transitions/debug_test_transitions.txt b/common/event_transitions/debug_test_transitions.txt deleted file mode 100644 index 68bdd4ff1c..0000000000 --- a/common/event_transitions/debug_test_transitions.txt +++ /dev/null @@ -1,29 +0,0 @@ - -debug_test_transition_0 = { - transition = { - reference = "gfx/interface/_debug/placeholder.dds" - duration = 5 - } -} - -debug_test_transition_1 = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_fail.dds" - duration = 5 - } -} - -debug_test_transition_2 = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_neutral.dds" - duration = 5 - } -} - - -debug_test_transition_3 = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_win.dds" - duration = 5 - } -} \ No newline at end of file diff --git a/common/event_transitions/ep2_tournament_transitions.txt b/common/event_transitions/ep2_tournament_transitions.txt deleted file mode 100644 index 326a064c5f..0000000000 --- a/common/event_transitions/ep2_tournament_transitions.txt +++ /dev/null @@ -1,146 +0,0 @@ -pivotal_archery_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_fail.dds" - duration = 7 - } -} - -pivotal_archery_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_neutral.dds" - duration = 7 - } -} - -pivotal_archery_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/archery_win.dds" - duration = 7 - } -} - -pivotal_boardgame_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/boardgame_fail.dds" - duration = 7 - } -} - -pivotal_boardgame_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/boardgame_neutral.dds" - duration = 7 - } -} - -pivotal_boardgame_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/boardgame_success.dds" - duration = 7 - } -} - -pivotal_fistfighting_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/fistfighting_fail.dds" - duration = 7 - } -} - -pivotal_fistfighting_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/fistfighting_neutral.dds" - duration = 7 - } -} - -pivotal_fistfighting_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/fistfighting_win.dds" - duration = 7 - } -} - -pivotal_horse_racing_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/horse_racing_fail.dds" - duration = 7 - } -} - -pivotal_horse_racing_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/horse_racing_neutral.dds" - duration = 7 - } -} - -pivotal_horse_racing_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/horse_racing_success.dds" - duration = 7 - } -} - -pivotal_jousting_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/jousting_fail.dds" - duration = 7 - } -} - -pivotal_jousting_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/jousting_neutral.dds" - duration = 7 - } -} - -pivotal_jousting_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/jousting_win.dds" - duration = 7 - } -} - -pivotal_melee_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/melee_fail.dds" - duration = 7 - } -} - -pivotal_melee_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/melee_neutral.dds" - duration = 7 - } -} - -pivotal_melee_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/melee_win.dds" - duration = 7 - } -} - -pivotal_recital_fail = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/recital_fail.dds" - duration = 7 - } -} - -pivotal_recital_neutral = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/recital_neutral.dds" - duration = 7 - } -} - -pivotal_recital_success = { - transition = { - reference = "gfx/interface/illustrations/tournament_contest_illustrations/recital_win.dds" - duration = 7 - } -} diff --git a/common/factions/00_factions.txt b/common/factions/00_factions.txt index d1115cfc47..670c4c0a05 100644 --- a/common/factions/00_factions.txt +++ b/common/factions/00_factions.txt @@ -180,6 +180,8 @@ } can_character_create_ui = { + base_faction_trigger = { FACTION_TYPE = independence_faction } + common_can_character_create_trigger = { FACTION_TARGET = scope:target } @@ -328,6 +330,8 @@ liberty_faction = { } can_character_create_ui = { + base_faction_trigger = { FACTION_TYPE = liberty_faction } + common_can_character_create_trigger = { FACTION_TARGET = scope:target } @@ -675,7 +679,7 @@ claimant_faction = { FACTION_TARGET = scope:target FACTION_CLAIMANT = scope:claimant FACTION_TITLE = scope:title - } + } # If another Claimant Faction already exists, prefer to side with it modifier = { diff --git a/common/factions/00_nation_fracturing_faction.txt b/common/factions/00_nation_fracturing_faction.txt index d981ac5173..2480313883 100644 --- a/common/factions/00_nation_fracturing_faction.txt +++ b/common/factions/00_nation_fracturing_faction.txt @@ -65,6 +65,8 @@ } can_character_create_ui = { + base_faction_trigger = { FACTION_TYPE = nation_fracturing_faction } + common_can_character_create_trigger = { FACTION_TARGET = scope:target } @@ -196,7 +198,6 @@ value = county_opinion multiplier = -1.0 } - } is_county_valid = { diff --git a/common/focuses/00_education_focuses.txt b/common/focuses/00_education_focuses.txt deleted file mode 100644 index 848dd4ced9..0000000000 --- a/common/focuses/00_education_focuses.txt +++ /dev/null @@ -1,549 +0,0 @@ -#Education focuses -#List them in the order they appear in the interface, clockwise - -#diplomacy -education_diplomacy = { - education = yes - focus_id = 0 - - skill = diplomacy - - desc = { - desc = education_diplomacy_desc - first_valid = { - triggered_desc = { - trigger = { has_diplomacy_education_affinity_childhood_trait_trigger = yes } - desc = education_diplomacy_tt.affinity - } - triggered_desc = { - trigger = { has_diplomacy_education_disaffinity_childhood_trait_trigger = yes } - desc = education_diplomacy_tt.disaffinity - } - } - desc = line_break - } - - is_default = { - has_trait = curious - } - - is_good_for = { - has_diplomacy_education_affinity_childhood_trait_trigger = yes - } - - is_bad_for = { - has_diplomacy_education_disaffinity_childhood_trait_trigger = yes - } - - on_change_to = { - if = { - limit = { - exists = var:education_point_gain_variable - } - change_variable = { - name = education_point_gain_variable - multiply = point_conversion_factor - } - set_variable = { - name = education_diplomacy_variable - value = var:education_point_gain_variable - } - remove_variable = education_point_gain_variable - } - } - - on_change_from = { - if = { - limit = { - is_alive = yes - is_adult = no - } - add_character_flag = diplomacy_previous_education - if = { - limit = { - has_variable = education_diplomacy_variable - } - set_variable = { - name = education_point_gain_variable - value = var:education_diplomacy_variable - } - remove_variable = education_diplomacy_variable - } - else = { - set_variable = { - name = education_point_gain_variable - value = 0 - } - } - if = { - limit = { - any_relation = { - type = guardian - NOT = { is_parent_of = root } - } - } - save_scope_as = ward - random_relation = { - type = guardian - trigger_event = childhood_education.0004 - } - } - } - } - - auto_selection_weight = { - value = 100 - if = { - limit = { has_diplomacy_education_affinity_childhood_trait_trigger = yes } - add = 900 - } - if = { - limit = { has_diplomacy_education_disaffinity_childhood_trait_trigger = yes } - add = -900 - } - } - - modifier = { - diplomacy = 1 - } -} - - -#martial -education_martial = { - education = yes - focus_id = 1 - - skill = martial - - desc = { - desc = education_martial_desc - first_valid = { - triggered_desc = { - trigger = { has_martial_education_affinity_childhood_trait_trigger = yes } - desc = education_martial_tt.affinity - } - triggered_desc = { - trigger = { has_martial_education_disaffinity_childhood_trait_trigger = yes } - desc = education_martial_tt.disaffinity - } - } - desc = line_break - } - - is_default = { - has_trait = rowdy - } - - is_good_for = { - has_martial_education_affinity_childhood_trait_trigger = yes - } - - is_bad_for = { - has_martial_education_disaffinity_childhood_trait_trigger = yes - } - - on_change_to = { - if = { - limit = { - exists = var:education_point_gain_variable - } - change_variable = { - name = education_point_gain_variable - multiply = point_conversion_factor - } - set_variable = { - name = education_martial_variable - value = var:education_point_gain_variable - } - remove_variable = education_point_gain_variable - } - } - - on_change_from = { - if = { - limit = { - is_alive = yes - is_adult = no - } - add_character_flag = martial_previous_education - if = { - limit = { - has_variable = education_martial_variable - } - set_variable = { - name = education_point_gain_variable - value = var:education_martial_variable - } - remove_variable = education_martial_variable - } - else = { - set_variable = { - name = education_point_gain_variable - value = 0 - } - } - if = { - limit = { - any_relation = { - type = guardian - NOT = { is_parent_of = root } - } - } - save_scope_as = ward - random_relation = { - type = guardian - trigger_event = childhood_education.0004 - } - } - } - } - - modifier = { - martial = 1 - } - - - auto_selection_weight = { - value = 100 - if = { - limit = { - has_martial_education_affinity_childhood_trait_trigger = yes - } - add = 900 - } - if = { - limit = { has_martial_education_disaffinity_childhood_trait_trigger = yes } - add = -900 - } - if = { - limit = { NOT = { can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } } } - multiply = 0.2 - } - } -} - - -#stewardship -education_stewardship = { - education = yes - focus_id = 2 - - skill = stewardship - - desc = { - desc = education_stewardship_desc - first_valid = { - triggered_desc = { - trigger = { has_stewardship_education_affinity_childhood_trait_trigger = yes } - desc = education_stewardship_tt.affinity - } - triggered_desc = { - trigger = { has_stewardship_education_disaffinity_childhood_trait_trigger = yes } - desc = education_stewardship_tt.disaffinity - } - } - desc = line_break - } - - is_default = { - has_trait = bossy - } - - is_good_for = { - has_stewardship_education_affinity_childhood_trait_trigger = yes - } - - is_bad_for = { - has_stewardship_education_disaffinity_childhood_trait_trigger = yes - } - - on_change_to = { - if = { - limit = { - exists = var:education_point_gain_variable - } - change_variable = { - name = education_point_gain_variable - multiply = point_conversion_factor - } - set_variable = { - name = education_stewardship_variable - value = var:education_point_gain_variable - } - remove_variable = education_point_gain_variable - } - } - - on_change_from = { - if = { - limit = { - is_alive = yes - is_adult = no - } - add_character_flag = stewardship_previous_education - if = { - limit = { - has_variable = education_stewardship_variable - } - set_variable = { - name = education_point_gain_variable - value = var:education_stewardship_variable - } - remove_variable = education_stewardship_variable - } - else = { - set_variable = { - name = education_point_gain_variable - value = 0 - } - } - if = { - limit = { - any_relation = { - type = guardian - NOT = { is_parent_of = root } - } - } - save_scope_as = ward - random_relation = { - type = guardian - trigger_event = childhood_education.0004 - } - } - } - } - - auto_selection_weight = { - value = 100 - if = { - limit = { has_stewardship_education_affinity_childhood_trait_trigger = yes } - add = 900 - } - if = { - limit = { has_stewardship_education_disaffinity_childhood_trait_trigger = yes } - add = -900 - } - } - - modifier = { - stewardship = 1 - } -} - -#Learning -education_learning = { - education = yes - focus_id = 3 - - skill = learning - - desc = { - desc = education_learning_desc - first_valid = { - triggered_desc = { - trigger = { has_learning_education_affinity_childhood_trait_trigger = yes } - desc = education_learning_tt.affinity - } - triggered_desc = { - trigger = { has_learning_education_disaffinity_childhood_trait_trigger = yes } - desc = education_learning_tt.disaffinity - } - } - desc = line_break - } - - is_default = { - has_trait = pensive - } - - is_good_for = { - has_learning_education_affinity_childhood_trait_trigger = yes - } - - is_bad_for = { - has_learning_education_disaffinity_childhood_trait_trigger = yes - } - - on_change_to = { - if = { - limit = { - exists = var:education_point_gain_variable - } - change_variable = { - name = education_point_gain_variable - multiply = point_conversion_factor - } - set_variable = { - name = education_learning_variable - value = var:education_point_gain_variable - } - remove_variable = education_point_gain_variable - } - } - - on_change_from = { - if = { - limit = { - is_alive = yes - is_adult = no - } - add_character_flag = learning_previous_education - if = { - limit = { - has_variable = education_learning_variable - } - set_variable = { - name = education_point_gain_variable - value = var:education_learning_variable - } - remove_variable = education_learning_variable - } - else = { - set_variable = { - name = education_point_gain_variable - value = 0 - } - } - if = { - limit = { - any_relation = { - type = guardian - NOT = { is_parent_of = root } - } - } - save_scope_as = ward - random_relation = { - type = guardian - trigger_event = childhood_education.0004 - } - } - } - } - - auto_selection_weight = { - value = 100 - if = { - limit = { has_learning_education_affinity_childhood_trait_trigger = yes } - add = 900 - } - if = { - limit = { has_learning_education_disaffinity_childhood_trait_trigger = yes } - add = -900 - } - } - - modifier = { - learning = 1 - } -} - - - -#intrigue -education_intrigue = { - education = yes - focus_id = 4 - - skill = intrigue - - desc = { - desc = education_intrigue_desc - first_valid = { - triggered_desc = { - trigger = { has_intrigue_education_affinity_childhood_trait_trigger = yes } - desc = education_intrigue_tt.affinity - } - triggered_desc = { - trigger = { has_intrigue_education_disaffinity_childhood_trait_trigger = yes } - desc = education_intrigue_tt.disaffinity - } - } - desc = line_break - } - - is_default = { - has_trait = charming - } - - is_good_for = { - has_intrigue_education_affinity_childhood_trait_trigger = yes - } - - is_bad_for = { - has_intrigue_education_disaffinity_childhood_trait_trigger = yes - } - - on_change_to = { - if = { - limit = { - exists = var:education_point_gain_variable - } - change_variable = { - name = education_point_gain_variable - multiply = point_conversion_factor - } - set_variable = { - name = education_intrigue_variable - value = var:education_point_gain_variable - } - remove_variable = education_point_gain_variable - } - } - - on_change_from = { - if = { - limit = { - is_alive = yes - is_adult = no - } - add_character_flag = intrigue_previous_education - if = { - limit = { - has_variable = education_intrigue_variable - } - set_variable = { - name = education_point_gain_variable - value = var:education_intrigue_variable - } - remove_variable = education_intrigue_variable - } - else = { - set_variable = { - name = education_point_gain_variable - value = 0 - } - } - if = { - limit = { - any_relation = { - type = guardian - NOT = { is_parent_of = root } - } - } - save_scope_as = ward - random_relation = { - type = guardian - trigger_event = childhood_education.0004 - } - } - } - } - - auto_selection_weight = { - value = 100 - if = { - limit = { has_intrigue_education_affinity_childhood_trait_trigger = yes } - add = 900 - } - if = { - limit = { has_intrigue_education_disaffinity_childhood_trait_trigger = yes } - add = -900 - } - } - - modifier = { - intrigue = 1 - } -} - diff --git a/common/focuses/00_lifestyle_focuses.txt b/common/focuses/00_lifestyle_focuses.txt deleted file mode 100644 index 4016758d03..0000000000 --- a/common/focuses/00_lifestyle_focuses.txt +++ /dev/null @@ -1,540 +0,0 @@ - - -diplomacy_foreign_affairs_focus = { - lifestyle = diplomacy_lifestyle - - modifier = { - diplomacy = 3 - } - - desc = { - desc = diplomacy_foreign_affairs_focus_desc - desc = line_break - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_diplomacy_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = shy - } - multiply = 0 - } - } - - focus_id = 0 -} - -diplomacy_majesty_focus = { - lifestyle = diplomacy_lifestyle - - modifier = { - diplomacy = 1 - monthly_prestige = 1 - } - - desc = { - desc = diplomacy_majesty_focus_desc - desc = line_break - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_diplomacy_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = arrogant - } - multiply = 5 - } - if = { - limit = { - has_trait = ambitious - } - multiply = 2 - } - } - - focus_id = 1 -} - -diplomacy_family_focus = { - lifestyle = diplomacy_lifestyle - - modifier = { - diplomacy = 2 - fertility = 0.2 - } - - desc = { - desc = diplomacy_family_focus_desc - desc = line_break - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_diplomacy_trigger = yes - } - add = 1989 - } - } - - focus_id = 2 -} - -martial_strategy_focus = { - lifestyle = martial_lifestyle - - desc = { - desc = martial_strategy_focus_desc - desc = line_break - } - - modifier = { - martial = 3 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_martial_trigger = yes - } - add = 1989 - } - } - - focus_id = 3 -} - -martial_authority_focus = { - lifestyle = martial_lifestyle - - desc = { - desc = martial_authority_focus_desc - desc = line_break - } - - modifier = { - martial = 1 - monthly_county_control_change_add = 0.3 - dread_gain_mult = 0.2 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_martial_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = arrogant - } - multiply = 2 - } - if = { - limit = { - has_trait = shy - } - multiply = 0 - } - } - - focus_id = 4 -} - -martial_chivalry_focus = { - lifestyle = martial_lifestyle - - desc = { - desc = martial_chivalry_focus_desc - desc = line_break - } - - modifier = { - advantage = 5 - prowess = 3 - attraction_opinion = 10 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_martial_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = brave - } - multiply = 5 - } - if = { - limit = { - has_trait = honest - } - multiply = 2 - } - if = { - limit = { - has_trait = chaste - } - multiply = 1.5 - } - } - - focus_id = 5 -} - -intrigue_skulduggery_focus = { - lifestyle = intrigue_lifestyle - - desc = { - desc = intrigue_skulduggery_focus_desc - desc = line_break - } - - modifier = { - intrigue = 3 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_intrigue_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = deceitful - } - multiply = 2 - } - if = { - limit = { - has_trait = paranoid - } - multiply = 5 - } - if = { - limit = { - has_trait = trusting - } - multiply = 0.1 - } - if = { - limit = { - has_trait = honest - } - multiply = 0.1 - } - } - - focus_id = 6 -} - -intrigue_temptation_focus = { - lifestyle = intrigue_lifestyle - - desc = { - desc = intrigue_temptation_focus_desc - desc = line_break - } - - modifier = { - attraction_opinion = 10 - fertility = 0.2 - seduce_scheme_power_mult = 0.2 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_intrigue_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = lustful - } - multiply = 7 - } - if = { - limit = { - OR = { - has_trait = celibate - has_trait = chaste - } - } - multiply = 0 - } - } - - focus_id = 7 -} - -intrigue_intimidation_focus = { - lifestyle = intrigue_lifestyle - - desc = { - desc = intrigue_intimidation_focus_desc - desc = line_break - } - - modifier = { - intrigue = 2 - dread_baseline_add = 30 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_intrigue_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = callous - } - multiply = 3 - } - if = { - limit = { - has_trait = wrathful - } - multiply = 2 - } - if = { - limit = { - has_trait = vengeful - } - multiply = 2 - } - if = { - limit = { - OR = { - has_trait = craven - has_trait = compassionate - has_trait = forgiving - } - } - multiply = 0 - } - } - - focus_id = 8 -} - -stewardship_wealth_focus = { - lifestyle = stewardship_lifestyle - - desc = { - desc = stewardship_wealth_focus_desc - desc = line_break - } - - modifier = { - monthly_income_mult = 0.1 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_stewardship_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = greedy - } - multiply = 5 - } - if = { - limit = { - has_trait = generous - } - multiply = 0 - } - } - - focus_id = 9 -} - -stewardship_domain_focus = { - lifestyle = stewardship_lifestyle - - desc = { - desc = stewardship_domain_focus_desc - desc = line_break - } - - modifier = { - stewardship = 3 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_stewardship_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = diligent - } - multiply = 2 - } - } - - focus_id = 10 -} - -stewardship_duty_focus = { - lifestyle = stewardship_lifestyle - - desc = { - desc = stewardship_duty_focus_desc - desc = line_break - } - - modifier = { - stewardship = 1 - courtier_and_guest_opinion = 20 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_stewardship_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = just - } - multiply = 5 - } - } - - focus_id = 11 -} - -learning_medicine_focus = { - lifestyle = learning_lifestyle - - desc = { - desc = learning_medicine_focus_desc - desc = line_break - } - - modifier = { - learning = 1 - health = 0.25 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_learning_trigger = yes - } - add = 1989 - } - } - - focus_id = 12 -} - -learning_scholarship_focus = { - lifestyle = learning_lifestyle - - desc = { - desc = learning_scholarship_focus_desc - desc = line_break - } - - modifier = { - learning = 3 - development_growth_factor = 0.15 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_learning_trigger = yes - } - add = 1989 - } - } - - focus_id = 13 -} - -learning_theology_focus = { - lifestyle = learning_lifestyle - - desc = { - desc = learning_theology_focus_desc - desc = line_break - } - - modifier = { - learning = 1 - monthly_piety = 1 - } - - auto_selection_weight = { - value = 11 - if = { - limit = { - has_education_learning_trigger = yes - } - add = 1989 - } - if = { - limit = { - has_trait = zealous - } - multiply = 5 - } - if = { - limit = { - has_trait = cynical - } - multiply = 0 - } - } - - focus_id = 14 -} diff --git a/common/focuses/00_test_focuses.txt b/common/focuses/00_test_focuses.txt deleted file mode 100644 index c99b594ff4..0000000000 --- a/common/focuses/00_test_focuses.txt +++ /dev/null @@ -1,115 +0,0 @@ -#test load -#adult_diplomacy_1 = { -# -# lifestyle = yes -# focus_id = 0 -# -# is_available = { -# diplomacy > 6 -# learning > 6 -# is_landed = no -# } -# -# on_change_to = { -# } -# -# on_change_from = { -# } -# -# modifier = { -# diplomacy = 1 -# learning = 1 -# } -#} -# -# -#adult_diplomacy_2 = { -# -# lifestyle = yes -# focus_id = 1 -# -# is_available = { -# -# is_landed = yes -# } -# -# on_change_to = { -# } -# -# on_change_from = { -# } -# -# modifier = { -# diplomacy = 1 -# learning = 1 -# } -#} -# -#adult_diplomacy_3 = { -# -# lifestyle = yes -# focus_id = 2 -# -# is_available = { -# diplomacy > 6 -# learning > 6 -# is_landed = no -# } -# -# on_change_to = { -# } -# -# on_change_from = { -# } -# -# modifier = { -# diplomacy = 1 -# learning = 1 -# } -#} -# -#adult_diplomacy_4 = { -# -# lifestyle = yes -# focus_id = 3 -# -# is_available = { -# diplomacy > 6 -# learning > 6 -# is_landed = no -# } -# -# on_change_to = { -# } -# -# on_change_from = { -# } -# -# modifier = { -# diplomacy = 1 -# learning = 1 -# } -#} -# -#adult_diplomacy_5 = { -# -# lifestyle = yes -# focus_id = 4 -# -# is_available = { -# diplomacy > 6 -# learning > 6 -# is_landed = no -# } -# -# on_change_to = { -# } -# -# on_change_from = { -# } -# -# modifier = { -# diplomacy = 1 -# learning = 1 -# } -#}# \ No newline at end of file diff --git a/common/focuses/_focuses.info b/common/focuses/_focuses.info deleted file mode 100644 index 22f9c9dbf4..0000000000 --- a/common/focuses/_focuses.info +++ /dev/null @@ -1,15 +0,0 @@ -=== Structure === - -Note: obviously very incomplete... - -my_focus = { - is_valid_showing_failures_only = { ... } # can choose focus; these will be shown only if they fail; scope: character; default: { always = yes } - - is_valid = { ... } # can choose focus; scope: character; default: { always = yes } - - lifestyle = some key # What lifestyle the focus belongs to. Adding this will make it a lifestyle focus - - icon = some_key # What key to use for the icon; if not defined, will use the key of the focus - - auto_selection_weight = {} # Script value for selection weight. Scope is the character. If omitted, default weight is 1000 -} diff --git a/common/game_concepts/00_game_concepts.txt b/common/game_concepts/00_game_concepts.txt index cb7e5dcd0e..396e9f34f9 100644 --- a/common/game_concepts/00_game_concepts.txt +++ b/common/game_concepts/00_game_concepts.txt @@ -482,6 +482,22 @@ available_spouse = { } +vizier = { + alias = { viziers vizierate } + texture = "gfx/interface/icons/scale_of_power.dds" + parent = diarch +} + +vizier_succession_score = { + texture = "gfx/interface/icons/character_interactions/icon_entrench_regency.dds" + parent = vizier +} + +vizier_extravagance = { + alias = { vizier_extravagances vizier_extravagance_extravagance vizier_extravagance_extravagances } + parent = vizier +} + piety = { alias = { piety_i pious } @@ -554,7 +570,13 @@ house = { house_head = { texture = "gfx/interface/icons/message_feed/dynasty.dds" - alias = { house_heads house_head_head } + alias = { house_heads house_head_head house_heads_possessive } +} + +clan_house_head = { + texture = "gfx/interface/icons/message_feed/dynasty.dds" + parent = house_head + alias = { clan_house_heads clan_house_head_head } } house_head_interaction = { @@ -1437,7 +1459,6 @@ accept_culture = { manage_guards = { parent = councillor_task texture = "gfx/interface/icons/council_task_types/task_manage_guards.dds" - #texture = TODO } convince_dejure = { @@ -1704,7 +1725,7 @@ tribal = { } clan = { parent = government - alias = { clan_government } + alias = { clan_government clans } } theocracy = { parent = government @@ -2342,12 +2363,12 @@ domestic_affairs = { bestow_royal_favor = { parent = councillor_task texture = "gfx/interface/icons/council_task_types/task_bestow_royal_favor.dds" - #texture = TODO } convert_county = { parent = councillor_task texture = "gfx/interface/icons/council_task_types/task_conversion.dds" + alias = { convert converted converting } } religious_relations = { @@ -2693,9 +2714,7 @@ court_position = { alias = { court_positions } } -court_position_aptitude = { - alias = { aptitude } -} +aptitude = {} artifact_claim = { parent = artifact @@ -2841,6 +2860,9 @@ ai_economical_unpredictable_personality = { parent = economical_archetype } +dreams = { +} + piety_level_impact = { parent = piety_level } diff --git a/common/game_concepts/01_ep1_game_concepts.txt b/common/game_concepts/01_ep1_game_concepts.txt deleted file mode 100644 index 9a8f27df60..0000000000 --- a/common/game_concepts/01_ep1_game_concepts.txt +++ /dev/null @@ -1,127 +0,0 @@ -royal_court = { - alias = { royal_courts } - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -court_grandeur = { - alias = { court_grandeur_value grandeur } - texture = "gfx/interface/icons/roco_tabs/roco_grandeur.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -court_grandeur_level = { - alias = { court_grandeur_levels grandeur_level grandeur_levels } - texture = "gfx/interface/icons/roco_tabs/roco_grandeur.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -court_grandeur_expectations = { - alias = { grandeur_expectations court_grandeur_expectation } - texture = "gfx/interface/icons/roco_tabs/roco_grandeur.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -court_amenities = { - alias = { amenities court_amenity } - texture = "gfx/interface/icons/roco_tabs/roco_grandeur.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -court_language = { - alias = { court_languages } - parent = language - texture = "gfx/interface/icons/icon_culture.dds" - requires_dlc_flag = royal_court -} - -court_artifact = { - alias = { court_artifacts } - parent = artifact - texture = "gfx/interface/icons/roco_tabs/roco_artifact.dds" - framesize = { 140 140 } - - frame = 2 - requires_dlc_flag = royal_court -} - -hold_court = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = activity - alias = { holding_court } - requires_dlc_flag = royal_court -} - -court_type = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = royal_court - alias = { court_types } - requires_dlc_flag = royal_court -} - -court_type_trait = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = trait - requires_dlc_flag = royal_court -} - -court_event = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = royal_court - alias = { court_events } - requires_dlc_flag = royal_court -} - -petition_liege = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = royal_court - requires_dlc_flag = royal_court -} - -pay_homage = { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - framesize = { 140 140 } - - frame = 2 - parent = royal_court - requires_dlc_flag = royal_court -} - -reforge_artifact = { - texture = "gfx/interface/icons/roco_tabs/roco_artifact.dds" - framesize = { 140 140 } - - frame = 2 - alias = { reforge } - requires_dlc_flag = royal_court -} diff --git a/common/game_concepts/01_fp1_game_concepts.txt b/common/game_concepts/01_fp1_game_concepts.txt deleted file mode 100644 index 18f5b18499..0000000000 --- a/common/game_concepts/01_fp1_game_concepts.txt +++ /dev/null @@ -1,16 +0,0 @@ -designate_chief_sacrifice = { - alias = { designate_chief_sacrifice_article designate_chief_sacrifice_chief_sacrifice } - requires_dlc_flag = the_northern_lords -} - -varangian_adventure = { - texture = "gfx/interface/icons/casus_bellis/fp1_varangian_adventurer_conquest.dds" - alias = { varangian_adventures varangian_adventuring varangian_adventure_adventure } - requires_dlc_flag = the_northern_lords -} - -trial_by_combat = { - texture = "gfx/interface/icons/character_interactions/icon_combat.dds" - alias = { trials_by_combat trial_by_combat_trial trial_by_combat_combat } - requires_dlc_flag = the_northern_lords -} diff --git a/common/game_rules/00_game_rules.txt b/common/game_rules/00_game_rules.txt index e47fa33df9..e689e4a8d7 100644 --- a/common/game_rules/00_game_rules.txt +++ b/common/game_rules/00_game_rules.txt @@ -317,7 +317,7 @@ random_harm_target = { difficulty health } - default = harm_target_all + default = harm_target_ai_only harm_target_all = {} diff --git a/common/genes/03_genes_special_accessories_hairstyles.txt b/common/genes/03_genes_special_accessories_hairstyles.txt index 5b51884ad8..f135911427 100644 --- a/common/genes/03_genes_special_accessories_hairstyles.txt +++ b/common/genes/03_genes_special_accessories_hairstyles.txt @@ -63,6 +63,12 @@ special_genes = { 1 = male_hair_fp2_iberian_christian_01 1 = male_hair_fp2_iberian_christian_02 1 = male_hair_fp2_iberian_christian_03 + 1 = m_hair_fp3_iranian_01 + 1 = m_hair_fp3_iranian_01_common + 1 = m_hair_fp3_iranian_02 + 1 = m_hair_fp3_iranian_02_common + 1 = m_hair_fp3_iranian_03 + 1 = m_hair_fp3_iranian_03_common 1 = m_hair_ep2_western_01 1 = m_hair_ep2_western_02 } @@ -111,9 +117,14 @@ special_genes = { 1 = female_hair_fp2_iberian_christian_01 1 = female_hair_fp2_iberian_christian_02 1 = female_hair_fp2_iberian_christian_03 + 1 = f_hair_fp3_iranian_01 #Medium Curls with earring + 1 = f_hair_fp3_iranian_01_common #Medium Curls + 1 = f_hair_fp3_iranian_02 #Long Split with earrings + 1 = f_hair_fp3_iranian_02_common #Long Split + 1 = f_hair_fp3_iranian_03 #Medium buns with earrings + 1 = f_hair_fp3_iranian_03_common #Medium buns 1 = f_hair_ep2_western_01 1 = f_hair_ep2_western_02 - } boy = male girl = female @@ -1754,6 +1765,169 @@ special_genes = { boy = male girl = female } + + #iranian + fp3_hairstyles_iranian_straight = { + index = 77 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_02 #Long split strands with earrings + 2 = f_hair_fp3_iranian_03 #Medium buns with earrings + + } + boy = male + girl = female + } + + + fp3_hairstyles_iranian_wavy = { + index = 78 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_01 #Medium wavy with earrings + 2 = f_hair_fp3_iranian_03 #Medium buns with earrings + + } + boy = male + girl = female + } + + fp3_hairstyles_iranian_straight_common = { + index = 79 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_02_common #Long split strands with earrings + 2 = f_hair_fp3_iranian_03_common #Medium buns + + } + boy = male + girl = female + } + + + fp3_hairstyles_iranian_wavy_common = { + index = 80 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_01 #Medium wavy with earrings + 2 = f_hair_fp3_iranian_03_common #Medium buns + + } + boy = male + girl = female + } + + #turkic + fp3_hairstyles_turkic_straight = { + index = 81 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_02 #Seljuk Braids + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_02 #Long split strands with earring + 2 = f_hair_fp3_iranian_03 #Medium buns with earrings + + } + boy = male + girl = female + } + + fp3_hairstyles_turkic_wavy = { + index = 82 + male = { + 2 = m_hair_fp3_iranian_02 #Seljuk Braids + 1 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_01 #Medium wavy with earrings + 2 = f_hair_fp3_iranian_03 #Medium buns with earrings + + } + boy = male + girl = female + } + + fp3_hairstyles_turkic_straight_common = { + index = 83 + male = { + 1 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_02 #Seljuk Braids + + } + + female = { + 2 = f_hair_fp3_iranian_02_common #Long split strands with earrings + 2 = f_hair_fp3_iranian_03_common #Medium buns + + } + boy = male + girl = female + } + + + fp3_hairstyles_turkic_wavy_common = { + index = 84 + male = { + 2 = m_hair_fp3_iranian_01 #Long split strands + 2 = m_hair_fp3_iranian_02 #Seljuk Braids + 2 = m_hair_fp3_iranian_03 #Medium wavy ends + + } + + female = { + 2 = f_hair_fp3_iranian_01_common #Medium wavy with earrings + 2 = f_hair_fp3_iranian_03_common #Medium + } + boy = male + girl = female + } + + scripted_character_hairstyles_05 = { + index = 85 + male = { + 1 = m_hair_fp3_iranian_01 + 1 = m_hair_fp3_iranian_02 + 1 = m_hair_fp3_iranian_03 + + } + female = { + 1 = f_hair_fp3_iranian_01 + 1 = f_hair_fp3_iranian_02 + 1 = f_hair_fp3_iranian_03 + 1 = f_hair_fp3_iranian_01_common + 1 = f_hair_fp3_iranian_02_common + 1 = f_hair_fp3_iranian_03_common + } + + boy = male + girl = female + } } } diff --git a/common/genes/04_genes_special_accessories_beards.txt b/common/genes/04_genes_special_accessories_beards.txt index 80cbb63056..e1bbc79afd 100644 --- a/common/genes/04_genes_special_accessories_beards.txt +++ b/common/genes/04_genes_special_accessories_beards.txt @@ -5,13 +5,13 @@ special_genes = { accessory_genes = { - ##################################### - # # - # BEARDS # - # # - ##################################### + ##################################### + # # + # BEARDS # + # # + ##################################### + - beards = { group = beard @@ -24,7 +24,7 @@ special_genes = { female = { 1 = empty } - } + } all_beards = { index = 1 @@ -53,7 +53,7 @@ special_genes = { 1 = male_beard_steppe_02 1 = male_beard_sub_saharan_01 1 = male_beard_sub_saharan_02 - 1 = male_beard_sub_saharan_03 + 1 = male_beard_sub_saharan_03 1 = male_beard_indian_01 1 = male_beard_indian_02 1 = male_beard_indian_03 @@ -69,6 +69,9 @@ special_genes = { 1 = male_beard_fp2_iberian_muslim_01 # Thick Groomed Beard 1 = male_beard_fp2_iberian_muslim_02 # Scholar's beard 1 = male_beard_fp2_iberian_muslim_03 # Forked beard + 1 = m_beard_fp3_iranian_01 + 1 = m_beard_fp3_iranian_02 + 1 = m_beard_fp3_iranian_03 1 = m_beard_ep2_western_01 1 = m_beard_ep2_western_02 1 = m_beard_ep2_western_03 @@ -77,7 +80,7 @@ special_genes = { female = { 1 = empty } - } + } legacy_dna_beards = { index = 100 @@ -106,7 +109,7 @@ special_genes = { 1 = male_beard_steppe_02 1 = male_beard_sub_saharan_01 1 = male_beard_sub_saharan_02 - 1 = male_beard_sub_saharan_03 + 1 = male_beard_sub_saharan_03 1 = male_beard_indian_01 1 = male_beard_indian_02 1 = male_beard_indian_03 @@ -114,7 +117,7 @@ special_genes = { female = { 1 = empty } - } + } western_beards_straight = { index = 2 @@ -138,7 +141,7 @@ special_genes = { female = { 1 = empty } - } + } western_beards_curly = { index = 3 @@ -158,7 +161,7 @@ special_genes = { female = { 1 = empty } - } + } mena_beards_straight = { index = 4 @@ -171,13 +174,13 @@ special_genes = { # 5 = male_beard_western_04 # 20 = male_beard_mena_01 20 = male_beard_mena_02 # Big with small mustache - 20 = male_beard_mena_03 # Big chin strap + 20 = male_beard_mena_03 # Big chin strap 20 = male_beard_mena_04 # Short stylish } female = { 1 = empty } - } + } mena_beards_curly = { index = 5 @@ -187,13 +190,13 @@ special_genes = { 5 = male_beard_western_03 # Short beard 20 = male_beard_mena_01 # Very curly medium length full beard 20 = male_beard_mena_02 # Big with small mustache - 20 = male_beard_mena_03 # Big chin strap - + 20 = male_beard_mena_03 # Big chin strap + } female = { 1 = empty } - } + } northern_beards_straight = { @@ -247,14 +250,14 @@ special_genes = { #10 = male_beard_steppe_01_wc # Straight Pointy Goatee #10 = male_beard_steppe_02 # long at chin with mustache - + 5 = male_beard_western_01 # Standard full beard 5 = male_beard_western_02 # Standard goatee 5 = male_beard_western_03 # Short beard 5 = male_beard_western_04 # Short goatee 5 = male_beard_western_07 5 = male_beard_indian_02 # Indian pointy - + } female = { 1 = empty @@ -269,7 +272,7 @@ special_genes = { 5 = male_beard_mena_01 # Very curly medium length full beard 15 = male_beard_mena_04 # Short stylish 5 = male_beard_western_04 # Short goatee - + } female = { 1 = empty @@ -283,8 +286,8 @@ special_genes = { # 30 = empty 20 = male_beard_sub_saharan_01 # Full african beard medium 20 = male_beard_sub_saharan_02 # Stylish african goatee - 10 = male_beard_sub_saharan_03 # Full african beard long - + 10 = male_beard_sub_saharan_03 # Full african beard long + } female = { 1 = empty @@ -299,7 +302,7 @@ special_genes = { 20 = male_beard_indian_01 # Handlebar mustache 10 = male_beard_indian_02 # Indian pointy 10 = male_beard_indian_03 # Big messy straight beard - + } female = { 1 = empty @@ -315,7 +318,7 @@ special_genes = { 10 = male_beard_indian_02 # Indian pointy 20 = male_beard_mena_01 # Very curly medium length full beard 10 = male_beard_mena_02 # Big with small mustache - + } female = { 1 = empty @@ -343,8 +346,8 @@ special_genes = { 5 = male_beard_fp1_03 # Wavy pointy beard 5 = male_beard_fp1_04 # Huge braid 5 = male_beard_fp1_05 # Long narrow wavy - - + + } female = { 1 = empty @@ -356,9 +359,9 @@ special_genes = { male = { # 10 = empty - 5 = male_beard_fp1_03 # Wavy pointy beard - 5 = male_beard_fp1_05 # Long narrow wavy - + 5 = male_beard_fp1_03 # Wavy pointy beard + 5 = male_beard_fp1_05 # Long narrow wavy + } female = { 1 = empty @@ -375,7 +378,7 @@ special_genes = { 5 = male_beard_fp2_iberian_christian_03 # Caballero's beard 5 = male_beard_fp2_iberian_christian_04 # Droopy moustache 5 = male_beard_fp2_iberian_muslim_01 # Thick Groomed Beard - 5 = male_beard_fp2_iberian_muslim_02 # Scholar's beard + 5 = male_beard_fp2_iberian_muslim_02 # Scholar's beard } female = { @@ -451,7 +454,7 @@ special_genes = { 1 = male_beard_steppe_02 1 = male_beard_sub_saharan_01 1 = male_beard_sub_saharan_02 - 1 = male_beard_sub_saharan_03 + 1 = male_beard_sub_saharan_03 1 = male_beard_indian_01 1 = male_beard_indian_02 1 = male_beard_indian_03 @@ -459,7 +462,7 @@ special_genes = { 1 = male_beard_fp1_02 1 = male_beard_fp1_03 1 = male_beard_fp1_04 - 1 = male_beard_fp1_05 + 1 = male_beard_fp1_05 } female = { 1 = empty @@ -477,7 +480,7 @@ special_genes = { 10 = male_beard_steppe_01_wc # Straight Pointy Goatee 10 = male_beard_steppe_02 # long at chin with mustache - + } female = { 1 = empty @@ -532,9 +535,72 @@ special_genes = { } } + #FP3 + #iranian + fp3_iranian_beards_straight = { + index = 25 + + male = { + 5 = m_beard_fp3_iranian_01 # Medium beard with bun + 2 = m_beard_fp3_iranian_03 # Babylonian beard + 1 = male_beard_indian_01 #Handlebar Moustache + } + female = { + 1 = empty + } + } + + fp3_iranian_beards_curly = { + index = 26 + + male = { + 5 = m_beard_fp3_iranian_02 # Long pointy beard + 2 = m_beard_fp3_iranian_03 # Babylonian beard + 1 = male_beard_indian_01 #Handlebar Moustache + } + female = { + 1 = empty + } + } + + #turkic + fp3_turkic_beards_straight = { + index = 27 + + male = { + 5 = m_beard_fp3_iranian_02 # Long pointy beard + } + female = { + 1 = empty + } + } + + fp3_turkic_beards_curly = { + index = 28 + + male = { + 5 = m_beard_fp3_iranian_02 # Long pointy beard + } + female = { + 1 = empty + } + } + + scripted_character_beards_04 = { + index = 29 + male = { + 1 = m_beard_fp3_iranian_01 # Medium beard with bun + 1 = m_beard_fp3_iranian_02 # Long pointy beard + 1 = m_beard_fp3_iranian_03 # Babylonian beard + } + female = { + 1 = empty + } + } + # Warcraft high_elven_straight_beards = { - index = 25 + index = 30 male = { 2 = male_beard_western_02 # Standard goatee @@ -545,7 +611,7 @@ special_genes = { } } high_elven_curly_beards = { - index = 26 + index = 31 male = { 2 = male_beard_western_02 # Standard goatee @@ -558,7 +624,7 @@ special_genes = { # Warcraft night_elven_straight_beards = { - index = 27 + index = 32 male = { 3 = male_beard_western_01 # Standard full beard @@ -585,7 +651,7 @@ special_genes = { } } night_elven_curly_beards = { - index = 28 + index = 33 male = { 3 = male_beard_western_01 # Standard full beard @@ -606,7 +672,7 @@ special_genes = { # Warcraft orcish_straight_beards = { - index = 29 + index = 34 male = { 10 = male_beard_western_07 # Chin strap @@ -624,7 +690,7 @@ special_genes = { } } orcish_curly_beards = { - index = 30 + index = 35 male = { 20 = male_beard_mena_03 # Big chin strap @@ -636,7 +702,7 @@ special_genes = { # Warcraft gnomish_straight_beards = { - index = 31 + index = 36 male = { 5 = male_beard_western_05 # Mustache @@ -656,7 +722,7 @@ special_genes = { } } gnomish_curly_beards = { - index = 32 + index = 37 male = { 5 = male_beard_western_05 # Mustache @@ -675,7 +741,7 @@ special_genes = { # Warcraft dwarven_straight_beards = { - index = 33 + index = 38 male = { 2 = male_beard_western_01 # Standard full beard @@ -704,7 +770,7 @@ special_genes = { } } dwarven_curly_beards = { - index = 34 + index = 39 male = { 2 = male_beard_western_01 # Standard full beard @@ -727,7 +793,7 @@ special_genes = { # Warcraft draenei_straight_beards = { - index = 35 + index = 40 male = { 1 = male_beard_western_01 # Standard full beard @@ -741,7 +807,7 @@ special_genes = { } } draenei_curly_beards = { - index = 36 + index = 41 male = { 1 = male_beard_mena_01 # Very curly medium length full beard @@ -755,7 +821,7 @@ special_genes = { # Warcraft succubus_straight_beards = { - index = 37 + index = 42 male = { 1 = male_beard_western_10 # "Chin Goatee" @@ -766,7 +832,7 @@ special_genes = { } } succubus_curly_beards = { - index = 38 + index = 43 male = { 1 = male_beard_western_10 # "Chin Goatee" @@ -779,7 +845,7 @@ special_genes = { # Warcraft uther_beard = { - index = 39 + index = 44 male = { 1 = male_beard_western_09_wc @@ -791,7 +857,7 @@ special_genes = { # Warcraft wc_scripted_character_beards = { # THIS TEMPLATE SHOULD NOT BE CHANGED IN ANY WAY! If new beards are added for scripted characters they should be added in a new template. - index = 40 + index = 45 male = { 1 = male_beard_steppe_01_wc 1 = male_beard_human_01 # Mustache with Goatee @@ -803,7 +869,7 @@ special_genes = { # Warcraft pygmy_straight_beards = { - index = 41 + index = 46 male = { 10 = male_beard_steppe_01 # Straight Pointy Beard @@ -821,7 +887,7 @@ special_genes = { } } pygmy_curly_beards = { - index = 42 + index = 47 male = { 10 = male_beard_steppe_01 # Straight Pointy Beard diff --git a/common/genes/05_genes_special_accessories_clothes.txt b/common/genes/05_genes_special_accessories_clothes.txt index c8f2e402bc..a63af498c2 100644 --- a/common/genes/05_genes_special_accessories_clothes.txt +++ b/common/genes/05_genes_special_accessories_clothes.txt @@ -24,7 +24,7 @@ special_genes = { 1 = male_clothes_secular_western_nobility_02_common 1 = male_clothes_secular_western_nobility_03_high 1 = male_clothes_secular_western_nobility_03_low - 1 = male_clothes_secular_western_nobility_03_common + 1 = male_clothes_secular_western_nobility_03_common 1 = male_clothes_secular_dde_hre_nobility_01_common 1 = male_clothes_secular_dde_hre_nobility_01_low 1 = male_clothes_secular_dde_hre_nobility_01_high @@ -131,7 +131,13 @@ special_genes = { 1 = m_clothes_sec_fp2_iberian_muslim_war_nob_01_hi 1 = m_clothes_sec_fp2_iberian_christian_war_nob_01_lo 1 = m_clothes_sec_fp2_iberian_christian_war_nob_01_hi - + 1 = m_clothes_sec_fp3_iranian_nob_01_lo + 1 = m_clothes_sec_fp3_iranian_nob_02_lo + 1 = m_clothes_sec_fp3_iranian_nob_03_lo + 1 = m_clothes_sec_fp3_iranian_nob_01_hi + 1 = m_clothes_sec_fp3_iranian_nob_02_hi + 1 = m_clothes_sec_fp3_iranian_nob_03_hi + 1 = m_clothes_sec_fp3_iranian_war_nob_01 # EP2 # 1 = m_clothes_sec_ep2_western_era1_nob_01_lo 1 = m_clothes_sec_ep2_western_era1_nob_01_hi @@ -255,6 +261,13 @@ special_genes = { 1 = f_clothes_sec_fp2_iberian_muslim_war_nob_01_hi 1 = f_clothes_sec_fp2_iberian_christian_war_nob_01_lo 1 = f_clothes_sec_fp2_iberian_christian_war_nob_01_hi + 1 = f_clothes_sec_fp3_iranian_nob_01_lo + 1 = f_clothes_sec_fp3_iranian_nob_02_lo + 1 = f_clothes_sec_fp3_iranian_nob_03_lo + 1 = f_clothes_sec_fp3_iranian_nob_01_hi + 1 = f_clothes_sec_fp3_iranian_nob_02_hi + 1 = f_clothes_sec_fp3_iranian_nob_03_hi + 1 = f_clothes_sec_fp3_iranian_war_nob_01 # EP2 # 1 = f_clothes_sec_ep2_western_era1_nob_01 @@ -1510,7 +1523,7 @@ special_genes = { girl = female } - ## FP1 - Fury of thee Northmen ## + ## FP1 - Fury of the Northmen ## fp1_commoner_clothes = { @@ -2666,7 +2679,6 @@ special_genes = { } - ep2_religious_muslim_hajj_clothes = { index = 143 @@ -2746,7 +2758,6 @@ special_genes = { boy = male girl = female - } ep2_steppe_war_nobility_clothes = { @@ -2808,6 +2819,62 @@ special_genes = { girl = female } + + ## FP3 - Sands of Time ## + + fp3_iranian_low_nobility_clothes = { + index = 151 + + male = { + 1 = m_clothes_sec_fp3_iranian_nob_01_lo + 1 = m_clothes_sec_fp3_iranian_nob_02_lo + 1 = m_clothes_sec_fp3_iranian_nob_03_lo + } + + female = { + 1 = f_clothes_sec_fp3_iranian_nob_01_lo + 1 = f_clothes_sec_fp3_iranian_nob_02_lo + 1 = f_clothes_sec_fp3_iranian_nob_03_lo + } + + boy = male + girl = female + + } + + fp3_iranian_high_nobility_clothes = { + index = 152 + + male = { + 1 = m_clothes_sec_fp3_iranian_nob_01_hi + 1 = m_clothes_sec_fp3_iranian_nob_02_hi + 1 = m_clothes_sec_fp3_iranian_nob_03_hi + } + + female = { + 1 = f_clothes_sec_fp3_iranian_nob_01_hi + 1 = f_clothes_sec_fp3_iranian_nob_02_hi + 1 = f_clothes_sec_fp3_iranian_nob_03_hi + } + + boy = male + girl = female + } + + fp3_iranian_war_nobility_clothes = { + index = 153 + + male = { + 1 = m_clothes_sec_fp3_iranian_war_nob_01 + } + + female = { + 1 = f_clothes_sec_fp3_iranian_war_nob_01 + } + + boy = male + girl = female + } } } } diff --git a/common/genes/06_genes_special_accessories_headgear.txt b/common/genes/06_genes_special_accessories_headgear.txt index 3dd993db91..fa081b7215 100644 --- a/common/genes/06_genes_special_accessories_headgear.txt +++ b/common/genes/06_genes_special_accessories_headgear.txt @@ -3,13 +3,13 @@ special_genes = { accessory_genes = { - ##################################### - # # - # HEADGEAR # - # # - ##################################### + ##################################### + # # + # HEADGEAR # + # # + ##################################### + - headgear = { no_headgear = { @@ -73,7 +73,7 @@ special_genes = { 1 = male_headgear_secular_indian_war_nobility_01 1 = male_headgear_secular_crusades_western_war_nobility_01 1 = male_headgear_secular_crusades_mena_war_nobility_01 - # RELIGIOUS # + # RELIGIOUS # 1 = male_headgear_religious_zorastrian_high_01 1 = male_headgear_religious_jewish_head_01 1 = male_headgear_religious_muslim_high_01 @@ -81,7 +81,7 @@ special_genes = { 1 = male_headgear_religious_african_high_01 1 = male_headgear_religious_steppe_high_01 1 = male_headgear_religious_northern_high_01 - # FP1 # + # FP1 # 1 = male_headgear_secular_fp1_common_01 1 = male_headgear_secular_fp1_common_02 1 = male_headgear_secular_fp1_nobility_01 @@ -90,7 +90,7 @@ special_genes = { 1 = male_headgear_secular_fp1_royalty_01 1 = male_headgear_secular_fp1_imperial_01 1 = male_headgear_secular_rtt_nobility_01_low - # EP1 # + # EP1 # 1 = male_headgear_secular_ep1_western_royalty_01 1 = male_headgear_secular_ep1_mena_royalty_01 1 = male_headgear_secular_ep1_indian_royalty_01 @@ -104,8 +104,8 @@ special_genes = { 1 = male_headgear_secular_ep1_diamond_crown 1 = male_headgear_secular_ep1_crown_of_justinian 1 = male_headgear_secular_ep1_crown_of_lombardy - # FP2 # - # Christian # + # FP2 # + # Christian # 3 = male_headgear_secular_fp2_iberian_christian_common_01 3 = male_headgear_secular_fp2_iberian_christian_nobility_01_low 3 = male_headgear_secular_fp2_iberian_christian_nobility_01_high @@ -114,7 +114,7 @@ special_genes = { 3 = male_headgear_secular_fp2_iberian_christian_royalty_01 3 = m_headgear_sec_fp2_iberian_christian_war_nob_01_lo 3 = m_headgear_sec_fp2_iberian_christian_war_nob_01_hi - # Muslim # + # Muslim # 3 = male_headgear_secular_fp2_iberian_muslim_common_01_low 3 = male_headgear_secular_fp2_iberian_muslim_common_01_high 3 = male_headgear_secular_fp2_iberian_muslim_nobility_01 @@ -122,8 +122,7 @@ special_genes = { 3 = male_headgear_secular_fp2_iberian_muslim_royalty_01 3 = m_headgear_sec_fp2_iberian_muslim_war_nob_01_lo 3 = m_headgear_sec_fp2_iberian_muslim_war_nob_01_hi - - # EP2 # + # EP2 # 1 = m_headgear_sec_ep2_western_era1_war_nob_01 1 = m_headgear_sec_ep2_western_era2_war_nob_01 1 = m_headgear_sec_ep2_western_era1_nob_01 @@ -138,6 +137,12 @@ special_genes = { 1 = m_headgear_sec_ep2_western_era1_com_01 1 = m_headgear_sec_ep2_western_era1_roy_01 1 = m_headgear_sec_ep2_western_era1_imp_01 + # FP3 # + 3 = m_headgear_sec_fp3_iranian_imp_01 + 3 = m_headgear_sec_fp3_iranian_roy_01 + 3 = m_headgear_sec_fp3_iranian_war_nob_01 + 3 = m_headgear_sec_fp3_iranian_nob_01 + 3 = m_headgear_sec_fp3_iranian_nob_02 } female = { @@ -169,7 +174,7 @@ special_genes = { 1 = female_headgear_secular_byzantine_high_nobility_01 1 = female_headgear_secular_byzantine_nobility_01 5 = female_headgear_secular_byzantine_common_01 - 1 = female_headgear_secular_byzantine_imperial_01 + 1 = female_headgear_secular_byzantine_imperial_01 1 = female_headgear_secular_byzantine_war_nobility_01 1 = female_headgear_secular_byzantine_royalty_01 1 = female_headgear_secular_steppe_high_nobility_01 @@ -193,13 +198,13 @@ special_genes = { 1 = female_headgear_secular_fp1_common_02 1 = female_headgear_secular_fp1_nobility_01 1 = female_headgear_secular_fp1_nobility_02 - 1 = female_headgear_secular_fp1_nobility_03 - 1 = female_headgear_secular_fp1_war_nobility_01 - 1 = female_headgear_secular_fp1_war_nobility_02 - 1 = female_headgear_secular_fp1_royalty_01 - 1 = female_headgear_secular_fp1_imperial_01 + 1 = female_headgear_secular_fp1_nobility_03 + 1 = female_headgear_secular_fp1_war_nobility_01 + 1 = female_headgear_secular_fp1_war_nobility_02 + 1 = female_headgear_secular_fp1_royalty_01 + 1 = female_headgear_secular_fp1_imperial_01 1 = female_headgear_secular_rtt_nobility_01_low - # EP1 # + # EP1 # 1 = female_headgear_secular_ep1_western_royalty_01 1 = female_headgear_secular_ep1_western_royalty_01 1 = female_headgear_secular_ep1_mena_royalty_01 @@ -214,8 +219,8 @@ special_genes = { 1 = female_headgear_secular_ep1_diamond_crown 1 = female_headgear_secular_ep1_crown_of_justinian 1 = female_headgear_secular_ep1_crown_of_lombardy - # FP2 # - # Christian # + # FP2 # + # Christian # 3 = female_headgear_secular_fp2_iberian_christian_common_01 3 = female_headgear_secular_fp2_iberian_christian_nobility_01_low 3 = female_headgear_secular_fp2_iberian_christian_nobility_01_high @@ -223,7 +228,7 @@ special_genes = { 3 = female_headgear_secular_fp2_iberian_christian_royalty_01 3 = f_headgear_sec_fp2_iberian_christian_war_nob_01_lo 3 = f_headgear_sec_fp2_iberian_christian_war_nob_01_hi - # Muslim # + # Muslim # 3 = female_headgear_secular_fp2_iberian_muslim_common_01 3 = female_headgear_secular_fp2_iberian_muslim_nobility_01 3 = female_headgear_secular_fp2_iberian_muslim_high_nobility_01_low @@ -232,7 +237,7 @@ special_genes = { 3 = f_headgear_sec_fp2_iberian_muslim_war_nob_01_lo 3 = f_headgear_sec_fp2_iberian_muslim_war_nob_01_hi - # EP2 # + # EP2 # 1 = f_headgear_sec_ep2_western_era1_com_01 1 = f_headgear_sec_ep2_western_era1_com_02 1 = f_headgear_sec_ep2_western_era1_nob_01 @@ -248,6 +253,12 @@ special_genes = { 1 = f_headgear_sec_ep2_mena_war_nob_01 1 = f_headgear_sec_ep2_byzantine_war_nob_01 1 = f_headgear_sec_ep2_indian_war_nob_01 + # FP3 # + 3 = f_headgear_sec_fp3_iranian_imp_01 + 3 = f_headgear_sec_fp3_iranian_roy_01 + 3 = f_headgear_sec_fp3_iranian_war_nob_01 + 3 = f_headgear_sec_fp3_iranian_nob_01 + 3 = f_headgear_sec_fp3_iranian_nob_02 } boy = male @@ -321,11 +332,11 @@ special_genes = { index = 6 male = { 1 = male_headgear_secular_dde_hre_imperial_01 - + } female = { 1 = female_headgear_secular_western_royalty_01 - 1 = female_headgear_secular_western_royalty_02 + 1 = female_headgear_secular_western_royalty_02 } boy = male girl = female @@ -335,11 +346,11 @@ special_genes = { index = 7 male = { 1 = m_headgear_sec_western_war_nob_01 - + } female = { 1 = f_headgear_sec_western_war_nob_01 - + } boy = male girl = female @@ -348,12 +359,12 @@ special_genes = { western_stealth = { index = 8 male = { - 1 = male_clothes_situational_western_stealth_hood_01 + 1 = male_clothes_situational_western_stealth_hood_01 } female = { 1 = female_clothes_situational_western_stealth_hood_01 - + } boy = male girl = female @@ -378,7 +389,7 @@ special_genes = { 5 = empty 10 = male_headgear_secular_mena_common_01 10 = male_headgear_secular_mena_nobility_01 - + } female = { 15 = empty @@ -388,7 +399,7 @@ special_genes = { } boy = male girl = female - } + } mena_high_nobility = { index = 11 @@ -396,7 +407,7 @@ special_genes = { 0 = empty 5 = male_headgear_secular_mena_high_nobility_01 5 = male_headgear_religious_dde_muslim_head_01 - + } female = { 0 = empty @@ -404,7 +415,7 @@ special_genes = { } boy = male girl = female - } + } mena_common = { index = 12 @@ -412,14 +423,14 @@ special_genes = { 5 = empty 10 = male_headgear_secular_mena_common_01 10 = male_headgear_secular_dde_abbasid_common_02 - + } female = { 10 = empty 5 = female_headgear_secular_mena_common_01 5 = female_headgear_secular_mena_common_02 5 = female_headgear_secular_dde_abbasid_common_01 - + } boy = male girl = female @@ -429,11 +440,11 @@ special_genes = { index = 13 male = { 1 = male_headgear_secular_mena_imperial_01 - + } female = { 1 = female_headgear_secular_mena_royalty_01 - + } boy = male girl = female @@ -446,7 +457,7 @@ special_genes = { 1 = m_headgear_sec_crusades_mena_war_nob_01_lo 1 = m_headgear_sec_mena_war_nob_01_hi 1 = m_headgear_sec_crusades_mena_war_nob_01_hi - + } female = { 1 = f_headgear_sec_mena_war_nob_01_lo @@ -462,11 +473,11 @@ special_genes = { index = 15 male = { 1 = male_headgear_secular_mena_royalty_01 - + } female = { 1 = female_headgear_secular_mena_royalty_01 - + } boy = male girl = female @@ -476,11 +487,11 @@ special_genes = { index = 16 male = { 1 = male_clothes_situational_mena_stealth_hood_01 - + } female = { 1 = female_clothes_situational_mena_stealth_hood_01 - + } boy = male girl = female @@ -562,7 +573,7 @@ special_genes = { } boy = male girl = female - } + } dde_hre_common = { index = 23 @@ -582,11 +593,11 @@ special_genes = { index = 24 male = { 1 = male_headgear_secular_western_imperial_01 - + } female = { 1 = female_headgear_secular_dde_hre_royalty_01 - + } boy = male girl = female @@ -598,13 +609,13 @@ special_genes = { 1 = m_headgear_sec_dde_hre_war_nob_01_lo 1 = m_headgear_sec_dde_hre_war_nob_01_hi 1 = m_headgear_sec_dde_hre_war_nob_01_roy - + } female = { 1 = f_headgear_sec_dde_hre_war_nob_01_lo 1 = f_headgear_sec_dde_hre_war_nob_01_hi 1 = f_headgear_sec_dde_hre_war_nob_01_roy - + } boy = male girl = female @@ -615,11 +626,11 @@ special_genes = { male = { # 1 = male_headgear_secular_dde_hre_royalty_01 1 = male_headgear_secular_dde_hre_royalty_02 - + } female = { 1 = female_headgear_secular_dde_hre_royalty_01 - + } boy = male girl = female @@ -638,7 +649,7 @@ special_genes = { } boy = male girl = female - } + } dde_abbasid_common = { index = 28 @@ -658,10 +669,10 @@ special_genes = { index = 29 male = { 1 = male_headgear_secular_dde_abbasid_imperial_01 - + } female = { - # 1 = female_headgear_secular_dde_abbasid_nobility_01 + # 1 = female_headgear_secular_dde_abbasid_nobility_01 } boy = male girl = female @@ -672,12 +683,12 @@ special_genes = { male = { 1 = m_headgear_sec_dde_abbasid_war_nob_01_lo 1 = m_headgear_sec_dde_abbasid_war_nob_01_hi - + } female = { 1 = f_headgear_sec_dde_abbasid_war_nob_01_lo 1 = f_headgear_sec_dde_abbasid_war_nob_01_hi - + } boy = male girl = female @@ -688,11 +699,11 @@ special_genes = { male = { 1 = male_headgear_secular_dde_abbasid_royalty_01 - + } female = { 1 = female_headgear_secular_dde_abbasid_royalty_01 - + } boy = male girl = female @@ -704,28 +715,28 @@ special_genes = { male = { 1 = m_headgear_sec_northern_war_nob_01_lo 1 = m_headgear_sec_northern_war_nob_01_hi - - } + + } female = { 1 = f_headgear_sec_northern_war_nob_01_lo 1 = f_headgear_sec_northern_war_nob_01_hi - + } boy = male girl = female } - + northern_common = { index = 33 male = { 1 = empty 1 = male_headgear_secular_northern_common_01 - + } female = { 10 = empty 2 = female_headgear_secular_northern_common_01 - + } boy = male girl = female @@ -762,16 +773,16 @@ special_genes = { index = 36 male = { 5 = male_headgear_secular_byzantine_high_nobility_01 - + } female = { 5 = female_headgear_secular_byzantine_high_nobility_01 } boy = male girl = female - } + } - byzantine_nobility = { + byzantine_nobility = { index = 37 male = { 5 = empty @@ -783,7 +794,7 @@ special_genes = { } boy = male girl = female - } + } byzantine_common = { index = 38 @@ -803,10 +814,10 @@ special_genes = { index = 39 male = { 1 = male_headgear_secular_byzantine_imperial_01 - + } female = { - 1 = female_headgear_secular_byzantine_imperial_01 + 1 = female_headgear_secular_byzantine_imperial_01 } boy = male girl = female @@ -818,13 +829,13 @@ special_genes = { 1 = m_headgear_sec_byzantine_war_nob_01_lo 1 = m_headgear_sec_byzantine_war_nob_01_hi 1 = m_headgear_sec_byzantine_war_nob_01_roy - + } female = { 1 = f_headgear_sec_byzantine_war_nob_01_lo 1 = f_headgear_sec_byzantine_war_nob_01_hi 1 = f_headgear_sec_byzantine_war_nob_01_roy - + } boy = male girl = female @@ -834,11 +845,11 @@ special_genes = { index = 41 male = { 1 = male_headgear_secular_byzantine_royalty_01 - + } female = { 5 = female_headgear_secular_byzantine_royalty_01 - + } boy = male girl = female @@ -848,14 +859,14 @@ special_genes = { index = 42 male = { 5 = male_headgear_secular_steppe_nobility_01 - + } female = { 5 = female_headgear_secular_steppe_high_nobility_01 } boy = male girl = female - } + } steppe_nobility = { index = 43 @@ -869,14 +880,14 @@ special_genes = { } boy = male girl = female - } + } steppe_common = { index = 44 male = { 5 = empty 5 = male_headgear_secular_steppe_common_01 - + } female = { 5 = empty @@ -890,11 +901,11 @@ special_genes = { index = 45 male = { 5 = male_headgear_secular_steppe_royalty_01 - + } female = { 5 = female_headgear_secular_steppe_high_nobility_01 - + } boy = male girl = female @@ -905,12 +916,12 @@ special_genes = { male = { 1 = m_headgear_sec_steppe_war_nob_01_lo 1 = m_headgear_sec_steppe_war_nob_01_hi - + } female = { 1 = f_headgear_sec_steppe_war_nob_01_lo 1 = f_headgear_sec_steppe_war_nob_01_hi - + } boy = male girl = female @@ -926,14 +937,14 @@ special_genes = { } boy = male girl = female - } + } sub_saharan_common = { index = 48 male = { 5 = empty 5 = male_headgear_secular_sub_saharan_common_01 - + } female = { 5 = empty @@ -949,11 +960,11 @@ special_genes = { index = 49 male = { 1 = male_headgear_secular_sub_saharan_royalty_01 - + } female = { 1 = female_headgear_secular_mena_royalty_01 - + } boy = male girl = female @@ -963,11 +974,11 @@ special_genes = { index = 50 male = { 1 = male_headgear_secular_sub_saharan_imperial_01 - + } female = { 1 = female_headgear_secular_mena_royalty_01 - + } boy = male girl = female @@ -984,7 +995,7 @@ special_genes = { } boy = male girl = female - } + } indian_nobility = { index = 52 @@ -1006,7 +1017,7 @@ special_genes = { male = { 5 = empty 5 = male_headgear_secular_mena_common_01 - + } female = { 5 = empty @@ -1022,11 +1033,11 @@ special_genes = { index = 54 male = { 5 = male_headgear_secular_indian_royalty_01 - + } female = { 5 = female_headgear_secular_indian_royalty_01 - + } boy = male girl = female @@ -1036,11 +1047,11 @@ special_genes = { index = 55 male = { 5 = male_headgear_secular_indian_imperial_01 - + } female = { 5 = female_headgear_secular_indian_royalty_01 - + } boy = male girl = female @@ -1052,13 +1063,13 @@ special_genes = { 5 = m_headgear_sec_indian_war_nob_01_lo 5 = m_headgear_sec_indian_war_nob_01_hi 5 = m_headgear_sec_indian_war_nob_01_roy - + } female = { 5 = f_headgear_sec_indian_war_nob_01_lo 5 = f_headgear_sec_indian_war_nob_01_hi 5 = f_headgear_sec_indian_war_nob_01_roy - + } boy = male girl = female @@ -1069,12 +1080,12 @@ special_genes = { male = { 1 = m_headgear_sec_crusades_western_war_nob_01_lo 1 = m_headgear_sec_crusades_western_war_nob_01_hi - + } female = { 1 = f_headgear_sec_crusades_western_war_nob_01_lo 1 = f_headgear_sec_crusades_western_war_nob_01_hi - + } boy = male girl = female @@ -1085,12 +1096,12 @@ special_genes = { male = { 1 = m_headgear_sec_crusades_mena_war_nob_01_lo 1 = m_headgear_sec_crusades_mena_war_nob_01_hi - + } female = { 1 = f_headgear_sec_crusades_mena_war_nob_01_lo 1 = f_headgear_sec_crusades_mena_war_nob_01_hi - + } boy = male girl = female @@ -1101,11 +1112,11 @@ special_genes = { # index = 57 # male = { # 1 = male_headgear_religious_dde_catholic_high_01 - # + # # } # female = { # # 1 = female_headgear_religious_dde_catholic_high_01 - # + # # } # boy = male # girl = female @@ -1115,11 +1126,11 @@ special_genes = { index = 59 male = { 1 = empty - + } female = { 1 = female_headgear_religious_catholic_devoted_01 - + } boy = male girl = female @@ -1129,11 +1140,11 @@ special_genes = { index = 60 male = { 1 = male_headgear_religious_orthodox_high_01 - + } female = { 1 = female_headgear_religious_catholic_devoted_01 - + } boy = male girl = female @@ -1143,11 +1154,11 @@ special_genes = { index = 61 male = { 1 = male_headgear_religious_orthodox_head_01 - + } female = { 1 = female_headgear_religious_catholic_devoted_01 - + } boy = male girl = female @@ -1157,11 +1168,11 @@ special_genes = { index = 62 male = { 1 = male_headgear_religious_zorastrian_high_01 - + } female = { # 1 = female_headgear_religious_zoroastrian_high_01 - + } boy = male girl = female @@ -1171,11 +1182,11 @@ special_genes = { index = 63 male = { 1 = male_headgear_religious_zorastrian_high_01 - + } female = { - # 1 = female_headgear_religious_jewish_high_01 - + # 1 = female_headgear_religious_jewish_high_01 + } boy = male girl = female @@ -1185,11 +1196,11 @@ special_genes = { index = 64 male = { 1 = male_headgear_religious_jewish_head_01 - + } female = { - # 1 = female_headgear_religious_jewish_head_01 - + # 1 = female_headgear_religious_jewish_head_01 + } boy = male girl = female @@ -1199,11 +1210,11 @@ special_genes = { index = 65 male = { 1 = male_headgear_religious_muslim_high_01 - + } female = { 1 = female_headgear_religious_muslim_high_01 - + } boy = male girl = female @@ -1213,11 +1224,11 @@ special_genes = { index = 66 male = { 1 = male_headgear_religious_dde_muslim_head_01 - + } female = { 1 = female_headgear_religious_muslim_high_01 - + } boy = male girl = female @@ -1227,11 +1238,11 @@ special_genes = { # index = 66 # male = { # 1 = male_headgear_religious_dde_muslim_high_01 - # + # # } # female = { # 1 = female_headgear_secular_mena_royalty_01 - # + # # } # boy = male # girl = female @@ -1241,11 +1252,11 @@ special_genes = { index = 67 male = { 1 = male_headgear_religious_african_high_01 - + } female = { 1 = female_headgear_religious_african_high_01 - + } boy = male girl = female @@ -1255,11 +1266,11 @@ special_genes = { index = 68 male = { 1 = male_headgear_religious_steppe_high_01 - + } female = { 1 = female_headgear_religious_steppe_high_01 - + } boy = male girl = female @@ -1269,15 +1280,15 @@ special_genes = { index = 69 male = { 1 = male_headgear_religious_northern_high_01 - + } female = { 1 = female_headgear_religious_northern_high_01 - + } boy = male girl = female - } + } ## FP1 - Fury of the Northmen ## @@ -1286,12 +1297,12 @@ special_genes = { male = { 1 = male_headgear_secular_fp1_common_01 1 = male_headgear_secular_fp1_common_02 - + } female = { 1 = female_headgear_secular_fp1_common_01 1 = female_headgear_secular_fp1_common_02 - + } boy = male girl = female @@ -1303,12 +1314,12 @@ special_genes = { 2 = male_headgear_secular_fp1_nobility_01 1 = male_headgear_secular_fp1_common_01 1 = male_headgear_secular_fp1_common_02 - + } female = { 1 = female_headgear_secular_fp1_common_01 1 = female_headgear_secular_fp1_common_02 - + } boy = male girl = female @@ -1323,7 +1334,7 @@ special_genes = { female = { 1 = female_headgear_secular_fp1_nobility_01 1 = female_headgear_secular_fp1_nobility_02 - 1 = female_headgear_secular_fp1_nobility_03 + 1 = female_headgear_secular_fp1_nobility_03 } boy = male @@ -1338,9 +1349,9 @@ special_genes = { } female = { - 1 = female_headgear_secular_fp1_war_nobility_01 - 1 = female_headgear_secular_fp1_war_nobility_02 - + 1 = female_headgear_secular_fp1_war_nobility_01 + 1 = female_headgear_secular_fp1_war_nobility_02 + } boy = male girl = female @@ -1353,8 +1364,8 @@ special_genes = { } female = { - 1 = female_headgear_secular_fp1_war_nobility_02 - + 1 = female_headgear_secular_fp1_war_nobility_02 + } boy = male girl = female @@ -1367,8 +1378,8 @@ special_genes = { } female = { - 1 = female_headgear_secular_fp1_royalty_01 - + 1 = female_headgear_secular_fp1_royalty_01 + } boy = male girl = female @@ -1381,8 +1392,8 @@ special_genes = { } female = { - 1 = female_headgear_secular_fp1_imperial_01 - + 1 = female_headgear_secular_fp1_imperial_01 + } boy = male girl = female @@ -1399,9 +1410,9 @@ special_genes = { boy = male girl = female } - + ## EP1 - ROCCO ## - + ep1_western_royalty = { index = 78 male = { @@ -1497,7 +1508,7 @@ special_genes = { boy = male girl = female } - + ep1_sub_saharan_royalty = { index = 86 male = { @@ -1571,7 +1582,7 @@ special_genes = { } ## FP2 - Fate of Iberia ## - + fp2_christian_common = { index = 92 male = { @@ -1585,7 +1596,7 @@ special_genes = { boy = male girl = female } - + fp2_christian_low_nobility = { index = 93 male = { @@ -1599,11 +1610,11 @@ special_genes = { boy = male girl = female } - + fp2_christian_high_nobility = { index = 94 male = { - + 1 = male_headgear_secular_fp2_iberian_christian_nobility_01_high 1 = male_headgear_secular_fp2_iberian_christian_high_nobility_01_high } @@ -1626,14 +1637,14 @@ special_genes = { boy = male girl = female } - + fp2_christian_war_nobility = { index = 96 male = { 1 = m_headgear_sec_fp2_iberian_christian_war_nob_01_lo 1 = m_headgear_sec_fp2_iberian_christian_war_nob_01_hi } - + female = { 1 = f_headgear_sec_fp2_iberian_christian_war_nob_01_lo 1 = f_headgear_sec_fp2_iberian_christian_war_nob_01_hi @@ -1654,7 +1665,7 @@ special_genes = { boy = male girl = female } - + fp2_muslim_low_nobility = { index = 98 male = { @@ -1668,20 +1679,20 @@ special_genes = { boy = male girl = female } - + fp2_muslim_high_nobility = { index = 99 male = { 1 = male_headgear_secular_fp2_iberian_muslim_high_nobility_01 } female = { - + 1 = female_headgear_secular_fp2_iberian_muslim_high_nobility_01_high } boy = male girl = female } - + fp2_muslim_royalty = { index = 100 male = { @@ -1701,14 +1712,14 @@ special_genes = { 1 = m_headgear_sec_fp2_iberian_muslim_war_nob_01_hi } - + female = { 1 = f_headgear_sec_fp2_iberian_muslim_war_nob_01_lo 1 = f_headgear_sec_fp2_iberian_muslim_war_nob_01_hi } boy = male girl = female - } + } fp2_scripted_headgear_01 = { index = 102 @@ -1967,7 +1978,7 @@ special_genes = { } female = { - 10 = f_headgear_sec_ep2_indian_war_nob_01 + 10 = f_headgear_sec_ep2_indian_war_nob_01 } boy = male @@ -1975,7 +1986,6 @@ special_genes = { } - ## SP2 - Elegance of the Empire ## @@ -2249,9 +2259,110 @@ special_genes = { boy = male girl = female } - } + ## FP3 - Sands of Time ## + + fp3_iranian_royalty = { + index = 140 + male = { + 1 = m_headgear_sec_fp3_iranian_roy_01 + } + female = { + 1 = f_headgear_sec_fp3_iranian_roy_01 + } + boy = male + girl = female + } + + fp3_iranian_low_nobility = { + index = 141 + male = { + 1 = m_headgear_sec_fp3_iranian_nob_01 + } + female = { + 1 = f_headgear_sec_fp3_iranian_nob_01 + } + boy = male + girl = female + } + + fp3_iranian_nobility = { + index = 142 + male = { + 1 = m_headgear_sec_fp3_iranian_nob_02 + } + female = { + 1 = f_headgear_sec_fp3_iranian_nob_02 + } + boy = male + girl = female + } + fp3_iranian_war = { + index = 143 + male = { + 1 = m_headgear_sec_fp3_iranian_war_nob_01 + } + female = { + 1 = f_headgear_sec_fp3_iranian_war_nob_01 + } + boy = male + girl = female + } + + fp3_iranian_imperial = { + index = 144 + male = { + 1 = m_headgear_sec_fp3_iranian_imp_01 + } + female = { + 1 = f_headgear_sec_fp3_iranian_imp_01 + } + boy = male + girl = female + } + + ## FP3 - Turkic ## + + fp3_turkic_low_nobility = { + index = 145 + male = { + 1 = m_headgear_sec_fp3_turkic_nob_01 + } + female = { + 5 = empty + 5 = female_headgear_secular_steppe_common_01 + } + boy = male + girl = female + } + + fp3_turkic_nobility = { + index = 146 + male = { + 1 = m_headgear_sec_fp3_turkic_nob_02 + } + female = { + 5 = empty + 5 = female_headgear_secular_steppe_high_nobility_01 + } + boy = male + girl = female + } + + + reward_western_royalty = { + index = 147 + male = { + 1 = male_headgear_secular_western_royalty_03 + } + female = { + 1 = female_headgear_secular_western_royalty_03 + } + boy = male + girl = male + } + } secondary_headgears = { diff --git a/common/genes/07_genes_special_accessories_misc.txt b/common/genes/07_genes_special_accessories_misc.txt index 79c3eab7ef..bbba269b07 100644 --- a/common/genes/07_genes_special_accessories_misc.txt +++ b/common/genes/07_genes_special_accessories_misc.txt @@ -1311,8 +1311,19 @@ special_genes = { boy = male girl = female } - artifact_frostmourne = { + fp3_artifact_sword_equipped_01 = { index = 67 + male = { + 1 = fp3_artifact_sword_equipped_01 + } + female = { + 1 = fp3_artifact_sword_equipped_01 + } + boy = male + girl = female + } + artifact_frostmourne = { + index = 68 male = { 1 = artifact_frostmourne } diff --git a/common/genes/08_genes_special_visual_traits.txt b/common/genes/08_genes_special_visual_traits.txt index cd2375c87f..6758a26792 100644 --- a/common/genes/08_genes_special_visual_traits.txt +++ b/common/genes/08_genes_special_visual_traits.txt @@ -838,6 +838,22 @@ special_genes = { } } + + headgear_fp3_iranian_face_mask = { + + fp3_iranian_face_mask = { + index = 0 + male = { + 100 = m_headgear_fp3_iranian_face_mask_01 + } + female = { + 100 = female_headgear_special_face_mask_01 + } + boy = male + girl = female + } + + } special_headgear_blindfold = { diff --git a/common/governments/00_government_types.txt b/common/governments/00_government_types.txt index a5f8d0eb82..52d5411058 100644 --- a/common/governments/00_government_types.txt +++ b/common/governments/00_government_types.txt @@ -24,7 +24,6 @@ war_declaration_rights council_rights title_revocation_rights - #jizya_special_rights } # Warcraft @@ -98,16 +97,16 @@ clan_government = { # Type flag = government_is_monarchy + house_unity = clan_house_unity + tax_slot_type = clan_tax_slot + vassal_contract = { - clan_government_obligations + clan_tax_collector_obligations special_contract religious_rights war_declaration_rights council_rights title_revocation_rights - #jizya_special_rights - #iqta_special_rights - #ghazi_special_rights #marriage_favor_rights } @@ -123,10 +122,10 @@ clan_government = { limit = { is_powerful_vassal = yes } - value = -30 + value = clan_powerful_vassal_no_alliance_opinion_penalty_value } else = { - value = -15 + value = clan_vassal_no_alliance_opinion_penalty_value } } } @@ -160,6 +159,7 @@ clan_government = { # Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player). flag = government_is_clan + flag = may_appoint_viziers # Warcraft flag = government_can_be_matchmaker color = hsv{ 0.39 0.93 0.54 } diff --git a/common/governments/_governments.info b/common/governments/_governments.info index 2dcbaa34ac..c48d0fafcb 100644 --- a/common/governments/_governments.info +++ b/common/governments/_governments.info @@ -38,6 +38,8 @@ my_government = { # List of vassal contract types } + house_unity = house_unity_key # the house unity is configured in common/house_unities and shows if a government can have house unity + # Disable some AI features for this government type (all are enabled by default). # Note that some features might be disabled for other reasons (e.g. if not independent, if below a certain tier). ai = { diff --git a/common/guest_system/00_guest_system.txt b/common/guest_system/00_guest_system.txt deleted file mode 100644 index 0736ec6a57..0000000000 --- a/common/guest_system/00_guest_system.txt +++ /dev/null @@ -1,17 +0,0 @@ -# This effect is called with scope:mover (character) -# It will get called shortly before the on-action on_guest_ready_to_move_to_pool -# There is a bit of a gap (smaller than a day) between the destination being determined and the on-action firing -destination_for_guest_entering_pool = { - scope:mover = { - select_pool_to_move_to_effect = yes - } -} - -# This effect is called with scope:mover (character) -# It will get called shortly before the on-action on_guest_ready_to_move_to_pool -# There is a bit of a gap (smaller than a day) between the destination being determined and the on-action firing -destination_for_courtier_entering_pool = { - scope:mover = { - select_pool_to_move_to_effect = yes - } -} diff --git a/common/holdings/00_holdings.txt b/common/holdings/00_holdings.txt index e5b5ed4c0b..4fcb61ad7b 100644 --- a/common/holdings/00_holdings.txt +++ b/common/holdings/00_holdings.txt @@ -35,7 +35,8 @@ common_tradeport_01 hall_of_heroes_01 #special_sicilian_parliament_01 - #special_greenhouse_01 + special_greenhouse_01 + qanats_01 #Warcraft aviary_complex_01 @@ -96,6 +97,7 @@ city_holding = { guild_halls_01 common_tradeport_01 + qanats_01 #Warcraft aviary_complex_01 @@ -141,6 +143,7 @@ church_holding = { common_tradeport_01 hall_of_heroes_01 + qanats_01 #Warcraft aviary_complex_01 diff --git a/common/house_unities/00_house_unities.txt b/common/house_unities/00_house_unities.txt new file mode 100644 index 0000000000..9dfe0929ed --- /dev/null +++ b/common/house_unities/00_house_unities.txt @@ -0,0 +1,192 @@ +clan_house_unity = { + default_value = 100 + min_value = 0 + + antagonistic = { + points = 40 + + on_start = { + every_house_member = { + if = { + limit = { + has_clan_succession_law = yes + } + add_realm_law = clan_antagonistic_partition_succession_law + } + } + } + + parameters = { + unity_succession_clan_antagonistic_partition_succession = yes + unity_unlimited_invasions = yes + unity_lower_prestige_requirements = yes + unity_war_opinion = yes + unity_can_challenge_house_head = yes + unity_significantly_more_likely_claimant_factions = yes + unity_antagonistic_cb_cost = yes + } + + modifiers = { + ai_war_chance = 10 + ai_war_cooldown = -0.5 + } + + decisions = { + unity_reinforce_army_decision + unity_organize_house_for_war_decision + unity_improve_logistics_decision + #unity_establish_futuwaa_lodges_decision + } + + succession_law_flag = house_unity_stage_antagonistic + } + + competitive = { + points = 40 + + on_start = { + every_house_member = { + if = { + limit = { + has_clan_succession_law = yes + } + add_realm_law = clan_competitive_partition_succession_law + } + } + } + + parameters = { + unity_succession_clan_competitive_partition_succession = yes + unity_multiple_invasions = yes + unity_unlock_fabricate_hooks = yes + unity_can_challenge_house_head = yes + unity_more_likely_claimant_factions = yes + + unity_competitive_cb_cost = yes + } + + modifiers = { + ai_war_chance = 5 + ai_war_cooldown = -0.25 + monthly_lifestyle_xp_gain_mult = 0.05 + } + + decisions = { + unity_establish_network_decision + unity_organize_house_for_war_decision + unity_improve_logistics_decision + #unity_establish_futuwaa_lodges_decision + } + + succession_law_flag = house_unity_stage_competitive + } + + impassive = { + points = 40 + + on_start = { + every_house_member = { + if = { + limit = { + has_clan_succession_law = yes + } + add_realm_law = clan_impassive_partition_succession_law + } + } + } + + parameters = { + unity_succession_clan_impassive_partition_succession = yes + unity_can_challenge_house_head = yes + } + + modifiers = { + monthly_lifestyle_xp_gain_mult = 0.1 + } + + decisions = { + unity_improve_taxation_decision + unity_consult_house_decision + } + + succession_law_flag = house_unity_stage_impassive + } + + friendly = { + points = 40 + + on_start = { + every_house_member = { + if = { + limit = { + has_clan_succession_law = yes + } + add_realm_law = clan_friendly_partition_succession_law + } + } + } + + parameters = { + unity_succession_clan_friendly_partition_succession = yes + unity_has_liberate_house_members_cb = yes + unity_has_unify_house_cb = yes + unity_disable_invasions = yes + unity_less_likely_factions = yes + + unity_friendly_cb_cost = yes + } + + modifiers = { + dread_decay_mult = -0.2 + monthly_lifestyle_xp_gain_mult = 0.05 + } + + decisions = { + unity_send_bailiffs_decision + unity_encourage_house_economy_decision + unity_promote_development_decision + unity_educate_youth_in_madrasas_decision + } + + succession_law_flag = house_unity_stage_friendly + } + + harmonious = { + points = 41 # We set it to 41 to make it look nice in the interface + + on_start = { + every_house_member = { + if = { + limit = { + has_clan_succession_law = yes + } + add_realm_law = clan_harmonious_partition_succession_law + } + } + } + + parameters = { + unity_succession_clan_harmonious_partition_succession = yes + unity_has_liberate_house_members_cb = yes + unity_has_unify_house_cb = yes + unity_disable_invasions = yes + unity_significantly_less_likely_factions = yes + unity_unlock_befriend_scheme = yes + + unity_harmonious_cb_cost = yes + } + + modifiers = { + dread_decay_mult = -0.4 + } + + decisions = { + unity_placate_vassals_decision + unity_encourage_house_economy_decision + unity_promote_development_decision + unity_educate_youth_in_madrasas_decision + } + + succession_law_flag = house_unity_stage_harmonious + } +} diff --git a/common/house_unities/_house_unities.info b/common/house_unities/_house_unities.info new file mode 100644 index 0000000000..ac1a7c7310 --- /dev/null +++ b/common/house_unities/_house_unities.info @@ -0,0 +1,40 @@ +############################################################## +# Structure +############################################################## + +# government_key must exist otherwise the item will be ignored +house_unity_key = { + # default value for the house unity type. The type is going to be used when a new house unity is create for government_key + default_value = ... + # min value for the house unity type + min_value = 0 + + unity_house_stage_template_key = { + # how many point the stage takes. Must be more that 0. Otherwise the stage will be ignored + points = ... + + # set icon name for the house unity stage template + icon = house_unity_stage_icon + + # parameters that affect all characters in a unity + parameters = {} + + # modifiers applied on all characters in a unity + modifiers = {} + + # the effect is called when the stage starts + # root = house_unity + on_start = { } + + # the effect is called when the stage ends + # root = house_unity + on_end = { } + + # list of decisions for the house unity stage. They will be shown in house unity tab + decisions = { decision_1 decision_2 } + } + + next_unity_house_stage_template_key = { + .... + } +} diff --git a/common/important_actions/00_action_take_decision_or_interaction.txt b/common/important_actions/00_action_take_decision_or_interaction.txt deleted file mode 100644 index ce03725d95..0000000000 --- a/common/important_actions/00_action_take_decision_or_interaction.txt +++ /dev/null @@ -1,121 +0,0 @@ -# Shown when an important decision/interaction is available. - -#DECISONS -#check_create_action is called for each decision that the player has marked as important and that can be taken. -action_take_decision = { - type = alert - check_create_action = { - every_decision = { - limit = { - save_temporary_scope_as = decision - root = { - is_important_decision = scope:decision - should_decision_create_alert = scope:decision - can_execute_decision = scope:decision - } - } - - try_create_important_action = { - important_action_type = action_take_decision - actor = root - decision = this - } - } - } - - effect = { - if = { - limit = { scope:decision = decision:petition_liege_decision } - liege = { - open_view_data = { - view = royal_court - player = root - } - } - } - else_if = { - limit = { scope:decision = decision:hold_court_decision } - open_view_data = { - view = royal_court - player = root - } - } - else = { - scope:decision = { open_view_data = decision_detail } - } - } -} - -#INTERACTIONS -action_ask_for_pardon = { - priority = 900 - check_create_action = { - if = { - limit = { - ask_for_pardon_available_trigger = { ACTOR = root } - OR = { - has_hook = top_liege - reverse_opinion = { - target = top_liege - value >= 50 #minimum value for agreeing to pardon - } - } - } - try_create_important_action = { - important_action_type = action_ask_for_pardon - actor = root - recipient = top_liege - } - } - } - - effect = { - open_interaction_window = { - interaction = ask_for_pardon_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_convert_at_war_interaction = { - priority = 1000 - check_create_action = { - if = { - limit = { faith = { has_doctrine_parameter = unreformed } } - every_character_war = { - limit = { - primary_defender = root - using_non_ghw_holy_war_cb_trigger = yes - primary_attacker.max_military_strength > primary_defender.max_military_strength - } - primary_attacker = { save_scope_as = attacker } - if = { - limit = { - root = { - is_character_interaction_valid = { - recipient = scope:attacker - interaction = convert_at_war_interaction - } - } - } - primary_defender = { - try_create_important_action = { - important_action_type = action_convert_at_war_interaction - actor = root - recipient = scope:attacker - } - } - } - } - } - } - - effect = { - open_interaction_window = { - interaction = convert_at_war_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} diff --git a/common/important_actions/00_artifact_actions.txt b/common/important_actions/00_artifact_actions.txt deleted file mode 100644 index 4c3b51e450..0000000000 --- a/common/important_actions/00_artifact_actions.txt +++ /dev/null @@ -1,30 +0,0 @@ -action_can_reforge_artifact = { - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - every_character_artifact = { - if = { - limit = { - artifact_durability_percent <= { - value = define:NInventory|ARTIFACT_LOW_DURABILITY - divide = 100 - } - } - - try_create_important_action = { - important_action_type = action_can_reforge_artifact - artifact = this - } - } - } - } - - effect = { - scope:artifact = { - open_view_data = { - view = artifact_details - } - } - } -} diff --git a/common/important_actions/00_diarchy_actions.txt b/common/important_actions/00_diarchy_actions.txt deleted file mode 100644 index f5dbb57232..0000000000 --- a/common/important_actions/00_diarchy_actions.txt +++ /dev/null @@ -1,492 +0,0 @@ - -# If we can end a regency, we should. -action_end_regency = { - priority = 1000 - check_create_action = { - if = { - limit = { - # Are you in a regency? - has_active_diarchy = yes - # Could you take the interaction(s)? - OR = { - # Temporary. - AND = { - has_diarchy_active_parameter = diarchy_type_is_temporary_regency - is_character_interaction_valid = { - interaction = liege_dismiss_temporary_regency_interaction - recipient = diarch - } - } - # Entrenched. - AND = { - has_diarchy_active_parameter = diarchy_type_is_entrenched_regency - is_character_interaction_valid = { - interaction = liege_dismiss_entrenched_regency_interaction - recipient = diarch - } - } - } - } - try_create_important_action = { - important_action_type = action_end_regency - actor = root - recipient = diarch - } - } - } - effect = { - if = { - limit = { has_diarchy_active_parameter = diarchy_type_is_temporary_regency } - open_interaction_window = { - interaction = liege_dismiss_temporary_regency_interaction - actor = root - recipient = diarch - } - } - else_if = { - limit = { has_diarchy_active_parameter = diarchy_type_is_entrenched_regency } - open_interaction_window = { - interaction = liege_dismiss_entrenched_regency_interaction - actor = root - recipient = diarch - } - } - } -} - -# Regents always want to swing the scales if they can. -action_swing_scales_regent = { - priority = 1000 - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - # Could you take the interaction? - is_character_interaction_valid = { - interaction = swing_scales_currency_interaction - recipient = liege - } - } - try_create_important_action = { - important_action_type = action_swing_scales_regent - actor = root - recipient = liege - } - } - } - unimportant = { - # Do you have one of the standard currencies available? - NOR = { - prestige >= swing_scales_prestige_cost_value - AND = { - faith = liege.faith - piety >= swing_scales_piety_cost_value - } - gold >= swing_scales_cash_cost_value - has_usable_hook = liege - # We're not check HoF stuff for general ease of scripting - it's more of a roleplay option. - } - } - effect = { - open_interaction_window = { - interaction = swing_scales_currency_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Lieges want to swing the scales once an entrenched regency starts getting out of control. -action_swing_scales_liege_entrenched_dangerous = { - priority = 1000 - is_dangerous = yes - check_create_action = { - if = { - limit = { - # Do you have an active regency? - has_active_diarchy = yes - # Is it one worth bothering yourself over? - has_diarchy_active_parameter = diarchy_type_is_entrenched_regency - diarchy_swing >= 45 - # Could you take the interaction? - is_character_interaction_valid = { - interaction = swing_scales_currency_interaction - recipient = diarch - } - } - try_create_important_action = { - important_action_type = action_swing_scales_liege_entrenched_dangerous - actor = root - recipient = diarch - } - } - } - unimportant = { - # Do you have one of the standard currencies available? - NOR = { - prestige >= diarch.swing_scales_prestige_cost_value - AND = { - faith = diarch.faith - piety >= diarch.swing_scales_piety_cost_value - } - gold >= diarch.swing_scales_cash_cost_value - has_usable_hook = diarch - # We're not check HoF stuff for general ease of scripting - it's more of a roleplay option. - } - } - effect = { - open_interaction_window = { - interaction = swing_scales_currency_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to use their revoke whenever they can. -action_regent_revoke = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - liege = { - # Is the power unlocked? - has_diarchy_active_parameter = unlock_diarch_revoke_title_interaction - # And is there a valid target? - any_vassal = { - save_temporary_scope_as = char_temp - # Could you take the interaction? - root = { - is_character_interaction_valid = { - interaction = diarch_revoke_title_interaction - recipient = scope:char_temp - } - } - } - } - } - liege = { - every_vassal = { - limit = { - any_held_title = { - title_revocation_standard_can_pick_title_trigger = yes - root = { has_claim_on = prev } - } - } - try_create_important_action = { - important_action_type = action_regent_revoke - actor = root - recipient = this - } - } - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_revoke_title_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to use their retract whenever they can. -action_regent_retract = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - liege = { - # Is the power unlocked? - has_diarchy_active_parameter = unlock_diarch_retract_vassal_interaction - # And is there a valid target? - any_vassal = { - save_temporary_scope_as = char_temp - # Could you take the interaction? - root = { - is_character_interaction_valid = { - interaction = diarch_retract_vassal_interaction - recipient = scope:char_temp - } - } - } - } - } - liege = { - every_vassal = { - limit = { - NOT = { this = root } - any_vassal = { - highest_held_title_tier >= tier_county - highest_held_title_tier < root.highest_held_title_tier - any_held_title = { - save_temporary_scope_as = title_temp - root = { - any_held_title = { is_de_jure_liege_or_above_target = scope:title_temp } - } - } - } - } - save_scope_as = char_temp - try_create_important_action = { - important_action_type = action_regent_retract - actor = root - recipient = scope:char_temp - } - } - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_retract_vassal_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to use their imprison when they've got a good target. -action_regent_imprison = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - # Is the power unlocked? - liege = { has_diarchy_active_parameter = unlock_diarch_imprison_interaction } - # And is there a valid target? - OR = { - # Scan over your liege's vassals to get people who really, really hate you. - liege = { - any_vassal = { action_regent_imprison_suitable_char_covassals_trigger = yes } - } - # Plus we want to pick up your rivals. - any_relation = { - type = rival - action_regent_imprison_suitable_char_rivals_trigger = yes - } - } - } - # First, nab vassals. - liege = { - every_vassal = { - limit = { action_regent_imprison_suitable_char_covassals_trigger = yes } - try_create_important_action = { - important_action_type = action_regent_imprison - actor = root - recipient = this - } - } - } - # Then, rivals. - every_relation = { - type = rival - limit = { action_regent_imprison_suitable_char_rivals_trigger = yes } - try_create_important_action = { - important_action_type = action_regent_imprison - actor = root - recipient = this - } - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_imprison_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to get claims most of the time. -action_legal_meddling = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - liege = { - # Is the power unlocked? - has_diarchy_active_parameter = unlock_legal_meddling_interaction - any_vassal = { - action_legal_meddling_suitable_char_trigger = yes - save_temporary_scope_as = char_temp - any_held_title = { action_legal_meddling_suitable_title_trigger = yes } - } - } - } - liege = { - every_vassal = { - limit = { - action_legal_meddling_suitable_char_trigger = yes - save_temporary_scope_as = char_temp - any_held_title = { action_legal_meddling_suitable_title_trigger = yes } - } - try_create_important_action = { - important_action_type = action_legal_meddling - actor = root - recipient = this - } - } - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_legal_meddling_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to embezzle when they stand a good chance of getting away with it. -action_syphon_treasury = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - liege = { - # Is the power unlocked? - has_diarchy_active_parameter = unlock_syphon_treasury_interaction - # Do you have at least 50:50 stewardship? - stewardship <= root.stewardship - } - # Could you take the interaction otherwise? - is_character_interaction_valid = { - interaction = diarch_syphon_treasury_interaction - recipient = liege - } - } - try_create_important_action = { - important_action_type = action_syphon_treasury - actor = root - recipient = liege - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_syphon_treasury_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to shift privileges when they're poor and likely to get away with it. -action_shift_privileges = { - combine_into_one = yes - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - liege = { - # Is the power unlocked? - has_diarchy_active_parameter = unlock_shift_privileges_interaction - # And is there a valid target? - any_vassal = { action_shift_privileges_suitable_char_trigger = yes } - } - } - liege = { - every_vassal = { - limit = { action_shift_privileges_suitable_char_trigger = yes } - try_create_important_action = { - important_action_type = action_shift_privileges - actor = root - recipient = this - } - } - } - } - } - effect = { - open_interaction_window = { - interaction = diarch_shift_privileges_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Regents want to boost liege CA/TA when it'd help them. -action_subsidise_liege_authority = { - check_create_action = { - if = { - limit = { - # Are you a regent? - is_diarch = yes - # Liege checks. - liege = { - # And we probably only want to advise you to do this when entrenched. - has_diarchy_active_parameter = diarchy_type_is_entrenched_regency - # And they've got poor CA/TA. - NOT = { has_realm_law_flag = diarchs_want_to_subsidise_without_this_flag } - # Finally, is there anything you might want to use/gain from this? - ## We check for revocation, because it's a nice basic power & checking for actual nodes would get tricksy. - has_diarchy_active_parameter = unlock_diarch_revoke_title_interaction - } - } - try_create_important_action = { - important_action_type = action_subsidise_liege_authority - recipient = liege - } - } - } - unimportant = { - # Advertise that it's there but not that you can do it if you couldn't afford it. - prestige < { - value = liege.increase_crown_authority_prestige_cost - multiply = subsidised_liege_authority_discount_value - } - } - effect = { - open_interaction_window = { - interaction = diarch_subsidise_crown_authority_interaction - actor = root - recipient = scope:recipient - } - } -} - -# Remember to secure the succession when you can. -action_designate_regent_for_hook = { - is_dangerous = yes - check_create_action = { - if = { - limit = { - # Not doing so hot. - health < fine_health - # Has an heir to be concerned about. - player_heir ?= { age <= 10 } - # No pre-existing arrangements. - NOR = { - exists = diarch - exists = designated_diarch - } - } - - try_create_important_action = { - important_action_type = action_designate_regent_for_hook - actor = root - recipient = player_heir - } - } - } - effect = { - scope:actor = { open_view_data = diarchy } - } -} diff --git a/common/important_actions/00_dynasty_actions.txt b/common/important_actions/00_dynasty_actions.txt deleted file mode 100644 index 191db43b5e..0000000000 --- a/common/important_actions/00_dynasty_actions.txt +++ /dev/null @@ -1,25 +0,0 @@ -action_can_choose_dynasty_perk = { - type = alert - check_create_action = { - if = { - limit = { - dynasty.dynast = this - dynasty = { - dynasty_can_unlock_relevant_perk = yes - } - } - - try_create_important_action = { - important_action_type = action_can_choose_dynasty_perk - } - } - } - - effect = { - dynasty = { - open_view_data = { - view = dynasty_view - } - } - } -} diff --git a/common/important_actions/00_education_actions.txt b/common/important_actions/00_education_actions.txt deleted file mode 100644 index c2d98c4a37..0000000000 --- a/common/important_actions/00_education_actions.txt +++ /dev/null @@ -1,171 +0,0 @@ -action_send_child_to_university = { - priority = 355 - check_create_action = { - if = { - limit = { - any_realm_province = { - has_university_building_trigger = yes - barony = { - holder = { - NOT = { this = root } - is_adult = yes - num_of_relation_ward < 2 - save_temporary_scope_as = vassal - } - } - } - any_child = { - is_adult = no - num_of_relation_guardian = 0 - } - } - try_create_important_action = { - important_action_type = action_send_child_to_university - actor = root - recipient = scope:vassal - secondary_recipient = scope:vassal - } - } - } - - unimportant = { - short_term_gold < monumental_gold_value - } - - effect = { - open_interaction_window = { - interaction = offer_ward_interaction - actor = scope:actor - recipient = scope:recipient - secondary_recipient = scope:secondary_recipient - } - } -} - -action_send_guardian_to_university = { - priority = 355 - check_create_action = { - if = { - limit = { - any_realm_province = { - has_university_building_trigger = yes - barony = { - holder = { - NOT = { this = root } - is_adult = no - num_of_relation_guardian = 0 - save_temporary_scope_as = vassal - } - } - } - any_courtier = { - is_adult = yes - num_of_relation_ward < 2 - } - } - try_create_important_action = { - important_action_type = action_send_guardian_to_university - actor = root - recipient = scope:vassal - secondary_recipient = scope:vassal - } - } - } - - unimportant = { - short_term_gold < monumental_gold_value - } - - effect = { - open_interaction_window = { - interaction = offer_guardianship_interaction - actor = scope:actor - recipient = scope:recipient - secondary_recipient = scope:secondary_recipient - } - } -} - - -action_send_child_to_your_university = { - priority = 355 - check_create_action = { - if = { - limit = { - any_realm_province = { - has_university_building_trigger = yes - barony = { - holder = { - this = root - num_of_relation_ward < 2 - } - } - } - any_child = { - is_adult = no - num_of_relation_guardian = 0 - } - } - try_create_important_action = { - important_action_type = action_send_child_to_your_university - actor = root - recipient = root - } - } - } - - unimportant = { - short_term_gold < monumental_gold_value - } - - effect = { - open_interaction_window = { - interaction = educate_child_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - - -action_send_yourself_to_university = { - priority = 355 - check_create_action = { - if = { - limit = { - has_bp2_dlc_trigger = no # Old decision is redundant if you have BP2 - any_realm_province = { - has_university_building_trigger = yes - barony = { - holder = { - this = root - is_adult = no - num_of_relation_guardian = 0 - } - } - } - any_courtier = { - is_adult = yes - num_of_relation_ward < 2 - } - } - try_create_important_action = { - important_action_type = action_send_yourself_to_university - actor = root - recipient = root - } - } - } - - unimportant = { - short_term_gold < monumental_gold_value - } - - effect = { - open_interaction_window = { - interaction = educate_child_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} diff --git a/common/important_actions/00_inheritance_actions.txt b/common/important_actions/00_inheritance_actions.txt deleted file mode 100644 index a46b80601a..0000000000 --- a/common/important_actions/00_inheritance_actions.txt +++ /dev/null @@ -1,468 +0,0 @@ -action_no_heir = { - type = alert - - check_create_action = { - if = { - limit = { - NOT = { - any_held_title = { - tier > tier_barony - any_title_heir = { - dynasty = root.dynasty - } - } - } - } - try_create_important_action = { - important_action_type = action_no_heir - actor = root - recipient = primary_heir - } - } - } - - effect = { - scope:actor = { - open_view_data = { - view = character - } - } - start_tutorial_lesson = reactive_advice_looming_game_over - } -} - -action_no_player_heir_but_replacement_exists_gameover_risk = { - type = alert - icon = action_no_heir - - check_create_action = { - if = { - limit = { - NOT = { exists = player_heir } - any_held_title = { - tier > tier_barony - any_title_heir = { - dynasty = root.dynasty - } - } - } - try_create_important_action = { - important_action_type = action_no_player_heir_but_replacement_exists_gameover_risk - landed_title = root.primary_title - actor = root - } - } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} - -action_primary_heir_wrong_dynasty_no_replacement_exists = { - type = alert - icon = action_primary_heir_wrong_dynasty_but_replacement_exists - - check_create_action = { - if = { - limit = { - exists = primary_heir - exists = player_heir - primary_heir = { - NOT = { dynasty = root.dynasty } - } - - NOT = { - primary_title = { - any_title_heir = { - dynasty = root.dynasty - } - } - } - } - try_create_important_action = { - important_action_type = action_primary_heir_wrong_dynasty_no_replacement_exists - landed_title = root.primary_title - actor = root - } - } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} - -action_primary_heir_wrong_dynasty_but_replacement_exists = { - type = alert - - check_create_action = { - if = { - limit = { - exists = primary_heir - exists = player_heir - primary_heir = { - NOT = { dynasty = root.dynasty } - } - primary_title = { - any_title_heir = { - dynasty = root.dynasty - } - } - } - try_create_important_action = { - important_action_type = action_primary_heir_wrong_dynasty_but_replacement_exists - actor = root - recipient = primary_heir - } - } - } - - effect = { - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - - -action_title_lost_from_realm_on_succession = { - is_dangerous = yes - combine_into_one = yes - - check_create_action = { - every_vassal_or_below = { - limit = { - any_held_title = { - is_capital_barony = no - title_will_leave_sub_realm_on_succession = root - } - } - try_create_important_action = { - important_action_type = action_title_lost_from_realm_on_succession - actor = root - recipient = this - } - } - } - - effect = { - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - -action_title_lost_from_realm_on_foreign_ruler_succession = { - is_dangerous = yes - combine_into_one = yes - - check_create_action = { - every_vassal_or_below = { - limit = { - highest_held_title_tier >= tier_county # Barons will abdicate if they inherit most titles - any_heir_title = { - title_lost_from_realm_on_foreign_ruler_succession_trigger = { - VASSAL = prev - LIEGE = root - } - } - } - ordered_heir_title = { # Pick the most "important" one to show in the warning - order_by = tier - limit = { - title_lost_from_realm_on_foreign_ruler_succession_trigger = { - VASSAL = prev - LIEGE = root - } - } - save_scope_as = heir_title - } - try_create_important_action = { - important_action_type = action_title_lost_from_realm_on_foreign_ruler_succession - recipient = this - landed_title = scope:heir_title - } - } - } - - effect = { - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - -action_nominate_successor = { - type = alert - - check_create_action = { - ordered_election_title = { - order_by = tier - limit = { - has_order_of_succession = election - NOT = { has_character_nominiated = root } - } - try_create_important_action = { - important_action_type = action_nominate_successor - landed_title = this - } - } - } - - effect = { - scope:landed_title = { - if = { - limit = { - has_order_of_succession = election # repeated condition so the view cannot be opened before the invalid action disappears from the screen - } - open_view_data = { - view = title_election - } - } - } - } -} - -action_title_election = { - - combine_into_one = yes - check_create_action = { - ordered_election_title = { - order_by = tier - - try_create_important_action = { - important_action_type = action_title_election - landed_title = this - } - } - every_liege_or_above = { - every_held_title = { - limit = { - has_order_of_succession = election - } - try_create_important_action = { - important_action_type = action_title_election - landed_title = this - } - } - } - every_held_title = { - limit = { - has_order_of_succession = election - } - try_create_important_action = { - important_action_type = action_title_election - landed_title = this - } - } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_election - } - } - } -} - -action_in_line_of_succession_for_title = { - combine_into_one = yes - priority = 200 - check_create_action = { - every_pretender_title = { - if = { - limit = { - place_in_line_of_succession = { - target = root - value <= 4 - } - tier >= tier_county - exists = holder - holder = { - NOR = { - this = root - any_liege_or_above = { this = root } - this = { - is_primary_heir_of = root - is_player_heir_of = root - is_child_of = root - } - } - } - } - try_create_important_action = { - important_action_type = action_in_line_of_succession_for_title - landed_title = this - actor = root - } - } - } - every_heir_title = { - if = { - limit = { - NOT = { tier = tier_barony } # Baronies are never important - tier >= tier_county - exists = holder - holder = { - NOR = { - this = root - any_liege_or_above = { this = root } - this = { - is_primary_heir_of = root - is_player_heir_of = root - is_child_of = root - } - } - } - trigger_if = { - limit = { - tier = tier_county - } - NOR = { holder = { is_vassal_of = root } } # We don't generally care about inheriting counties that are already in our subrealm. - } - } - try_create_important_action = { - important_action_type = action_in_line_of_succession_for_title - landed_title = this - actor = root - } - } - } - } - - unimportant = { - scope:landed_title.holder = { target_is_same_character_or_above = root } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} - -action_heir_in_line_of_succession_for_title = { - priority = 205 - combine_into_one = yes - check_create_action = { - if = { - limit = { - exists = player_heir - } - player_heir = { - every_pretender_title = { - if = { - limit = { - place_in_line_of_succession = { - target = root - value <= 5 - } - tier >= tier_county - exists = holder - holder = { - NOR = { - this = root - any_liege_or_above = { this = root } - this = { - is_primary_heir_of = root - is_child_of = root - } - } - } - OR = { - tier = tier_empire - tier = tier_kingdom # Kingdoms and empires are generally of high value, so we should inform the player even if they are several places removed. - AND = { - tier = tier_duchy - place_in_line_of_succession = { - target = root - value <= 3 - } - - } - AND = { - tier = tier_county - place_in_line_of_succession = { # Counties are generally of low value, so we don't need to inform the player unless they are very high in the line. - target = root - value <= 2 - } - NOT = { holder = { is_vassal_of = root } } # We don't generally care about inheriting counties that are already in our subrealm. - } - } - } - root = { - try_create_important_action = { - important_action_type = action_heir_in_line_of_succession_for_title - landed_title = prev - actor = root.player_heir - } - } - } - } - every_heir_title = { - if = { - limit = { - NOT = { tier = tier_barony } # Baronies are never important - tier >= tier_county - exists = holder - holder = { - NOR = { - this = root - any_liege_or_above = { this = root } - this = { - is_primary_heir_of = root - is_child_of = root - } - } - } - trigger_if = { - limit = { - tier = tier_county - } - NOT = { holder = { is_vassal_of = root } } # We don't generally care about inheriting counties that are already in our subrealm. - } - } - root = { - try_create_important_action = { - important_action_type = action_heir_in_line_of_succession_for_title - landed_title = prev - actor = root.player_heir - } - } - } - } - } - } - } - - unimportant = { - scope:landed_title.holder = { target_is_same_character_or_above = root } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} - diff --git a/common/important_actions/00_lifestyle.txt b/common/important_actions/00_lifestyle.txt deleted file mode 100644 index 91c97ef652..0000000000 --- a/common/important_actions/00_lifestyle.txt +++ /dev/null @@ -1,204 +0,0 @@ -### CHOOSE LIFESTYLE -action_can_choose_lifestyle = { - type = alert - check_create_action = { - - if = { - limit = { - is_adult = yes - has_any_focus = no - can_select_lifestyle_focus = yes - } - try_create_important_action = { - important_action_type = action_can_choose_lifestyle - actor = root - } - } - - } - - effect = { - scope:actor = { - if = { - limit = { is_adult = yes } - open_view_data = { - view = lifestyle - } - } - else = { - open_view_data = { - view = character_focus - } - } - } - } -} - -action_can_spend_perk_point = { - type = alert - check_create_action = { - - if = { - limit = { # Future-proofing - has_any_focus = yes - NOR = { - has_focus_intrigue = yes - has_focus_diplomacy = yes - has_focus_learning = yes - has_focus_martial = yes - has_focus_stewardship = yes - } - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_can_spend_perk_point - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} - -action_lifestyle_diplo = { - type = alert - check_create_action = { - - if = { - limit = { - has_focus_diplomacy = yes - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_lifestyle_diplo - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} - -action_lifestyle_intrigue = { - type = alert - check_create_action = { - - if = { - limit = { - has_focus_intrigue = yes - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_lifestyle_intrigue - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} - -action_lifestyle_learning = { - type = alert - check_create_action = { - - if = { - limit = { - has_focus_learning = yes - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_lifestyle_learning - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} - -action_lifestyle_martial = { - type = alert - check_create_action = { - - if = { - limit = { - has_focus_martial = yes - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_lifestyle_martial - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} - -action_lifestyle_stewarship = { - type = alert - check_create_action = { - - if = { - limit = { - has_focus_stewardship = yes - perk_points > 0 - is_adult = yes - } - try_create_important_action = { - important_action_type = action_lifestyle_stewarship - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = lifestyle - } - } - } -} diff --git a/common/important_actions/00_mercenaries_actions.txt b/common/important_actions/00_mercenaries_actions.txt deleted file mode 100644 index 930296cf28..0000000000 --- a/common/important_actions/00_mercenaries_actions.txt +++ /dev/null @@ -1,25 +0,0 @@ -mercenary_contract_expiring = { - type = alert - check_create_action = { - every_hired_mercenary = { - if = { - limit = { - mercenary_company_expiration_days < 180 - } - save_scope_as = target - try_create_important_action = { - important_action_type = mercenary_contract_expiring - } - } - } - } - - effect = { - scope:target = { - open_view = military - open_view_data = { - view = hired_troop_detail_view - } - } - } -} diff --git a/common/important_actions/00_personal_actions.txt b/common/important_actions/00_personal_actions.txt deleted file mode 100644 index 938e626f01..0000000000 --- a/common/important_actions/00_personal_actions.txt +++ /dev/null @@ -1,661 +0,0 @@ -action_dying = { - type = alert - - check_create_action = { - - if = { - limit = { - health <= death_chance_dying_health - } - try_create_important_action = { - important_action_type = action_dying - actor = root - } - } - - } - - effect = { - scope:actor = { - open_view_data = { - view = character - } - } - } -} - -action_can_assign_guardian = { - priority = 350 - combine_into_one = yes - check_create_action = { - every_close_or_extended_family_member = { - limit = { - is_adult = no - OR = { - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - } - num_of_relation_guardian = 0 - age >= childhood_education_start_age - exists = liege - liege = root - root = { - is_character_interaction_valid = { - recipient = prev - interaction = educate_child_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_assign_guardian - actor = root - recipient = this - secondary_recipient = this - } - } - every_warden_hostage = { - limit = { - is_adult = no - num_of_relation_guardian = 0 - age >= childhood_education_start_age - root = { - is_character_interaction_valid = { - recipient = prev - interaction = educate_child_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_assign_guardian - actor = root - recipient = this - secondary_recipient = this - } - } - } - - unimportant = { - root.primary_title ?= { - place_in_line_of_succession = { - target = scope:recipient - value > 3 - } - } - } - - effect = { - open_interaction_window = { - interaction = educate_child_interaction - actor = scope:actor - recipient = scope:actor - secondary_recipient = scope:secondary_recipient - } - } -} - -action_can_ransom = { - combine_into_one = yes - check_create_action = { - every_prisoner = { - limit = { - OR = { - AND = { - OR = { - is_pool_guest = yes - is_ruler = yes - } - gold > 10 - } - AND = { - is_ruler = no - exists = liege - liege = { - gold > 10 - } - } - } - NOT = { is_at_war_with = root } - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = ransom_interaction - } - } - # Can't ransom to self - NOT = { liege ?= root } - } - try_create_important_action = { - important_action_type = action_can_ransom - actor = root - recipient = this - } - } - - } - - effect = { - open_interaction_window = { - interaction = ransom_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_should_pay_ransom = { - combine_into_one = yes - is_dangerous = yes - check_create_action = { - every_close_family_member = { - limit = { - is_imprisoned = yes - root.primary_title ?= { - place_in_line_of_succession = { - target = prev - value <= 3 - } - } - # Don't pay ransoms of own prisoners - NOT = { imprisoner = root } - } - try_create_important_action = { - important_action_type = action_should_pay_ransom - actor = root - recipient = this.imprisoner - secondary_recipient = this - } - } - } - - effect = { - open_interaction_window = { - interaction = pay_ransom_interaction - actor = scope:actor - recipient = scope:recipient - secondary_recipient = scope:secondary_recipient - } - } -} - -action_vassal_ransom_gives_hook = { - combine_into_one = yes - check_create_action = { - every_vassal = { - limit = { - is_imprisoned = yes - government_has_flag = government_is_feudal - vassal_contract_is_blocked_from_modification = no - is_ai = yes - ai_honor >= 25 - ai_greed <= 0 - root = { - can_add_hook = { - target = prev - type = favor_hook - } - } - # Don't pay ransoms of own prisoners - NOT = { imprisoner = root } - } - try_create_important_action = { - important_action_type = action_vassal_ransom_gives_hook - actor = root - recipient = this.imprisoner - secondary_recipient = this - } - } - } - - unimportant = { - always = yes - } - - effect = { - open_interaction_window = { - interaction = pay_ransom_interaction - actor = scope:actor - recipient = scope:recipient - secondary_recipient = scope:secondary_recipient - } - } -} - -action_can_vassalize = { - priority = 900 - combine_into_one = yes - check_create_action = { - every_neighboring_top_liege_realm_owner = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = offer_vassalization_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_vassalize - actor = root - recipient = this - } - } - - } - - effect = { - open_interaction_window = { - interaction = offer_vassalization_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_propose_alliance_to_family_member = { - priority = 300 - combine_into_one = yes - check_create_action = { - every_close_or_extended_family_member = { - if = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = negotiate_alliance_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_propose_alliance_to_family_member - actor = root - recipient = this - } - } - every_spouse = { - if = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = negotiate_alliance_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_propose_alliance_to_family_member - actor = root - recipient = this - } - } - } - } - } - - unimportant = { - any_ally = { - count >= 2 - } - } - - effect = { - open_interaction_window = { - interaction = negotiate_alliance_interaction - actor = scope:actor - recipient = scope:recipient - } - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - -action_can_potentially_propose_alliance_to_family_member = { - priority = 300 - combine_into_one = yes - check_create_action = { - every_close_or_extended_family_member = { - if = { - limit = { - root = { - is_character_interaction_valid = { - recipient = prev - interaction = negotiate_alliance_interaction - } - NOT = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = negotiate_alliance_interaction - } - } - } - } - try_create_important_action = { - important_action_type = action_can_potentially_propose_alliance_to_family_member - actor = root - recipient = this - } - } - every_spouse = { - if = { - limit = { - root = { - is_character_interaction_valid = { - recipient = prev - interaction = negotiate_alliance_interaction - } - NOT = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = negotiate_alliance_interaction - } - } - } - } - try_create_important_action = { - important_action_type = action_can_potentially_propose_alliance_to_family_member - actor = root - recipient = this - } - } - } - } - } - - unimportant = { - any_ally = { - count >= 2 - } - } - - effect = { - open_interaction_window = { - interaction = negotiate_alliance_interaction - actor = scope:actor - recipient = scope:recipient - } - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - -action_can_demand_payment = { - combine_into_one = yes - check_create_action = { - every_hooked_character = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = demand_payment_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_demand_payment - actor = root - recipient = this - } - } - } - - effect = { - open_interaction_window = { - interaction = demand_payment_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_ask_hof_for_money = { - priority = 900 - check_create_action = { - if = { - limit = { - exists = faith.religious_head - faith.religious_head = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = hof_ask_for_gold_interaction - } - } - } - } - faith.religious_head = { - try_create_important_action = { - important_action_type = action_can_ask_hof_for_money - actor = root - recipient = this - } - } - } - } - - effect = { - open_interaction_window = { - interaction = hof_ask_for_gold_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_ask_hof_for_claim = { - priority = 900 - combine_into_one = yes - - check_create_action = { - if = { - limit = { - exists = faith.religious_head - } - if = { - limit = { - any_kingdom = { - exists = holder - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - } - every_kingdom = { - limit = { - exists = holder - holder = { in_diplomatic_range = root } - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - - try_create_important_action = { - important_action_type = action_can_ask_hof_for_claim - actor = root - recipient = holder - secondary_recipient = root.faith.religious_head - target_title = this - } - } - } - if = { - limit = { - is_independent_ruler = no - top_liege = { - any_sub_realm_title = { - tier > tier_county - exists = holder - NOT = { holder = root } - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - } - } - top_liege = { - every_sub_realm_title = { - limit = { - tier > tier_county - exists = holder - NOT = { holder = root } - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - - try_create_important_action = { - important_action_type = action_can_ask_hof_for_claim - actor = root - recipient = holder - secondary_recipient = root.faith.religious_head - target_title = this - } - } - } - } - if = { - limit = { - any_neighboring_top_liege_realm_owner = { - any_held_title = { - tier > tier_county - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - } - } - every_neighboring_top_liege_realm_owner = { - every_held_title = { - limit = { - tier > tier_county - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - - try_create_important_action = { - important_action_type = action_can_ask_hof_for_claim - actor = root - recipient = holder - secondary_recipient = root.faith.religious_head - target_title = this - } - } - } - } - if = { - limit = { - any_neighboring_top_liege_realm_owner = { - any_sub_realm_title = { - tier > tier_county - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - } - } - every_neighboring_top_liege_realm_owner = { - every_sub_realm_title = { - limit = { - tier > tier_county - root = { - is_character_interaction_potentially_accepted = { - recipient = faith.religious_head - secondary_recipient = prev.holder - target_title = prev - interaction = hof_ask_for_claim_interaction - } - } - } - - try_create_important_action = { - important_action_type = action_can_ask_hof_for_claim - actor = root - recipient = holder - secondary_recipient = root.faith.religious_head - target_title = this - } - } - } - } - } - } - effect = { - open_interaction_window = { - interaction = hof_ask_for_claim_interaction - actor = scope:actor - recipient = scope:secondary_recipient - secondary_recipient = scope:recipient - target_title = scope:target_title - } - } -} - -action_hook_expiring = { - combine_into_one = yes - check_create_action = { - every_hooked_character = { - limit = { - root = { - time_to_hook_expiry = { - target = prev - value < 90 - } - } - } - try_create_important_action = { - important_action_type = action_hook_expiring - actor = root - recipient = this - } - } - } - - effect = { - scope:recipient = { - open_view_data = { - view = character - } - } - } -} diff --git a/common/important_actions/00_raid.txt b/common/important_actions/00_raid.txt deleted file mode 100644 index 8887461306..0000000000 --- a/common/important_actions/00_raid.txt +++ /dev/null @@ -1,59 +0,0 @@ -action_being_raided = { - type = alert - check_create_action = { - every_hostile_raider = { - limit = { - NOT = { - root = { has_raid_immunity_against = prev } - } - any_army = { - is_raid_army = yes - location.province_owner ?= { - OR = { - this = root - any_liege_or_above = { this = root } - } - } - } - } - try_create_important_action = { - important_action_type = action_being_raided - actor = root - recipient = this - } - } - } - - effect = { - scope:recipient = { - random_army = { - limit = { - is_army_in_raid = yes - is_raid_army = yes - location.province_owner ?= { - OR = { - this = root - any_liege_or_above = { this = root } - } - } - } - alternative_limit = { - is_raid_army = yes - location.province_owner ?= { - OR = { - this = root - any_liege_or_above = { this = root } - } - } - } - if = { - limit = { is_army_in_raid = yes } - open_view_data = { - view = raid - } - } - pan_camera_to_province = location - } - } - } -} diff --git a/common/important_actions/00_reactive_advice.txt b/common/important_actions/00_reactive_advice.txt deleted file mode 100644 index f2747069e9..0000000000 --- a/common/important_actions/00_reactive_advice.txt +++ /dev/null @@ -1,734 +0,0 @@ -# Reactive Advice - -action_reactive_advice_mercenaries = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_mercenaries } - NOT = { any_hired_mercenary = { always = yes } } - OR = { - any_character_war = { - defender_war_score < -25 - casus_belli = { - primary_defender = root - } - } - any_character_war = { - attacker_war_score < -25 - casus_belli = { - primary_attacker = root - } - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_mercenaries - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_mercenaries - } -} - -action_reactive_advice_succession = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_succession } - has_character_flag = tutorial_reactive_advice_succession - } - try_create_important_action = { - important_action_type = action_reactive_advice_succession - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_succession - } -} - -action_reactive_advice_bastards = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_bastards } - has_character_flag = tutorial_reactive_advice_bastards - } - try_create_important_action = { - important_action_type = action_reactive_advice_bastards - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_bastards - } -} - -action_reactive_advice_protecting_against_hostile_schemes = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_protecting_against_hostile_schemes } - years_from_game_start >= 3 - OR = { - any_targeting_scheme = { - is_hostile = yes - } - AND = { - exists = cp:councillor_spymaster - cp:councillor_spymaster = { - opinion = { - target = root - value < -20 - } - } - } - NOT = { exists = cp:councillor_spymaster } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_protecting_against_hostile_schemes - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_protecting_against_hostile_schemes - } -} - -action_reactive_advice_protect_against_factions = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_protect_against_factions } - any_targeting_faction = { - always = yes - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_protect_against_factions - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_protect_against_factions - } -} - -action_reactive_advice_imprisoned = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_imprisoned } - is_imprisoned = yes - } - try_create_important_action = { - important_action_type = action_reactive_advice_imprisoned - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_imprisoned - } -} - -action_reactive_advice_county_control = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_county_control } - any_held_title = { - tier = tier_county - county_control < 80 - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_county_control - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_county_control - } -} - -action_reactive_advice_bankruptcy = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_bankruptcy } - gold < 0 - } - try_create_important_action = { - important_action_type = action_reactive_advice_bankruptcy - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_bankruptcy - } -} - -action_reactive_advice_rightful_liege = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_rightful_liege } - years_from_game_start >= 5 # For pacing reasons - is_at_war = no - any_vassal = { - highest_held_title_tier > 1 - is_landed = yes - primary_title = { - save_temporary_scope_as = primary_vassal_title - trigger_if = { # Counts are only Rightful Vassals if you hold their De Jure Duchy. - limit = { - tier = tier_county - } - root = { - any_held_title = { - count = all - NOT = { this = scope:primary_vassal_title.de_jure_liege } - } - } - } - trigger_else_if = { # Dukes are Rightful Vassals if you hold their De Jure Kingdom *OR* Empire. - limit = { - tier = tier_duchy - } - root = { - any_held_title = { - count = all - NOT = { is_de_jure_liege_or_above_target = scope:primary_vassal_title } - } - } - } - trigger_else_if = { # Kings are only Rightful Vassals if you hold their De Jure Empire. - limit = { - tier = tier_kingdom - } - root = { - any_held_title = { - count = all - NOT = { this = scope:primary_vassal_title.de_jure_liege } - } - } - } - trigger_else = { - always = no - } - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_rightful_liege - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_rightful_liege - } -} - -action_reactive_advice_bishop_endorsement = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_bishop_endorsement } - years_from_game_start >= 2 - faith = { has_doctrine = doctrine_theocracy_temporal } - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - is_ai = yes - opinion = { - target = root - value <= 0 - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_bishop_endorsement - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_bishop_endorsement - } -} - -action_reactive_advice_encyclopedia = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_encyclopedia } - } - try_create_important_action = { - important_action_type = action_reactive_advice_encyclopedia - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_encyclopedia - } -} - -action_reactive_advice_religion = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_religion } - years_from_game_start >= 4 # For pacing reasons - } - try_create_important_action = { - important_action_type = action_reactive_advice_religion - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_religion - } -} - -action_reactive_advice_dynamic_culture = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_dynamic_culture } - years_from_game_start >= 6 # For pacing reasons - } - try_create_important_action = { - important_action_type = action_reactive_advice_dynamic_culture - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_dynamic_culture - } -} - -action_reactive_advice_fabricate_claim = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_fabricate_claim } - is_at_war = no - #NOT = { any_claim = { always = yes } } - NOT = { - any_neighboring_and_across_water_top_liege_realm_owner = { - root = { - # Must have a valid display CB. - has_any_display_cb_on = prev - - # Can be suggested at most for rulers 1 tier above (e.g., Counts can have Dukes suggested, but never Kings.) - tier_difference = { - target = prev - value >= -1 - } - - # Must not be allied to or have truce with recipient. - NOR = { - is_allied_to = prev - has_truce = prev - } - } - } - } - any_character_to_title_neighboring_county = { - exists = this - save_temporary_scope_as = this_title - root = { - NOT = { has_claim_on = scope:this_title } # We do not already have a claim on this county. - NOT = { - any_claim = { - is_de_jure_liege_or_above_target = scope:this_title # We do not already have a claim on a title which includes this county. - } - } - NOT = { - any_held_title = { - is_de_jure_liege_or_above_target = scope:this_title # County does not already belong to us De Jure (because then we already have a CB for it). - } - } - NOT = { - faith = { - faith_hostility_level = { - target = scope:this_title.holder.top_liege.faith - value >= 2 # Holy Wars generally allowed in this case, so we don't need to fabricate. - } - } - } - NOR = { - # Don't fabricate claims on our allies! - is_allied_to = scope:this_title.holder - is_allied_to = scope:this_title.holder.top_liege - } - } - - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_fabricate_claim - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_fabricate_claim - } -} - -action_reactive_advice_education = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_education } - is_at_war = no - exists = player_heir - player_heir = { - dynasty = root.dynasty - is_adult = no - num_of_relation_guardian = 0 - exists = liege - liege = root - root = { - is_character_interaction_valid = { - recipient = prev - interaction = educate_child_interaction - } - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_education - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_education - } -} - -action_reactive_advice_tooltip_modes = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_tooltip_modes } - years_from_game_start >= 1 # For pacing reasons - is_at_war = no - } - try_create_important_action = { - important_action_type = action_reactive_advice_tooltip_modes - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_tooltip_modes - } -} - -action_perk_bonus_cap_modes = { - type = tutorial - icon = generic_reactive_advice - - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_perk_bonus_cap } - OR = { - AND = { - exists = var:current_sound_foundations_value - var:current_sound_foundations_value >= sound_foundations_max - } - AND = { - exists = var:current_embassies_perk_value - var:current_embassies_perk_value >= embassies_max - } - } - } - try_create_important_action = { - important_action_type = action_perk_bonus_cap_modes - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_perk_bonus_cap - } -} - -action_reactive_advice_varangian_adventure = { - type = tutorial - icon = generic_reactive_advice - - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_varangian_adventure } - any_independent_ruler = { - in_diplomatic_range = root - save_temporary_scope_as = target_ruler - root = { - has_cb_on = { - target = scope:target_ruler - cb = fp1_varangian_adventurer_conquest - } - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_varangian_adventure - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_varangian_adventure - } -} - -action_reactive_advice_court_positions = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_court_positions } - years_from_game_start >= 7 # For pacing reasons - } - try_create_important_action = { - important_action_type = action_reactive_advice_court_positions - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_court_positions - } -} - - -action_reactive_advice_artifact_inventory = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_artifact_inventory } - - any_character_artifact = { - NOR = { - artifact_slot_type = sculpture - artifact_slot_type = pedestal - artifact_slot_type = wall_big - artifact_slot_type = wall_small - artifact_slot_type = throne - artifact_slot_type = book - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_artifact_inventory - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_artifact_inventory - } -} - - -action_reactive_advice_tours_picking_vassals = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_tours_picking_vassals } - is_widget_open = "multi_destination_selection" - } - try_create_important_action = { - important_action_type = action_reactive_advice_tours_picking_vassals - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_tours_picking_vassals - } -} - - -action_reactive_advice_regency_for_liege = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_regency_for_liege } - has_active_diarchy = yes - } - try_create_important_action = { - important_action_type = action_reactive_advice_regency_for_liege - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_regency_for_liege - } -} - -action_reactive_advice_regency_for_regent = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_regency_for_regent } - is_diarch = yes - } - try_create_important_action = { - important_action_type = action_reactive_advice_regency_for_regent - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_regency_for_regent - } -} - -action_reactive_advice_set_future_regent = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_set_future_regent } - years_from_game_start >= 8 # For pacing reasons - has_active_diarchy = no - } - try_create_important_action = { - important_action_type = action_reactive_advice_set_future_regent - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_set_future_regent - } -} - -action_reactive_advice_travel_planning = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_travel_planning } - is_travelling = no - OR = { - is_widget_open = travel_planning_tutorial_uses_this_1 - is_widget_open = travel_planning_tutorial_uses_this_2 - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_travel_planning - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_travel_planning - } -} \ No newline at end of file diff --git a/common/important_actions/00_realm_actions.txt b/common/important_actions/00_realm_actions.txt deleted file mode 100644 index 288790aeb5..0000000000 --- a/common/important_actions/00_realm_actions.txt +++ /dev/null @@ -1,877 +0,0 @@ -### LAWFULLY IMPRISON - -action_can_lawfully_imprison = { - combine_into_one = yes - - check_create_action = { - every_vassal_or_below = { - try_create_lawfully_imprison = yes - } - every_courtier = { - try_create_lawfully_imprison = yes - } - } - - unimportant = { - scope:recipient = { - has_important_relationship_with_root_trigger = no - is_close_family_or_spouse_of_root_trigger = no - trigger_if = { - limit = { - is_landed = yes - target_is_liege_or_above = root - } - NOT = { - liege = root #Direct vassal - } - } - } - } - - effect = { - open_interaction_window = { - interaction = imprison_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_pardon = { - combine_into_one = yes - - check_create_action = { - every_vassal_or_below = { - try_create_pardon = yes - } - every_courtier = { - try_create_pardon = yes - } - } - - unimportant = { - scope:recipient = { - has_important_relationship_with_root_trigger = no - is_close_family_or_spouse_of_root_trigger = no - trigger_if = { - limit = { - is_landed = yes - target_is_liege_or_above = root - } - NOT = { - liege = root #Direct vassal - } - } - } - } - - effect = { - open_interaction_window = { - interaction = pardon_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_above_domain_limit = { - type = alert - - check_create_action = { - if = { - limit = { - domain_limit_available < 0 - } - try_create_important_action = { - important_action_type = action_above_domain_limit - actor = root - } - } - } - effect = { - root = { - open_view = my_realm - } - start_tutorial_lesson = reactive_advice_domain_limit - } -} - -action_above_vassal_limit = { - type = alert - - check_create_action = { - if = { - limit = { - vassal_limit_available < 0 - } - try_create_important_action = { - important_action_type = action_above_vassal_limit - actor = root - } - } - } - effect = { - scope:actor = { - open_view = my_realm - } - start_tutorial_lesson = reactive_advice_vassal_limit - } -} - -### TOO MANY HELD DUCHIES -action_too_many_held_duchies = { - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - if = { - limit = { - has_too_many_held_duchies_trigger = yes - } - every_held_title = { - limit = { - title_counts_towards_too_many_duchies_trigger = yes - } - try_create_important_action = { - important_action_type = action_too_many_held_duchies - landed_title = this - } - } - } - } - effect = { - scope:landed_title = { - open_view_data = { view = title_view_window } - } - } -} - -action_empty_council_position = { - type = alert - - check_create_action = { - if = { - limit = { - highest_held_title_tier > tier_barony - has_free_council_slot = yes - } - try_create_important_action = { - important_action_type = action_empty_council_position - actor = root - } - } - } - effect = { - scope:actor = { - open_view_data = { - view = council_window - } - } - } -} - -action_powerful_vassal_not_on_council = { - combine_into_one = yes - priority = 700 - - check_create_action = { - every_vassal = { - limit = { - is_powerful_vassal = yes - highest_held_title_tier > tier_barony - is_councillor = no - can_be_councillor_basics_trigger = yes - } - try_create_important_action = { - important_action_type = action_powerful_vassal_not_on_council - actor = root - recipient = this - } - } - } - effect = { - scope:actor = { - open_view_data = { - view = council_window - } - } - scope:recipient = { - open_view_data = { - view = character - } - } - } -} - -action_wrong_holding_type = { - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - every_held_title = { - limit = { - is_leased_out = no - OR = { - AND = { - tier = tier_barony - has_wrong_holding_type = yes - title_province = { is_county_capital = no } - } - AND = { - tier = tier_county - title_province = { - barony = { - has_wrong_holding_type = yes - } - } - } - } - title_province = { - NOT = { has_holding_type = tribal_holding } - } - } - try_create_important_action = { - important_action_type = action_wrong_holding_type - actor = root - landed_title = this - } - } - } - - effect = { - scope:landed_title.title_province = { - open_view_data = { - view = holding_view - } - } - } -} - -action_upgrade_tribal_holding_type = { - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - every_held_title = { - limit = { - tier = tier_county - title_province = { - has_holding_type = tribal_holding - barony = { - is_leased_out = no - has_wrong_holding_type = yes - } - } - } - try_create_important_action = { - important_action_type = action_upgrade_tribal_holding_type - actor = root - landed_title = this - } - } - } - - effect = { - scope:landed_title.title_province = { - open_view_data = { - view = holding_view - } - } - } -} - -action_disabled_building = { - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - every_held_title = { - limit = { - is_leased_out = no - OR = { - AND = { - tier = tier_barony - has_disabled_building = yes - has_wrong_holding_type = no - title_province = { is_county_capital = no } - } - AND = { - tier = tier_county - title_province = { - barony = { - has_disabled_building = yes - has_wrong_holding_type = no - } - } - } - } - NOR = { - title_province = { has_holding_type = tribal_holding } #If this is true then "action_upgrade_tribal_holding_type" is enough - title_province = { religious_special_building_exclusion_trigger = yes } - } - } - try_create_important_action = { - important_action_type = action_disabled_building - actor = root - landed_title = this - } - } - } - - effect = { - scope:landed_title.title_province = { - open_view_data = { - view = holding_view - } - } - } -} - -action_dangerous_faction_targeting_me = { - type = alert - - check_create_action = { - if = { - limit = { - any_targeting_faction = { - is_dangerous_faction_trigger = yes - NOT = { exists = faction_war } - } - } - try_create_important_action = { - important_action_type = action_dangerous_faction_targeting_me - actor = root - } - } - } - - effect = { - open_view = { - view = factions_window - } - } -} - -action_county_in_dangerous_populist_faction = { - combine_into_one = yes - is_dangerous = yes - priority = 2000 - - check_create_action = { - # As a vassal, one of your counties is in a populist faction targeting your liege, and that faction is strong enough to gain discontent/push demands. - every_sub_realm_title = { - limit = { - tier = tier_county - any_title_joined_faction = { - faction_is_type = populist_faction - faction_power > faction_power_threshold - faction_target = { NOT = { this = root }} - } - } - - try_create_important_action = { - important_action_type = action_county_in_dangerous_populist_faction - actor = root - landed_title = this - } - } - } - - effect = { - scope:landed_title.title_province = { - open_view_data = { - view = holding_view - } - } - } -} - -action_mega_duke_penalty = { - type = alert - - check_create_action = { - if = { - limit = { - primary_title.tier = tier_duchy - sub_realm_size > define:NCharacter|MAX_COUNTIES_IN_REALM_AS_DUKE - } - try_create_important_action = { - important_action_type = action_mega_duke_penalty - actor = root - } - } - } - effect = { - start_tutorial_lesson = reactive_advice_megaduke_penalty - } -} - -action_in_debt = { - is_dangerous = yes - - check_create_action = { - if = { - limit = { - gold < 0 - } - try_create_important_action = { - important_action_type = action_in_debt - actor = root - } - } - } -} - -action_missing_ghw_beneficiary = { - type = alert - - check_create_action = { - if = { - limit = { - exists = faith.great_holy_war - faith.great_holy_war = { has_pledged_attacker = root } - NOT = { root = root.faith.great_holy_war.ghw_war_declarer } #Not for the Caliph himself. - NOT = { exists = ghw_beneficiary } - } - try_create_important_action = { - important_action_type = action_missing_ghw_beneficiary - actor = root - } - } - } - effect = { - faith.great_holy_war = { - open_view_data = { - view = great_holy_war - } - } - } -} - -action_ghw_participation_alert = { - type = alert - - check_create_action = { - if = { - limit = { - exists = faith.great_holy_war - NOT = { faith.great_holy_war = { has_pledged_attacker = root } } - NOT = { has_character_flag = ghw_pledged_gold } - faith.great_holy_war = { is_directed_ghw = no } - faith.great_holy_war = { days_until_ghw_launch <= 200 } - faith = { save_temporary_scope_as = the_faith } - ghw_pope_annoyed_at_lack_of_participation_trigger = yes - ghw_pope_annoyed_at_lack_of_participation_tier_trigger = yes - } - try_create_important_action = { - important_action_type = action_ghw_participation_alert - actor = root - } - } - } - - effect = { - faith.great_holy_war = { - open_view_data = { - view = great_holy_war - } - } - } -} - -action_not_endorsed_by_realm_priest = { - is_dangerous = yes - check_create_action = { - if = { - limit = { - faith = { has_doctrine = doctrine_theocracy_temporal } - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - is_ai = yes - opinion = { - target = root - value <= 0 - } - } - any_sub_realm_barony = { #They can actually provide you with levies - title_province = { has_building_with_flag = temple } - } - } - try_create_important_action = { - important_action_type = action_not_endorsed_by_realm_priest - actor = root - recipient = root.cp:councillor_court_chaplain - } - } - } - effect = { - scope:actor.cp:councillor_court_chaplain = { - open_view_data = { - view = character - } - } - open_interaction_window = { - interaction = sway_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_not_endorsed_by_realm_priest_no_holding = { - is_dangerous = yes - check_create_action = { - if = { - limit = { - faith = { has_doctrine = doctrine_theocracy_temporal } - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - is_ai = yes - opinion = { - target = root - value <= 0 - } - } - NOT = { - any_sub_realm_barony = { #They can't provide you with levies - title_province = { has_building_with_flag = temple } - } - } - } - try_create_important_action = { - important_action_type = action_not_endorsed_by_realm_priest_no_holding - actor = root - recipient = root.cp:councillor_court_chaplain - } - } - } - effect = { - scope:actor.cp:councillor_court_chaplain = { - open_view_data = { - view = character - } - } - open_interaction_window = { - interaction = sway_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_low_control_in_county = { - is_dangerous = yes - combine_into_one = yes - check_create_action = { - every_held_title = { - limit = { - tier = tier_county - county_control <= 90 - save_temporary_scope_as = county_check - trigger_if = { #Marshal is not already working on it - limit = { - exists = root.cp:councillor_marshal - root.cp:councillor_marshal = { is_performing_council_task = task_increase_control } - } - root.cp:councillor_marshal = { - NOT = { councillor_task_target = scope:county_check.title_province } - } - } - } - try_create_important_action = { - important_action_type = action_low_control_in_county - landed_title = this - actor = root - } - } - } - - effect = { - scope:landed_title.title_province = { - open_view_data = { - view = holding_view - } - } - } -} - -action_can_use_hook_to_change_contract = { - combine_into_one = yes - check_create_action = { - every_vassal = { - limit = { - is_ruler = yes - root = { - has_usable_hook = prev - } - vassal_contract_has_modifiable_obligations = yes - vassal_contract_is_blocked_from_modification = no - is_busy_in_events_localised = yes - NOT = { is_at_war_with = root } - NOT = { - government_has_flag = government_is_clan - } - } - try_create_important_action = { - important_action_type = action_can_use_hook_to_change_contract - actor = root - recipient = this - } - } - } - - effect = { - open_interaction_window = { - interaction = liege_modify_vassal_contract_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_grant_vassal_to_rightful_liege = { - priority = 800 - combine_into_one = yes - - check_create_action = { - every_vassal = { - # Evaluate our base conditions of if the vassal is not our de jure - limit = { - save_temporary_scope_as = vassal_to_transfer - - highest_held_title_tier > tier_barony - is_busy_in_events_localised = yes - - NOT = { is_at_war_with = root } - - NOT = { - scope:vassal_to_transfer = { - any_vassal_or_below = { - is_at_war_with = root - } - } - } - NOT = { - primary_title.de_jure_liege.holder = liege - } - NOT = { - root.diarch ?= this - } - } - - # Then we try to see if we can get someone to grant them to - save_scope_as = vassal_to_transfer - - # Either the actual de jure holder - if = { - limit = { - exists = primary_title.de_jure_liege.holder - - primary_title.de_jure_liege.holder = { - liege = scope:vassal_to_transfer.liege - - is_busy_in_events_localised = yes - NOR = { - is_at_war_with = root - is_at_war_with = scope:vassal_to_transfer - } - } - } - try_create_important_action = { - important_action_type = action_grant_vassal_to_rightful_liege - actor = root - recipient = this.primary_title.de_jure_liege.holder - secondary_actor = this - } - } - - # Or the liege of the de jure holder - if = { - limit = { - exists = primary_title.de_jure_liege.holder.liege - - primary_title.de_jure_liege.holder.liege = { - NOT = { this = root } - liege = scope:vassal_to_transfer.liege - - is_busy_in_events_localised = yes - NOT = { - is_at_war_with = root - } - } - } - try_create_important_action = { - important_action_type = action_grant_vassal_to_rightful_liege - actor = root - recipient = this.primary_title.de_jure_liege.holder.liege - secondary_actor = this - } - } - } - } - - effect = { - open_interaction_window = { - interaction = grant_vassal_interaction - actor = scope:actor - recipient = scope:recipient - secondary_actor = scope:secondary_actor - } - } -} - - -action_can_create_head_of_faith_title = { - check_create_action = { - if = { - limit = { - faith = { - NOT = { exists = religious_head } - has_doctrine = doctrine_temporal_head - can_create_temporal_head_of_faith_title_trigger = yes - } - } - try_create_important_action = { - important_action_type = action_can_create_head_of_faith_title - actor = root - } - } - } - - effect = { - scope:actor.faith = { - open_view_data = { - view = faith - } - } - } -} - -action_can_create_head_of_faith_title_spiritual = { - check_create_action = { - if = { - limit = { - faith = { - NOT = { exists = religious_head } - has_doctrine = doctrine_spiritual_head - can_create_spiritual_head_of_faith_title_trigger = yes - } - } - try_create_important_action = { - important_action_type = action_can_create_head_of_faith_title_spiritual - actor = root - } - } - } - - unimportant = { - short_term_gold < 300 - } - - effect = { - scope:actor.faith = { - open_view_data = { - view = faith - } - } - } -} - -action_can_claim_liege_title = { - priority = 1000 - check_create_action = { - if = { - limit = { - is_independent_ruler = no - liege = { - any_held_title = { - tier >= tier_county - NOT = { any_claimant = { this = root } } - } - NOT = { - has_strong_hook = root - } - NOT = { - is_allied_to = root - } - any_held_title = { - any_in_de_jure_hierarchy = { - filter = { - tier = tier_county - } - continue = { - tier > tier_county - } - OR = { - holder = root - holder = { - target_is_liege_or_above = root - } - } - percent >= 0.51 - } - } - } - } - liege = { - ordered_held_title = { - order_by = tier - limit = { - any_in_de_jure_hierarchy = { - filter = { - tier = tier_county - } - continue = { - tier > tier_county - } - OR = { - holder = root - holder = { - target_is_liege_or_above = root - } - } - percent >= 0.51 - } - } - save_scope_as = title_to_claim - } - try_create_important_action = { - important_action_type = action_can_claim_liege_title - actor = root - recipient = this - } - } - } - } - - effect = { - open_interaction_window = { - interaction = vassal_claim_liege_title_interaction - actor = scope:actor - recipient = scope:recipient - target_title = scope:title_to_claim - } - } -} - -action_station_men_at_arms = { - priority = 650 - - check_create_action = { - if = { - limit = { - number_of_maa_regiments > number_of_stationed_maa_regiments - domain_size > number_of_stationed_maa_regiments - } - try_create_important_action = { - important_action_type = action_station_men_at_arms - actor = root - } - } - } - - effect = { - open_view_data = military - start_tutorial_lesson = reactive_advice_station_maa - } -} diff --git a/common/important_actions/00_temp_actions.txt b/common/important_actions/00_temp_actions.txt deleted file mode 100644 index 099b5d0c18..0000000000 --- a/common/important_actions/00_temp_actions.txt +++ /dev/null @@ -1,104 +0,0 @@ -### Temp ones. Delete them when the time comes - -#temp_action_hire_maa = { -# check_create_action = { -# if = { -# limit = { -# has_maa = no -# } -# try_create_important_action = { -# important_action_type = temp_action_hire_maa -# } -# } -# } -# -# effect = { -# scope:landed_title = { -# open_view = military -# } -# } -#} -# -#temp_action_declare_war = { -# combine_into_one = yes -# check_create_action = { -# every_neighboring_and_across_water_top_liege_realm_owner = { -# if = { -# limit = { -# root = { -# has_any_display_cb_on = prev -# } -# } -# try_create_important_action = { -# important_action_type = temp_action_declare_war -# actor = root -# recipient = this -# } -# } -# } -# } -# -# effect = { -# open_interaction_window = { -# interaction = declare_war_interaction -# actor = scope:actor -# recipient = scope:recipient -# } -# } -#} -# -#temp_action_fabricate_claim = { -# combine_into_one = yes -# check_create_action = { -# every_character_to_title_neighboring_and_across_water_county = { -# if = { -# limit = { -# root = { -# NOT = { has_claim_on = prev } -# } -# } -# try_create_important_action = { -# important_action_type = temp_action_fabricate_claim -# landed_title = this -# } -# } -# } -# } -# -# effect = { -# scope:landed_title = { -# open_view_data = { -# view = title_view_window -# } -# } -# } -#} -# -#temp_action_close_in_succession = { -# combine_into_one = yes -# check_create_action = { -# every_pretender_title = { -# if = { -# limit = { -# place_in_line_of_succession = { -# target = root -# value < 5 -# } -# } -# try_create_important_action = { -# important_action_type = temp_action_close_in_succession -# landed_title = this -# } -# } -# } -# } -# -# effect = { -# scope:landed_title = { -# open_view_data = { -# view = title_view_window -# } -# } -# } -#} -# \ No newline at end of file diff --git a/common/important_actions/00_title_actions.txt b/common/important_actions/00_title_actions.txt deleted file mode 100644 index 606a5b2888..0000000000 --- a/common/important_actions/00_title_actions.txt +++ /dev/null @@ -1,94 +0,0 @@ -### CREATE TITLE -action_can_create_title = { - combine_into_one = yes - priority = 500 - - check_create_action = { - ordered_alert_creatable_title = { # list all creatable/usurpable - order_by = tier - max = 99 - check_range_bounds = no - - try_create_important_action = { - important_action_type = action_can_create_title - landed_title = this - } - } - } - - unimportant = { - OR = { #These values are taken from CREATE_TITLE_GOLD_COST in the 00_defines.txt file - AND = { - scope:landed_title.tier = tier_duchy - short_term_gold < create_duchy_title_value - } - AND = { - scope:landed_title.tier = tier_kingdom - short_term_gold < create_kingdom_title_value - } - AND = { - scope:landed_title.tier = tier_kingdom - primary_title.tier ?= tier_empire - } - AND = { - scope:landed_title.tier = tier_empire - short_term_gold < create_empire_title_value - } - } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} - -### USURP TITLE -action_can_usurp_title = { - combine_into_one = yes - priority = 505 - check_create_action = { - ordered_alert_usurpable_title = { # list all creatable/usurpable - order_by = tier - max = 99 - check_range_bounds = no - - try_create_important_action = { - important_action_type = action_can_usurp_title - landed_title = this - } - } - } - - unimportant = { - OR = { #These values are taken from USURP_TITLE_GOLD_COST in the 00_defines.txt file - AND = { - scope:landed_title.tier = tier_duchy - short_term_gold < 250 - } - AND = { - scope:landed_title.tier = tier_kingdom - short_term_gold < 500 - } - AND = { - scope:landed_title.tier = tier_kingdom - primary_title.tier ?= tier_empire - } - AND = { - scope:landed_title.tier = tier_empire - short_term_gold < 1000 - } - } - } - - effect = { - scope:landed_title = { - open_view_data = { - view = title_view_window - } - } - } -} diff --git a/common/important_actions/00_war_actions.txt b/common/important_actions/00_war_actions.txt deleted file mode 100644 index c5b1cf94e7..0000000000 --- a/common/important_actions/00_war_actions.txt +++ /dev/null @@ -1,213 +0,0 @@ -### DECLARE WAR - -action_has_any_display_cb_on = { - priority = 600 - combine_into_one = yes - check_create_action = { - if = { - limit = { - gold >= 0 - NOT = { exists = involved_activity } - } - every_neighboring_and_across_water_top_liege_realm_owner = { - limit = { - save_temporary_scope_as = this_ruler - root = { - has_any_cb_on = scope:this_ruler - NOR = { - is_allied_to = scope:this_ruler - has_truce = scope:this_ruler - } - } - } - try_create_important_action = { - important_action_type = action_has_any_display_cb_on - actor = root - recipient = this - } - } - if = { - limit = { is_independent_ruler = no } - liege = { - every_vassal = { - limit = { - save_temporary_scope_as = this_ruler - root = { - has_any_cb_on = scope:this_ruler - NOR = { - is_allied_to = scope:this_ruler - has_truce = scope:this_ruler - } - } - } - try_create_important_action = { - important_action_type = action_has_any_display_cb_on - actor = root - recipient = this - } - } - } - } - } - } - - unimportant = { - scope:recipient = { - current_military_strength > root.current_military_strength - } - } - - effect = { - open_interaction_window = { - interaction = declare_war_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_call_ally = { - priority = 1000 - combine_into_one = yes - check_create_action = { - every_ally = { - save_temporary_scope_as = ally - if = { - limit = { - prev = { - is_character_interaction_valid = { - recipient = scope:ally - interaction = call_ally_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_call_ally - actor = root - recipient = scope:ally - } - } - } - } - - effect = { - open_interaction_window = { - interaction = call_ally_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_call_house_member = { - priority = 1000 - combine_into_one = yes - check_create_action = { - if = { - limit = { - OR = { - is_house_head = yes - AND = { - # DLC checking - has_fp2_dlc_trigger = yes - # Standard check - dynasty = { has_dynasty_perk = fp2_coterie_legacy_3 } - exists = house - } - } - } - house = { - every_house_member = { - save_temporary_scope_as = member - if = { - limit = { - root = { - is_character_interaction_valid = { - recipient = scope:member - interaction = call_house_member_to_war_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_call_house_member - actor = root - recipient = scope:member - } - } - } - } - } - } - - effect = { - open_interaction_window = { - interaction = call_house_member_to_war_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_call_dynasty_member = { - priority = 1000 - combine_into_one = yes - check_create_action = { - if = { - limit = { - is_dynast = yes - } - dynasty = { - every_dynasty_member = { - save_temporary_scope_as = member - if = { - limit = { - root = { - is_character_interaction_valid = { - recipient = scope:member - interaction = call_dynasty_member_to_war_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_call_dynasty_member - actor = root - recipient = scope:member - } - } - } - } - } - } - - effect = { - open_interaction_window = { - interaction = call_dynasty_member_to_war_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_not_enough_knights = { - check_create_action = { - if = { - limit = { - max_number_of_knights > root.number_of_knights - } - try_create_important_action = { - important_action_type = action_not_enough_knights - actor = root - } - } - } - effect = { - root = { - open_view = military - open_view = knights - } - } -} - - -#script needed: -# all de jure cbs diff --git a/common/important_actions/01_bp1_actions.txt b/common/important_actions/01_bp1_actions.txt deleted file mode 100644 index fd204b7730..0000000000 --- a/common/important_actions/01_bp1_actions.txt +++ /dev/null @@ -1,43 +0,0 @@ -action_ongoing_house_feud = { - priority = 300 - combine_into_one = yes - is_dangerous = yes - - check_create_action = { - if = { - limit = { - house.house_head = { - any_owned_story = { - story_type = story_cycle_house_feud - has_variable = house_feud_house - exists = var:house_feud_house.house_head - var:house_feud_house.house_head = { save_temporary_scope_as = house_feud_rival_temp } - } - } - } - try_create_important_action = { - important_action_type = action_ongoing_house_feud - actor = root - recipient = scope:house_feud_rival_temp - } - } - } - - unimportant = { - house.house_head = { - any_owned_story = { - story_type = story_cycle_house_feud - has_variable = house_feud_house - house_feud_balance_value < -0.5 - } - } - } - - effect = { - scope:recipient.house = { - open_view_data = { - view = dynasty_house_view - } - } - } -} diff --git a/common/important_actions/01_ep1_actions.txt b/common/important_actions/01_ep1_actions.txt deleted file mode 100644 index 7703095cfc..0000000000 --- a/common/important_actions/01_ep1_actions.txt +++ /dev/null @@ -1,121 +0,0 @@ - -action_has_unopened_court_event = { - type = alert - - check_create_action = { - if = { - limit = { - has_ep1_dlc_trigger = yes - has_local_player_unopened_court_event = yes - } - - try_create_important_action = { - important_action_type = action_has_unopened_court_event - } - } - } - - effect = { - open_view_data = royal_court - } -} - -action_has_open_court_event = { - type = alert - - check_create_action = { - if = { - limit = { - has_ep1_dlc_trigger = yes - has_local_player_open_court_event = yes - } - - try_create_important_action = { - important_action_type = action_has_open_court_event - } - } - } - - effect = { - if = { - limit = { has_royal_court = yes } - open_view_data = { - view = royal_court - player = root - } - } - else = { - liege = { - open_view_data = { - view = royal_court - secondary_actor = root - player = root - } - } - } - } -} - - - -action_has_courtier_or_guest_with_inspiration = { - type = alert - soundeffect = "event:/DLC/EP1/SFX/UI/Notifications/inspiration_inspired_individual" - - check_create_action = { - if = { - limit = { - has_dlc_feature = royal_court - has_royal_court = yes - - any_courtier_or_guest = { - exists = inspiration - has_completed_inspiration = no - inspiration = { - NOT = { exists = inspiration_sponsor } - save_temporary_scope_as = this_inspiration - } - root.gold >= scope:this_inspiration.base_inspiration_gold_cost - } - } - - try_create_important_action = { - important_action_type = action_has_courtier_or_guest_with_inspiration - recipient = this - } - } - } - - effect = { - open_view_data = royal_court - start_tutorial_lesson = reactive_advice_fund_inspiration - } -} - -#HIRE COURT PHYSICIAN -action_can_hire_court_physician = { - priority = 300 - combine_into_one = yes - is_dangerous = yes - check_create_action = { - if = { - limit = { - NOR = { - employs_court_position = court_physician_court_position - any_court_position_holder = { - type = court_physician_court_position - } - } - monthly_character_income > monthly_character_expenses - } - try_create_important_action = { - important_action_type = action_can_hire_court_physician - actor = root - } - } - } - - effect = { - open_appoint_court_position_window = court_physician_court_position - } -} diff --git a/common/important_actions/01_ep1_reactive_advice.txt b/common/important_actions/01_ep1_reactive_advice.txt deleted file mode 100644 index c36bddcc4b..0000000000 --- a/common/important_actions/01_ep1_reactive_advice.txt +++ /dev/null @@ -1,125 +0,0 @@ -action_reactive_advice_form_hybrid_culture = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - - check_create_action = { - if = { - limit = { - has_dlc_feature = hybridize_culture - should_show_tutorial_alert = { LESSON = reactive_advice_form_hybrid_culture } - is_tutorial_lesson_completed = reactive_advice_dynamic_culture - - any_sub_realm_county = { - culture = { - NOT = { this = root.culture } - add_to_temporary_list = cultures - } - } - - any_in_list = { - list = cultures - save_temporary_scope_as = this_culture - root = { - can_hybridize = scope:this_culture - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_form_hybrid_culture - actor = root - culture = scope:this_culture - } - } - } - - effect = { - - scope:culture = { - open_view_data = { - view = culture_window - } - } - - start_tutorial_lesson = reactive_advice_form_hybrid_culture - } -} - -action_reactive_advice_should_form_hybrid_culture = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - - check_create_action = { - if = { - limit = { - should_show_tutorial_alert = { LESSON = reactive_advice_should_form_hybrid_culture } - has_dlc_feature = hybridize_culture - NOT = { is_tutorial_lesson_completed = reactive_advice_should_form_hybrid_culture } - - any_sub_realm_county = { - culture = { - NOT = { this = root.culture } - add_to_temporary_list = cultures - } - } - - any_in_list = { - list = cultures - save_temporary_scope_as = this_culture - - is_valid_for_hybridising_trigger = { - CULTURE = scope:this_culture - CHARACTER = root - } - root = { - any_sub_realm_county = { - percent >= 0.15 - culture = scope:this_culture - } - } - } - } - try_create_important_action = { - important_action_type = action_reactive_advice_should_form_hybrid_culture - actor = root - culture = scope:this_culture - } - } - } - - effect = { - - scope:culture = { - open_view_data = { - view = culture_window - } - } - - start_tutorial_lesson = reactive_advice_should_form_hybrid_culture - } -} - - -action_reactive_advice_royal_court = { - type = tutorial - icon = generic_reactive_advice - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_reactive_advice" - check_create_action = { - if = { - limit = { - has_dlc_feature = royal_court - has_royal_court = yes - should_show_tutorial_alert = { LESSON = reactive_advice_royal_court } - } - try_create_important_action = { - important_action_type = action_reactive_advice_royal_court - actor = root - } - } - } - - effect = { - start_tutorial_lesson = reactive_advice_royal_court - } -} diff --git a/common/important_actions/01_fp1_actions.txt b/common/important_actions/01_fp1_actions.txt deleted file mode 100644 index b1c9d9b77d..0000000000 --- a/common/important_actions/01_fp1_actions.txt +++ /dev/null @@ -1,117 +0,0 @@ -### CAN CHALLENGE TO SINGLE COMBAT - -action_can_challenge_to_single_combat = { - priority = 1000 - combine_into_one = yes - - check_create_action = { - # Do you have the DLC? - if = { - limit = { has_fp1_dlc_trigger = yes } - # First, do you meet the requirements to start a TbC? - if = { - limit = { basic_can_have_trial_by_combat_trigger = yes } - # Next, do you have anyone you could possibly start one again? - ## Technically, we'll be missing out a few options here, but we *should* get most of them this way. - ## Relations. - every_relation = { - type = rival - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = challenge_to_trial_by_combat_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_challenge_to_single_combat - actor = root - recipient = this - } - } - ## Co-vassals. - if = { - limit = { is_independent_ruler = no } - top_liege = { - every_vassal_or_below = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = challenge_to_trial_by_combat_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_challenge_to_single_combat - actor = root - recipient = this - } - } - } - } - every_ruler = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = challenge_to_trial_by_combat_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_challenge_to_single_combat - actor = root - recipient = this - } - } - } - } - } - - unimportant = {} - - effect = { - # And open the appropriate TbC window. - open_interaction_window = { - interaction = challenge_to_trial_by_combat_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} - -action_can_make_shieldmaiden = { - priority = 900 - combine_into_one = yes - check_create_action = { - # Do you have the DLC? - if = { - limit = { has_fp1_dlc_trigger = yes } - every_close_family_member = { - limit = { - root = { - is_character_interaction_potentially_accepted = { - recipient = prev - interaction = designate_shieldmaiden_interaction - } - } - } - try_create_important_action = { - important_action_type = action_can_make_shieldmaiden - actor = root - recipient = this - } - } - } - } - - effect = { - open_interaction_window = { - interaction = designate_shieldmaiden_interaction - actor = scope:actor - recipient = scope:recipient - } - } -} diff --git a/common/important_actions/04_ep2_actions.txt b/common/important_actions/04_ep2_actions.txt deleted file mode 100644 index ff1ca193fc..0000000000 --- a/common/important_actions/04_ep2_actions.txt +++ /dev/null @@ -1,296 +0,0 @@ -action_recent_hunt_sighting = { - priority = 200 - combine_into_one = yes - - check_create_action = { - if = { - limit = { - is_available_healthy_adult = yes - NOT = { - culture = { has_cultural_parameter = cannot_hunt } - } - NOT = { has_character_flag = disabled_hunt_sightings_flag } - has_character_flag = recent_hunt_sighting - } - every_sub_realm_county = { - limit = { - OR = { - has_county_modifier = hunt_sighting_standard_modifier - has_county_modifier = hunt_sighting_dangerous_modifier - has_county_modifier = hunt_sighting_legendary_modifier - has_county_modifier = hunt_sighting_falconry_modifier - } - # Only list sightings you yourself were informed of - var:sighting_owner = root - } - try_create_important_action = { - important_action_type = action_recent_hunt_sighting - actor = root - landed_title = this - } - } - } - } - - effect = { - open_view_data = { - view = activity_list_detail_host_window - data = activity_type:activity_hunt - } - } -} - -# you can appoint an accolade successor RIGHT NOW -action_accolade_successor_available = { - combine_into_one = yes - priority = 500 - - check_create_action = { - if = { - limit = { - has_dlc_feature = accolades - any_active_accolade = { - NOT = { exists = accolade_successor } - save_temporary_scope_as = accolade_temp - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - } - every_active_accolade = { - limit = { - NOT = { exists = accolade_successor } - save_temporary_scope_as = accolade_temp - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - try_create_important_action = { - important_action_type = action_accolade_successor_available - actor = root - recipient = this - } - } - } - } - - effect = { - open_view_data = military - open_view = knights - } -} - -# you have an accolade that's missing a successor -action_find_accolade_successor = { - priority = 500 - combine_into_one = yes - - check_create_action = { - if = { - limit = { - has_dlc_feature = accolades - any_active_accolade = { - NOT = { exists = accolade_successor } - save_temporary_scope_as = accolade_temp - NOT = { - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - } - } - every_active_accolade = { - limit = { - NOT = { exists = accolade_successor } - save_temporary_scope_as = accolade_temp - NOT = { - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - } - try_create_important_action = { - important_action_type = action_find_accolade_successor - actor = root - recipient = this - } - } - } - } - unimportant = { - NOT = { - any_active_accolade = { - NOT = { exists = accolade_successor } - has_potential_accolade_successors = no - NOT = { - primary_type = { - this = accolade_type:house_knight_attribute - } - } - acclaimed_knight = { - save_temporary_scope_as = potential_recipient - root = { - is_character_interaction_valid = { - recipient = scope:potential_recipient - interaction = find_suitable_accolade_successor_interaction - } - } - } - } - } - } - - effect = { - open_view_data = military - open_view = knights - } -} - -# you have an empty accolade slot and a knight who could fill it -action_empty_accolade_slot = { - priority = 500 - - check_create_action = { - if = { - limit = { - max_active_accolades > 0 - num_active_accolades < max_active_accolades - has_dlc_feature = accolades - } - try_create_important_action = { - important_action_type = action_empty_accolade_slot - actor = root - } - } - } - unimportant = { - any_active_accolade = { - save_temporary_scope_as = accolade_temp - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - can_be_acclaimed = yes - } - } - } - } - effect = { - open_view_data = military - open_view = knights - start_tutorial_lesson = reactive_advice_create_accolade - } -} - -# you have an inactive accolade that can be reinstated -action_inactive_accolade = { - combine_into_one = yes - priority = 500 - - check_create_action = { - if = { - limit = { - has_dlc_feature = accolades - max_active_accolades > num_active_accolades - OR = { - any_accolade = { - is_accolade_active = no - exists = acclaimed_knight - } - - } - } - every_accolade = { - limit = { - is_accolade_active = no - exists = acclaimed_knight - } - try_create_important_action = { - important_action_type = action_inactive_accolade - actor = root - recipient = this - } - } - } - else_if = { - limit = { - has_dlc_feature = accolades - max_active_accolades > num_active_accolades - any_accolade = { - is_accolade_active = no - NOT = { exists = acclaimed_knight } - save_temporary_scope_as = accolade_temp - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - } - every_accolade = { - limit = { - is_accolade_active = no - NOT = { exists = acclaimed_knight } - save_temporary_scope_as = accolade_temp - root = { - any_knight = { - is_acclaimed = no - is_valid_successor_for_accolade = scope:accolade_temp - highest_held_title_tier <= tier_barony - } - } - } - try_create_important_action = { - important_action_type = action_inactive_accolade - actor = root - recipient = this - } - } - } - } - effect = { - open_view_data = military - open_view = knights - } -} - -#you should use the "restore accolade" decision -# you have an inactive accolade that can be reinstated -action_restore_accolade = { - priority = 1000 - - check_create_action = { - if = { - limit = { - has_dlc_feature = accolades - can_execute_decision = call_for_acclaimed_knight_candidates_decision - } - try_create_important_action = { - important_action_type = action_restore_accolade - actor = root - } - } - } - effect = { - open_view = decisions - } -} diff --git a/common/inspirations/00_inspirations.txt b/common/inspirations/00_inspirations.txt index 43287f351f..9cd3996c27 100644 --- a/common/inspirations/00_inspirations.txt +++ b/common/inspirations/00_inspirations.txt @@ -1432,3 +1432,91 @@ alchemy_inspiration = { } } } + +research_inspiration = { + gold = fp3_research_base_cost + + progress_chance = 75 + + is_valid = { + scope:inspiration_owner = { + # Must be court scholar of sponsor + has_court_position = court_scholar_court_position + trigger_if = { + limit = { is_imprisoned = yes } + is_imprisoned_by = scope:inspiration_owner + } + NOT = { has_character_flag = research_invalidated } + } + } + + on_monthly = { + scope:inspiration_sponsor = { + trigger_event = { on_action = research_ongoing_events } + } + } + on_complete = { + scope:inspiration_owner = { + set_variable = { + name = created_artifact_for + value = scope:inspiration_sponsor + } + set_variable = { + name = created_artifact_type + value = flag:research + } + } + scope:inspiration_sponsor = { + trigger_event = fp3_scholarship.8999 + } + } + + on_owner_death = { + # For loc + save_scope_value_as = { + name = research_inspiration + value = yes + } + if = { + limit = { exists = scope:inspiration_sponsor } + scope:inspiration_sponsor = { + trigger_event = { + on_action = inspiration_invalidated_events + } + } + } + } + + on_invalidated = { + save_scope_value_as = { + name = research_inspiration + value = yes + } + if = { + limit = { + exists = scope:inspiration_owner + scope:inspiration_owner = { NOT = { has_character_flag = research_invalidated } } + } + scope:inspiration_sponsor = { + trigger_event = { + on_action = inspiration_invalidated_events + } + } + } + } + + on_sponsor_invalidated = { + save_scope_value_as = { + name = research_inspiration + value = yes + } + if = { + limit = { exists = scope:inspiration_sponsor } + scope:inspiration_sponsor = { + trigger_event = { + on_action = inspiration_invalidated_events + } + } + } + } +} diff --git a/common/landed_titles/_landed_titles.info b/common/landed_titles/_landed_titles.info index 596dee3746..edfa645732 100644 --- a/common/landed_titles/_landed_titles.info +++ b/common/landed_titles/_landed_titles.info @@ -151,6 +151,12 @@ k_my_title = { # new holder). can_create_on_partition = {} + ### Brief: can_destroy ( trigger ) + # Special requirements for voluntarily destroying the title (essentially only the player will ever do this). + # + # root: the character trying to destroy the title + can_destroy = { } + ### Brief: cultural_names ( string key map ) # X is a name of a culture name list (see common/culture/name_lists). If # the title is held by somebody with that name list X, the title name will diff --git a/common/laws/00_realm_laws.txt b/common/laws/00_realm_laws.txt index 7028828bb6..d002083dd1 100644 --- a/common/laws/00_realm_laws.txt +++ b/common/laws/00_realm_laws.txt @@ -98,7 +98,7 @@ crown_authority = { courtly_opinion = -5 zealot_opinion = -10 minority_opinion = -10 - vassal_tax_mult = 0.1 + vassal_tax_contribution_mult = 0.1 vassal_levy_contribution_mult = 0.1 } flag = uses_crown_authority @@ -168,7 +168,7 @@ crown_authority = { courtly_opinion = -10 zealot_opinion = -20 minority_opinion = -30 - vassal_tax_mult = 0.25 + vassal_tax_contribution_mult = 0.25 vassal_levy_contribution_mult = 0.25 } flag = uses_crown_authority diff --git a/common/laws/00_succession_laws.txt b/common/laws/00_succession_laws.txt index f4700566af..edc6690523 100644 --- a/common/laws/00_succession_laws.txt +++ b/common/laws/00_succession_laws.txt @@ -21,6 +21,7 @@ AND = { # Warcraft has_monarchy_government_trigger = yes + NOT = { government_has_flag = government_is_clan } culture = { NOR = { @@ -49,6 +50,10 @@ pass_cost = { prestige = change_succession_law_prestige_cost } + + potential = { + NOT = { government_has_flag = government_is_clan } + } } partition_succession_law = { @@ -70,6 +75,7 @@ # Warcraft has_monarchy_government_trigger = yes + NOT = { government_has_flag = government_is_clan } culture = { has_innovation = innovation_hereditary_rule @@ -101,6 +107,10 @@ value = 1 } } + + potential = { + NOT = { government_has_flag = government_is_clan } + } } high_partition_succession_law = { @@ -122,6 +132,7 @@ # Warcraft has_monarchy_government_trigger = yes + NOT = { government_has_flag = government_is_clan } culture = { has_innovation = innovation_heraldry @@ -157,6 +168,10 @@ value = 2 } } + + potential = { + NOT = { government_has_flag = government_is_clan } + } } single_heir_succession_law = { @@ -176,6 +191,12 @@ } can_pass = { can_change_succession_law_trigger = yes + trigger_if = { + limit = { + government_has_flag = government_is_clan + } + piety_level >= 3 + } } should_start_with = { historical_succession_access_single_heir_succession_law_trigger = yes @@ -195,22 +216,25 @@ } pass_cost = { prestige = change_succession_law_prestige_cost + piety = { + value = 0 + if = { + limit = { + government_has_flag = government_is_clan + } + add = { + desc = "clan_government_cost_tooltip" + value = 1500 + } + } + } } revoke_cost = { prestige = change_succession_law_prestige_cost } ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } + value = 3 } } @@ -231,6 +255,12 @@ } can_pass = { can_change_succession_law_trigger = yes + trigger_if = { + limit = { + government_has_flag = government_is_clan + } + piety_level >= 3 + } } succession = { order_of_succession = inheritance @@ -248,13 +278,25 @@ } pass_cost = { prestige = change_succession_law_prestige_cost + piety = { + value = 0 + if = { + limit = { + government_has_flag = government_is_clan + } + add = { + desc = "clan_government_cost_tooltip" + value = 1500 + } + } + } } revoke_cost = { prestige = change_succession_law_prestige_cost } } - single_heir_dynasty_house = { + single_heir_dynasty_house = { # LAST CALL can_keep = { can_keep_single_heir_dynasty_house_trigger = yes # Vassal Contract allows it @@ -271,6 +313,12 @@ } can_pass = { can_change_single_heir_dynasty_house_succession_law_trigger = yes + trigger_if = { + limit = { + government_has_flag = government_is_clan + } + piety_level >= 3 + } } should_start_with = { historical_succession_access_single_heir_dynasty_house_trigger = yes @@ -290,6 +338,18 @@ } pass_cost = { prestige = change_succession_law_prestige_cost + piety = { + value = 0 + if = { + limit = { + government_has_flag = government_is_clan + } + add = { + desc = "clan_government_cost_tooltip" + value = 1500 + } + } + } } revoke_cost = { prestige = change_succession_law_prestige_cost @@ -322,6 +382,10 @@ faith = same_faith pool_character_config = pool_theocratic_succession } + + potential = { + can_have_bishop_theocratic_succession_law_trigger = yes + } } holy_order_succession_law = { @@ -339,6 +403,10 @@ faith = same_faith pool_character_config = pool_holy_order_succession } + + potential = { + can_have_holy_order_succession_law_trigger = yes + } } mercenary_company_succession_law = { @@ -355,6 +423,10 @@ order_of_succession = company pool_character_config = pool_mercenary_succession } + + potential = { + can_have_mercenary_succession_law_trigger = yes + } } city_succession_law = { @@ -371,6 +443,287 @@ order_of_succession = generate pool_character_config = pool_city_succession } + + potential = { + can_have_city_succession_law_trigger = yes + } + } + + clan_antagonistic_partition_succession_law = { + can_keep = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + can_pass = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + can_have = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = antagonistic + } + } + + should_start_with = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + } + + potential = { + government_has_flag = government_is_clan + } + + requires_approve = { + NOT = { + government_has_flag = government_is_clan + } + } + + succession = { + order_of_succession = inheritance + traversal_order = children + rank = oldest + title_division = partition + } + + flag = same_house_vassals_gain_claim_on_primary_title + flag = house_unity_stage_antagonistic + + modifier = { + dynasty_house_opinion = -10 + glory_hound_opinion = 15 + zealot_opinion = 10 + player_heir_opinion = 10 + eligible_child_except_player_heir_opinion = 5 + } + + widget_name = "widget_clan_law" + } + + clan_competitive_partition_succession_law = { + can_keep = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = competitive + } + } + can_pass = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = competitive + } + } + can_have = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = competitive + } + } + should_start_with = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = competitive } + } + + potential = { + government_has_flag = government_is_clan + } + + requires_approve = { + NOT = { + government_has_flag = government_is_clan + } + } + + succession = { + order_of_succession = inheritance + traversal_order = children + rank = oldest + title_division = partition + } + + flag = same_house_vassals_gain_claim_on_primary_title + flag = house_unity_stage_competitive + + modifier = { + glory_hound_opinion = 10 + zealot_opinion = 5 + player_heir_opinion = 10 + eligible_child_except_player_heir_opinion = 5 + } + + widget_name = "widget_clan_law" + } + + clan_impassive_partition_succession_law = { + can_keep = { + government_has_flag = government_is_clan + house ?= { + OR = { + has_house_unity_stage = impassive + # In case the house is fully unlanded + has_house_unity = no + } + } + } + can_pass = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = impassive + } + } + can_have = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = impassive + } + } + should_start_with = { + government_has_flag = government_is_clan + house ?= { + OR = { + has_house_unity_stage = impassive + # In case the house is fully unlanded + has_house_unity = no + } + } + } + + potential = { + government_has_flag = government_is_clan + } + + requires_approve = { + NOT = { + government_has_flag = government_is_clan + } + } + + flag = house_unity_stage_impassive + + succession = { + order_of_succession = inheritance + traversal_order = children + rank = oldest + title_division = partition + primary_heir_minimum_share = 0.25 + } + modifier = { + glory_hound_opinion = 5 + parochial_opinion = 5 + player_heir_opinion = 15 + } + + widget_name = "widget_clan_law" + } + + clan_friendly_partition_succession_law = { + can_keep = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = friendly + } + } + can_pass = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = friendly + } + } + can_have = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = friendly + } + } + should_start_with = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = friendly } + } + + potential = { + government_has_flag = government_is_clan + } + + requires_approve = { + NOT = { + government_has_flag = government_is_clan + } + } + + flag = house_unity_stage_friendly + + succession = { + order_of_succession = inheritance + traversal_order = children + rank = oldest + title_division = partition + primary_heir_minimum_share = 0.33 + } + modifier = { + parochial_opinion = 10 + courtly_opinion = 5 + player_heir_opinion = 25 + } + + widget_name = "widget_clan_law" + } + + clan_harmonious_partition_succession_law = { + can_keep = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = harmonious + } + } + can_pass = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = harmonious + } + } + can_have = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = harmonious + } + } + should_start_with = { + government_has_flag = government_is_clan + house ?= { + has_house_unity_stage = harmonious + } + } + potential = { + government_has_flag = government_is_clan + } + + requires_approve = { + NOT = { + government_has_flag = government_is_clan + } + } + + flag = house_unity_stage_harmonious + + succession = { + order_of_succession = inheritance + traversal_order = children + rank = oldest + title_division = partition + primary_heir_minimum_share = 0.66 + } + modifier = { + parochial_opinion = 15 + courtly_opinion = 10 + player_heir_opinion = 40 + } + + widget_name = "widget_clan_law" } # Warcraft @@ -430,10 +783,8 @@ succession_gender_laws = { } should_start_with = { faith = { - always = no + like_islam_religion_trigger = yes has_doctrine = doctrine_gender_male_dominated - - # Warcraft } } succession = { diff --git a/common/laws/01_title_succession_laws.txt b/common/laws/01_title_succession_laws.txt index 8a57045153..e2b96b53a4 100644 --- a/common/laws/01_title_succession_laws.txt +++ b/common/laws/01_title_succession_laws.txt @@ -4,9 +4,10 @@ can_have = { government_has_flag = government_is_feudal highest_held_title_tier >= tier_duchy - NOT = { #Cultures have their special flavor. + NOR = { #Cultures have their special flavor. #culture = { has_cultural_parameter = witenagemot_succession_enabled } culture = { has_cultural_parameter = scandinavian_elective_enabled } + culture = { has_cultural_parameter = tribal_elective_enabled } #FP3 addition } } can_pass = { @@ -94,6 +95,7 @@ prestige = change_title_succession_law_prestige_cost } } + #Thing scandinavian_elective_succession_law = { can_have = { @@ -124,6 +126,7 @@ prestige = change_title_succession_law_prestige_cost } } + #Tanistry gaelic_elective_succession_law = { can_have = { @@ -162,6 +165,36 @@ } } + #Jirga elective + tribal_elective_succession_law = { #FOR FP3 + can_have = { + OR = { + has_monarchy_government_trigger = yes + government_has_flag = government_is_tribal + } + highest_held_title_tier >= tier_kingdom + } + can_pass = { + can_change_title_law_trigger = yes + culture = { has_cultural_parameter = tribal_elective_enabled } + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = tribal_elective + } + flag = elective_succession_law + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + #Player Heir temporal_head_of_faith_succession_law = { can_title_have = { diff --git a/common/lease_contracts/00_theocracy_lease.txt b/common/lease_contracts/00_theocracy_lease.txt deleted file mode 100644 index ed49ba0675..0000000000 --- a/common/lease_contracts/00_theocracy_lease.txt +++ /dev/null @@ -1,91 +0,0 @@ -@ruler_share_top_opinion_from_lessee = 50 - -# Definition of lease used for organized churches. Required for the game to run. -theocracy_lease = { - hierarchy = { # hierarchy definition is required - ruler_valid = { - faith = { has_doctrine = doctrine_theocracy_temporal } - NOT = { government_has_flag = government_is_theocracy } - } - liege_or_vassal_valid = { - faith = scope:target.faith - } - lessee = cp:councillor_court_chaplain # should be a councillor - - barony_valid = { - title_province = { has_holding_type = church_holding } - } - } - - government = theocracy_government - valid_holdings = { church_holding } - - ruler_share_min_opinion_from_lessee = 1 - hook_strength_max_opinion = strong - - tax = { - lease_liege = 25 - rest = { - max = 50 # when updating the weights also update this value. It is used in the tooltip and should be the maximin posible weight - weight = { - base = 0 - modifier = { - add = 50 - scope:ruler = { - has_strong_hook = scope:lessee - } - } - opinion_modifier = { # Opinion Factor - min = 0 - max = 50 - who = scope:lessee - opinion_target = scope:ruler - trigger = { - NOT = { - scope:ruler = { - has_strong_hook = scope:lessee - } - } - } - multiplier = { - value = 50 - divide = @ruler_share_top_opinion_from_lessee - } - } - } - } - } - - levy = { - lease_liege = 15 - rest = { - max = 100 # when updating the weights also update this value. It is used in the tooltip and should be the maximin posible weight - weight = { - base = 0 - modifier = { - add = 100 - scope:ruler = { - has_strong_hook = scope:lessee - } - } - opinion_modifier = { # Opinion Factor - min = 0 - max = 100 - who = scope:lessee - opinion_target = scope:ruler - trigger = { - NOT = { - scope:ruler = { - has_strong_hook = scope:lessee - } - } - } - multiplier = { - value = 100 - divide = @ruler_share_top_opinion_from_lessee - } - } - } - } - } -} diff --git a/common/lease_contracts/_lease_contracts.info b/common/lease_contracts/_lease_contracts.info deleted file mode 100644 index 8dffcd122f..0000000000 --- a/common/lease_contracts/_lease_contracts.info +++ /dev/null @@ -1,71 +0,0 @@ -=== Lease Contracts === - -Titles can be leased out by the holder to another character. (Only non-capital baronies, and the holder must be above baron rank.) -Income and levies from the leased holdings can be splt between the ruler, lessee and (for hierarchical leases) a "lease liege". - -== Lease Hierarchies == - -Built-in lease types can be used to automatically lease out holdings according to a specific hierarchy. -In that case there is a lease vassal hierarchy in parallel to the normal vassal hierarchy: - -Emperor -- Emperor's lessee -| | -King ----- King's lessee -| | -Duke ----- Duke's lessee -| | -Count ---- Count's lessee -| -Baron - -Rulers can be excluded from participating in the amtomatic lease with a trigger, e.g. only rulers with a specific faith property might take part in a theocratic lease. -And rulers in the vassal hierarchy can be skipped using another trigger. E.g. for the theocratic lease the ruler and vassal must have the same faith. The skipped rulers will be part of their own hierarchy with matching rulers in the same realm. -The lessee must be a direct vassal of the ruler. If the lessee is missing for a specific ruler the ruler is also skipped in the hierarchy. -Titles in the ruler's domain that match a trigger will be automatically leased to the lessee. - -== Structure == - -theocracy_lease = { - # Definition for automatic lease hierarchy. Required for some built-in lease contracts, not supported for the others. - hierarchy = { - ruler_valid = { } # Does this ruler use the lease? root: character; default always = yes - lessee = # The character leasing the titles from the ruler. root: character. Must be unique for a given ruler, and their liege must be the ruler - - # Is this ruler valid as a liege or vassal to the scope:target? If not, this ruler is skipped in the lease hierarchy and starts their own hierarchy. - # root and scope:target are characters; default always = yes - liege_or_vassal_valid = { } - - barony_valid = { } # Is this barony title automatically leased out? root: title default always = yes - } - - # List of holding types that will not generate a wrong holding type penalty for the lessee - valid_holdings = { church_holding } - - # Used in the UI to show why the ruler receives benefits from the leased titles. Make sure it corresponds to the values used below. - # Don't set if you don't use the same opinion value between levies and taxes or the conditions are different, so that the tooltip is not shown. - ruler_share_min_opinion_from_lessee = 42 - - # Used in the UI to show if a ruler should recieve the benefits by having a hook even if they do not meet the opinion value. Make sure it gets used to apply based on the values below. - hook_strength_max_opinion = none/any/strong - - # How income from leased holdings is split. By default everything goes to the lessee. - tax = { - lease_liege = 0..100 # Share that goes to the lease liege (if exists). Requires hirarchy definition. Default: 0 - - # Anything not going to the liege can be split between ruler and lessee. By default everything goes to the lessee. - rest = { - max = 0..100 # Used in the UI to show maximum possible split share that goes to the to the ruler - weight = {} # Share that goes to the left hand side target. MTTH. Result should be between 0 and 100. - beneficiary = ruler/lessee # Who gets the ratio calculated in weight - rest = ruler/lessee # What is left goes to the right hand side target - } - - # Alternative syntax giving the rest to one character only: - #rest = ruler/lessee - } - - # How levies from leased holdings are assigned. By default everything goes to the lessee. - levy = { ... } # See tax for syntax - # Note: Levies can only go to one character on each level. This means levies cannot be assigned in part to the ruler and in part to the lessee - # because they are considered to be on the same level. So you can use only 0 or 100 when splitting between ruler and lessee. -} diff --git a/common/lifestyle_perks/00_diplomacy_2_majesty_tree_perks.txt b/common/lifestyle_perks/00_diplomacy_2_majesty_tree_perks.txt index eed7393e85..c873636249 100644 --- a/common/lifestyle_perks/00_diplomacy_2_majesty_tree_perks.txt +++ b/common/lifestyle_perks/00_diplomacy_2_majesty_tree_perks.txt @@ -48,7 +48,7 @@ inspiring_rule_perk = { parent = benevolent_intent_perk character_modifier = { - monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.05 + monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.04 } effect = { @@ -88,7 +88,7 @@ firm_hand_perk = { } character_modifier = { - monthly_prestige_gain_per_dread_mult = 0.01 + monthly_prestige_gain_per_dread_mult = 0.004 } effect = { @@ -112,7 +112,7 @@ praetorian_guard_perk = { } character_modifier = { - monthly_prestige_gain_per_knight_mult = 0.02 + monthly_prestige_gain_per_knight_mult = 0.01 } } @@ -214,4 +214,4 @@ august_perk = { add_trait_force_tooltip = august } -} \ No newline at end of file +} diff --git a/common/lifestyles/00_lifestyles.txt b/common/lifestyles/00_lifestyles.txt deleted file mode 100644 index 6406992873..0000000000 --- a/common/lifestyles/00_lifestyles.txt +++ /dev/null @@ -1,52 +0,0 @@ -diplomacy_lifestyle = { - - is_highlighted = { - has_trait = education_diplomacy - } - - xp_per_level = 1000 - base_xp_gain = 25 -} - -martial_lifestyle = { - - is_highlighted = { - has_trait = education_martial - } - - xp_per_level = 1000 - base_xp_gain = 25 -} - -stewardship_lifestyle = { - - is_highlighted = { - has_trait = education_stewardship - } - - - xp_per_level = 1000 - base_xp_gain = 25 -} - -intrigue_lifestyle = { - - is_highlighted = { - has_trait = education_intrigue - } - - - xp_per_level = 1000 - base_xp_gain = 25 -} - -learning_lifestyle = { - - is_highlighted = { - has_trait = education_learning - } - - - xp_per_level = 1000 - base_xp_gain = 25 -} diff --git a/common/lifestyles/_lifestyles.info b/common/lifestyles/_lifestyles.info deleted file mode 100644 index 4025754a42..0000000000 --- a/common/lifestyles/_lifestyles.info +++ /dev/null @@ -1,27 +0,0 @@ -All lifestyle focuses belong to a lifestyle. Using such a focus will provide experience for that lifestyle. - -key = { - is_highlighted = { ... } # Trigger in character scope. See notes on triggers below. - - is_valid_showing_failures_only = { } # Trigger in character scope. See notes on triggers below. - is_valid = { } # Trigger in character scope. See notes on triggers below. - - xp_per_level = 1000 # How much XP do you need per perk point? - base_xp_gain = 10 # How much XP do you get each month? Before modifiers - - icon = some_key # What key to use for the icon; if not defined, will use the key of the lifestyle -} - -Triggers -======== -Any triggers that are part of the lifestyle script files cannot use: -* scripted triggers, effects, or modifiers -* triggers, effects, or modifiers that are generated based on scripted content, such as: - * diplomacy_lifestyle_perk_points trigger (based on a scripted lifestyle) - * has_relation_rival trigger (based on a scripted relation) - -Generated loc keys -================== -key + _name -key + _desc -key + _highlight_desc diff --git a/common/men_at_arms_types/00_fp3_maa_types.txt b/common/men_at_arms_types/00_fp3_maa_types.txt new file mode 100644 index 0000000000..f82a936c20 --- /dev/null +++ b/common/men_at_arms_types/00_fp3_maa_types.txt @@ -0,0 +1,165 @@ +# standard costs +@maa_buy_cost = 150 +@maa_low_maintenance_cost = 1.0 +@maa_high_maintenance_cost = 5.0 +@cultural_maa_extra_ai_score = 60 # Equivalent to having 6 extra regiments beyond what the code scoring would indicate (see NEGATIVE_SCORE_PER_EXISTING_REGIMENT) + +asawira = { #Can be restored as a military unit with Khvarenah 4 dynasty legacy perk. + type = archer_cavalry + + damage = 90 + toughness = 35 + pursuit = 35 + screen = 10 + + terrain_bonus = { + plains = { damage = 30 } + drylands = { damage = 30 } + desert_mountains = { damage = 10 pursuit = 10 } + hills = { damage = -10 } + mountains = { damage = -50 } + wetlands = { damage = -50 toughness = -15 pursuit = -20 } + } + + counters = { + skirmishers = 2 + heavy_infantry = 2 + } + + winter_bonus = { + normal_winter = { damage = -15 toughness = -5 } + harsh_winter = { damage = -30 toughness = -10 } + } + + can_recruit = { + exists = dynasty + dynasty = { + has_dynasty_perk = fp3_khvarenah_legacy_4 + } + } + + buy_cost = { gold = asawira_recruitment_cost } + low_maintenance_cost = { gold = asawira_low_maint_cost } + high_maintenance_cost = { gold = asawira_high_maint_cost } + + stack = 50 + ai_quality = { value = @[cultural_maa_extra_ai_score + 30] } + icon = asawira +} + +tarkhan = { + type = heavy_cavalry + + damage = 110 + toughness = 30 + pursuit = 30 + screen = 10 + + terrain_bonus = { + oasis = { damage = 30 } + drylands = { damage = 25 } + desert = { damage = 10 pursuit = 10 } + mountains = { damage = -30 } + wetlands = { damage = -80 toughness = -15 pursuit = -20 } + } + + counters = { + heavy_infantry = 1 + heavy_cavalry = 0.5 + } + + winter_bonus = { + normal_winter = { damage = -10 toughness = -5 } + harsh_winter = { damage = -20 toughness = -5 } + } + + can_recruit = { + culture = { has_cultural_parameter = unlock_maa_tarkhan } + } + + buy_cost = { gold = cataphract_recruitment_cost } + low_maintenance_cost = { gold = cataphract_low_maint_cost } + high_maintenance_cost = { gold = cataphract_high_maint_cost } + + stack = 50 + ai_quality = { value = @[cultural_maa_extra_ai_score + 20] } + icon = tarkhan + +} + +#zupin_warrior = { +# type = pikemen +# +# damage = 16 +# toughness = 16 +# pursuit = 0 +# screen = 10 +# +# can_recruit = { +# culture = { has_cultural_parameter = unlock_maa_zupin_warrior } +# } +# +# terrain_bonus = { +# mountains = { toughness = 12 } +# desert_mountains = { toughness = 12 } +# hills = { damage = 4 toughness = 8 } +# forest = { damage = 4 toughness = 8 pursuit = 4 } +# } +# +# counters = { +# heavy_cavalry = 0.5 +# heavy_infantry = 1 +# light_cavalry = 1 +# } +# +# winter_bonus = { +# normal_winter = { damage = 4 pursuit = 5 } +# } +# +# buy_cost = { gold = bondi_recruitment_cost } +# low_maintenance_cost = { gold = bondi_low_maint_cost } +# high_maintenance_cost = { gold = bondi_high_maint_cost } +# +# stack = 100 +# ai_quality = { value = @[cultural_maa_extra_ai_score + 20] } +# icon = zupin_spearmen +#} + +tawashi = { + type = light_cavalry + + damage = 25 + toughness = 15 + pursuit = 30 + screen = 30 + + terrain_bonus = { + plains = { damage = 10 } + drylands = { damage = 10 } + hills = { damage = 10 } + mountains = { damage = 10 pursuit = 10 } + desert_mountains = { damage = 10 pursuit = 10 } + wetlands = { damage = -15 toughness = -10 pursuit = -30 screen = -30 } + } + + counters = { + archers = 1 + heavy_infantry = 1 + } + + can_recruit = { + culture = { has_cultural_parameter = unlock_maa_tawashi } + } + + winter_bonus = { + harsh_winter = { damage = -5 toughness = -3 } + } + + buy_cost = { gold = tawashi_recruitment_cost } + low_maintenance_cost = { gold = tawashi_low_maint_cost } + high_maintenance_cost = { gold = tawashi_high_maint_cost } + + stack = 100 + ai_quality = { value = @[cultural_maa_extra_ai_score + 40] } + icon = tawashi +} diff --git a/common/messages/00_messages.txt b/common/messages/00_messages.txt deleted file mode 100644 index af12552c94..0000000000 --- a/common/messages/00_messages.txt +++ /dev/null @@ -1,2424 +0,0 @@ -### Toast SFX -@default_toast_soundeffect = "event:/SFX/UI/Notifications/Toasts/sfx_ui_notification_toast_generic" -@toast_soundeffect_neutral = "event:/SFX/UI/Notifications/Toasts/sfx_ui_notifications_toast_neutral" -@toast_soundeffect_good = "event:/SFX/UI/Notifications/Toasts/sfx_ui_notifications_toast_positive" -@toast_soundeffect_bad = "event:/SFX/UI/Notifications/Toasts/sfx_ui_notifications_toast_negative" - - -### Message SFX -@default_msg_soundeffect = "event:/SFX/UI/Notifications/Messages/sfx_ui_message_theme_neutral" -@msg_neutral_soundeffect = "event:/SFX/UI/Notifications/Messages/sfx_ui_message_theme_neutral" -@msg_good_soundeffect = "event:/SFX/UI/Notifications/Messages/sfx_ui_message_theme_positive" -@msg_bad_soundeffect = "event:/SFX/UI/Notifications/Messages/sfx_ui_message_theme_negative" -@msg_diarchy_update_soundeffect = "event:/DLC/EP2/SFX/Events/Regencies/ep2_evn_regencies_update" - -### Descriptions -# desc = event_message_effect -# desc = event_message_text -# desc = event_message_text_and_effect -# desc = event_message_effect_and_text - -###EVENT MESSAGES### - -#Generic event messages -event_generic_bad = { - icon = "generic_bad_effect" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_generic_bad_text = { - icon = "generic_bad_effect" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_generic_good = { - icon = "generic_good_effect" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_generic_good_text = { - icon = "generic_good_effect" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -event_generic_neutral = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_generic_neutral_text = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_generic_bad_with_text = { - icon = "generic_bad_effect" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_generic_neutral_with_text = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_generic_good_with_text = { - icon = "generic_good_effect" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -#Councillors -event_chancellor_task_bad = { - icon = "chancellor_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_chancellor_task_good = { - icon = "chancellor_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -event_marshal_task_bad = { - icon = "marshal_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_marshal_task_good = { - icon = "marshal_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -event_steward_task_bad = { - icon = "steward_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_steward_task_good = { - icon = "steward_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -event_spymaster_task_bad = { - icon = "spy_master" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_spymaster_task_good = { - icon = "spy_master" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -event_court_chaplain_task_bad = { - icon = "religious_councillor_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_court_chaplain_task_good = { - icon = "religious_councillor_job" - title = event_message_title - desc = event_message_effect_and_text - tooltip = task_generic_notification_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -## Skill messages -# Diplomacy -event_diplomacy_bad = { - icon = "diplomacy" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_diplomacy_good = { - icon = "diplomacy" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_diplomacy_neutral = { - icon = "diplomacy" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_diplomacy_bad_with_text = { - icon = "diplomacy" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_diplomacy_good_with_text = { - icon = "diplomacy" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_diplomacy_neutral_with_text = { - icon = "diplomacy" - title = event_message_title - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -# Martial -event_martial_bad = { - icon = "martial" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_martial_good = { - icon = "martial" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_martial_bad_with_text = { - icon = "martial" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_martial_good_with_text = { - icon = "martial" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_martial_text_good = { - icon = "martial" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -# Stewardship -event_stewardship_bad = { - icon = "stewardship" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_stewardship_bad_with_text = { - icon = "stewardship" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_stewardship_neutral = { - icon = "stewardship" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_stewardship_neutral_with_text = { - icon = "stewardship" - title = event_message_title - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_stewardship_good = { - icon = "stewardship" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_stewardship_good_with_text = { - icon = "stewardship" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -# Intrigue -event_intrigue_bad = { - icon = "intrigue" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_intrigue_good = { - icon = "intrigue" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_intrigue_bad_with_text = { - icon = "intrigue" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_intrigue_good_with_text = { - icon = "intrigue" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -# Learning -event_learning_bad = { - icon = "learning" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_learning_good = { - icon = "learning" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_learning_bad_with_text = { - icon = "learning" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_learning_good_with_text = { - icon = "learning" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -# Prowess -event_prowess_bad = { - icon = "war" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_prowess_good = { - icon = "war" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_prowess_bad_with_text = { - icon = "war" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_prowess_good_with_text = { - icon = "war" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_prowess_good_desc = { - icon = "war" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -event_prowess_bad_desc = { - icon = "war" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -## Spouse tasks -event_spouse_task_bad = { - icon = "spouse_job" - title = event_message_title - desc = event_message_effect_and_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_spouse_task_good = { - icon = "spouse_job" - title = event_message_title - desc = event_message_effect_and_text - style = good - soundeffect = @msg_good_soundeffect -} - -event_spouse_patronage_good = { - icon = "spouse_job" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -#Physician -event_court_physician_bad = { - icon = "court_physician" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_court_physician_good = { - icon = "court_physician" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -# war Events -event_war_bad = { - icon = "war" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_war_good = { - icon = "war" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_war_bad_with_text = { - icon = "war" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_war_good_with_text = { - icon = "war" - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_captured_combatants_good = { - icon = "prison" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_captured_combatants_neutral = { - icon = "prison" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_captured_combatants_bad = { - icon = "prison" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_slain_combatants_good = { - icon = "death_desease" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_slain_combatants_neutral = { - icon = "death_natural" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_slain_combatants_bad = { - icon = "death_murder" - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_siege_lost_bad = { - icon = "siege" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_war_invalidated = { - icon = "nickname" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_raid_bad = { - icon = "money" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_raid_good = { - icon = "money" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -# Prison Events - -event_prison_good = { - icon = "prison" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -event_prison_neutral = { - icon = "prison" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -event_prison_bad = { - icon = "prison" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - - -# Heresy Outbreaks - -event_heresy_outbreak_neutral = { - icon = "heresy" - title = event_message_title - desc = event_message_effect - tooltip = send_interface_message_tooltip - soundeffect = @msg_neutral_soundeffect -} - -event_heresy_outbreak_bad = { - icon = "heresy" - title = event_message_title - desc = event_message_effect - tooltip = send_interface_message_tooltip - style = bad - soundeffect = @msg_bad_soundeffect -} - -event_heresy_outbreak_good = { - icon = "heresy" - title = event_message_title - desc = event_message_effect - tooltip = send_interface_message_tooltip - style = good - soundeffect = @msg_good_soundeffect -} - -# HoF Messages - -event_hof_established = { - icon = "learning" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -#Holy Order messages# -holy_order_founded_message = { - display = toast - #icon = "martial" - title = holy_order_founded_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -enemy_holy_order_founded_message = { - icon = "holy_order" - title = holy_order_founded_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -holy_order_expanded_message = { - icon = "holy_order" - title = holy_order_expanded - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -holy_order_hired_message = { - icon = "holy_order" - title = holy_order_hired_message - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -holy_order_hired_by_enemy_message = { - icon = "holy_order" - title = holy_order_hired_by_enemy_message - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -holy_order_cancled_message = { - icon = "holy_order" - title = event_message_title - desc = event_message_effect - style = neutral -} - -#COUNTY CORRUPTION MESSAGES# - -msg_county_corruption_bad = { - icon = "county_corruption" - title = event_message_title - desc = gain_county_corruption.message.desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_county_corruption_good = { - icon = "county_corruption" - title = event_message_title - desc = gain_county_corruption.message.desc - style = good - soundeffect = @msg_good_soundeffect -} - -msg_county_corruption_good_increase_control = { - icon = "control" - title = event_message_title - desc = gain_county_corruption.message.desc - style = good - soundeffect = @msg_good_soundeffect -} - - -###RELIGIOUS MESSAGES### - -great_holy_war_good_message = { - icon = "great_holy_war" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -great_holy_war_bad_message = { - icon = "great_holy_war" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -excommunicated_other_message = { - icon = "excommunication" - title = excommunicated_other_message - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -bishop_good_message = { - icon = "bishop" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -bishop_bad_message = { - icon = "bishop" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -sinful_theocrat_exposed = { - icon = "religious" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -virtuous_theocrat_celebrated = { - icon = "religious" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -good_omen = { - icon = "religious" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -designated_sacrifice_unsacrificed = { - icon = "religious" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -revealed_crypto_faith = { - icon = "religious" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_bad_soundeffect -} - -###SCHEME MESSAGES### - -sway_good_message = { - icon = "sway_scheme" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -sway_bad_message = { - icon = "sway_scheme" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -fabricate_hook_bad_message = { - icon = "hook" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -fabricate_hook_invalidated_message = { - icon = "hook" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -abduct_invalidated_i_imprisoned_message = { - icon = "prison" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -murder_invalidated_message = { - icon = "intrigue" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -murder_agent_join_or_leave_message = { - icon = "spy_master" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - -msg_scheme_froze = { - icon = "intrigue" - title = msg_scheme_froze_title - desc = msg_scheme_froze_desc - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_scheme_froze_until = { - icon = "intrigue" - title = msg_scheme_froze_title - desc = msg_scheme_froze_until_desc - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -###SECRET MESSAGES### - -secret_exposed_message = { - icon = "secret" - title = secret_exposed_notification_effect_message - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -secret_discovered_message = { - icon = "secret" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -### CULTURE MESSAGES -culture_conversion = { - icon = "trait" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - - -###GUEST AND COURTIER TRAVEL MESSAGES### - -character_preparing_to_leave = { - icon = "guest" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -character_has_left = { - icon = "guest" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -character_arrived = { - icon = "guest" - title = event_message_title - desc = event_message_text - style = good - soundeffect = @msg_good_soundeffect -} - - -###DEATH MESSAGES### - -character_has_died = { - icon = "death_murder" - title = death_notification_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -councillor_has_died = { - icon = "death_murder" - title = councillor_death_notification_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -friend_has_died = { - icon = "death_murder" - title = friend_death_notification_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -lover_has_died = { - icon = "death_murder" - title = lover_death_notification_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - - -###CHILDHOOD MESSAGES### - -child_personality_gain = { - icon = "child" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - - -###CODE MESSAGES### -msg_marriage = { - icon = "marriage" -} - -msg_building_done = { - icon = "building" - style = good - soundeffect = "event:/SFX/UI/Notifications/Messages/Themes/sfx_ui_message_construction" -} - -msg_new_heir = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_new_heir_newborn = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_new_heir_old_heir_dead = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_no_new_heir = { - display = toast - style = bad - soundeffect = @toast_soundeffect_neutral -} - -msg_no_new_heir_old_heir_dead = { - display = toast - style = bad - soundeffect = @toast_soundeffect_neutral -} - -msg_inherited_single_title = { - display = toast - style = good - soundeffect = @toast_soundeffect_neutral -} - -msg_inherited_titles = { - display = toast - style = good - soundeffect = @toast_soundeffect_neutral -} - -msg_realm_law_changed = { - display = toast - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -msg_lost_single_title = { - display = toast - style = bad - soundeffect = @toast_soundeffect_neutral -} - -msg_lost_titles = { - display = toast - style = bad - soundeffect = @toast_soundeffect_neutral -} - -msg_siege_started = { - icon = "siege" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_siege_won = { - icon = "siege" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_siege_loot = { - icon = "siege" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_scheme_abandoned = { - icon = "intrigue" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_agent_joined_my_scheme = { - icon = "spy_master" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_2_agents_joined_my_scheme = { - icon = "spy_master" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_multiple_agents_joined_my_scheme = { - icon = "spy_master" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_agent_removed_my_scheme = { - icon = "spy_master" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_2_agents_removed_my_scheme = { - icon = "spy_master" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_multiple_agents_removed_my_scheme = { - icon = "spy_master" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_council_task_finished = { - icon = "a_catch_all_councillor_icon" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_council_task_finished_location = { - icon = "a_catch_all_councillor_icon" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_alliance = { - display = toast - style = good - soundeffect = @toast_soundeffect_good -} -msg_broken_alliance = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_expired_alliance = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_expired_alliance_ally_death = { - icon = "alliance" - title = msg_expired_alliance - desc = msg_expired_alliance_ally_death_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_alliance_became_landed = { - icon = "alliance" - style = good - soundeffect = @msg_good_soundeffect -} -msg_alliance_became_unlanded = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_war_ally_joined = { - icon = "alliance" - style = good - soundeffect = @msg_good_soundeffect -} -msg_war_enemy_joined = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_war_player_joined = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_ally_joined_multiple = { - icon = "alliance" - style = good - soundeffect = @msg_good_soundeffect -} -msg_war_enemy_joined_multiple = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_war_ally_replaced = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_enemy_replaced = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_player_replaced = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} - -msg_war_enemy_transferred = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_player_transferred = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_ally_transferred = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} - - -msg_war_ally_removed = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_war_enemy_removed = { - icon = "alliance" - style = good - soundeffect = @msg_good_soundeffect -} -msg_war_player_removed = { - icon = "alliance" - soundeffect = @msg_neutral_soundeffect -} -msg_war_ally_removed_multiple = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_war_enemy_removed_multiple = { - icon = "alliance" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_war_declared_on_me = { - icon = "alliance" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_war_declared_on_liege = { - display = toast - title = msg_war_declared_on_liege - desc = msg_war_declared_on_liege_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_war_declared_by_liege = { - display = toast - title = msg_war_declared_by_liege - desc = msg_war_declared_by_liege_desc - soundeffect = @toast_soundeffect_neutral -} - -msg_liege_war_ended_attacker_win = { - icon = "nickname" - soundeffect = @msg_neutral_soundeffect -} - -msg_liege_war_ended_defender_win = { - icon = "nickname" - soundeffect = @msg_neutral_soundeffect -} - -msg_liege_war_ended_white_peace = { - icon = "nickname" - soundeffect = @msg_neutral_soundeffect -} - -msg_liege_war_ended_invalid = { - icon = "nickname" - soundeffect = @msg_neutral_soundeffect -} - -msg_war_ended_invalid = { - icon = "nickname" - title = msg_invalidate_war_title - desc = event_message_effect_and_text - soundeffect = @msg_neutral_soundeffect -} - -msg_invalidation_of_council_task = { - icon = "a_catch_all_councillor_icon" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_troops_disbanding_civil_war = { - icon = "nickname" - soundeffect = @msg_neutral_soundeffect -} - -send_interface_message = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_effect - soundeffect = @msg_neutral_soundeffect -} - -send_interface_message_good = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -send_interface_message_bad = { - icon = "generic_neutral_effect" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -send_interface_message_as_toast = { - display = toast - title = event_message_title - desc = event_message_effect - soundeffect = @toast_soundeffect_neutral -} - -event_toast_effect_good = { - display = toast - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @toast_soundeffect_good -} - -event_toast_effect_neutral = { - display = toast - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -event_toast_effect_bad = { - display = toast - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @toast_soundeffect_bad -} - -event_toast_text_good = { - display = toast - title = event_message_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -event_toast_text_and_effect_good = { - display = toast - title = event_message_title - desc = event_message_text_and_effect - style = good - soundeffect = @toast_soundeffect_good -} - -event_toast_text_neutral = { - display = toast - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -event_toast_text_and_effect_neutral = { - display = toast - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @toast_soundeffect_neutral -} - -event_toast_text_bad = { - display = toast - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @toast_soundeffect_bad -} - -event_toast_text_and_effect_bad = { - display = toast - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_gain_trait = { - display = toast - soundeffect = @toast_soundeffect_neutral -} -msg_lose_trait = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_gain_nickname = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_lost_nickname = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_title_rank_up = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_neutral -} -msg_title_rank_down = { - display = toast - style = bad - soundeffect = @msg_bad_soundeffect - soundeffect = @toast_soundeffect_neutral -} -msg_change_primary = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_disbanded_faction_target_died = { - icon = "faction" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_removed_from_faction_not_valid = { - icon = "faction" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_removed_from_faction_not_valid_leader = { - icon = "faction" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_removed_from_faction_not_liege = { - icon = "faction" - title = msg_removed_from_faction_not_liege - desc = msg_removed_from_faction_not_liege_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_faction_against_liege_created = { - icon = "faction" - title = msg_faction_against_liege_or_me_created - desc = msg_faction_against_liege_or_me_created_desc - soundeffect = @msg_neutral_soundeffect -} -msg_faction_against_me_created = { - icon = "faction" - title = msg_faction_against_liege_or_me_created - desc = msg_faction_against_liege_or_me_created_desc - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_county_faction_against_liege_created = { - icon = "faction" - title = msg_faction_against_liege_or_me_created - desc = msg_county_faction_against_liege_or_me_created_desc - soundeffect = @msg_neutral_soundeffect -} -msg_county_faction_against_me_created = { - icon = "faction" - title = msg_faction_against_liege_or_me_created - desc = msg_county_faction_against_liege_or_me_created_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_faction_against_me_disbanded = { - icon = "faction" - style = good - soundeffect = @msg_good_soundeffect -} -msg_liege_passed_law = { - icon = "law" - soundeffect = @msg_neutral_soundeffect -} -msg_liege_passed_title_law = { - icon = "law" - soundeffect = @msg_neutral_soundeffect -} -msg_liege_removed_title_law = { - icon = "law" - soundeffect = @msg_neutral_soundeffect -} -msg_law_invalidated = { - icon = "law" - soundeffect = @msg_neutral_soundeffect -} -msg_law_invalidated_no_new_law = { - icon = "law" - soundeffect = @msg_neutral_soundeffect -} - -msg_betrothal_invalidated = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_break_betrothal = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_betrothal_invalidated_player_heir = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_break_betrothal_player_heir = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_spouse_invalidated = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_divorce = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_spouse_invalidated_player_heir = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} -msg_divorce_player_heir = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_betrothal_fulfilled = { - icon = "marriage" - display = toast - style = good - soundeffect = @msg_good_soundeffect -} - -msg_marriage_forced = { - icon = "marriage" - display = toast - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_consort_invalidated = { - icon = "marriage" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_faction_local_not_leader_anymore = { - icon = "faction" - display = toast - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_faction_local_becomes_leader = { - icon = "faction" - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_faction_forced_to_join = { - icon = "hook_strong" - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_my_faction_disbanded = { - display = toast - style = bad - soundeffect = @msg_bad_soundeffect - soundeffect = @toast_soundeffect_bad -} - -msg_war_casus_belli_changed = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_cadet_branch_created = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_i_became_head_of_house = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_i_not_head_of_house_anymore = { - display = toast - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_became_head_of_house = { - icon = "dynasty" - soundeffect = @msg_neutral_soundeffect -} - -msg_i_became_dynast = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_i_not_dynast_anymore = { - display = toast - style = bad - soundeffect = @msg_bad_soundeffect - soundeffect = @toast_soundeffect_bad -} - -msg_became_dynast = { - icon = "dynasty" - style = good - soundeffect = @msg_good_soundeffect -} - -msg_i_became_head_of_faith = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_i_became_head_of_multiple_faiths = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_i_not_head_of_faith_anymore = { - display = toast - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_i_not_head_of_multiple_faiths_anymore = { - display = toast - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_new_fascination_selected = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_innovation_discovered = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_fascination_discovered = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_era_discovered = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - -msg_first_era_discovered = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_no_longer_culture_head = { - display = toast - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_become_culture_head = { - display = toast - style = good - soundeffect = @toast_soundeffect_good -} - -msg_new_theocracy_lesee_approve = { - icon = "bishop" - title = msg_new_theocracy_lesse - style = good - soundeffect = @msg_good_soundeffect -} - -msg_new_theocracy_lesee_disapprove = { - icon = "bishop" - title = msg_new_theocracy_lesse - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_mercenary_company_dismissed = { - icon = "mercenary" - title = msg_mercenary_company_dismissed - soundeffect = @msg_neutral_soundeffect -} -msg_holy_order_dismissed = { - icon = "holy_order" - title = msg_holy_order_dismissed - soundeffect = @msg_neutral_soundeffect -} - -msg_fired_from_council = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_council_swap_position = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_left_council_position = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_peace_armies_disbanded = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_my_hook_replaced = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_my_hook_added = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_hook_on_me_replaced = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_hook_on_me_added = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_hook_on_me_expired = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_my_hook_expired = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_perk_point_added = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_focus_invalidated = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -msg_dynasty_perk_added = { - display = toast - style = good - soundeffect = @toast_soundeffect_neutral -} - -msg_dynasty_perk_removed = { - display = toast - style = good - soundeffect = @toast_soundeffect_neutral -} - -msg_dynasty_prestige_level_increase = { - display = toast - style = good - soundeffect = @toast_soundeffect_neutral -} - -msg_dynasty_prestige_level_dencrease = { - display = toast - style = bad - soundeffect = @toast_soundeffect_neutral -} - -msg_holy_order_patronage_lost = { - display = toast - style = bad - soundeffect = @msg_bad_soundeffect - soundeffect = @toast_soundeffect_bad -} - -msg_holy_order_patronage_gained = { - display = toast - style = good - soundeffect = @msg_good_soundeffect - soundeffect = @toast_soundeffect_good -} - - -mongol_occupation_bad = { - icon = "martial" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -mongol_occupation_good = { - icon = "martial" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -msg_gained_stress_level = { - display = toast - title = stress_threshold.0010.toast - desc = event_message_text - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_lost_stress_level = { - display = toast - title = stress_level_reduced.message - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -msg_notable_guest = { - display = toast - title = event_message_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -msg_created_new_house = { - display = toast - title = event_message_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -msg_character_level_increase = { - display = toast - title = event_message_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -msg_character_level_decrease = { - display = toast - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_character_captured_by_me = { - display = toast - title = event_message_title - desc = event_message_text - style = good - soundeffect = @toast_soundeffect_good -} - -msg_character_captured_by_other_side = { - display = toast - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @toast_soundeffect_bad -} - -# Vassal contract invalidation -msg_vassal_contract_level_invalidated = { - icon = "law" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_vassal_contract_2_levels_invalidated = { - icon = "law" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_vassal_contract_multiple_levels_invalidated = { - icon = "law" - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_vassal_contract_change = { - icon = "law" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -# Court position -msg_court_position_gained = { - display = toast - soundeffect = @toast_soundeffect_neutral -} -msg_court_position_removed = { - display = toast - soundeffect = @toast_soundeffect_neutral -} -msg_court_position_invalidated_employee = { - display = toast - soundeffect = @toast_soundeffect_neutral -} -msg_court_position_invalidated_employer = { - display = toast - soundeffect = @toast_soundeffect_neutral -} -msg_court_amenity_setting_invalidated = { - display = toast - soundeffect = @toast_soundeffect_neutral -} - -# Character weight -msg_becomes_obese = { - display = toast - soundeffect = @toast_soundeffect_bad -} -msg_becomes_malnourished = { - display = toast - soundeffect = @toast_soundeffect_bad -} -msg_stops_being_obese = { - display = toast - soundeffect = @toast_soundeffect_good -} -msg_stops_being_malnourished = { - display = toast - soundeffect = @toast_soundeffect_good -} - -# Event timeout -msg_event_timeout = { - style = neutral - tooltip = msg_event_timeout_tt -} - -msg_letter_event_timeout = { - style = neutral - tooltip = msg_letter_event_timeout_tt -} - -msg_catalyst_triggered = { - icon = "struggle" - style = neutral - tooltip = msg_catalyst_triggered_tt - soundeffect = @msg_neutral_soundeffect -} - -msg_catalyst_triggered_no_character = { - icon = "struggle" - style = neutral - tooltip = msg_catalyst_triggered_no_character_tt - soundeffect = @msg_neutral_soundeffect -} - -msg_border_raid_bad = { - icon = "money" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_border_raid_good = { - icon = "money" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -msg_player_character_changed = { - style = neutral - tooltip = msg_player_character_changed_tt - soundeffect = @msg_neutral_soundeffect -} - -msg_player_new_character = { - style = neutral - tooltip = msg_player_new_character_tt - soundeffect = @msg_neutral_soundeffect -} - -msg_player_new_observer = { - style = neutral - tooltip = msg_player_new_observer_tt - soundeffect = @msg_neutral_soundeffect -} - -msg_truce_enforced = { - icon = "diplomacy" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_good_soundeffect -} - -msg_struggle_phase_end = { - icon = "tension" - style = neutral - tooltip = msg_struggle_phase_end_tt - soundeffect = @toast_soundeffect_neutral -} - -msg_struggle_phase_transitioned = { - icon = "tension" - style = neutral - tooltip = msg_struggle_phase_end_tt - soundeffect = @toast_soundeffect_neutral -} - -msg_contract_assistance_good = { - icon = "money" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -msg_contract_assistance_bad = { - icon = "money" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -# Relationships - -msg_set_relation_friend = { - display = toast - title = msg_set_relation_friend_title - desc = msg_set_relation_friend_desc - style = good - soundeffect = @toast_soundeffect_good -} - -msg_set_relation_best_friend = { - display = toast - title = msg_set_relation_best_friend_title - desc = msg_set_relation_best_friend_desc - style = good - soundeffect = @toast_soundeffect_good -} - -msg_set_relation_rival = { - display = toast - title = msg_set_relation_rival_title - desc = msg_set_relation_rival_desc - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_set_relation_nemesis = { - display = toast - title = msg_set_relation_nemesis_title - desc = msg_set_relation_nemesis_desc - style = bad - soundeffect = @toast_soundeffect_bad -} - -msg_set_relation_lover = { - display = toast - title = msg_set_relation_lover_title - desc = msg_set_relation_lover_desc - style = good - soundeffect = @toast_soundeffect_good -} - -msg_set_relation_soulmate = { - display = toast - title = msg_set_relation_soulmate_title - desc = msg_set_relation_soulmate_desc - style = good - soundeffect = @toast_soundeffect_good -} -# Family feud -house_feud_begins_message = { - icon = "dynasty" - title = msg_house_feud_begins - desc = msg_house_feud_begins_desc - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -house_feud_ends_message = { - icon = "dynasty" - title = msg_house_feud_ends - desc = msg_house_feud_ends_desc - style = neutral - soundeffect = @toast_soundeffect_neutral - tooltip = event_message_effect -} - -house_feud_continues_message = { - icon = "dynasty" - title = msg_house_feud_continues - desc = msg_house_feud_continues_desc - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -house_feud_kill_us_message = { - icon = "death_murder" - title = msg_house_feud_kill_us - desc = msg_house_feud_kill_us_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -house_feud_kill_them_message = { - icon = "death_murder" - title = msg_house_feud_kill_them - desc = msg_house_feud_kill_them_desc - style = good - soundeffect = @msg_good_soundeffect -} - -house_feud_torture_us_message = { - icon = "dynasty" - title = msg_house_feud_torture_us - desc = msg_house_feud_torture_us_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -house_feud_torture_them_message = { - icon = "dynasty" - title = msg_house_feud_torture_them - desc = msg_house_feud_torture_them_desc - style = good - soundeffect = @msg_good_soundeffect -} - -house_feud_cuckolded_us_message = { - icon = "death_murder" - title = msg_house_feud_cuckold_us - desc = msg_house_feud_cuckold_us_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -house_feud_cuckolded_them_message = { - icon = "death_murder" - title = msg_house_feud_cuckold_them - desc = msg_house_feud_cuckold_them_desc - style = good - soundeffect = @msg_good_soundeffect -} - -house_feud_avenged_us_message = { - icon = "death_murder" - title = msg_house_feud_avenged_us - desc = msg_house_feud_avenged_us_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -house_feud_avenged_them_message = { - icon = "death_murder" - title = msg_house_feud_avenged_them - desc = msg_house_feud_avenged_them_desc - style = good - soundeffect = @msg_good_soundeffect -} - -house_feud_victory_message = { - icon = "dynasty" - title = msg_house_feud_victory - desc = msg_house_feud_victory_desc - style = neutral - soundeffect = @toast_soundeffect_good -} - -house_feud_white_peace_message = { - icon = "dynasty" - title = msg_house_feud_white_peace - desc = msg_house_feud_white_peace_desc - style = neutral - soundeffect = @toast_soundeffect_neutral -} - -house_feud_defeat_message = { - icon = "dynasty" - title = msg_house_feud_defeat - desc = msg_house_feud_defeat_desc - style = neutral - soundeffect = @toast_soundeffect_bad -} - -house_feud_stole_artifact_us_message = { - icon = "death_murder" - title = msg_house_feud_stole_artifact_us - desc = msg_house_feud_stole_artifact_us_desc - style = bad - soundeffect = @msg_bad_soundeffect -} - -house_feud_stole_artifact_them_message = { - icon = "death_murder" - title = msg_house_feud_stole_artifact_them - desc = msg_house_feud_stole_artifact_them_desc - style = good - soundeffect = @msg_good_soundeffect -} - -msg_diarch_acting_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_diarch_acting_text_and_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_mandate_results_good_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_effect - style = good - soundeffect = @msg_good_soundeffect -} - -msg_mandate_results_good_text_and_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_good_soundeffect -} - -msg_mandate_results_bad_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_mandate_results_bad_text = { - icon = "diarch" - title = event_message_title - desc = event_message_text - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_mandate_results_bad_text_and_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_text_and_effect - style = bad - soundeffect = @msg_bad_soundeffect -} - -msg_mandate_results_neutral_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_mandate_results_neutral_text = { - icon = "diarch" - title = event_message_title - desc = event_message_text - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_mandate_results_neutral_text_and_effect = { - icon = "diarch" - title = event_message_title - desc = event_message_text_and_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_start_diarchy = { - icon = "diarch" - title = msg_start_diarchy_title - desc = msg_start_diarchy_effect - style = neutral - soundeffect = @msg_diarchy_update_soundeffect -} - -msg_inherit_diarchy = { - icon = "diarch" - title = msg_inherit_diarchy_title - desc = msg_start_diarchy_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -msg_end_diarchy = { - icon = "diarch" - title = msg_end_diarchy_title - desc = msg_end_diarchy_effect - style = good - soundeffect = @msg_good_soundeffect -} - -msg_change_diarchy_type = { - icon = "diarch" - title = msg_change_diarchy_type_title - desc = msg_change_diarchy_type_effect - style = neutral - soundeffect = @msg_diarchy_update_soundeffect -} - -msg_tournament_knight_arrived = { - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -toast_tournament_contest_reward = { - display = toast - title = event_message_title - desc = event_message_text - tooltip = event_message_effect - style = good - soundeffect = @msg_neutral_soundeffect - flags = { tournament_reward } -} - -# left character is the liege, right character is the diarch, any can be a player -msg_diarchy_more_power = { - icon = "diarch" - title = msg_diarchy_more_power_title - desc = msg_diarchy_more_power_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} - -# left character is the liege, right character is the diarch, any can be a player -msg_diarchy_less_power = { - icon = "diarch" - title = msg_diarchy_less_power_title - desc = msg_diarchy_less_power_effect - style = neutral - soundeffect = @msg_neutral_soundeffect -} diff --git a/common/modifier_definition_formats/00_definitions.txt b/common/modifier_definition_formats/00_definitions.txt deleted file mode 100644 index 36c053ff41..0000000000 --- a/common/modifier_definition_formats/00_definitions.txt +++ /dev/null @@ -1,1856 +0,0 @@ -diplomacy = { - decimals = 0 - prefix = MOD_DIPLOMACY_PREFIX -} - -martial = { - decimals = 0 - prefix = MOD_MARTIAL_PREFIX -} - -stewardship = { - decimals = 0 - prefix = MOD_STEWARDSHIP_PREFIX -} - -intrigue = { - decimals = 0 - prefix = MOD_INTRIGUE_PREFIX -} - -learning = { - decimals = 0 - prefix = MOD_LEARNING_PREFIX -} - -prowess = { - decimals = 0 - prefix = MOD_PROWESS_PREFIX -} - -prowess_no_portrait = { - decimals = 0 - prefix = MOD_PROWESS_PREFIX -} - -negate_diplomacy_penalty_add = { - decimals = 0 -} - -negate_martial_penalty_add = { - decimals = 0 -} - -negate_stewardship_penalty_add = { - decimals = 0 -} - -negate_intrigue_penalty_add = { - decimals = 0 -} - -negate_learning_penalty_add = { - decimals = 0 -} - -negate_prowess_penalty_add = { - decimals = 0 -} - -no_prowess_loss_from_age = { - decimals = 0 -} - -diplomacy_per_piety_level = { - decimals = 0 - prefix = MOD_DIPLOMACY_PREFIX -} - -martial_per_piety_level = { - decimals = 0 - prefix = MOD_MARTIAL_PREFIX -} - -stewardship_per_piety_level = { - decimals = 0 - prefix = MOD_STEWARDSHIP_PREFIX -} - -intrigue_per_piety_level = { - decimals = 0 - prefix = MOD_INTRIGUE_PREFIX -} - -learning_per_piety_level = { - decimals = 0 - prefix = MOD_LEARNING_PREFIX -} - -prowess_per_piety_level = { - decimals = 0 - prefix = MOD_PROWESS_PREFIX -} - -diplomacy_per_prestige_level = { - decimals = 0 - prefix = MOD_DIPLOMACY_PREFIX -} - -martial_per_prestige_level = { - decimals = 0 - prefix = MOD_MARTIAL_PREFIX -} - -stewardship_per_prestige_level = { - decimals = 0 - prefix = MOD_STEWARDSHIP_PREFIX -} - -intrigue_per_prestige_level = { - decimals = 0 - prefix = MOD_INTRIGUE_PREFIX -} - -learning_per_prestige_level = { - decimals = 0 - prefix = MOD_LEARNING_PREFIX -} - -prowess_per_prestige_level = { - decimals = 0 - prefix = MOD_PROWESS_PREFIX -} - -piety_level_impact_mult = { - decimals = 0 - percent = yes -} - -prestige_level_impact_mult = { - decimals = 0 - percent = yes -} - -diplomacy_per_stress_level = { - decimals = 0 - prefix = MOD_DIPLOMACY_PREFIX -} - -martial_per_stress_level = { - decimals = 0 - prefix = MOD_MARTIAL_PREFIX -} - -stewardship_per_stress_level = { - decimals = 0 - prefix = MOD_STEWARDSHIP_PREFIX -} - -intrigue_per_stress_level = { - decimals = 0 - prefix = MOD_INTRIGUE_PREFIX -} - -learning_per_stress_level = { - decimals = 0 - prefix = MOD_LEARNING_PREFIX -} - -prowess_per_stress_level = { - decimals = 0 - prefix = MOD_PROWESS_PREFIX -} - -fertility = { - decimals = 0 - percent = yes -} - -# health - Has custom code overwrite - -negate_fertility_penalty_add = { - decimals = 0 - percent = yes -} - -# negate_health_penalty_add - Has custom code overwrite - -monthly_income = { - decimals = 1 - prefix = MOD_MONTHLY_INCOME_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_income_mult = { - decimals = 0 - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -monthly_war_income_add = { - prefix = MOD_MONTHLY_INCOME_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_war_income_mult = { - decimals = 0 - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -monthly_income_per_stress_level_add = { - prefix = MOD_MONTHLY_INCOME_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_income_per_stress_level_mult = { - decimals = 0 - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -monthly_piety = { - decimals = 1 - prefix = MOD_MONTHLY_PIETY_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_piety_gain_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PIETY_GAIN_MULT_PREFIX - percent = yes -} - -monthly_piety_gain_per_happy_powerful_vassal_add = { - decimals = 1 - prefix = MOD_MONTHLY_PIETY_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_piety_gain_per_happy_powerful_vassal_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PIETY_GAIN_MULT_PREFIX - percent = yes -} - -monthly_piety_gain_per_dread_add = { - prefix = MOD_MONTHLY_PIETY_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_piety_gain_per_dread_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PIETY_GAIN_MULT_PREFIX - percent = yes -} - -monthly_piety_gain_per_knight_add = { - decimals = 2 - prefix = MOD_MONTHLY_PIETY_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_piety_gain_per_knight_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PIETY_GAIN_MULT_PREFIX - percent = yes -} - -monthly_prestige = { - decimals = 2 - prefix = MOD_MONTHLY_PRESTIGE_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_prestige_gain_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PRESTIGE_GAIN_MULT_PREFIX - percent = yes -} - -monthly_prestige_gain_per_happy_powerful_vassal_add = { - decimals = 2 - prefix = MOD_MONTHLY_PRESTIGE_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_prestige_gain_per_happy_powerful_vassal_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PRESTIGE_GAIN_MULT_PREFIX - percent = yes -} - -monthly_prestige_gain_per_dread_add = { - decimals = 2 - prefix = MOD_MONTHLY_PRESTIGE_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_prestige_gain_per_dread_mult = { - decimals = 1 - prefix = MOD_MONTHLY_PRESTIGE_GAIN_MULT_PREFIX - percent = yes -} - -monthly_prestige_gain_per_knight_add = { - decimals = 2 - prefix = MOD_MONTHLY_PRESTIGE_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_prestige_gain_per_knight_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PRESTIGE_GAIN_MULT_PREFIX - percent = yes -} - -monthly_piety_from_buildings_mult = { - decimals = 0 - percent = yes - prefix = MOD_PIETY_PREFIX -} - -monthly_prestige_from_buildings_mult = { - decimals = 0 - prefix = MOD_MONTHLY_PRESTIGE_GAIN_MULT_PREFIX - percent = yes -} - -monthly_dynasty_prestige = { - decimals = 2 - prefix = MOD_MONTHLY_DYNASTY_PRESTIGE_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_dynasty_prestige_mult = { - decimals = 0 - prefix = MOD_MONTHLY_DYNASTY_PRESTIGE_MULT_PREFIX - percent = yes -} - -stress_gain_mult = { - decimals = 0 - color = bad - prefix = MOD_STRESS_GAIN_PREFIX - percent = yes -} - -stress_loss_mult = { - decimals = 0 - prefix = MOD_STRESS_LOSS_PREFIX - percent = yes -} - -monthly_dread = { - prefix = MOD_MONTHLY_DREAD_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -dread_gain_mult = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 0 - percent = yes -} - -dread_loss_mult = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 0 - color = bad - percent = yes -} - -tyranny_gain_mult = { - decimals = 0 - color = bad - percent = yes -} - -tyranny_loss_mult = { - decimals = 0 - percent = yes -} - -monthly_tyranny = { - color = bad -} - -dread_baseline_add = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 0 -} - -dread_decay_add = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 1 - color = bad -} - -dread_decay_mult = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 0 - color = bad - percent = yes -} - -dread_per_tyranny_add = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 1 -} - -dread_per_tyranny_mult = { - prefix = MOD_MONTHLY_DREAD_PREFIX - decimals = 0 - percent = yes -} - -domain_limit = { - decimals = 0 -} - -vassal_limit = { - decimals = 0 -} - -domain_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -domain_tax_same_faith_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -domain_tax_different_faith_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -domain_tax_mult_even_if_baron = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -domain_tax_same_faith_mult_even_if_baron = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -domain_tax_different_faith_mult_even_if_baron = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -vassal_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -men_at_arms_recruitment_cost = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -men_at_arms_maintenance = { - decimals = 2 - color = bad - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -levy_maintenance = { - decimals = 2 - color = bad - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -men_at_arms_maintenance_per_dread_mult = { - color = bad - percent = yes -} - -army_maintenance_mult = { - decimals = 2 - color = bad - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -short_reign_duration_mult = { - decimals = 0 - color = bad - percent = yes -} - -long_reign_bonus_mult = { - decimals = 0 - percent = yes -} - -diplomatic_range_mult = { - decimals = 0 - percent = yes -} - -inbreeding_chance = { - decimals = 0 - color = bad - percent = yes -} - -positive_inactive_inheritance_chance = { - decimals = 0 - percent = yes -} - -negative_inactive_inheritance_chance = { - decimals = 0 - color = bad - percent = yes -} - -positive_random_genetic_chance = { - decimals = 0 - percent = yes -} - -negative_random_genetic_chance = { - decimals = 0 - color = bad - percent = yes -} - -genetic_trait_strengthen_chance = { - decimals = 0 - percent = yes -} - -life_expectancy = { - decimals = 0 -} - -years_of_fertility = { - decimals = 0 -} - -knight_limit = { - decimals = 0 -} - -knight_effectiveness_mult = { - decimals = 0 - prefix = MOD_KNIGHT_PREFIX - percent = yes -} - -title_creation_cost = { - decimals = 0 - color = bad - prefix = MOD_COST_PREFIX -} - -title_creation_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_COST_PREFIX - percent = yes -} - -monthly_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -mercenary_hire_cost_add = { - decimals = 1 - color = bad - prefix = MOD_MONTHLY_INCOME_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -mercenary_hire_cost_mult = { - decimals = 2 - color = bad - prefix = MOD_MONTHLY_INCOME_MULT_PREFIX - percent = yes -} - -same_culture_mercenary_hire_cost_add = { - decimals = 1 - color = bad - prefix = MOD_GOLD_PREFIX -} - -same_culture_mercenary_hire_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holy_order_hire_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -holy_order_hire_cost_add = { - decimals = 1 - color = bad - prefix = MOD_PIETY_PREFIX -} - -same_culture_holy_order_hire_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -same_culture_holy_order_hire_cost_add = { - decimals = 1 - color = bad - prefix = MOD_PIETY_PREFIX -} - -opinion_of_female_rulers = { - decimals = 0 -} - -opinion_of_male_rulers = { - decimals = 0 -} - -opinion_of_same_culture = { - decimals = 0 -} - -opinion_of_different_culture = { - decimals = 0 -} - -opinion_of_same_faith = { - decimals = 0 -} - -opinion_of_different_faith = { - decimals = 0 -} - -opinion_of_liege = { - decimals = 0 -} - -opinion_of_parents = { - decimals = 0 -} - -opinion_of_vassal = { - decimals = 0 -} - -opinion_of_different_faith_liege = { - decimals = 0 -} - -same_culture_opinion = { - decimals = 0 -} - -different_culture_opinion = { - decimals = 0 -} - -same_faith_opinion = { - decimals = 0 -} - -different_faith_opinion = { - decimals = 0 -} - -direct_vassal_opinion = { - decimals = 0 -} - -fellow_vassal_opinion = { - decimals = 0 -} - -independent_ruler_opinion = { - decimals = 0 -} - -general_opinion = { - decimals = 0 -} - -attraction_opinion = { - decimals = 0 -} - -religious_vassal_opinion = { - decimals = 0 -} - -religious_head_opinion = { - decimals = 0 -} - -spouse_opinion = { - decimals = 0 -} - -twin_opinion = { - decimals = 0 -} - -close_relative_opinion = { - decimals = 0 -} - -dynasty_house_opinion = { - decimals = 0 -} - -dynasty_opinion = { - decimals = 0 -} - -liege_opinion = { - decimals = 0 -} - -different_faith_liege_opinion = { - decimals = 0 -} - -vassal_opinion = { - decimals = 0 -} - -clergy_opinion = { - decimals = 0 -} - -councillor_opinion = { - decimals = 0 -} - -realm_priest_opinion = { - decimals = 0 -} - -powerful_vassal_opinion = { - decimals = 0 -} - -courtier_opinion = { - decimals = 0 -} - -guest_opinion = { - decimals = 0 -} - -courtier_and_guest_opinion = { - decimals = 0 -} - -prisoner_opinion = { - decimals = 0 -} - -player_heir_opinion = { - decimals = 0 -} - -child_opinion = { - decimals = 0 -} - -child_except_player_heir_opinion = { - decimals = 0 -} - -travel_companion_opinion = { - decimals = 0 -} - -eligible_child_opinion = { - decimals = 0 -} - -eligible_child_except_player_heir_opinion = { - decimals = 0 -} - -ignore_negative_culture_opinion = { - decimals = 0 -} - -ignore_negative_opinion_of_culture = { - decimals = 0 -} - -ignore_different_faith_opinion = { - decimals = 0 -} - -ignore_opinion_of_different_faith = { - decimals = 0 -} - -max_loot_mult = { - decimals = 0 - percent = yes -} - -pursue_efficiency = { - decimals = 0 - percent = yes -} - -counter_efficiency = { - decimals = 0 - percent = yes -} - -counter_resistance = { - decimals = 0 - percent = yes -} - -min_combat_roll = { - decimals = 0 -} - -max_combat_roll = { - decimals = 0 -} - -men_at_arms_limit = { - decimals = 0 -} - -men_at_arms_cap = { - decimals = 0 -} - -embarkation_cost_mult = { - decimals = 0 - color = bad - percent = yes -} - -naval_movement_speed_mult = { - decimals = 0 - percent = yes -} - -siege_phase_time = { - decimals = 0 - color = bad - percent = yes -} - -siege_morale_loss = { - decimals = 0 - percent = yes -} - -revolting_siege_morale_loss_add = { -} - -revolting_siege_morale_loss_mult = { - decimals = 0 - percent = yes -} - -vassal_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -vassal_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -intimidated_vassal_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -intimidated_vassal_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -cowed_vassal_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -cowed_vassal_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -vassal_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -vassal_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -intimidated_vassal_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -intimidated_vassal_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -cowed_vassal_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -cowed_vassal_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -happy_powerful_vassal_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -happy_powerful_vassal_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -happy_powerful_vassal_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -happy_powerful_vassal_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -scheme_secrecy = { - prefix = MOD_SECRECY_PREFIX - decimals = 0 - already_percent = yes -} - -scheme_success_chance = { - prefix = MOD_SUCCESS_PREFIX - decimals = 0 - already_percent = yes -} - -hostile_scheme_power_add = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -hostile_scheme_power_mult = { - prefix = MOD_POWER_PREFIX - decimals = 0 - percent = yes -} - -personal_scheme_power_add = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -personal_scheme_power_mult = { - prefix = MOD_POWER_PREFIX - decimals = 0 - percent = yes -} - -hostile_scheme_resistance_add = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -hostile_scheme_resistance_mult = { - prefix = MOD_POWER_PREFIX - decimals = 0 - percent = yes -} - -personal_scheme_resistance_add = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -personal_scheme_resistance_mult = { - prefix = MOD_POWER_PREFIX - decimals = 0 - percent = yes -} - -diplomacy_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -intrigue_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -stewardship_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -martial_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -prowess_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -learning_scheme_power = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -diplomacy_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -intrigue_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -stewardship_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -martial_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -prowess_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -learning_scheme_resistance = { - prefix = MOD_POWER_PREFIX - decimals = 0 -} - -scheme_discovery_chance_mult = { - prefix = MOD_DISCOVERY_PREFIX - decimals = 0 - percent = yes -} - -max_personal_schemes_add = { - decimals = 0 -} - -max_hostile_schemes_add = { - decimals = 0 -} - -owned_hostile_scheme_success_chance_add = { - prefix = MOD_SUCCESS_PREFIX - decimals = 0 - already_percent = yes -} - -owned_personal_scheme_success_chance_add = { - prefix = MOD_SUCCESS_PREFIX - decimals = 0 - already_percent = yes -} - -enemy_hostile_scheme_success_chance_add = { - prefix = MOD_SUCCESS_PREFIX - decimals = 0 - color = bad - already_percent = yes -} - -enemy_personal_scheme_success_chance_add = { - prefix = MOD_SUCCESS_PREFIX - decimals = 0 - color = bad - already_percent = yes -} - -owned_scheme_secrecy_add = { - prefix = MOD_SECRECY_PREFIX - decimals = 0 - already_percent = yes -} - -movement_speed = { - prefix = MOD_MOVEMENT_SPEED_PREFIX - decimals = 0 - percent = yes -} - -movement_speed_land_raiding = { - prefix = MOD_MOVEMENT_SPEED_PREFIX - decimals = 0 - percent = yes -} - -retreat_losses = { - decimals = 0 - color = bad - percent = yes -} - -hard_casualty_modifier = { - decimals = 0 - color = bad - percent = yes -} - -enemy_hard_casualty_modifier = { - decimals = 0 - percent = yes -} - -advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -attacker_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -defender_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -coastal_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -enemy_terrain_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 - color = bad - percent = yes -} - -tolerance_advantage_mod = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -advantage_against_coreligionists = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -random_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 - color = neutral -} - -controlled_province_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -uncontrolled_province_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -no_water_crossing_penalty = { - decimals = 0 -} - -no_disembark_penalty = { - decimals = 0 -} - -raid_speed = { - prefix = MOD_RAID_PREFIX - decimals = 0 - percent = yes -} - -hostile_county_attrition = { - prefix = MOD_RAID_PREFIX - decimals = 0 - color = bad - percent = yes -} - -hostile_county_attrition_raiding = { - decimals = 0 - color = bad - percent = yes -} - -supply_duration = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -winter_movement_speed = { - prefix = MOD_MOVEMENT_SPEED_PREFIX - decimals = 0 - percent = yes -} - -supply_loss_winter = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -hard_casualty_winter = { - decimals = 0 - color = bad - percent = yes -} - -winter_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -led_by_owner_extra_advantage_add = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -same_heritage_county_advantage_add = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -independent_primary_defender_advantage_add = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -army_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -army_damage_mult = { - decimals = 0 - prefix = MOD_DAMAGE_PREFIX - percent = yes -} - -army_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -army_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -army_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -fort_level = { - decimals = 0 - prefix = MOD_HOLDING_FORT_LEVEL_PREFIX -} - -additional_fort_level = { - decimals = 0 - prefix = MOD_HOLDING_FORT_LEVEL_PREFIX -} - -supply_capacity_add = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -supply_capacity_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -hostile_raid_time = { - prefix = MOD_RAID_PREFIX - decimals = 0 - percent = yes -} - -defender_winter_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -garrison_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_same_faith = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_different_faith = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_even_if_baron = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_same_faith_even_if_baron = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_different_faith_even_if_baron = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -levy_reinforcement_rate_friendly_territory = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -build_speed = { - decimals = 0 - color = bad - prefix = MOD_TIME_PREFIX - percent = yes -} - -build_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -build_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -build_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -holding_build_speed = { - decimals = 0 - color = bad - prefix = MOD_TIME_PREFIX - percent = yes -} - -holding_build_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holding_build_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -holding_build_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -defender_holding_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -building_slot_add = { - decimals = 0 -} - -development_growth_factor = { - decimals = 0 - prefix = MOD_DEVELOPMENT_PREFIX - percent = yes -} - -development_growth = { - decimals = 2 - prefix = MOD_DEVELOPMENT_PREFIX - suffix = MOD_MONTHLY_POSTFIX -} - -character_capital_county_monthly_development_growth_add = { - decimals = 2 - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_county_control_change_add = { - prefix = MOD_CONTROL_PREFIX - decimals = 1 - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_county_control_change_factor = { - prefix = MOD_CONTROL_PREFIX - decimals = 0 - percent = yes -} - -monthly_county_control_change_add_even_if_baron = { - prefix = MOD_CONTROL_PREFIX - decimals = 1 -} - -monthly_county_control_change_factor_even_if_baron = { - prefix = MOD_CONTROL_PREFIX - decimals = 0 - percent = yes -} - -monthly_county_control_change_at_war_add = { - prefix = MOD_CONTROL_PREFIX - decimals = 2 - suffix = MOD_MONTHLY_POSTFIX -} - -monthly_county_control_change_at_war_mult = { - prefix = MOD_CONTROL_PREFIX - decimals = 0 - percent = yes -} - -county_opinion_add = { - decimals = 0 -} - -different_faith_county_opinion_mult = { - decimals = 0 - color = bad - percent = yes -} - -county_opinion_add_even_if_baron = { - decimals = 0 -} - -different_faith_county_opinion_mult_even_if_baron = { - decimals = 0 - color = bad - percent = yes -} - -mercenary_count_mult = { - decimals = 0 - percent = yes -} - -cultural_head_fascination_add = { - decimals = 0 -} - -cultural_head_fascination_mult = { - decimals = 0 - percent = yes -} - -cultural_head_acceptance_gain_mult = { - decimals = 0 - percent = yes -} - -cultural_acceptance_gain_mult = { - decimals = 0 - percent = yes -} - -culture_tradition_max_add = { - decimals = 0 -} - -faith_conversion_piety_cost_add = { - color = bad - prefix = MOD_PIETY_PREFIX -} - -faith_conversion_piety_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -faith_creation_piety_cost_add = { - color = bad - prefix = MOD_PIETY_PREFIX -} - -faith_creation_piety_cost_mult = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -ai_boldness = { - hidden = yes -} - -ai_compassion = { - hidden = yes -} - -ai_sociability = { - hidden = yes -} - -ai_greed = { - hidden = yes -} - -ai_energy = { - hidden = yes -} - -ai_honor = { - hidden = yes -} - -ai_rationality = { - hidden = yes -} - -ai_vengefulness = { - hidden = yes -} - -ai_zeal = { - hidden = yes -} - -ai_war_chance = { - hidden = yes -} - -ai_war_cooldown = { - hidden = yes -} - -ai_amenity_spending = { - hidden = yes -} - -ai_amenity_target_baseline = { - hidden = yes -} - -court_grandeur_baseline_add = { - decimals = 0 - color = good - dlc_feature = royal_court -} - -monthly_court_grandeur_change_add = { - suffix = MOD_MONTHLY_POSTFIX - dlc_feature = royal_court -} - -monthly_court_grandeur_change_mult = { - decimals = 0 - percent = yes - dlc_feature = royal_court -} - -artifact_decay_reduction_mult = { - decimals = 0 - percent = yes - color = bad -} - -strife_opinion_gain_mult = { - decimals = 0 - color = bad - percent = yes -} - -strife_opinion_loss_mult = { - decimals = 0 - percent = yes -} - -active_accolades = { - decimals = 0 - dlc_feature = accolades -} - -accolade_glory_gain_mult = { - decimals = 0 - percent = yes - dlc_feature = accolades -} - -levy_attack = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -levy_toughness = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -levy_siege = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 -} - -levy_pursuit = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -levy_screen = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -knight_effectiveness_per_dread = { - decimals = 1 - percent = yes -} - -knight_effectiveness_per_tyranny = { - decimals = 1 - percent = yes -} - -stress_loss_per_piety_level = { - decimals = 0 - percent = yes -} - -stress_loss_per_prestige_level = { - decimals = 0 - percent = yes -} - -pilgrim_xp_gain_mult = { - decimals = 0 - percent = yes -} -lifestyle_traveler_xp_gain_mult = { - decimals = 0 - percent = yes -} -lifestyle_reveler_xp_gain_mult = { - decimals = 0 - percent = yes -} -lifestyle_hunter_xp_gain_mult = { - decimals = 0 - percent = yes -} -tourney_participant_xp_gain_mult = { - decimals = 0 - percent = yes -} -pilgrim_xp_degradation_mult = { - decimals = 0 - percent = yes - color = bad -} -lifestyle_traveler_xp_degradation_mult = { - decimals = 0 - percent = yes - color = bad -} -lifestyle_reveler_xp_degradation_mult = { - decimals = 0 - percent = yes - color = bad -} -lifestyle_hunter_xp_degradation_mult = { - decimals = 0 - percent = yes - color = bad -} -tourney_participant_xp_degradation_mult = { - decimals = 0 - percent = yes - color = bad -} -trait_track_hunter_xp_gain_mult = { - decimals = 0 - percent = yes -} -trait_track_falconer_xp_gain_mult = { - decimals = 0 - percent = yes -} -trait_track_foot_xp_gain_mult = { - decimals = 0 - percent = yes -} -trait_track_bow_xp_gain_mult = { - decimals = 0 - percent = yes -} -trait_track_horse_xp_gain_mult = { - decimals = 0 - percent = yes -} -trait_track_wit_xp_gain_mult = { - decimals = 0 - percent = yes -} - -hostage_prestige_mult = { - decimals = 0 - percent = yes - prefix = MOD_MONTHLY_PRESTIGE_PREFIX -} - -hostage_piety_mult = { - decimals = 0 - percent = yes - prefix = MOD_MONTHLY_PIETY_PREFIX -} - -hostage_renown_mult = { - decimals = 0 - percent = yes - prefix = MOD_MONTHLY_DYNASTY_PRESTIGE_PREFIX -} - -hostage_income_mult = { - decimals = 0 - percent = yes -} diff --git a/common/modifier_definition_formats/00_government_definitions.txt b/common/modifier_definition_formats/00_government_definitions.txt deleted file mode 100644 index 26db51cdd9..0000000000 --- a/common/modifier_definition_formats/00_government_definitions.txt +++ /dev/null @@ -1,251 +0,0 @@ -feudal_government_opinion = { - decimals = 0 -} - -feudal_government_vassal_opinion = { - decimals = 0 -} - -feudal_government_opinion_same_faith = { - decimals = 0 -} - -feudal_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -feudal_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -feudal_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -feudal_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -republic_government_opinion = { - decimals = 0 -} - -republic_government_vassal_opinion = { - decimals = 0 -} - -republic_government_opinion_same_faith = { - decimals = 0 -} - -republic_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -republic_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -republic_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -republic_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -theocracy_government_opinion = { - decimals = 0 -} - -theocracy_government_vassal_opinion = { - decimals = 0 -} - -theocracy_government_opinion_same_faith = { - decimals = 0 -} - -theocracy_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -theocracy_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -theocracy_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -theocracy_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -clan_government_opinion = { - decimals = 0 -} - -clan_government_vassal_opinion = { - decimals = 0 -} - -clan_government_opinion_same_faith = { - decimals = 0 -} - -clan_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -clan_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -clan_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -clan_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -tribal_government_opinion = { - decimals = 0 -} - -tribal_government_vassal_opinion = { - decimals = 0 -} - -tribal_government_opinion_same_faith = { - decimals = 0 -} - -tribal_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -tribal_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -tribal_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -tribal_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mercenary_government_opinion = { - decimals = 0 -} - -mercenary_government_vassal_opinion = { - decimals = 0 -} - -mercenary_government_opinion_same_faith = { - decimals = 0 -} - -mercenary_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mercenary_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mercenary_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mercenary_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holy_order_government_opinion = { - decimals = 0 -} - -holy_order_government_vassal_opinion = { - decimals = 0 -} - -holy_order_government_opinion_same_faith = { - decimals = 0 -} - -holy_order_government_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holy_order_government_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holy_order_government_levy_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -holy_order_government_levy_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} diff --git a/common/modifier_definition_formats/00_holding_definitions.txt b/common/modifier_definition_formats/00_holding_definitions.txt deleted file mode 100644 index 57dc53ec52..0000000000 --- a/common/modifier_definition_formats/00_holding_definitions.txt +++ /dev/null @@ -1,223 +0,0 @@ -castle_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -castle_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -castle_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -castle_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -castle_holding_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -castle_holding_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -castle_holding_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -castle_holding_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -tribal_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -tribal_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -tribal_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -tribal_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -tribal_holding_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -tribal_holding_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -tribal_holding_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -tribal_holding_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -city_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -city_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -city_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -city_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -city_holding_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -city_holding_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -city_holding_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -city_holding_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -church_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -church_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -church_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -church_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} - -church_holding_holding_build_speed = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_TIME_PREFIX -} - -church_holding_holding_build_gold_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_COST_PREFIX -} - -church_holding_holding_build_piety_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PIETY_PREFIX -} - -church_holding_holding_build_prestige_cost = { - decimals = 0 - color = bad - percent = yes - prefix = MOD_PRESTIGE_PREFIX -} diff --git a/common/modifier_definition_formats/00_lifestyle_definitions.txt b/common/modifier_definition_formats/00_lifestyle_definitions.txt deleted file mode 100644 index 144ebda27c..0000000000 --- a/common/modifier_definition_formats/00_lifestyle_definitions.txt +++ /dev/null @@ -1,49 +0,0 @@ -monthly_diplomacy_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -diplomacy_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -monthly_martial_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -martial_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -monthly_stewardship_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -stewardship_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -monthly_intrigue_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -intrigue_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -monthly_learning_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} - -learning_lifestyle_xp_gain_mult = { - decimals = 0 - percent = yes -} diff --git a/common/modifier_definition_formats/00_scheme_definitions.txt b/common/modifier_definition_formats/00_scheme_definitions.txt deleted file mode 100644 index 12d8822483..0000000000 --- a/common/modifier_definition_formats/00_scheme_definitions.txt +++ /dev/null @@ -1,308 +0,0 @@ -max_abduct_schemes_add = { - decimals = 0 -} - -abduct_scheme_power_add = { - decimals = 0 -} - -abduct_scheme_power_mult = { - decimals = 0 - percent = yes -} - -abduct_scheme_resistance_add = { - decimals = 0 -} - -abduct_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_befriend_schemes_add = { - decimals = 0 -} - -befriend_scheme_power_add = { - decimals = 0 -} - -befriend_scheme_power_mult = { - decimals = 0 - percent = yes -} - -befriend_scheme_resistance_add = { - decimals = 0 -} - -befriend_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_claim_throne_schemes_add = { - decimals = 0 -} - -claim_throne_scheme_power_add = { - decimals = 0 -} - -claim_throne_scheme_power_mult = { - decimals = 0 - percent = yes -} - -claim_throne_scheme_resistance_add = { - decimals = 0 -} - -claim_throne_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_convert_to_witchcraft_schemes_add = { - decimals = 0 -} - -convert_to_witchcraft_scheme_power_add = { - decimals = 0 -} - -convert_to_witchcraft_scheme_power_mult = { - decimals = 0 - percent = yes -} - -convert_to_witchcraft_scheme_resistance_add = { - decimals = 0 -} - -convert_to_witchcraft_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_courting_schemes_add = { - decimals = 0 -} - -courting_scheme_power_add = { - decimals = 0 -} - -courting_scheme_power_mult = { - decimals = 0 - percent = yes -} - -courting_scheme_resistance_add = { - decimals = 0 -} - -courting_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_elope_schemes_add = { - decimals = 0 -} - -elope_scheme_power_add = { - decimals = 0 -} - -elope_scheme_power_mult = { - decimals = 0 - percent = yes -} - -elope_scheme_resistance_add = { - decimals = 0 -} - -elope_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_fabricate_hook_schemes_add = { - decimals = 0 -} - -fabricate_hook_scheme_power_add = { - decimals = 0 -} - -fabricate_hook_scheme_power_mult = { - decimals = 0 - percent = yes -} - -fabricate_hook_scheme_resistance_add = { - decimals = 0 -} - -fabricate_hook_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_learn_language_schemes_add = { - decimals = 0 -} - -learn_language_scheme_power_add = { - decimals = 0 -} - -learn_language_scheme_power_mult = { - decimals = 0 - percent = yes -} - -learn_language_scheme_resistance_add = { - decimals = 0 -} - -learn_language_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_murder_schemes_add = { - decimals = 0 -} - -murder_scheme_power_add = { - decimals = 0 -} - -murder_scheme_power_mult = { - decimals = 0 - percent = yes -} - -murder_scheme_resistance_add = { - decimals = 0 -} - -murder_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_seduce_schemes_add = { - decimals = 0 -} - -seduce_scheme_power_add = { - decimals = 0 -} - -seduce_scheme_power_mult = { - decimals = 0 - percent = yes -} - -seduce_scheme_resistance_add = { - decimals = 0 -} - -seduce_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_steal_back_artifact_schemes_add = { - decimals = 0 -} - -steal_back_artifact_scheme_power_add = { - decimals = 0 -} - -steal_back_artifact_scheme_power_mult = { - decimals = 0 - percent = yes -} - -steal_back_artifact_scheme_resistance_add = { - decimals = 0 -} - -steal_back_artifact_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -max_sway_schemes_add = { - decimals = 0 -} - -sway_scheme_power_add = { - decimals = 0 -} - -sway_scheme_power_mult = { - decimals = 0 - percent = yes -} - -sway_scheme_resistance_add = { - decimals = 0 -} - -sway_scheme_resistance_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_friend_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_best_friend_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_rival_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_nemesis_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_lover_mult = { - decimals = 0 - percent = yes -} - -scheme_power_against_friend_add = { - decimals = 0 -} - -scheme_power_against_best_friend_add = { - decimals = 0 -} - -scheme_power_against_rival_add = { - decimals = 0 -} - -scheme_power_against_nemesis_add = { - decimals = 0 -} - -scheme_power_against_lover_add = { - decimals = 0 -} diff --git a/common/modifier_definition_formats/00_terrain_definitions.txt b/common/modifier_definition_formats/00_terrain_definitions.txt deleted file mode 100644 index 8b258f3304..0000000000 --- a/common/modifier_definition_formats/00_terrain_definitions.txt +++ /dev/null @@ -1,1398 +0,0 @@ -plains_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -plains_cancel_negative_supply = { - decimals = 0 -} - -plains_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -plains_min_combat_roll = { - decimals = 0 -} - -plains_max_combat_roll = { - decimals = 0 -} - -plains_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -plains_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -plains_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -plains_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -plains_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -plains_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -plains_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -plains_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -plains_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -plains_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -plains_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -plains_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -farmlands_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -farmlands_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -farmlands_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -farmlands_min_combat_roll = { - decimals = 0 -} - -farmlands_max_combat_roll = { - decimals = 0 -} - -farmlands_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -farmlands_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -farmlands_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -farmlands_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -farmlands_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -farmlands_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -farmlands_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -farmlands_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -farmlands_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -farmlands_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -farmlands_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -farmlands_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -hills_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -hills_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -hills_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -hills_min_combat_roll = { - decimals = 0 -} - -hills_max_combat_roll = { - decimals = 0 -} - -hills_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -hills_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -hills_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -hills_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -hills_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -hills_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -hills_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -hills_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -hills_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -hills_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -hills_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -hills_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -mountains_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -mountains_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -mountains_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -mountains_min_combat_roll = { - decimals = 0 -} - -mountains_max_combat_roll = { - decimals = 0 -} - -mountains_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -mountains_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -mountains_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mountains_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mountains_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -mountains_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -mountains_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -mountains_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -mountains_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -mountains_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -mountains_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -mountains_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -desert_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -desert_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -desert_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -desert_min_combat_roll = { - decimals = 0 -} - -desert_max_combat_roll = { - decimals = 0 -} - -desert_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -desert_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -desert_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -desert_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -desert_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -desert_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -desert_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -desert_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -desert_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -desert_mountains_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -desert_mountains_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -desert_mountains_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -desert_mountains_min_combat_roll = { - decimals = 0 -} - -desert_mountains_max_combat_roll = { - decimals = 0 -} - -desert_mountains_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -desert_mountains_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -desert_mountains_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_mountains_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_mountains_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -desert_mountains_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -desert_mountains_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -desert_mountains_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -desert_mountains_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -desert_mountains_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -desert_mountains_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -desert_mountains_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -oasis_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -oasis_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -oasis_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -oasis_min_combat_roll = { - decimals = 0 -} - -oasis_max_combat_roll = { - decimals = 0 -} - -oasis_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -oasis_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -oasis_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -oasis_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -oasis_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -oasis_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -oasis_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -oasis_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -oasis_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -oasis_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -oasis_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -oasis_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -jungle_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -jungle_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -jungle_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -jungle_min_combat_roll = { - decimals = 0 -} - -jungle_max_combat_roll = { - decimals = 0 -} - -jungle_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -jungle_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -jungle_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -jungle_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -jungle_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -jungle_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -jungle_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -jungle_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -jungle_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -jungle_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -jungle_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -jungle_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -forest_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -forest_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -forest_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -forest_min_combat_roll = { - decimals = 0 -} - -forest_max_combat_roll = { - decimals = 0 -} - -forest_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -forest_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -forest_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -forest_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -forest_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -forest_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -forest_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -forest_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -forest_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -forest_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -forest_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -forest_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -taiga_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -taiga_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -taiga_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -taiga_min_combat_roll = { - decimals = 0 -} - -taiga_max_combat_roll = { - decimals = 0 -} - -taiga_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -taiga_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -taiga_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -taiga_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -taiga_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -taiga_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -taiga_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -taiga_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -taiga_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -taiga_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -taiga_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -taiga_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -wetlands_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -wetlands_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -wetlands_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -wetlands_min_combat_roll = { - decimals = 0 -} - -wetlands_max_combat_roll = { - decimals = 0 -} - -wetlands_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -wetlands_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -wetlands_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -wetlands_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -wetlands_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -wetlands_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -wetlands_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -wetlands_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -wetlands_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -wetlands_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -wetlands_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -wetlands_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -steppe_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -steppe_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -steppe_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -steppe_min_combat_roll = { - decimals = 0 -} - -steppe_max_combat_roll = { - decimals = 0 -} - -steppe_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -steppe_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -steppe_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -steppe_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -steppe_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -steppe_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -steppe_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -steppe_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -steppe_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -steppe_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -steppe_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -steppe_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -floodplains_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -floodplains_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -floodplains_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -floodplains_min_combat_roll = { - decimals = 0 -} - -floodplains_max_combat_roll = { - decimals = 0 -} - -floodplains_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -floodplains_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -floodplains_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -floodplains_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -floodplains_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -floodplains_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -floodplains_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -floodplains_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -floodplains_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -floodplains_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -floodplains_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -floodplains_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -drylands_attrition_mult = { - decimals = 0 - color = bad - percent = yes -} - -drylands_cancel_negative_supply = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -drylands_advantage = { - prefix = MOD_ADVANTAGE_PREFIX - decimals = 0 -} - -drylands_min_combat_roll = { - decimals = 0 -} - -drylands_max_combat_roll = { - decimals = 0 -} - -drylands_development_growth = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 1 -} - -drylands_development_growth_factor = { - prefix = MOD_DEVELOPMENT_PREFIX - decimals = 0 - percent = yes -} - -drylands_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -drylands_holding_construction_gold_cost = { - decimals = 0 - color = bad - prefix = MOD_GOLD_PREFIX - percent = yes -} - -drylands_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -drylands_holding_construction_piety_cost = { - decimals = 0 - color = bad - prefix = MOD_PIETY_PREFIX - percent = yes -} - -drylands_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -drylands_holding_construction_prestige_cost = { - decimals = 0 - color = bad - prefix = MOD_PRESTIGE_PREFIX - percent = yes -} - -drylands_supply_limit = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 -} - -drylands_supply_limit_mult = { - prefix = MOD_SUPPLY_PREFIX - decimals = 0 - percent = yes -} - -drylands_tax_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} - -drylands_levy_size = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} diff --git a/common/modifier_definition_formats/00_travel_definitions.txt b/common/modifier_definition_formats/00_travel_definitions.txt deleted file mode 100644 index 9daedb630d..0000000000 --- a/common/modifier_definition_formats/00_travel_definitions.txt +++ /dev/null @@ -1,127 +0,0 @@ -travel_speed = { - prefix = MOD_TRAVEL_SPEED_PREFIX - decimals = 0 -} - -travel_speed_mult = { - prefix = MOD_TRAVEL_SPEED_PREFIX - decimals = 0 - percent = yes -} - -travel_safety = { - prefix = MOD_TRAVEL_SAFETY_PREFIX - decimals = 0 -} - -travel_safety_mult = { - prefix = MOD_TRAVEL_SAFETY_PREFIX - decimals = 0 - percent = yes -} - -character_travel_speed = { - prefix = MOD_TRAVEL_SPEED_PREFIX - decimals = 0 -} - -character_travel_speed_mult = { - prefix = MOD_TRAVEL_SPEED_PREFIX - decimals = 0 - percent = yes -} - -character_travel_safety = { - prefix = MOD_TRAVEL_SAFETY_PREFIX - decimals = 0 -} - -character_travel_safety_mult = { - prefix = MOD_TRAVEL_SAFETY_PREFIX - decimals = 0 - percent = yes -} - -travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -hills_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -mountains_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -desert_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -desert_mountains_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -jungle_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -forest_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -taiga_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -wetlands_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -steppe_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -floodplains_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -drylands_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -sea_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} - -coastal_sea_travel_danger = { - prefix = MOD_TRAVEL_DANGER_PREFIX - decimals = 0 - color = bad -} diff --git a/common/modifier_definition_formats/00_unit_definitions.txt b/common/modifier_definition_formats/00_unit_definitions.txt deleted file mode 100644 index 91c4c9dc23..0000000000 --- a/common/modifier_definition_formats/00_unit_definitions.txt +++ /dev/null @@ -1,1437 +0,0 @@ -heavy_infantry_max_size_add = { - decimals = 0 -} - -heavy_infantry_max_size_mult = { - decimals = 0 - percent = yes -} - -heavy_infantry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -heavy_infantry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -heavy_infantry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -heavy_infantry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -heavy_infantry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -heavy_infantry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -heavy_infantry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -heavy_infantry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -heavy_infantry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -heavy_infantry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -heavy_infantry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -heavy_infantry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -pikemen_max_size_add = { - decimals = 0 -} - -pikemen_max_size_mult = { - decimals = 0 - percent = yes -} - -pikemen_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -pikemen_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -pikemen_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -pikemen_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -pikemen_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -pikemen_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -pikemen_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -pikemen_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -pikemen_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -pikemen_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -pikemen_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -pikemen_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -archers_max_size_add = { - decimals = 0 -} - -archers_max_size_mult = { - decimals = 0 - percent = yes -} - -archers_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -archers_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -archers_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -archers_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -archers_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -archers_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -archers_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -archers_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -archers_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -archers_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -archers_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -archers_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -light_cavalry_max_size_add = { - decimals = 0 -} - -light_cavalry_max_size_mult = { - decimals = 0 - percent = yes -} - -light_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -light_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -light_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -light_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -light_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -light_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -light_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -light_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -light_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -light_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -light_cavalry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -light_cavalry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -heavy_cavalry_max_size_add = { - decimals = 0 -} - -heavy_cavalry_max_size_mult = { - decimals = 0 - percent = yes -} - -heavy_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -heavy_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -heavy_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -heavy_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -heavy_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -heavy_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -heavy_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -heavy_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -heavy_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -heavy_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -heavy_cavalry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -heavy_cavalry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -skirmishers_max_size_add = { - decimals = 0 -} - -skirmishers_max_size_mult = { - decimals = 0 - percent = yes -} - -skirmishers_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -skirmishers_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -skirmishers_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -skirmishers_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -skirmishers_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -skirmishers_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -skirmishers_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -skirmishers_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -skirmishers_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -skirmishers_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -skirmishers_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -skirmishers_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -camel_cavalry_max_size_add = { - decimals = 0 -} - -camel_cavalry_max_size_mult = { - decimals = 0 - percent = yes -} - -camel_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -camel_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -camel_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -camel_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -camel_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -camel_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -camel_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -camel_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -camel_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -camel_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -camel_cavalry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -camel_cavalry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -elephant_cavalry_max_size_add = { - decimals = 0 -} - -elephant_cavalry_max_size_mult = { - decimals = 0 - percent = yes -} - -elephant_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -elephant_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -elephant_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -elephant_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -elephant_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -elephant_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -elephant_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -elephant_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -elephant_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -elephant_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -elephant_cavalry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -elephant_cavalry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -archer_cavalry_max_size_add = { - decimals = 0 -} - -archer_cavalry_max_size_mult = { - decimals = 0 - percent = yes -} - -archer_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -archer_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -archer_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -archer_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -archer_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -archer_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -archer_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -archer_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -archer_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -archer_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -archer_cavalry_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -archer_cavalry_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -siege_weapon_max_size_add = { - decimals = 0 -} - -siege_weapon_max_size_mult = { - decimals = 0 - percent = yes -} - -siege_weapon_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -siege_weapon_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -siege_weapon_damage_add = { - decimals = 0 - prefix = MOD_DAMAGE_PREFIX -} - -siege_weapon_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -siege_weapon_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -siege_weapon_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -siege_weapon_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -siege_weapon_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -siege_weapon_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -siege_weapon_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -siege_weapon_maintenance_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -siege_weapon_recruitment_cost_mult = { - decimals = 2 - prefix = MOD_GOLD_PREFIX - color = bad - percent = yes -} - -maa_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -maa_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -maa_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -maa_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -maa_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -maa_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -maa_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -maa_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -maa_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -maa_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_maa_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_maa_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_maa_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_maa_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_maa_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_maa_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_maa_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_maa_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_maa_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 2 -} - -stationed_maa_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_skirmishers_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_skirmishers_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_skirmishers_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_skirmishers_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_skirmishers_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_skirmishers_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_skirmishers_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_skirmishers_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_skirmishers_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_skirmishers_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_archers_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_archers_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_archers_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_archers_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_archers_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_archers_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_archers_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} -stationed_archers_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_archers_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_archers_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_light_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_light_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_light_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_light_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_light_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_light_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_light_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_light_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_light_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_light_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_heavy_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_heavy_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_heavy_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_heavy_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_heavy_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_pikemen_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_pikemen_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_pikemen_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_pikemen_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_pikemen_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_pikemen_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_pikemen_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_pikemen_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_pikemen_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_pikemen_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_infantry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_heavy_infantry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_infantry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_heavy_infantry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_infantry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_heavy_infantry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_infantry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_heavy_infantry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_heavy_infantry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_heavy_infantry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_archer_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_archer_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_archer_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_archer_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_archer_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} -stationed_archer_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_archer_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_archer_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_archer_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_archer_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_camel_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_camel_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_camel_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_camel_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_camel_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_camel_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_camel_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_camel_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_camel_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_camel_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_elephant_cavalry_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_elephant_cavalry_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_elephant_cavalry_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_elephant_cavalry_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_elephant_cavalry_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_elephant_cavalry_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_elephant_cavalry_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_elephant_cavalry_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_elephant_cavalry_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_elephant_cavalry_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_siege_weapon_damage_add = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 -} - -stationed_siege_weapon_damage_mult = { - prefix = MOD_DAMAGE_PREFIX - decimals = 0 - percent = yes -} - -stationed_siege_weapon_toughness_add = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 -} - -stationed_siege_weapon_toughness_mult = { - prefix = MOD_TOUGHNESS_PREFIX - decimals = 0 - percent = yes -} - -stationed_siege_weapon_pursuit_add = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 -} - -stationed_siege_weapon_pursuit_mult = { - prefix = MOD_PURSUIT_PREFIX - decimals = 0 - percent = yes -} - -stationed_siege_weapon_screen_add = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 -} - -stationed_siege_weapon_screen_mult = { - prefix = MOD_SCREEN_PREFIX - decimals = 0 - percent = yes -} - -stationed_siege_weapon_siege_value_add = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 1 -} - -stationed_siege_weapon_siege_value_mult = { - prefix = MOD_SIEGE_PROGRESS_PREFIX - decimals = 0 - percent = yes -} diff --git a/common/modifier_definition_formats/00_vassal_stance_definitions.txt b/common/modifier_definition_formats/00_vassal_stance_definitions.txt deleted file mode 100644 index 9ebaaf8b3d..0000000000 --- a/common/modifier_definition_formats/00_vassal_stance_definitions.txt +++ /dev/null @@ -1,215 +0,0 @@ -courtly_opinion = { - decimals = 0 -} -courtly_same_faith_opinion = { - decimals = 0 -} -courtly_different_faith_opinion = { - decimals = 0 -} -courtly_same_culture_opinion = { - decimals = 0 -} -courtly_different_culture_opinion = { - decimals = 0 -} -courtly_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -courtly_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -courtly_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -courtly_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -glory_hound_opinion = { - decimals = 0 -} -glory_hound_same_faith_opinion = { - decimals = 0 -} -glory_hound_different_faith_opinion = { - decimals = 0 -} -glory_hound_same_culture_opinion = { - decimals = 0 -} -glory_hound_different_culture_opinion = { - decimals = 0 -} -glory_hound_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -glory_hound_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -glory_hound_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -glory_hound_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -parochial_opinion = { - decimals = 0 -} -parochial_same_faith_opinion = { - decimals = 0 -} -parochial_different_faith_opinion = { - decimals = 0 -} -parochial_same_culture_opinion = { - decimals = 0 -} -parochial_different_culture_opinion = { - decimals = 0 -} -parochial_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -parochial_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -parochial_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -parochial_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -zealot_opinion = { - decimals = 0 -} -zealot_same_faith_opinion = { - decimals = 0 -} -zealot_different_faith_opinion = { - decimals = 0 -} -zealot_same_culture_opinion = { - decimals = 0 -} -zealot_different_culture_opinion = { - decimals = 0 -} -zealot_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -zealot_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -zealot_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -zealot_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -minority_opinion = { - decimals = 0 -} -minority_same_faith_opinion = { - decimals = 0 -} -minority_different_faith_opinion = { - decimals = 0 -} -minority_same_culture_opinion = { - decimals = 0 -} -minority_different_culture_opinion = { - decimals = 0 -} -minority_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -minority_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -minority_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -minority_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} - -barons_and_minor_landholders_opinion = { - decimals = 0 -} -barons_and_minor_landholders_same_faith_opinion = { - decimals = 0 -} -barons_and_minor_landholders_different_faith_opinion = { - decimals = 0 -} -barons_and_minor_landholders_same_culture_opinion = { - decimals = 0 -} -barons_and_minor_landholders_different_culture_opinion = { - decimals = 0 -} -barons_and_minor_landholders_tax_contribution_add = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -barons_and_minor_landholders_tax_contribution_mult = { - decimals = 0 - prefix = MOD_GOLD_PREFIX - percent = yes -} -barons_and_minor_landholders_levy_contribution_add = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} -barons_and_minor_landholders_levy_contribution_mult = { - decimals = 0 - prefix = MOD_SOLDIER_PREFIX - percent = yes -} diff --git a/common/modifier_icons/00_modifier_icons.txt b/common/modifier_icons/00_modifier_icons.txt deleted file mode 100644 index fe377ba6c9..0000000000 --- a/common/modifier_icons/00_modifier_icons.txt +++ /dev/null @@ -1,10 +0,0 @@ -#example = { -# positive = "gfx/interface/icons/example_positive.dds" # Will be used if >= 0 or if `negative` isn't set -# negative = "gfx/interface/icons/example_negative.dds" # Will be used if < 0 (optional) -# default = yes # The first one in the file with this flag will be used as default -#} - -default = { - positive = "gfx/interface/icons/modifiers/_default.dds" - default = yes -} diff --git a/common/modifiers/00_activity_feast_modifiers.txt b/common/modifiers/00_activity_feast_modifiers.txt deleted file mode 100644 index c4cca032d1..0000000000 --- a/common/modifiers/00_activity_feast_modifiers.txt +++ /dev/null @@ -1,273 +0,0 @@ - -feast_strategy_discussions_modifier = { - icon = feast_positive - movement_speed = 0.1 - max_combat_roll = 5 -} - -murder_feast_murderer_modifier = { - icon = feast_positive - hostile_scheme_power_mult = 0.25 -} - -murder_feast_great_murderer_modifier = { - icon = feast_positive - diplomacy = -1 - hostile_scheme_power_mult = 0.4 -} - -feast_better_safe_than_sorry_modifier = { - icon = feast_positive - defender_advantage = 10 -} - -feast_overly_safe_rather_than_sorry_modifier = { - icon = feast_positive - defender_advantage = 10 - hostile_scheme_resistance_add = 20 -} - -feast_silenced_a_disruptive_guest = { - icon = feast_positive - monthly_prestige = 1 -} - -feast_bad_reaction_to_food = { - icon = feast_negative - health = -1 -} - -feast_had_good_fight_modifier = { - icon = feast_positive - stress_loss_mult = 0.25 -} - -feast_loyal_servantry_modifier = { - icon = feast_positive - hostile_scheme_resistance_mult = 0.2 -} - -i_am_corteous_guest_modifier = { - icon = feast_positive - diplomacy = 1 - liege_opinion = 5 - direct_vassal_opinion = 5 -} - -feast_higher_standards_modifier = { - icon = feast_positive - monthly_prestige = 1 -} - -feast_scholarly_confidence_modifier = { - icon = feast_positive - stress_gain_mult = -0.25 - learning = -1 -} - -feast_gratifying_complaints_modifier = { - icon = feast_positive - stress_gain_mult = -0.25 - stress_loss_mult = 0.25 -} - -feast_life_reaffirmed_modifier = { - icon = feast_positive - stress_gain_mult = -0.5 - health = 0.5 -} - -feast_reinvigorated_by_friend_modifier = { - icon = feast_positive - health = 1 -} - -feast_practiced_secrecy_modifier = { - icon = feast_positive - intrigue = 2 - health = 0.25 -} - -feast_showed_great_restraint_modifier = { - icon = feast_positive - diplomacy = 1 - learning = 1 -} - -feast_bad_form_with_rival_modifier = { - icon = feast_negative - stress_gain_mult = 0.2 - health = -0.25 -} - -feast_had_interesting_conversation_modifier = { - icon = feast_positive - diplomacy = 1 - learning = 1 -} - -feast_bought_more_drink_modifier = { - icon = drink_positive - monthly_prestige = 0.5 -} - -feast_good_food_modifier = { - icon = feast_positive - health = 1 -} - -feast_household_efforts_modifier = { - icon = feast_positive - direct_vassal_opinion = 5 - courtier_and_guest_opinion = 10 -} - -feast_raucous_entertainment_modifier = { - icon = feast_positive - stress_gain_mult = -0.2 - health = 0.5 -} - -feast_suspicious_of_food_modifier = { - icon = feast_positive - intrigue = 1 - hostile_scheme_resistance_mult = 0.3 -} - -feast_display_of_ruthlessness_modifier = { - icon = feast_positive - dread_gain_mult = 0.25 - dread_decay_mult = -0.5 -} - -feast_bird_based_exercise_modifier = { - icon = feast_positive - learning = 1 - health = 1 -} - -feast_livestock_at_feast_modifier = { - icon = feast_positive - stress_gain_mult = -0.25 -} - -feast_spilled_stew_modifier = { - icon = feast_positive - health = 0.25 -} - -feast_blew_off_steam_modifier = { - icon = feast_positive - diplomacy = 1 - health = 0.5 -} - -feast_hearty_diet_modifier = { - icon = drink_positive - health = 1 -} - -feast_obsessed_with_garum_modifier = { - icon = drink_positive - stress_gain_mult = -0.2 - health = 0.5 -} - -feast_moonlight_shadow_modifier = { - icon = intrigue_positive - intrigue = 1 - stress_gain_mult = -0.2 -} - -feast_observed_modifier = { - icon = intrigue_negative - stress_gain_mult = 0.2 - hostile_scheme_resistance_mult = 0.3 -} - -feast_honorable_soul_modifier = { - icon = intrigue_positive - stress_gain_mult = -0.2 - monthly_prestige = 0.5 -} - -feast_truth_bender_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_power_mult = 0.2 -} - -feast_untruthful_modifier = { - icon = intrigue_negative - intrigue = -1 - monthly_prestige = -0.5 -} - -#feast_came_clean_modifier = { -# icon = social_positive -# diplomacy = 1 -# general_opinion = 10 -# monthly_prestige = 0.5 -#} -# -#feast_admitted_to_theft_modifier = { -# icon = social_negative -# dread_gain_mult = -0.2 -# general_opinion = -10 -# monthly_prestige = -0.5 -#} - -feast_benevolent_ruler_modifier = { - icon = diplomacy_positive - direct_vassal_opinion = 5 - courtier_and_guest_opinion = 10 -} - -feast_dutiful_ruler_modifier = { - icon = diplomacy_positive - monthly_prestige_gain_mult = 0.05 - courtier_and_guest_opinion = 20 -} - -feast_sneakily_defaced_artifact_modifier = { - icon = intrigue_positive - intrigue = 1 - prowess = 2 -} - -feast_recent_fest_modifier = { - icon = feast_positive - county_opinion_add = 10 - development_growth_factor = medium_development_growth_gain -} - -feast_7201_goh_honoured_modifier = { - icon = fashion_positive - monthly_prestige_gain_mult = 0.2 -} - -feasts_mischievous_t1_modifier = { - icon = mask_positive - stress_loss_mult = 0.1 - general_opinion = -1 - child_opinion = 5 -} - -feasts_mischievous_t2_modifier = { - icon = mask_positive - stress_loss_mult = 0.2 - general_opinion = -2 - child_opinion = 10 -} - -feasts_mischievous_t3_modifier = { - icon = mask_positive - stress_loss_mult = 0.3 - general_opinion = -4 - child_opinion = 20 -} - -feast_learnt_habits_modifier = { - icon = bed_positive - # Adds base success to the scheme it's in. -} diff --git a/common/modifiers/00_activity_hold_court_modifiers.txt b/common/modifiers/00_activity_hold_court_modifiers.txt deleted file mode 100644 index ecef58beac..0000000000 --- a/common/modifiers/00_activity_hold_court_modifiers.txt +++ /dev/null @@ -1,76 +0,0 @@ -################################################## -# Modifiers granted from the Hold Court activity # -################################################## - -hold_court_grateful_peasants_modifier = { - icon = goods_positive - county_opinion_add = 25 - travel_danger = -5 -} - -hold_court_cropsharing = { - icon = goods_positive - county_opinion_add = 25 - development_growth_factor = 0.05 -} - -hold_court_free_labor = { - icon = goods_positive - development_growth_factor = 0.05 - build_speed = -0.10 - build_gold_cost = -0.10 -} - -hold_court_ploughs_to_swords = { - icon = goods_positive - tax_mult = -0.2 - levy_size = 0.2 - travel_danger = -5 -} - -hold_court_written_language_women_modifier = { - icon = learning_positive - learning = 1 - diplomacy = 1 -} - - -hold_court_written_language_women_advanced_modifier = { - icon = learning_positive - learning = 2 - diplomacy = 1 -} - -hold_court_written_language_men_modifier = { - icon = learning_positive - learning = 1 - diplomacy = 1 -} - -hold_court_written_language_men_advanced_modifier = { - icon = learning_positive - learning = 2 - diplomacy = 1 -} - -hold_court_distracted_tutor_modifier = { - icon = learning_negative - learning = -2 -} - -hold_court_austere_court_modifier = { - icon = learning_positive - learning = 2 - diplomacy = -1 -} - -hold_court_steward_advising_vassal_modifier = { - icon = health_negative - stewardship = -1 - health = -1 -} - -hold_court_receiving_liege_steward_advise_modifier = { - icon = stewardship_positive - stewardship = 2 -} diff --git a/common/modifiers/00_activity_hunt_modifiers.txt b/common/modifiers/00_activity_hunt_modifiers.txt deleted file mode 100644 index 534689fa76..0000000000 --- a/common/modifiers/00_activity_hunt_modifiers.txt +++ /dev/null @@ -1,273 +0,0 @@ - -hunt_punished_locals_modifier = { - icon = hunt_positive - tax_mult = 0.1 - county_opinion_add = -30 -} - -hunt_upset_hunting_county_modifier = { - icon = hunt_negative - county_opinion_add = -30 -} - -hunt_poacher_training_modifier = { - icon = hunt_positive - prowess = 2 - trait_track_hunter_xp_gain_mult = 0.1 -} - -modifier_hunt_hunting_trophy = { - icon = hunt_positive - monthly_prestige = 0.5 -} - -modifier_hunt_friend_of_animal = { - icon = hunt_positive - monthly_prestige = 0.25 - stress_loss_mult = 0.25 -} - -modifier_hunt_resisted_advances = { - icon = hunt_positive - theocracy_government_opinion_same_faith = 10 -} - -hunt_guide_local_madman_modifier = { - icon = hunt_positive - trait_track_hunter_xp_gain_mult = 0.15 -} - -hunt_killed_local_madman_modifier = { - icon = hunt_negative - county_opinion_add = -30 - monthly_county_control_change_add = 1 -} - -hunt_talked_to_madman_modifier = { - icon = hunt_positive - monthly_county_control_change_add = 1 -} - -hunt_peasants_denied_forest_modifier = { - icon = hunt_negative - county_opinion_add = -30 -} - -hunt_peasants_hunted_modifier = { - icon = hunt_negative - county_opinion_add = -60 - development_growth_factor = tiny_development_growth_loss -} - -hunt_aided_peasants_modifier = { - icon = hunt_positive - county_opinion_add = 30 - development_growth_factor = tiny_development_growth_gain -} - -hunt_fresh_air_and_exercise_modifier = { - icon = hunt_positive - health = 1 - diplomacy = 1 -} - -hunt_focused_attention_modifier = { - icon = hunt_positive - stewardship = 2 - prowess = 1 -} - -modifier_hunt_dog_trophy_modifier = { - icon = hunt_positive - monthly_prestige = 0.25 -} - -modifier_hunt_dog_fighting_modifier = { - icon = dog_positive - prowess = 1 -} - -hunt_mediated_fight_modifier = { - icon = dog_positive - diplomacy = 1 -} - -hunt_protected_peasants_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 30 -} - -hunt_disturbed_locals_modifier = { - icon = hunt_negative - county_opinion_add = -15 -} - -hunt_focused_effort_modifier = { - icon = hunt_positive - prowess = 1 -} - -hunt_treated_injury_modifier = { - icon = hunt_positive - learning = 1 -} - -hunt_tasted_the_belt_modifier = { - icon = hunt_negative - health = -0.25 - monthly_prestige = -0.5 -} - -hunt_treated_wound_modifier = { - icon = hunt_positive - negate_health_penalty_add = 1 -} - -hunt_chose_truth_modifier = { - icon = hunt_positive - direct_vassal_opinion = 5 -} - -hunt_mystical_animal_modifier = { - icon = hunt_positive - general_opinion = 10 - monthly_prestige = 1 - prowess = 2 - glory_hound_opinion = 10 -} - -hunt_protected_their_secret_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_mult = 0.25 -} - -hunt_sighting_standard_modifier = { - icon = hunt_positive -} - -hunt_sighting_dangerous_modifier = { - icon = bear_positive -} - -hunt_sighting_legendary_modifier = { - icon = beast_positive -} - -hunt_sighting_falconry_modifier = { - icon = bird_positive -} - -hunt_heir_murder_exposed_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -hunt_disrespected_locals_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -hunt_happy_hounds_modifier = { - icon = hunt_positive - stress_loss_mult = 0.05 -} - -hunt_savage_hounds_modifier = { - icon = hunt_positive - monthly_prestige = 0.25 -} - -hunt_savaged_hounds_modifier = { - icon = hunt_negative - stress_gain_mult = 0.05 -} - -crushed_by_boulder_modifier = { - icon = health_negative - health = -1 -} - -hunt_blooming_garden_modifier = { - icon = fertility_positive - court_grandeur_baseline_add = 5 - monthly_prestige = 0.1 -} - -hunt_stocked_medicus_modifier = { - icon = health_positive - negate_health_penalty_add = 0.5 - learning = 1 -} - -hunt_witch_protector_modifier = { - icon = intrigue_positive - convert_to_witchcraft_scheme_power_mult = 0.15 - intrigue = 1 -} - -hunt_poisonous_herbs_modifier = { - icon = intrigue_positive - hostile_scheme_power_mult = 0.1 - intrigue = 1 -} - -hunt_medicinal_herbs_modifier = { - icon = treatment_positive - negate_health_penalty_add = 0.5 - learning = 1 -} - -hunt_left_in_trap_modifier = { - icon = health_negative - health = -0.25 -} - -hunt_punished_trappers_modifier = { - icon = hunt_negative - county_opinion_add = -25 - development_growth_factor = -0.1 -} - -hunt_witch_suspicion_modifier = { - icon = cat_negative - general_opinion = -10 -} - -hunt_mismanaged_game_modifier = { - icon = hunt_negative -} - -hunt_tame_deer_modifier = { - icon = hunt_positive - monthly_prestige = 0.1 -} - -hunt_captive_beast_modifier = { - icon = bear_positive - monthly_prestige = 0.2 -} - -dog_story_scenthound_modifier = { - icon = dog_positive - monthly_prestige = 0.1 - diplomacy = 1 - learning = 1 -} - -dog_story_beasthound_modifier = { - icon = dog_positive - monthly_prestige = 0.1 - prowess = 1 - martial = 1 -} - -tiger_king_modifier = { - icon = cat_positive - monthly_prestige_gain_mult = 0.15 - dread_gain_mult = 0.25 -} - -hunt_dangerous_beast_slain_modifier = { - icon = bear_positive - county_opinion_add = 25 -} diff --git a/common/modifiers/00_activity_petition_modifiers.txt b/common/modifiers/00_activity_petition_modifiers.txt deleted file mode 100644 index c2001c7f26..0000000000 --- a/common/modifiers/00_activity_petition_modifiers.txt +++ /dev/null @@ -1,35 +0,0 @@ - -# Control -petition_liege_county_control_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.3 - county_opinion_add = -10 - travel_danger = -5 -} - -# Convert -petition_liege_county_convert_modifier = { - icon = piety_positive - county_opinion_add = -15 -} - -# Opinion -petition_liege_county_opinion_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 -} - -# Fortify -petition_liege_fortify_border_modifier = { - icon = county_modifier_development_positive - garrison_size = 0.2 - additional_fort_level = 2 - travel_danger = -10 -} - -# Development -petition_liege_development_modifier = { - icon = county_modifier_development_negative - development_growth_factor = -0.1 - county_opinion_add = -15 -} diff --git a/common/modifiers/00_activity_playdate_modifiers.txt b/common/modifiers/00_activity_playdate_modifiers.txt deleted file mode 100644 index ad47d4a45c..0000000000 --- a/common/modifiers/00_activity_playdate_modifiers.txt +++ /dev/null @@ -1,33 +0,0 @@ - -playdate_showing_weakness_modifier = { - icon = social_negative - direct_vassal_opinion = -10 -} - -playdate_shown_bravery_modifier = { - icon = social_positive - direct_vassal_opinion = 10 -} - -playdate_fumbling_merchant_modifier = { - icon = social_negative - diplomacy = medium_skill_penalty -} - -playdate_practicing_trade_modifier = { - icon = stewardship_positive - stewardship = 2 - stress_gain_mult = 0.25 -} - -playdate_boring_playmate_modifier = { - icon = social_negative - general_opinion = -5 - learning = 1 -} - -playdate_struggling_with_writing_modifier = { - icon = learning_negative - learning = -1 - stress_gain_mult = 0.25 -} diff --git a/common/modifiers/00_activity_tour_modifiers.txt b/common/modifiers/00_activity_tour_modifiers.txt deleted file mode 100644 index 7a862001a7..0000000000 --- a/common/modifiers/00_activity_tour_modifiers.txt +++ /dev/null @@ -1,149 +0,0 @@ -#Reward modifiers -itinerant_liege_modifier = { - icon = prestige_positive - stacking = yes - vassal_tax_contribution_mult = 0.15 - character_capital_county_monthly_development_growth_add = 0.2 -} - -mega_itinerant_liege_modifier = { - icon = prestige_positive - stacking = yes - vassal_limit = 5 - vassal_tax_contribution_mult = 0.2 - character_capital_county_monthly_development_growth_add = 0.3 -} - -#Character modifiers -tour_paraded_prisoners_modifier = { - icon = dread_positive - dread_gain_mult = 0.15 - dread_decay_mult = -0.15 -} - -tour_dragged_prisoners_modifier = { - icon = dread_positive - dread_gain_mult = 0.25 - dread_decay_mult = -0.25 - personal_scheme_power_mult = -0.2 -} - -#County modifiers -tour_dragged_prisoners_through_holding_modifier = { - icon = dread_negative - county_opinion_add = -10 - monthly_county_control_change_factor = -0.25 -} - -tour_vassal_cat_killer_modifier = { - icon = cat_negative - diplomacy = -1 - dread_decay_mult = -0.1 -} - -tour_liege_cat_killer_modifier = { - icon = cat_negative - diplomacy = -2 - dread_decay_mult = -0.2 -} - -tour_vassal_dog_killer_modifier = { - icon = dog_negative - diplomacy = -1 - dread_decay_mult = -0.1 -} - -tour_liege_dog_killer_modifier = { - icon = dog_negative - diplomacy = -2 - dread_decay_mult = -0.2 -} - -tour_smooth_talker_modifier = { - icon = diplomacy_positive - diplomacy = 2 -} - -tour_snooping_liege_modifier = { - icon = diplomacy_negative - diplomacy = -2 -} - -tour_scheme_success_modifier = { - icon = drink_positive - scheme_success_chance = 5 - scheme_power = 5 -} - -tour_scheme_excellent_success_modifier = { - icon = drink_positive - scheme_success_chance = 15 - scheme_power = 15 -} - -tour_scheme_secrecy_modifier = { - icon = drink_positive - scheme_success_chance = 5 - scheme_secrecy = 10 -} - -tour_scheme_excellent_secrecy_modifier = { - icon = drink_positive - scheme_success_chance = 15 - scheme_secrecy = 20 -} - -tour_liege_extra_taxation_county_modifier = { - icon = stewardship_positive - tax_mult = 0.2 - county_opinion_add = -10 -} - -tours_grounds_luxury_dining_modifier = { - icon = food_positive - health = 0.3 - stress_gain_mult = -0.2 -} - -tours_grounds_hunting_companions_modifier = { - icon = hunt_positive - trait_track_hunter_xp_gain_mult = 0.3 - monthly_prestige = 0.05 -} - -tours_grounds_excellent_horses_modifier = { - icon = horse_positive - prowess = 1 - trait_track_horse_xp_gain_mult = 0.25 -} - -tours_grounds_sharing_tips_with_friend_modifier = { - icon = social_positive - monthly_lifestyle_xp_gain_mult = 0.3 -} - -tour_grounds_hidden_assets_modifier = { - icon = stewardship_positive - domain_tax_mult = 0.1 -} - -peasant_influx_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 - development_growth_factor = small_development_growth_gain -} - -brothel_stop_modifier= { - icon = fertility_positive - fertility = 1 -} - -discounted_guild_holding_build_cost_modifier = { - icon = county_modifier_development_positive - city_holding_build_gold_cost = -0.2 -} - -terrain_knowledge_modifier = { - icon = hunt_positive - skirmishers_damage_mult = 0.25 -} diff --git a/common/modifiers/00_activity_tournament_modifiers.txt b/common/modifiers/00_activity_tournament_modifiers.txt deleted file mode 100644 index 62e0b8db2d..0000000000 --- a/common/modifiers/00_activity_tournament_modifiers.txt +++ /dev/null @@ -1,598 +0,0 @@ -tournament_melee_winner_modifier = { - icon = social_positive - monthly_martial_lifestyle_xp_gain_mult = 0.1 - martial = 3 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_training_decision_modifier = { - icon = prowess_positive - glory_hound_opinion = 5 -} - -tournament_joust_winner_modifier = { - icon = social_positive - glory_hound_opinion = 20 - heavy_cavalry_damage_add = 10 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_wrestling_winner_modifier = { - icon = social_positive - hostile_scheme_resistance_mult = 0.5 - health = 1 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_duel_winner_modifier = { - icon = social_positive - prowess_per_prestige_level = 2 - prowess_no_portrait = 3 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_archery_winner_modifier = { - icon = social_positive - negate_prowess_penalty_add = 3 - archers_damage_add = 3 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_recital_winner_modifier = { - icon = social_positive - diplomacy = 3 - learn_language_scheme_power_mult = 0.3 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_horse_race_winner_modifier = { - icon = social_positive - supply_limit_mult = 0.5 - character_travel_speed_mult = 0.25 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_board_game_winner_modifier = { - icon = social_positive - max_combat_roll = 3 - learning = 3 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_melee_participant_modifier = { - icon = social_positive - monthly_martial_lifestyle_xp_gain_mult = 0.1 - martial = 3 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_joust_participant_modifier = { - icon = social_positive - glory_hound_opinion = 10 - heavy_cavalry_damage_add = 5 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_wrestling_participant_modifier = { - icon = social_positive - hostile_scheme_resistance_mult = 0.25 - health = 0.5 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_duel_participant_modifier = { - icon = social_positive - prowess_per_prestige_level = 1 - prowess_no_portrait = 1 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_archery_participant_modifier = { - icon = social_positive - negate_prowess_penalty_add = 1 - archers_damage_add = 2 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_recital_participant_modifier = { - icon = social_positive - diplomacy = 1 - learn_language_scheme_power_mult = 0.2 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_horse_race_participant_modifier = { - icon = social_positive - supply_limit_mult = 0.25 - character_travel_speed_mult = 0.1 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_board_game_participant_modifier = { - icon = social_positive - max_combat_roll = 2 - learning = 1 - tourney_participant_xp_gain_mult = 0.05 -} - -tournament_contest_spectator_modifier = { - icon = social_positive - stress_gain_mult = -0.05 -} - -tournament_battle_peasant_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -tournament_battle_peasant_modifier = { - icon = social_negative - general_opinion = -15 -} - -tournament_butt_tragedy_modifier = { - icon = social_negative - county_opinion_add = -15 -} - -tournament_allow_foreign_pas_darmes_modifier = { - icon = social_negative - vassal_opinion = -5 - courtier_opinion = -5 -} - -tournament_pas_darmes_seduce_modifier = { - scheme_power = 10 -} - -tournament_imprisoned_robin_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -tournament_executed_robin_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} - -tournament_pardoned_robin_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -tournament_favor_scheme_modifier = { - scheme_power = 10 -} - -tournament_favor_rejected_scheme_modifier = { - scheme_power = -10 -} - -tournament_dislocated_finger_modifier = { - icon = prowess_negative - prowess = -3 -} - -tournament_blurry_vision_modifier = { - icon = prowess_negative - prowess = -2 - learn_language_scheme_power_mult = -0.1 -} - -tournament_really_blurry_vision_modifier = { - icon = prowess_negative - prowess = -5 - learn_language_scheme_power_mult = -0.25 - stress_gain_mult = 0.1 -} - -tournament_walking_funny_modifier = { - icon = prowess_negative - prowess = -1 -} - -tournament_discombobulated_modifier = { - icon = health_negative - health = -0.35 - prowess = -2 - diplomacy = -1 -} - -tournament_poison_tummy_ache_modifier = { - icon = health_negative - prowess = -2 - health = -0.25 -} - -tournament_thug_escape_modifier = { - icon = intrigue_positive - intrigue = 2 -} - -tournament_attempted_sabotage_modifier = { - icon = social_negative - general_opinion = -5 - intrigue = -1 -} - -tournament_coughing_fit_modifier = { - icon = health_negative - health = -0.25 -} - -tournament_stands_collapsed_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -25 -} - -tournament_stands_compensated_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -tournament_executed_builders_modifier = { - icon = dread_positive - county_opinion_add = 10 - build_gold_cost = 0.1 -} - -tournament_compensated_stands_modifier = { - icon = county_modifier_opinion_positive - dread_decay_mult = 0.15 - county_opinion_add = 10 -} - -tournament_squire_riot_modifier = { - icon = county_modifier_development_negative - development_growth_factor = -0.2 - travel_danger = 10 -} - -tournament_punished_arsonists_modifier = { - icon = dread_positive - courtier_and_guest_opinion = 10 - knight_limit = -1 -} - -tournament_coddled_arsonists_modifier = { - icon = social_negative - courtier_and_guest_opinion = -10 - knight_limit = 1 - knight_effectiveness_mult = 0.1 -} - -tournament_tyrannical_disqualification_modifier = { - icon = dread_negative - county_opinion_add = -5 - stacking = yes -} - -tournament_wicked_hangover_modifier = { - icon = prowess_negative - prowess = -3 -} - -tournament_farrier_mistake_modifier = { - icon = horse_negative -} - -tournament_weaponsmith_ornament_modifier = { - icon = prestige_positive - monthly_prestige = 0.05 - diplomacy = 1 -} - -tournament_armorer_shield_modifier = { - icon = prestige_positive - monthly_prestige = 0.05 - diplomacy = 1 -} - -tournament_armorer_tournament_modifier = { - icon = prowess_positive - prowess = 1 -} - -tournament_bowyer_quiver_modifier = { - icon = prowess_positive - prowess = 1 -} - -tournament_bowyer_hunt_modifier = { - icon = hunt_positive - monthly_prestige = 0.05 -} - -tournament_tailor_banner_modifier = { - icon = prestige_positive - monthly_prestige = 0.05 -} - -tournament_tailor_gambeson_modifier = { - icon = prowess_positive - negate_prowess_penalty_add = 2 -} - -tournament_tailor_glove_modifier = { - icon = love_positive - diplomacy = 1 - attraction_opinion = 4 -} - -tournament_tailor_mixup_scheme_modifier = { - icon = intrigue_positive - intrigue = 1 - intrigue_scheme_power = 5 -} - -tournament_tailor_fancy_crest_modifier = { - icon = prestige_positive - monthly_dynasty_prestige = 0.05 -} - -tournament_bracer_modifier = { - icon = prowess_positive - prowess = 1 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_two_bracers_modifier = { - icon = prowess_positive - prowess = 1 - stress_loss_mult = 0.05 - courtier_and_guest_opinion = -5 - tourney_participant_xp_gain_mult = 0.1 -} - -tournament_kept_the_peace_modifier = { - icon = diplomacy_positive - diplomacy = 1 - monthly_prestige = 0.05 -} - -tournament_man_of_the_people_modifier = { - icon = diplomacy_positive - army_maintenance_mult = -0.1 - courtier_and_guest_opinion = 5 -} - -tournament_snob_modifier = { - icon = diplomacy_negative - barons_and_minor_landholders_opinion = -10 -} - -tournament_dice_player_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_power_add = 10 -} - -tournament_lecherous_knight_modifier = { - icon = fertility_positive - fertility = 0.2 - attraction_opinion = 5 - spouse_opinion = -25 - clergy_opinion = -10 -} - -tournament_lecherous_knight_positive_modifier = { - icon = fertility_positive - fertility = 0.2 - attraction_opinion = 5 - same_faith_opinion = 10 -} - -tournament_poorly_announced_modifier = { - icon = prestige_negative - monthly_prestige_gain_mult = -0.05 - courtly_opinion = -5 -} - -tournament_well_proclaimed_modifier = { - icon = prestige_positive - monthly_prestige_gain_mult = 0.05 - courtly_opinion = 5 -} - -tournament_foreign_knight_modifier = { - icon = diplomacy_positive - diplomacy = 1 - different_culture_opinion = 15 - vassal_opinion = -10 - courtly_opinion = -15 -} - -tournament_star_struck_modifier = { - icon = prestige_positive - monthly_prestige_gain_mult = 0.1 - glory_hound_opinion = 15 - parochial_opinion = -15 -} - -tournament_grounded_modifier = { - icon = stress_positive - stress_loss_mult = 0.1 - glory_hound_opinion = -15 - parochial_opinion = 15 -} - -tournament_charm_resistant_modifier = { - icon = intrigue_positive - personal_scheme_resistance_mult = 0.35 -} - -tournament_child_friendly_modifier = { - icon = social_positive - eligible_child_opinion = 10 - child_opinion = 5 -} - -tournament_soaked_modifier = { - icon = love_negative - attraction_opinion = -10 - stress_gain_mult = 0.05 -} - -tournament_public_proselytiser_modifier = { - icon = diplomacy_positive - zealot_opinion = 25 - barons_and_minor_landholders_opinion = -15 -} - -tournament_sports_enthusiast_modifier = { - icon = diplomacy_positive - general_opinion = 5 - glory_hound_opinion = 15 - zealot_opinion = -5 -} - -tournament_ground_flexing = { - icon = love_positive - attraction_opinion = 10 -} - -tournament_astronomy_modifier = { - icon = learning_positive - monthly_lifestyle_xp_gain_mult = 0.15 -} - -tournament_not_cursed_modifier = { - icon = health_positive - health = 0.20 -} - -tournament_new_horseshoes_modifier = { - icon = martial_positive - men_at_arms_maintenance = -0.05 - knight_effectiveness_mult = 0.25 -} - -tournament_stopped_peasant_fight = { - icon = county_modifier_control_positive - monthly_county_control_change_factor = 0.25 -} - -tournament_supported_weavers = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -tournament_village_dance_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -tournament_weaving_taxes_modifier = { - icon = stewardship_positive - tax_mult = 0.2 - county_opinion_add = -10 -} - -tournament_performative_sensuousness_modifier = { - icon = fertility_positive - zealot_opinion = -15 - attraction_opinion = 10 -} - -tournament_men_at_arms_reward_modifier = { - icon = prowess_positive - stationed_maa_toughness_mult = 0.1 - stationed_maa_damage_mult = 0.1 -} - -tournament_ambidextrous_modifier = { - icon = prowess_positive - prowess = 1 - lifestyle_blademaster_xp_gain_mult = 0.1 -} - -tournament_ambisinister_modifier = { - icon = prowess_negative - prowess = -1 - lifestyle_blademaster_xp_gain_mult = -0.1 -} - -tournament_fashionable_duelist_modifier = { - icon = prestige_positive - prowess = -1 - monthly_prestige_gain_mult = 0.05 - attraction_opinion = 20 - court_grandeur_baseline_add = 1 -} -tournament_open_minded_warrior_modifier = { - icon = prowess_positive - minority_opinion = 5 - counter_efficiency = 0.15 -} - - -tournament_low_blower_modifier = { - icon = social_negative - general_opinion = -5 - opinion_of_male_rulers = -10 -} - -tournament_roguish_duelist_modifier = { - icon = social_positive - prowess = 1 - glory_hound_opinion = 15 - courtier_and_guest_opinion = 5 -} - -tournament_ended_rightly_modifier = { - icon = dread_negative - dread_baseline_add = -10 - dread_loss_mult = 0.25 -} - -tournament_house_unity_modifier = { - icon = social_positive - negate_prowess_penalty_add = 1 - enemy_hard_casualty_modifier = 0.1 -} - -tournament_melee_protector_modifier = { - icon = prowess_positive - prowess = 5 - negate_prowess_penalty_add = 3 -} - -tournament_reckoning_modifier = { - icon = intrigue_negative - stress_gain_mult = 0.05 - enemy_hostile_scheme_success_chance_add = 10 -} - -tournament_loving_parent_modifier = { - icon = family_positive - player_heir_opinion = 15 - child_except_player_heir_opinion = 5 -} - -tournament_knight_humiliated_modifier = { - icon = martial_negative - monthly_prestige_gain_per_knight_mult = -0.04 -} - -tournament_loyalty_martial_traditions_modifier = { - icon = martial_positive - same_culture_opinion = 5 - same_culture_mercenary_hire_cost_mult = -0.25 - same_culture_holy_order_hire_cost_mult = -0.25 - uncontrolled_province_advantage = -4 -} - -tournament_banners_modifier = { - icon = prestige_positive - courtly_opinion = 25 -} - -tournament_refreshed_modifier = { - icon = stress_positive - health = 0.05 -} - -tournament_parched_modifier = { - icon = stress_negative - stress_gain_mult = 0.05 -} diff --git a/common/modifiers/00_activity_tours_modifiers.txt b/common/modifiers/00_activity_tours_modifiers.txt deleted file mode 100644 index 59c4d12803..0000000000 --- a/common/modifiers/00_activity_tours_modifiers.txt +++ /dev/null @@ -1,336 +0,0 @@ -#Cultural Festival - -festival_helped_injured_artist_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -festival_whipped_injured_artist_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -king_of_ugly_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -king_of_beauty_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -dressed_liege_like_buffon_modifier = { - icon = health_positive - stress_gain_mult = -0.3 -} - -alcohol_fountain_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -juice_fountain_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -no_taxation_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -festival_taxation_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -enjoyed_culture_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -no_culture_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -appreciated_culture_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -helped_culture_modifier = { - icon = county_modifier_development_positive - development_growth_factor = tiny_development_growth_gain -} - -festival_enjoyed_local_performance = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -discounted_church_holding_build_cost_modifier = { - icon = piety_positive - church_holding_build_gold_cost = -0.1 -} - -played_it_cool_modifier = { - icon = intrigue_positive - intrigue = 1 -} - -bountiful_harvest_modifier = { - icon = county_modifier_development_positive - castle_holding_build_gold_cost = -0.1 - castle_holding_build_speed = -0.1 -} - -prowess_demonstration_modifier = { - icon = county_modifier_opinion_positive - monthly_county_control_change_add = 0.2 -} - -festival_no_homage_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -festival_good_play = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -festival_neutral_play = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -festival_bad_play = { - icon = county_modifier_opinion_negative - county_opinion_add = -5 -} - -festival_wishing_well_modifier = { - icon = stress_positive - stress_loss_mult = 0.25 -} - -drank_together_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -festival_danced_with_local_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -festival_flattered_spouse_modifier = { - icon = love_positive - attraction_opinion = 10 -} - -festival_hired_mercenaries = { - icon = martial_positive - garrison_size = 1 - monthly_county_control_change_factor = 0.5 -} - -festival_luck_mercenaries = { - icon = martial_positive - mercenary_hire_cost_mult = -0.2 -} - -festival_drank_with_mercenaries = { - icon = drink_positive - stress_gain_mult = -0.2 - health = 0.5 -} - -farm_contest_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -mocked_animal_fair_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -5 -} - -favourite_animal_contest_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -underdog_animal_contest_modifier = { - icon = love_negative - attraction_opinion = -5 -} - -festival_2080_red_health = { - icon = health_positive - health = 0.2 -} - -festival_2080_red_prowess = { - icon = prowess_positive - prowess = 1 -} - -festival_2080_red_fertility = { - icon = fertility_positive - fertility = 0.2 -} - -festival_2080_red_prowess_bad = { - icon = prowess_negative - prowess = -1 -} - -festival_2080_red_fertility_bad = { - icon = fertility_negative - fertility = -0.2 -} - -festival_2080_blue_health_bad = { - icon = health_negative - health = -0.1 -} - -festival_2080_blue_stress = { - icon = stress_positive - stress_gain_mult = -0.15 -} - -festival_2080_blue_stress_bad = { - icon = stress_negative - stress_gain_mult = 0.15 -} - -festival_2080_blue_attraction = { - icon = love_positive - attraction_opinion = 10 -} - -festival_2080_blue_stress_loss = { - icon = stress_positive - stress_loss_mult = 0.25 -} - -festival_arrested_artists = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -festival_no_prisoners = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} - -festival_king_of_fools_modifier = { - icon = love_negative - attraction_opinion = -25 -} - -festival_feast_of_fools_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -festival_tis_the_season = { - icon = stress_positive - stress_gain_mult = -0.15 -} - -festival_military_parade_best_modifier = { - icon = county_modifier_opinion_positive - monthly_county_control_change_add = 1 - levy_size = 0.1 -} - -festival_military_parade_modifier = { - icon = county_modifier_opinion_positive - monthly_county_control_change_add = 0.25 - levy_size = 0.05 -} - -festival_civil_parade_best_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 - tax_mult = 0.1 -} - -festival_civil_parade_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 - tax_mult = 0.05 -} - -festival_religious_parade_best_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 - development_growth_factor = medium_development_growth_gain -} - -festival_religious_parade_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 - development_growth_factor = tiny_development_growth_gain -} - -desecrated_local_saint_modifier = { - icon = piety_positive - clergy_opinion = 10 -} - -patronized_local_saint_modifier = { - icon = piety_positive - county_opinion_add = 10 -} - -local_saint_modifier = { - icon = piety_positive - county_opinion_add = 15 - tax_mult = 0.1 -} - -super_sleuth_modifier = { - icon = rock_positive - county_opinion_add = 10 - learning = 1 - stewardship = 1 - stress_gain_mult = 0.1 -} - -celebrity_executioner_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -hamlet_bandit_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -hamlet_bandit_remains_modifier = { - icon = county_modifier_control_negative - tax_mult = -0.1 - monthly_county_control_change_add = -1 - travel_danger = 10 -} - -ep2_activities_legacy_3_tours_majesty_modifier = { - icon = prestige_positive - monthly_prestige_gain_per_happy_powerful_vassal_add = 1.2 -} - -ep2_activities_legacy_3_tours_intimidation_modifier = { - icon = beast_positive - men_at_arms_maintenance_per_dread_mult = -0.005 -} - -ep2_activities_legacy_3_tours_taxation_modifier = { - icon = economy_positive - vassal_tax_contribution_mult = 0.25 -} diff --git a/common/modifiers/00_activity_wedding_modifiers.txt b/common/modifiers/00_activity_wedding_modifiers.txt deleted file mode 100644 index 84a38c3f13..0000000000 --- a/common/modifiers/00_activity_wedding_modifiers.txt +++ /dev/null @@ -1,278 +0,0 @@ -wedding_nagging_spouse_modifier = { - icon = wedding_negative - stress_gain_mult = 0.2 - fertility = 0.2 - monthly_lifestyle_xp_gain_mult = 0.1 -} - -wedding_accused_impotency_modifier = { - icon = wedding_negative - fertility = -0.1 - general_opinion = -5 -} - -ep2_beastmaster_modifier = { - icon = hunt_positive - character_travel_safety = 10 -} - -wedding_purified_modifier = { - icon = health_positive - health = 0.05 - stress_gain_mult = -0.1 -} - -wedding_insecure_marriage_modifier = { - icon = wedding_negative - personal_scheme_resistance_add = 20 - stress_gain_mult = 0.5 -} - -wedding_practical_marriage_modifier = { - icon = wedding_negative - fertility = -0.3 -} - -wedding_soothed_insecurity_modifier = { - icon = wedding_positive - stress_gain_mult = -0.3 -} - -wnight_clear_conscience_modifier = { - icon = stress_positive - stress_loss_mult = 0.2 -} - -wnight_confider_modifier = { - icon = stress_positive - stress_loss_mult = 0.3 -} - -gwedding_gracious_host_modifier = { - icon = wedding_positive - monthly_prestige_gain_mult = 0.03 - monthly_dynasty_prestige_mult = 0.03 - courtly_opinion = 5 -} - -gwedding_magnificent_host_modifier = { - icon = wedding_positive - monthly_dynasty_prestige_mult = 0.05 - monthly_prestige_gain_mult = 0.05 - monthly_stewardship_lifestyle_xp_gain_mult = 0.1 - monthly_diplomacy_lifestyle_xp_gain_mult = 0.1 - courtly_opinion = 8 -} - -gwedding_grand_wedding_modifier = { - icon = wedding_positive - courtly_opinion = 3 - monthly_prestige_gain_mult = 0.01 -} - -gwedding_grandiose_wedding_modifier = { - icon = wedding_positive - courtly_opinion = 5 - monthly_prestige_gain_mult = 0.02 -} - -gwedding_magnificent_wedding_modifier = { - icon = wedding_positive - courtly_opinion = 8 - monthly_prestige_gain_mult = 0.03 - monthly_dynasty_prestige_mult = 0.03 -} - -wedding_of_the_century_modifier = { - icon = grandeur_positive - diplomacy = 2 - monthly_diplomacy_lifestyle_xp_gain_mult = 0.05 -} - -wedding_fertility_delay_modifier = { - icon = fertility_negative - fertility = 0 -} - -wedding_wants_to_be_faithful_modifier = { - icon = wedding_positive - seduce_scheme_power_mult = -0.5 - stress_loss_mult = 0.2 -} - -wedding_lingering_doubts_modifier = { - icon = wedding_negative - stress_gain_mult = 0.3 -} - -wedding_mind_at_ease_modifier = { - icon = stress_positive - stress_gain_mult = -0.3 -} - -wedding_lavish_food_modifier = { - icon = grandeur_positive - stress_loss_mult = 0.5 - negate_health_penalty_add = 0.3 -} - -wedding_lavish_food_royal_modifier = { - icon = grandeur_positive - stress_loss_mult = 0.5 - negate_health_penalty_add = 0.3 - court_grandeur_baseline_add = 16 -} - -ep2_wedding_shared_values_modifier = { - icon = wedding_positive - diplomacy = 2 - stress_gain_mult = -0.3 -} - -ep2_wedding_authoritarian_modifier = { - icon = dread_positive - dread_gain_mult = 0.2 - dread_decay_mult = -0.2 - dread_baseline_add = 10 -} - -ep2_wedding_family_focus_modifier = { - icon = wedding_positive - spouse_opinion = 10 - fertility = 0.2 -} - -wedding_clean_slate_modifier = { - icon = intrigue_positive - spouse_opinion = 10 - owned_hostile_scheme_success_chance_add = 20 -} - -wedding_web_of_secrets_modifier = { - icon = intrigue_positive - spouse_opinion = -10 - enemy_hostile_scheme_success_chance_add = -20 -} - -wedding_trust_compromised_modifier = { - icon = wedding_positive - enemy_hostile_scheme_success_chance_add = -20 -} - -gwedding_hosted_murder_wedding_modifier = { - icon = wedding_negative - dread_decay_mult = -0.25 - diplomacy = -8 -} - -wedding_barred_doors_modifier = { - icon = wedding_negative - diplomacy = -2 - stress_loss_mult = 0.1 -} - -wedding_old_news_modifier = { - icon = wedding_positive - fertility = -0.2 - stress_loss_mult = 0.1 -} - -wedding_consorts_envy_modifier = { - icon = iwedding_positive - scheme_power = 20 - scheme_success_chance = 10 -} - -wedding_peasants_connections_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 - development_growth_factor = 0.2 -} - -wedding_enforced_security_modifier = { - icon = martial_positive - martial = 1 - dread_gain_mult = 0.2 - enemy_hostile_scheme_success_chance_add = -20 -} - -wedding_peasants_overrun_modifier = { - icon = martial_negative - enemy_hostile_scheme_success_chance_add = 5 - vassal_opinion = -5 -} - -wedding_parade_mayhem_modifier = { - icon = stress_positive - stress_gain_mult = -0.2 - courtly_opinion = -5 - attraction_opinion = 10 -} - -wedding_political_mentality_modifier = { - icon = diplomacy_positive - diplomacy = 1 - spouse_opinion = -5 -} - -wedding_confident_groom = { - icon = wedding_positive - stress_gain_mult = -0.25 - stress_loss_mult = 0.25 -} - -wedding_confident_bride = { - icon = wedding_positive - stress_gain_mult = -0.25 - stress_loss_mult = 0.25 -} - -wedding_jitters = { - icon = wedding_negative - stress_gain_mult = 0.25 - stress_loss_mult = -0.25 -} - -ep2_wedding_ewan_0041_attraction_modifier = { - icon = fertility_positive - attraction_opinion = 20 -} - -ep2_wedding_ewan_0051_snooty_modifier = { - icon = bird_positive - courtly_opinion = 25 - parochial_opinion = -10 -} - -ep2_wedding_ewan_0051_approachable_modifier = { - icon = dog_positive - parochial_opinion = 25 - minority_opinion = 10 - barons_and_minor_landholders_opinion = 10 - courtly_opinion = -10 -} - -ruler_married_here_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - development_growth_factor = medium_development_growth_gain - development_growth = 0.1 -} - -wedding_thinking_outside_box_modifier = { - icon = diplomacy_positive - diplomacy = 1 - intrigue = 1 -} - -wedding_severe_host_modifier = { - icon = social_negative - courtly_opinion = -5 - monthly_income_mult = 0.01 -} - -wedding_social_drinker_modifier = { - icon = social_positive - courtly_opinion = 5 - monthly_income_mult = -0.01 -} diff --git a/common/modifiers/00_artifact_modifiers.txt b/common/modifiers/00_artifact_modifiers.txt index 51fbd0ea1f..eddfa42f97 100644 --- a/common/modifiers/00_artifact_modifiers.txt +++ b/common/modifiers/00_artifact_modifiers.txt @@ -194,30 +194,30 @@ artifact_pursue_efficiency_3_modifier = { pursue_efficiency = 0.2 } artifact_pursue_efficiency_4_modifier = { pursue_efficiency = 0.25 } # Prestige Modifiers -artifact_monthly_minor_prestige_1_modifier = { monthly_prestige = 0.02 } -artifact_monthly_minor_prestige_2_modifier = { monthly_prestige = 0.04 } -artifact_monthly_minor_prestige_3_modifier = { monthly_prestige = 0.06 } -artifact_monthly_minor_prestige_4_modifier = { monthly_prestige = 0.08 } -artifact_monthly_minor_prestige_5_modifier = { monthly_prestige = 0.12 } -artifact_monthly_minor_prestige_6_modifier = { monthly_prestige = 0.16 } -artifact_monthly_minor_prestige_7_modifier = { monthly_prestige = 0.2 } -artifact_monthly_minor_prestige_8_modifier = { monthly_prestige = 0.25 } - -artifact_placeholder_modifier = { monthly_prestige = 0.1 } - -artifact_monthly_prestige_1_modifier = { monthly_prestige = 0.05 } -artifact_monthly_prestige_2_modifier = { monthly_prestige = 0.1 } -artifact_monthly_prestige_3_modifier = { monthly_prestige = 0.15 } -artifact_monthly_prestige_4_modifier = { monthly_prestige = 0.2 } -artifact_monthly_prestige_5_modifier = { monthly_prestige = 0.3 } -artifact_monthly_prestige_6_modifier = { monthly_prestige = 0.4 } -artifact_monthly_prestige_7_modifier = { monthly_prestige = 0.5 } -artifact_monthly_prestige_8_modifier = { monthly_prestige = 0.6 } +artifact_monthly_minor_prestige_1_modifier = { monthly_prestige = 0.01 } +artifact_monthly_minor_prestige_2_modifier = { monthly_prestige = 0.02 } +artifact_monthly_minor_prestige_3_modifier = { monthly_prestige = 0.03 } +artifact_monthly_minor_prestige_4_modifier = { monthly_prestige = 0.04 } +artifact_monthly_minor_prestige_5_modifier = { monthly_prestige = 0.05 } +artifact_monthly_minor_prestige_6_modifier = { monthly_prestige = 0.06 } +artifact_monthly_minor_prestige_7_modifier = { monthly_prestige = 0.07 } +artifact_monthly_minor_prestige_8_modifier = { monthly_prestige = 0.08 } + +artifact_placeholder_modifier = { monthly_prestige = 0.01 } + +artifact_monthly_prestige_1_modifier = { monthly_prestige = 0.04 } +artifact_monthly_prestige_2_modifier = { monthly_prestige = 0.08 } +artifact_monthly_prestige_3_modifier = { monthly_prestige = 0.12 } +artifact_monthly_prestige_4_modifier = { monthly_prestige = 0.16 } +artifact_monthly_prestige_5_modifier = { monthly_prestige = 0.2 } +artifact_monthly_prestige_6_modifier = { monthly_prestige = 0.24 } +artifact_monthly_prestige_7_modifier = { monthly_prestige = 0.28 } +artifact_monthly_prestige_8_modifier = { monthly_prestige = 0.32 } #artifact_monthly_prestige_12_modifier = { monthly_prestige = 1.2 } #artifact_monthly_prestige_20_modifier = { monthly_prestige = 2.0 } #artifact_monthly_prestige_50_modifier = { monthly_prestige = 5.0 } -artifact_monthly_prestige_penalty_modifier = { monthly_prestige = -0.1 } +artifact_monthly_prestige_penalty_modifier = { monthly_prestige = -0.01 } # Majesty-related Modifiers artifact_short_reign_duration_mult_1_modifier = { short_reign_duration_mult = -0.04 } @@ -260,20 +260,20 @@ artifact_monthly_prestige_add_6_modifier = { monthly_dynasty_prestige = 0.12 } artifact_monthly_prestige_add_7_modifier = { monthly_dynasty_prestige = 0.14 } artifact_monthly_prestige_add_8_modifier = { monthly_dynasty_prestige = 0.16 } -artifact_monthly_prestige_gain_per_dread_add_1_modifier = { monthly_prestige_gain_per_dread_add = 0.01 } -artifact_monthly_prestige_gain_per_dread_add_2_modifier = { monthly_prestige_gain_per_dread_add = 0.02 } -artifact_monthly_prestige_gain_per_dread_add_3_modifier = { monthly_prestige_gain_per_dread_add = 0.03 } -artifact_monthly_prestige_gain_per_dread_add_4_modifier = { monthly_prestige_gain_per_dread_add = 0.04 } +artifact_monthly_prestige_gain_per_dread_add_1_modifier = { monthly_prestige_gain_per_dread_add = 0.001 } +artifact_monthly_prestige_gain_per_dread_add_2_modifier = { monthly_prestige_gain_per_dread_add = 0.002 } +artifact_monthly_prestige_gain_per_dread_add_3_modifier = { monthly_prestige_gain_per_dread_add = 0.005 } +artifact_monthly_prestige_gain_per_dread_add_4_modifier = { monthly_prestige_gain_per_dread_add = 0.01 } -artifact_monthly_prestige_gain_per_knight_add_1_modifier = { monthly_prestige_gain_per_knight_add = 0.02 } -artifact_monthly_prestige_gain_per_knight_add_2_modifier = { monthly_prestige_gain_per_knight_add = 0.04 } -artifact_monthly_prestige_gain_per_knight_add_3_modifier = { monthly_prestige_gain_per_knight_add = 0.06 } -artifact_monthly_prestige_gain_per_knight_add_4_modifier = { monthly_prestige_gain_per_knight_add = 0.08 } +artifact_monthly_prestige_gain_per_knight_add_1_modifier = { monthly_prestige_gain_per_knight_add = 0.01 } +artifact_monthly_prestige_gain_per_knight_add_2_modifier = { monthly_prestige_gain_per_knight_add = 0.02 } +artifact_monthly_prestige_gain_per_knight_add_3_modifier = { monthly_prestige_gain_per_knight_add = 0.03 } +artifact_monthly_prestige_gain_per_knight_add_4_modifier = { monthly_prestige_gain_per_knight_add = 0.04 } -artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_1_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.04 } -artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_2_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.06 } -artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_3_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.08 } -artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_4_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.1 } +artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_1_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.02 } +artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_2_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.04 } +artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_3_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.06 } +artifact_monthly_prestige_gain_per_happy_powerful_vassal_add_4_modifier = { monthly_prestige_gain_per_happy_powerful_vassal_add = 0.08 } artifact_monthly_tyranny_1_modifier = { tyranny_loss_mult = 0.02 } artifact_monthly_tyranny_2_modifier = { tyranny_loss_mult = 0.04 } @@ -802,23 +802,23 @@ very_cursed_artifact_modifier = { artifact_killer_1_artifact_modifier = { icon = blood_positive - monthly_prestige = 0.1 + monthly_prestige = 0.01 } artifact_killer_2_artifact_modifier = { icon = blood_positive - monthly_prestige = 0.3 + monthly_prestige = 0.03 } artifact_killer_3_artifact_modifier = { icon = blood_positive - monthly_prestige = 0.3 + monthly_prestige = 0.03 vassal_opinion = 3 } artifact_killer_4_artifact_modifier = { icon = blood_positive - monthly_prestige = 0.4 + monthly_prestige = 0.04 vassal_opinion = 5 monthly_dynasty_prestige_mult = 0.05 } @@ -874,30 +874,30 @@ desecrated_artifact_modifier = { artifact_duel_weapon_1_modifier = { icon = blood_positive - monthly_prestige = 0.1 + monthly_prestige = 0.01 } artifact_duel_weapon_2_modifier = { - monthly_prestige = 0.2 + monthly_prestige = 0.02 icon = blood_positive } artifact_duel_weapon_3_modifier = { icon = blood_positive - monthly_prestige = 0.3 + monthly_prestige = 0.03 prowess_no_portrait = 1 } artifact_duel_weapon_4_modifier = { icon = blood_positive - monthly_prestige = 0.4 + monthly_prestige = 0.04 prowess_no_portrait = 2 vassal_opinion = 3 } artifact_propaganda_chronicle_modifier = { icon = prestige_positive - monthly_prestige = 0.4 + monthly_prestige = 0.05 monthly_dynasty_prestige = 0.1 tyranny_gain_mult = -0.1 } diff --git a/common/modifiers/00_basic_modifiers.txt b/common/modifiers/00_basic_modifiers.txt deleted file mode 100644 index 283eade3df..0000000000 --- a/common/modifiers/00_basic_modifiers.txt +++ /dev/null @@ -1,313 +0,0 @@ -base_modifier = { -} - -# Skill modifiers, applied to each character -# *_with_offset versions first subtract the NCharacter.SKILL_MODIFIER_OFFSET value from the skill - -diplomacy_modifier = { - ai_amenity_target_baseline = 0.01 -} -diplomacy_modifier_with_offset = { - monthly_prestige_gain_mult = 0.01 -} - -intrigue_modifier = { - scheme_discovery_chance_mult = 0.01 - owned_hostile_scheme_success_chance_add = 1 -} - -stewardship_modifier = { - character_travel_speed = 1 -} -stewardship_modifier_with_offset = { - domain_tax_mult = 0.02 - #build_gold_cost = -0.02 - #holding_build_gold_cost = -0.02 -} - -martial_modifier = { - character_travel_safety = 1 -} -martial_modifier_with_offset = { - levy_reinforcement_rate = 0.025 - army_maintenance_mult = -0.01 - #counter_efficiency = -0.02 - army_toughness_mult = 0.01 -} - -learning_modifier = { - monthly_piety = 0.1 -} - -prowess_modifier = { -} - -# These modifiers are applied to characters of that tier -unlanded_modifier = { -} - -baron_modifier = { - domain_limit = 1 - # Barons don't get to have knights -} - -count_modifier = { - domain_limit = 2 - knight_limit = 5 -} - -duke_modifier = { - domain_limit = 2 - knight_limit = 6 - vassal_limit = 20 - - mercenary_hire_cost_mult = 0.1 -} - -king_modifier = { - domain_limit = 3 - knight_limit = 7 - vassal_limit = 40 - active_accolades = 1 - - mercenary_hire_cost_mult = 0.3 -} - -emperor_modifier = { - domain_limit = 4 - knight_limit = 8 - vassal_limit = 60 - ai_amenity_target_baseline = 0.3 - active_accolades = 2 - - mercenary_hire_cost_mult = 0.6 -} - -# These modifiers are applied to the holder of a title of the respective tier (per title) -held_barony_modifier = { - monthly_prestige = 0.02 -} -held_county_modifier = { - monthly_prestige = 0.05 -} -held_duchy_modifier = { - monthly_prestige = 0.2 -} -held_kingdom_modifier = { - monthly_prestige = 0.8 -} -held_empire_modifier = { - monthly_prestige = 1.6 -} - -# Piety, prestige and stress level that do not modify anything exist for tooltiping -piety_level_0 = { - hide_effects = yes # Custom description will generate the full level information -} -piety_level_1 = { - hide_effects = yes # Custom description will generate the full level information -} -piety_level_2 = { - hide_effects = yes # Custom description will generate the full level information -} -piety_level_3 = { - hide_effects = yes # Custom description will generate the full level information -} -piety_level_4 = { - hide_effects = yes # Custom description will generate the full level information -} -piety_level_5 = { - hide_effects = yes # Custom description will generate the full level information -} - -prestige_level_0 = { - hide_effects = yes # Custom description will generate the full level information - knight_limit = -1 -} -prestige_level_1 = { - hide_effects = yes # Custom description will generate the full level information - ai_amenity_target_baseline = 0.1 -} -prestige_level_2 = { - hide_effects = yes # Custom description will generate the full level information - knight_limit = 1 - ai_amenity_target_baseline = 0.2 -} -prestige_level_3 = { - hide_effects = yes # Custom description will generate the full level information - knight_limit = 2 - ai_amenity_target_baseline = 0.3 -} -prestige_level_4 = { - hide_effects = yes # Custom description will generate the full level information - knight_limit = 3 - ai_amenity_target_baseline = 0.4 -} -prestige_level_5 = { - hide_effects = yes # Custom description will generate the full level information - knight_limit = 4 - ai_amenity_target_baseline = 0.5 -} - -stress_level_0 = { -} -stress_level_1 = { - fertility = -0.1 -} -stress_level_2 = { - fertility = -0.3 - health = -1 -} -stress_level_3 = { - fertility = -0.5 - health = -2 -} - -easy_difficulty = { - health = 0.5 - negate_health_penalty_add = 0.5 - tyranny_gain_mult = -0.25 - fertility = 0.1 - stress_gain_mult = -0.25 - short_reign_duration_mult = -0.25 - hostile_scheme_resistance_add = 15 -} - -very_easy_difficulty = { - health = 1 - negate_health_penalty_add = 1 - tyranny_gain_mult = -0.75 - fertility = 0.2 - stress_gain_mult = -0.5 - short_reign_duration_mult = -0.5 - vassal_opinion = 25 - liege_opinion = 50 - hostile_scheme_resistance_add = 30 -} - -debt_level_0 = { - levy_size = -0.1 - levy_reinforcement_rate = -0.1 - development_growth_factor = -0.1 - vassal_opinion = -5 - county_opinion_add = -5 - ai_amenity_spending = -0.1 -} - -debt_level_1 = { - levy_size = -0.2 - levy_reinforcement_rate = -0.2 - development_growth_factor = -0.2 - vassal_opinion = -10 - county_opinion_add = -10 - ai_amenity_spending = -0.2 -} - -debt_level_2 = { - levy_size = -0.3 - levy_reinforcement_rate = -0.3 - development_growth_factor = -0.3 - vassal_opinion = -15 - county_opinion_add = -15 - ai_amenity_spending = -0.3 -} - -debt_level_3 = { - levy_size = -0.4 - levy_reinforcement_rate = -0.4 - development_growth_factor = -0.4 - vassal_opinion = -20 - county_opinion_add = -20 - ai_amenity_spending = -0.5 -} - -debt_level_4 = { - levy_size = -0.5 - levy_reinforcement_rate = -0.5 - development_growth_factor = -0.5 - vassal_opinion = -25 - county_opinion_add = -25 - ai_amenity_spending = -0.7 -} - -debt_level_5 = { - levy_size = -0.6 - levy_reinforcement_rate = -0.6 - development_growth_factor = -0.6 - vassal_opinion = -30 - county_opinion_add = -30 - ai_amenity_spending = -1 -} - -debt_level_6 = { - levy_size = -0.7 - levy_reinforcement_rate = -0.7 - development_growth_factor = -0.7 - vassal_opinion = -40 - county_opinion_add = -40 - ai_amenity_spending = -1.25 -} - -debt_level_7 = { - levy_size = -0.8 - levy_reinforcement_rate = -0.8 - development_growth_factor = -0.8 - vassal_opinion = -50 - county_opinion_add = -50 - ai_amenity_spending = -1.5 -} - -debt_level_8 = { - levy_size = -0.9 - levy_reinforcement_rate = -0.9 - development_growth_factor = -0.9 - vassal_opinion = -75 - county_opinion_add = -75 - ai_amenity_spending = -2 -} - -debt_level_9 = { - levy_size = -0.95 - levy_reinforcement_rate = -0.95 - development_growth_factor = -0.95 - vassal_opinion = -100 - county_opinion_add = -100 - ai_amenity_spending = -3 -} - -debt_level_no_income = { #Special no income - levy_size = -0.95 - levy_reinforcement_rate = -0.95 - development_growth_factor = -0.95 - vassal_opinion = -100 - county_opinion_add = -100 - ai_amenity_spending = -3 -} - -no_embarkation_cost = { - embarkation_cost_mult = -1 -} - -domain_limit_plus_one = { - domain_limit = 1 -} - -domain_limit_plus_two = { - domain_limit = 2 -} - -domain_limit_plus_three = { - domain_limit = 3 -} - -domain_limit_minus_one = { - domain_limit = -1 -} - -domain_limit_minus_two = { - domain_limit = -2 -} - -domain_limit_minus_three = { - domain_limit = -3 -} diff --git a/common/modifiers/00_befriend_scheme_modifiers.txt b/common/modifiers/00_befriend_scheme_modifiers.txt deleted file mode 100644 index 62927a9410..0000000000 --- a/common/modifiers/00_befriend_scheme_modifiers.txt +++ /dev/null @@ -1,200 +0,0 @@ -### Envoy working towards friendship -befriend_envoy_working_modifier = { - icon = intrigue_positive - scheme_power = 5 -} - -friendship_with_blessing_modifier = { - icon = intrigue_positive - scheme_success_chance = 5 -} - -befriend_gregarious_target_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -gregarious_target_dislikes_modifier = { - icon = intrigue_negative - scheme_power = -10 -} - -target_hates_owner_modifier = { - icon = intrigue_negative - scheme_power = -20 -} - -forced_shy_communication_modifier = { - icon = intrigue_positive - scheme_power = 5 -} - -target_tired_of_insistence_modifier = { - icon = intrigue_negative - scheme_power = -10 -} - -respectful_despite_differences = { - icon = intrigue_positive - scheme_power = 5 -} - -lifestyle_common_interests_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -lifestyle_spying_on_target_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -lifestyle_bugging_target_modifier = { - icon = intrigue_negative - scheme_power = -5 -} - -lifestyle_belittling_agent_modifier = { - icon = intrigue_positive - scheme_power = 5 -} - -befriend_making_effort_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -befriend_indebted_myself_modifier = { - icon = intrigue_positive - scheme_power = 40 -} - -befriend_offered_leniency_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -befriend_irrigation_project_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -befriend_bonding_over_rival_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -befriend_studious_modifier = { - icon = intrigue_positive - scheme_power = 15 -} - -befriend_bad_studious_modifier = { - icon = intrigue_negative - scheme_power = -5 -} - -befriend_martial_study_modifier = { - icon = martial_positive - martial = 1 -} - -befriend_diplomacy_study_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} - -befriend_intrigue_study_modifier = { - icon = intrigue_positive - intrigue = 1 -} - -befriend_stewardship_study_modifier = { - icon = stewardship_positive - stewardship = 1 -} - -befriend_learning_study_modifier = { - icon = learning_positive - learning = 1 -} - -befriend_slanderous_rumors_modifier = { - icon = intrigue_negative - scheme_power = -5 -} - -auspicious_offering_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -settled_differences_modifier = { - icon = intrigue_positive - scheme_success_chance = 5 -} - -irreconcilable_differences_modifier = { - icon = intrigue_negative - scheme_success_chance = -10 -} - -kind_words_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -cheap_gift_modifier = { - icon = intrigue_positive - scheme_power = 5 -} - -exquisite_gift_modifier = { - icon = intrigue_positive - scheme_power = 10 -} - -magnificent_gift_modifier = { - icon = intrigue_positive - scheme_power = 20 -} - -unfortunate_misunderstanding_modifier = { - icon = intrigue_negative - scheme_power = -5 -} - -rebuffing_friendship_modifier = { - icon = intrigue_negative - scheme_power = -15 -} - -slow_approach_modifier = { - icon = intrigue_negative - scheme_power = -10 -} - -prestigious_image_modifier = { - icon = intrigue_positive - scheme_power = 5 -} - -offered_favor_modifier = { - icon = intrigue_positive - scheme_success_chance = 40 -} - -helpful_hand_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -kindred_spirits_modifier = { - icon = intrigue_positive - scheme_success_chance = 15 -} - -admiring_deeds_modifier = { - icon = intrigue_positive - monthly_prestige_gain_mult = 0.15 -} \ No newline at end of file diff --git a/common/modifiers/00_bookmark_modifiers.txt b/common/modifiers/00_bookmark_modifiers.txt deleted file mode 100644 index c5bb7e0219..0000000000 --- a/common/modifiers/00_bookmark_modifiers.txt +++ /dev/null @@ -1,10 +0,0 @@ -### Special modifiers used in the starting scenarios... - -matilda_of_canossa_modifier = { - icon = piety_positive - religious_head_opinion = 25 - church_holding_build_speed = -0.1 - church_holding_build_gold_cost = -0.1 - church_holding_holding_build_speed = -0.1 - church_holding_holding_build_gold_cost = -0.1 -} diff --git a/common/modifiers/00_bp1_modifiers_dan.txt b/common/modifiers/00_bp1_modifiers_dan.txt deleted file mode 100644 index c2ce512a51..0000000000 --- a/common/modifiers/00_bp1_modifiers_dan.txt +++ /dev/null @@ -1,25 +0,0 @@ -lovely_picnic_modifier = { - icon = stress_positive - stress_loss_mult = 0.1 -} - -vengeance_obsessed_modifier = { - icon = martial_negative - diplomacy = -2 - martial = 2 -} - -murder_memory_modifier = { - icon = murder_positive - scheme_success_chance = 20 -} - -sex_memory_modifier = { - icon = seduction_positive - scheme_success_chance = 20 -} - -skinned_pet_modifier = { - icon = stress_negative - stress_gain_mult = 0.15 -} diff --git a/common/modifiers/00_chancellor_task_modifiers.txt b/common/modifiers/00_chancellor_task_modifiers.txt deleted file mode 100644 index 9f5d43f1d5..0000000000 --- a/common/modifiers/00_chancellor_task_modifiers.txt +++ /dev/null @@ -1,20 +0,0 @@ - -chancellor_task_county_resisting_integration_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -40 -} - -chancellor_task_county_endorsing_integration_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 40 -} - -chancellor_task_bestow_royal_favor_vassal_modifier = { - icon = prestige_positive - monthly_prestige = 0.5 -} - -chancellor_task_bestow_royal_favor_vassal_boosted_modifier = { - icon = prestige_positive - monthly_prestige = 0.75 -} diff --git a/common/modifiers/00_claim_throne_modifiers.txt b/common/modifiers/00_claim_throne_modifiers.txt deleted file mode 100644 index a96c057225..0000000000 --- a/common/modifiers/00_claim_throne_modifiers.txt +++ /dev/null @@ -1,59 +0,0 @@ -claim_throne_increased_responsibility = { - icon = stewardship_positive - scheme_success_chance = 20 -} - -claim_throne_bought_support_modifier = { - icon = gold_positive - scheme_success_chance = 20 -} - -claim_throne_liege_ill_omens_modifier = { - icon = intrigue_positive - scheme_success_chance = 20 -} - -claim_throne_self_declared_modifier = { - icon = intrigue_positive - scheme_success_chance = 50 - scheme_secrecy = -100 -} - -claim_throne_friend_support_modifier = { - icon = intrigue_positive - scheme_success_chance = 20 -} - -claim_throne_preparing_for_struggle_modifier = { - icon = martial_positive - levy_size = 0.2 -} - -claim_throne_claimed_world_modifier = { - icon = prestige_negative - monthly_prestige_gain_mult = -0.1 -} - -claim_throne_rule_sword_modifier = { - icon = martial_positive - scheme_success_chance = 20 - scheme_secrecy = -20 -} - -claim_throne_tricked_peasants_modifier = { - icon = intrigue_positive - scheme_success_chance = 20 - scheme_secrecy = -20 -} - -claim_throne_tricked_nobles_modifier = { - icon = intrigue_positive - scheme_success_chance = 40 - scheme_secrecy = -10 -} - -claim_throne_fooled_them_all_modifier = { - icon = intrigue_positive - scheme_success_chance = 20 - scheme_secrecy = 20 -} diff --git a/common/modifiers/00_councillor_spouse_modifiers.txt b/common/modifiers/00_councillor_spouse_modifiers.txt deleted file mode 100644 index 56c3ea60d5..0000000000 --- a/common/modifiers/00_councillor_spouse_modifiers.txt +++ /dev/null @@ -1,245 +0,0 @@ -#Modifiers added by the Spouse Councillor's tasks - - -################################ -# Skill Increase Modifiers -################################ - -councillor_spouse_diplomacy_1_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} -councillor_spouse_diplomacy_2_modifier = { - icon = diplomacy_positive - diplomacy = 2 -} - -councillor_spouse_martial_1_modifier = { - icon = martial_positive - martial = 1 -} -councillor_spouse_martial_2_modifier = { - icon = martial_positive - martial = 2 -} - -councillor_spouse_stewardship_1_modifier = { - icon = stewardship_positive - stewardship = 1 -} -councillor_spouse_stewardship_2_modifier = { - icon = stewardship_positive - stewardship = 2 -} - -councillor_spouse_intrigue_1_modifier = { - icon = intrigue_positive - intrigue = 1 -} -councillor_spouse_intrigue_2_modifier = { - icon = intrigue_positive - intrigue = 2 -} - -councillor_spouse_learning_1_modifier = { - icon = learning_positive - learning = 1 -} -councillor_spouse_learning_2_modifier = { - icon = learning_positive - learning = 2 -} - - - -######## -# Diplomacy Task Modifiers -######## -heir_easier_to_marry_off_modifier = { - icon = diplomacy_positive - diplomacy = 2 -} - -child_easier_to_marry_off_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} - -practiced_manners_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} - -######## -# Martial Task Modifiers -######## - -councillor_spouse_inspired_troops_county_modifier = { - icon = martial_positive - levy_size = 0.25 -} - -councillor_spouse_army_organization_modifier = { - icon = martial_positive - levy_size = 0.1 -} - -councillor_spouse_chivalric_boost_modifier = { - icon = martial_positive - advantage = 2 -} - -councillor_spouse_mercenary_cost_modifier = { - icon = martial_positive - mercenary_hire_cost_mult = -0.2 -} - -councillor_spouse_health_modifier = { - icon = health_positive - negate_health_penalty_add = 1.5 -} - -spouse_martial_personal_guard_modifier = { - icon = prowess_positive - prowess = 2 -} - -spouse_martial_increased_levy_modifier = { - icon = martial_positive - levy_size = 0.05 -} - -spouse_martial_cowed_vassal_modifier = { - icon = county_modifier_control_negative - ai_boldness = -75 - martial = minor_skill_penalty -} - -######## -# Stewardship Task Modifiers -######## - -cheaper_men_at_arms_modifier = { - men_at_arms_maintenance = -0.25 - icon = martial_positive -} - -less_building_time_modifier = { - icon = county_modifier_development_positive - build_speed = -0.15 -} - -less_building_cost_modifier = { - icon = county_modifier_development_positive - build_gold_cost = -0.05 -} - -spouse_health_modifier = { - icon = health_positive - health = 0.5 -} - -spouse_encouraged_growth_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -spouse_increased_defenses_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 8 -} - -spouse_successful_business_modifier = { - icon = economy_positive - tax_mult = 0.05 - development_growth_factor = tiny_development_growth_gain -} - -spouse_failed_business_modifier = { - icon = county_modifier_control_negative - monthly_county_control_change_factor = -0.5 - development_growth_factor = tiny_development_growth_gain -} - - -######## -# Intrigue Task Modifiers -######## - -digging_for_secrets_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 10 -} - -councillor_spouse_defuses_scheme_modifier = { - icon = intrigue_positive - scheme_resistance = 15 -} - -councillor_spouse_espionage_support_modifier = { - icon = intrigue_positive - intrigue = 5 -} - -######## -# Learning Task Modifiers -######## - -warfare_tutor = { - icon = martial_positive - martial = 1 -} - -statecraft_tutor = { - icon = diplomacy_positive - diplomacy = 1 -} - -guile_tutor = { - icon = intrigue_positive - intrigue = 1 -} - -governance_tutor = { - icon = martial_positive - martial = 1 -} - -scholarship_tutor = { - icon = learning_positive - learning = 1 -} - -studying_diplomacy = { - icon = diplomacy_positive - diplomacy = 2 - learning = 1 -} - -studying_martial = { - icon = martial_positive - martial = 2 - learning = 1 -} - -studying_stewardship = { - icon = stewardship_positive - stewardship = 2 - learning = 1 -} - -studying_intrigue = { - icon = intrigue_positive - intrigue = 2 - learning = 1 -} - -studying_learning = { - icon = learning_positive - learning = 3 -} - -focused_student = { - icon = learning_positive - learning = 1 -} diff --git a/common/modifiers/00_counsel_modifiers.txt b/common/modifiers/00_counsel_modifiers.txt deleted file mode 100644 index eb951a4471..0000000000 --- a/common/modifiers/00_counsel_modifiers.txt +++ /dev/null @@ -1,15 +0,0 @@ - -modifier_amazing_fertility_counsel = { - icon = fertility_positive - fertility = 0.5 -} - -modifier_great_fertility_counsel = { - icon = fertility_positive - fertility = 0.3 -} - -modifier_bad_fertility_counsel = { - icon = fertility_negative - fertility = -0.1 -} \ No newline at end of file diff --git a/common/modifiers/00_county_corruption_modifiers.txt b/common/modifiers/00_county_corruption_modifiers.txt deleted file mode 100644 index beadd2f88f..0000000000 --- a/common/modifiers/00_county_corruption_modifiers.txt +++ /dev/null @@ -1,71 +0,0 @@ - -county_corruption_inefficient_tax_collection_modifier = { - icon = economy_negative - tax_mult = -0.4 -} - -county_corruption_deserting_levies_modifier = { - icon = martial_negative - levy_size = -0.3 - travel_danger = 5 -} - -county_corruption_smuggling_ring_modifier = { - icon = family_negative - development_growth_factor = medium_development_growth_loss - supply_limit_mult = -0.3 -} - -county_corruption_bandits_rampant_modifier = { - icon = outdoors_negative - tax_mult = -0.2 - development_growth_factor = large_development_growth_loss - travel_danger = 10 -} - -county_corruption_inefficient_census_modifier = { - icon = letter_negative - tax_mult = -0.2 - garrison_size = -0.3 -} - -county_corruption_lack_of_sheriffs_modifier = { - icon = county_modifier_corruption_negative - tax_mult = -0.2 - county_opinion_add = -10 - development_growth_factor = medium_development_growth_loss - travel_danger = 5 -} - -county_corruption_lack_of_courts_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -25 -} - -county_corruption_thieves_guild_modifier = { - icon = county_modifier_development_negative - tax_mult = -0.1 - development_growth_factor = very_large_development_growth_loss - travel_danger = 5 -} - -county_corruption_unsafe_highways_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 - development_growth_factor = small_development_growth_loss - travel_danger = 5 -} - -county_corruption_uncooperative_guilds_modifier = { - icon = stewardship_negative - build_speed = 0.25 - build_gold_cost = 0.25 - build_piety_cost = 0.25 - build_prestige_cost = 0.25 -} - -county_corruption_lackluster_administration_modifier = { - icon = county_modifier_control_negative - levy_reinforcement_rate = -0.5 - monthly_county_control_change_add = -1 -} diff --git a/common/modifiers/00_county_modifiers.txt b/common/modifiers/00_county_modifiers.txt index 8c5875fc2d..8f8aad8fba 100644 --- a/common/modifiers/00_county_modifiers.txt +++ b/common/modifiers/00_county_modifiers.txt @@ -188,6 +188,16 @@ lost_holy_order_modifier = { monthly_county_control_change_add = -0.15 } +debug_max_popular_opinion_modifier = { + icon = _default + county_opinion_add = 500 +} + +debug_min_popular_opinion_modifier = { + icon = _default + county_opinion_add = -500 +} + helped_construct_makeshift_temple = { icon = county_modifier_development_positive county_opinion_add = 5 diff --git a/common/modifiers/00_court_chaplain_task_modifiers.txt b/common/modifiers/00_court_chaplain_task_modifiers.txt deleted file mode 100644 index b83fb527b8..0000000000 --- a/common/modifiers/00_court_chaplain_task_modifiers.txt +++ /dev/null @@ -1,44 +0,0 @@ -#Modifiers added by the Court Chaplain's tasks - -######## -# Character Modifiers -######## -court_chaplain_vassal_claim_upset_modifier = { - icon = social_negative - direct_vassal_opinion = -10 -} - - -####### -# County Modifiers -####### - -court_chaplain_resisted_conversion_modifier = { - icon = county_modifier_development_negative - development_growth_factor = tiny_development_growth_loss - tax_mult = -0.1 - levy_size = -0.25 -} - -court_chaplain_religious_construction_modifier = { - icon = county_modifier_development_positive - church_holding_build_gold_cost = -0.10 - church_holding_build_speed = -0.25 - church_holding_holding_build_gold_cost = -0.10 - church_holding_holding_build_speed = -0.25 -} - -court_chaplain_religious_fervor_modifier = { - icon = martial_positive - levy_size = 0.25 -} - -court_chaplain_county_conversion_upset_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -30 -} - -court_chaplain_county_conversion_support_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 30 -} diff --git a/common/modifiers/00_court_event_modifiers_claudia.txt b/common/modifiers/00_court_event_modifiers_claudia.txt deleted file mode 100644 index db6b3c9b2d..0000000000 --- a/common/modifiers/00_court_event_modifiers_claudia.txt +++ /dev/null @@ -1,249 +0,0 @@ -# court.6020 -court_possessed_improved_condition_modifier = { - icon = treatment_positive - attraction_opinion = 5 - health = 0.25 -} - -# court.6050 -6050_juicy_readings_modifier = { - icon = fertility_positive - fertility = 0.3 - attraction_opinion = 20 -} - -# court.6060 -court_no_wine_modifier = { - icon = drink_positive - attraction_opinion = -5 - health = 0.5 - court_grandeur_baseline_add = -2 -} - -court_moderate_drinking_modifier = { - icon = drink_positive - stress_gain_mult = -0.1 - general_opinion = 5 - court_grandeur_baseline_add = 1 -} - -# court.6072 -court_fancy_seal_modifier = { - icon = letter_positive - diplomacy = 1 - stewardship = -1 -} - -# hold_court.6000 -court_tax_relief_county_modifier = { - icon = county_modifier_development_positive - tax_mult = -0.5 - development_growth_factor = small_development_growth_gain - county_opinion_add = 15 -} - -hold_court_inspector_modifier = { - icon = stewardship_positive - stewardship = 1 -} - -# hold_court.6020 -hold_court_hawks_modifier = { - icon = bird_negative - levy_size = 0.33 - tax_mult = -0.25 -} - -hold_court_doves_modifier = { - icon = bird_positive - tax_mult = 0.33 - levy_size = -0.25 -} - -# hold_court.6030 -hold_court_bilingual_readings_modifier = { - icon = learning_positive - learning = 1 - diplomacy = 1 -} - -# hold_court.6040 -hold_court_mysterious_book_modifier = { - icon = prestige_positive - monthly_prestige_gain_mult = 0.05 -} - -# hold_court.6080 -court_6080_cultural_hostility_modifier = { - icon = social_negative - different_culture_opinion = -10 - same_culture_opinion = 5 -} - -# hold_court.6090 -court_6090_executioners_county_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.2 - county_opinion_add = -15 -} - -court_6090_almoners_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -# hold_court.6110 -6110_war_compensations_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain - county_opinion_add = 15 -} - -6110_sent_alms_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain - county_opinion_add = 15 - monthly_county_control_change_add = 0.10 -} - -#hold_court.6120 -6120_extra_taxes_modifier = { - icon = social_negative - direct_vassal_opinion = -15 -} - -#hold_court.6121 -6121_seneschal_domesday_modifier = { - icon = stewardship_positive - vassal_tax_contribution_mult = 0.10 -} - -6121_steward_domesday_modifier = { - icon = stewardship_positive - vassal_tax_contribution_mult = 0.05 -} - -#hold_court.6131 -6131_mapped_wilderness_county_modifier = { - icon = compass_positive - monthly_county_control_change_factor = 0.05 - development_growth_factor = 0.1 -} - -#hold_court.6140 -6140_new_carpet_modifier = { - icon = grandeur_positive - monthly_prestige_gain_mult = 0.1 - court_grandeur_baseline_add = 2 -} - -6140_pet_modifier = { - icon = beast_positive - court_grandeur_baseline_add = 6 - monthly_dread = 0.25 -} - -6140_animal_guardian_modifier = { - icon = beast_negative - health = -0.5 - stress_gain_mult = 0.5 -} - -#hold_court.6160 -6160_seneschal_help_modifier = { - icon = stewardship_positive - tax_mult = 0.15 -} - -#hold_court.6180 -6180_scorned_eunuchs_modifier = { - icon = social_negative - hostile_scheme_resistance_add = -2 - courtier_opinion = 5 -} - -6180_trusting_eunuchs_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 2 - courtier_opinion = -5 -} - -6180_angel_eunuchs_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 2 - monthly_piety_gain_mult = 0.02 - courtier_opinion = -10 -} - -#hold_court.6190 -6190_safe_graves_county_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 -} - -6190_grave_robbing_county_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -25 -} - -#hold_court.6200 -6200_menacing_wilderness_county_modifier = { - icon = county_modifier_development_negative - development_growth_factor = small_development_growth_loss - county_opinion_add = -25 - travel_danger = 10 -} - -6200_freed_by_beasts_county_modifier = { - icon = beast_positive - development_growth_factor = small_development_growth_gain - county_opinion_add = 15 - travel_danger = -10 -} - -6200_plagued_by_beasts_county_modifier = { - icon = beast_negative - development_growth_factor = small_development_growth_loss - county_opinion_add = 5 - travel_danger = 10 -} - -6200_champion_killed_by_beasts_county_modifier = { - icon = beast_negative - development_growth_factor = medium_development_growth_loss - county_opinion_add = 10 - travel_danger = -10 -} - -6200_mhunt_killed_by_beasts_county_modifier = { - icon = beast_negative - development_growth_factor = medium_development_growth_loss - county_opinion_add = 10 - travel_danger = -10 -} - -6200_wildgoose_modifier = { - icon = bird_negative - prowess = -2 - martial = -1 -} - -#hold_court.6210 -6210_architect_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - county_opinion_add = 10 -} - -#hold_court.6230 -6230_new_elephants_modifier = { - icon = martial_positive - elephant_cavalry_recruitment_cost_mult = -0.3 - elephant_cavalry_toughness_mult = 0.2 - elephant_cavalry_pursuit_mult = 0.2 -} - -6230_elephant_slayer_county_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} diff --git a/common/modifiers/00_court_event_modifiers_isabella.txt b/common/modifiers/00_court_event_modifiers_isabella.txt deleted file mode 100644 index 95957140c5..0000000000 --- a/common/modifiers/00_court_event_modifiers_isabella.txt +++ /dev/null @@ -1,31 +0,0 @@ -# From court.4100 -all_male_choirs_modifier = { - icon = fertility_positive - county_opinion_add = 20 -} - -## From court.4200 Sneaky Passages -spying_holes_modifier = { - icon = mask_positive - scheme_discovery_chance_mult = 0.05 -} - -hidden_escape_route_modifier = { - icon = intrigue_positive - enemy_hostile_scheme_success_chance_add = -15 -} - -cake_shaft_modifier = { - icon = treat_negative - stress_gain_mult = -0.05 - health = -0.2 -} - -# From court.4300 - -# assisted_holy_war_preaching_tour = { -# icon = piety_positive -# vassal_levy_contribution_mult = 0.25 -# same_faith_opinion = 10 -# monthly_piety_gain_mult = 0.05 -# } diff --git a/common/modifiers/00_court_modifiers_james.txt b/common/modifiers/00_court_modifiers_james.txt deleted file mode 100644 index 45d1cb7236..0000000000 --- a/common/modifiers/00_court_modifiers_james.txt +++ /dev/null @@ -1,9 +0,0 @@ -used_sumptuary_debate_modifier = { - icon = learning_positive - intrigue = 2 -} - -sumptuary_debated_modifier = { - icon = learning_positive - intrigue = 1 -} \ No newline at end of file diff --git a/common/modifiers/00_court_modifiers_linnea.txt b/common/modifiers/00_court_modifiers_linnea.txt deleted file mode 100644 index e69f486c8c..0000000000 --- a/common/modifiers/00_court_modifiers_linnea.txt +++ /dev/null @@ -1,18 +0,0 @@ - -#Modifiers for court events - -victim_of_whoopee_cushion_modififer = { - icon = health_negative - monthly_prestige = -0.5 -} - -lively_court_modifier = { - icon = social_positive - courtier_opinion = 15 -} - -had_hearty_laugh_modifier = { - icon = health_positive - health = 0.25 - stress_gain_mult = -0.2 -} diff --git a/common/modifiers/00_court_scheme_modifiers.txt b/common/modifiers/00_court_scheme_modifiers.txt deleted file mode 100644 index 43fa8a85f4..0000000000 --- a/common/modifiers/00_court_scheme_modifiers.txt +++ /dev/null @@ -1,58 +0,0 @@ -#Success chance modifiers -courting_kindness_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -courting_act_of_heroism_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -courting_gift_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -courting_charm_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -courting_devotion = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -#Misc modifiers -wolf_pelt_modifier = { - icon = dog_positive - monthly_prestige = 0.25 -} - -necklace_modifier = { - icon = fertility_positive - attraction_opinion = 10 - monthly_prestige = 0.1 -} - -orchid_modifier = { - icon = fertility_positive - monthly_prestige = 0.1 - learning = 1 -} - -sleep_deprived_modifier = { - icon = bed_negative - health = -0.25 -} - -court_starved_modifier = { - icon = treat_negative - health = -0.25 -} - -court_competitor_modifier = { - icon = intrigue_negative - scheme_success_chance = -10 -} diff --git a/common/modifiers/00_diarchy_modifiers.txt b/common/modifiers/00_diarchy_modifiers.txt deleted file mode 100644 index 6aa4d29aee..0000000000 --- a/common/modifiers/00_diarchy_modifiers.txt +++ /dev/null @@ -1,136 +0,0 @@ -################################################## -# #Mandate Character Modifiers - -mandate_hated_recruiter_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -30 -} - -mandate_failed_to_drum_up_rural_recruits_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -mandate_sellswords_bolster_ranks_modifier = { - icon = blood_positive - men_at_arms_maintenance = -0.25 -} - -mandate_sellswords_bolster_recruitment_modifier = { - icon = blood_positive - men_at_arms_recruitment_cost = -0.25 -} - -mandate_hired_thugs_modifier = { - icon = control_positive - men_at_arms_maintenance = -0.10 - murder_scheme_power_add = 10 -} - -mandate_baronial_troops_trained_modifier = { - icon = martial_positive - levy_size = 0.4 -} - -mandate_baronial_troops_half_trained_modifier = { - icon = martial_positive - levy_size = 0.2 -} - -mandate_focused_on_own_training_modifier = { - icon = martial_positive - prowess = major_skill_bonus -} - -mandate_strained_self_training_modifier = { - icon = martial_negative - prowess = minor_skill_bonus - health = minor_health_penalty -} - -################################################## -# #Mandate County Modifiers - -mandate_induced_fines_to_liege_modifier = { - icon = stewardship_negative - county_opinion_add = -50 -} - -mandate_induced_fines_split_modifier = { - icon = stewardship_negative - tax_mult = 0.2 - county_opinion_add = -50 -} - -mandate_fines_being_ignored_modifier = { - icon = stewardship_negative - monthly_county_control_change_add = -0.25 - county_opinion_add = -10 -} - -mandate_squeezing_recruiting_sources_modifier = { - icon = martial_positive - levy_size = 0.3 -} - -mandate_extra_recruiting_sources_modifier = { - icon = martial_positive - levy_size = 0.15 -} - -mandate_emptied_gaols_modifier = { - icon = county_modifier_control_negative - monthly_county_control_change_add = -0.2 - county_opinion_add = -20 -} - -################################################## -# #Interaction Character Modifiers - -liege_authority_boost_has_scapegoat_modifier = { - icon = horse_dead_positive - courtly_opinion = 30 - parochial_opinion = 20 - glory_hound_opinion = 15 - barons_and_minor_landholders_opinion = 15 - minority_opinion = 10 -} - -################################################## -# #Interaction County Modifiers - -syphon_treasury_massive_sum_modifier = { - icon = economy_negative - tax_mult = -0.75 -} - -syphon_treasury_large_sum_modifier = { - icon = economy_negative - tax_mult = -0.5 -} - -syphon_treasury_medium_sum_modifier = { - icon = economy_negative - tax_mult = -0.3 -} - -syphon_treasury_small_sum_modifier = { - icon = economy_negative - tax_mult = -0.15 -} - - -shift_privileges_monopolies_sold_modifier = { - icon = economy_negative - tax_mult = -0.5 -} - -shift_privileges_scutage_exemptions_modifier = { - icon = prowess_negative - levy_size = -0.5 -} - -shift_privileges_conflicting_deeds_modifier = { - icon = letter_negative - development_growth_factor = -0.75 -} diff --git a/common/modifiers/00_diplomacy_lifestyle_modifiers.txt b/common/modifiers/00_diplomacy_lifestyle_modifiers.txt deleted file mode 100644 index 13e8d8df0f..0000000000 --- a/common/modifiers/00_diplomacy_lifestyle_modifiers.txt +++ /dev/null @@ -1,66 +0,0 @@ -############################################## -# Modifiers granted from the guile lifestyle # -############################################## - -# Unconverted Modifiers -statecraft_well_mannered_modifier = { - icon = social_positive - general_opinion = 5 -} - -statecraft_emphasises_unity_modifier = { - icon = social_positive - direct_vassal_opinion = 5 -} - -statecraft_just_judgements_modifier = { - icon = social_positive - direct_vassal_opinion = 10 -} - -statecraft_encouraged_feasting_modifier = { - icon = social_positive - direct_vassal_opinion = 5 -} - -# Converted Modifiers -diplomacy_foreign_1017_internal_affairs_modifier = { - icon = social_positive - direct_vassal_opinion = 10 -} - -diplomacy_foreign_3001_trade_deal_modifier = { - icon = economy_positive - tax_mult = 0.05 -} - -diplomacy_majesty_4030_basic_strategy_modifier = { - icon = diplomacy_positive - diplomacy = 1 - martial = 1 -} - -diplomacy_majesty_4030_advanced_strategy_modifier = { - icon = diplomacy_positive - diplomacy = 2 - martial = 2 -} - -diplomacy_majesty_4090_resplendent_raiment_modifier = { - icon = diplomacy_positive - diplomacy = 2 - monthly_prestige = 0.5 -} - -diplomacy_majesty_4090_traditional_raiment_modifier = { - icon = diplomacy_positive - diplomacy = 2 - stewardship = 1 -} - -diplomacy_majesty_4090_no_raiment_modifier = { - icon = prestige_negative - attraction_opinion = 20 - monthly_prestige = -1 -} - diff --git a/common/modifiers/00_ep2_travel_modifiers.txt b/common/modifiers/00_ep2_travel_modifiers.txt deleted file mode 100644 index c86ad94ba3..0000000000 --- a/common/modifiers/00_ep2_travel_modifiers.txt +++ /dev/null @@ -1,184 +0,0 @@ -healthy_vegetarian_meal_modifier = { - icon = feast_positive - stress_loss_mult = 0.25 - health = 0.5 -} - -living_simply_modifier = { - icon = spoon_positive - stress_loss_mult = 0.25 - religious_vassal_opinion = 10 -} - -villager_gifts_modifier = { - icon = drink_positive - stress_loss_mult = 0.25 -} - -loyal_attitudes_modifier = { - icon = piety_positive - vassal_opinion = 10 - vassal_levy_contribution_add = 0.1 -} - -pacifist_mindset_modifier = { - icon = diplomacy_positive - prowess = -20 - seduce_scheme_power_mult = 0.1 - diplomacy = 3 -} - -told_good_story_modifier = { - icon = social_positive - vassal_opinion = 5 - diplomacy = 1 -} - -musically_inspired_modifier = { - icon = fertility_positive - attraction_opinion = 15 - fertility = 0.1 - prisoner_opinion = -5 -} - -fishing_logistics_modifier = { - icon = martial_positive - embarkation_cost_mult = -0.1 - naval_movement_speed_mult = 0.1 - coastal_sea_travel_danger = -10 -} - -mystic_wisdom_modifier = { - icon = magic_positive - learn_language_scheme_power_mult = 0.1 - learning = 1 - opinion_of_different_faith = 5 -} - -trained_in_warrior_culture_modifier = { - icon = martial_positive - prowess = 5 - martial = 1 -} - -training_hard_modifier = { - icon = martial_positive - prowess = 20 -} - -philosophical_musings_modifier = { - icon = magic_positive - learning = 2 - faith_creation_piety_cost_mult = -0.1 -} - -personal_chivalry_modifier = { - icon = martial_positive - diplomacy = 1 - prowess = 1 -} - -grotesque_rush_modifier = { - icon = horse_positive - travel_speed_mult = 0.3 - travel_safety_mult = -0.1 -} - -grotesque_scholar_modifier = { - icon = horse_positive - travel_speed_mult = 0.3 -} - -cryptid_obssessed_rush = { - icon = horse_positive - travel_speed_mult = 0.2 -} - -travel_events.3000_interest_modifier = { - icon = learning_positive - learning = 2 -} - -satiated_curiosity = { - icon = learning_positive - learning = 1 - stress_gain_mult = 0.1 -} - -feral_pet_modifier = { - icon = cat_negative - courtier_opinion = -5 -} - -adventurous_pet_modifier = { - icon = cat_positive - prowess = 1 -} - -feral_pet_love_modifier = { - icon = cat_positive - martial = 1 -} - -broadened_horizons_modifier = { - icon = social_positive - different_faith_opinion = 10 - religious_vassal_opinion = -5 -} - -firm_convictions_modifier = { - icon = social_positive - religious_vassal_opinion = 10 -} - -more_supplies_modifier = { - icon = stewardship_positive - supply_duration = 0.15 -} - -more_men_modifier = { - icon = martial_positive - travel_safety_mult = 0.2 -} - -dismissed_religious_debate = { - icon = horse_positive - travel_speed_mult = 0.15 -} - -ignored_hermit = { - icon = horse_positive - travel_speed_mult = 0.15 -} - -ignored_church = { - icon = horse_positive - travel_speed_mult = 0.1 -} - -bought_horses_modifier = { - icon = horse_positive - travel_safety_mult = 0.2 - travel_speed_mult = 0.1 -} - -pushed_horses_good_modifier = { - icon = horse_positive - travel_safety_mult = 0.15 -} - -pushed_horses_bad_modifier = { - icon = horse_negative - travel_safety_mult = -0.1 - travel_speed_mult = -0.2 -} - -pet_rescue_modifier = { - icon = horse_negative - travel_speed_mult = -0.15 -} - -pilgrim_guide_modifier = { - icon = horse_positive - travel_safety_mult = 0.3 -} diff --git a/common/modifiers/00_event_modifiers.txt b/common/modifiers/00_event_modifiers.txt index e6664bba77..633de48cb9 100644 --- a/common/modifiers/00_event_modifiers.txt +++ b/common/modifiers/00_event_modifiers.txt @@ -437,6 +437,14 @@ the_great_khan_modifier = { army_maintenance_mult = -0.5 archer_cavalry_siege_value_add = 0.3 light_cavalry_siege_value_add = 0.3 + + archer_cavalry_toughness_mult = 0.75 + light_cavalry_toughness_mult = 0.75 + heavy_cavalry_toughness_mult = 0.75 + + archer_cavalry_damage_mult = 0.75 + light_cavalry_damage_mult = 0.75 + heavy_cavalry_damage_mult = 0.75 } focused_reading_modifier = { diff --git a/common/modifiers/00_fabricate_hook_modifiers.txt b/common/modifiers/00_fabricate_hook_modifiers.txt deleted file mode 100644 index b1543bef72..0000000000 --- a/common/modifiers/00_fabricate_hook_modifiers.txt +++ /dev/null @@ -1,48 +0,0 @@ -fabricate_hook_building_influence_modifier = { - icon = intrigue_positive - scheme_success_chance = 20 - stacking = yes -} - -fabricate_hook_interfering_with_servants_modifier = { - icon = family_negative - courtier_and_guest_opinion = -10 -} - -fabricate_hook_family_speed_modifier = { - icon = family_positive - scheme_power = 30 -} - -fabricate_hook_family_success_modifier = { - icon = family_positive - scheme_success_chance = 10 -} - -fabricate_hook_careful_study_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -fabricate_hook_gossip_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 - scheme_secrecy = -5 -} - -fabricate_hook_servant_modifier = { - icon = intrigue_positive - scheme_success_chance = 5 - scheme_secrecy = -5 -} - -fabricate_hook_studied_personality_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -fabricate_hook_suspicious_target_modifier = { - icon = intrigue_negative - scheme_success_chance = -5 - scheme_secrecy = -5 -} \ No newline at end of file diff --git a/common/modifiers/00_generic_scheme_modifiers.txt b/common/modifiers/00_generic_scheme_modifiers.txt deleted file mode 100644 index 5d9711c43a..0000000000 --- a/common/modifiers/00_generic_scheme_modifiers.txt +++ /dev/null @@ -1,30 +0,0 @@ -########################### -# SCHEME MODIFIERS -########################### -watchful_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 5.0 - stacking = yes -} - -gregarious_demand_complete_silence_modifier = { - icon = family_negative - scheme_power = -5 -} - -scheme_modifier_failed_bribery = { - icon = letter_negative - scheme_power = -15 -} - -#COMPOSE SCHEME PROTOTYPE: - -modifier_just_scheming_less = { - icon = letter_negative - scheme_power = -20 -} - -scheme_modifier_compassionate_slowing_down = { - icon = letter_negative - scheme_power = -20 -} diff --git a/common/modifiers/00_governance_lifestyle_modifiers.txt b/common/modifiers/00_governance_lifestyle_modifiers.txt deleted file mode 100644 index ec3c28fb81..0000000000 --- a/common/modifiers/00_governance_lifestyle_modifiers.txt +++ /dev/null @@ -1,570 +0,0 @@ -############################################## -# Modifiers granted from the governance lifestyle # -############################################## - -rulership_playful_experimentation_modifier = { - icon = intrigue_positive - intrigue = 1 -} - -rulership_mudraking_river_banks_modifier = { - icon = stewardship_positive - stewardship = 1 -} - -stewardship_duty_understanding_peasants_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -governance_1021_war_taxes_modifier = { - icon = county_modifier_opinion_negative - tax_mult = 0.15 - county_opinion_add = -20 - development_growth_factor = -0.25 -} - -governance_1021_efficiently_supplied_armies_modifer = { - icon = martial_positive - army_maintenance_mult = -0.2 -} - -governance_1021_undersupplied_armies_modifier = { - icon = martial_positive - army_maintenance_mult = -0.1 - hard_casualty_modifier = 0.1 - enemy_hard_casualty_modifier = -0.1 -} - -governance_1041_cooperative_guilds_modifier = { - icon = martial_positive - levy_size = 0.25 - tax_mult = 0.1 -} - -governance_1041_quarreling_guilds_modifier = { - icon = martial_negative - levy_size = -0.15 - tax_mult = -0.15 -} - -governance_1041_blacksmiths_guild_modifier = { - icon = martial_positive - levy_size = 0.5 - tax_mult = -0.25 -} - -governance_1041_merchants_guild_modifier = { - icon = martial_negative - levy_size = -0.25 - tax_mult = 0.15 -} - -governance_1042_influential_guild_modifier = { - icon = martial_positive - levy_size = 0.20 - tax_mult = 0.1 -} - -governance_1042_domineering_guild_modifier = { - icon = martial_negative - levy_size = -0.50 - tax_mult = -0.50 -} - -governance_1051_independent_farmlands_modifier = { - icon = county_modifier_development_positive - monthly_county_control_change_factor = -0.50 - development_growth = 0.25 -} - -governance_1052_resentful_serfs_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} - -governance_1052_grateful_freefolk_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -governance_1053_reliable_tax_collectors_modifier = { - icon = economy_positive - tax_mult = 0.05 -} - -governance_1053_corrupt_tax_collectors_modifier = { - icon = economy_negative - tax_mult = -0.10 -} - -governance_1054_upset_peasants_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -25 - travel_danger = 5 -} - -governance_1054_satisfied_peasants_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 - travel_danger = -5 -} - -governance_1062_immaculate_gardens_modifier = { - icon = prestige_positive - monthly_prestige = 1 -} - -governance_1062_religious_tapestries_modifier = { - icon = piety_positive - monthly_piety = 0.5 - clergy_opinion = 5 -} - -governance_1062_natural_philosopher_modifier = { - icon = learning_positive - learning = 2 - development_growth_factor = 0.15 -} - -governance_1071_missing_serfs_modifier = { - icon = economy_negative - tax_mult = -0.33 - levy_size = -0.33 -} - -governance_1071_extra_serfs_modifier = { - icon = economy_positive - tax_mult = 0.15 - levy_size = 0.33 -} - -governance_1071_grateful_serfs_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - tax_mult = 0.15 - levy_size = 0.33 -} - -governance_1073_conversion_resistance_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -governance_1073_traditions_disrespected_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} - -governance_1074_religious_refugees_modifier = { - icon = outdoors_positive - tax_mult = 0.15 - levy_size = 0.33 -} - -governance_1074_population_fled_persecution_modifier = { - icon = outdoors_negative - tax_mult = -0.33 - levy_size = -0.33 - #Easier to convert counties with this modifier. -} - -governance_1074_local_faith_respected_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - #Harder to convert counties with this modifier. -} - -governance_aqueduct_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - monthly_county_control_change_add = 0.5 -} - -governance_irrigation_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -governance_small_aqueduct_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain - monthly_county_control_change_add = 0.2 -} - -governance_small_irrigation_modifier = { - icon = county_modifier_development_positive - development_growth_factor = tiny_development_growth_gain -} - -governance_peasants_overworked_modifier = { - icon = family_negative - tax_mult = -0.25 -} - -governance_levied_peasants_for_construction_modifier = { - icon = family_negative - levy_size = -0.3 -} - -governance_bad_guidance_modifier = { - icon = county_modifier_development_negative - development_growth_factor = medium_development_growth_loss -} - -governance_poor_guidance_modifier = { - icon = county_modifier_development_negative - development_growth_factor = small_development_growth_loss -} - -governance_good_guidance_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -governance_annual_charter_fair_city_modifier = { - icon = county_modifier_control_positive - tax_mult = 0.1 - monthly_county_control_change_add = 0.3 -} - -governance_annual_charter_fair_church_modifier = { - icon = economy_positive - tax_mult = 0.1 -} - -governance_poor_new_road_modifier = { - icon = county_modifier_development_positive - development_growth_factor = tiny_development_growth_gain - tax_mult = 0.02 - travel_danger = -5 -} - -governance_standard_new_road_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain - tax_mult = 0.05 - travel_danger = -10 -} - -governance_good_new_road_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - tax_mult = 0.1 - travel_danger = -12 -} - -governance_excellent_new_road_modifier = { - icon = county_modifier_development_positive - development_growth_factor = large_development_growth_gain - tax_mult = 0.15 - travel_danger = -14 -} - -governance_cutting_costs_modifier = { - icon = stewardship_positive - tax_mult = 0.05 -} - -governance_building_lessons_learned_modifier = { - icon = county_modifier_development_positive - build_speed = -0.1 -} - -governance_newly_minted_silver_coins_modifier = { - icon = county_modifier_development_positive - development_growth_factor = tiny_development_growth_gain -} - -governance_land_cleared_for_settlement_modifier = { - icon = county_modifier_development_positive - development_growth_factor = large_development_growth_gain -} - -governance_self_sufficient_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - tax_mult = -0.25 -} - -governance_time_reclaiming_land_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - tax_mult = -0.25 -} - -governance_forbidden_resettlement_modifier = { - icon = county_modifier_development_negative - development_growth_factor = medium_development_growth_loss - county_opinion_add = 20 -} - -governance_ordered_resettlement_modifier = { - icon = county_modifier_opinion_negative - tax_mult = 0.1 - county_opinion_add = -25 -} - -governance_improved_taxation_county_modifier = { - icon = economy_positive - tax_mult = 0.1 -} - -governance_increased_tax_evasion_modifier = { - icon = economy_negative - tax_mult = -0.25 -} - -governance_abandoned_villages_modifier = { - icon = county_modifier_development_negative - development_growth_factor = large_development_growth_loss -} - -governance_lenient_tax_policy_modifier = { - icon = county_modifier_development_positive - tax_mult = -0.5 - development_growth_factor = large_development_growth_gain - county_opinion_add = 20 -} - -governance_harsh_tax_policy_modifier = { - icon = economy_positive - tax_mult = 0.1 - development_growth_factor = large_development_growth_loss -} - -governance_overtaxed_modifier = { - icon = county_modifier_opinion_negative - development_growth_factor = large_development_growth_loss - county_opinion_add = -20 -} - -governance_cattle_herd_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -governance_large_cattle_herd_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain -} - -governance_reduced_troop_levy_modifier = { - icon = county_modifier_development_positive - development_growth = 1 - levy_size = -0.5 - travel_danger = 5 -} - -governance_troops_levied_for_construction_modifier = { - icon = county_modifier_development_positive - levy_size = -0.25 - build_gold_cost = -0.15 - build_prestige_cost = -0.25 - build_piety_cost = -0.25 -} - -governance_increased_troop_levy_modifier = { - icon = martial_positive - levy_size = 0.25 - travel_danger = -10 -} - -governance_decreased_revolt_risk_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 30 -} - -governance_increased_taxes = { - icon = economy_positive - tax_mult = 0.1 -} - -governance_stonemason_cooperation_modifier = { - icon = rock_positive - build_speed = -0.25 - build_gold_cost = -0.1 -} - -governance_emphasised_corvee_modifier = { - icon = stewardship_negative - tax_mult = -0.25 - build_gold_cost = 0.5 -} - -stewardship_domain_special_1500_excellent_quality_assessment = { - icon = stewardship_positive - tax_mult = 0.1 -} - -stewardship_domain_special_1500_high_quality_assessment = { - icon = stewardship_positive - tax_mult = 0.075 -} - -stewardship_domain_special_1500_mediocre_quality_assessment = { - icon = stewardship_positive - tax_mult = 0.05 -} - -stewardship_domain_special_1500_hoarding_assessment_records = { - icon = stewardship_positive - intrigue = 1 - stewardship = 1 -} - -stewardship_domain_special_1500_distributed_assessment_records = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain -} - -stewardship_domain_special_1500_resentful_guilds = { - icon = county_modifier_development_negative - build_speed = 0.25 - build_gold_cost = 0.25 -} - -stewardship_domain_special_1500_guild_services = { - icon = county_modifier_development_positive - build_speed = -0.2 - build_gold_cost = -0.05 -} - -stewardship_domain_special_1500_encouraged_travellers = { - icon = family_positive - development_growth_factor = small_development_growth_gain -} - -stewardship_domain_special_1500_avoided_by_merchants = { - icon = economy_negative - development_growth_factor = small_development_growth_loss - tax_mult = -0.1 -} - -stewardship_duty_studied_fortifications_modifier = { - icon = rock_positive - siege_weapon_siege_value_mult = 0.2 -} - -stewardship_duty_entertaining_baronial_company = { - icon = social_positive - feudal_government_vassal_opinion = 5 -} - -stewardship_duty_value_of_service_exchange_modifier = { - icon = stewardship_positive - stewardship = 2 -} - -stewardship_duty_defensive_understanding_modifier = { - icon = county_modifier_development_positive - additional_fort_level = 1 -} - -stewardship_duty_improved_paths_modifier = { - icon = martial_positive - movement_speed = 0.1 -} - -stewardship_duty_development_plans_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -stewardship_duty_affirmed_rule_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.1 -} - -stewardship_domain_county_worked_to_death_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 - stacking = yes -} - -stewardship_domain_personal_ownership_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_factor = 0.25 -} - -stewardship_domain_roadside_guard_patrols_modifier = { - icon = martial_negative - levy_size = -0.25 - monthly_county_control_change_add = 0.2 - travel_danger = -15 -} - -stewardship_domain_improved_military_infrastructure_modifier = { - icon = martial_positive - levy_reinforcement_rate = 0.2 - men_at_arms_maintenance = -0.15 -} - -stewardship_domain_pecuniary_oversight_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.2 -} - -stewardship_domain_expanded_public_works_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - tax_mult = 0.02 - travel_danger = -5 -} - -stewardship_domain_crown_lands_modifier = { - icon = county_modifier_control_positive - tax_mult = 0.1 - monthly_county_control_change_add = 0.1 -} - -stewardship_general_bartering_strategies_modifier = { - icon = stewardship_positive - stewardship = 2 -} - -stewardship_tax_exemption_modifier = { - icon = stewardship_positive - county_opinion_add = 10 -} - -stewardship_tax_enforcement_modifier = { - icon = stewardship_negative - county_opinion_add = -20 -} - -stewardship_rampaging_knights_modifier = { - icon = martial_positive - monthly_income_mult = 0.15 - knight_effectiveness_mult = 0.20 - county_opinion_add = -30 - development_growth_factor = small_development_growth_loss -} - -stewardship_stolen_taxes_modifier = { - icon = economy_negative - tax_mult = -0.2 -} - -### Perks -county_extorted_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -50 -} - -extorted_theocratic_vassals_modifier = { - icon = piety_negative - theocracy_government_opinion = -15 -} - -extorted_vassals_modifier = { - icon = social_negative - direct_vassal_opinion = -10 -} - -extorted_courtiers_modifier = { - icon = family_negative - courtier_opinion = -15 -} - -### End Perks diff --git a/common/modifiers/00_health_modifiers.txt b/common/modifiers/00_health_modifiers.txt deleted file mode 100644 index bc26a2a5da..0000000000 --- a/common/modifiers/00_health_modifiers.txt +++ /dev/null @@ -1,158 +0,0 @@ -infected_wound_modifier = { - icon = health_negative - health = -1 -} - -gangrene_modifier = { - icon = health_negative - health = -1.5 -} - -rejected_from_marriage_bed_modifier = { - icon = fertility_negative - fertility = -100 -} - -#RANDOM HARM - -aging_gracefully_modifier = { - icon = health_positive - health = medium_health_bonus -} - -thick_skulled_modifier = { - icon = health_positive - prowess = minor_skill_bonus -} - -strong_willed_modifier = { - icon = health_positive - negate_health_penalty_add = minor_health_bonus -} - -#DISEASE -safe_disease_treatment_success_high_modifier = { - icon = treatment_positive - negate_health_penalty_add = 1.5 -} - -safe_disease_treatment_success_low_modifier = { - icon = treatment_positive - negate_health_penalty_add = 1 -} - -safe_disease_treatment_failure_modifier = { - icon = treatment_negative - health = -0.5 -} - -risky_disease_treatment_success_high_modifier = { - icon = treatment_positive - negate_health_penalty_add = 3 -} - -risky_disease_treatment_success_low_modifier = { - icon = treatment_positive - negate_health_penalty_add = 2 -} - -risky_disease_treatment_failure_modifier = { - icon = treatment_negative - health = -1.5 -} - -#WOUNDS -safe_wound_treatment_success_high_modifier = { - icon = treatment_positive - negate_health_penalty_add = 1.5 -} - -safe_wound_treatment_success_low_modifier = { - icon = treatment_positive - negate_health_penalty_add = 1 -} - -safe_wound_treatment_failure_modifier = { - icon = treatment_negative - health = -0.5 -} - -risky_wound_treatment_success_modifier = { - icon = treatment_positive - negate_health_penalty_add = 2 -} - -risky_wound_treatment_failure_modifier = { - icon = treatment_negative - health = -1.5 -} - - - - -chastised_physician_modifier = { - icon = learning_positive - learning = 1 - monthly_prestige = -1 -} - -exhausted_modifier = { - icon = health_negative - health = -0.5 - diplomacy = -1 -} - -low_social_energy_modifier = { - icon = health_negative - diplomacy = -1 -} - -lunatic_made_of_glass_modifier = { - icon = health_positive - health = 2 - prowess = -4 -} - -lunatic_bat_ravings_modifier = { - icon = stress_negative - courtier_and_guest_opinion = -10 - hostile_scheme_resistance_add = 20 -} - -wounds_quickly_tended_to_modifier = { - icon = treatment_positive - negate_health_penalty_add = 1.5 -} - -drank_water_modifier = { - icon = health_positive - health = 0.25 -} - -almost_drowned_modifier = { - icon = health_negative - health = -1 - stress_gain_mult = 0.25 -} - - -# WEIGHT -malnourished_modifier = { - icon = health_negative - health = -1 -} - -obese_modifier = { - icon = health_negative - health = -1 -} - -gaining_weight_modifier = { - icon = food_negative - stress_gain_mult = 0.25 -} - -losing_weight_modifier = { - icon = food_negative - stress_gain_mult = 0.25 -} diff --git a/common/modifiers/00_historical_artifact_modifiers.txt b/common/modifiers/00_historical_artifact_modifiers.txt index d82b9aa12a..b188d76fa2 100644 --- a/common/modifiers/00_historical_artifact_modifiers.txt +++ b/common/modifiers/00_historical_artifact_modifiers.txt @@ -584,15 +584,15 @@ # jungle_construction_gold_cost = -0.1 #} -#afarganyu_modifier = { -# court_grandeur_baseline_add = 2 -# monthly_piety = 0.3 -# church_holding_build_gold_cost = -0.2 -# church_holding_holding_build_gold_cost = -0.2 -# drylands_development_growth_factor = 0.1 -# desert_mountains_development_growth_factor = 0.1 -# desert_mountains_tax_mult = 0.2 -#} +afarganyu_modifier = { + court_grandeur_baseline_add = 2 + monthly_piety = 0.3 + church_holding_build_gold_cost = -0.2 + church_holding_holding_build_gold_cost = -0.2 + drylands_development_growth_factor = 0.1 + desert_mountains_development_growth_factor = 0.1 + desert_mountains_tax_mult = 0.2 +} # #siddhachakra_modifier = { # court_grandeur_baseline_add = 2 diff --git a/common/modifiers/00_holy_order_modifiers.txt b/common/modifiers/00_holy_order_modifiers.txt deleted file mode 100644 index 36d3817d11..0000000000 --- a/common/modifiers/00_holy_order_modifiers.txt +++ /dev/null @@ -1,13 +0,0 @@ -#Modifiers relating to Holy Orders - -holy_order_experience_modifier = { - icon = prowess_positive - martial = 1 - prowess = 1 -} - -founded_holy_order_modifier = { - icon = piety_positive - monthly_piety = 0.5 - same_faith_opinion = 10 -} \ No newline at end of file diff --git a/common/modifiers/00_intrigue_lifestyle_modifiers.txt b/common/modifiers/00_intrigue_lifestyle_modifiers.txt deleted file mode 100644 index 02728b0d39..0000000000 --- a/common/modifiers/00_intrigue_lifestyle_modifiers.txt +++ /dev/null @@ -1,178 +0,0 @@ -############################################## -# Modifiers granted from the intrigue lifestyle # -############################################## - -intrigue_insulted_abilities_as_lover = { - icon = fertility_negative - fertility = minor_fertility_penalty -} - - #Scheme modifiers -more_vigilant_recistance_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 8 - intrigue = 1 -} - -read_people_power_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 5 -} - -invented_code_slight_resistance_modifier = { - icon = intrigue_positive - owned_scheme_secrecy_add = 5 -} - -invented_code_resistance_modifier = { - icon = mask_positive - owned_scheme_secrecy_add = 8 -} - -better_understanding_of_people = { - icon = intrigue_positive - hostile_scheme_resistance_add = 8 -} - -ate_good_meal = { - icon = health_positive - health = 0.25 -} - -manipulate_people_modifier = { - icon = intrigue_positive - owned_hostile_scheme_success_chance_add = 5 -} - -observant_of_details = { - icon = intrigue_positive - hostile_scheme_resistance_add = 10 - enemy_hostile_scheme_success_chance_add = -10 -} - -very_observant_of_details = { - icon = intrigue_positive - hostile_scheme_resistance_add = 20 - enemy_hostile_scheme_success_chance_add = -20 -} - -intrigue_poison_experimentation_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 5 -} - -intrigue_risky_poison_experimentation_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 5 - intrigue = 1 -} - -intrigue_emphasizing_personal_schemes_modifier = { - icon = intrigue_positive - intrigue_scheme_power = 5 - diplomacy_scheme_power = 5 -} - -intrigue_fond_memories_modifier = { - icon = stress_positive - stress_loss_mult = 0.5 -} - -intrigue_starved_and_deprived_modifier = { - icon = health_negative - diplomacy = -1 - martial = -1 - stewardship = -1 - intrigue = -1 - learning = -1 - prowess = -2 - health = -1 - fertility = -0.5 -} - -intrigue_suffered_degredation_modifier = { - icon = family_negative - diplomacy = -2 - stewardship = -1 - intrigue = -2 - learning = -1 - health = -1 -} - -intrigue_broken_modifier = { - icon = health_negative - diplomacy = -2 - martial = -2 - stewardship = -2 - intrigue = -2 - learning = -2 - prowess = -3 - health = -0.5 - fertility = -0.25 -} - -intrigue_court_spies_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 8 -} - -intrigue_hoarding_secrets_modifier = { - icon = intrigue_positive - intrigue = 1 -} - -intrigue_threatened_merchant_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} - -intrigue_theatre_troupe_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 -} -intrigue_theatre_troupe_loss_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -intrigue_studying_people_modifier = { - icon = social_positive - general_opinion = 5 -} - -intrigue_flirtatious_modifier = { - icon = fertility_positive - attraction_opinion = 20 -} - -intrigue_understands_desires_modifier = { - icon = social_positive - general_opinion = 10 - attraction_opinion = 10 -} - -intrigue_understands_people_modifier = { - icon = social_positive - general_opinion = 10 -} - -intrigue_picky_about_partners = { - icon = social_positive - attraction_opinion = 5 -} - -############ -# PERKS -############ - -dark_insights_prowess_modifier = { - icon = prowess_positive - prowess = 1 - stacking = yes -} - -dark_insights_intrigue_modifier = { - icon = intrigue_positive - intrigue = 1 - stacking = yes -} diff --git a/common/modifiers/00_intrigue_lifestyle_modifiers_2.txt b/common/modifiers/00_intrigue_lifestyle_modifiers_2.txt deleted file mode 100644 index b5cd18a205..0000000000 --- a/common/modifiers/00_intrigue_lifestyle_modifiers_2.txt +++ /dev/null @@ -1,242 +0,0 @@ -public_shamer_modifier = { - icon = intrigue_positive - intrigue = massive_skill_bonus -} - -saucy_reputation_01_modifier = { - icon = intrigue_positive - intrigue = medium_skill_bonus -} - -saucy_reputation_02_modifier = { - icon = intrigue_positive - intrigue = major_skill_bonus - attraction_opinion = 10 -} - -saucy_reputation_03_modifier = { - icon = intrigue_positive - intrigue = massive_skill_bonus - attraction_opinion = 20 -} - -licentious_01_modifier = { - icon = fertility_positive - attraction_opinion = 15 - courtier_opinion = -5 -} - -licentious_02_modifier = { - icon = fertility_positive - attraction_opinion = 20 - courtier_opinion = -10 -} - -licentious_03_modifier = { - icon = fertility_positive - attraction_opinion = 30 - courtier_opinion = -15 -} - -licentious_04_modifier = { - icon = fertility_positive - attraction_opinion = 40 - courtier_opinion = -20 -} - -licentious_05_modifier = { - icon = fertility_positive - attraction_opinion = 50 - courtier_opinion = -25 -} - -silver_tongued_modifier = { - icon = fertility_positive - intrigue = massive_skill_bonus - attraction_opinion = 15 -} - -quick_thinker_modifier = { - icon = intrigue_positive - intrigue = medium_skill_bonus - diplomacy = medium_skill_bonus -} - -malignant_hearsay_modifier = { - icon = intrigue_negative - intrigue = massive_skill_penalty -} - -forest_of_corpses_1_modifier = { - icon = intrigue_positive - county_opinion_add = -30 - monthly_county_control_change_add = 0.5 - tax_mult = 0.1 -} - -forest_of_corpses_2_modifier = { - icon = intrigue_positive - county_opinion_add = -20 - monthly_county_control_change_add = 0.8 - tax_mult = 0.1 -} - -forest_of_corpses_3_modifier = { - icon = intrigue_positive - county_opinion_add = -15 - monthly_county_control_change_add = 1 - tax_mult = 0.2 -} -intrigue_clandestine_informant_modifier = { - icon = martial_positive - supply_duration = 0.25 - siege_phase_time = -0.3 - siege_weapon_siege_value_mult = 1 -} - -intrigue_fooled_by_enemy_modifier = { - icon = martial_negative - supply_duration = -0.25 - siege_phase_time = 0.3 - siege_weapon_siege_value_mult = -1 -} - -intrigue_protected_by_loved_one_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_mult = 0.3 - stress_loss_mult = -0.15 -} - -intrigue_controlling_the_narrative_modifier = { - icon = intrigue_positive - hostile_scheme_power_mult = 0.15 - personal_scheme_power_mult = 0.15 -} - -intrigue_blanket_of_fear_modifier = { - icon = intrigue_positive - dread_gain_mult = 0.2 -} - -intrigue_bumbling_tyrant_modifier = { - icon = intrigue_negative - hostile_scheme_resistance_mult = -0.1 - dread_gain_mult = -0.1 -} - -intrigue_yes_man_spymaster_modifier = { - icon = intrigue_negative - intrigue = -2 -} - -intrigue_yes_man_chancellor_modifier = { - icon = diplomacy_negative - diplomacy = -2 -} - -intrigue_yes_man_marshal_modifier = { - icon = martial_negative - martial = -2 -} - -intrigue_yes_man_steward_modifier = { - icon = stewardship_negative - stewardship = -2 -} - -intrigue_yes_man_court_chaplain_modifier = { - icon = learning_negative - learning = -2 -} - -intrigue_trusty_spymaster_modifier = { - icon = intrigue_positive - intrigue = 2 -} - -intrigue_trusty_chancellor_modifier = { - icon = diplomacy_positive - diplomacy = 2 -} - -intrigue_trusty_steward_modifier = { - icon = stewardship_positive - stewardship = 2 -} - -intrigue_trusty_marshal_modifier = { - icon = martial_positive - martial = 2 -} - -intrigue_trusty_court_chaplain_modifier = { - icon = learning_positive - learning = 2 -} - -intrigue_doing_spymasters_job_modifier = { - icon = intrigue_positive - intrigue = 2 - stress_gain_mult = 0.15 -} - -intrigue_doing_chancellors_job_modifier = { - icon = diplomacy_positive - diplomacy = 2 - stress_gain_mult = 0.15 -} - -intrigue_doing_stewards_job_modifier = { - icon = stewardship_positive - stewardship = 2 - stress_gain_mult = 0.15 -} - -intrigue_doing_marshals_job_modifier = { - icon = martial_positive - martial = 2 - stress_gain_mult = 0.15 -} - -intrigue_doing_court_chaplains_job_modifier = { - icon = learning_positive - learning = 2 - stress_gain_mult = 0.15 -} - -intrigue_show_them_all_modifier = { - icon = intrigue_positive - hostile_scheme_power_mult = 0.3 -} - -intrigue_harsh_justice_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.15 -} - -intrigue_arbitrary_justice_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 -} - -intrigue_instructive_executions_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -intrigue_timewasting_executions_modifier = { - icon = county_modifier_development_negative - build_speed = 0.1 -} - -intrigue_horrifying_executions_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 - development_growth_factor = tiny_development_growth_loss -} - -intrigue_relaxed_oversight_modifier = { - icon = county_modifier_control_negative - monthly_county_control_change_add = -0.1 - development_growth_factor = tiny_development_growth_gain -} diff --git a/common/modifiers/00_intrigue_scheme_modifiers.txt b/common/modifiers/00_intrigue_scheme_modifiers.txt deleted file mode 100644 index eaab77e6d4..0000000000 --- a/common/modifiers/00_intrigue_scheme_modifiers.txt +++ /dev/null @@ -1,86 +0,0 @@ -######################## -# SCHEME MODIFIERS -########################### - -lifestyle_soldier_source_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 5 - scheme_secrecy = -5 -} - -lifestyle_studied_habits_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 5 - scheme_secrecy = -5 -} - -lifestyle_converted_informants_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 10 - scheme_secrecy = -5 -} - -lifestyle_intercepting_communication_modifier = { - icon = intrigue_positive - scheme_power = 15 - scheme_success_chance = 10 - scheme_secrecy = -5 -} - -lifestyle_intercepted_communication_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 5 -} - -lifestyle_close_to_courtier_modifier = { - icon = intrigue_positive - scheme_power = 15 - scheme_success_chance = 10 -} - -intrigue_scheme_mapped_surroundings_modifier = { - icon = intrigue_positive - scheme_secrecy = 10 - scheme_success_chance = 10 -} - -intrigue_scheme_tattletale_modifier = { - icon = intrigue_negative - scheme_secrecy = -20 -} - -intrigue_scheme_in_a_hurry_modifier = { - icon = intrigue_negative - scheme_power = 20 - scheme_success_chance = -10 -} - -intrigue_scheme_no_contact_modifier = { - icon = intrigue_negative - scheme_success_chance = -5 - scheme_secrecy = 15 -} - -intrigue_scheme_involved_modifier = { - icon = intrigue_negative - scheme_secrecy = -25 -} - -intrigue_scheme_messenger_pigeon_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -intrigue_scheme_secret_code_modifier = { - icon = intrigue_positive - scheme_secrecy = 10 -} - -intrigue_scheme_personally_translating_letters_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} \ No newline at end of file diff --git a/common/modifiers/00_learning_lifestyle_modifiers.txt b/common/modifiers/00_learning_lifestyle_modifiers.txt deleted file mode 100644 index cd82946ed6..0000000000 --- a/common/modifiers/00_learning_lifestyle_modifiers.txt +++ /dev/null @@ -1,134 +0,0 @@ -############################################## -# Modifiers granted from the scholarship lifestyle # -############################################## - -scholarship_bird_automaton_modifier = { - icon = prestige_positive - monthly_prestige = 0.25 -} - -scholarship_bird_dissection_modifier = { - icon = learning_positive - learning = 2 -} - -book_translation_excellent_modifier = { - icon = learning_positive - clergy_opinion = 10 - monthly_piety = 1 - monthly_prestige = 0.25 -} - -book_translation_mediocre_modifier = { - icon = learning_positive - clergy_opinion = 5 - monthly_piety = 0.25 -} - -terrified_courtiers_modifier = { - icon = prestige_negative - monthly_prestige = -3 -} - -book_translation_ongoing_modifier = { - icon = learning_positive - learning = 1 -} - -scholarship_astrological_insights_modifier = { - icon = magic_positive - learning = 1 - stewardship = 1 - monthly_prestige = 0.25 -} - -scholarship_down_to_earth_modifier = { - icon = letter_positive - clergy_opinion = 10 - monthly_piety_gain_mult = 0.05 -} - -logical_thinking_modifier = { - icon = learning_positive - learning = 1 -} - -chronic_headaches_modifier = { - icon = health_negative - health = -0.5 - stress_gain_mult = 0.1 -} - -rich_fertilizer_modifier = { - icon = fertility_positive - tax_mult = 0.05 -} - -tomb_defiler_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -wide_vocabulary_modifier = { - icon = letter_positive - learning = 1 -} - -exercise_modifier = { - icon = prowess_positive - prowess = 1 -} - -introspective_rest_modifier = { - icon = stress_positive - stress_gain_mult = -0.2 -} - -theology_dangerous_habits_modifier = { - icon = health_negative - health = -0.2 -} - -divine_guidance_modifier = { - icon = stress_positive - learning = 1 - martial = 1 - stress_gain_mult = -0.25 - stress_loss_mult = 0.25 -} - -mystic_suspicious_reputation_modifier = { - icon = dread_negative - hostile_scheme_power_mult = -0.2 - dread_gain_mult = 0.2 -} - -mystic_great_openness_modifier = { - icon = family_negative - hostile_scheme_resistance_mult = -0.2 - personal_scheme_power_mult = 0.2 -} - -mystic_dangerous_to_know_modifier = { - icon = dread_positive - hostile_scheme_resistance_mult = 0.25 - dread_gain_mult = 0.2 -} - -mystic_devout_protector_modifier = { - icon = piety_positive - personal_scheme_power_mult = 0.25 - courtier_opinion = 5 -} - -bibliomancy_tense_modifier = { - icon = learning_negative - learning = -1 - stress_gain_mult = 0.1 -} - -bibliomancy_fearful_modifier = { - icon = learning_negative - stress_gain_mult = 0.3 - dread_gain_mult = -0.1 -} diff --git a/common/modifiers/00_learning_lifestyle_modifiers_2.txt b/common/modifiers/00_learning_lifestyle_modifiers_2.txt deleted file mode 100644 index 5d4be04246..0000000000 --- a/common/modifiers/00_learning_lifestyle_modifiers_2.txt +++ /dev/null @@ -1,36 +0,0 @@ -hallucinogenic_visions_terrifying_modifier = { - icon = magic_positive - learning = 6 - health = -2 -} - -hallucinogenic_visions_uplifting_modifier = { - icon = magic_positive - learning = 6 -} - -associates_with_strange_peasants_modifier = { - icon = social_negative - direct_vassal_opinion = -5 -} - -aloof_from_the_commoners_modifier = { - icon = social_positive - direct_vassal_opinion = 5 -} - -cosmic_insights_modifier = { - icon = magic_positive - learning = 3 -} - -court_of_poetry_modifier = { - icon = social_positive - monthly_learning_lifestyle_xp_gain_mult = 0.1 -} - -beauty_of_language_modifier = { - icon = social_positive - stress_gain_mult = -0.10 - general_opinion = 5 -} diff --git a/common/modifiers/00_marshal_task_modifiers.txt b/common/modifiers/00_marshal_task_modifiers.txt deleted file mode 100644 index 41598c4957..0000000000 --- a/common/modifiers/00_marshal_task_modifiers.txt +++ /dev/null @@ -1,45 +0,0 @@ -#Modifiers added by the Marshal's tasks - -######## -# Character Modifiers -######## - -marshal_task_levy_desertions_modifier = { - icon = martial_negative - levy_size = -0.05 -} - -task_manage_guards_disorganized_modifier = { - icon = martial_negative - hostile_scheme_resistance_add = -5 -} - - -####### -# County Modifiers -####### -marshal_task_unused_farmland_modifier = { - icon = economy_negative - tax_mult = -0.1 -} - -marshal_task_organized_service_modifier = { - icon = economy_positive - tax_mult = 0.05 -} - -marshal_task_military_presence_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 1 - garrison_size = 0.2 -} - -marshal_task_increase_control_decreased_opinion_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -50 -} - -marshal_task_increase_control_increased_opinion_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 50 -} \ No newline at end of file diff --git a/common/modifiers/00_martial_lifestyle_modifiers_2.txt b/common/modifiers/00_martial_lifestyle_modifiers_2.txt deleted file mode 100644 index 2cd5aeb6f7..0000000000 --- a/common/modifiers/00_martial_lifestyle_modifiers_2.txt +++ /dev/null @@ -1,58 +0,0 @@ -authority_central_control_modifier = { - icon = martial_positive - levy_size = 0.3 -} - -strategy_stocked_larders_modifier = { - icon = martial_positive - garrison_size = 0.50 -} - -strategy_emptied_larders_modifier = { - icon = martial_negative - garrison_size = -0.25 -} - -strategy_fed_peasants_larders_modifier = { - icon = martial_positive - county_opinion_add = 10 - development_growth_factor = 0.1 -} - -strategy_human_meat_larders_modifier = { - icon = martial_positive - additional_fort_level = 1 -} - -strategy_entirely_unrelated_disappearances_modifier = { - icon = martial_negative - garrison_size = -0.25 -} - -strategy_paid_for_walls_modifier = { - icon = martial_positive - additional_fort_level = 1 - county_opinion_add = 5 -} - -strategy_botched_supervised_walls_modifier = { - icon = martial_negative - additional_fort_level = -1 - county_opinion_add = -5 -} - -strategy_successfully_supervised_walls_modifier = { - icon = martial_positive - additional_fort_level = 1 - county_opinion_add = 10 -} - -strategy_let_walls_crumble_modifier = { - icon = martial_negative - additional_fort_level = -1 - county_opinion_add = -10 -} -martial_chivalry_stolen_livestock_modifier = { - icon = martial_negative - tax_mult = -0.05 -} diff --git a/common/modifiers/00_murder_scheme_modifiers.txt b/common/modifiers/00_murder_scheme_modifiers.txt deleted file mode 100644 index e6a1f90dd4..0000000000 --- a/common/modifiers/00_murder_scheme_modifiers.txt +++ /dev/null @@ -1,133 +0,0 @@ - -murder_trusted_advice_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 5 -} - -murder_trusted_by_target_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 5 -} - -scheme_drunkard_murder_target_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_secrecy = -10 - scheme_success_chance = 5 -} - -scheme_drunkard_murdering_drunkard_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 5 - scheme_secrecy = -10 -} - -slothful_reduces_power_modifier = { - icon = intrigue_negative - scheme_power = -5 -} - -hidden_nooks_and_crannies_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 8 -} - -hidden_nooks_and_crannies_architect_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 10 -} - -scheme_hero_agent_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 10 -} - -scheme_agent_closing_in_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -scheme_talking_agent_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -scheme_stressed_target_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -scheme_impaired_judgment_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 -} - -scheme_local_infiltrators_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 10 -} - -scheme_court_chaplain_is_in_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 5 -} - -scheme_pious_target_court_chaplain_is_in_modifier = { - icon = intrigue_positive - scheme_power = 5 - scheme_success_chance = 15 -} - -scheme_court_chaplain_is_working_against_modifier = { - icon = intrigue_negative - scheme_power = -5 - scheme_success_chance = -5 -} - -scheme_poisonous_herbs_modifier = { - icon = intrigue_positive - scheme_secrecy = 10 - scheme_power = 15 - scheme_success_chance = 15 -} - -################# -# Child Murder Modifiers -################# -# Ugh. - -# Ongoing event: Agent put in charge of looking after child target playing -murder_agent_looking_after_child_target_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 10 -} - -murder_agent_befriending_child_target_modifier = { - icon = intrigue_positive - scheme_secrecy = 5 - scheme_success_chance = 5 -} - -vengeful_lover_kin_modifier = { - icon = intrigue_positive - scheme_power = 15 - scheme_success_chance = 10 -} - -trimming_dynasty_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 5 -} - -extra_success_chance_modifier = { - icon = intrigue_positive - scheme_success_chance = 15 -} diff --git a/common/modifiers/00_nickname_modifiers.txt b/common/modifiers/00_nickname_modifiers.txt deleted file mode 100644 index da68ef658a..0000000000 --- a/common/modifiers/00_nickname_modifiers.txt +++ /dev/null @@ -1,5 +0,0 @@ -bad_nickname_lifestyle_modifier = { - icon = intrigue_negative - vassal_opinion = -5 - liege_opinion = -10 -} \ No newline at end of file diff --git a/common/modifiers/00_parent_modifiers.txt b/common/modifiers/00_parent_modifiers.txt deleted file mode 100644 index ad09823a55..0000000000 --- a/common/modifiers/00_parent_modifiers.txt +++ /dev/null @@ -1,51 +0,0 @@ -parent_aids_martial_modifier = { - icon = martial_positive - martial = 3 -} - -parent_aids_diplomacy_modifier = { - icon = diplomacy_positive - diplomacy = 3 -} - -parent_aids_stewardship_modifier = { - icon = stewardship_positive - stewardship = 3 -} - -parent_aids_intrigue_modifier = { - icon = intrigue_positive - intrigue = 3 -} - -parent_aids_learning_modifier = { - icon = learning_positive - learning = 3 -} - -mothered_many_children_modifier = { - icon = social_positive - general_opinion = 5 -} - -parent_managing_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = tiny_development_growth_gain -} - -parent_dealing_with_courtiers_modifier = { - icon = letter_positive - diplomacy = 1 - hostile_scheme_resistance_add = 5.0 -} - -parent_events_wrangling_courtiers_modifier = { - icon = prestige_positive - diplomacy = -1 - monthly_prestige = 0.5 -} - -parent_disinherited_child_modifier = { - icon = prestige_negative - general_opinion = -20 -} diff --git a/common/modifiers/00_party_baron_modifiers.txt b/common/modifiers/00_party_baron_modifiers.txt deleted file mode 100644 index c47710879b..0000000000 --- a/common/modifiers/00_party_baron_modifiers.txt +++ /dev/null @@ -1,87 +0,0 @@ -# Party Baron modifiers - -party_baron_beloved_by_all_modifier = { - icon = family_positive - general_opinion = 10 - hostile_scheme_resistance_mult = 0.5 - dread_gain_mult = -1 # Party Baron would never be Dreadful -} - -party_baron_beloved_by_all_except_modifier = { - icon = family_positive - general_opinion = 10 - hostile_scheme_resistance_mult = 0.2 - dread_gain_mult = -1 # Party Baron would never be Dreadful -} - -party_baron_making_efforts_modifier = { - icon = family_positive - courtier_and_guest_opinion = 10 - direct_vassal_opinion = 5 -} - -party_baron_self_aggrandizing_modifier = { - icon = family_negative - courtier_and_guest_opinion = -5 -} - -party_baron_friendly_enough_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 15 -} - -party_baron_if_you_cannot_be_loved_modifier = { - icon = dread_positive - dread_gain_mult = 0.3 -} - -party_baron_accommodating_modifier = { - icon = diplomacy_positive - personal_scheme_power_add = 15 - owned_personal_scheme_success_chance_add = 10 -} - -party_baron_condemned_pb_modifier = { - icon = diplomacy_negative - direct_vassal_opinion = -5 -} - -party_baron_praised_pb_modifier = { - icon = diplomacy_positive - direct_vassal_opinion = 10 - stress_gain_mult = 0.1 -} - -party_baron_murdered_the_joy_of_life_modifier = { - icon = intrigue_negative - general_opinion = -20 -} - -party_baron_great_mercenary_deal_modifier = { - icon = martial_positive - mercenary_hire_cost_mult = -0.2 -} - -party_baron_ended_the_party_modifier = { - icon = feast_negative - general_opinion = -10 -} - -party_baron_subversive_tactics_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 15 - owned_hostile_scheme_success_chance_add = 10 -} - -party_baron_reflection_modifier = { - icon = diplomacy_positive - diplomacy = 1 - learning = 1 - stress_gain_mult = -0.1 -} - -party_baron_endorsed_successor_modifier = { - icon = family_positive - diplomacy = 1 - direct_vassal_opinion = 10 -} \ No newline at end of file diff --git a/common/modifiers/00_perk_modifiers.txt b/common/modifiers/00_perk_modifiers.txt deleted file mode 100644 index 52bee48088..0000000000 --- a/common/modifiers/00_perk_modifiers.txt +++ /dev/null @@ -1,134 +0,0 @@ -##### -### Modifiers added by Perk effects -##### - -### Diplomacy - -embassies_perk_modifier = { - icon = diplomacy_positive - diplomacy = 1 - stacking = yes -} - -confidants_perk_modifier = { - icon = family_positive - stress_gain_mult = -0.05 - stacking = yes -} - -sound_foundations_martial_gain = { - icon = martial_positive - martial = 1 - stacking = yes -} - -sound_foundations_diplomacy_gain = { - icon = diplomacy_positive - diplomacy = 1 - stacking = yes -} - -sound_foundations_intrigue_gain = { - icon = intrigue_positive - intrigue = 1 - stacking = yes -} - -sound_foundations_stewardship_gain = { - icon = stewardship_positive - stewardship = 1 - stacking = yes -} - -sound_foundations_learning_gain = { - icon = learning_positive - learning = 1 - stacking = yes -} - -### Moved to epic artifacts -#commission_epic_emphasized_intrigue_modifier = { -# icon = intrigue_positive -# hostile_scheme_resistance_add = 5 -#} - -#commission_epic_military_innovation_modifier = { -# icon = prowess_positive -# advantage = 10 -#} - -#commission_epic_shared_with_vassals_modifier = { -# icon = family_positive -# vassal_opinion = 10 -#} - -#commission_epic_honesty_modifier = { -# icon = diplomacy_positive -# owned_personal_scheme_success_chance_add = 20 -#} - -#commission_epic_clerical_guidance_modifier = { -# icon = learning_positive -# monthly_piety_gain_mult = 0.2 -# domain_tax_same_faith_mult = 0.1 -#} - -sell_titles_related_to_wisdom_modifier = { - icon = learning_positive - monthly_piety_gain_mult = 0.1 - religious_vassal_opinion = 15 -} - -sell_titles_clever_servant_modifier = { - icon = intrigue_positive - hostile_scheme_power_add = 5 -} - -sell_titles_respected_by_peers_modifier = { - icon = family_positive - fellow_vassal_opinion = 20 -} - -sell_titles_shameful_behavior_modifier = { - icon = diplomacy_negative - direct_vassal_opinion = -10 - monthly_prestige_gain_mult = -0.1 -} - -friendly_counsel_martial_gain = { - icon = martial_positive - martial = 2 - stacking = yes -} - -friendly_counsel_diplomacy_gain = { - icon = diplomacy_positive - diplomacy = 2 - stacking = yes -} - -friendly_counsel_intrigue_gain = { - icon = intrigue_positive - intrigue = 2 - stacking = yes -} - -friendly_counsel_stewardship_gain = { - icon = stewardship_positive - stewardship = 2 - stacking = yes -} - -friendly_counsel_learning_gain = { - icon = learning_positive - learning = 2 - stacking = yes -} - -decentralized_rule_perk_modifier = { - icon = county_modifier_corruption_positive - direct_vassal_opinion = 3 - county_opinion_add = 2 - vassal_tax_contribution_mult = 0.01 - stacking = yes -} \ No newline at end of file diff --git a/common/modifiers/00_personal_scheme_modifiers.txt b/common/modifiers/00_personal_scheme_modifiers.txt deleted file mode 100644 index da421264b9..0000000000 --- a/common/modifiers/00_personal_scheme_modifiers.txt +++ /dev/null @@ -1,12 +0,0 @@ - -6540_exotic_wares_gift_modifier = { - icon = grandeur_positive - scheme_power = 20 - scheme_success_chance = 30 -} - -6540_exotic_wares_gift_super_modifier = { - icon = grandeur_positive - scheme_power = 40 - scheme_success_chance = 50 -} \ No newline at end of file diff --git a/common/modifiers/00_prison_modifiers.txt b/common/modifiers/00_prison_modifiers.txt deleted file mode 100644 index aca60fcc18..0000000000 --- a/common/modifiers/00_prison_modifiers.txt +++ /dev/null @@ -1,55 +0,0 @@ -house_arrest = { - diplomacy = -5 - dread_baseline_add = -20 - dread_loss_mult = 1 - monthly_lifestyle_xp_gain_mult = -0.75 - icon = prison_negative -} - -dungeon = { - diplomacy = -5 - health = -2 - stress_gain_mult = 0.5 - dread_baseline_add = -30 - dread_loss_mult = 1 - monthly_lifestyle_xp_gain_mult = -1.5 - icon = prison_negative -} - - -# Modifiers applied in Dungeon events -prison_pet_rat_modifier = { - health = 0.25 - icon = rat_positive -} - -prison_pet_stone_modifier = { - health = 0.25 - icon = rock_positive -} - -prison_pet_spoon_modifier = { - health = 0.25 - icon = spoon_positive -} - -prison_pet_cockroach_modifier = { - health = 0.25 - icon = cockroach_positive -} - -stress_starvation = { - health = -0.5 - icon = food_negative -} - -stress_starvation_minor = { - health = -0.2 - icon = food_negative -} - -# Modifiers applied in House arrest events -failing_health = { - health = -0.5 - icon = health_negative -} diff --git a/common/modifiers/00_province_modifiers.txt b/common/modifiers/00_province_modifiers.txt index 83bc3855f3..0f4660f641 100644 --- a/common/modifiers/00_province_modifiers.txt +++ b/common/modifiers/00_province_modifiers.txt @@ -28,6 +28,11 @@ county_capital_province_modifier = { fort_level = 1 } +temporary_fort_province_modifier = { + icon = county_modifier_development_positive + fort_level = 1 +} + disabled_fort_province_modifier = { fort_level = 1 } diff --git a/common/modifiers/00_relationship_modifiers.txt b/common/modifiers/00_relationship_modifiers.txt deleted file mode 100644 index a6ffa8ea34..0000000000 --- a/common/modifiers/00_relationship_modifiers.txt +++ /dev/null @@ -1,54 +0,0 @@ -##### -### Modifiers added by Perk effects -##### - -#Friendship -garden_stag_modifier = { - icon = fertility_positive - monthly_prestige_gain_mult = 0.05 - stress_gain_mult = -0.1 -} - -impromptu_venison_feast_modifier = { - icon = food_positive - courtier_and_guest_opinion = 15 -} - - -#Lovers -aloof_but_alluring_modifier = { - icon = health_negative - attraction_opinion = 20 - monthly_intrigue_lifestyle_xp_gain_mult = -0.2 - monthly_diplomacy_lifestyle_xp_gain_mult = -0.2 -} - - -#Rivalry -driven_by_vengeance_modifier = { - icon = blood_positive - prowess = 1 - owned_hostile_scheme_success_chance_add = 5 -} - -focused_on_revenge_modifier = { - icon = blood_positive - prowess = 2 - owned_hostile_scheme_success_chance_add = 10 - stress_gain_mult = 0.2 - diplomacy = -1 -} - -cruel_upbringing_modifier = { - icon = blood_positive - opinion_of_parents = -100 - owned_hostile_scheme_success_chance_add = 5 - monthly_intrigue_lifestyle_xp_gain_mult = 0.05 -} - - -#Other -inured_to_boredom_modifier = { - icon = diplomacy_positive - diplomacy = major_skill_bonus -} \ No newline at end of file diff --git a/common/modifiers/00_romance_character_modifiers.txt b/common/modifiers/00_romance_character_modifiers.txt deleted file mode 100644 index 10676777cb..0000000000 --- a/common/modifiers/00_romance_character_modifiers.txt +++ /dev/null @@ -1,20 +0,0 @@ - -romance_great_painting_gift_modifier = { - icon = love_positive - monthly_prestige = 0.1 -} - -romance_talented_troubadour_modifier = { - icon = love_positive - monthly_prestige = 0.25 -} - -romance_less_talented_troubadour_modifier = { - icon = love_positive - monthly_prestige = 0.1 -} - -hopeless_romantic_modifier = { - icon = fertility_positive - courting_scheme_power_add = 10 -} diff --git a/common/modifiers/00_scheme_modifiers.txt b/common/modifiers/00_scheme_modifiers.txt deleted file mode 100644 index 910974da82..0000000000 --- a/common/modifiers/00_scheme_modifiers.txt +++ /dev/null @@ -1,110 +0,0 @@ - -outside_help_modifier = { - icon = learning_positive - scheme_success_chance = 10 - scheme_power = 5 -} - -extra_careful_modifier = { - icon = learning_positive - scheme_success_chance = 5 - scheme_power = -2 -} - -carefully_chosen_words_modifier = { - icon = learning_positive - scheme_success_chance = 5 - scheme_power = 2 -} - -erotic_novel_connoisseur_modifier = { - icon = learning_positive - scheme_success_chance = 5 - scheme_power = 5 -} - -attended_by_tutor_modifier = { - icon = learning_positive - scheme_success_chance = 10 - scheme_power = 10 -} - -encouraged_by_friend_modifier = { - icon = learning_positive - scheme_power = 2 -} - -lauded_loud_reader_modifier = { - icon = learning_positive - courtier_and_guest_opinion = 10 -} - -poetry_collector_modifier = { - icon = learning_positive - scheme_success_chance = 10 -} - -easily_read_fables_modifier = { - icon = learning_positive - scheme_success_chance = 8 - scheme_power = 6 -} - -seemingly_feeble_minded_modifier = { - icon = learning_negative - courtier_and_guest_opinion = -10 - independent_ruler_opinion = -10 - fellow_vassal_opinion = -10 -} - -motivated_by_love_modifier = { - icon = love_positive - scheme_power = 7 - scheme_success_chance = 7 -} - -court_tutor_child_language_rank_1_modifier = { - icon = love_positive - scheme_power = 5 - scheme_success_chance = 5 -} - -court_tutor_child_language_rank_2_modifier = { - icon = love_positive - scheme_power = 10 - scheme_success_chance = 10 -} - -court_tutor_child_language_rank_3_modifier = { - icon = love_positive - scheme_power = 15 - scheme_success_chance = 15 -} - -court_tutor_child_language_rank_4_modifier = { - icon = love_positive - scheme_power = 20 - scheme_success_chance = 20 -} - -court_tutor_child_language_rank_5_modifier = { - icon = love_positive - scheme_power = 25 - scheme_success_chance = 25 -} - -helpful_assistance_modifier = { - icon = social_positive - scheme_success_chance = 10 -} - -interlocutor_entourage_member = { - icon = social_positive - scheme_success_chance = 15 -} - -crush_bonus = { - icon = love_positive - scheme_power = 15 - scheme_success_chance = 15 -} diff --git a/common/modifiers/00_seduce_character_modifiers.txt b/common/modifiers/00_seduce_character_modifiers.txt deleted file mode 100644 index 997f506dad..0000000000 --- a/common/modifiers/00_seduce_character_modifiers.txt +++ /dev/null @@ -1,107 +0,0 @@ -### Generic failure to interpret target character's personality -seduce_tapestry_gift_modifier = { - icon = prestige_positive - monthly_prestige = 0.25 -} - -seduce_horse_gift_modifier = { - icon = horse_positive - prowess = 1 - health = 0.5 -} - -seduce_tailor_gift_modifier = { - icon = stewardship_positive - same_culture_opinion = 5 -} - -seduce_rare_book_gift_modifier = { - icon = learning_positive - learning = 1 - clergy_opinion = 5 -} - -seduce_embroidery_gift_modifier = { - icon = letter_positive - dynasty_opinion = 5 -} - -seduce_poem_gift_modifier = { - icon = letter_positive - courtier_opinion = 5 -} - -seduce_woodcarving_gift_modifier = { - icon = stewardship_positive - stewardship = 1 - build_speed = -0.1 -} - -seduce_object_gift_modifier = { - icon = drink_positive - stress_gain_mult = -0.1 -} - -seduce_jewelry_gift_modifier = { - icon = economy_positive - attraction_opinion = 5 -} - -seduce_stuffed_animal_gift_modifier = { - icon = dog_positive - monthly_dread = 0.25 -} - -seduce_flower_display_gift_modifier = { - icon = fertility_positive - diplomacy = 1 - health = 0.5 -} - -seduce_handkerchief_gift_modifier = { - icon = diplomacy_positive - personal_scheme_power_add = 5 -} - -seduce_warfare_military_ideas_modifier = { - icon = martial_positive - martial = 1 - advantage = 1 -} - -seduce_diplomatic_practice_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} - -seduce_rested_modifier = { - icon = stress_positive - stress_loss_mult = 0.25 -} - -seduce_obvisouly_courted_modifier = { - icon = love_positive - monthly_piety = 0.5 -} - -seduce_figting_modifier = { - icon = prowess_positive - advantage = 1 - prowess = 2 -} - -seduce_intrigue_knowing_knowledge_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 2 - intrigue = 1 -} - -seduce_bold_start_modifier = { - icon = love_positive - attraction_opinion = 5 -} - -seduce_gentle_start_modifier = { - icon = diplomacy_positive - health = 0.5 -} diff --git a/common/modifiers/00_seduce_scheme_modifiers.txt b/common/modifiers/00_seduce_scheme_modifiers.txt deleted file mode 100644 index 4de9cb0740..0000000000 --- a/common/modifiers/00_seduce_scheme_modifiers.txt +++ /dev/null @@ -1,45 +0,0 @@ -#Milestone 1 modifiers -seduce_success_1_modifier = { - icon = love_positive - scheme_success_chance = 15 -} - -seduce_failure_1_modifier = { - icon = love_negative - scheme_success_chance = -10 -} - - -#Milestone 2 modifiers -seduce_success_2_modifier = { - icon = love_positive - scheme_success_chance = 20 -} - -seduce_failure_2_modifier = { - icon = love_negative - scheme_success_chance = -15 -} - -#Misc -seduce_and_courting_personal_chemistry_modifier = { - icon = love_positive - scheme_success_chance = 20 -} - -seduce_and_courting_fragrant_flowers_modifier = { - icon = fertility_positive - scheme_success_chance = 20 -} - -#BP1 Rival modifiers - -seduce_rival_offspring_modifier = { - icon = love_positive - scheme_success_chance = 30 -} - -seduce_rival_modifier = { - icon = love_positive - scheme_success_chance = 150 -} diff --git a/common/modifiers/00_sibling_modifiers.txt b/common/modifiers/00_sibling_modifiers.txt deleted file mode 100644 index 4afaecefbb..0000000000 --- a/common/modifiers/00_sibling_modifiers.txt +++ /dev/null @@ -1,36 +0,0 @@ -sibling_aids_in_diplomacy = { - icon = diplomacy_positive - diplomacy = 2 -} - -sibling_aids_in_martial = { - icon = martial_positive - martial = 2 -} - -sibling_aids_in_intrigue = { - icon = intrigue_positive - intrigue = 2 -} - -sibling_aids_in_stewardship = { - icon = stewardship_positive - stewardship = 2 -} - -sibling_aids_in_learning = { - icon = learning_positive - learning = 2 -} - - -### County Modifiers -popular_sibling_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 -} - -hated_sibling_county_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -30 -} \ No newline at end of file diff --git a/common/modifiers/00_single_combat_modifiers.txt b/common/modifiers/00_single_combat_modifiers.txt deleted file mode 100644 index 6307f8bc36..0000000000 --- a/common/modifiers/00_single_combat_modifiers.txt +++ /dev/null @@ -1,346 +0,0 @@ -################################################## -# #Short-Term Special Modifiers - -combat_move_taunt_modifier = { - icon = stress_negative - ai_boldness = high_positive_ai_value - # Just for show. - stress_gain_mult = 0.05 -} - -combat_move_hurt_me_better_wounded_1_modifier = { - icon = dread_positive - # Cancel out the prowess loss from wounded_1. - prowess = 2 -} - -combat_move_hurt_me_better_wounded_2_modifier = { - icon = dread_positive - # Cancel out the prowess loss from wounded_2. - prowess = 4 -} - -combat_move_hurt_me_better_wounded_3_modifier = { - icon = dread_positive - # Cancel out the prowess loss from wounded_3. - prowess = 8 -} - -################################################## -# #Long-Term Special Modifiers - -combat_move_feint_and_stab_modifier = { - icon = intrigue_positive - intrigue = massive_skill_bonus -} - -combat_move_stoic_veteran_modifier = { - icon = health_positive - health = medium_health_bonus -} - -################################################## -# #Combat Buffs - -duel_edge_buff_01_modifier = { - icon = prowess_positive - prowess = 1 -} - -duel_edge_buff_02_modifier = { - icon = prowess_positive - prowess = 2 -} - -duel_edge_buff_03_modifier = { - icon = prowess_positive - prowess = 3 -} - -duel_edge_buff_04_modifier = { - icon = prowess_positive - prowess = 4 -} - -duel_edge_buff_05_modifier = { - icon = prowess_positive - prowess = 5 -} - -duel_edge_buff_06_modifier = { - icon = prowess_positive - prowess = 6 -} - -duel_edge_buff_07_modifier = { - icon = prowess_positive - prowess = 7 -} - -duel_edge_buff_08_modifier = { - icon = prowess_positive - prowess = 8 -} - -duel_edge_buff_09_modifier = { - icon = prowess_positive - prowess = 9 -} - -duel_edge_buff_10_modifier = { - icon = prowess_positive - prowess = 10 -} - -duel_edge_buff_11_modifier = { - icon = prowess_positive - prowess = 11 -} - -duel_edge_buff_12_modifier = { - icon = prowess_positive - prowess = 12 -} - -duel_edge_buff_13_modifier = { - icon = prowess_positive - prowess = 13 -} - -duel_edge_buff_14_modifier = { - icon = prowess_positive - prowess = 14 -} - -duel_edge_buff_15_modifier = { - icon = prowess_positive - prowess = 15 -} - -duel_edge_buff_16_modifier = { - icon = prowess_positive - prowess = 16 -} - -duel_edge_buff_17_modifier = { - icon = prowess_positive - prowess = 17 -} - -duel_edge_buff_18_modifier = { - icon = prowess_positive - prowess = 18 -} - -duel_edge_buff_19_modifier = { - icon = prowess_positive - prowess = 19 -} - -duel_edge_buff_20_modifier = { - icon = prowess_positive - prowess = 20 -} - -duel_edge_buff_21_modifier = { - icon = prowess_positive - prowess = 21 -} - -duel_edge_buff_22_modifier = { - icon = prowess_positive - prowess = 22 -} - -duel_edge_buff_23_modifier = { - icon = prowess_positive - prowess = 23 -} - -duel_edge_buff_24_modifier = { - icon = prowess_positive - prowess = 24 -} - -duel_edge_buff_25_modifier = { - icon = prowess_positive - prowess = 25 -} - -duel_edge_buff_26_modifier = { - icon = prowess_positive - prowess = 26 -} - -duel_edge_buff_27_modifier = { - icon = prowess_positive - prowess = 27 -} - -duel_edge_buff_28_modifier = { - icon = prowess_positive - prowess = 28 -} - -duel_edge_buff_29_modifier = { - icon = prowess_positive - prowess = 29 -} - -duel_edge_buff_30_modifier = { - icon = prowess_positive - prowess = 30 -} - -################################################## -# #Combat Debuffs - -duel_edge_debuff_01_modifier = { - icon = prowess_negative - prowess = -1 -} - -duel_edge_debuff_02_modifier = { - icon = prowess_negative - prowess = -2 -} - -duel_edge_debuff_03_modifier = { - icon = prowess_negative - prowess = -3 -} - -duel_edge_debuff_04_modifier = { - icon = prowess_negative - prowess = -4 -} - -duel_edge_debuff_05_modifier = { - icon = prowess_negative - prowess = -5 -} - -duel_edge_debuff_06_modifier = { - icon = prowess_negative - prowess = -6 -} - -duel_edge_debuff_07_modifier = { - icon = prowess_negative - prowess = -7 -} - -duel_edge_debuff_08_modifier = { - icon = prowess_negative - prowess = -8 -} - -duel_edge_debuff_09_modifier = { - icon = prowess_negative - prowess = -9 -} - -duel_edge_debuff_10_modifier = { - icon = prowess_negative - prowess = -10 -} - -duel_edge_debuff_11_modifier = { - icon = prowess_negative - prowess = -11 -} - -duel_edge_debuff_12_modifier = { - icon = prowess_negative - prowess = -12 -} - -duel_edge_debuff_13_modifier = { - icon = prowess_negative - prowess = -13 -} - -duel_edge_debuff_14_modifier = { - icon = prowess_negative - prowess = -14 -} - -duel_edge_debuff_15_modifier = { - icon = prowess_negative - prowess = -15 -} - -duel_edge_debuff_16_modifier = { - icon = prowess_negative - prowess = -16 -} - -duel_edge_debuff_17_modifier = { - icon = prowess_negative - prowess = -17 -} - -duel_edge_debuff_18_modifier = { - icon = prowess_negative - prowess = -18 -} - -duel_edge_debuff_19_modifier = { - icon = prowess_negative - prowess = -19 -} - -duel_edge_debuff_20_modifier = { - icon = prowess_negative - prowess = -20 -} - -duel_edge_debuff_21_modifier = { - icon = prowess_negative - prowess = -21 -} - -duel_edge_debuff_22_modifier = { - icon = prowess_negative - prowess = -22 -} - -duel_edge_debuff_23_modifier = { - icon = prowess_negative - prowess = -23 -} - -duel_edge_debuff_24_modifier = { - icon = prowess_negative - prowess = -24 -} - -duel_edge_debuff_25_modifier = { - icon = prowess_negative - prowess = -25 -} - -duel_edge_debuff_26_modifier = { - icon = prowess_negative - prowess = -26 -} - -duel_edge_debuff_27_modifier = { - icon = prowess_negative - prowess = -27 -} - -duel_edge_debuff_28_modifier = { - icon = prowess_negative - prowess = -28 -} - -duel_edge_debuff_29_modifier = { - icon = prowess_negative - prowess = -29 -} - -duel_edge_debuff_30_modifier = { - icon = prowess_negative - prowess = -30 -} \ No newline at end of file diff --git a/common/modifiers/00_spymaster_task_modifiers.txt b/common/modifiers/00_spymaster_task_modifiers.txt deleted file mode 100644 index 881f7a4160..0000000000 --- a/common/modifiers/00_spymaster_task_modifiers.txt +++ /dev/null @@ -1,16 +0,0 @@ -#Modifiers added by the Spymaster's tasks - -######## -# Character Modifiers -######## - -spymaster_task_sacrificed_efficiency_modifier = { - icon = intrigue_negative - intrigue = -2 -} - - -####### -# County Modifiers -####### - diff --git a/common/modifiers/00_steward_task_modifiers.txt b/common/modifiers/00_steward_task_modifiers.txt deleted file mode 100644 index 0ae18f479f..0000000000 --- a/common/modifiers/00_steward_task_modifiers.txt +++ /dev/null @@ -1,78 +0,0 @@ -#Modifiers added by the Steward's tasks - -######## -# Character Modifiers -######## - - - -####### -# County Modifiers -####### - -steward_construction_slowdown_modifier = { - icon = county_modifier_development_negative - build_speed = 0.2 - build_gold_cost = 0.2 - build_prestige_cost = 0.2 - build_piety_cost = 0.2 -} - -steward_task_efficient_taxation_modifier = { - icon = stewardship_positive - tax_mult = 0.1 -} - -steward_settler_resistance_modifier = { - icon = stewardship_negative - tax_mult = -0.1 - levy_size = -0.25 -} - -steward_welcome_administration_modifier = { - icon = stewardship_positive - tax_mult = 0.1 -} - -steward_realm_identity_modifier = { - icon = martial_positive - levy_size = 0.25 -} - -steward_population_mismanaged_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -40 -} - -steward_administration_embraced_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 40 -} - -steward_de_jure_denied_modifier = { - icon = stewardship_negative - levy_size = -0.4 - county_opinion_add = -40 - tax_mult = -0.4 -} - -# Accept Culture Task -steward_accept_culture_reduced_taxes_modifier = { - icon = stewardship_negative - tax_mult = -0.25 -} - -steward_accept_culture_reduced_development_spread_modifier = { - icon = stewardship_negative - development_growth_factor = -0.2 -} - -steward_accept_culture_increased_opinion_modifier = { - icon = stewardship_positive - county_opinion_add = 40 -} - -steward_accept_culture_increased_development_spread_modifier = { - icon = stewardship_positive - development_growth_factor = 0.2 -} diff --git a/common/modifiers/00_story_cycle_murders_at_court_modifiers.txt b/common/modifiers/00_story_cycle_murders_at_court_modifiers.txt deleted file mode 100644 index 6e68cdf991..0000000000 --- a/common/modifiers/00_story_cycle_murders_at_court_modifiers.txt +++ /dev/null @@ -1,11 +0,0 @@ -#Modifiers granted from the story_cycle_murders_at_court story cycle - -restricted_movement_vassal_opinion = { - icon = social_negative - direct_vassal_opinion = -10 -} - -studies_murders_modifier = { - icon = intrigue_positive - intrigue = 1 -} \ No newline at end of file diff --git a/common/modifiers/00_story_cycle_mystical_animal_modifiers.txt b/common/modifiers/00_story_cycle_mystical_animal_modifiers.txt deleted file mode 100644 index 60ebd21168..0000000000 --- a/common/modifiers/00_story_cycle_mystical_animal_modifiers.txt +++ /dev/null @@ -1,11 +0,0 @@ -#Modifiers granted from the mystical animal story cycle events - -mystical_animal_distracted_knight_modifier = { - icon = beast_negative - prowess = -2 - diplomacy = -2 - martial = -2 - stewardship = -2 - intrigue = -2 - learning = -2 -} diff --git a/common/modifiers/00_story_cycle_pet_animal_modifiers.txt b/common/modifiers/00_story_cycle_pet_animal_modifiers.txt deleted file mode 100644 index a1093cc22d..0000000000 --- a/common/modifiers/00_story_cycle_pet_animal_modifiers.txt +++ /dev/null @@ -1,80 +0,0 @@ -#Modifiers granted from pet animals - - -cat_story_modifier = { - icon = cat_positive - learning = 1 - intrigue = 1 -} - -dog_story_modifier = { - icon = dog_positive - prowess = 1 - diplomacy = 1 -} - -dog_story_walking_modifier = { - icon = dog_positive - health = 0.5 -} - -dog_story_fur_carpet_modifier = { - icon = dog_positive - monthly_prestige = 0.5 -} - -cat_story_allergy_modifier = { - icon = cat_negative - health = -0.5 -} - -cat_killing_rodents_modifier = { - icon = cat_positive - health = 1 -} - -cat_story_fur_mittens_modifier = { - icon = cat_positive - health = 1 -} - -rat_hunting_cat_modifier = { - icon = cat_positive - health = 0.5 -} - -rat_hunting_dog_modifier = { - icon = dog_positive - health = 0.5 -} - -cat_dopey_modifier = { - icon = cat_positive - stress_gain_mult = -0.05 -} - -cat_wrangler_modifier = { - icon = cat_positive - prowess_no_portrait = 1 -} - -cat_coitus_interrupted_modifier = { - icon = cat_negative - fertility = -0.1 -} - -cat_rejection_modifier = { - icon = cat_negative - stress_loss_mult = -0.05 -} - -cat_ill_modifier = { - icon = cat_positive - health = 0.05 -} - -cat_lover_modifier = { - icon = cat_positive - stress_loss_mult = 0.10 - councillor_opinion = -5 -} diff --git a/common/modifiers/00_stress_effect_modifiers.txt b/common/modifiers/00_stress_effect_modifiers.txt deleted file mode 100644 index a1839a720a..0000000000 --- a/common/modifiers/00_stress_effect_modifiers.txt +++ /dev/null @@ -1,366 +0,0 @@ -# Modifiers applied from Stress Effect Events - -stress_frozen_grief = { - icon = stress_negative - - health = -0.5 - stress_gain_mult = -0.2 - diplomacy = -2 - personal_scheme_power_mult = -0.2 -} - -stress_stuffed_corpse = { - icon = stress_negative - - general_opinion = -10 - monthly_prestige_gain_mult = -0.25 - monthly_piety_gain_mult = -0.25 -} - -stress_managed_grief = { - icon = stress_negative - - diplomacy = -1 - martial = -1 - stewardship = -1 - intrigue = -1 - learning = -1 -} - -# Coping Mechanism Penalties -stress_disturbing_confession = { - icon = social_negative - general_opinion = -5 -} - -stress_drinking_binge = { - icon = feast_negative - learning = minor_skill_penalty - stewardship = minor_skill_penalty - health = -0.5 -} - -stress_hashish_stupor = { - icon = stress_negative - learning = medium_skill_penalty - stewardship = minor_skill_penalty -} - -stress_inappetetic_hunger_1 = { - icon = food_negative - health = -0.5 - prowess = minor_skill_penalty -} - -stress_inappetetic_hunger_2 = { - icon = food_negative - health = -1 - prowess = medium_skill_penalty - diplomacy = minor_skill_penalty - martial = minor_skill_penalty - stewardship = minor_skill_penalty - intrigue = minor_skill_penalty - learning = minor_skill_penalty -} - -stress_inappetetic_hunger_3 = { - icon = food_negative - health = -2 - prowess = massive_skill_penalty - diplomacy = medium_skill_penalty - martial = medium_skill_penalty - stewardship = medium_skill_penalty - intrigue = medium_skill_penalty - learning = medium_skill_penalty -} - -stress_smelling_of_sweat = { - icon = social_negative - general_opinion = -5 -} - -stress_busy_writing = { - icon = social_negative - diplomacy = medium_skill_penalty -} - -#Ongoing Stress Event Modifiers -overworking_diplomacy_modifier = { - icon = diplomacy_negative - diplomacy = major_skill_bonus - stress_gain_mult = 0.1 -} -overworking_martial_modifier = { - icon = martial_negative - martial = major_skill_bonus - stress_gain_mult = 0.1 -} -overworking_stewardship_modifier = { - icon = stewardship_negative - stewardship = major_skill_bonus - stress_gain_mult = 0.1 -} -overworking_intrigue_modifier = { - icon = intrigue_negative - intrigue = major_skill_bonus - stress_gain_mult = 0.1 -} -overworking_learning_modifier = { - icon = learning_negative - learning = major_skill_bonus - stress_gain_mult = 0.1 -} - -hashish_alone_modifier = { - icon = stress_positive - health = 1.5 -} -hashish_with_friend_modifier = { - icon = stress_positive - health = 0.5 -} - -angry_at_everyone_modifier = { - icon = stress_negative - direct_vassal_opinion = -10 -} - -irritating_everyone_modifier = { - icon = stress_negative - direct_vassal_opinion = -10 -} - -irritating_everyone_courtier_modifier = { - icon = stress_negative - courtier_opinion = -10 -} - -encouraged_city_burn_modifier = { - icon = outdoors_negative - general_opinion = -10 - diplomacy = -4 - stress_gain_mult = -0.2 -} - -lashing_out_at_victims_modifier = { - icon = dread_negative - general_opinion = -10 - monthly_prestige = -1 -} - -lost_in_lust_modifier = { - icon = bed_negative - intrigue = medium_skill_penalty - health = minor_health_penalty -} - -agonising_irritations_modifier = { - icon = stress_negative - diplomacy = medium_skill_penalty - intrigue = medium_skill_penalty -} - -scars_over_scars_modifier = { - icon = stress_negative - diplomacy = medium_skill_penalty - health = minor_health_penalty -} - -trying_to_buy_happiness_modifier = { - icon = stress_negative - stewardship = major_skill_penalty -} - -outer_monologue_modifier = { - icon = stress_negative - intrigue = major_skill_penalty -} - -sated_by_mistakes_modifier = { - icon = stress_negative - diplomacy = minor_skill_penalty - health = medium_health_penalty -} - -refuge_in_words_modifier = { - icon = stress_negative - diplomacy = minor_skill_penalty - martial = minor_skill_penalty - stewardship = minor_skill_penalty - intrigue = minor_skill_penalty -} - -sorely_needed_confidant_modifier = { - icon = stress_negative - intrigue = medium_skill_penalty - courtier_opinion = -5 -} - -long_walks_of_the_mind_modifier = { - icon = stress_negative - intrigue = medium_skill_penalty - stewardship = medium_skill_penalty -} - -bottom_of_a_bottle_modifier = { - icon = stress_negative - diplomacy = minor_skill_penalty - stewardship = minor_skill_penalty - learning = minor_skill_penalty - health = miniscule_health_penalty -} - -fogging_hard_memories_modifier = { - icon = stress_negative - diplomacy = minor_skill_penalty - stewardship = minor_skill_penalty - learning = minor_skill_penalty - health = miniscule_health_penalty -} - -high_blood_pressure_modifier = { - icon = health_negative - health = medium_health_penalty -} - -regular_walking_routes_modifier = { - icon = dog_negative - intrigue = minor_skill_penalty - hostile_scheme_resistance_add = -3 -} - -symbol_of_folly_modifier = { - icon = county_modifier_negative - courtier_opinion = -10 - monthly_prestige = -0.25 -} - -deserted_halls_modifier = { - icon = cockroach_negative - intrigue = major_skill_penalty - diplomacy = major_skill_penalty - hostile_scheme_resistance_add = -5 -} - -glut_of_furniture_modifier = { - icon = stewardship_negative - stewardship = major_skill_penalty - monthly_prestige = -0.5 -} - -strange_recluse_modifier = { - icon = family_negative - courtier_opinion = -5 - direct_vassal_opinion = -5 -} - -grouchy_ruler_modifier = { - icon = county_modifier_opinion_negative - courtier_opinion = -10 - monthly_prestige = -0.25 -} - -suspicious_sketcher_modifier = { - icon = learning_negative - diplomacy = major_skill_penalty - monthly_prestige = -0.25 -} - -carrion_writer_modifier = { - icon = learning_negative - general_opinion = -10 - monthly_prestige = -0.5 -} - -pickled_human_head_footstool = { - icon = prestige_negative - courtier_opinion = -10 - diplomacy = medium_skill_penalty - stewardship = medium_skill_penalty - intrigue = medium_skill_penalty - dread_decay_mult = -0.25 -} - -ostentatious_follies_modifier = { - icon = county_modifier_development_negative - monthly_income_mult = -0.1 - monthly_prestige = -0.5 -} - -extreme_tax_rebates_modifier = { - icon = stewardship_negative - monthly_income_mult = -0.2 -} - -obsessed_autobiographer_modifier = { - icon = learning_negative - diplomacy = massive_skill_penalty - martial = massive_skill_penalty - stewardship = massive_skill_penalty - intrigue = massive_skill_penalty - learning = massive_skill_penalty -} - -scopophobic_modifier = { - icon = family_negative - direct_vassal_opinion = -20 - courtier_opinion = -20 -} - -running_from_responsibilities_modifier = { - icon = diplomacy_negative - diplomacy = -6 - stewardship = -6 - learning = massive_skill_penalty -} - -tragic_drunk_modifier = { - icon = drink_negative - health = massive_health_penalty - fertility = -0.3 - courtier_opinion = -20 -} - -tragic_stoner_modifier = { - icon = food_negative - health = massive_health_penalty - fertility = -0.3 - courtier_opinion = -20 -} - -good_exercise_modifier = { - icon = prowess_positive - prowess = 1 - health = minor_health_bonus - general_opinion = -5 -} - -#Title Modifiers -controlled_urban_fires_modifier = { - icon = outdoors_negative - development_growth_factor = -0.05 - tax_mult = -0.2 - levy_size = -0.2 -} -managed_urban_fires_modifier = { - icon = outdoors_negative - development_growth_factor = -0.1 - tax_mult = -0.3 - levy_size = -0.3 -} -uncontrolled_urban_fires_modifier = { - icon = outdoors_negative - development_growth_factor = -0.3 - tax_mult = -0.5 - levy_size = -0.4 -} -an_influx_of_eager_beggars_modifier = { - icon = dog_negative - tax_mult = -0.1 - county_opinion_add = -30 -} -deplenished_forests_and_fields_modifier = { - icon = food_negative - development_growth_factor = -0.1 - tax_mult = -0.1 -} diff --git a/common/modifiers/00_sway_scheme_modifiers.txt b/common/modifiers/00_sway_scheme_modifiers.txt deleted file mode 100644 index 03127927b2..0000000000 --- a/common/modifiers/00_sway_scheme_modifiers.txt +++ /dev/null @@ -1,35 +0,0 @@ - -discussion_about_diplomacy_modifier = { - icon = intrigue_positive - diplomacy = 1 -} - -discussion_about_martial_modifier = { - icon = intrigue_positive - martial = 1 -} - -discussion_about_stewardship_modifier = { - icon = intrigue_positive - stewardship = 1 -} - -discussion_about_intrigue_modifier = { - icon = intrigue_positive - intrigue = 1 -} - -discussion_about_learning_modifier = { - icon = intrigue_positive - learning = 1 -} - -drafty_dining_hall_modifier = { - icon = intrigue_negative - health = -0.5 -} - -messy_library_modifier = { - icon = intrigue_negative - learning = -1 -} \ No newline at end of file diff --git a/common/modifiers/00_trait_modifiers.txt b/common/modifiers/00_trait_modifiers.txt deleted file mode 100644 index 89f322f618..0000000000 --- a/common/modifiers/00_trait_modifiers.txt +++ /dev/null @@ -1,10 +0,0 @@ -diligent_development_focus = { - icon = stewardship_positive - character_capital_county_monthly_development_growth_add = 0.2 -} - -deceitful_progress_hostile_schemes_modifier = { - icon = intrigue_positive - scheme_power = 10 - scheme_success_chance = 10 -} diff --git a/common/modifiers/00_travel_modifiers.txt b/common/modifiers/00_travel_modifiers.txt deleted file mode 100644 index 94b650d1d4..0000000000 --- a/common/modifiers/00_travel_modifiers.txt +++ /dev/null @@ -1,386 +0,0 @@ - -#Character modifiers -travel_soothing_quack_modifier = { - icon = bird_positive - stress_gain_mult = -0.1 -} - -travel_bundle_of_quacks_modifier = { - icon = bird_positive - stress_gain_mult = -0.25 -} - -travel_well_fed_modifier = { - icon = food_positive - health = 1 -} - -travel_choke_on_a_bone_modifier = { - icon = food_negative - health = -1 -} - -travel_ran_like_the_wind_modifier = { - icon = prowess_positive - prowess = 1 -} - -travel_soothed_modifier = { - icon = health_positive - health = 1 -} - -travel_soothed_child_modifier = { - icon = health_positive - general_opinion = 10 - stress_gain_mult = -0.1 - dread_gain_mult = -0.1 -} - -travel_local_hero_modifier = { - icon = outdoors_positive - general_opinion = 15 - tyranny_gain_mult = -0.2 -} - -travel_taking_in_the_views_modifier = { - icon = outdoors_positive - defender_advantage = 15 - stress_gain_mult = -0.2 -} - -travel_sore_muscles_modifier = { - icon = outdoors_negative - prowess = -2 -} - -travel_bull_fighter_modifier = { - icon = bear_positive - prowess = 2 - general_opinion = 10 -} - -travel_health_boost_modifier = { - icon = health_positive - health = 1 -} - -travel_witch_enthralled_modifier = { - icon = love_positive - health = 1 -} - -travel_rich_dining_modifier = { - icon = food_negative - vassal_opinion = -10 -} - -travel_down_to_earth_modifier = { - icon = outdoors_positive - health = 0.5 - learning = 2 -} - -travel_manhunted_prisoner_modifier = { - icon = dread_positive - dread_gain_mult = 0.2 - tyranny_gain_mult = 0.1 - general_opinion = -25 -} - -travel_heightened_senses_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_mult = 0.25 -} - -travel_chivalrous_deeds_modifier = { - icon = martial_positive - levy_size = 0.2 - general_opinion = 10 -} - -travel_mild_frostbite_modifier = { - icon = health_negative - health = -0.1 -} - -travel_severe_frostbite_modifier = { - icon = health_negative - health = -0.5 - attraction_opinion = -10 -} - -#County modifiers -travel_mismanaged_pasture_modifier = { - icon = stewardship_negative - build_gold_cost = 0.1 - development_growth_factor = small_development_growth_loss - tax_mult = -0.15 - build_speed = 0.1 -} - -travel_slightly_better_pasture_modifier = { - icon = stewardship_negative - build_gold_cost = 0.05 - development_growth_factor = tiny_development_growth_loss - tax_mult = -0.1 - build_speed = 0.05 -} - -travel_improved_pasture_modifier = { - icon = stewardship_positive - build_gold_cost = -0.15 - development_growth_factor = small_development_growth_gain - tax_mult = 0.2 - build_speed = -0.15 -} - -travel_burned_orchard_modifier = { - icon = goods_negative - development_growth_factor = tiny_development_growth_loss - tax_mult = -0.1 - build_speed = 0.05 -} - -travel_pillaged_plantation_modifier = { - icon = goods_negative - county_opinion_add = -25 - development_growth_factor = tiny_development_growth_loss -} - -travel_rescued_workers_modifier = { - icon = family_positive - county_opinion_add = 25 - development_growth_factor = small_development_growth_gain - build_speed = -0.10 -} - -travel_burning_plantation_modifier = { - icon = goods_negative - development_growth_factor = tiny_development_growth_loss -} - -travel_appreciated_quarry_modifier = { - icon = goods_positive - county_opinion_add = 10 - development_growth_factor = small_development_growth_gain -} - -travel_insulted_quarry_modifier = { - icon = goods_negative - county_opinion_add = -10 - development_growth_factor = small_development_growth_loss -} - -travel_taxman_modifier = { - icon = stewardship_positive - county_opinion_add = -25 - tax_mult = 0.1 -} - -travel_efficiency_improvements_modifier = { - icon = goods_positive - county_opinion_add = -10 - development_growth_factor = small_development_growth_gain - build_speed = -0.10 -} - -travel_wellfed_workers_modifier = { - icon = goods_positive - county_opinion_add = 25 - build_gold_cost = -0.1 - build_speed = -0.20 -} - -travel_indifferent_liege_modifier = { - icon = goods_negative - county_opinion_add = -10 - build_speed = 0.05 -} - -travel_cruel_liege_modifier = { - icon = goods_negative - county_opinion_add = -25 - build_speed = 0.10 -} - -travel_fine_dining_workers_modifier = { - icon = food_positive - county_opinion_add = 20 - build_speed = -0.10 -} - -travel_lost_supplies = { - icon = goods_negative - travel_speed_mult = -0.25 -} - -travel_safe_roads_modifier = { - icon = goods_positive - tax_mult = 0.2 - travel_danger = -10 -} - -#Holding modifiers -travel_sacrificed_levies_modifier = { - icon = blood_negative - levy_size = -0.1 - levy_reinforcement_rate = 0.15 -} - -#Travel modifiers - -travel_well_fed_travellers = { - icon = goods_positive - travel_speed_mult = 0.25 -} - -travel_steeds_acquired_modifier = { - icon = horse_positive - travel_speed_mult = 1 -} - -travel_ignored_pasture_issue_modifier = { - icon = horse_positive - travel_speed_mult = 0.25 -} - -vigorous_dancer_modifier = { - icon = health_positive - attraction_opinion = 10 - health = 0.25 -} - -travel_alone_with_strangers_modifier = { - icon = goods_negative - travel_safety = -25 -} - -travel_obligatory_pilgrimage_modifier = { - icon = goods_positive - travel_speed_mult = 0.5 -} - -travel_contemplative_pilgrimage_modifier = { - icon = goods_positive - travel_speed_mult = -0.5 -} - -travel_ate_poisonous_plant_modifier = { - icon = food_negative - health = -0.25 - prowess = -4 -} - -travel_touched_poisonous_plant_modifier = { - icon = health_negative - health = -0.05 - attraction_opinion = -10 -} - -travel_good_poisonous_plant_modifier = { - icon = food_positive - prowess = 2 - stress_loss_mult = 0.25 -} - -travel_walking_modifier = { - icon = horse_dead_negative - travel_speed = -50 -} - -travel_guide_modifier = { - icon = outdoors_positive - travel_speed = 20 - travel_safety = 20 -} - -drained_by_mosquitoes_modifier = { - icon = cockroach_negative - health = -0.2 - stress_gain_mult = 0.2 -} - -emaciated_modifier = { - icon = food_negative - health = -0.5 - negate_health_penalty_add = -1 - prowess = -5 -} - -quarreling_entourage_modifier = { - icon = horse_dead_negative - travel_speed = -10 -} - -travel_stealing_food_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -25 -} - -travel_brought_home_new_dessert = { - icon = food_positive - court_grandeur_baseline_add = 1 -} - -travel_brought_home_new_dessert_no_court = { - icon = food_positive - monthly_prestige_gain_mult = 0.05 - courtly_opinion = 5 -} - -travel_brought_home_new_techniques = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -contemplated_life = { - icon = learning_positive - monthly_piety_gain_mult = 0.1 - learning = 1 -} - -travel_city_existential_dread = { - icon = learning_positive - stewardship = 1 - stress_gain_mult = 0.1 -} - -travel_city_history_city_planning = { - icon = county_modifier_development_positive - build_gold_cost = -0.05 - holding_build_gold_cost = -0.05 -} - -travel_city_history_spoilage = { - icon = county_modifier_development_positive - build_speed = -0.1 - holding_build_speed = -0.1 -} - -travel_city_history_rulership = { - icon = social_positive - barons_and_minor_landholders_opinion = 5 - minority_opinion = 5 - parochial_opinion = 5 -} - -travel_city_history_fortifications = { - icon = martial_positive - additional_fort_level = 1 -} - -bird_ate_supplies = { - icon = food_negative - travel_safety = -5 -} - -ate_a_bird = { - icon = food_positive - travel_safety = 5 -} - -bird_superstition = { - icon = stress_negative - travel_safety = -15 -} diff --git a/common/modifiers/00_war_and_combat_modifiers.txt b/common/modifiers/00_war_and_combat_modifiers.txt deleted file mode 100644 index c594c482fa..0000000000 --- a/common/modifiers/00_war_and_combat_modifiers.txt +++ /dev/null @@ -1,78 +0,0 @@ -broke_truce = { - icon = diplomacy_negative - general_opinion = -50 -} - -attacked_ally = { - icon = diplomacy_negative - general_opinion = -25 -} - -# Applied by code when you lead your own troops -leading_own_troops_modifier = { - advantage = 5 -} - -recently_sacked_modifier = { - icon = martial_negative - county_opinion_add = 20 #Your people have worse monsters to worry about than you. -} - -rebuilding_after_sacking_modifier = { - icon = martial_positive - development_growth_factor = small_development_growth_gain -} - -designated_human_sacrifice_modifier = { - icon = learning_negative - health = -0.1 -} - -human_sacrifice_coward_modifier = { - icon = learning_negative - same_faith_opinion = -10 -} - -sparring_honed_skills_modifier = { - icon = prowess_positive - prowess = 2 -} - -sparring_full_of_confidence_modifier = { - icon = martial_positive - max_combat_roll = 7 -} - -sparring_chivalric_motivation_modifier = { - icon = fertility_positive - courting_scheme_power_add = 10 - attraction_opinion = 10 -} - -sparring_valiant_knight_modifier = { - icon = blood_positive - attacker_advantage = 5 -} - -sparring_noble_defender_modifier = { - icon = martial_positive - defender_advantage = 5 -} - -sparring_delusions_of_superiority_modifier = { - icon = martial_negative - advantage = -3 - prowess = -1 -} - -sparring_leader_of_knights_modifier = { - icon = horse_positive - knight_effectiveness_mult = 0.5 - prowess = 1 -} - -sparring_sprained_ankle_modifier = { - icon = health_negative - health = -0.1 - prowess = -3 -} diff --git a/common/modifiers/01_court_grandeur_modifiers.txt b/common/modifiers/01_court_grandeur_modifiers.txt deleted file mode 100644 index e3a95568d5..0000000000 --- a/common/modifiers/01_court_grandeur_modifiers.txt +++ /dev/null @@ -1,152 +0,0 @@ -# Modifiers used by code, they are applied cumulatively - -court_grandeur_level_0 = {} -court_grandeur_level_1 = { - # A Court Type bonus -} -court_grandeur_level_2 = { - # Unlocks the ‘Bestow Royal Favor’ Chancellor Task -} -court_grandeur_level_3 = { - # Unlocks the ‘Manage Royal Guards’ Marshal Task -} -court_grandeur_level_4 = { -} -court_grandeur_level_5 = { - # Characters who stay for five years in your Court gain a special trait based on Court Type -} -court_grandeur_level_6 = { - # Unlocks the ‘Convince De Jure Territory’ Steward Task -} -court_grandeur_level_7 = { -} -court_grandeur_level_8 = { - # Characters who stay for five years in your Court gain a much more powerful special trait based on Court Type -} -court_grandeur_level_9 = { - monthly_dynasty_prestige_mult = 0.05 -} -court_grandeur_level_10 = { -} - -# Effects are multiplied by realm size * NRoyalCourt::EXPECTED_LEVEL_DIFF_REALM_SIZE_MULTIPLIER -court_grandeur_above_expected_level_1 = { - monthly_prestige = 0.2 - courtier_and_guest_opinion = 4 -} -court_grandeur_above_expected_level_2 = { - monthly_prestige = 0.1 - courtly_opinion = 3 - glory_hound_opinion = 3 -} -court_grandeur_above_expected_level_3 = { - monthly_prestige = 0.1 - independent_ruler_opinion = 5 - fellow_vassal_opinion = 5 -} -court_grandeur_above_expected_level_4 = { - monthly_prestige = 0.1 - monthly_dynasty_prestige = 0.15 - courtier_and_guest_opinion = 4 - - county_opinion_add = 5 -} -court_grandeur_above_expected_level_5 = { - monthly_prestige = 0.1 - monthly_dynasty_prestige = 0.15 - courtly_opinion = 4 - glory_hound_opinion = 4 - - knight_limit = 1 -} -court_grandeur_above_expected_level_6 = { - monthly_prestige = 0.1 - monthly_dynasty_prestige = 0.2 - independent_ruler_opinion = 5 - fellow_vassal_opinion = 5 - - mercenary_hire_cost_mult = -0.1 -} -court_grandeur_above_expected_level_7 = { - monthly_prestige = 0.1 - monthly_dynasty_prestige = 0.2 - courtier_and_guest_opinion = 4 -} -court_grandeur_above_expected_level_8 = { - monthly_prestige = 0.2 - monthly_dynasty_prestige = 0.2 - independent_ruler_opinion = 4 - fellow_vassal_opinion = 4 - monthly_lifestyle_xp_gain_mult = 0.1 -} -court_grandeur_above_expected_level_9 = { - monthly_prestige = 0.2 - monthly_dynasty_prestige = 0.2 - courtly_opinion = 5 - glory_hound_opinion = 5 - monthly_lifestyle_xp_gain_mult = 0.05 - # Marriage acceptance boost -} -court_grandeur_above_expected_level_10 = { - monthly_prestige = 0.2 - monthly_dynasty_prestige = 0.2 - monthly_lifestyle_xp_gain_mult = 0.05 -} - -# Effects are multiplied by realm size * NRoyalCourt::EXPECTED_LEVEL_DIFF_REALM_SIZE_MULTIPLIER -court_grandeur_below_expected_level_1 = { - monthly_prestige = -0.2 - courtly_opinion = -5 -} -court_grandeur_below_expected_level_2 = { - monthly_prestige = -0.2 - courtier_and_guest_opinion = -5 -} -court_grandeur_below_expected_level_3 = { - monthly_prestige = -0.2 - vassal_opinion = -5 -} -court_grandeur_below_expected_level_4 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - independent_ruler_opinion = -5 - fellow_vassal_opinion = -5 -} -court_grandeur_below_expected_level_5 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - courtier_and_guest_opinion = -5 -} -court_grandeur_below_expected_level_6 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - courtly_opinion = -10 - glory_hound_opinion = -10 -} -court_grandeur_below_expected_level_7 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - independent_ruler_opinion = -5 - fellow_vassal_opinion = -5 -} -court_grandeur_below_expected_level_8 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - courtier_and_guest_opinion = -10 - monthly_lifestyle_xp_gain_mult = -0.1 -} -court_grandeur_below_expected_level_9 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - courtly_opinion = -10 - glory_hound_opinion = -10 - monthly_lifestyle_xp_gain_mult = -0.05 - # Marriage acceptance penalty -} -court_grandeur_below_expected_level_10 = { - monthly_prestige = -0.2 - monthly_dynasty_prestige = -0.2 - independent_ruler_opinion = -10 - fellow_vassal_opinion = -10 - monthly_lifestyle_xp_gain_mult = -0.05 -} diff --git a/common/modifiers/01_dlc_bp1_filippa_modifiers.txt b/common/modifiers/01_dlc_bp1_filippa_modifiers.txt deleted file mode 100644 index dca5c0498a..0000000000 --- a/common/modifiers/01_dlc_bp1_filippa_modifiers.txt +++ /dev/null @@ -1,45 +0,0 @@ - -bp1_yearly_2023_honorable_modifier = { - icon = family_positive - spouse_opinion = 30 - stress_gain_mult = -0.1 -} - -bp1_yearly_2023_dishonorable_modifier = { - icon = family_negative - spouse_opinion = -30 - tyranny_gain_mult = 0.1 -} - -bp1_yearly_2030_failed_student_modifier = { - icon = learning_negative - stress_gain_mult = 0.2 - learning = -1 -} - -bp1_yearly_2050_compromise_development_modifier = { - icon = goods_positive - development_growth_factor = 0.25 - county_opinion_add = 15 -} - -bp1_yearly_2050_development_modifier = { - icon = goods_positive - development_growth_factor = 0.5 - county_opinion_add = 40 -} - -bp1_yearly_2070_accepting_modifier = { - icon = love_positive - monthly_prestige_gain_mult = 0.05 -} - -bp1_yearly_2070_zealous_modifier = { - icon = piety_positive - monthly_piety_gain_mult = 0.05 -} - -bp1_yearly_2070_cynicism_modifier = { - icon = dread_positive - monthly_income_mult = 0.05 -} \ No newline at end of file diff --git a/common/modifiers/01_dlc_bp1_modifiers.txt b/common/modifiers/01_dlc_bp1_modifiers.txt deleted file mode 100644 index edfd36d707..0000000000 --- a/common/modifiers/01_dlc_bp1_modifiers.txt +++ /dev/null @@ -1,337 +0,0 @@ -######################################## -### Modifiers for Friends and Foes ### -######################################## - -bp_yearly_8040_trying_to_be_mindful_modifier = { - icon = stress_negative - stress_gain_mult = 0.1 - diplomacy = 1 -} - -bp1_yearly_8000_trusting_modifier = { - icon = social_positive - vassal_opinion = 5 - intrigue = -1 -} - -bp1_living_as_peasant_modifier = { - icon = stress_positive - stress_gain_mult = -0.2 -} - -bp1_well_fed_pigs_modifier = { - icon = feast_positive - dread_gain_mult = 0.2 - hostile_scheme_power_mult = 0.1 -} - -bejewelled_modifier = { - icon = grandeur_positive - stress_gain_mult = -0.1 - fertility = 0.1 - attraction_opinion = 15 - life_expectancy = 5 -} - -close_support_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_resistance_mult = 0.3 - hostile_scheme_power_mult = 0.2 -} - -financial_support_modifier = { - icon = economy_positive - stewardship = 1 - development_growth_factor = small_development_growth_gain -} - -life_of_the_party_modifier = { - icon = drink_positive - diplomacy = 2 - stress_gain_mult = -0.1 -} - -bedrock_modifier = { - icon = love_positive - diplomacy = 1 - stress_gain_mult = -0.1 -} - -tolerant_opinion_modifier = { - icon = piety_positive - different_faith_opinion = 10 - opinion_of_different_faith = 10 -} - -lumberjack_modifier = { - icon = prowess_positive - forest_attrition_mult = -0.5 - forest_min_combat_roll = 1 -} - -bog_smell_modifier = { - icon = excrement_negative - attraction_opinion = -5 - health = -0.1 -} - -brawny_modifier = { - icon = health_positive - prowess = 1 - negate_prowess_penalty_add = 5 -} - -humiliated_by_rival_modifier = { - icon = social_negative - vassal_opinion = -5 - stress_gain_mult = 0.1 -} - -triumphant_over_rival_modifier = { - icon = social_positive - vassal_opinion = 5 - stress_gain_mult = -0.1 -} - -sated_modifier = { - icon = love_positive - health = 0.2 - stress_gain_mult = -0.1 -} - -family_troubles_modifier = { - icon = love_negative - health = -0.1 - stress_gain_mult = 0.1 -} - -generous_friend_modifier = { - icon = economy_positive - diplomacy = 1 - befriend_scheme_power_mult = 0.15 - development_growth_factor = medium_development_growth_gain -} - -stanky_modifier = { - icon = health_negative - attraction_opinion = -10 -} - -bp1_sickness_being_doted_on = { - icon = stress_positive - negate_health_penalty_add = 0.25 -} - -exploitative_lord_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 - tax_mult = 0.2 - monthly_county_control_change_add = 0.1 -} - -ghost_stories_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 - monthly_county_control_change_add = 0.75 - tax_mult = 0.1 -} - -bp1_withholding_ghost_sex = { - icon = social_positive - fertility = 0.2 - spouse_opinion = 5 -} - -bp1_indulging_ghost_sex = { - icon = stress_positive - fertility = -0.1 - stress_loss_mult = 0.1 - stress_gain_mult = -0.1 -} - -full_of_jesus_modifier = { - icon = health_positive - health = 0.25 # Placebo - stress_gain_mult = -0.1 -} - -dead_best_friend_modifier = { - icon = love_negative - stress_gain_mult = 0.2 -} - -linguistically_challenged_modifier = { - icon = social_negative - learning = -1 -} - -sneaking_suspicion_modifier = { - icon = social_positive - close_relative_opinion = 10 - stress_gain_mult = 0.1 -} - -busy_guards_modifier = { - icon = intrigue_negative - hostile_scheme_resistance_mult = -0.25 - stress_loss_mult = 0.1 -} - -lacking_supplies_modifier = { - icon = food_negative - supply_capacity_mult = -0.10 -} - -optimist_modifier = { - icon = social_positive - stress_loss_mult = 0.1 - courtier_and_guest_opinion = 5 -} - -lacking_poultry_modifier = { - icon = food_negative - development_growth_factor = -0.1 -} - -obsessively_neurotic_modifier = { - icon = stress_negative - stress_gain_mult = 0.2 - hostile_scheme_resistance_mult = 0.25 -} - -unhappy_spouse_modifier = { - icon = stress_negative - spouse_opinion = -10 - close_relative_opinion = -5 -} - -descriptivist_modifier = { - icon = social_negative - diplomacy = 1 - learning = -1 - stress_gain_mult = -0.15 - attraction_opinion = -5 - learn_language_scheme_power_mult = -0.25 -} - -disdained_modifier = { - icon = social_negative - vassal_tax_mult = -0.1 - prestige_level_impact_mult = -0.1 -} - -cat_revenge_modifier = { - icon = intrigue_positive - murder_scheme_power_add = 10 - owned_scheme_secrecy_add = -5 -} - -cat_survived_modifier = { - icon = cat_positive - stress_gain_mult = -0.1 -} - -#Family Feud -house_feud_story_modifier = { - icon = blood_positive - intrigue = 1 - hostile_scheme_resistance_add = 5 - stress_gain_mult = 0.1 -} - -house_feud_terrible_modifier = { - icon = blood_negative - dread_baseline_add = -10 - monthly_prestige_gain_mult = -0.1 -} - -house_feud_bad_modifier = { - icon = blood_negative - dread_baseline_add = -5 - monthly_prestige_gain_mult = -0.05 -} - -house_feud_even_modifier = { - icon = blood_positive - dread_baseline_add = 5 - monthly_prestige_gain_mult = 0.05 -} - -house_feud_good_modifier = { - icon = blood_positive - dread_baseline_add = 10 - monthly_prestige_gain_mult = 0.1 -} - -house_feud_excellent_modifier = { - icon = blood_positive - dread_baseline_add = 15 - monthly_prestige_gain_mult = 0.15 -} - -#Sycophant -disgruntled_vassals_modifier = { - icon = social_negative - powerful_vassal_opinion = -10 -} - -placated_vassals_modifier = { - icon = social_positive - powerful_vassal_opinion = 5 -} - -personal_guard_modifier = { - icon = intrigue_positive - hostile_scheme_resistance_add = 10 -} - -raconteur_modifier = { - icon = excrement_positive - general_opinion = 10 -} - -toilet_humor_modifier = { - icon = excrement_negative - general_opinion = -10 -} - -effective_agents_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_resistance_mult = 0.2 -} - -spyamateur_modifier = { - icon = intrigue_negative - intrigue = -2 - hostile_scheme_resistance_mult = -0.1 -} - -sycophant_story_failed_scheme_detection_modifier = { - icon = intrigue_positive - scheme_success_chance = 10 - scheme_secrecy = 10 -} - -welcome_distraction_modifier = { - icon = stress_positive - stress_gain_mult = -0.15 - stewardship = -2 -} - -sycophant_story_encouraged_seduction_scheme_modifier = { - icon = intrigue_positive - scheme_power = 20 -} - -fanned_flame_modifier = { - icon = fertility_positive - fertility = 0.1 - diplomacy = 1 -} - -sycophant_story_tolerated_scheme_modifier = { - icon = intrigue_positive - scheme_power = 20 -} diff --git a/common/modifiers/01_dlc_bp1_modifiers_chad.txt b/common/modifiers/01_dlc_bp1_modifiers_chad.txt deleted file mode 100644 index ff4ce59e79..0000000000 --- a/common/modifiers/01_dlc_bp1_modifiers_chad.txt +++ /dev/null @@ -1,19 +0,0 @@ -######################################## -### Modifiers for Friends and Foes ### -######################################## - -bested_nemesis_modifier = { - icon = diplomacy_positive - diplomacy = 2 -} - -bested_rival_modifier = { - icon = diplomacy_positive - diplomacy = 1 -} - -unpredictable_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_power_mult = 0.2 -} diff --git a/common/modifiers/01_dlc_bp1_modifiers_claudia.txt b/common/modifiers/01_dlc_bp1_modifiers_claudia.txt deleted file mode 100644 index a4b3576797..0000000000 --- a/common/modifiers/01_dlc_bp1_modifiers_claudia.txt +++ /dev/null @@ -1,28 +0,0 @@ -bp1_1000_time_with_bf_modifier = { - icon = social_positive - health = 0.25 - stress_gain_mult = -0.25 -} - -bp1_1000_focus_on_work_modifier = { - icon = social_negative - monthly_lifestyle_xp_gain_mult = 0.1 - stress_gain_mult = 0.15 -} - -bp1_1020_friend_with_modifier = { - icon = health_positive - health = minor_health_bonus -} - -bp1_superstition_modifier = { - icon = magic_negative - stress_gain_mult = 0.2 - stress_loss_mult = 0.2 -} - -bp1_1070_unlucky_charm_modifier = { - icon = horse_dead_negative - stress_gain_mult = 0.1 - enemy_hostile_scheme_success_chance_add = 10 -} diff --git a/common/modifiers/01_dlc_fp1_modifiers.txt b/common/modifiers/01_dlc_fp1_modifiers.txt index 2e2f599d85..94179f9af3 100644 --- a/common/modifiers/01_dlc_fp1_modifiers.txt +++ b/common/modifiers/01_dlc_fp1_modifiers.txt @@ -226,7 +226,7 @@ fp1_yearly_0071_troll_victory_lynx_modifier = { fp1_yearly_0071_troll_victory_moose_modifier = { icon = bear_positive - learning_per_prestige_level = 2 + learning_per_prestige_level = 1 } brand_new_hunting_tools = { diff --git a/common/modifiers/01_dlc_fp3_modifiers.txt b/common/modifiers/01_dlc_fp3_modifiers.txt new file mode 100644 index 0000000000..fa3f91872b --- /dev/null +++ b/common/modifiers/01_dlc_fp3_modifiers.txt @@ -0,0 +1,986 @@ +#fp3_mountain_redoubt_modifier = { +# icon = martial_positive +# defender_holding_advantage = 5 +# garrison_size = 0.5 +# levy_reinforcement_rate = 0.25 +#} +# +#fp3_brutal_predations_county_modifier = { +# icon = county_modifier_opinion_negative +# county_opinion_add = -10 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_low_frontier_morale_county_modifier = { +# icon = martial_negative +# garrison_size = -0.2 +# hostile_raid_time = -0.5 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_boosted_frontier_morale_county_modifier = { +# icon = martial_positive +# garrison_size = 0.2 +# hostile_raid_time = 1 +# monthly_county_control_change_factor = 0.2 +#} +# +#fp3_visited_the_frontier_modifier = { +# icon = health_negative +# health = -0.25 +#} +# +#fp3_frontier_heresy_county_modifier = { +# icon = piety_negative +# county_opinion_add = -10 +# monthly_county_control_change_factor = -0.3 +#} +# +#fp3_garrison_decimated_county_modifier = { +# icon = dread_negative +# county_opinion_add = -20 +# garrison_size = -0.70 +# hostile_raid_time = -0.5 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_jinx_modifier = { +# icon = magic_negative +# health = -0.25 +# fertility = -0.25 +# stress_gain_mult = 0.25 +#} +# +#fp3_call_of_the_wild_modifier = { +# icon = outdoors_positive +# learning = 1 +# prowess = 1 +# negate_health_penalty_add = 0.25 +#} +# +#fp3_marriage_material_modifier = { +# icon = family_positive +# spouse_opinion = 10 +# fertility = 0.25 +# stress_gain_mult = 0.25 +#} +# +#fp3_dutiful_scion_modifier = { +# icon = family_positive +# dynasty_opinion = 10 +# diplomacy = 2 +# stewardship = 2 +# stress_gain_mult = 0.25 +#} +# +#fp3_worried_sick_modifier = { +# icon = family_negative +# health = -0.25 +#} +# +#fp3_gross_persecutions_county_modifier = { +# icon = dread_negative +# county_opinion_add = -30 +# tax_mult = -0.30 +#} +# +#fp3_galvanized_heretics_county_modifier = { +# icon = piety_negative +# county_opinion_add = -20 +# monthly_county_control_change_factor = -0.3 +#} +# +# fp3_promoting_arabic_modifier = { +# icon = learning_positive +# learning = 1 +# different_culture_opinion = 10 +# same_culture_opinion = -5 +#} +# +#fp3_conversion_curious_county_modifier = { +# icon = piety_positive +# monthly_county_control_change_factor = 0.2 +# development_growth_factor = medium_development_growth_gain +#} +# +#fp3_teapot_alcoholism_modifier = { +# icon = drink_positive +# same_faith_opinion = 5 +#} + +ulema_displeased_drinking = { + icon = drink_negative + zealot_opinion = -10 + monthly_piety = -0.1 +} + +fp3_plundered_county_modifier = { + icon = county_modifier_development_negative + county_opinion_add = -20 + development_growth_factor = -0.4 +} + +fp3_architectural_splendor_county_modifier = { + icon = prestige_positive + county_opinion_add = 30 + tax_mult = 0.20 +} + +fp3_luxurious_bathhouse_modifier = { + icon = treatment_positive + stress_loss_mult = 0.25 + courtier_and_guest_opinion = 15 + courtly_opinion = 10 +} + +fp3_less_luxurious_bathhouse_modifier = { + icon = treatment_positive + stress_loss_mult = 0.15 +} + +fp3_very_lofty_tower_modifier = { + icon = compass_positive + hostile_scheme_resistance_mult = 0.2 + attraction_opinion = 10 +} + +fp3_less_lofty_tower_modifier = { + icon = compass_positive + hostile_scheme_resistance_mult = 0.15 + attraction_opinion = 5 +} + +fp3_spiritual_splendor_county_modifier = { + icon = piety_positive + county_opinion_add = 20 + church_holding_build_gold_cost = -0.25 + church_holding_build_speed = -0.25 + development_growth_factor = 0.1 +} + +fp3_great_tower_of_silence_modifier = { + icon = bird_positive + learning = 2 +} + +fp3_less_great_tower_of_silence_modifier = { + icon = bird_positive + learning = 1 +} + +fp3_praying_too_much_modifier = { + icon = piety_positive + diplomacy = -1 + stewardship = -1 + monthly_piety_gain_mult = 0.1 +} + +#fp3_name_read_in_friday_prayer_modifier = { +# icon = prestige_positive +# monthly_piety_gain_per_happy_powerful_vassal_mult = 0.05 +# diplomacy = 2 +# title_creation_cost_mult = -0.2 +#} +# +#fp3_displayed_pious_submission_to_caliph_modifier = { +# icon = piety_positive +# religious_head_opinion = 20 +# learning = 2 +# diplomacy_per_piety_level = 1 +#} +# +#fp3_honored_by_the_faithful_modifier = { +# icon = piety_positive +# diplomacy_per_piety_level = 1 +#} + +fp3_rule_by_fear_modifier = { + icon = dread_positive + intimidated_vassal_tax_contribution_mult = 0.2 + cowed_vassal_tax_contribution_mult = 0.3 + close_relative_opinion = -10 +} + +fp3_minor_child_spy_network_modifier = { + icon = intrigue_positive + hostile_scheme_resistance_mult = 0.2 + dynasty_house_opinion = -5 +} + +fp3_better_company_modifier = { + icon = social_positive + clan_government_opinion = 10 +} + +####FP3 Dynasty Modifiers##### + +fp3_light_of_the_walayah_modifier = { + icon = magic_positive + same_faith_opinion = 5 + diplomacy_per_piety_level = 1 +} + +#fp3_azariqa_ascendancy_modifier = { +# icon = prowess_positive +# same_faith_opinion = 10 +# martial_per_piety_level = 1 +#} +# +#fp3_promoted_persian_scripture_modifier = { +# icon = learning_positive +# learn_language_scheme_power_add = 12 +# max_learn_language_schemes_add = 1 +# learning_per_piety_level = 1 +#} +# +#fp3_persian_resurgence_county_modifier = { +# icon = learning_positive +# monthly_county_control_change_add = 0.3 +# church_holding_holding_build_speed = -0.25 +# church_holding_holding_build_gold_cost = -0.25 +#} +# +#fp3_forgotten_runestones_county_modifier = { +# icon = rock_positive +# county_opinion_add = 10 +#} +# +#fp3_dismayed_daylamites_county_modifier = { +# icon = rock_negative +# county_opinion_add = -20 +# monthly_county_control_change_factor = -0.1 +#} +# +#fp3_insulted_chinese_noble_modifier = { +# icon = social_negative +# #han_opinion = -20 +#} +# +#fp3_royal_fire_modifier = { +# icon = outdoors_positive +# monthly_dynasty_prestige = 0.2 +# health = 0.05 +#} +# +#fp3_bad_tower_of_silence_county_modifier = { +# icon = bird_negative +# development_growth_factor = small_development_growth_loss +#} +# +#fp3_promoting_zoroastrianism_modifier = { +# icon = outdoors_positive +# #zoroastrianism_religion_opinion = 10 +#} +# +#fp3_blessed_by_fire_modifier = { +# icon = outdoors_positive +# #zoroastrianism_religion_opinion = 5 +# monthly_piety = 0.5 +#} +# +### Story Cycle modifiers +#fp3_vengeful_nomads_county_modifier = { +# icon = horse_dead_negative +# hostile_raid_time = -0.5 +# county_opinion_add = -15 +# monthly_county_control_change_factor = -0.3 +#} +# +#fp3_nomad_recruits_modifier = { +# icon = hunt_positive +# light_cavalry_recruitment_cost_mult = -0.4 +# archer_cavalry_recruitment_cost_mult = -0.4 +# light_cavalry_maintenance_mult = -0.4 +# archer_cavalry_maintenance_mult = -0.4 +#} +# +#fp3_nomad_friction_county_modifier = { +# icon = horse_dead_negative +# county_opinion_add = -10 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_resentful_nomads_county_modifier = { +# icon = economy_negative +# hostile_raid_time = -0.5 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_banning_archery_modifier = { +# icon = hunt_negative +# archers_damage_mult = -0.2 +# archer_cavalry_damage_mult = -0.2 +#} +# +#fp3_crushed_by_failure_modifier = { +# icon = stress_negative +# diplomacy = -1 +# stress_gain_mult = 0.25 +#} +# +#fp3_silk_road_secure_county_modifier = { +# icon = goods_positive +# hostile_raid_time = 0.5 +# tax_mult = 0.4 +#} +# +#fp3_nomad_attacks_county_modifier = { +# icon = goods_negative +# tax_mult = -0.4 +# monthly_county_control_change_factor = -0.2 +#} +# +#fp3_lackluster_diet_modifier = { +# icon = food_negative +# stress_gain_mult = 0.2 +# health = 0.02 +#} +# +#fp3_herbal_remedies_modifier = { +# icon = treatment_positive +# negate_diplomacy_penalty_add = 1 +# negate_intrigue_penalty_add = 1 +# negate_stewardship_penalty_add = 1 +#} +# +#fp3_worshipping_in_solitude_modifier = { +# icon = piety_positive +# courtier_and_guest_opinion = -10 +# clergy_opinion = 10 +# stress_gain_mult = -0.2 +#} +# +#fp3_gnostic_fervor_county_modifier = { +# icon = magic_positive +# development_growth_factor = medium_development_growth_gain +#} +# +#fp3_rare_books_modifier = { +# icon = learning_positive +# learning = 2 +#} +# +#fp3_womens_faith_galvanized_modifier = { +# icon = magic_negative +# opinion_of_male_rulers = -20 +# intrigue_per_stress_level = 2 +#} +# +#fp3_oil_of_vitriol_modifier = { +# icon = blood_positive +# learning = 1 +# martial = 1 +#} +# +#fp3_dabbling_in_alchemy_modifier = { +# icon = treatment_negative +# learning = 2 +# health = -0.1 +#} +# +#fp3_alchemical_insights_modifier = { +# icon = treatment_positive +# learning = 2 +# cultural_head_fascination_mult = 0.15 +#} +# +#fp3_reneged_on_promise_modifier = { +# icon = diplomacy_negative +# general_opinion = -10 +#} +# +#fp3_artifact_shahnameh_modifier = { +# #persian_opinion = 10 +# #tajik_opinion = 10 +# #khwarezmian_opinion = 10 +# #afghan_opinion = 10 +# monthly_dynasty_prestige_mult = 0.05 +#} +# +#fp3_artifact_persian_epic_modifier = { +# court_grandeur_baseline_add = 3 +# monthly_dynasty_prestige_mult = 0.05 +# monthly_diplomacy_lifestyle_xp_gain_mult = 0.1 +#} +# +#fp3_broken_icehouses_county_modifier = { +# icon = goods_negative +# development_growth_factor = -0.25 +#} +# +#fp3_court_austerity_modifier = { +# icon = treat_negative +# courtier_and_guest_opinion = -10 +# courting_scheme_power_mult = -0.3 +# health = 0.1 +#} +# +#fp3_securing_sorbet_supply_modifier = { +# icon = treat_positive +# courtier_and_guest_opinion = 10 +# vassal_opinion = -5 +# stress_gain_mult = -0.2 +#} +# +#fp3_thinking_about_the_afterlife_modifier = { +# icon = magic_positive +# learning = 2 +# stress_gain_mult = 0.2 +#} + +fp3_sufi_initiate_modifier = { + icon = magic_positive + learning_per_stress_level = 1 +} + +#fp3_avoiding_dark_places_modifier = { +# icon = beast_negative +# stress_gain_mult = 0.2 +# owned_scheme_secrecy_add = -10 +# hostile_scheme_resistance_add = 10 +#} +# +#fp3_looking_for_bodyguards_modifier = { +# icon = martial_positive +# guest_opinion = 5 +#} +# +#fp3_relentless_skeptic_modifier = { +# icon = compass_positive +# learning = 2 +# monthly_piety_gain_mult = -0.2 +#} + +fp3_promoted_persian_mathematics_modifier = { + icon = learning_positive + courtly_opinion = 5 + zealot_opinion = 5 +} + +#fp3_denied_religious_protection_modifier = { +# icon = piety_negative +# zealot_opinion = 5 +# minority_opinion = -10 +#} +# +#fp3_fearsome_example_modifier = { +# icon = dread_positive +# dread_per_tyranny_add = 0.3 +# dread_decay_mult = -0.3 +#} +# +#fp3_refused_the_caliph_modifier = { +# icon = piety_negative +# monthly_piety = -0.25 +#} + +fp3_justification_for_taxation_modifier = { + icon = economy_positive + direct_vassal_opinion = -10 + intimidated_vassal_tax_contribution_mult = 0.2 + cowed_vassal_tax_contribution_mult = 0.2 +} + +fp3_excuses_for_extortion_modifier = { + icon = economy_negative + direct_vassal_opinion = -10 +} + +fp3_locals_intimidated_county_modifier = { + icon = dread_positive + monthly_county_control_change_factor = 0.2 +} + +fp3_locals_infuriated_county_modifier = { + icon = dread_negative + county_opinion_add = -30 + monthly_county_control_change_factor = -0.2 +} + +fp3_looking_the_other_way_modifier = { + icon = stewardship_negative + stewardship = -2 + stress_gain_mult = -0.25 +} + +fp3_capable_magistrates_modifier = { + icon = diplomacy_positive + stress_gain_mult = -0.25 + diplomacy = 2 +} + +fp3_delegated_payments_modifier = { + icon = martial_positive + army_maintenance_mult = -0.1 +} + +fp3_army_influence_modifier = { + icon = martial_positive + martial = 1 + hostile_scheme_power_mult = 0.15 +} + +fp3_messy_payments_modifier = { + icon = martial_negative + army_maintenance_mult = -0.10 + army_toughness_mult = -0.10 +} + +fp3_cutting_corners_modifier = { + icon = learning_negative + learning = -2 + stress_gain_mult = -0.2 +} + +fp3_wary_of_sabotage_modifier = { + icon = intrigue_positive + stewardship = 2 + hostile_scheme_resistance_add = 10 +} + +fp3_paper_shortage_modifier = { + icon = learning_negative + learning = -2 +} + +fp3_paper_surplus_modifier = { + icon = learning_positive + learning = 2 +} + +fp3_liquid_wisdom_modifier = { + icon = drink_positive + diplomacy = 1 + health = -0.1 +} + +fp3_morbid_insights_modifier = { + icon = prison_positive + learning = 3 + health = -0.1 +} + +#fp3_not_puppeteering_kingmaker_modifier = { +# icon = prestige_negative +# vassal_opinion = -10 +# prestige_level_impact_mult = -0.2 +#} + +fp3_sickly_monkey_modifier = { + icon = monkey_negative + stress_gain_mult = 0.2 +} + +fp3_chess_playing_monkey_modifier = { + icon = monkey_positive + monthly_prestige = 0.2 + child_opinion = 10 + guest_opinion = 10 + courtier_opinion = 10 +} + +fp3_wheat_shortage_modifier = { + icon = goods_negative + county_opinion_add = -15 + development_growth_factor = tiny_development_growth_loss +} + +fp3_generous_bakers_modifier = { + icon = goods_positive + county_opinion_add = 15 + development_growth_factor = small_development_growth_gain +} + +#fp3_impious_tax_collector_modifier = { +# icon = piety_negative +# monthly_piety = -1 +# learning = -5 +#} + +fp3_incapable_tax_collector_modifier = { + icon = stewardship_negative + monthly_prestige = -0.1 +} + +dreaded_beauty = { + icon = dread_positive + dread_baseline_add = 10 + dread_gain_mult = 0.1 + parochial_opinion = -5 + zealot_opinion = -5 + minority_opinion = -5 +} + +generous_beauty = { + icon = prestige_positive + vassal_tax_mult = -0.1 + vassal_opinion = 5 + short_reign_duration_mult = -0.15 +} + +#fp3_religious_desertion_modifier = { +# icon = martial_negative +# levy_size = -0.8 +#} +# +#persian_has_plush_carpet_modifier = { # Same effect as has_plush_carpet_modifier +# icon = prestige_positive +# monthly_prestige_gain_mult = 0.2 +# hostile_scheme_resistance_add = -10 +#} +# +#fp3_struggle_caliph_super_suspicious_modifier = { +# icon = intrigue_positive +# hostile_scheme_resistance_add = 100 +#} +# +# +#fp3_house_modifier_rebuilding_efforts = { +# icon = stewardship_positive +# build_gold_cost = -0.1 +# build_speed = -0.1 +# tax_mult = 0.1 +# parochial_opinion = 20 +#} +# +#fp3_house_modifier_frontier_ambitions = { +# icon = martial_positive +# glory_hound_opinion = 20 +# levy_size = 0.2 +# men_at_arms_maintenance = -0.1 +# men_at_arms_recruitment_cost = -0.2 +#} +# +#fp3_house_modifier_destroyed_the_caliphate = { +# icon = piety_positive +# monthly_piety = 1 +# #ashari_opinion = -25 +# #muwalladi_opinion = -25 +# #maturidi_opinion = -25 +# #mutazila_opinion = -25 +#} + +fp3_zoroastrian_brazier_modifier = { + zealot_opinion = 5 + same_faith_opinion = 5 + monthly_piety = 0.5 +} + +fp3_irrigation_insights_modifier = { + icon = stewardship_positive + development_growth_factor = 0.1 +} + +disturbed_sky_burial = { + icon = piety_positive + zealot_opinion = 10 + minority_opinion = -10 +} + +fp3_untrained_falcon = { + icon = bird_negative + monthly_prestige = -0.1 +} + +fp3_aggressive_falcon = { + icon = bird_positive + dread_baseline_add = 5 + monthly_prestige = -0.1 +} + +#fp3_had_delicious_kumis = { +# icon = drink_positive +# negate_health_penalty_add = 0.25 +#} +# +#rebuffed_turkic_war_band = { +# icon = prestige_positive +# monthly_prestige = 0.2 +# glory_hound_opinion = 5 +#} +# +#turkic_war_band = { +# icon = martial_positive +# character_travel_safety = 5 +# light_cavalry_recruitment_cost_mult = -0.15 +# light_cavalry_screen_add = 2 +# glory_hound_opinion = 5 +# barons_and_minor_landholders_opinion = -5 +# parochial_opinion = -5 +#} +# +fp3_forgave_the_desperate = { + icon = county_modifier_opinion_positive + county_opinion_add = 10 +} + +fp3_punished_the_destitute = { + icon = county_modifier_opinion_negative + county_opinion_add = -10 + monthly_county_control_change_factor = 0.05 + courtly_opinion = 5 + zealot_opinion = 5 +} + +ancient_persian_relics = { + icon = prestige_positive + monthly_prestige = 0.5 + courtly_opinion = 5 +} + +#fp3_established_futuwaa_lodges_modifier = { +# icon = martial_positive +# martial_per_prestige_level = 1 +# levy_reinforcement_rate_same_faith = 0.1 +# levy_maintenance = -0.15 +#} + +fp3_established_madrasas_modifier = { + icon = learning_positive + monthly_lifestyle_xp_gain_mult = 0.1 + zealot_same_faith_opinion = 10 +} + +#fp3_rekindler_of_iran_modifier = { +# icon = flame_positive +# same_heritage_county_advantage_add = 5 +# glory_hound_same_culture_opinion = 10 +# parochial_same_culture_opinion = 10 +# courtly_same_culture_opinion = 5 +# cultural_head_fascination_mult = 0.20 +# #world_persian_empire_development_growth_factor = 0.2 +#} +# +#fp3_flame_of_iran_modifier = { +# icon = flame_positive +# same_heritage_county_advantage_add = 5 +# glory_hound_same_culture_opinion = 5 +# parochial_same_culture_opinion = 5 +# #world_persian_empire_development_growth_factor = 0.2 +#} + +fp3_higher_purpose_modifier = { + icon = piety_positive + diplomacy = 1 + stewardship = 1 + fertility = 0.08 + health = 0.4 +} + +####Assassination modifier#### + +scheme_helpful_sympathizer_modifier = { + icon = intrigue_positive + scheme_success_chance = 10 +} + +scheme_untrustworthy_sympathizer_modifier = { + icon = intrigue_negative + scheme_secrecy = -10 +} + +scheme_assassin_recruits_modifier = { + icon = prowess_positive + scheme_power = 5 + scheme_success_chance = 5 + scheme_secrecy = -5 +} + +scheme_assassin_closing_in_modifier = { + icon = prowess_positive + scheme_success_chance = 10 +} + +scheme_strengthened_resolve_modifier = { + icon = prowess_positive + scheme_success_chance = 10 +} + +scheme_weakened_resolve_modifier = { + icon = prowess_negative + scheme_success_chance = -5 +} + +scheme_poisoned_blade_modifier = { + icon = blood_positive + scheme_success_chance = 10 +} + +scheme_pestilent_blade_modifier = { + icon = rat_positive + scheme_success_chance = 5 +} + +scheme_renegade_assassin_modifier = { + icon = rat_negative + scheme_success_chance = -5 + scheme_secrecy = -10 +} + +fp3_tax_collector_become_teacher = { + icon = stewardship_positive + clan_government_tax_contribution_mult = 0.05 +} + +fp3_cunning_tax_collectors = { + icon = stewardship_positive + clan_government_tax_contribution_mult = 0.02 +} + +fp3_sided_with_different_faith_vassal_tax_dispute = { + icon = stewardship_positive + domain_tax_different_faith_mult = 0.3 + opinion_of_different_faith = 5 + different_faith_county_opinion_mult = 0.15 + clan_government_tax_contribution_mult = -0.02 +} + +fp3_sided_with_tax_collector_tax_dispute = { + icon = stewardship_positive + clan_government_tax_contribution_mult = 0.1 + domain_tax_different_faith_mult = 0.1 + religious_vassal_opinion = -10 +} + +#fp3_incursion_instability = { +# icon = horse_negative +# levy_size = -0.2 +# tax_mult = -0.2 +# parochial_opinion = -20 +# county_opinion_add = -10 +#} + +####### FP3 Ending: Honorary titles + +## Intrigue boost +#fp3_honorary_title_intrigue_modifier = { +# icon = intrigue_positive +# max_hostile_schemes_add = 1 +#} +# +### Scholarship boost +#fp3_honorary_title_scholarship_modifier = { +# icon = learning_positive +# max_learn_language_schemes_add = 1 +# learning = 2 +#} +# +### Stewardship boost +#fp3_honorary_title_stewardship_modifier = { +# icon = stewardship_positive +# build_speed = -0.1 +# build_gold_cost = -0.1 +#} +# +### Diplomacy boost +#fp3_honorary_title_diplomacy_modifier = { +# icon = diplomacy_positive +# max_personal_schemes_add = 1 +#} +# +### Piety boost +#fp3_honorary_title_piety_modifier = { +# icon = piety_positive +# monthly_piety = 1 +#} +# +### Prestige boost +#fp3_honorary_title_prestige_modifier = { +# icon = piety_positive +# monthly_prestige = 1 +#} +# +### Martial boost +#fp3_honorary_title_martial_modifier = { +# icon = martial_positive +# army_maintenance_mult = -0.15 +#} + +####### Clan events 2000 modifiers +fp3_efficient_tax_collector = { + icon = stewardship_positive + clan_government_tax_contribution_mult = 0.1 +} + +#fp3_zanj_rebellion_work_concessions_modifier = { +# icon = stewardship_negative +# tax_mult = -0.5 +#} +# +#religious_settler_influx = { +# icon = flame_positive +# development_growth = 0.2 +# county_opinion_add = 15 +# tax_mult = 0.1 +# levy_size = 0.1 +#} + +### Sponsor Research Modifiers ### +# Military +fp3_treatise_on_light_warfare_modifier = { + icon = hunt_positive + skirmishers_damage_add = 3 + archers_damage_add = 3 + skirmishers_screen_add = 5 + archers_screen_add = 5 +} + +fp3_treatise_on_heavy_warfare_modifier = { + icon = prowess_positive + pikemen_damage_add = 3 + heavy_infantry_damage_add = 3 + pikemen_toughness_add = 5 + heavy_infantry_toughness_add = 5 +} + +fp3_treatise_on_cavalry_modifier = { + icon = horse_positive + light_cavalry_damage_add = 3 + heavy_cavalry_damage_add = 3 + light_cavalry_pursuit_add = 5 + heavy_cavalry_pursuit_add = 5 +} + +fp3_treatise_on_siege_modifier = { + icon = martial_positive + maa_siege_value_add = 0.1 + siege_weapon_siege_value_mult = 0.1 + siege_weapon_maintenance_mult = -0.05 +} + +fp3_treatise_on_strategy_modifier = { + icon = martial_positive + martial = 1 + advantage = 3 +} + +# Civil +fp3_treatise_on_development_modifier = { + icon = prestige_positive + development_growth_factor = 0.1 + learning = 1 +} + +fp3_treatise_on_building_modifier = { + icon = economy_positive + castle_holding_holding_build_speed = 0.1 + castle_holding_holding_build_gold_cost = 0.1 +} + +fp3_treatise_on_control_modifier = { + icon = county_modifier_control_positive + monthly_county_control_change_add = 0.3 + county_opinion_add = 10 +} + +fp3_treatise_on_mathematics_modifier = { + icon = learning_positive + learning = 1 + stewardship = 1 +} + +fp3_treatise_on_taxation_modifier = { + icon = stewardship_positive + tax_mult = 0.15 + stewardship = 1 +} diff --git a/common/modifiers/01_dlc_roco_modifiers_bianca.txt b/common/modifiers/01_dlc_roco_modifiers_bianca.txt deleted file mode 100644 index b8e3951514..0000000000 --- a/common/modifiers/01_dlc_roco_modifiers_bianca.txt +++ /dev/null @@ -1,55 +0,0 @@ -################################################## -# #General Character Modifiers - -smelly_court_roco_modifier = { - icon = excrement_negative - vassal_opinion = -10 - dread_gain_mult = -0.05 - court_grandeur_baseline_add = -2 -} - -drenched_in_excrement_roco_modifier = { - icon = excrement_negative - health = -1 - monthly_prestige = -0.1 - attraction_opinion = -10 -} - -creative_burst_roco_modifier = { - icon = magic_positive - health = 0.5 - stewardship = -1 - intrigue = -1 - learning = 2 -} - -trying_new_things_modifier = { - icon = health_positive - health = 1 - learning = 2 -} - -found_their_focus_modifier = { - icon = magic_positive - health = 2 - learning = 1 -} - -mocked_for_creative_burst_roco_modifier = { - icon = grandeur_negative - health = -0.5 - intrigue = 2 - learning = 1 -} - -moment_of_calm_and_clarity_roco_modifier = { - icon = health_positive - health = 0.5 - stress_gain_mult = -0.25 -} - -made_a_fool_of_rival_roco_modifier = { - icon = intrigue_positive - health = 0.5 - dread_decay_mult = -0.1 -} diff --git a/common/modifiers/01_dlc_roco_modifiers_george.txt b/common/modifiers/01_dlc_roco_modifiers_george.txt deleted file mode 100644 index 1b0981a25f..0000000000 --- a/common/modifiers/01_dlc_roco_modifiers_george.txt +++ /dev/null @@ -1,94 +0,0 @@ -################################################## -# #General Character Modifiers - -## Hold Court 7030 - -hold_court_7030_land_trashed = { - icon = county_modifier_control_negative - monthly_county_control_change_factor = -0.1 - county_opinion_add = -10 - development_growth_factor = -5 -} - -hold_court_7030_knight_boost = { - icon = martial_positive - knight_effectiveness_mult = 0.1 -} - -hold_court_7030_knight_punished = { - icon = martial_negative - knight_effectiveness_mult = -0.1 -} - -## Hold Court 7040 - -hold_court_7040_county_opinion_loss = { - icon = county_modifier_opinion_negative - county_opinion_add = -40 -} - -hold_court_7040_tax_boost = { - icon = stewardship_positive - vassal_tax_mult = 0.25 -} - -hold_court_7040_tax_cut = { - icon = county_modifier_development_negative - tax_mult = -0.20 - development_growth_factor = -0.5 -} - -## Hold Court 7060 -pursuing_a_desirable_match = { - icon = diplomacy_positive - vassal_opinion = 10 - courting_scheme_power_mult = 0.2 -} - -hold_court_7060_infatuated = { - icon = love_positive - vassal_opinion = -5 - max_hostile_schemes_add = -1 - courting_scheme_power_mult = 0.3 -} - -hold_court_7060_alone = { - icon = social_negative - fertility = -0.25 - stress_gain_mult = 0.1 -} - -## Hold Court 7040 -# Adds a bonus to the county control task, added to the Marshal and calculated from them. -event_bonus_to_county_control = { - icon = dread_positive -} - -# Gives a +20 bonus acceptance to inviting agents to schemes -event_bonus_to_agent_invite = { - icon = intrigue_positive -} - -# Gives a +20 bonus acceptance to vassalisation interaction -event_bonus_to_vassal_accept = { - icon = diplomacy_positive -} - -## Hold Court 7070 -hold_court_7070_defended_church = { - icon = piety_positive - theocracy_government_opinion_same_faith = 20 - monthly_piety_gain_mult = 0.15 -} - -hold_court_7070_defended_peasantry = { - icon = county_modifier_control_positive - theocracy_government_opinion_same_faith = -20 - county_opinion_add = 15 - monthly_county_control_change_factor = 0.1 -} - -hold_court_7070_undermined_church = { - icon = social_negative - theocracy_government_opinion_same_faith = -25 -} diff --git a/common/modifiers/01_dlc_roco_modifiers_joe.txt b/common/modifiers/01_dlc_roco_modifiers_joe.txt deleted file mode 100644 index d81aecf550..0000000000 --- a/common/modifiers/01_dlc_roco_modifiers_joe.txt +++ /dev/null @@ -1,291 +0,0 @@ -################################################## -# # General Character Modifiers - -hold_court_8001_deposed_modifier = { - icon = stewardship_negative - republic_government_tax_contribution_mult = -0.1 -} - -hold_court_8010_vassal_modifier = { - icon = martial_positive - vassal_opinion = 5 -} - -hold_court_8030_settled_character_modifier = { - icon = stewardship_positive - republic_government_tax_contribution_mult = 0.1 -} - -hold_court_8080_prison_modifier = { - icon = prison_positive - republic_government_vassal_opinion = -10 - republic_government_tax_contribution_mult = -0.1 - dread_baseline_add = 10 -} - -hold_court_8090_favorites_modifier = { - icon = social_negative - general_opinion = -5 -} - -hold_court_8110_common_modifier = { - icon = social_positive - county_opinion_add = 20 - vassal_opinion = -5 -} - -hold_court_8110_haughty_modifier = { - icon = social_negative - county_opinion_add = -20 - vassal_opinion = 5 -} - -hold_court_8120_terror_modifier = { - icon = social_negative - different_faith_opinion = -5 - opinion_of_different_faith = -5 -} - -hold_court_8120_tolerance_modifier = { - icon = social_positive - different_faith_opinion = 10 - opinion_of_different_faith = 10 -} - -hold_court_8130_terror_modifier = { - icon = social_negative - different_culture_opinion = -10 - opinion_of_different_culture = -10 -} - -hold_court_8130_tolerance_modifier = { - icon = social_positive - different_culture_opinion = 10 - opinion_of_different_culture = 10 -} - -hold_court_8100_adopted_modifier = { - icon = social_negative - diplomacy = -2 - dynasty_opinion = -10 - general_opinion = -5 -} - -hold_court_8280_nomadic_guard = { - icon = horse_positive - light_cavalry_maintenance_mult = -0.2 - light_cavalry_damage_mult = 0.1 - martial = 1 -} - -hunting_pooches_modifier = { - icon = dog_positive - health = 0.1 - monthly_prestige = 0.2 -} - -servant_informants_modifier = { - icon = intrigue_positive - intrigue = 1 - hostile_scheme_resistance_add = 10 -} - -promised_court_position_modifier = { - icon = social_negative - monthly_prestige = 0.1 -} - -poor_host_modifier = { - icon = social_negative - general_opinion = -5 - monthly_piety = -0.1 -} -strong_potion_modifier = { - icon = magic_positive - health = minor_health_bonus - prowess = medium_skill_bonus -} - -feeling_unwell_modifier = { - icon = health_negative - health = miniscule_health_penalty - prowess = medium_skill_penalty -} - -court_8080_degraded_modifier = { - icon = prestige_negative - monthly_prestige = -0.2 - health = miniscule_health_penalty -} - -court_humiliation_modifier = { - icon = social_negative - dynasty_opinion = -5 - general_opinion = -5 -} - -harbors_criminals_modifier = { - icon = social_negative - monthly_piety = -0.1 - same_faith_opinion = -5 -} - -# # County Modifiers - -hold_court_8001_ignored_modifier = { - icon = county_modifier_development_negative - county_opinion_add = -20 - development_growth_factor = small_development_growth_loss -} - -hold_court_8001_compensated_modifier = { - icon = county_modifier_development_positive - county_opinion_add = 10 - development_growth_factor = medium_development_growth_gain -} - -hold_court_8001_merchant_boon_modifier = { - icon = grandeur_positive - county_opinion_add = 20 - development_growth_factor = small_development_growth_gain -} - -hold_court_8001_merchant_bust_modifier = { - icon = county_modifier_development_negative - county_opinion_add = -10 - development_growth_factor = small_development_growth_loss -} - -hold_court_8010_fortifications_modifier = { - icon = martial_positive - additional_fort_level = 1 - garrison_size = 0.15 - travel_danger = -10 -} - -hold_court_8030_duel_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 - monthly_county_control_change_factor = 0.1 -} - -hold_court_8030_favored_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - development_growth_factor = 0.1 -} - -hold_court_8030_settled_county_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain -} - -hold_court_8030_spurred_modifier = { - icon = county_modifier_development_negative - development_growth_factor = tiny_development_growth_loss - levy_size = 0.1 -} - -hold_court_8060_built_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - development_growth_factor = tiny_development_growth_gain - travel_danger = -5 -} - -hold_court_8070_built_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 - development_growth_factor = small_development_growth_gain - travel_danger = -5 -} - -hold_court_8080_granted_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain - holding_build_gold_cost = -0.05 -} - -hold_court_8080_compromise_modifier = { - icon = county_modifier_development_positive - development_growth_factor = small_development_growth_gain - tax_mult = -0.2 -} - -hold_court_8080_upset_modifier = { - icon = county_modifier_development_negative - development_growth_factor = tiny_development_growth_loss - tax_mult = -0.1 -} - -hold_court_8110_steward_modifier = { - icon = county_modifier_development_positive - county_opinion_add = 10 - development_growth_factor = tiny_development_growth_gain -} - -hold_court_8110_execute_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -20 - development_growth_factor = tiny_development_growth_loss -} - -hold_court_8110_jester_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 - development_growth_factor = tiny_development_growth_loss -} - -hold_court_8120_tax_modifier = { - icon = stewardship_positive - tax_mult = 0.15 - development_growth_factor = tiny_development_growth_loss -} - -hold_court_8120_stopped_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 20 - development_growth_factor = tiny_development_growth_gain -} - -hold_court_8120_refused_modifier = { - icon = county_modifier_development_negative - county_opinion_add = -15 - development_growth_factor = tiny_development_growth_loss -} - -hold_court_8130_service_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -hold_court_8190_vassal_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -hold_court_8200_vassal_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -court_8090_commoners_modifier = { - icon = county_modifier_development_positive - development_growth_factor = medium_development_growth_gain -} - -# # Province Modifiers - -hold_court_8001_imprisoned_modifier = { - icon = prison_negative - county_opinion_add = -25 - development_growth_factor = small_development_growth_loss -} - -# House Modifiers - -hold_court_8140_house_modifier = { - icon = dog_positive - general_opinion = 5 - health = 0.1 -} diff --git a/common/modifiers/01_dlc_xp1_county_modifiers.txt b/common/modifiers/01_dlc_xp1_county_modifiers.txt deleted file mode 100644 index 3851ea4dd0..0000000000 --- a/common/modifiers/01_dlc_xp1_county_modifiers.txt +++ /dev/null @@ -1,43 +0,0 @@ -hold_court_preacher_loved_by_peasants_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 25 - development_growth_factor = 0.05 - monthly_county_control_change_add = -0.1 -} - -hold_court_beloved_preacher_imprisoned_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -50 - monthly_county_control_change_add = 0.1 -} - -hold_court_displeased_peasants_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -35 - travel_danger = 10 -} - -hold_court_less_building_cost_modifier = { - icon = county_modifier_development_positive - build_gold_cost = -0.1 -} - -fund_inspiration_missing_peasants_modifier = { - icon = county_modifier_development_negative - levy_reinforcement_rate = -0.25 -} - -held_public_execution_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -county_dismissed_servants_fear_modifier = { - icon = county_modifier_opinion_negative - county_opinion_add = -10 -} - -county_acknowledged_servants_fear_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 10 -} diff --git a/common/modifiers/01_inventory_modifiers.txt b/common/modifiers/01_inventory_modifiers.txt deleted file mode 100644 index 12c344f141..0000000000 --- a/common/modifiers/01_inventory_modifiers.txt +++ /dev/null @@ -1,9 +0,0 @@ -# inventory and artifact related modifiers - -# scaled by antiquarian Learning skill -antiquarian_modifier = { - artifact_decay_reduction_mult = -0.02 -} -local_artisan_modifier = { - icon = goods_negative -} diff --git a/common/modifiers/03_dlc_fp2_modifiers.txt b/common/modifiers/03_dlc_fp2_modifiers.txt index 995a15a828..f7eafe104d 100644 --- a/common/modifiers/03_dlc_fp2_modifiers.txt +++ b/common/modifiers/03_dlc_fp2_modifiers.txt @@ -892,8 +892,6 @@ fp2_champion_of_the_old_ways_modifier = { # prowess_per_stress_level = 2 #} - - #lay_ruler_issued_fatwa_modifier = { # icon = piety_positive # religious_head_opinion= -10 diff --git a/common/modifiers/04_ep2_modifiers_james.txt b/common/modifiers/04_ep2_modifiers_james.txt deleted file mode 100644 index 8e4a114f29..0000000000 --- a/common/modifiers/04_ep2_modifiers_james.txt +++ /dev/null @@ -1,168 +0,0 @@ -################################################## -# #County modifiers - - -################################################## -# #General Character Modifiers -full_of_dessert_modifier = { - icon = health_positive - health = 0.05 - stress_gain_mult = -0.1 -} - -stomach_ache_modifier = { - icon = health_negative - health = -0.1 - stress_gain_mult = 0.1 -} - -ate_human_heart = { - icon = martial_positive - monthly_martial_lifestyle_xp_gain_mult = 0.25 -} - -ate_human_heart_bad = { - icon = martial_positive - monthly_martial_lifestyle_xp_gain_mult = 0.15 - health = -0.1 -} - -succesful_food_experiment_modifier = { - icon = health_positive - health = 0.05 - stress_gain_mult = -0.1 -} - -well_rested_modifier = { - icon = health_positive - negate_health_penalty_add = 0.1 - stress_gain_mult = -0.1 -} - -tour_sleep_deprived_modifier = { - icon = health_negative - health = -0.05 - stress_gain_mult = 0.2 -} - -recent_arson_modifier = { - icon = county_modifier_development_negative - county_opinion_add = -10 - development_growth_factor = -0.5 - travel_danger = 10 -} - -arson_rebuilding_modifier = { - icon = county_modifier_development_positive - county_opinion_add = 5 - development_growth_factor = 0.75 - tax_mult = -1 - travel_danger = -5 -} - -highwaymen_eliminated_modifier = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 - monthly_county_control_change_factor = 0.2 - travel_danger = -15 -} - -skirmisher_learnings = { - icon = martial_positive - skirmishers_recruitment_cost_mult = -0.25 - skirmishers_recruitment_cost_mult = -0.25 -} - -heavy_infantry_learnings = { - icon = martial_positive - heavy_infantry_recruitment_cost_mult = -0.25 -} - -archers_learnings = { - icon = martial_positive - archers_recruitment_cost_mult = -0.25 -} - -cavalry_learnings = { - icon = martial_positive - light_cavalry_recruitment_cost_mult = -0.25 - heavy_cavalry_recruitment_cost_mult = -0.25 - archer_cavalry_recruitment_cost_mult = -0.25 - camel_cavalry_recruitment_cost_mult = -0.25 - elephant_cavalry_recruitment_cost_mult = -0.25 -} - -general_maa_learning = { - icon = martial_positive - men_at_arms_maintenance = -0.33 -} - -liege_bad_micromanagement = { - icon = martial_negative - men_at_arms_maintenance = 0.33 -} - -clearing_crime_modifier = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.1 - county_opinion_add = -5 - development_growth_factor = -0.05 - travel_danger = -10 -} - -totally_lost_modifier = { - icon = stress_negative - stress_gain_mult = 0.2 -} - -liesurely_studies = { - icon = stewardship_positive - monthly_stewardship_lifestyle_xp_gain_mult = 0.25 -} - -liesurely_stroll = { - icon = stress_positive - stress_gain_mult = -0.2 - stress_loss_mult = 0.1 -} - -guarded_garden = { - icon = county_modifier_control_positive - monthly_county_control_change_add = 0.3 -} - -military_studies = { - icon = martial_positive - monthly_martial_lifestyle_xp_gain_mult = 0.25 -} - -festival_disruption = { - icon = county_modifier_opinion_negative - county_opinion_add = -15 -} - -liege_judged_festival = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 - tax_mult = 0.1 -} - -pious_liege = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -tolerant_liege = { - icon = county_modifier_opinion_positive - county_opinion_add = 15 -} - -recent_cultural_festival = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} - -ep2_popular_liege = { - icon = county_modifier_opinion_positive - county_opinion_add = 5 -} diff --git a/common/modifiers/04_ep2_modifiers_jason.txt b/common/modifiers/04_ep2_modifiers_jason.txt deleted file mode 100644 index e00df12249..0000000000 --- a/common/modifiers/04_ep2_modifiers_jason.txt +++ /dev/null @@ -1,73 +0,0 @@ -################################################## -# #County modifiers - - -################################################## -# #General Character Modifiers - -unwilling_tourneyer_modifier = { - icon = tournament_negative -} - -generous_to_knights_modifier = { - icon = martial_positive - knight_effectiveness_mult = 0.15 -} - -safeguards_knightly_honor_modifier = { - icon = martial_positive - monthly_prestige_gain_per_knight_mult = 0.03 - courtly_opinion = 10 -} - -knightly_tales_modifier = { - icon = martial_positive - monthly_prestige_gain_per_knight_mult = 0.01 -} - -riders_of_song_modifier = { - icon = horse_positive - light_cavalry_recruitment_cost_mult = -0.2 - heavy_cavalry_recruitment_cost_mult = -0.2 - archer_cavalry_recruitment_cost_mult = -0.2 -} - -tales_of_knightly_valor_modifier = { - icon = prowess_positive - light_cavalry_recruitment_cost_mult = -0.2 - skirmishers_recruitment_cost_mult = -0.2 - heavy_infantry_recruitment_cost_mult = -0.2 -} - -tales_of_knightly_leadership_modifier = { - icon = martial_positive - pikemen_recruitment_cost_mult = -0.2 - archers_recruitment_cost_mult = -0.2 - elephant_cavalry_recruitment_cost_mult = -0.2 -} - -################################################## -# #Accolade Modifiers - -accolade_charmer_party_modifier = { - icon = fertility_positive - fertility = accolade_charmer_fertility_value - attraction_opinion = accolade_charmer_attraction_opinion_value -} - -accolade_charmer_party_high_modifier = { - icon = fertility_positive - fertility = accolade_charmer_fertility_high_value - attraction_opinion = accolade_charmer_attraction_opinion_high_value -} - -levy_captaincy_modifier = { - icon = martial_positive - levy_reinforcement_rate = 0.6 -} - -dutiful_realm_knights_modifier = { - icon = martial_positive - vassal_levy_contribution_mult = 0.15 - revolting_siege_morale_loss_mult = 0.25 -} diff --git a/common/modifiers/_modifiers.info b/common/modifiers/_modifiers.info index fa609d3707..e335aafa39 100644 --- a/common/modifiers/_modifiers.info +++ b/common/modifiers/_modifiers.info @@ -8,6 +8,19 @@ modifer_key = { # Effects, such as # tax_mult = 0.25 # county_opinion_add = -30 + + # Modifier can have scale that'll be calculated once when effect assigns a modifier, and later + # remains unchanged for the entire modifier duration + scale = { + + # Scripted value - can be named value or direct math here + # Root scope is the object that's going to get the modifier + # Scripted value top level description will be added to modifier description + value = scale_scripted_value + + # Loc key that's used for base level entry, to show alongside with the scaled value + desc = base_value_description + } } "modifier_key" is the name of the modifier, that is used in effects to apply it diff --git a/common/named_colors/culture_colors.txt b/common/named_colors/culture_colors.txt index 318c5fc6e0..e34c1d4bcd 100644 --- a/common/named_colors/culture_colors.txt +++ b/common/named_colors/culture_colors.txt @@ -64,10 +64,11 @@ colors = { georgian = { 0.6 0.3 0.8 } occitan = { 0.1 0.7 0.8 } czech = { 0.2 0.8 0.5 } - tocharian = { 0.75 0.45 0.95 } + tocharian = { 73 122 70 } jurchen = { 122 114 92 } bulgarian = { 0.7 0.5 0.5 } sardinian = { 0.9 0.9 0.3 } vlach = { 0.3 0.2 0.2 } songhai = { 0.7 0.2 0.4 } + brahui = { 1.0 0.4 0.4 } } diff --git a/common/nicknames/00_nicknames.txt b/common/nicknames/00_nicknames.txt deleted file mode 100644 index ca2d5f57a6..0000000000 --- a/common/nicknames/00_nicknames.txt +++ /dev/null @@ -1,505 +0,0 @@ -############################################# -# CHARACTER NICKNAMES -############################################# - -# Exclusively Historical Nicknames -nick_bluetooth = {} -nick_tanglehair = {} -nick_fairhair = {} -nick_haardraade = {} -nick_hardeknud = {} -nick_hildetand = {} -nick_lodbrok = {} -nick_ring = {} -nick_snake_in_the_eye = {} -nick_the_bald = { is_bad = yes } -nick_the_boneless = {} -nick_the_german = {} -nick_the_german_post_mortem = {} -nick_the_stranger = {} -nick_the_younger = {} -nick_whiteshirt = {} -nick_the_timely_rain = {} -nick_the_jade_unicorn = {} -nick_the_panther_head = {} -nick_the_tattooed_monk = {} -nick_the_black_whirlwind = {} -nick_the_winged_tiger = {} -nick_the_turbulent_river_dragon = {} -nick_the_wild = {} -nick_blue_snake = {} -nick_troublemaker = {} -nick_the_seer = {} -nick_the_red = {} -nick_the_curthose = {} -nick_the_deep_minded = {} -nick_the_white = {} -nick_the_destroyer = {} -nick_the_destroyer_prophecy = {} -nick_canmore = {} -nick_wang_khan = {} -nick_the_cucumber_king = {} -nick_the_peaceful = {} -nick_the_whetstone = {} -nick_the_slayer_of_the_snake = {} -nick_the_illuminator = {} -nick_the_builder = {} -nick_the_martyrophile = {} -nick_the_campeador = {} -nick_the_missionary = {} -nick_the_oppressor = { is_bad = yes } -nick_genghis_khan = {} -nick_the_hairy = {} # If this is bad, I don't want to be right. -nick_the_child = { is_bad = yes } -nick_the_wake = {} - -# Warfare, Losing Wars -nick_the_unready = { is_bad = yes } -nick_the_unready_anglo_saxon = {} -nick_the_quarreller = { is_bad = yes } -nick_the_rash = { is_bad = yes } -nick_the_foolish = { is_bad = yes } -nick_the_hotspur = { is_bad = yes } -nick_the_traitor = { is_bad = yes } - -# Warfare, Winning Wars -nick_the_conqueror = {} -nick_the_crusader = {} -nick_the_great = {} -nick_the_hammer = {} -nick_the_liberator = {} -nick_the_restorer = {} -nick_the_usurper = {} -nick_the_victorious = {} -nick_the_lionheart = {} -nick_the_avenger = {} -nick_the_undefeated = {} #Special nickname for winning 100 battles without any losses. -nick_the_triumphant = {} #Special nickname for defeating the undefeated. -nick_the_big_halberd = {} -nick_the_vanquisher = {} -nick_the_inevitable = {} -nick_the_courageous = {} -nick_the_brilliant = {} -nick_the_peacemaker = {} -nick_the_bane_of_danes = {} -nick_the_culture_wall = {} -nick_nord_foe = {} -nick_the_scourge_of_the_northerners = {} -nick_the_burner_of_ash = {} - -# Fame -nick_the_cannibal = { is_bad = yes } -nick_the_dragon = {} -nick_the_devourer = {} -nick_the_bewitched = { is_bad = yes } -nick_the_witch = { is_bad = yes } -nick_the_drunkard = { is_bad = yes } -nick_the_troubadour = {} -nick_the_glorious = {} -nick_the_ecumenist = {} -nick_the_dane = {} -nick_the_tuatha_de_danann = {} -nick_pendragon = {} -nick_the_sword_of_god = {} -nick_the_messenger_of_christ = {} -nick_the_maiden_of_virgin = {} -nick_the_knight_of_gabriel = {} -nick_the_shepherd = {} -nick_the_judge = {} -nick_the_saoshyant = {} -nick_the_wizard = {} -nick_the_thunderbolt = {} -nick_the_whirlwind = {} -nick_the_beautiful_beard = {} -nick_the_unrestrained = {} -nick_the_ferocious_giant = {} -nick_the_prodigy = {} -nick_the_greedy = { is_bad = yes } -nick_the_timid = { is_bad = yes } -nick_the_truthspeaker = { } -nick_the_worthy = { } -nick_the_unworthy = { is_bad = yes } -nick_the_snorer = { is_bad = yes } -nick_troll_slayer = {} -nick_gajapati = {} - -# Adultery -nick_the_unfaithful = { is_bad = yes } # Female -nick_the_unchaste = { is_bad = yes } # Either Gender -nick_the_quick = { is_bad = yes } # Male - -# Seduction - Female -nick_the_beguiling = {} -nick_the_temptress = { is_bad = yes } -nick_the_seductress = {} - -# Seduction - Male -nick_the_lewd = { is_bad = yes } -nick_the_lecher = { is_bad = yes } -nick_the_seducer = {} - -# Intrigue Focus -nick_the_shadow = {} -nick_the_whisperer = {} -nick_the_spider = {} -nick_the_deceiver = {} -nick_the_crow = {} -nick_the_trickster = {} -nick_the_sly = {} - -# Intrigue Events -nick_the_mindbreaker = {} -nick_the_flayer = {} -nick_the_heartbreaker = { is_bad = yes } - -# Statecraft Focus -nick_the_fox = {} -nick_the_shrewd = {} -nick_the_gracious = {} -nick_the_magnanimous = {} -nick_the_affable = {} -nick_the_bard = {} -nick_the_bard_ironic = { is_bad = yes } -nick_the_diplomat = {} -nick_the_magnificent = {} -nick_the_silly = { is_bad = yes } - -# Statecraft Events -nick_the_bully = { is_bad = yes } - -# Governance Focus -nick_the_architect = {} -nick_the_lawgiver = {} -nick_the_just = {} -nick_the_benevolent = {} -nick_the_generous = {} -nick_moneybags = { is_bad = yes } - -# Governance Events -nick_the_gardener = { is_bad = yes } -nick_the_poet = { is_bad = yes } -nick_the_selfish = { is_bad = yes } -nick_the_meticulous = { } -nick_the_elegant = {} - -# Warfare Focus -nick_the_ironside = {} -nick_the_ruthless = { is_bad = yes } -nick_the_brute = { is_bad = yes } -nick_the_bear = {} -nick_the_lion = {} -nick_the_wolf = {} -nick_the_bold = {} -nick_the_brave = {} -nick_the_hunter = {} -nick_the_fearless = {} -nick_the_fowler = {} -nick_the_tactician = {} -nick_the_overseer = {} -nick_the_guardian = {} -nick_the_chivalrous = {} -nick_the_valiant = {} -nick_the_butcher = { is_bad = yes } -nick_the_bloody = { is_bad = yes } - -# Warfare Events -nick_the_stalwart = {} -nick_the_merciless = {} -nick_the_imperious = {} -nick_the_fury = {} -nick_feareater = {} -nick_the_hawk = {} -nick_the_unrelenting = {} -nick_the_black_adder = {} -nick_the_eager = { is_bad = yes } - -# Scholarship Focus -nick_the_wise = {} -nick_the_scholar = {} -nick_the_sage = {} -nick_the_philosopher = {} -nick_the_truthseeker = {} -nick_the_chronicler = {} -nick_the_historian = {} -nick_the_silent = { is_bad = yes } - -# Medicine Focus -nick_the_fishy = { is_bad = yes } -nick_the_immortal = {} - -# Dread/Sadism -nick_the_impaler = { is_bad = yes } -nick_the_tormentor = { is_bad = yes } -nick_the_depraved = { is_bad = yes } -nick_the_monster = { is_bad = yes } -nick_the_cruel = { is_bad = yes } -nick_the_child_of_devilgod = { is_bad = yes } - -# Impious -nick_the_wicked = { is_bad = yes } -nick_the_accursed = { is_bad = yes } -nick_priest_hater = { is_bad = yes } -nick_priest_eater = { is_bad = yes } #for cannibal priest haters -nick_the_heathen = { is_bad = yes } -nick_the_heathen_rebel = {} -nick_the_devil = { is_bad = yes } -nick_the_black = { is_bad = yes } # Christian only -nick_the_oathbreaker = { is_bad = yes } -nick_the_demon = { is_bad = yes } # non-Christian or Muslim -nick_the_apostate = {} #Technically bad, but you'd usually wear it as a badge of merit. -nick_the_pagan = {} #Technically bad, but you'd usually wear it as a badge of merit. -nick_the_heretic = {} - -# Pious -nick_the_pious = {} # Not Indian -nick_the_apostle = {} # Christian -nick_the_blessed = {} # Christian, Muslim, Jewish -nick_the_theologian = {} -nick_the_enlightened = {} # Indians -nick_the_holy = {} -nick_the_confessor = {} -nick_the_chaste = {} -nick_the_martyr = {} -nick_the_monk = {} -nick_the_saint = {} -nick_the_pilgrim = {} -nick_the_divine = {} -nick_the_anointed = {} -nick_the_flash = {} -nick_the_passionate = {} - -# Rule, Positive -nick_the_able = {} -nick_the_compassionate = {} -nick_the_noble = {} -nick_the_gentle = {} -nick_the_good = {} -nick_the_kind = {} -nick_the_merry = {} -nick_the_honorable = {} -nick_the_loyal = {} -nick_the_trustworthy = {} -nick_the_trustworthy_ironic = { is_bad = yes } -nick_the_honest = {} -nick_the_great_and_terrible = {} # I mean, it's *sorta* positive? -nick_the_justicar = {} - -# Rule, Negative -nick_the_terrible = { is_bad = yes } -nick_the_tyrant = { is_bad = yes } -nick_the_old = { is_bad = yes } -nick_the_betrayer = { is_bad = yes } -nick_the_shy = { is_bad = yes} - -# On Finishing Education -nick_the_young = { is_bad = yes } -nick_the_bastard_rumoured = { is_bad = yes } -nick_the_bastard = { is_bad = yes } -nick_the_proud = {} - -# Health & Genetics, Positive -nick_the_strong = {} -nick_the_handsome = {} -nick_the_fair = {} -nick_the_giant = {} -nick_the_girthy = {} - -# Health & Genetics, Negative -nick_the_mad = { is_bad = yes } -nick_the_simple = { is_bad = yes } -nick_the_leper = { is_bad = yes } -nick_half_hand = { is_bad = yes } -nick_the_hideous = { is_bad = yes } -nick_the_frog = { is_bad = yes } -nick_the_repulsive = { is_bad = yes } -nick_the_frail = { is_bad = yes } -nick_the_weak = { is_bad = yes } -nick_the_lame = { is_bad = yes } -nick_the_lisp_and_lame = { is_bad = yes } -nick_the_hunchback = { is_bad = yes } -nick_the_fat = { is_bad = yes } -nick_the_plump = { is_bad = yes } -nick_the_blind = { is_bad = yes } -nick_the_stammerer = { is_bad = yes } -nick_the_gouty = { is_bad = yes } -nick_the_diseased = { is_bad = yes } -nick_bad_hand = { is_bad = yes } -nick_the_little = { is_bad = yes } -nick_the_one_eyed = { is_bad = yes } -nick_the_trembling = { is_bad = yes } -nick_the_insane = { is_bad = yes } -nick_the_sleeper = {} - -# Major Decisions -nick_the_motherfather_of_spain = {} -nick_the_unifier_of_africa = {} -nick_the_wend = {} -nick_the_crowned = {} -nick_the_bogatyr = {} -nick_the_polyanitsa = {} -nick_the_defender_of_highgod = {} -nick_the_blood_motherfather = {} -nick_the_stupor_mundi = {} -nick_the_glass = {} -nick_the_ladylord_of_the_ganges = {} -nick_the_trojan = {} -nick_the_sea_king = {} -nick_the_defiant = {} -nick_father_of_the_baltic = {} -nick_mother_of_the_baltic = {} -nick_scourge_of_the_baltic = {} -nick_the_mountain_king = {} - -# Killjoy. -nick_the_stonefaced = { is_bad = yes } -nick_the_dry = { is_bad = yes } -nick_the_joyless = { is_bad = yes } -nick_lacks_laughs = { is_bad = yes } -nick_the_dull = { is_bad = yes } -nick_the_naysayer = { is_bad = yes } - -# Misc & Easter Egg -nick_tiny = { is_prefix = yes } -nick_little = { is_prefix = yes } -nick_the_viking = {} -nick_the_savage = {} -nick_of_clairvaux = {} -nick_the_transcriber = {} -nick_the_headless = {} -nick_the_garlic = { is_bad = yes } -nick_garlic_queen = { is_bad = yes } -nick_the_footstool = {} -nick_the_cosmic_poet = {} -nick_monophthalmos = {} -nick_the_wary = {} -nick_the_black_sheep = {} -nick_sisyphus = {} -nick_blue_lion = {} -nick_the_mountain_dweller = {} -nick_strongarm = {} -nick_the_honest_hipped = {} -nick_the_shadow_riad = {} -nick_the_legend_riad = {} -nick_the_green = {} -nick_the_true_culture = {} -nick_the_reformer = {} -nick_royalsbane = {} #Dietwin! - -# Hold Court/Petition Events -nick_the_child_killer = { is_bad = yes } -nick_the_anathema = { is_bad = yes } -nick_the_angel_of_death = { is_bad = yes } -nick_health_god_mercy = { } -nick_fabulous_she_he = { } - -# Unsorted -nick_benavert = {} - -# From CK2 -nick_the_resilient = {} -nick_one_eye = { is_bad = yes } -nick_one_hand = { is_bad = yes } -nick_one_leg = { is_bad = yes } -nick_of_a_thousand_faces = {} -nick_the_plaguebearer = { is_bad = yes } -nick_the_persevering = {} -nick_the_lord_of_realm = {} -nick_twistedbeard = {} -nick_the_boar = {} -nick_the_faceless = { is_bad = yes } -nick_the_cyclops = { is_bad = yes } -nick_the_beanstalk = { is_bad = yes } -nick_the_nun = {} -nick_the_ill_ruler = { is_bad = yes } -nick_the_dragoness = {} -nick_the_careless = { is_bad = yes } -nick_the_undying = {} -nick_of_the_empty_pockets = { is_bad = yes } -nick_the_goliath = {} -nick_the_shield_of_capital = {} -nick_the_ladder_legs = { is_bad = yes } -nick_the_peacock = { is_bad = yes } -nick_the_bellower = { is_bad = yes } -nick_the_healer = {} -nick_the_prophet = {} -nick_the_understanding = {} -nick_the_righteous = {} -nick_the_venerable = {} -nick_the_miracle_worker = {} -nick_the_merciful = {} -nick_the_silver_tongue = {} -nick_the_stallion = {} -nick_the_forgetful = {} -nick_the_hermit = { is_bad = yes } -nick_the_recluse = { is_bad = yes } -nick_the_feeble = { is_bad = yes } -nick_the_vain = { is_bad = yes } -nick_the_castellan = {} -nick_the_carpenter = {} -nick_the_griffin = {} -nick_the_patron_of_arts = {} -nick_the_zealot = {} -nick_the_elder = {} -nick_the_evil = {} -nick_the_jovial = {} -nick_the_jolly = {} -nick_the_strange = {} -nick_the_unlucky = {} -nick_the_lucky = {} -nick_the_effeminate = { is_bad = yes } -nick_the_clueless = { is_bad = yes } -nick_the_ill_tempered = { is_bad = yes } -nick_the_sleeping_king = { is_bad = yes } - -# Various sources (mainly dev suggestions) -nick_the_humble = { } -nick_the_horse = { } -nick_the_desired = {} -nick_the_determined = { } -nick_do_nothing = { is_bad = yes } -nick_the_indolent = { is_bad = yes } -nick_the_sluggard = { is_bad = yes } -nick_the_idle = { is_bad = yes } -nick_the_short = { is_bad = yes } -nick_longshanks = { } -nick_the_wrathful = { is_bad = yes } -nick_elbow_high = { is_bad = yes } -nick_the_beautiful = { } -nick_the_rotund = { is_bad = yes } -nick_the_faith = { } -nick_the_eunuch = { is_bad = yes } -nick_longsword = { } -nick_greataxe = { } -nick_the_mace = { } -nick_the_spear_of_capital = { } -nick_the_maul = { } -nick_the_tiger_of_place = { } -nick_the_actually_bald = { is_bad = yes } -nick_the_bald_ironic = { is_bad = yes } - -# Community suggested -nick_the_navigator = { } -nick_foul_fart = { is_bad = yes } # Historical viking nickname -nick_ale_lover = { is_bad = yes } # Historical viking nickname -nick_the_berserker = { } -nick_the_iron_and_golden_king = { } -nick_the_slobberer = { is_bad = yes } -nick_the_lover_of_elegance = { } -nick_the_universal_spider = { } -nick_the_collector = { } -nick_the_haunted = { is_bad = yes } -nick_the_quarrelsome = { is_bad = yes } -nick_the_petulant = { is_bad = yes } -nick_the_turbulent = { is_bad = yes } -nick_the_disgraceful = { is_bad = yes } -nick_the_negotiator = { } -nick_the_executioner = { } -nick_cuckoo = { is_bad = yes } -nick_aurei_testiculi = { } # Historical anglo-saxon nickname -nick_chubbycheeks = { is_bad = yes } # Historical anglo-saxon nickname -nick_pennyfather = { is_bad = yes } # Historical anglo-saxon nickname -nick_swan_neck = { } # Historical anglo-saxon nickname -nick_lackland = { is_bad = yes } -nick_softsword = { is_bad = yes } -nick_the_chimera = { is_bad = yes } -nick_the_abominable = { is_bad = yes } diff --git a/common/nicknames/01_bp1_nicknames.txt b/common/nicknames/01_bp1_nicknames.txt deleted file mode 100644 index 360b221939..0000000000 --- a/common/nicknames/01_bp1_nicknames.txt +++ /dev/null @@ -1,13 +0,0 @@ -############################################# -# CHARACTER NICKNAMES -############################################# - -nick_the_real = { is_prefix = yes } -nick_baby_eating = { is_prefix = yes is_bad = yes } -nick_the_dung_named = { is_bad = yes } -nick_with_the_tress = { } -nick_with_the_lock = { } -nick_irontooth = { } -nick_the_dunged = { is_bad = yes } -nick_the_smelly = { is_bad = yes } -nick_the_venator = { } diff --git a/common/nicknames/01_roco_nicknames.txt b/common/nicknames/01_roco_nicknames.txt deleted file mode 100644 index 00c15c140c..0000000000 --- a/common/nicknames/01_roco_nicknames.txt +++ /dev/null @@ -1,27 +0,0 @@ -####################################### -### Royal Court Character Nicknames ### -####################################### - -# Historical Nicknames -nick_akritis = {} #Byzantine nickname -nick_the_conquistador = {} #Spanish nickname -nick_sem_pavor = {} #Portuguese nickname -nick_al_mansur = {} #Moorish nickname -nick_the_irreproachable = {} #French nickname -nick_the_chevalier = {} #English nickname -nick_king_of_fashion = {} -nick_prince_of_fashion = { is_bad = yes } - -# Petition Nicknames -nick_the_foreigner = { is_bad = yes } -nick_the_culture = {is_bad = yes } -nick_the_linguist = { is_bad = yes } -nick_the_clumsy = { is_bad = yes } -nick_the_stumbler = { is_bad = yes } -nick_the_graceful = { is_bad = yes } -nick_the_heart_throb = { is_bad = yes } -nick_the_stud = { is_bad = yes } -nick_the_blushing = { is_bad = yes } -nick_the_stutterer = { is_bad = yes } -nick_the_slow = { is_bad = yes } -nick_the_eloquent = { is_bad = yes } diff --git a/common/nicknames/03_fp2_nicknames.txt b/common/nicknames/03_fp2_nicknames.txt deleted file mode 100644 index 5c36e9fa54..0000000000 --- a/common/nicknames/03_fp2_nicknames.txt +++ /dev/null @@ -1,24 +0,0 @@ -################################################ -### FP2 (Fate of Iberia) Character Nicknames ### -################################################ - -# Unsorted (migrated from main file) -nick_the_requiem = { is_bad = yes } -nick_the_bell_keeper = { is_bad = yes } -nick_the_bearded = {} - -# Historical Nicknames -nick_the_hawk_of_quraysh = {} -nick_the_cid_campeador = {} - -# Event Reward Nicknames -nick_the_King_of_Thieves = {} # Sounds bad, but it is worn like a badge of honour -nick_the_Queen_of_Thieves = {} # Would not have the same "punch" if gender agnostic -nick_the_Thief_Slayer = {} -nick_the_flying = {} -nick_the_flightless = {} - -nick_the_crownless = {} # If you sell your crown - -nick_the_pragmatic = {} # Compromise reward -nick_the_equitable = {} # Conciliation reward diff --git a/common/nicknames/04_ep2_nicknames.txt b/common/nicknames/04_ep2_nicknames.txt deleted file mode 100644 index 1c114757c7..0000000000 --- a/common/nicknames/04_ep2_nicknames.txt +++ /dev/null @@ -1,38 +0,0 @@ -################################################# -### Tours and Tournaments Character Nicknames ### -################################################# - -# Historical Nicknames - -# Event nicknames -nick_the_nameless = {} -nick_the_discussant = {} -nick_northmen_slayer = {} -nick_pirate_slayer = {} -nick_son_of_dangerous_animal = {} -nick_the_own_culture = {} -nick_the_mother_culture = {} -nick_the_father_culture = {} -nick_prester_john = {} -nick_prester_joan = {} -nick_the_thoughtless = { is_bad = yes } -nick_the_heartless = { is_bad = yes } -nick_the_craven = { is_bad = yes } -nick_monarch_of_beauty_and_noblesse_masc = {} -nick_monarch_of_beauty_and_noblesse = {} -nick_monarch_of_grim_and_grievance_masc = { is_bad = yes } -nick_monarch_of_grim_and_grievance = { is_bad = yes } -nick_monarch_of_fools_masc = { is_bad = yes } -nick_monarch_of_fools = { is_bad = yes } -nick_the_just_widowed = { is_bad = yes } -nick_bloody_hand = { } # Is this bad? Kinda, but it is cool so players will like it - -# Tournaments -nick_the_dirty = { is_bad = yes } -nick_the_champion = {} -nick_the_toxophilite = {} -nick_saddle_born = {} -nick_the_cheater = { is_bad = yes } -nick_monarch_of_dice = {} -nick_monopod = {} -nick_sure_footed = {} diff --git a/common/on_action/accolade_on_actions.txt b/common/on_action/accolade_on_actions.txt deleted file mode 100644 index f881f64496..0000000000 --- a/common/on_action/accolade_on_actions.txt +++ /dev/null @@ -1,186 +0,0 @@ -# Root = Accolade -# Event targets: positive ( bool ) -on_accolade_rank_change = { - effect = { - save_scope_as = changing_accolade - accolade_owner = { - # level up notification - if = { - limit = { - scope:positive = yes - } - trigger_event = accolade.0001 - } - # level down notification - else = { - trigger_event = accolade.0002 - } - } - - if = { - limit = { - scope:changing_accolade = { - accolade_rank >= 1 - acclaimed_knight = { - exists = this - NOT = { - any_memory = { - has_memory_type = accolade_ranked_up - } - } - } - } - scope:positive = yes - } - scope:changing_accolade.acclaimed_knight = { - create_character_memory = { - type = accolade_ranked_up - participants = { - liege = root.accolade_owner - } - } - } - } - } -} - -# Root = Accolade -# Event targets: glory ( value ) -on_accolade_glory_change = { - -} - -# Root = Accolade -on_accolade_created = { - effect = { - if = { - limit = { - acclaimed_knight ?= { - NOT = { - any_memory = { - has_memory_type = accolade_created - } - } - } - } - acclaimed_knight ?= { - create_character_memory = { - type = accolade_created - participants = { - liege = root.accolade_owner - } - } - } - } - } -} - -# Root = Accolade -# Event targets: new_owner -on_active_accolade_succession = { - -} - -# Root = Accolade -# Event targets: new_owner -on_inactive_accolade_succession = { - -} - -# Root = Accolade -# Event targets: old_acclaimed_knight, new_accolade_type ( yes/no ) -on_accolade_acclaimed_death = { - -} - -# Root = Accolade -# Event targets: old_acclaimed_knight, new_accolade_type ( yes/no ) -on_accolade_acclaimed_removal = { - -} - -# Root = Accolade -on_accolade_successor_death = { - -} - -# Root = Accolade -on_accolade_successor_removal = { - -} - -# Root = Accolade -# Event targets: owner -on_accolade_deactivated = { - effect = { - save_scope_as = dead_accolade - accolade_owner = { - trigger_event = accolade.0003 - } - if = { - limit = { - acclaimed_knight ?= { - NOT = { - any_memory = { - has_memory_type = stripped_of_accolade - } - } - } - } - acclaimed_knight ?= { - create_character_memory = { - type = stripped_of_accolade - participants = { - liege = root.accolade_owner - } - } - } - } - } -} - -# Root = Accolade -# Event targets: glory ( value ), new_accolade_type ( bool ), new_acclaimed_knight -on_accolade_new_acclaimed_knight = { - effect = { - # for accolade keeping its types - if = { - limit = { - scope:new_accolade_type = no - } - save_scope_as = succeeding_accolade - accolade_owner = { - trigger_event = accolade.0004 - } - } - # for accolade changing its types - else = { - save_scope_as = succeeding_accolade - secondary_type = { - save_scope_as = new_secondary - } - accolade_owner = { - trigger_event = accolade.0005 - } - } - if = { - limit = { - scope:new_acclaimed_knight = { - NOT = { - any_memory = { - has_memory_type = became_acclaimed - } - } - } - } - scope:new_acclaimed_knight = { - create_character_memory = { - type = became_acclaimed - participants = { - liege = root.accolade_owner - } - } - } - } - } -} diff --git a/common/on_action/activities/activities_on_actions.txt b/common/on_action/activities/activities_on_actions.txt deleted file mode 100644 index e02abfc9b0..0000000000 --- a/common/on_action/activities/activities_on_actions.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/common/on_action/activities/feast_on_actions.txt b/common/on_action/activities/feast_on_actions.txt deleted file mode 100644 index a712de57df..0000000000 --- a/common/on_action/activities/feast_on_actions.txt +++ /dev/null @@ -1,202 +0,0 @@ -# On actions for the Feast activity - -#Select appropriate main event or default -feast_main_event_selection = { - trigger = { #To make sure the ones who choose the murder feast will always get that event! - exists = scope:activity - NOT = { - scope:activity.activity_host = { - exists = var:murder_feast - } - } - scope:activity = { - NOT = { - exists = var:had_special_chain - } - } - } - random_events = { - 10 = feast_main_stew_flood.0001 - 25 = feast_main_live_fowl.0001 - 10 = feast_main_stable_breakin.0001 - 200 = feast_main_befriend.0001 - } - effect = { - scope:activity = { - set_variable = had_special_chain - } - } -} - - -# Picks out a start event -feast_start_events = { - events = { - feast.2001 - feast.2501 - } -} - -# Picks out the event for a participant in a default feast -feast_new_event_selection_tombola = { - random_on_action = { - 1 = feast_main_event_selection - 3 = feast_default_event_selection - 3 = feast_default_host_event_selection - } -} - -feast_default_event_selection = { - random_events = { - # Intent Events - 200 = feast_events_ewan.0001 # Clear your Head - Ambush your target when they go out for a walk. - 200 = feast_default.1012 #Sneaky Murder - 200 = feast_default.1014 #Murder with one witness - 200 = feast_events_ewan.0201 # Dinner and a Show - Position yourself opposite your intent_target, eat seductively. - 100 = feast_default.2002 #You are the target of someone elses seduce scheme - 200 = feast_events_ewan.0401 # Stomach Rumbling - Bond with your intent_target over the terrible/excellent food. - 200 = feast_events_ewan.0601 # A Mere Jest - Stuff a gross item (e.g., dead rat) in a refined foodstuff (e.g., jug of wine). - 200 = feast_events_ewan.0801 # A Pleasing Atmosphere - Sit back and enjoy the vibes. - #Self-triggered events - 100 = feast_default.2003 #I or they are a befriend target and we share traits - 50 = feast_default.2006 #I am targeted by someone elses befriend or seduce intent - 10 = feast_default.1001 #A guest is impressed with your high learning - 10 = feast_default.1002 #You get grumpy because the food is late - 10 = feast_default.1003 #Someone is "impressed" with your high learning - 10 = feast_default.1004 #You enjoy the magnificent food - 10 = feast_default.1005 #Shy: You're having a hard time socializing - 30 = feast_default.1006 #Reveler is in their element - 20 = feast_default.1007 #Two Gluttons admire each other - 5 = feast_default.1008 #You reveal a secret about yourself - 5 = feast_default.1009 #You reveal a secret about someone else - 5 = feast_default.1010 #Promise someone a favor - 5 = feast_default.1011 #You get drunk and kill someone - 5 = feast_default.1012 #Sneaky murder of character you dislike - 5 = feast_default.1013 #Murder someone for attacking friend/lover/sibling - 5 = feast_default.1014 #Murder someone, one witness! - 5 = feast_default.1016 #Steal a trinket, maybe get a witness - 5 = feast_default.1020 #Dislike host, deface a displayed Court Artifact - 10 = feast_default.1030 #Minstrel performs a song about your acclaimed knights - 20 = feast_default.6501 #Someone says something with a lewd double-meaning - #Target-triggered events - 10 = feast_default.2001 #Glutton gets angry waiting for food - 40 = feast_default.2002 #Someone sends you a secret love letter - 10 = feast_default.2003 #Bond with someone you have traits in common with - 10 = feast_default.2005 #Someone throws up on you - 20 = feast_default.2006 #Someone has a befriend/seduce scheme against you - 20 = feast_default.2007 #Two lovers are exposed - 10 = feast_default.2008 #Lustful secret homosexual discovered with a servant - 5 = feast_default.2009 #Learn a secret about someone else - 5 = feast_default.2010 #Learn a secret about someone else from a third party - 5 = feast_default.2011 #Someone makes grand promises to you - 5 = feast_default.2012 #Someone is murdered, you're a witness! - 40 = feast_default.2013 #Guest tries butter up to shared liege - 20 = feast_default.6111 #A guest rambles on and on - 20 = feast_default.6101 #Guest is having a hard time socializing - 20 = feast_default.6251 #Chance to become friend or rival - #Relation events - 20 = feast_default.3001 #Have a good time with a friend - 20 = feast_default.3002 #A chance to exchange "kisses" with a Lover - 20 = feast_default.3003 #Altercation with a Rival - 20 = feast_default.3004 #Insult your rival - 10 = feast_default.3005 #Rival duel! - 5 = feast_default.3096 #Soiree with another attendee - 5 = feast_default.3007 #Caught committing adultery with a Lover - #Host-triggered events - 20 = feast_default.5001 #Host's high Dread causes you Stress - 20 = feast_default.5002 #Host is lunatic - 20 = feast_default.5003 #Host is sadistic - 20 = feast_default.5004 #Host is a reveler - 5 = feast_default.5005 # You love garum - #Warfare lifestyle events - 20 = feast_lifestyle.1001 #Have a heated argument over the best strategies - 20 = feast_lifestyle.1002 #Paint strategies in your food and make plans - 20 = feast_lifestyle.1003 #Strategise for a theoretical attack on the feast - 20 = feast_lifestyle.1004 #Ask others about their preferred strategies - #Intrigue lifestyle events - 20 = feast_lifestyle.2001 #A guest is taught a lesson - 20 = feast_lifestyle.2002 #Make a guest reveal their secret - 20 = feast_lifestyle.2003 #Practice getting information out of people - 20 = feast_lifestyle.2004 #Practice seeing details - } -} - -feast_default_host_event_selection = { #Picks out the event for the host of a default feast - trigger = { - exists = scope:activity - } - random_events = { - #General events also applicable to the Host - 10 = feast_default.1001 #A guest is impressed with your high learning - 10 = feast_default.1003 #Someone is "impressed" with your high learning - 20 = feast_default.1005 #You're having a hard time socializing - 30 = feast_default.1006 #Reveler is in their element - 20 = feast_default.1007 #Two Gluttons admire each other - 5 = feast_default.1008 #You reveal a secret about yourself - 5 = feast_default.1009 #You reveal a secret about someone else - 5 = feast_default.1010 #Promise someone a favor - 1 = feast_default.1011 #You get drunk and kill someone - 5 = feast_default.1012 #Sneaky murder of character you dislike - 5 = feast_default.1013 #Murder someone for attacking friend/lover/sibling - 5 = feast_default.1014 #Murder someone, one witness! - 10 = feast_default.1030 #Minstrel performs a song about your acclaimed knights - 10 = feast_default.2002 #Someone sends you a secret love letter - 10 = feast_default.2003 #Bond with someone you have traits in common with - 10 = feast_default.2005 #Someone throws up on you - 20 = feast_default.2006 #Someone has a befriend scheme against you - 10 = feast_default.2007 #Two lovers are exposed - 50 = feast_default.2008 #Lustful secret homosexual discovered with a servant - 5 = feast_default.2009 #Learn a secret about someone else - 5 = feast_default.2010 #Learn a secret about someone else from a third party - 5 = feast_default.2011 #Someone makes grand promises to you - 5 = feast_default.2012 #Someone is murdered, you're a witness! - 20 = feast_default.3001 #Have a good time with a friend - 20 = feast_default.3002 #A chance to exchange "kisses" with a Lover - 20 = feast_default.3003 #Altercation with a Rival - 20 = feast_default.3004 #Insult your rival - 10 = feast_default.3005 #Rival duel! - 5 = feast_default.3096 #Soiree with an attendee - 5 = feast_default.3007 #Caught committing adultery with a Lover - 20 = feast_default.6101 #Guest is having a hard time socializing - 50 = feast_default.6111 #A guest rambles on and on - 20 = feast_default.6251 #Chance to become friend or rival - 20 = feast_default.6501 #Someone says something with a lewd double-meaning - #Warfare lifestyle events - 20 = feast_lifestyle.1001 #Have a heated argument over the best strategies - 20 = feast_lifestyle.1002 #Paint strategies in your food and make plans - 20 = feast_lifestyle.1003 #Strategise for a theoretical attack on the feast - 20 = feast_lifestyle.1004 #Ask others about their preferred strategies - #Intrigue lifestyle events - 20 = feast_lifestyle.2001 #A guest is taught a lesson - 20 = feast_lifestyle.2002 #Make a guest reveal their secret - 20 = feast_lifestyle.2003 #Practice getting information out of people - 20 = feast_lifestyle.2004 #Practice seeing details - #Statecraft lifestyle events - 20 = feast_lifestyle.3001 #Seat important people beside each other - ####################### - #Host-specific events # - ####################### - 50 = feast_default.6001 #Spouse has done a great job - 50 = feast_default.6002 #Guest complements your feast - 30 = feast_default.6003 #Guests getting into a fight - 50 = feast_default.6121 #Serve a guest food you know they hate - 50 = feast_default.6231 #There's no more wine! - 50 = feast_default.6261 #Serve the guests something new (cannibal) - #RoCo Content - 3 = feast_default.6301 # Your court artifact on display has been damaged! - 3 = feast_default.6351 # Two guests get into a fight, causing damage to one of your displayed Court Artifacts! - } -} - -feast_murder_feast_event_selection = { - random_events = { - 50 = feast_default.8001 # Kill the whole entourage - 50 = feast_default.8002 # Kill only your target - 50 = feast_default.8003 # Kill only your target - sneaky mode - } -} - -################################################## -# REWORKED FEAST CONTENT - - diff --git a/common/on_action/activities/hunt_on_actions.txt b/common/on_action/activities/hunt_on_actions.txt deleted file mode 100644 index a4f52330b1..0000000000 --- a/common/on_action/activities/hunt_on_actions.txt +++ /dev/null @@ -1,221 +0,0 @@ -# On actions for the Hunt activity - -# 1. Start/Method -hunt_start_events = { - trigger = { - exists = scope:activity - involved_activity.activity_host ?= this - } - events = { - hunt.0500 # Standard - hunt.0510 # Legendary - hunt.0530 # Falconry - } -} - -# 2. Random Flavor -hunt_random_pulse = { - trigger = { - exists = scope:activity - OR = { - is_ai = no - involved_activity.activity_host ?= this - } - } - random_events = { - chance_of_no_event = { - if = { - limit = { this = scope:host } - value = 0 - } - else = { value = 50 } - } - # Generic - 100 = hunt.1011 #A rival, or someone that doesn't like you, is being an ass - 5 = hunt.1021 #You run into a beautiful peasant - 100 = hunt.1023 #Dog helps you find animal - 200 = hunt.4002 #A hunt guest shares a secret about someone with you - 100 = hunt.4003 #Poachers in the woods - 5 = hunt.4008 #Someone kills peasant - 100 = hunt.4015 #You walk in (out?) on lovers - 100 = hunt.5001 #You get the urge to pick herbs and flowers - 100 = hunt.5002 #Someone in your hunting party gets the urge to pick herbs and flowers - # Legendary - 5 = hunt.4012 #See glimpse of mystical animal - starts story from sighting/randomly - 5 = hunt.7001 #Meet local madman (Shrek) - 5 = hunt.7020 #Boulder jumping - # Relations - 200 = hunt.4011 #Your lover has come with, sneak away together - 150 = hunt.5003 #Your lover gives you flowers or a dead animal - # Intents - 500 = hunt.7100 #Seduce convo - 500 = hunt.7300 # Befriend convo - # Falconry - 25 = hunt.5060 # Find an eyas - 100 = hunt.8000 # Show off your falconry skills to your lover - 100 = hunt.8010 # Show off your falconry skills generally - 100 = hunt.8020 # Your falcon shows up with some coins! - 100 = hunt.8030 # Your falcon finds some tracking material! - 100 = hunt.8040 # Someone is showing off their falcon glove - # Legendary Animal - 100 = hunt.8050 # You think you see a trace of the beast - 100 = hunt.8060 # Beware the beast! - 100 = hunt.8070 # You see the beast? Is it real? - # Schemes - 5000 = hunt.7210 #Do you kill your murder target or not? - Chase - 5000 = hunt.7410 # Do you abduct or not? - - } - effect = { # Used to ensure a certain progress has been made before some events to fire - involved_activity = { set_variable = hunt_outcome_random } - } -} - -# Outcome Start -hunt_outcome_start_events = { - trigger = { - exists = scope:activity - involved_activity.activity_host ?= this - } - random_events = { - 100 = hunt.1001 #Corner - 100 = hunt.1030 #Ambush - 100 = hunt.1040 #Stealth - 100 = hunt.1060 #Falconry - 5 = hunt.4012 #See glimpse of mystical animal - starts story from sighting/randomly - } -} - -# Outcome Complication -hunt_outcome_complication_events = { - trigger = { - exists = scope:activity - OR = { - is_ai = no - involved_activity.activity_host ?= this - } - } - random_events = { - # Shared - 50 = hunt.1002 # Chase goes well - 100 = hunt.4006 #Peasants foraging in the forest - 25 = hunt.4007 #Run into a rampaging animal - 100 = hunt.4910 #A guest is injured - 100 = hunt.4016 #You fake a catch - 100 = hunt.3020 #EP2: Tracks skill check - 100 = hunt.5010 #EP2: Fawning doe - 100 = hunt.7011 #EP2: Trapped guest - 50 = hunt.7800 #EP2: Arrow from nowhere - # Schemes - 5000 = hunt.1012 #Do you shoot your murder target or not? - Ambush - 25 = hunt.1080 # Party murders you - 5000 = hunt.7210 #Do you kill your murder target or not? - Chase - 5000 = hunt.7410 # Do you abduct or not? - # Schemes - 200 = hunt.4009 #Participant has murder/abduct scheme against you (or you heir dislikes you) - 200 = hunt.4010 #Participant has murder/abduct scheme against close family - # Legendary - 25 = hunt_mystical_animal.1007 # Mad legendary trip - 50 = hunt.4018 #You get the mystical white animal! - 50 = hunt.8520 # Two sets of hoofprints, your huntmaster thinks you're following the wrong ones - 50 = hunt.8530 # Your leg gets stuck in a trap - 50 = hunt.8550 # You find droppings the same colour as the animal you're hunting - # Falconry - 25 = hunt.5050 #EP2: Falcon snatched - 25 = hunt.8500 #EP2: Falcon is up in a tree and refuses to come down - 25 = hunt.8510 #EP2: Falcon attacked by a prowling animal (usually a big cat) - # Animal specific - 25 = hunt.8560 # Big cat complication: you find a big cat cub abandoned in the wild - 10 = hunt.8570 # Herd animal complication: a hunt participant is caught in a stampede! - 25 = hunt.8580 # Predator complication: you find your prey but you're alone! Stare down the wolf - 25 = hunt.8590 # Predator complication: you find their cave - } -} - -# Outcome End -hunt_outcome_end_events = { - trigger = { - exists = scope:activity - involved_activity.activity_host ?= this - } - random_events = { - # Corner - 1 = hunt.1003 # Success - 1 = hunt.1004 # Failure - # Ambush - 1 = hunt.1032 # Success - 1 = hunt.1033 # Failure - # Stealth - 1 = hunt.4001 # Success - 1 = hunt.1043 # Failure - # Falconry - 1 = hunt.1062 #Falconry - 1 = hunt.1063 #Falconry - # Legendary - 1 = hunt.4013 # Animal is not found - 1 = hunt.4017 # Animal found and killed - 1 = hunt.4019 # Substitute animal found - 1 = hunt_mystical_animal.9001 # Animal found and killed - 1 = hunt_mystical_animal.1005 # Animal found but escaped - 1 = hunt.1090 # Animal escaped - # Captive - #1 = hunt.1052 #Dangerous - #1 = hunt.1053 #Dangerous - } -} - -# End summary -hunt_end_events = { - trigger = { - involved_activity.activity_host ?= this - } - random_events = { - #hunt.8001 # Artifact end - 10 = hunt.9001 # Hunting end success - 3 = hunt.4004 #You bring down a particularly large animal - I - #100 = hunt.4005 #You bring down a particularly large animal - II - 10 = hunt.9002 # Hunting end fail - } -} - -### SIGHTINGS - -# For firing yearly Sighting events -hunt_sighting_on_action = { - trigger = { - hunt_sighting_event_trigger = yes - NOR = { - has_character_flag = recent_hunt_sighting - has_character_flag = disabled_hunt_sightings_flag - } - } - random_events = { - chance_of_no_event = { - value = 80 - if = { - limit = { - exists = court_position:master_of_hunt_court_position - } - add = -20 - } - if = { - limit = { - has_character_flag = had_mystical_animal_story - any_owned_story = { story_type = story_cycle_hunt_mystical_animal } - NOT = { - any_sub_realm_county = { - has_county_modifier = hunt_sighting_legendary_modifier - var:sighting_owner ?= root - } - } - } - add = -20 - } - } - 100 = hunt.2500 # Standard - 5 = hunt.2510 # Legendary - 25 = hunt.2520 # Dangerous - 25 = hunt.2530 # Falconry - 25 = hunt.2540 # Sighting moves - } -} diff --git a/common/on_action/activities/playdate_on_actions.txt b/common/on_action/activities/playdate_on_actions.txt deleted file mode 100644 index 38b5e4935c..0000000000 --- a/common/on_action/activities/playdate_on_actions.txt +++ /dev/null @@ -1,45 +0,0 @@ -# On actions for the Meet Peers activity - -# Picks out a start event -playdate_start_events = { - events = { - playdate.2001 - playdate.2501 - } -} - -playdate_event_selection = { #Picks out the event for a participant in a peer meet - trigger = { - exists = scope:activity - } - random_events = { - 40 = playdate.3001 # Get friend or victim - 40 = playdate.3002 # Discover secret - 40 = playdate.3003 # Spend time with cat - 40 = playdate.3004 # Spend time with dog - 40 = playdate.3005 # Someone learns one of your secrets - 40 = playdate.3006 # Book nerd - 40 = playdate.3007 # Climb tree - 5 = playdate.3008 # Go for a swim - 40 = playdate.3009 # Snow fight! - 40 = playdate.3010 # Go to local market - 40 = playdate.3011 # Playing house - 40 = playdate.3012 # Play at being knights - 40 = playdate.3013 # Meet a witch - 40 = playdate.3014 # Hang with a priest - 40 = playdate.4001 # Play date language barrier - - #BP2 - 250 = playdate.5001 # Another kid asks if you want to play - 300 = playdate.5002 # Kick ball into someone's garden, ask for it back - 300 = playdate.5003 # Another kid is more skilled than you - 300 = playdate.5004 # Another kid is watching from the sidelines - 300 = playdate.5005 # Hop a fence to get a ball? - 300 = playdate.5006 # Another kid takes the ball and goes home - 300 = playdate.5007 # Someone is bullying a smaller kid than you - 300 = playdate.5008 # Old person comes out to yell at you - 300 = playdate.5009 # A kid is getting trampled - 300 = playdate.5010 # Overly-competitive parent watches on, heckles kids - 500 = bp2_yearly.2011 # Participant is playing with their imaginary friend - } -} diff --git a/common/on_action/alliance_on_actions.txt b/common/on_action/alliance_on_actions.txt index b5a1fa8202..2d480b13c6 100644 --- a/common/on_action/alliance_on_actions.txt +++ b/common/on_action/alliance_on_actions.txt @@ -60,107 +60,7 @@ on_alliance_added = { # Warcraft # Struggle parameter - #scope:first = { - # if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = piety_from_new_alliance - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:second - # } - # } - # } - # add_piety = medium_piety_gain - # } - #} - #scope:second = { - # if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = piety_from_new_alliance - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:first - # } - # } - # } - # add_piety = medium_piety_gain - # } - #} - # # Struggle Catalysts. - #if = { - # limit = { - # scope:first = { - # NOT = { faith = scope:second.faith } - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = interfaith_marriages_available_between_involved_characters - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_formed_interreligious_alliance_with_important_character - # CHAR = scope:second - # } - # } - # } - # scope:second = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = interfaith_marriages_available_between_involved_characters - # } - # } - # } - # scope:first = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_formed_interreligious_alliance_with_important_character - # CHAR = scope:second - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_formed_interreligious_alliance_with_important_character - # character = scope:first - # } - # } - # } - #} - #if = { - # limit = { - # scope:second = { realm_size >= catalyst_forming_alliance_with_major_uninvolved_power_power_realm_size_value } - # scope:first = { - # is_important_or_vip_struggle_character = yes - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_neither_trigger = { - # CATALYST = catalyst_forming_alliance_with_major_uninvolved_power - # CHAR = scope:second - # } - # } - # } - # } - # scope:first = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_neither_trigger = { - # CATALYST = catalyst_forming_alliance_with_major_uninvolved_power - # CHAR = scope:second - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_forming_alliance_with_major_uninvolved_power - # character = scope:first - # } - # } - # } - #} - # End of Struggle } } diff --git a/common/on_action/army_on_actions.txt b/common/on_action/army_on_actions.txt index 3a78c54ff2..67f3ed2735 100644 --- a/common/on_action/army_on_actions.txt +++ b/common/on_action/army_on_actions.txt @@ -109,6 +109,20 @@ on_siege_completion = { siege.1001 #Someone I care about was immured here... intrigue_scheming.1804 # I had genuine/fake info about the defenses. Follows up intrigue_scheming.1801 so this won't actually trigger after every siege } + #effect = { + # save_scope_as = occupant + # scope:barony = { + # if = { + # limit = { title_province = holder.capital_province } + # holder = { + # random = { + # chance = 50 + # trigger_event = fp3_decision.0002 #FP3 Event to possibly lose your royal fire + # } + # } + # } + # } + #} } # Called when a siege loots a holding @@ -291,4 +305,3 @@ on_defeat_raid_army = { raiding.0012 # Defending army take raider loot notifications. } } - diff --git a/common/on_action/birthday.txt b/common/on_action/birthday.txt deleted file mode 100644 index 4ce34bf1b2..0000000000 --- a/common/on_action/birthday.txt +++ /dev/null @@ -1,287 +0,0 @@ -# character having its birthday in root scope -# tested after age has increased -on_birthday = { - on_actions = { - on_specific_birthday - on_birthday_childhood - on_birthday_adulthood - on_graceful_aging_birthday - } -} - -on_specific_birthday = { - first_valid_on_action = { - on_3rd_birthday - on_6th_birthday - on_10th_birthday - on_15th_birthday - on_16th_birthday - } -} - -on_birthday_childhood = { - trigger = { - is_adult = no - age >= childhood_education_start_age - } - on_actions = { - on_birthday_education_events - on_action_add_sexuality - } - effect = { - if = { - limit = { - any_parent = { - is_landed = yes - highest_held_title_tier >= tier_duchy - any_memory = { - has_memory_type = ascended_throne_memory - has_variable = childhood_memory - save_temporary_scope_as = throne_memory_temp - } - } - } - random_parent = { - limit = { - is_landed = yes - highest_held_title_tier >= tier_duchy - any_memory = { - has_memory_type = ascended_throne_memory - has_variable = childhood_memory - save_temporary_scope_as = throne_memory_temp - } - } - trigger_event = bp2_yearly.4003 #This event has further triggers, as well as a cooldown, and may still fail. - } - } - - if = { - limit = { - culture = { - has_cultural_parameter = strong_traits_more_common - } - NOR = { - has_trait = strong - has_trait = weak - has_trait = physique_bad - } - } - random = { - chance = { - value = 0 - if = { - limit = { - prowess > 0 - } - add = prowess - divide = 5 - } - } - add_trait = strong - } - } - random = { # Chance for relationships for unlanded children/barons - chance = { - value = 10 - if = { - limit = { - is_hostage = yes - } - add = 15 #Hostages are forced to form relationships quickly - } - if = { - limit = { - OR = { - has_sexuality = heterosexual - has_sexuality = homosexual - has_sexuality = bisexual - } - num_of_relation_crush <= 0 - } - add = 25 - } - } - if = { - limit = { - is_available_ai_child = yes - OR = { - is_ruler = no - highest_held_title_tier = tier_barony - } - exists = host - } - random_list = { - 100 = { # Gain a Crush - trigger = { - OR = { - num_of_relation_crush <= 0 - has_trait = lustful - } - NOR = { - has_trait = chaste - has_trait = celibate - } - OR = { - has_sexuality = heterosexual - has_sexuality = bisexual - has_sexuality = homosexual - } - } - save_good_character_effect = { - RELATION = crush - SCOPE = crush - } - if = { - limit = { - exists = scope:crush - } - set_relation_crush = scope:crush - random = { - chance = 50 - scope:crush = { - if = { - limit = { - is_ai = yes - OR = { - has_sexuality = heterosexual - has_sexuality = bisexual - has_sexuality = homosexual - } - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:crush - CHARACTER_2 = root - } - NOT = { - has_relation_crush = root - } - } - set_relation_crush = root - } - else_if = { - limit = { - NOT = { - has_relation_crush = root - } - } - set_variable = { - name = unrequited_crush - value = root - } - } - } - } - } - } - 10 = { - trigger = { - OR = { - num_of_relation_friend < 1 - has_trait = gregarious - } - NOR = { - has_trait = shy - has_trait = callous - } - } - save_good_character_effect = { - RELATION = friend - SCOPE = friend - } - if = { - limit = { - exists = scope:friend - scope:friend = { - num_of_relation_friend < 1 - } - } - set_relation_friend = { reason = friend_childhood_random target = scope:friend } - add_stress = minor_stress_loss - } - } - 10 = { - trigger = { - num_of_relation_bully <= 0 - } - save_good_character_effect = { - RELATION = bully - SCOPE = bully - } - if = { - limit = { - exists = scope:bully - } - set_relation_bully = scope:bully - add_stress = minor_stress_gain - } - } - 10 = { - trigger = { - OR = { - num_of_relation_victim <= 0 - has_trait = sadistic - } - NOR = { - has_trait = forgiving - has_trait = compassionate - } - } - save_good_character_effect = { - RELATION = victim - SCOPE = victim - } - if = { - limit = { - exists = scope:victim - } - set_relation_victim = scope:victim - add_stress = minor_stress_loss - } - } - } - } - } - } - random_events = { - 900 = 0 - 150 = childhood.2100 # Learn the Language of your Guardian - 150 = childhood.2200 # Learn the Court Language of your Guardian - 150 = childhood.2300 # Learn the Language of your parent - } - on_actions = { - reincarnation_toy_pulse - } -} - -reincarnation_toy_pulse = { - random_events = { - chance_to_happen = 14 - 100 = bp2_yearly.8090 # Take the toy test to become a reincarnation (14 in 1,464 is roughly 1% in 100. This event can fire between the ages of 4 and 15, meaning there are 12 chances of this happening) - } -} - -on_birthday_adulthood = { - trigger = { - is_adult = yes - } - random_events = { - 100 = 0 - 1 = bp1_yearly.3004 # Surprise Birthday Party - 1 = bp1_yearly.3006 # Reflecting on the surprise party years later - } -} - -on_graceful_aging_birthday = { - trigger = { - exists = dynasty - dynasty = { has_dynasty_perk = kin_legacy_5 } - age >= kin_legacy_5_start_age # Start at 40 - This trigger is here to prevent the calculation running for everyone - save_temporary_scope_value_as = { - name = age_check - value = kin_legacy_5_age_modulo - } - scope:age_check = 0 - } - events = { - dynasty_legacy.0001 # Gain a random skill point - } -} diff --git a/common/on_action/bp2_on_actions.txt b/common/on_action/bp2_on_actions.txt deleted file mode 100644 index 09c3aa6344..0000000000 --- a/common/on_action/bp2_on_actions.txt +++ /dev/null @@ -1,138 +0,0 @@ - -wet_nurse_pulse = { - trigger = { - has_bp2_dlc_trigger = yes - any_court_position_holder ?= { - type = wet_nurse_court_position - } - } - random_events = { - 1000 = 0 - - 50 = bp2_yearly.7003 # Wet Nurse informs you about first words of your child - 50 = bp2_yearly.7004 # Wet Nurse informs you about first steps of your child - 50 = bp2_yearly.7005 # Wet Nurse informs you about first fallen teeth of your child - 50 = bp2_yearly.7006 # Wet Nurse informs you about first independent dress up of your child - } -} - -bp2_child_pulse = { - trigger = { - has_bp2_dlc_trigger = yes - is_ruler = yes - is_available_child = yes - } - random_events = { - chance_to_happen = 50 - 100 = 0 - 25 = bp2_yearly.2010 # Imaginary Friend Story Cycle Start - 25 = bp2_yearly.1050 # Child: The Builder event chain - - 300 = bp2_yearly.8100 # You develop feelings for another kid, is this a crush? - 1000 = bp2_yearly.5005 # A winsome foreign hostage - 500 = bp2_yearly.5009 # You promise? - - 10 = bp2_yearly.2110 # Gain Humble or Arrogant - 10 = bp2_yearly.2120 # Gain Temperate or Gluttonous - 10 = bp2_yearly.2130 # Gain Generous or Greedy - 10 = bp2_yearly.2140 # Gain Honest or Deceitful - 10 = bp2_yearly.2160 # Gain Compassionate or Sadistic - - 10 = bp2_yearly.2000 # You (a kid) learn about your house founder and can gain one of their traits (or the opposite) - 10 = bp2_yearly.2001 # You (a kid) learn about an ancestor and can gain one of their traits (or the opposite) - - 50 = bp2_yearly.1005 # Child: You notice your parent/guardian performing a stress trait (player only) - 40 = bp2_yearly.2150 # Gain Herbalist & Gardener - 100 = bp2_yearly.2100 # Build something with another child - 100 = bp2_yearly.3000 # Child bored of lesson - 100 = bp2_yearly.5050 # You learn a language off a guest or courtier - 100 = bp2_yearly.5100 # Another child challenges you to a duel with wooden swords - 100 = bp2_yearly.5101 # You and another child pretend to ride horses - 100 = bp2_yearly.5102 # You knock your sibling over by accident - 100 = bp2_yearly.5103 # You are caught stealing sweets - 100 = bp2_yearly.5104 # You find a lonely kid and ask them to play - 100 = bp2_yearly.5105 # You and another friend have a pretend joust - 100 = bp2_yearly.5109 # You comfort a sad kid - 100 = bp2_yearly.8020 # Childhood event, play with toys :D - 100 = bp2_yearly.8070 # Play with your favourite toy - 100 = bp2_yearly_extra.0001 #My favorite councilor - - 100 = bp2_yearly.0601 # Ruling Rightly - Regent tries to teach you about state. - 100 = bp2_yearly.0611 # PrimaryTitle's Second Capital - Far away regent never seems to visit. - 100 = bp2_yearly.0621 # AuntUncle RegentFirstName - Nearby regents visits often. - 100 = bp2_yearly.0631 # Courtier-regent turns you against a rival for the regency. - 100 = bp2_yearly.0641 # Regent offers special present in exchange for your agreement on some documents. - 100 = bp2_yearly.0651 # Regent makes time for your interests, be they play or poetry. - 100 = bp2_yearly.0661 # Regent quarrels with your family about access to you. - } -} - -bp2_parent_guardian_hostage_taker_pulse = { - trigger = { - has_bp2_dlc_trigger = yes - OR = { - any_child = { - count > 0 - } - num_of_relation_ward >= 1 - faith = { - has_doctrine_parameter = piety_from_childbirth_active #Specifically for triggering the sacred childbirth content - } - } - #Not checking for hostages here since most hostage events also require another child - #All events are also present in the regular yearly pulse - } - random_events = { - chance_to_happen = 25 - 100 = 0 - - 10 = destiny_child.0001 #Destiny Child Story Cycle - - 100 = bp2_yearly.1000 # Parent/Guardian: Your child/ward walks in on you performing your stress trait - 100 = bp2_yearly.1010 # Parent/Guardian: Your child gives you a hug - 50 = bp2_yearly.1015 # Parent/Guardian: Your child/ward found a pouch of gold while exploring - 50 = bp2_yearly.1020 # Parent/Guardian: Your child/ward has found a secret in court - 25 = bp2_yearly.1030 # Parent: Your child does not have the same educational orientation as you. Change? - 50 = bp2_yearly.1035 # Parent/Guardian: Your child/ward has a rock collection - 50 = bp2_yearly.1040 # Parent/Guardian: Your child/ward has a text about martial arts - 50 = bp2_yearly.1045 # Parent/Guardian: There is a brawl among some children - 100 = bp2_yearly.5051 # Child interacts with baby sibling - 300 = bp2_yearly.5052 # Child spends time with their grandparent - 100 = bp2_yearly.8010 # A kid makes fun of your stupid accent - 25 = bp2_yearly.7000 # Wet nurse has a disease and can pass it down to a child - 25 = bp2_yearly.7001 # Spouse is jealous about wet nurse - 25 = bp2_yearly.7002 # Court Chaplain informs You that your marraige is incestuous, due to you having same wet nurse as your spouse - - - 100 = bp2_yearly.6000 # a same-culture ward or hostage doesn't know how to behave like one of you - 100 = bp2_yearly.6010 # a ward or hostage is sad and wants their family to send monies - 100 = bp2_yearly.6020 # hostage might reveal a family secret to you - 100 = bp2_yearly.6130 # hostage and a family member are becoming friends - 75 = bp2_yearly.6140 # hostage and a family member are becoming rivals - 100 = bp2_yearly.6150 # hostage is reticent to keep taking their place next to you during court appearances - 100 = bp2_yearly.6160 # your kid and your hostage snuck out of the palace to see your capital - 100 = bp2_yearly.5053 # Host's child gets jealous of ward - 200 = bp2_yearly.5054 # Hostage and child are becoming friends - 100 = bp2_yearly.8000 # Your hostage learns your court language! - 100 = bp2_yearly.7029 # You, a tribal ruler after completing Rites of Passage, can enourage or not next child doing the rites - - 400 = bp2_yearly.8110 # Sacred childbirth, people want to pamper you - 200 = bp2_yearly.8120 # Sacred childbirth, offer to take care of your pregnant spouse - } -} - -bp2_adult_followups = { - trigger = { - has_bp2_dlc_trigger = yes - is_available_adult = yes - } - random_events = { - 10 = 0 - 100 = bp2_yearly.3010 # Child returns home as adult - has forgotten their room while a hostage - 100 = bp2_yearly.5010 # I promised! - 100 = bp2_yearly.6040 #you want to emulate the advanced foreign court you were raised in (story cycle) - 100 = bp2_yearly.7007 # Child reflects on parent based on choices in 7003-7006 events - 100 = bp2_yearly.8040 # You and crush are now adults, maybe become something more? - 100 = bp2_yearly.4002 # Relatives died via drink when you were young, now you are a drunkard - } -} diff --git a/common/on_action/character_levels.txt b/common/on_action/character_levels.txt deleted file mode 100644 index 04faf8a106..0000000000 --- a/common/on_action/character_levels.txt +++ /dev/null @@ -1,108 +0,0 @@ -on_piety_level_gain = { - effect = { - send_interface_toast = { - type = msg_character_level_increase - title = piety_level_gain.message - desc = piety_level_gain.desc - left_icon = root - } - - every_child ?= { #bp2_yearly.4020 event chain piety tracker - limit = { - any_memory = { - has_memory_type = pious_parent_became_very_pious - any_memory_participant = { - this = root - } - } - has_variable = parent_piety_lvl - } - change_variable = { - name = parent_piety_lvl - add = 1 - } - } - } -} - -on_piety_level_loss = { - effect = { - send_interface_toast = { - type = msg_character_level_decrease - title = piety_level_loss.message - desc = piety_level_loss.desc - left_icon = root - } - - every_child ?= { #bp2_yearly.4020 event chain piety tracker - limit = { - any_memory = { - has_memory_type = pious_parent_became_very_pious - any_memory_participant = { - this = root - } - } - has_variable = parent_piety_lvl - } - change_variable = { - name = parent_piety_lvl - subtract = 1 - } - } - } -} - -on_prestige_level_gain = { - effect = { - send_interface_toast = { - type = msg_character_level_increase - title = prestige_level_gain.message - desc = prestige_level_gain.desc - left_icon = root - } - - every_child ?= { #bp2_yearly.4010 event chain fame tracker - limit = { - any_memory = { - has_memory_type = famed_parent_became_very_famous - any_memory_participant = { - this = root - } - } - has_variable = parent_fame_lvl - } - change_variable = { - name = parent_fame_lvl - add = 1 - } - } - } - -} - -on_prestige_level_loss = { - effect = { - send_interface_toast = { - type = msg_character_level_decrease - title = prestige_level_loss.message - desc = prestige_level_loss.desc - left_icon = root - } - - every_child ?= { #bp2_yearly.4010 event chain fame tracker - limit = { - any_memory = { - has_memory_type = famed_parent_became_very_famous - any_memory_participant = { - this = root - } - } - has_variable = parent_fame_lvl - } - change_variable = { - name = parent_fame_lvl - add = 1 - } - } - } -} diff --git a/common/on_action/child_birth_on_actions.txt b/common/on_action/child_birth_on_actions.txt index afd17278e5..6beaceef95 100644 --- a/common/on_action/child_birth_on_actions.txt +++ b/common/on_action/child_birth_on_actions.txt @@ -103,13 +103,14 @@ on_birth_mother = { if = { limit = { - NOT = { + NOR = { any_child = { even_if_dead = yes NOT = { this = scope:child } } + exists = scope:child_2 } } create_character_memory = { @@ -221,25 +222,26 @@ on_birth_father = { } } } - scope:child = { - if = { - limit = { has_trait = twin } - random_sibling = { - limit = { is_twin_of = scope:child } - save_scope_as = child_2 - } - } - } + scope:child = { + if = { + limit = { has_trait = twin } + random_sibling = { + limit = { is_twin_of = scope:child } + save_scope_as = child_2 + } + } + } if = { limit = { - NOT = { + NOR = { any_child = { even_if_dead = yes NOT = { this = scope:child } } + exists = scope:child_2 } } create_character_memory = { diff --git a/common/on_action/childhood_on_actions.txt b/common/on_action/childhood_on_actions.txt index 0e6d616919..2cbc408bf2 100644 --- a/common/on_action/childhood_on_actions.txt +++ b/common/on_action/childhood_on_actions.txt @@ -161,6 +161,7 @@ on_15th_birthday = { events = { witch.1001 + secret_faith.1001 bp2_yearly.2019 # Imaginary Friend - Eccentric Trait Event } } @@ -472,14 +473,15 @@ on_ward_arrive_at_guardian = { title = ward_invalidated_during_travel_title left_icon = scope:ward right_icon = scope:guardian - show_as_tooltip = { - scope:ward = { remove_relation_guardian = scope:guardian } - } - scope:ward.current_travel_plan ?= { - if = { - limit = { can_cancel = yes } - cancel_travel_plan = yes + scope:ward = { + show_as_tooltip = { remove_relation_guardian = scope:guardian } + current_travel_plan ?= { + if = { + limit = { can_cancel = yes } + cancel_travel_plan = yes + } } + set_location_to_default = yes } } } @@ -489,6 +491,7 @@ on_ward_arrive_at_guardian = { # Clean up variables remove_variable = ward_travelling_to_guardian remove_variable = character_making_education_request + scope:guardian = { remove_variable = guardian_waiting_for_ward } } } @@ -612,14 +615,15 @@ on_guardian_arrive_at_ward = { title = guardian_invalidated_during_travel_title left_icon = scope:ward right_icon = scope:guardian - show_as_tooltip = { - scope:guardian = { remove_relation_ward = scope:ward } - } - scope:guardian.current_travel_plan = { - if = { - limit = { can_cancel = yes } - cancel_travel_plan = yes + scope:guardian = { + show_as_tooltip = { remove_relation_ward = scope:ward } + current_travel_plan = { + if = { + limit = { can_cancel = yes } + cancel_travel_plan = yes + } } + set_location_to_default = yes } } } @@ -627,7 +631,10 @@ on_guardian_arrive_at_ward = { debug_log_scopes = yes } # Clean up variables - var:guardian_travelling_to_ward ?= { remove_variable = character_making_education_request } + var:guardian_travelling_to_ward ?= { + remove_variable = character_making_education_request + remove_variable = ward_waiting_for_guardian + } remove_variable = guardian_travelling_to_ward } } diff --git a/common/on_action/clan_events_on_actions.txt b/common/on_action/clan_events_on_actions.txt new file mode 100644 index 0000000000..0288468367 --- /dev/null +++ b/common/on_action/clan_events_on_actions.txt @@ -0,0 +1,27 @@ +# On action for clan specific events that revolve around the clan specific mechanics. +# We don't want these to compete directly with regular yearly events. +clan_events_on_action = { + trigger = { + is_ruler = yes + government_has_flag = government_is_clan + } + + random_events = { + chance_to_happen = 50 + 700 = 0 + 100 = clan_event.2000 + 100 = clan_event.2001 + 100 = clan_event.2002 + 100 = clan_event.2005 + 100 = fp3_clan.8008 + 100 = fp3_clan.8009 + 100 = fp3_clan.8010 + 100 = fp3_clan.8011 + 100 = fp3_clan.8012 + 100 = fp3_clan.8013 + 100 = fp3_clan.8015 + 100 = fp3_clan.8016 + #100 = fp3_clan.8017 + #100 = fp3_yearly.2021 # Set the Scale, Liege Version + } +} diff --git a/common/on_action/councillor_on_actions.txt b/common/on_action/councillor_on_actions.txt deleted file mode 100644 index 52602b0896..0000000000 --- a/common/on_action/councillor_on_actions.txt +++ /dev/null @@ -1,497 +0,0 @@ -on_leave_council = { - effect = { - scope:councillor = { - unblock_firing_councillor_effect = yes - } - } - events = { - # Inform the liege when their councillor resigns. - delay = { days = 1 } - council_interaction.0011 - } -} - -on_fired_from_council = { - events = { - # Inform the character when their liege fires them. - delay = { days = 1 } - council_interaction.0020 - } -} - -## Fires when a character leaves the council due to them leaving the court. -# Will fire just before on_leave_court. -# Root is the character -# scope:old_employer is their old employer -# scope:council_task is their (previous) council task -# scope:councillor is the councillor in question that left (same as root) -on_councillor_left = { - effect = { - scope:councillor = { - councillor_leaving_effect = yes - } - } -} - -############ -# Marshal Task Event Lists -############ -organize_levies_monthly_on_action = { - trigger = { - exists = cp:councillor_marshal - } - - on_actions = { - organize_the_levies_marshal_task_side_effects - } - random_events = { - chance_to_happen = 10 - 150 = marshal_task.1103 #EP2: Acclaimed Knight levy captaincy - } -} - -organize_the_levies_marshal_task_side_effects = { - trigger = { - NOT = { has_variable = had_marshal_task_side_effect } - exists = cp:councillor_marshal - } - random_events = { - chance_to_happen = 2 - 250 = 0 - #Bad side effects - 50 = marshal_task.1001 #Levy Desertions - 100 = marshal_task.1002 #Unused Farmland - 100 = marshal_task.1003 #Insufficient Guards - #Good side effects - 100 = marshal_task.1101 #Efficient Organization - 100 = marshal_task.1102 #Military Presence - } -} - -train_commanders_monthly_on_action = { - trigger = { - exists = cp:councillor_marshal - } - - on_actions = { - train_commanders_success_effect - train_commanders_marshal_task_side_effects - } - random_events = { - chance_to_happen = 10 - 150 = marshal_task.2103 #EP2: Acclaimed Knight drills the elite - } -} - -train_commanders_success_effect = { - random_events = { - chance_of_no_event = { - value = 100 - subtract = scope:councillor.marshal_train_commanders_monthly_chance_value - } - - 100 = marshal_task.0301 - 25 = marshal_task.0302 - 25 = marshal_task.0303 - } -} - -train_commanders_marshal_task_side_effects = { - trigger = { - NOT = { has_variable = had_marshal_task_side_effect } - exists = cp:councillor_marshal - } - random_events = { - chance_to_happen = 2 - 350 = 0 - #Bad side effects - 100 = marshal_task.2001 #Commander is Wounded - 100 = marshal_task.2002 #Commander is Maimed - 50 = marshal_task.2003 #Commander is Killed - #Good side effects - 100 = marshal_task.2101 #Teach Commander Trait - 100 = marshal_task.2102 #Improve Knight - } -} - -increase_control_monthly_on_action = { - trigger = { - exists = cp:councillor_marshal - } - - on_actions = { - task_increase_control_side_effects - } - random_events = { - chance_to_happen = 10 - 150 = marshal_task.3103 #EP2: Acclaimed Knight Subdues Peasantry - } -} - -task_increase_control_side_effects = { - trigger = { - NOT = { has_variable = had_marshal_task_side_effect } - - exists = cp:councillor_marshal - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - - #Bad side effects - 100 = marshal_task.3001 #Reduce County Opinion - 100 = marshal_task.3002 #Loss of Control - 100 = marshal_task.3003 #Baron opinion loss - - #Good side effects - 100 = marshal_task.3101 #Increased County Opinion - 100 = marshal_task.3102 #Baron opinion gain - } -} - -manage_guards_marshal_task_side_effects = { - trigger = { - NOT = { has_variable = had_marshal_task_side_effect } - - exists = cp:councillor_marshal - } - - random_events = { - chance_to_happen = 2 - 350 = 0 - - #Bad side effects - 100 = marshal_task.4001 #Knight is Wounded - 100 = marshal_task.4002 #Disorganized Royal Guards - - #Good side effects - 100 = marshal_task.4101 #Knight Improved - 100 = marshal_task.4102 #Scheme Distupted - } -} - -task_foreign_affairs_side_effects = { - trigger = { - NOT = { has_variable = had_chancellor_task_side_effect } - - exists = cp:councillor_chancellor - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - - #Bad side effects - 100 = chancellor_task.1001 #A neighbor gains a claim on you - 100 = chancellor_task.1002 #A truce against you is shortened - 100 = chancellor_task.1003 #Decrease Neighbor opinion - - #Good side effects - 100 = chancellor_task.1102 #Shorten a truce against an enemy - 100 = chancellor_task.1103 #Increase neighbor opinion - } -} - -task_domestic_affairs_side_effects = { - trigger = { - NOT = { has_variable = had_chancellor_task_side_effect } - - exists = cp:councillor_chancellor - } - - random_events = { - chance_to_happen = 2 - 700 = 0 - #Bad side effects - 100 = chancellor_task.3001 #Lose opinion with a significant vassal - 100 = chancellor_task.3002 #Worsen vassal contract - 100 = chancellor_task.3003 #Loss of Crown Authority - #Good side effects - 100 = chancellor_task.3101 #Stop war between vassals - 100 = chancellor_task.3102 #Improve vassal contract - 100 = chancellor_task.3103 #Gain opinion with a significant vassal - 100 = chancellor_task.3104 #Force a vassal into Partition Succession - } -} - -task_integrate_title_side_effects = { - trigger = { - NOT = { has_variable = had_chancellor_task_side_effect } - - exists = cp:councillor_chancellor - } - - random_events = { - chance_to_happen = 2 - 400 = 0 - #Bad side effects - 50 = chancellor_task.2001 #Nobles resist integration - 50 = chancellor_task.2002 #Culture upset at integration - #Good side effects - 150 = chancellor_task.2101 #Nobles endorse integration - 150 = chancellor_task.2102 #Culture endorses integration - 150 = chancellor_task.2103 #Choose Development or Integration - } -} - -task_bestow_royal_favor_side_effects = { - trigger = { - NOT = { has_variable = had_chancellor_task_side_effect } - - exists = cp:councillor_chancellor - } - - random_events = { - chance_to_happen = 2 - 400 = 0 - #Bad side effects - 100 = chancellor_task.3001 #Lose opinion with vassal - 100 = chancellor_task.3002 #Worsen vassal contract - #Good side effects - 100 = chancellor_task.3101 #Stop war between vassals - 100 = chancellor_task.3102 #Improve vassal contract - 100 = chancellor_task.3103 #Gain opinion with vassal - } -} - - -task_fabricate_claim_success_effect = { - random_events = { - 100 = court_chaplain_task.0301 #Claim on County - 20 = court_chaplain_task.0302 #Claim on Duchy - } -} - -task_collect_taxes_side_effects = { - trigger = { - NOT = { has_variable = had_steward_task_side_effect } - exists = cp:councillor_steward - } - - random_events = { - chance_to_happen = 2 - 300 = 0 - #Bad side effects - 100 = steward_task.1001 #Bandits County Corruption - 100 = steward_task.1002 #Inefficient Census County Corruption - 100 = steward_task.1003 #Lack of Sheriffs County Corruption - 100 = steward_task.1004 #Smuggling Ring County Corruption - #Good side effects - 100 = steward_task.1101 #Extra gold - } -} - -task_develop_county_side_effects = { - trigger = { - NOT = { has_variable = had_steward_task_side_effect } - exists = cp:councillor_steward - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - #Bad side effects - 100 = steward_task.2001 #Lack of Workers - 100 = steward_task.2002 #Loss of County Opinion - 100 = steward_task.2003 #Loss of County Control - #Good side effects - 100 = steward_task.2101 #Efficient Taxation - 100 = steward_task.2102 #Increased Control - } -} - -task_promote_culture_side_effects = { - trigger = { - NOT = { has_variable = had_steward_task_side_effect } - exists = cp:councillor_steward - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - #Bad side effects - 100 = steward_task.3001 #Resistance to settlers - 100 = steward_task.3002 #Resistance to administration - #Good side effects - 100 = steward_task.3101 #Improve County Opinion - 100 = steward_task.3102 #Increased County Taxes - 100 = steward_task.3103 #Increased County Levies - } -} - -task_accept_culture_side_effects = { - trigger = { - NOT = { has_variable = had_steward_task_side_effect } - exists = cp:councillor_steward - } - - random_events = { - chance_to_happen = 2 - 300 = 0 - # Bad side effects - 100 = steward_task.3201 - 100 = steward_task.3202 - 100 = steward_task.3203 - - # Good side effects - 100 = steward_task.3301 - 100 = steward_task.3302 - 100 = steward_task.3303 - } -} - -task_religious_relations_side_effects = { - trigger = { - NOT = { has_variable = had_court_chaplain_task_side_effect } - exists = cp:councillor_court_chaplain - } - - random_events = { - chance_to_happen = 2 - 300 = 0 - #Bad side effects - 100 = court_chaplain_task.1001 #Loss of Piety - 100 = court_chaplain_task.1002 #Loss of opinion from theocratic vassal - #Good side effects - 100 = court_chaplain_task.1101 #Impress theocratic vassal - } -} - -task_convert_side_effects = { - trigger = { - NOT = { has_variable = had_court_chaplain_task_side_effect } - exists = cp:councillor_court_chaplain - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - #Bad side effects - 100 = court_chaplain_task.2001 #Resistance to conversion - 100 = court_chaplain_task.2002 #Resistance to conversion - #Good side effects - 100 = court_chaplain_task.2101 #Improve County Opinion - 100 = court_chaplain_task.2102 #Increased Development - 100 = court_chaplain_task.2103 #Increased County Levies - } -} - -task_fabricate_claim_side_effects = { - trigger = { - NOT = { has_variable = had_court_chaplain_task_side_effect } - exists = cp:councillor_court_chaplain - } - - random_events = { - chance_to_happen = 2 - 350 = 0 - #Bad side effects - 50 = court_chaplain_task.3001 #Vassals dislike claim fabrication - 100 = court_chaplain_task.3002 #Loss of piety - 100 = court_chaplain_task.3003 #Powerful Vassal dislikes claim fabrication - 100 = court_chaplain_task.3004 #Target discovers Fabrication - #Good side effects - } -} - - -task_support_schemes_side_effects = { - trigger = { - NOT = { has_variable = had_spymaster_task_side_effect } - exists = cp:councillor_spymaster - } - - random_events = { - chance_to_happen = 2 - 350 = 0 - #Bad side effects - 100 = spymaster_task.2001 #Loss of Piety - 100 = spymaster_task.2002 #Loss of prestige - 50 = spymaster_task.2003 #Scheme Fails - #Good side effects - 100 = spymaster_task.2101 #Discovery of a minor secret - 50 = spymaster_task.2101 #Discovery of a major secret - } -} - - -task_disrupt_schemes_side_effects = { - trigger = { - NOT = { has_variable = had_spymaster_task_side_effect } - exists = cp:councillor_spymaster - } - - random_events = { - chance_to_happen = 2 - 400 = 0 - #Bad side effects - 50 = spymaster_task.1001 #Spymaster reveals one of your secrets to a powerful vassal - 100 = spymaster_task.1003 #Spymaster reveals a Courtier's secrets to a powerful vassal - #Good side effects - 100 = spymaster_task.1101 #Hostile Scheme is interrupted - 100 = spymaster_task.2101 #Discovery of a minor secret - 50 = spymaster_task.2104 #Discovery of a major secret - } -} - -task_find_secrets_outcome = { - random_events = { - 100 = spymaster_task.0301 #Find minor secret - 50 = spymaster_task.0302 #Find major secret - 10 = spymaster_task.0381 # Fabricate a Hook (if you have Truth is Relative) - Fired both here and if no secrets exist - } -} - -task_find_secrets_reveal_selection = { - first_valid = { - spymaster_task.0341 #Secret Deviant - spymaster_task.0342 #Secret Sodomy - spymaster_task.0343 #Secret Murder Attempt - spymaster_task.0344 #Secret Murder - spymaster_task.0345 #Secret Cannibal - spymaster_task.0346 #Secret Lover - spymaster_task.0347 #Secret Unbeliever - spymaster_task.0348 #Secret Incest - spymaster_task.0349 #Secret Witch - spymaster_task.0350 #The target is a bastard - spymaster_task.0351 #Target has a bastard child - spymaster_task.0352 #Known Bastard fatherhood - spymaster_task.0359 #Fallback - } -} - -task_find_secrets_side_effects = { - trigger = { - NOT = { has_variable = had_spymaster_task_side_effect } - exists = cp:councillor_spymaster - } - - random_events = { - chance_to_happen = 2 - 500 = 0 - 100 = spymaster_task.0399 #Nothing is found - 100 = spymaster_task.3001 #Caught snooping on vassal - 100 = spymaster_task.3004 #Caught snooping on liege - 100 = spymaster_task.3007 #Caught snooping on foreign ruler - 100 = spymaster_task.3010 #Caught snooping on foreign ruler's vassal - } -} - -task_convince_dejure_side_effects = { - trigger = { - NOT = { has_variable = had_steward_task_side_effect } - exists = cp:councillor_steward - } - - random_events = { - chance_to_happen = 2 - 300 = 0 - #Bad side effects - 100 = steward_task.4001 #Target liege is aware and not pleased - 100 = steward_task.4002 #Loss of prestige - #Good side effects - 100 = steward_task.4101 #Prestige gained - } -} - diff --git a/common/on_action/court_events.txt b/common/on_action/court_events.txt deleted file mode 100644 index b1147b6cf9..0000000000 --- a/common/on_action/court_events.txt +++ /dev/null @@ -1,105 +0,0 @@ -# Root = Character getting royal court events -on_trigger_court_events = { - trigger = { - is_available = yes - } - random_events = { - # Patronage - 100 = court.3010 # Inspired Work - 100 = court.4100 # Fund a medieval boyband - 5 = court.4400 # Recruit an antiquarian from cultist monks - 100 = court.4500 # Dodgy artifact peddler - 100 = court.4750 # Court Poet writes a book about your favorite hero - 100 = court.4803 # Court Poet ghostwrites for you - 100 = court.5055 # Colorful Talent - 100 = court.5060 # The Gallant Knight - 100 = court.5070 # Dedicated Tutor - 100 = court.7300 # Where's the Lamb Sauce? - 100 = court.9000 # A Knight's Declaration - 100 = court.9001 # A Knight's Dedication - 100 = court.9400 # Pie-based Shenanigans - 100 = court.0111 # Executioner wants to make a skull into an artefact - 100 = court.0107 # Court tutor reading a child a boring book - 100 = court.8040 # Aristocratic Pretensions - 100 = court.7700 # Winging It - # Majesty - 100 = court.2201 # A Slice of the Pie - 100 = court.3020 # A Foul Smell - 100 = court.3021 # Look Out Below - 100 = court.3070 # The Unknown Ruler: Low fame, High court amenities - 100 = court.4200 # Secret Passages - 100 = court.4250 # Spire building competition with your rival - 100 = court.4805 # Court architect steals your rival's castle cornerstones - 100 = court.5075 # Gift From Neigh-bor - 100 = court.6000 # Secret History - 100 = court.6070 # The Value of Letters - 100 = court.6080 # The Munificence of X - 100 = court.6090 # The Art of Rhetoric - 100 = court.8001 # Trampled Underfoot - 100 = court.8010 # Underequipped - 100 = court.8030 # Pawful of Pooches - 100 = court.8060 # Scornful Sycophants - 100 = court.8090 # Building Blocks - 100 = court.8110 # Upon the Block - 100 = court.8150 # Prandial Excess - 100 = court.0112 # A Closeted Cadaver - 100 = court.0108 # A copyright friendly prince arrives in court - 100 = court.7610 # Child Asks For Destrier - 100 = court.7620 # Haggling over a falcon - 100 = court.7640 # Avian Abuse - # Foreign Guests - 100 = court.2401 # Second-Hand Glamour - 100 = court.2411 # Labyrinthine Halls - 100 = court.4001 # Bleeding Diplomat - 100 = court.4806 # Fancy court attracts annoying fans - 100 = court.6010 # Prophet in the Halls - 100 = court.8020 # Sartorial Sting - 100 = court.7400 # Overstaying their welcome - # Relationships - 100 = court.1010 # Daydrinking - 100 = court.1030 # Poor Manners - 100 = court.3000 # Distrust of Friendship - 100 = court.3030 # Fussy Lady-in-Waiting - 100 = court.3031 # Lady-in-Waiting smoothtalking others - 100 = court.3040 # Homesick Parent - 100 = court.3050 # Chief Eunuch suggests stirring up some drama - 100 = court.4804 # Low lodgings - characters don't like boarding together - 100 = court.5030 # Playtime - 100 = court.5040 # Pranking Spree - 100 = court.8050 # A Little Bird - 100 = court.8070 # Feeling Useful - 100 = court.8080 # Maternal Reproach - 100 = court.8130 # Contrived Conflict - 100 = court.8160 # Foremost Knight - 100 = court.8170 # Black Sheep - 100 = court.8180 # Secrets and Lies - 100 = court.7600 # Child Goes Hunting - 100 = court.7630 # Birds of Prey - # Personal - 100 = court.3060 # Feline Hunter - 100 = court.4600 # Cupbearer gets poisoned stealing your wine - 100 = court.4700 # Trepanning - 100 = court.4801 # Diaper Changing - 100 = court.4802 # Court Tutor is annoyed by children - 100 = court.5025 # A foreign diplomat wants to buy your cat - 100 = court.5026 # A foreign diplomat wants to buy your dog - 100 = court.6020 # Possession at Court - 100 = court.6050 # Saucy Readings - 100 = court.6060 # The Joys of Wine - 100 = court.8140 # Royal Lapse - 100 = court.9100 # Epicurean Entertainment - 100 = court.9200 # Bacchanalian Bonding - 100 = court.9300 # Overt Overindulgence - 100 = court.9500 # A Little Language - 100 = court.0109 # Executioner wants to become a doctor - } -} - -# Root = Character who is now considered absent from visiting their royal court -# scope:value = Months since last visited their royal court -# One is absent if not visiting for NRoyalCourt::MONTHS_FOR_ABSENT_FROM_COURT months -on_absent_from_royal_court = { - events = { - court_maintenance.0010 - } -} diff --git a/common/on_action/court_grandeur_on_actions.txt b/common/on_action/court_grandeur_on_actions.txt deleted file mode 100644 index dd01295fbb..0000000000 --- a/common/on_action/court_grandeur_on_actions.txt +++ /dev/null @@ -1,9 +0,0 @@ -# Fired when a character's court grandeur level changes -# root = character changing level -# scope:old_value = old level -# scope:new_value = new level -on_court_grandeur_level_changed = { - events = { - ep1_notifications.0001 - } -} diff --git a/common/on_action/court_type_on_actions.txt b/common/on_action/court_type_on_actions.txt deleted file mode 100644 index 5430945c95..0000000000 --- a/common/on_action/court_type_on_actions.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Fired when a character's court type changes -# root = character changing court -on_court_type_changed = { - -} diff --git a/common/on_action/death.txt b/common/on_action/death.txt index 796d4b270d..5ef35066ce 100644 --- a/common/on_action/death.txt +++ b/common/on_action/death.txt @@ -115,6 +115,16 @@ on_death = { # Warcraft } + + if = { + limit = { + exists = player_heir + } + trigger_event = { + id = fp3_yearly.2030 + days = 16 + } + } if = { # Lower Grandeur a little bit on death limit = { @@ -413,7 +423,7 @@ on_death = { ## FP1: Rumoured Draugr - fp1_yearly.0051 # Warcraft - # Might later be rumored to haunt the location in a court event + ## EP1: Might later be rumored to haunt the location in a court event if = { limit = { OR = { @@ -482,7 +492,6 @@ on_death = { add_character_flag = dead_ritual_best_friend } } - # Best friend loses synergy if = { limit = { has_any_best_friend_synergy_bonus_modifier_trigger = yes } @@ -498,25 +507,6 @@ on_death = { # Warcraft # Struggle Catalyst - #if = { - # limit = { - # # we verify that the death is not natural - # exists = scope:killer - # is_important_or_vip_struggle_character = yes - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_unnatural_death_important_character - # } - # } - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_unnatural_death_important_character - # character = root - # } - # } - #} - # # End of Warcraft every_close_family_member = { create_character_memory = { @@ -877,6 +867,55 @@ on_death = { } } } + + # Clan Succession effects + if = { + limit = { + government_has_flag = government_is_clan + house ?= { + OR = { + has_house_unity_stage = competitive + has_house_unity_stage = antagonistic + } + } + } + every_vassal = { + limit = { house ?= root.house } + add_unpressed_claim = root.primary_title + } + } + + # When the house head of a clan dies, they have an impact on their house's unity + # Effect of reducing the house unity has to be delayed in death_management.0100 so that your succession laws don't change from lowered house unity before the succession happens + if = { + limit = { + government_has_flag = government_is_clan + exists = house + house = { + house_head = root + NOT = { has_house_unity_stage = impassive } + } + primary_title.title_held_years >= 1 + } + #calculate the unity value you should lose on this character and save it to pass it to the add_unity_value effect in the death_management.0100 event + save_scope_value_as = { + name = unity_change + value = { + value = 10 + add = root.primary_title.title_held_years + multiply = -1 + min = -50 + } + } + save_scope_as = dead_house_head + #trigger the death_management.0100 event that will remove the unity after succession happens + player_heir = { + trigger_event = { + id = death_management.0100 + delayed = yes + } + } + } } events = { death_management.0096 # Updates marriage opinions of other spouses if relevant. diff --git a/common/on_action/decision_on_actions.txt b/common/on_action/decision_on_actions.txt deleted file mode 100644 index 7602999d86..0000000000 --- a/common/on_action/decision_on_actions.txt +++ /dev/null @@ -1,6 +0,0 @@ -pay_homage_invalid_on_action = { - events = { - pay_homage.0009 - pay_homage.0601 - } -} diff --git a/common/on_action/diarchy_on_action.txt b/common/on_action/diarchy_on_action.txt index 24cf062446..68cb92cceb 100644 --- a/common/on_action/diarchy_on_action.txt +++ b/common/on_action/diarchy_on_action.txt @@ -10,6 +10,14 @@ on_entered_diarchy = { id = diarchy.0101 months = { 3 9 } } + trigger_event = { + on_action = cycle_vizierate_politicking_events_on_action + months = { 6 18 } + } + trigger_event = { + id = vizierate.0501 + months = { 6 18 } + } # Notify the liege's vassals that they're in a diarchy. every_vassal_or_below = { @@ -141,7 +149,11 @@ on_left_diarchy = { days = 1 } } + # If they were a vizier, they lose their wealth. + vizierate_remove_extravagance_modifiers_effect = yes } + # Plus clean up the variable that tells the AI that they, themselves, appointed a vizier. + remove_variable = my_vizier # Object explorer logging for number of diarchs by tier. if = { @@ -324,6 +336,8 @@ on_diarch_change = { days = 1 } } + # Remove any extravagance modifiers. + vizierate_remove_extravagance_modifiers_effect = yes } # Invalidate grand weddings invalidate_diarch_grand_wedding_effect = yes @@ -546,3 +560,15 @@ on_diarch_designation = { } } } + +cycle_vizierate_politicking_events_on_action = { + random_events = { + # We always want these to cycle, so this is our chance of nothing happening event — it'll still prang the on_action cyclically. + 500 = vizierate.0051 + # And now, the actual events. + 250 = vizierate.0001 # Character furthers new relationships. + 100 = vizierate.0031 # Character learns languages to further candidacy. + 100 = vizierate.0041 # Character studies hard to further candidacy. + 20 = vizierate.1001 # Characters offers to replace vizier and distribute their cash reserves. + } +} diff --git a/common/on_action/dlc/bp2/bp2_adult_education_on_action.txt b/common/on_action/dlc/bp2/bp2_adult_education_on_action.txt deleted file mode 100644 index 59440d972d..0000000000 --- a/common/on_action/dlc/bp2/bp2_adult_education_on_action.txt +++ /dev/null @@ -1,27 +0,0 @@ -adult_education_arrival_events = { - events = { - bp2_adult_education.0010 - } -} - -adult_education_destination_events = { - random_events = { - 100 = bp2_adult_education.1000 - 100 = bp2_adult_education.1010 - 100 = bp2_adult_education.1011 - 100 = bp2_adult_education.1012 - 100 = bp2_adult_education.1020 - 100 = bp2_adult_education.1030 - 100 = bp2_adult_education.1040 - 100 = bp2_adult_education.1050 - 100 = bp2_adult_education.1060 - 100 = bp2_adult_education.1070 - 100 = bp2_adult_education.1080 - 100 = bp2_adult_education.1090 - 100 = bp2_adult_education.9000 # Clerical Guest Speaker - 100 = bp2_adult_education.9100 # Peasant Break-in - 100 = bp2_adult_education.9200 # Romantic Tensions in the Library - 100 = bp2_adult_education.9300 # Manic Student pitches Insane Idea - 100 = bp2_adult_education.9400 # Local Ruler Pays a Visit - } -} diff --git a/common/on_action/dlc/bp2/bp2_destiny_child_on_action.txt b/common/on_action/dlc/bp2/bp2_destiny_child_on_action.txt deleted file mode 100644 index 652c23856e..0000000000 --- a/common/on_action/dlc/bp2/bp2_destiny_child_on_action.txt +++ /dev/null @@ -1,18 +0,0 @@ -#On actions handling the Child of Destiny on action - -destiny_child_events = { - trigger = { - is_imprisoned = no - is_landed = yes - } - random_events = { - 50 = destiny_child.1000 #Child is developing physically - 50 = destiny_child.1005 #Child is debating religious scholars - 50 = destiny_child.1010 #They offer advice on military strategy - 50 = destiny_child.1015 #You find the child practicing the blade with a knight - 50 = destiny_child.1020 #They learn from a midwife or physician - 50 = destiny_child.1025 #A great knight has heard of your child's ability and wants to meet them - 50 = destiny_child.1030 #You designate the child as your primary heir - 50 = destiny_child.1035 #The destiny child is being fawned over by their peers - } -} diff --git a/common/on_action/dlc/bp2/bp2_hostage_on_actions.txt b/common/on_action/dlc/bp2/bp2_hostage_on_actions.txt deleted file mode 100644 index d8e05ee578..0000000000 --- a/common/on_action/dlc/bp2/bp2_hostage_on_actions.txt +++ /dev/null @@ -1,536 +0,0 @@ -############################# -## BP2 Hostage on_actions -############################# - -# root = Same as scope:hostage -# scope:hostage = Hostage being taken -# scope:warden = Warden of hostage being taken -# scope:home_court = Original liege of hostage being taken -on_hostage_taken = { - effect = { - create_character_memory = { - type = hostage_created_hostage - participants = { - home_court = root.home_court - warden = root.warden - } - } - if = { - limit = { is_adult = no } - scope:new_memory = { - set_variable = childhood_memory - } - } - warden ?= { - create_character_memory = { - type = hostage_created_warden - participants = { - home_court = root.home_court - hostage = root - } - } - } - home_court ?= { - create_character_memory = { - type = hostage_created_home_court - participants = { - warden = root.warden - hostage = root - } - } - } - - if = { - limit = { - scope:warden = { - employs_court_position = wet_nurse_court_position - any_court_position_holder = { - type = wet_nurse_court_position - save_temporary_scope_as = wet_nurse_temp - } - } - scope:hostage = { - is_adult = no - NOT = { has_relation_wet_nurse = scope:wet_nurse_temp } - } - } - scope:warden = { - random_court_position_holder = { - type = wet_nurse_court_position - save_scope_as = wet_nurse - } - } - scope:hostage = { - set_relation_wet_nurse = scope:wet_nurse - } - } - } -} - -# root = Same as scope:hostage -# scope:hostage = Hostage being released -# scope:warden = Warden of hostage being released -# scope:home_court = Liege hostage is being released to -on_hostage_released = { - effect = { - create_character_memory = { - type = hostage_returned_hostage - participants = { - warden = scope:warden - home_court = scope:home_court - } - } - scope:new_memory = { - save_scope_as = hostage_memory - if = { - limit = { exists = scope:warden.primary_title } - set_variable = { - name = hostage_realm - value = scope:warden.primary_title - } - } - if = { - limit = { exists = scope:warden.capital_province } - set_variable = { - name = hostage_location - value = scope:warden.capital_province - } - } - else_if = { - limit = { exists = scope:warden.location } - set_variable = { - name = hostage_location - value = scope:warden.location - } - } - if = { - limit = { exists = scope:warden.capital_province.culture } - set_variable = { - name = hostage_location_culture - value = scope:warden.capital_province.culture - } - } - else_if = { - limit = { exists = scope:warden.culture } - set_variable = { - name = hostage_location_culture - value = scope:warden.culture - } - } - if = { - limit = { exists = scope:warden.faith } - set_variable = { - name = hostage_warden_faith - value = scope:warden.faith - } - } - if = { - limit = { exists = scope:warden.culture } - set_variable = { - name = hostage_warden_culture - value = scope:warden.culture - } - } - } - scope:warden = { - create_character_memory = { - type = hostage_returned_warden - participants = { - home_court = scope:home_court - hostage = root - } - } - } - scope:home_court = { - create_character_memory = { - type = hostage_returned_home_court - participants = { - warden = scope:warden - hostage = root - } - } - } - } - random_events = { - 30 = 0 - 10 = bp2_yearly.6031 #Set up hostage providing a secret from their warden's court - } -} - -# root - former hostage -# scope:warden - former warden -# scope:home_court - former home court -# scope:imprisoner - if set, it means hostage was invalidated due to being imprisoned by this person -# scope:reason is the reason for invalidation -## scope:reason = flag:invalid - is the default case when liege becomes valid for diarchy because of is_hostage_valid script rule -## scope:reason = flag:ruler - hostage become landed ruler because of inheritance -## scope:reason = flag:imprisoner - hostage was imprisoned -## scope:reason = flag:warden - warden became unlanded and there's noone to inherit their court and hostages -## scope:reason = flag:home_court - home court owner became unlanded and there's noone to inherit their court and away courtiers -# hostage can be invalidated for various reasons. This onaction is called -# and on_hostage_released is skipped -# warden and home court are always set but might refer to already dead or landless people -on_hostage_invalidated = { - effect = { - save_scope_as = hostage - debug_log = "Hostage invalidated" - debug_log_scopes = yes - add_character_flag = { - flag = recently_invalidated_hostage - days = 1 - } - - ### STARTING LOCATION - # Start from warden if possible - if = { - limit = { exists = scope:warden.capital_province } - scope:warden.capital_province = { save_scope_as = starting_location } - } - else_if = { - limit = { exists = scope:warden.location } - scope:warden.location = { save_scope_as = starting_location } - } - # Otherwise from where you are - else = { - location = { save_scope_as = starting_location } - } - # To ensure starting location is correct - if = { - limit = { location != scope:starting_location } - set_location = scope:starting_location - } - - ### DESTINATION LOCATION - # If adopted - if = { - limit = { - OR = { - scope:hostage.father = scope:warden - scope:hostage.mother = scope:warden - } - } - return_hostage = yes - scope:warden = { add_courtier = scope:hostage } - } - # If inherited land, head to new capital - else_if = { - limit = { scope:reason = flag:ruler } - capital_province = { save_scope_as = destination_province } - } - # Else to home court's capital - else_if = { - limit = { - scope:home_court = { - is_alive = yes - is_landed = yes - exists = capital_province - } - } - scope:home_court.capital_province = { save_scope_as = destination_province } - } - # Else to home court's location - else_if = { - limit = { - scope:home_court = { - is_alive = yes - exists = location - } - } - scope:home_court.location = { save_scope_as = destination_province } - } - # Else to a fallback family member's capital - else_if = { - limit = { - any_close_family_member = { - is_alive = yes - is_landed = yes - } - } - random_close_family_member = { - limit = { - is_alive = yes - is_landed = yes - } - capital_province = { save_scope_as = destination_province } - } - } - # Else stay put - else = { - location = { save_scope_as = destination_province } - } - - ### TRAVEL - if = { - limit = { - exists = scope:destination_province - NOR = { - scope:starting_location = scope:destination_province - is_imprisoned = yes - } - } - start_travel_plan = { - players_use_planner = no - destination = scope:destination_province - on_start_on_action = on_hostage_depart_for_home_court - on_travel_planner_cancel_on_action = on_hostage_depart_travel_planner_exit - on_arrival_on_action = on_hostage_arrive_at_home_court - on_arrival_destinations = last - return_trip = no # One way - } - } - - ### FLAVOR SCOPES/EVENTS - # Title flavor - if = { - limit = { scope:reason = flag:warden } - if = { - limit = { - scope:warden = { - any_claim = { - any_past_holder = { this = scope:warden } - save_temporary_scope_as = title - scope:warden = { has_strong_claim_on = scope:title } - } - } - } - } - scope:warden = { - ordered_claim = { - limit = { - any_past_holder = { this = scope:warden } - save_temporary_scope_as = title - scope:warden = { has_strong_claim_on = scope:title } - } - order_by = tier - save_scope_as = lost_title - } - } - } - else_if = { - limit = { scope:reason = flag:home_court } - if = { - limit = { - scope:home_court = { - any_claim = { - any_past_holder = { this = scope:home_court } - save_temporary_scope_as = title - scope:home_court = { has_strong_claim_on = scope:title } - } - } - } - } - scope:home_court = { - ordered_claim = { - limit = { - any_past_holder = { this = scope:home_court } - save_temporary_scope_as = title - scope:home_court = { has_strong_claim_on = scope:title } - } - order_by = tier - save_scope_as = lost_title - } - } - } - else_if = { - limit = { scope:reason = flag:ruler } - scope:hostage = { - trigger_event = { - id = bp2_hostage_system.0402 - days = 1 - } - } - } - scope:warden ?= { trigger_event = bp2_hostage_system.0400 } - scope:home_court ?= { trigger_event = bp2_hostage_system.0401 } - } -} - -on_hostage_depart_for_warden = { - effect = { - if = { - limit = { - has_bp2_dlc_trigger = yes - - liege ?= { - is_adult = yes - NOT = { #to avoid repetition with more hostages - has_character_flag = bp2_hostage_blues - } - any_memory = { - has_memory_type = hostage_created_hostage - has_variable = childhood_memory - } - is_parent_of = root - } - root = { - is_adult = no - age > 6 #Can ride horses - } - } - liege ?= { - set_variable = { - name = hostage_kid - value = root - } - save_scope_as = hostage_home_court - random_memory = { - limit = { - has_memory_type = hostage_created_hostage - has_variable = childhood_memory - } - scope:hostage_home_court = { - set_variable = { - name = hostage_mem - value = prev - } - } - } - trigger_event = bp2_yearly.4032 - } - } - } -} - -on_hostage_depart_for_home_court = { - -} - -on_hostage_depart_travel_planner_exit = { - effect = { - if = { - limit = { has_variable = hostage_travelling_to_warden } - remove_variable = hostage_travelling_to_warden - } - } -} - -on_hostage_arrive_at_warden = { - effect = { - save_scope_as = hostage - var:hostage_travelling_to_warden ?= { save_scope_as = hostage_warden } - # Liege is still home court until take_hostage effect is called in bp2_hostage_system.0501 - liege ?= { save_scope_as = hostage_home_court } - # Invalidate travelling hostages - if = { - limit = { - exists = var:hostage_travelling_to_warden - OR = { - var:hostage_travelling_to_warden = { - OR = { - # Warden dies (flag:warden) - is_alive = no - # Warden loses lands (flag:warden) - is_landed = no - #War - AND = { - exists = scope:hostage_home_court - is_at_war_with = scope:hostage_home_court - } - } - } - # Hostage is jailed (flag:imprisoner) - is_imprisoned = yes - # Hostage becomes landed (flag:ruler) - is_landed = yes - # No longer important to home court (flag:invalid) - trigger_if = { - limit = { exists = liege } - NOR = { - is_child_of = liege - is_grandchild_of = liege - is_sibling_of = liege - is_nibling_of = liege - } - } - trigger_else = { - # Home court no longer landed (flag:home_court) - NOT = { exists = liege } - } - } - } - save_scope_as = hostage - if = { - limit = { exists = liege } - liege = { save_scope_as = home_court } - } - var:hostage_travelling_to_warden = { - send_interface_toast = { - title = hostage_invalidated_during_travel_title - left_icon = scope:hostage - right_icon = scope:home_court - show_as_tooltip = { - scope:hostage.current_travel_plan = { - if = { - limit = { is_completed = no } - cancel_travel_plan = yes - } - } - } - } - } - scope:home_court ?= { - send_interface_toast = { - title = hostage_invalidated_during_travel_title - left_icon = scope:hostage - right_icon = scope:hostage.var:hostage_travelling_to_warden - scope:hostage = { - remove_variable = hostage_travelling_to_warden - current_travel_plan = { - if = { - limit = { is_completed = no } - cancel_travel_plan = yes - } - } - } - } - } - } - else_if = { - limit = { - scope:hostage_warden ?= { - is_alive = yes - is_landed = yes - } - } - if = { - limit = { location != var:hostage_travelling_to_warden.capital_province } - set_location = var:hostage_travelling_to_warden.capital_province - } - scope:hostage_warden = { trigger_event = bp2_hostage_system.0500 } - } - remove_variable = hostage_travelling_to_warden - debug_log = "Hostage arrived after travel" - debug_log_scopes = yes - scope:home_court ?= { - trigger_event = { - id = bp2_yearly.6170 # your family mad that you sent a hostage to an uncivilized court - years = { 1 5 } - } - } - } -} - -on_hostage_arrive_at_home_court = { - effect = { - save_scope_as = hostage - var:short_hostage_duration ?= { save_scope_as = hostage_warden } - var:hostage_duration ?= { save_scope_as = hostage_warden } - var:long_hostage_duration ?= { save_scope_as = hostage_warden } - liege ?= { save_scope_as = hostage_home_court } - if = { - limit = { - scope:hostage_home_court ?= { - is_alive = yes - is_landed = yes - } - } - if = { - limit = { location != scope:hostage_home_court.capital_province } - set_location = scope:hostage_home_court.capital_province - } - scope:home_court = { trigger_event = bp2_hostage_system.0510 } - } - debug_log = "Hostage returned after travel" - debug_log_scopes = yes - } -} diff --git a/common/on_action/dlc/bp2/bp2_pet_rock_on_actions.txt b/common/on_action/dlc/bp2/bp2_pet_rock_on_actions.txt deleted file mode 100644 index 340b227a32..0000000000 --- a/common/on_action/dlc/bp2/bp2_pet_rock_on_actions.txt +++ /dev/null @@ -1,19 +0,0 @@ -#On actions handling the Pet Rock Story Cycle - -ongoing_rock_events = { - trigger = { - is_imprisoned = no - #TODO_BP2 add BP2 DLC trigger - } - random_events = { - 100 = pet_rock.0100 #Chill with your rock and lose stress - 50 = pet_rock.0101 #Your rock wants a polish - 50 = pet_rock.0102 #Your rock wants a bath - 50 = pet_rock.0103 #You sneak your rock some mint - 25 = pet_rock.0104 #You lose your rock - 100 = pet_rock.0105 #You meet another rock owner - 50 = pet_rock.0106 #Your rock falls off a desk - 50 = pet_rock.0107 #You make your pet rock a little house - 50 = pet_rock.0108 #You have the option to enscone your rock in your home - } -} diff --git a/common/on_action/dlc/ep1/ep1_court_language_on_actions.txt b/common/on_action/dlc/ep1/ep1_court_language_on_actions.txt deleted file mode 100644 index 352660fa4e..0000000000 --- a/common/on_action/dlc/ep1/ep1_court_language_on_actions.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Fired when a character's court grandeur level changes -# root = character observing the change -# scope:target_character = character changing language -on_court_language_changed = { - events = { - ep1_notifications.0011 - ep1_notifications.0012 - ep1_notifications.0013 - } -} diff --git a/common/on_action/dlc/ep1/ep1_inspiration_on_actions.txt b/common/on_action/dlc/ep1/ep1_inspiration_on_actions.txt deleted file mode 100644 index e0f6d97074..0000000000 --- a/common/on_action/dlc/ep1/ep1_inspiration_on_actions.txt +++ /dev/null @@ -1,16 +0,0 @@ -#On actions relating to maintenance and effects of Inspirations. - -inspiration_maintenance_global_pulse = { - events = { - # Generate new inspired people every year, up to the limit - delay = { days = { 1 100 } } - inspiration_system.0005 - } -} - -# Each quarter, every ruler checks if any guests in their court with active Inspirations should move to an(other) Royal Court. -inspiration_maintenance_quarterly_pulse = { - events = { - inspiration_system.1001 - } -} diff --git a/common/on_action/dlc/ep1/ep1_pay_homage_on_actions.txt b/common/on_action/dlc/ep1/ep1_pay_homage_on_actions.txt deleted file mode 100644 index a309ab3064..0000000000 --- a/common/on_action/dlc/ep1/ep1_pay_homage_on_actions.txt +++ /dev/null @@ -1,312 +0,0 @@ -pay_homage_start = { - effect = { - switch = { - trigger = has_trait - shy = { add_stress = medium_stress_impact_gain } - arrogant = { add_stress = medium_stress_impact_gain } - } - if = { - limit = { has_variable = pay_homage_grace } - remove_variable = pay_homage_grace - } - set_variable = { - name = pay_homage_grace - value = liege - } - liege = { - if = { # Make sure the AI doesn't spam homage - limit = { - NOT = { has_variable = pay_homage_cooldown } - } - set_variable = { # To stop AI vassals taking decision all at once - name = pay_homage_cooldown - years = 2 - } - } - else = { - remove_variable = pay_homage_cooldown - set_variable = { # To stop AI vassals taking decision all at once - name = pay_homage_cooldown - years = 2 - } - } - } - if = { - limit = { has_variable = homage_type } # To stop errors - switch = { - trigger = var:homage_type - flag:homage_submission = {} #Submission - flag:homage_gold = {} #Gold - flag:homage_hook = {} #Favor - flag:homage_contract = { # Contract - if = { # Levies - limit = { - vassal_contract_obligation_level:feudal_government_levies < vassal_contract_obligation_level:feudal_government_taxes - vassal_contract_obligation_level_can_be_increased = feudal_government_levies - } - set_variable = { - name = pay_homage_contract_type - value = 0 - } - } - else_if = { # Gold - limit = { - vassal_contract_obligation_level:feudal_government_taxes < vassal_contract_obligation_level:feudal_government_levies - vassal_contract_obligation_level_can_be_increased = feudal_government_taxes - } - set_variable = { - name = pay_homage_contract_type - value = 1 - } - } - else = { - if = { # Gold - limit = { vassal_contract_obligation_level_can_be_increased = feudal_government_taxes } - set_variable = { - name = pay_homage_contract_type - value = 1 - } - } - else = { # Levies - set_variable = { - name = pay_homage_contract_type - value = 0 - } - } - } - } - } - } - scope:homage_liege = { - every_courtier = { - limit = { is_close_family_of = prev } - add_to_list = pay_homage_family_list - } - every_spouse = { - limit = { is_close_family_of = prev } - add_to_list = pay_homage_family_list - } - if = { - limit = { - scope:homage_vassal.attraction >= 10 - scope:homage_vassal = { - might_cheat_on_every_partner_trigger = yes - NOR = { - has_trait = chaste - has_trait = celibate - } - } - any_in_list = { - list = pay_homage_family_list - is_available_ai_adult = yes - can_start_scheme = { - type = seduce - target = scope:homage_vassal - } - AND = { - might_cheat_on_every_partner_trigger = yes - NOR = { - has_trait = chaste - has_trait = celibate - } - OR = { - is_attracted_to_gender_of = scope:homage_vassal - has_perk = unshackled_lust_perk - } - trigger_if = { - limit = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:homage_vassal } } - OR = { - freely_accepts_sodomy_with_trigger = { CHARACTER = scope:homage_vassal } - has_perk = unshackled_lust_perk - } - } - trigger_if = { - limit = { relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:homage_vassal } } - OR = { - has_perk = subtle_desire_perk - accepts_incest_with_trigger = { CHARACTER = scope:homage_vassal } - } - } - } - scope:homage_vassal = { - AND = { - OR = { - is_attracted_to_gender_of = prev - has_perk = unshackled_lust_perk - } - trigger_if = { - limit = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = prev } } - OR = { - freely_accepts_sodomy_with_trigger = { CHARACTER = prev } - has_perk = unshackled_lust_perk - } - } - trigger_if = { - limit = { relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = prev } } - OR = { - has_perk = subtle_desire_perk - accepts_incest_with_trigger = { CHARACTER = prev } - } - } - } - } - } - } - random_in_list = { - list = pay_homage_family_list - limit = { - is_available_ai_adult = yes - can_start_scheme = { - type = seduce - target = scope:homage_vassal - } - AND = { - might_cheat_on_every_partner_trigger = yes - NOR = { - has_trait = chaste - has_trait = celibate - } - OR = { - is_attracted_to_gender_of = scope:homage_vassal - has_perk = unshackled_lust_perk - } - trigger_if = { - limit = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:homage_vassal } } - OR = { - freely_accepts_sodomy_with_trigger = { CHARACTER = scope:homage_vassal } - has_perk = unshackled_lust_perk - } - } - trigger_if = { - limit = { relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:homage_vassal } } - OR = { - has_perk = subtle_desire_perk - accepts_incest_with_trigger = { CHARACTER = scope:homage_vassal } - } - } - } - scope:homage_vassal = { - AND = { - OR = { - is_attracted_to_gender_of = prev - has_perk = unshackled_lust_perk - } - trigger_if = { - limit = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = prev } } - OR = { - freely_accepts_sodomy_with_trigger = { CHARACTER = prev } - has_perk = unshackled_lust_perk - } - } - trigger_if = { - limit = { relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = prev } } - OR = { - has_perk = subtle_desire_perk - accepts_incest_with_trigger = { CHARACTER = prev } - } - } - } - } - } - weight = { - modifier = { - factor = 2 - has_trait = lustful - } - modifier = { - factor = 0.5 - OR = { - AND = { - is_male = yes - scope:homage_vassal = { is_male = yes } - } - AND = { - is_female = yes - scope:homage_vassal = { is_female = yes } - } - } - NOT = { - faith = { has_doctrine = doctrine_homosexuality_accepted } - } - } - modifier = { - factor = 2 - age <= 30 - } - modifier = { - factor = 4 - is_married = no - } - modifier = { - factor = 2 - is_child_of = scope:homage_liege - } - modifier = { - factor = 2 - is_parent_of = scope:homage_liege - } - modifier = { - factor = 2 - is_spouse_of = scope:homage_liege - } - } - save_scope_as = homage_infatuation - start_scheme = { - type = seduce - target = scope:homage_vassal - } - } - } - } - } -} - -pay_homage_travel_planner_exit = { - effect = { - send_interface_toast = { - title = pay_homage_costs_refunded - left_icon = root - # Remove variable preventing you from paying homage again - if = { - limit = { - has_variable = pay_homage_grace - exists = liege - var:pay_homage_grace = liege - } - remove_variable = pay_homage_grace - } - # refund any costs - add_prestige_no_experience = standard_activity_cost - if = { - limit = { - has_variable = pay_homage_gold_value - } - add_gold = var:pay_homage_gold_value - } - switch = { - trigger = has_trait - shy = { add_stress = medium_stress_impact_loss } - arrogant = { add_stress = medium_stress_impact_loss } - } - } - # Variable cleanup - if = { - limit = { has_variable = homage_type } - remove_variable = homage_type - } - # Contract - if = { - limit = { has_variable = pay_homage_contract_type } - remove_variable = pay_homage_contract_type - } - # Liege - if = { - limit = { has_variable = homage_liege_scope } - remove_variable = homage_liege_scope - } - if = { - limit = { has_variable = pay_homage_gold_value } - remove_variable = pay_homage_gold_value - } - } -} diff --git a/common/on_action/dlc/ep1/ep1_petition_liege_on_actions.txt b/common/on_action/dlc/ep1/ep1_petition_liege_on_actions.txt deleted file mode 100644 index d913172d5f..0000000000 --- a/common/on_action/dlc/ep1/ep1_petition_liege_on_actions.txt +++ /dev/null @@ -1,125 +0,0 @@ -# Petition Liege On Action from Activity Rework -petition_liege_start = { - effect = { - add_character_flag = petition_liege_character_flag - set_variable = { - name = petition_liege_scope - value = liege - } - switch = { - trigger = has_trait - shy = { add_stress = medium_stress_impact_gain } - arrogant = { add_stress = medium_stress_impact_gain } - } - } -} - -petition_liege_travel_planner_exit = { - effect = { - send_interface_toast = { - title = petition_liege_costs_refunded - left_icon = root - remove_decision_cooldown = petition_liege_decision - # refund prestige cost - add_prestige_no_experience = standard_activity_cost - switch = { - trigger = has_trait - shy = { add_stress = medium_stress_impact_loss } - arrogant = { add_stress = medium_stress_impact_loss } - } - } - if = { - limit = { has_variable = petition_liege_scope } - remove_variable = petition_liege_scope - } - if = { - limit = { has_variable = petition_type } - remove_variable = petition_type - } - if = { - limit = { has_character_flag = petition_liege_character_flag } - remove_character_flag = petition_liege_character_flag - } - } -} - -petition_liege_0101 = { - effect = { - if = { - limit = { - scope:petition_liege = { - is_alive = yes - is_imprisoned = no - } - scope:petition_vassal = { - is_alive = yes - is_imprisoned = no - } - } - trigger_event = petition_liege.0101 - } - else = { - trigger_event = petition_liege.0601 - } - } -} - -petition_liege_0201 = { - effect = { - if = { - limit = { - petition_liege_valid_trigger = yes - } - scope:petition_vassal = { - trigger_event = { - id = petition_liege.0201 - } - } - } - else = { - trigger_event = petition_liege.0601 - } - } -} - -petition_liege_0205 = { # Liege proposes a counter offer - effect = { - if = { - limit = { - petition_liege_valid_trigger = yes - } - trigger_event = { - id = petition_liege.0205 - } - } - else = { - trigger_event = petition_liege.0601 - } - } -} - -petition_liege_0401 = { # Vassal skill check event - effect = { - if = { - limit = { - petition_liege_valid_trigger = yes - } - trigger_event = petition_liege.0401 - } - else = { - trigger_event = petition_liege.0601 - } - } -} - - -petition_liege_ghosted = { - effect = { - if = { - limit = { - has_variable = petition_liege_scope - } - trigger_event = petition_liege.0009 - } - } -} diff --git a/common/on_action/dlc/ep2/ep2_tour_on_actions.txt b/common/on_action/dlc/ep2/ep2_tour_on_actions.txt deleted file mode 100644 index fe65e4f58e..0000000000 --- a/common/on_action/dlc/ep2/ep2_tour_on_actions.txt +++ /dev/null @@ -1,194 +0,0 @@ -# Ongoing events while you are traveling -on_tour_travel = { - trigger = { - exists = involved_activity - involved_activity = { - has_activity_type = activity_tour - activity_host = root - } - location = { - exists = county - county = { - OR = { - holder = { is_vassal_or_below_of = root } - holder = root - } - } - } - } - random_events = { - chance_of_no_event = { - value = 80 - } - 100 = tour_travel.1001 # Local peasants discuss how much they hate the king - 100 = tour_travel.1002 # You pass by an attractive commoner and try to seduce them - 100 = tour_travel.1003 # A peasant doesn't show you proper etiquette - 100 = tour_travel.1004 # You wash the feet of a diseased peasant - 100 = tour_travel.1005 # Locals beg you to touch their diseased faces - 100 = tour_travel.1006 # You distribute alms by a local temple - 100 = tour_travel.1007 # You visit a wise woman to fix your ugly - 100 = tour_travel.3000 # Village has no place to worship - 100 = tour_travel.3001 # Villager wants you to get married - 100 = tour_travel.3002 # Villagers entire family were killed in your war - 100 = tour_travel.3003 # Disgusting peasants - 10 = tour_travel.3004 # Villagers build an ugly statue - 100 = tour_travel.3005 # You find a peasant who has committed a crime you do. - 100 = tour_travel.3006 # Several peasants ask for war stories - 100 = tour_travel.3007 # You are taken to a brothel - 100 = tour_travel.3020 # Confessin of love - 100 = tour_travel.3030 # Wrongfully accused - 100 = tour_travel.3040 # Bandits ahead - 120 = tour_travel.3110 # Danger! Low development - Local ruler tries to steal from you - 100 = tour_travel.3120 # You encounter a pool character in a tavern - 100 = tour_travel.3130 # A peasant complains they've lost their job - 100 = tour_travel.3140 # Stop in a brothel - 100 = tour_travel.9010 # Highwaymen on the way, low control, Justice - 100 = tour_travel.9020 # Someone is up for execution, Justice - 100 = tour_travel.9030 # Visit a tavern, revelry - } -} - -# Ongoing tour_grounds -on_tour_grounds_liege = { - random_events = { - 100 = 0 - # General/shared - 100 = tour_general.3001 # You find a talented courtier and attempt to recruit them - 100 = tour_general.3003 # Intimidation: You are a fanatical cat/dog person - 100 = tour_general.4000 # Intimidation: Parade your entourage prisoners down the holding main street - 100 = tour_general.4001 # Search a room and find vassal secrets - 100 = tour_general.4006 # Come across a drunk vassal servant, gain scheme buff/s - 100 = tour_general.4007 # Gain a hook on one of the vassal's close characters - # Tour grounds - 100 = tour_grounds_events.3003 # You spot a beast in a precarious position and attempt to slay it - 100 = tour_grounds_events.3008 # You trample a child with your horse - 100 = tour_grounds_events.3010 # Your horse stumbles over a rock - 100 = tour_grounds_events.3012 # You give your host a bag of severed heads from poachers - 100 = tour_grounds_events.3014 # You collect a window tax on your host - 100 = tour_grounds_events.3016 # You carve your lover's name into a tree - 100 = tour_grounds_events.3019 # You collect taxable extras on your host - - 100 = tour_grounds_events.6000 # Vassal invites you to an orgy with their partners - 100 = tour_grounds_events.6100 # Christian Cathedral - 100 = tour_grounds_events.6200 # Vassal lets it slip that s/he's had a very bountiful harvest - 100 = tour_grounds_events.6202 # Tradeport - 100 = tour_grounds_events.6300 # Gloryhound vassal challenges you to a sparring match in front of his soldiers - 100 = tour_grounds_events.3040 # Some peasants are talking smack about your host - 100 = tour_grounds_events.3050 # Some neer-do-wells are roughing up a local - 100 = tour_grounds_events.3060 # Your vassal has some cool stationed MaA, micromanage them? - 100 = tour_grounds_events.3030 # You found a treasure map, investigate? - 100 = tour_grounds_events.3070 # Your vassal has a cool relaxing building - 100 = tour_grounds_events.3080 # Your vassal has a cool military building - 100 = tour_grounds_events.3090 # Local farmers are showing off their crops and livestock - 100 = tour_grounds_events.3100 # Spend some time in town hanging out! - } -} -on_tour_grounds_vassal = { - random_events = { - 100 = 0 - 100 = tour_general.2000 # Find secret/hook on your liege/key member of liege's court - 100 = tour_general.2001 # Help liege entourage member, gain scheme progress - # Tour grounds - 100 = tour_grounds_events.1001 # You attempt to show off your hunting skills - 100 = tour_grounds_events.1002 # You stage an elaborate mock-assassination on your liege - 100 = tour_grounds_events.1004 # You attempt to have a romantic encounter with your liege in the woods - 100 = tour_grounds_events.1006 # A landless character speaks out of turn - 100 = tour_grounds_events.1008 # A member of your court tells your child liege a scary story - 100 = tour_grounds_events.1010 # You capture your liege's rival and have them ridden around like a horse - 100 = tour_grounds_events.1012 # You find a vegetable that looks like your liege - 100 = tour_grounds_events.1014 # You stage a fake hunt for your liege - - 100 = tour_grounds_events.7001 # Try to keep your liege from your secret stash room - } -} -on_tour_dinner_liege = { - random_events = { - 100 = 0 - # General/shared - 100 = tour_general.3001 # You find a talented courtier and attempt to recruit them - # Host a dinner - 100 = host_dinner_events.3001 # Liege is propositioned by host's spouse - 100 = host_dinner_events.3003 # Local cullinary delicacy sounds absolutely vile but would be rude to reject - 100 = host_dinner_events.3004 # You corner your vassal's heir, manipulate them for a hook? - 100 = host_dinner_events.3006 # You talk with a random courtier about how much better life is in the capital - 100 = host_dinner_events.3008 # As you wake up, you find a servant who seems to know something - 100 = host_dinner_events.3010 # The dinner is not to your liking, ask for something from home? - 100 = host_dinner_events.3020 # Drinking contest! - 100 = host_dinner_events.3030 # A promising child, tutor them? - 100 = host_dinner_events.3040 # Who ate all the pies?? - 100 = host_dinner_events.3050 # Temperate entourage member refusing to eat - 100 = host_dinner_events.3060 # You get completely hooked on Semlor and nearly die - 100 = host_dinner_events.3070 # You decide to tell stories from your life to impress your vassal's court - 100 = host_dinner_events.3080 # Someone is choking, save them! - 100 = host_dinner_events.3090 # Make a skull goblet and drink from it - 100 = host_dinner_events.3100 # You realise there's probably more to tax here - 100 = host_dinner_events.3110 # A pool character wants to join your court! - 100 = host_dinner_events.3120 # Majesty tour, bestow a gift! - 100 = host_dinner_events.3130 # Something is not quite right about your vassal's pantry, investigate? - 100 = host_dinner_events.3140 # You try to combine two foods - 100 = host_dinner_events.3150 # Your knight starts a fight - } -} -on_tour_dinner_vassal = { - random_events = { - # Host a dinner - 100 = host_dinner_events.1001 # Alcohol stores run dry - 100 = host_dinner_events.1003 # Liege is asleep, prank them? - 100 = host_dinner_events.1007 # Put on a show for your liege based on their memories - 100 = host_dinner_events.1009 # You invite your liege to share some weed brownies, or just a regular dessert - 100 = host_dinner_events.1011 # Liege is (not) vegetarian, adjust the meal for them? - 100 = host_dinner_events.1020 # Make a cake in the shape of something your liege likes - 100 = host_dinner_events.1030 # Rival crashes the party - 100 = host_dinner_events.1040 # Play board games with your liege - 100 = host_dinner_events.1050 # Your food stores run dry - 100 = host_dinner_events.1060 # You offer your liege some manflesh - 100 = host_dinner_events.1070 # A member of your liege's procession wants to join your court! - 100 = host_dinner_events.1080 # Put on a deliberately offensive performance for your rival liege - 100 = host_dinner_events.1090 # Murder your liege? - } -} - -on_tour_festival_liege = { - random_events = { - 200 = 0 - 100 = cultural_festival.2001 # Performer messes up in front of you - 150 = cultural_festival.2010 # King/Queen of Love and Beauty / Grim and Grievance - 120 = cultural_festival.2020 # You enjoy a cultural demonstration based on the time of the year/culture - 100 = cultural_festival.2030 # You tax people that go into the cultural festival - 100 = cultural_festival.2040 # You are horrified by the culture in the cultural festival - 100 = cultural_festival.2050 # Local dance is too scandalous - 120 = cultural_festival.2060 # You bring sophisticated entertainments from the capital to a low-dev county - 100 = cultural_festival.2070 # You encounter a band of mercenaries enjoying the festivities, recruit? - 100 = cultural_festival.2080 # Do you want to buy a miraculous tonic? - 120 = cultural_festival.2090 # Arrest the performers over made-up accussations - 100 = cultural_festival.2100 # A guild is contributing to the festival - 100 = cultural_festival.2110 # A puppy breaks into stage - 100 = cultural_festival.3020 # Bilateral: Make your vassal pay you homage - 100 = cultural_festival.3050 # Bilateral: You struggle to stay awake during a boring performance - 100 = cultural_festival.3060 # Bilateral: You take someone out to dance - 100 = cultural_festival.4000 # You end up in a conversation in a language you don't know - 100 = cultural_festival.4100 # Your courtier made a cultural faux pas - 100 = cultural_festival.4310 # Bilateral: You ask about your old gift - 100 = cultural_festival.9000 # Something is not quite right about backstage, investigate? - 100 = cultural_festival.9010 # Your kid becomes entranced by the local culture - 100 = cultural_festival.9020 # A human sacrifice is happening - 100 = cultural_festival.9040 # Encounter a fortune teller - 100 = cultural_festival.9050 # Sexy dancing - } -} - -on_tour_festival_vassal = { - random_events = { - 200 = 0 - 100 = cultural_festival.3000 # Bilateral: Make a play about your liege - 100 = cultural_festival.3010 # Bilateral: Make a fountain run with alcohol/juice - 100 = cultural_festival.3030 # Bilateral: Make the liege a judge in a local farm animal contest - 100 = cultural_festival.3040 # Bilateral: Set up a sword in the stone type of activity - 120 = cultural_festival.3070 # Bilateral: Hold a Feast of Fools-esque ceremony - 100 = cultural_festival.4100 # Your courtier made a cultural faux pas - 100 = cultural_festival.4200 # Bilateral: You make a parade - 100 = cultural_festival.4300 # Bilateral: Exchange gifts - 100 = cultural_festival.4310 # Bilateral: You ask about your old gift - 100 = cultural_festival.9030 # attempt to get religious protection - } -} diff --git a/common/on_action/dlc/ep2/ep2_tournament_on_actions.txt b/common/on_action/dlc/ep2/ep2_tournament_on_actions.txt deleted file mode 100644 index 8d79957c19..0000000000 --- a/common/on_action/dlc/ep2/ep2_tournament_on_actions.txt +++ /dev/null @@ -1,655 +0,0 @@ -# on_actions used in Tournament contests - -tournament_passive_state_host_pulse = { -} - -tournament_passive_state_guest_pulse = { - trigger = { exists = scope:activity } - random_events = { - chance_to_happen = 25 - # AI Events - 100 = ep2_locale_events.0001 # Miniscule AI score change - 100 = ep2_locale_events.0002 # Minor AI score change - 50 = ep2_locale_events.0003 # Medium AI score change - 50 = tournament_events.1110 # Pas D'Armes challenge - } - events = { - tournament_events.0800 # No Longer Valid Contestant - } -} - -tournament_leave_travel_state = { - random_events = { - chance_to_happen = 25 - 1 = tournament_events.1110 # Pas D'Armes challenge - } -} - -tournament_active_state_pulse = { - trigger = { - NOT = { has_character_flag = busy_in_contest_event } - exists = scope:activity - } - random_events = { - chance_of_no_event = { - value = 25 - if = { - limit = { is_ai = yes } - value = 50 - } - } - # Flavor - 150 = tournament_events.1270 # Congratulate Winner - 50 = tournament_events.1280 # Stand Collapses - # Spectator Events - 50 = tournament_events.1400 - 50 = tournament_events.1401 # You block someone else's view - 50 = tournament_events.1402 # Someone blocks your view - 50 = tournament_events.1403 # Priest harangues the crowd - 50 = tournament_events.1404 # Gossip with friend about hot knights - 50 = tournament_events.1405 - 50 = tournament_events.1406 - 50 = tournament_events.1407 - 50 = tournament_events.1408 - 50 = tournament_events.1409 - 50 = tournament_events.1410 - # Intents - 150 = tournament_events.6010 # General Murder - 50 = tournament_events.6510 # Alluring Triumph - } -} - -#################### -##### CONTESTS ##### -#################### - -############ -### TEAM ### -############ - -# MELEE - -contest_ongoing_event_melee_setup_pulse = { # For events that should fire before others - events = { - contest_events.1110 # Planned murder intent - contest_events.1100 # AI unplanned murder intent - contest_events.1120 - } -} - -contest_ongoing_event_melee_random_pulse = { # 1st pool of random events - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 1 = 0 - 100 = contest_events.0910 # Out of Control - 100 = ep2_tournament_events.1001 #Brawl spills over into nearby town - 300 = ep2_tournament_events.1002 #Mayor of nearby town is incensed - 100 = ep2_tournament_events.1003 #Your weapon is knocked from your grasp - 100 = ep2_tournament_events.1004 #A comely [non-martial gender] has taken a wrong turn and ended up in the melee! - 100 = ep2_tournament_events.1006 #Ransoming a captive - 100 = ep2_tournament_events.1007 #Take a rest in a refuge - 100 = ep2_tournament_events.1011 #You encounter a famous knight in the melee - 100 = ep2_tournament_events.1012 # You attempt to ambush an opponent in the trees - 100 = ep2_tournament_events.1013 # An opponent has fallen from their horse - 100 = ep2_tournament_events.1015 #A mysterious knight is doing very well - 100 = ep2_tournament_events.1017 #Cornered by three opposing knights - 100 = ep2_tournament_events.1018 #You save a house member - 10 = contest_events.1130 # Attack rival - 5 = ep2_tournament_events.1005 #Death Event: You step into a throat strike - } - -} - -contest_ongoing_event_melee_ai_pulse = { # AI maintenance/score events - trigger = { - involved_activity = { - any_guest_subset_current_phase = { - name = qualified - this = root - } - } - } - random_events = { - chance_to_happen = 33 - 100 = 0 - 5 = tournament_events.0700 # AI accidental death - } -} - -contest_ongoing_event_melee_pivotal_pulse = { # Pivotal moment skill check events - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 100 = contest_events.0610 # Pivotal skill check - } -} - -contest_ongoing_event_melee_outcome_pulse = { # Outcome events - events = { - contest_events.0620 # Melee outcome - } -} - -############ -### TURN ### -############ - -# ARCHERY - -contest_ongoing_event_archery_random_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 1 = 0 - 100 = ep2_tournament_events.1501 #A competitor demands quiet - 100 = contest_events.1520 # Tragedy at the Butts - Contestant - 100 = contest_events.1530 # On the Head - Contestant - 100 = contest_events.1540 # Bad Day - Contestant - 250 = contest_events.1550 # Mysterious Stranger - 100 = ep2_tournament_events.1502 # Arrow Dynamics - 100 = ep2_tournament_events.1503 # Bored at the Butts - 50 = ep2_tournament_events.6501 #You try to liven up the Contest - Contestant - 100 = ep2_tournament_events.6503 #A wayward arrow hits another competitor - Contestant - } -} - -contest_ongoing_event_archery_pivotal_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 100 = contest_events.0710 # Pivotal skill check - } -} - -contest_ongoing_event_archery_outcome_pulse = { - events = { - contest_events.0720 # Turn outcome - } -} - -contest_archery_mysterious_event = { - random_events = { - 100 = contest_events.1553 # Arrested - 100 = contest_events.1554 # Disappeared - } -} - -# RECITAL - -contest_ongoing_event_recital_random_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 1 = 0 - 100 = ep2_tournament_events.5501 # Previous entrant's verse was very similar to yours - 100 = ep2_tournament_events.5502 # Contestant plagiarises verse - 100 = ep2_tournament_events.5503 # Stage fright - 100 = ep2_tournament_events.5504 # A downpour begins - 100 = ep2_tournament_events.5505 # You see a chance to insult an opponent - 100 = contest_events.5000 # Complete your own verse! - 100 = contest_events.5010 # Language barrier - 100 = contest_events.5020 # Your recital goes well, push your luck? - 100 = contest_events.5030 # Your recital goes poorly, try to salvage it - } -} - -contest_ongoing_event_recital_pivotal_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 100 = contest_events.0711 # Pivotal skill check - } -} - -contest_ongoing_event_recital_outcome_pulse = { - events = { - contest_events.0721 # Turn outcome - } -} - -############## -### VERSUS ### -############## - -# JOUST - -contest_bout_joust_random_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = ep2_tournament_events.4001 # You get injured - 100 = ep2_tournament_events.4002 # Your opponent is knocked off their horse - 100 = ep2_tournament_events.4003 # Your opponent is using a massive lance - 100 = ep2_tournament_events.4004 # Your opponent challenges you to a duel on foot - 100 = ep2_tournament_events.4005 # Your opponent is injured but tilts anyway - 100 = ep2_tournament_events.4006 # Your opponent asks for a mercy pass - 100 = ep2_tournament_events.4007 # Pay your opponent's groom to unsettle their honse - 100 = ep2_tournament_events.4008 # Crowd heckles you - 100 = ep2_tournament_events.4009 # Lend opponent a lance - 100 = ep2_tournament_events.6502 #A competitor falls and injures themself - } -} - -contest_bout_joust_pivotal_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = contest_events.0860 - } -} - -contest_bout_joust_outcome_pulse = { - random_events = { - 100 = contest_events.0870 - } -} - -# WRESTLING - -contest_bout_wrestling_random_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 50 = contest_events.0910 # Out of Control - 100 = ep2_tournament_events.0001 # # Opponent is limping... you think - 100 = ep2_tournament_events.0002 # Opponent plays to the crowd - 100 = ep2_tournament_events.0003 # Opponent wants to quit - 100 = ep2_tournament_events.2001 # You can use dirt to blind your opponent - 100 = ep2_tournament_events.2002 # You go for the ol' oil check - 100 = ep2_tournament_events.2003 # Your friend distracts the ref; use the chair? - 100 = ep2_tournament_events.2004 # Opponent has a high weight - 100 = ep2_tournament_events.2005 # You and your opponent end up in a rather amorous position - 5 = ep2_tournament_events.2006 # Death Event: Your opponent piledrivers you on to your head - 100 = ep2_tournament_events.2007 # Opponent's friend accuses you of cheating - 100 = ep2_tournament_events.2501 # What part of your opponent's body do you focus on? - 100 = ep2_tournament_events.2502 # Your finger pops out of its socket! - 100 = ep2_tournament_events.2503 # Your opponent tries eye-poking you - 100 = ep2_tournament_events.2504 # Your berserker opponent bites your nose off - 5 = ep2_tournament_events.2506 # Death event: opponent kicks your head through 180 degrees - 100 = ep2_tournament_events.2507 # Discombobulate - } -} - -contest_bout_wrestling_pivotal_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = contest_events.0861 - } -} - -contest_bout_wrestling_outcome_pulse = { - random_events = { - 100 = contest_events.0871 - } -} - -# DUEL - -contest_bout_duel_random_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = ep2_tournament_events.0001 # # Opponent is limping... you think - 100 = ep2_tournament_events.0002 # Opponent plays to the crowd - 100 = ep2_tournament_events.0003 # Opponent wants to quit - 100 = ep2_tournament_events.0004 # Death From Above - 50 = ep2_tournament_events.0005 # Kick opponent in the groin - 50 = ep2_tournament_events.0006 # End them rightly - 100 = ep2_tournament_events.0007 # Opponent tries to bribe you - 100 = ep2_tournament_events.0010 # Calculated Gambles - 100 = ep2_tournament_events.0011 # A Handy Option - 200 = ep2_tournament_events.0012 # Taking Up The Mantle - 100 = ep2_tournament_events.0020 # Fighting Patter - 100 = ep2_tournament_events.0021 # Any Edge - 50 = contest_events.0910 # Out of Control - } -} - -contest_bout_duel_pivotal_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = contest_events.0862 - } -} - -contest_bout_duel_outcome_pulse = { - random_events = { - 100 = contest_events.0872 - } -} - -# BOARD GAME - -contest_bout_board_game_random_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = contest_events.5500 # Psych out - 100 = contest_events.5510 # Table flip - 100 = contest_events.5520 # Big risk - 100 = contest_events.5530 # Try to cheat! - 100 = contest_events.5540 # Intimidate your opponent into backing down from a daring play - 100 = contest_events.5550 # Spanish rules! - 100 = contest_events.5560 # Someone in the audience seems to be directing your opponent's moves - 100 = contest_events.5570 # The audience is distracted, move a piece? - } -} - -contest_bout_board_game_pivotal_pulse = { - trigger = { tournament_contest_versus_event_trigger = yes } - random_events = { - 100 = contest_events.0863 - } -} - -contest_bout_board_game_outcome_pulse = { - random_events = { - 100 = contest_events.0873 - } -} - -############ -### RACE ### -############ - -# HORSE RACE - -contest_ongoing_event_horse_race_random_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 1 = 0 - 100 = contest_events.4500 # Tragic Tumble - 100 = contest_events.4600 # Cheer 'yer pony - 100 = jason_first_race_event.1 # A Mess of Legs - 100 = jason_race_events.1 # RIOT! - 100 = jason_race_events.2 # your jockey does a clever thing - 100 = contest_events.3000 # Three jockeys are involved in a collission - 100 = contest_events.3010 # Your horse is bashed around by a competitor's horse - 100 = contest_events.3020 # People are swooning over another jockey - 100 = contest_events.3030 # A commoner runs onto the tracks, naked. - } -} - -contest_ongoing_event_horse_race_pivotal_pulse = { - trigger = { tournament_contest_event_trigger = yes } - random_events = { - 100 = contest_events.0510 # Pivotal skill check - } -} - -contest_ongoing_event_horse_race_outcome_pulse = { - events = { - contest_events.0530 # Outcome - } -} - -################### -##### INTENTS ##### -################### - -tournament_intent_setup_events = { - random_events = { - chance_of_no_event = { - if = { - limit = { is_ai = yes } - value = 50 - } - if = { - limit = { - is_ai = yes - is_lowborn = yes - } - value = 25 - } - } - 10 = tournament_events.6000 # Contest Murder - 10 = tournament_events.6050 # Contest Sabotage - } -} - -################### -# LOCALES -################### - -# Tournie Grounds -tournament_locale_tournament_grounds_events = { - random_events = { - 60 = ep2_locale_events.5000 # Your child wants to be a knight - 10 = ep2_locale_events.5010 # You visit the tourney grounds and are filled with DETERMINATION - Repeatable - 60 = ep2_locale_events.5020 # Train to impress your lover/rival/yourself - 60 = ep2_locale_events.5030 # You try to poach a councillor - 60 = tournament_events.7000 # Mulan - 60 = tournament_events.9001 # Come across a liegeless knight who joins you - 60 = tournament_events.9002 # Observe two local strongmen wrestling for a show - 60 = tournament_events.9004 # Observe local falconers having a race - 60 = jason_locale_events.0220 # You take a hands-on role in your knights' training - 60 = tournament_events.9005 # Come across some decently strong drunken peasants, recruit them or join them for a drink - - # Host only - 20 = tournament_events.1230 # Rags to Maile - 20 = tournament_events.1240 # Worth Fighting For - 20 = tournament_events.1260 # Keeping the Peace - 20 = tournament_events.1300 # Under His Wing - 20 = tournament_events.1310 # The Superstar - 20 = tournament_events.1311 # Muddled Up - 20 = tournament_events.1312 # Foreign Flair - 20 = tournament_events.1330 # The Next Generation - 20 = tournament_events.1331 # For Family? - 20 = tournament_events.1332 # Give and Take - # Quintain; jousting practice - 60 = ep2_tournament_events.3501 # Two young knights vie for your attention - 60 = ep2_tournament_events.3502 # Quintain breaks - 60 = ep2_tournament_events.3503 # Hapless knight grabs onto their opponent's lance - 5 = ep2_tournament_events.3504 - - # Flavor - 20 = tournament_events.1250 # Token of Favor - - # Pas D'Armes - 20 = tournament_events.1100 # Alone - Start - 10 = tournament_events.1101 # Exotic - Start - 20 = tournament_events.1102 # Band - Start - 20 = tournament_events.1140 # Host Challenge - 20 = tournament_events.1150 # Claim Challenge - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - 20 = tournament_events.6900 # Local Lancer - 20 = tournament_events.8000 # Someone offers you a favor - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - - #Special - 40 = ep2_locale_events.4505 # A weaponsmith offers you a special sword - } -} - -# Village -tournament_locale_settlement_events = { - random_events = { - 60 = ep2_locale_events.5500 # You discover some ancient stones - 60 = ep2_locale_events.5510 # You see a street fight - 60 = ep2_locale_events.5520 # You hear a group of women weaving - 60 = ep2_locale_events.5530 # People are doing a group dance in the square - 60 = tournament_events.9008 # Observe a local street performer performing - 20 = tournament_events.9000 # Take in the sights of the Tournament Province, lose stress - 150 = tournament_events.9003 # Come across your befriend/seduce target while wandering, talk to them - 20 = tournament_events.9007 # One of your knights hype you up over a memory you have - 60 = tournament_events.9001 # Come across a liegeless knight who joins you - 60 = tournament_events.9005 # Come across some decently strong drunken peasants, recruit them or join them for a drink - - # Host only - 20 = tournament_events.1260 # Keeping the Peace - 1 = tournament_events.1290 # Squire Fire - 20 = tournament_events.1310 # The Superstar - 20 = tournament_events.1311 # Muddled Up - 20 = tournament_events.1312 # Foreign Flair - 5 = tournament_events.1320 # The Red Coin - 40 = tournament_events.1321 # Red Coin Followup - 20 = tournament_events.1332 # Give and Take - - # Pas D'Armes - 20 = tournament_events.1100 # Alone - Start - 10 = tournament_events.1101 # Exotic - Start - 20 = tournament_events.1102 # Band - Start - 20 = tournament_events.1140 # Host Challenge - 20 = tournament_events.1150 # Claim Challenge - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - 20 = tournament_events.6900 # Local Lancer - 20 = tournament_events.8000 # Someone offers you a favor - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - } -} - -# Camp - chillin' -tournament_locale_visitor_camp_events = { - random_events = { - 50 = jason_locale_events.100 # He Who Spurns the Fight - 50 = ep2_locale_events.3001 # Stealing a Moment - 50 = ep2_locale_events.3002 # Lecherous Knights - 60 = ep2_locale_events.3010 # Someone is dumping bad water into the stream - 80 = ep2_locale_events.3020 # You ask one of the contestants to lose on purpose - 80 = jason_locale_events.210 # Foreign Ways of War - 60 = tournament_events.9006 # Meet a tournamentgoer who tells a story about a memory - 20 = tournament_events.7000 # Mulan - 20 = tournament_events.9007 # One of your knights hype you up over a memory you have - 60 = tournament_events.9001 # Come across a liegeless knight who joins you - 60 = tournament_events.9005 # Come across some decently strong drunken peasants, recruit them or join them for a drink - - # Host only - 20 = tournament_events.1200 # Religious Reproach - 20 = tournament_events.1240 # Worth Fighting For - 20 = tournament_events.1260 # Keeping the Peace - 20 = tournament_events.1300 # Under His Wing - 20 = tournament_events.1310 # The Superstar - 20 = tournament_events.1311 # Muddled Up - 20 = tournament_events.1312 # Foreign Flair - 5 = tournament_events.1320 # The Red Coin - 40 = tournament_events.1321 # Red Coin Followup - 20 = tournament_events.1331 # For Family? - 20 = tournament_events.1332 # Give and Take - - # Pas D'Armes - 20 = tournament_events.1100 # Alone - Start - 10 = tournament_events.1101 # Exotic - Start - 20 = tournament_events.1102 # Band - Start - 20 = tournament_events.1140 # Host Challenge - 20 = tournament_events.1150 # Claim Challenge - - # Flavor - 20 = tournament_events.1250 # Token of Favor - 20 = tournament_events.1252 # A Familiar Favor - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - 20 = tournament_events.6900 # Local Lancer - 20 = tournament_events.8000 # Someone offers you a favor - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - } -} - -# Temple - piety -tournament_locale_religious_building_events = { - random_events = { - 60 = ep2_locale_events.1500 # God's Favors - 40 = ep2_locale_events.1510 # Sacrilegious Spree - 80 = ep2_locale_events.1501 # Performative Worship - 10 = ep2_locale_events.1520 # Two Moons - 60 = ep2_locale_events.1530 # Visit the local graveyard - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - } -} - -# Tavern - victuals -tournament_locale_tavern_events = { - random_events = { - 60 = ep2_locale_events.1000 # Another Round? - 100 = tournament_events.6010 # Murder rival sabotage - 60 = ep2_locale_events.1002 # Drinking Contest - 60 = jason_locale_events.200 # Allegiance, Burped - 60 = ep2_locale_events.1010 # Fancy a game of dice? - 50 = ep2_locale_events.1050 # Wealthy gambler offers you money to go helmetless - 10 = ep2_locale_events.1060 # Bet on a game of cards - Repeatable - 60 = ep2_locale_events.1070 # You reminisce about a past memory - 60 = tournament_events.9005 # Come across some decently strong drunken peasants, recruit them or join them for a drink - - # Host only - 5 = tournament_events.1320 # The Red Coin - 40 = tournament_events.1321 # Red Coin Followup - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - 20 = tournament_events.6900 # Local Lancer - 20 = tournament_events.8000 # Someone offers you a favor - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - } -} - -# Artisan Quarters - Armorer, Weaponsmith, Fletcher, Farrier, Tailor -tournament_locale_artisans_events = { - random_events = { - # Armorer - 50 = ep2_locale_events.2001 # Improve some armour - 50 = ep2_locale_events.2002 # The armorer does a bad job - 50 = ep2_locale_events.2010 # Defensive Gifts - 50 = ep2_locale_events.2050 # Gleaming Panoply - # Tailor - 20 = ep2_locale_events.2500 # Erroneaus Escutcheon - 5 = ep2_locale_events.2501 # Pope larping - 50 = ep2_locale_events.2502 # Fighting Robes - 50 = ep2_locale_events.2510 # Threaded Gifts - 10 = ep2_locale_events.2560 # Buy an asserted trinket - Repeatable - # Farrier - 10 = ep2_locale_events.3500 # A Little Prick - 50 = ep2_locale_events.3510 # Get new horseshoes - # Bowyer - 10 = ep2_locale_events.4001 # Bowyer breaks your bow - 50 = ep2_locale_events.4010 # Ballistic Gifts - 50 = ep2_locale_events.4050 # Bracing Talk - # Weaponsmith - 10 = ep2_locale_events.4500 - 50 = ep2_locale_events.4501 # Your spouse fancies the weaponsmith - 50 = ep2_locale_events.4510 # Offensive Gifts - 50 = ep2_locale_events.4520 # Weaponsmith wants to quench a blade in your blood - 50 = ep2_locale_events.4530 # Ask the local smith for help - 50 = ep2_locale_events.4540 # Weaponsmith improves your weapon by carving something into it - - # Intents (shared) - 100 = tournament_events.6010 # General Murder - 20 = tournament_events.6500 # The Things We Do For Love - 20 = tournament_events.6900 # Local Lancer - 20 = tournament_events.8000 # Someone offers you a favor - - #AI Only - 10 = ep2_locale_events.0001 # Miniscule AI score change - 10 = ep2_locale_events.0002 # Minor AI score change - 5 = ep2_locale_events.0003 # Medium AI score change - } -} - -tournament_opening_on_action = { - effect = { - involved_activity = { - every_attending_character = { trigger_event = tournament_events.0100 } - } - } -} diff --git a/common/on_action/dlc/ep2/ep2_wedding_on_actions.txt b/common/on_action/dlc/ep2/ep2_wedding_on_actions.txt deleted file mode 100644 index 0846a5ef47..0000000000 --- a/common/on_action/dlc/ep2/ep2_wedding_on_actions.txt +++ /dev/null @@ -1,153 +0,0 @@ -wedding_ceremony_ongoing_event_pulse = { - trigger = { - NOT = { has_character_flag = busy_in_ceremony_event } - } - random_events = { - chance_to_happen = 100 - 200 = 0 - - 100 = ep2_wedding.1020 - 100 = ep2_wedding.1030 - 100 = ep2_wedding.1120 - 100 = ep2_wedding.1121 - 50 = ep2_wedding.1130 - 100 = ep2_wedding.1131 - 100 = ep2_wedding.1132 - 100 = ep2_wedding.1140 - 120 = ep2_wedding.1150 - 120 = ep2_wedding.1160 - 100 = ep2_wedding.1170 - 80 = ep2_wedding.1180 - 100 = ep2_wedding.1190 - 100 = ep2_wedding.1200 - 100 = ep2_wedding.1210 - 100 = ep2_wedding.1220 - 80 = ep2_wedding.1340 #Spouse - A cynical guest tells you that marriage sucks - 100 = ep2_wedding.1350 #Spouse - A caring relative calms you down before the wedding - 120 = ep2_wedding.4000 #Non-spouse: Matchmaking Intent - What a nice wedding, maybe you should follow? - 100 = ep2_wedding.1000 - 100 = ep2_wedding.1010 - 100 = ep2_wedding.1080 - 100 = ep2_wedding.1100 - 100 = ep2_wedding.1080 - 100 = ep2_wedding.1100 - } -} - -wedding_ceremony_ending_event_pulse = { - on_actions = { - - } - events = { - ep2_wedding.0150 - ep2_wedding.0151 - } -} - -wedding_banquet_ongoing_event_pulse = { - trigger = { - NOT = { has_character_flag = busy_in_banquet_event } - } - random_events = { - chance_to_happen = 100 - 250 = 0 - - 25 = ep2_wedding.1040 - 100 = ep2_wedding.1050 - 100 = ep2_wedding.1070 - 100 = ep2_wedding.1090 - 500 = ep2_wedding.1122 - 100 = ep2_wedding.1310 - 100 = ep2_wedding.1320 - 220 = ep2_wedding.2000 #Diplomatic Intent: Befriend your target's friend - 220 = ep2_wedding.2010 # Host - Gain Renown Intent - Bring a cool animal to show off - 200 = ep2_wedding.2020 # Spouse/Non-spouse - Someone's about to fall in a well of wine - 100 = ep2_wedding_ewan.0001 # Quite the Spectacle - Connect with various types of characters over the entertainment. - 100 = ep2_wedding_ewan.0011 # Food Fit for a... - Connect with various types of characters over the food. - 100 = ep2_wedding_ewan.0021 # Shimmering, Shining - Connect with various types of characters over the venue & its decorations. - 100 = ep2_wedding_ewan.0031 # A Sociable Supper - Meet one of your neighbouring rulers and form a fast friendship. - 100 = ep2_wedding_ewan.0041 # Speech! Speech! - Make a speech to the happy couple, adjusting the meaning to your intent. - 100 = ep2_wedding_ewan.0051 # And Another Thing - Someone is pitching questionable ideas at you, but they keep coming at you. - 100 = ep2_wedding_ewan.0061 # To My Beloved GetRelation - Embarrassing older relation speech. - 1 = ep2_wedding_ewan.0071 # Oath in Moment - Your liege offers you a favour for your support. - - # Transferred feast events - 50 = feast_events_ewan.0001 # Clear your Head - Ambush your target when they go out for a walk. - 50 = feast_events_ewan.0201 # Dinner and a Show - Position yourself opposite your intent_target, eat seductively. - 50 = feast_events_ewan.0401 # Stomach Rumbling - Bond with your intent_target over the terrible/excellent food. - 50 = feast_events_ewan.0601 # A Mere Jest - Stuff a gross item (e.g., dead rat) in a refined foodstuff (e.g., jug of wine). - 50 = feast_events_ewan.0801 # A Pleasing Atmosphere - Sit back and enjoy the vibes. - 10 = feast_default.1004 # Enjoying Magnificent Food - 10 = feast_default.2005 #Drunk guest throws up - 10 = feast_default.5001 #Hosts dread freaks you out - 10 = feast_default.5002 #Host is a lunatic - 10 = feast_default.5003 #host is sadistic - 10 = feast_default.5004 #Host is a reveller - 10 = feast_default.1001 - 10 = feast_default.1004 #The food is great - 10 = feast_default.1005 #I am shy and this is not fun - 10 = feast_default.1006 #Reveller likes to revel - 5 = feast_default.1007 #Two gluttons eat immensely - 5 = feast_default.1008 #Accidentaly spill secrets - 5 = feast_default.6111 - 5 = feast_default.6003 #Guests Fighting - 5 = feast_default.6501 #Innuendo - 5 = feast_default.6101 #Shy guest - 5 = feast_default.1002 #Gluttonous - 5 = feast_default.1020 #Deface court artifact - 3 = feast_default.5005 #You just love Garum - 3 = feast_default.6111 #A guest rambles on and on - 3 = feast_default.6121 #Serve guest food you know they hate - } -} - -wedding_bloody_banquet_ongoing_event_pulse = { - trigger = { - NOR = { - has_character_flag = busy_in_banquet_event - has_variable = bloody_wedding_backed_down_var - } - } - random_events = { - 100 = ep2_wedding.0202 # Kill the spouse and the family - 100 = ep2_wedding.0203 # Kill only the spouse - } -} - -wedding_wnight_ongoing_event_pulse = { - trigger = { - NOT = { has_character_flag = busy_in_wnight_event } - } - random_events = { - chance_to_happen = 100 - 150 = 0 - 100 = ep2_wedding.1110 # Non-spouses: someone gets extremely drunk/doesn't want to leave - 100 = ep2_wedding.1111 # Non-spouses: you get extremely drunk/don't want to leave - 150 = ep2_wedding.3050 # Non-spouses: Use your Murder Intent to kill someone during Wedding Night - 150 = ep2_wedding.3400 # Non-spouse: befriend other family - 200 = ep2_wedding.3410 # Non-spouse: Jealous of new spouse - 100 = ep2_wedding.3420 # Non-spouse: What to do with your evening - 150 = ep2_wedding.3500 # Non-spouse: Family chat - } -} - -wedding_wnight_spouse_event_pulse = { - trigger = { - NOT = { has_character_flag = busy_in_wnight_event } - } - random_events = { - 150 = 0 - 200 = ep2_wedding.3000 #Spouse: shy/nervous spouses bond - 200 = ep2_wedding.3010 #Spouse: spouse has a breakdown and confesses their secret - 200 = ep2_wedding.3020 #Spouse: spouse confesses they're not attracted to your gender - 100 = ep2_wedding.3030 #Spouse: spouse gives you a memento to remember your wedding night - 50 = ep2_wedding.3040 #Spouse: bed catches fire when you're having a good time - 100 = ep2_wedding.1300 - 100 = ep2_wedding.1060 # Spouse: A younger/meeker husband is too intimidated - 100 = ep2_wedding.1065 # Spouse: Inverted event: it's you who have problems - spouse's reaction - 100 = ep2_wedding.1300 # Spouse: a spouse has insecurities - 100 = ep2_wedding.1330 # Spouse: We were lovers before the wedding - 150 = ep2_wedding.3200 # Spouse: at least one spouse is shy of the bedding ceremony - 100 = ep2_wedding.3300 # Spouse: bedding ceremony - } -} diff --git a/common/on_action/dynasty_on_actions.txt b/common/on_action/dynasty_on_actions.txt deleted file mode 100644 index 053e8fcaa9..0000000000 --- a/common/on_action/dynasty_on_actions.txt +++ /dev/null @@ -1,15 +0,0 @@ -on_dynasty_created = { - effect = { - if = { - limit = { - dynast = { - has_trait = bastard - } - } - dynast = { - remove_trait = bastard - add_trait = bastard_founder - } - } - } -} \ No newline at end of file diff --git a/common/on_action/ep1_inspirations_on_actions.txt b/common/on_action/ep1_inspirations_on_actions.txt index 415ffe15d0..c9f242721e 100644 --- a/common/on_action/ep1_inspirations_on_actions.txt +++ b/common/on_action/ep1_inspirations_on_actions.txt @@ -141,7 +141,7 @@ inspiration_ongoing_events = { 200 = fund_inspiration.6501 #Adventurer in the hills, dragging a boat up them 200 = fund_inspiration.6502 #Adventurer in the desert, hallucinating ROOT 200 = fund_inspiration.6503 #Adventurer in the Steppe, plundering tombs - 200 = fund_inspiration.6504 #Adventurer in the farmlands, falling in love + 200 = fund_inspiration.6513 #Adventurer in the farmlands, falling in love 200 = fund_inspiration.6505 #Adventurer in the oasis, beach episode 200 = fund_inspiration.6506 #Adventurer complaining about being in wetlands swamp, getting caked in mud 200 = fund_inspiration.6507 #Adventurer getting attacked in a pleasant plains meadow diff --git a/common/on_action/faction_on_actions.txt b/common/on_action/faction_on_actions.txt new file mode 100644 index 0000000000..92d0433e1b --- /dev/null +++ b/common/on_action/faction_on_actions.txt @@ -0,0 +1,12 @@ + +# Note: this is scripted, not sent from code, so must be manually added to new faction demand events. We fire this at the top of the relevant effect block, so it happens _before_ the rest of the calculations. +## Root is the faction target. +## Scope:faction is the attacking faction. +## Scope:faction_leader is the leader of the attacking faction. +on_faction_demand_accepted = {} + +# Note: this is scripted, not sent from code, so must be manually added to new faction demand events. We fire this at the top of the relevant effect block, so it happens _before_ the rest of the calculations. +## Root is the faction target. +## Scope:faction is the attacking faction. +## Scope:faction_leader is the leader of the attacking faction. +on_faction_demand_rejected = {} \ No newline at end of file diff --git a/common/on_action/fp1_on_actions.txt b/common/on_action/fp1_on_actions.txt deleted file mode 100644 index 937a2db83e..0000000000 --- a/common/on_action/fp1_on_actions.txt +++ /dev/null @@ -1,25 +0,0 @@ -fp1_trade_events_cycle = { - effect = { - trigger_event = { - on_action = fp1_trade_events_cycle - days = 1825 - } - trigger_event = { - on_action = fp1_trade_events_random - # Trigger a new event or not some time in the next 1-4 years. - days = { 365 1460 } - } - } -} - -fp1_trade_events_random = { - random_events = { - 500 = 0 - # Standard events. - 250 = fp1_trade_events.0021 - 250 = fp1_trade_events.0041 - # Special events. - ## We weight these up due to scarce trigger conditions. - 500 = fp1_trade_events.1171 - } -} diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index dd62a5a9ad..c0adcb0e90 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -169,6 +169,7 @@ on_game_start = { NEW_DIARCH = character:430000 LIEGE = character:10014 } + character:10014 = { set_diarch = character:430000 } } if = { limit = { game_start_date = 605.6.6 } @@ -177,6 +178,7 @@ on_game_start = { NEW_DIARCH = character:60003 LIEGE = character:10014 } + character:10014 = { set_diarch = character:60003 } } # Set up anyone who should be in a regency at start whether we have sources or not. @@ -187,6 +189,7 @@ on_game_start = { is_adult = no is_incapable = yes is_imprisoned = yes + government_has_flag = government_is_clan } } # We don't want to check over so many characters *twice*, so we check again inside the block to determine what type of regency to put 'em in. @@ -198,6 +201,9 @@ on_game_start = { delayed = yes } } + if = { + limit = { government_has_flag = government_is_clan } + } ## Entrenched Regencies. else = { trigger_event = { diff --git a/common/on_action/health_on_actions.txt b/common/on_action/health_on_actions.txt index 20f2b4ff4a..36c4be5d71 100644 --- a/common/on_action/health_on_actions.txt +++ b/common/on_action/health_on_actions.txt @@ -19,47 +19,48 @@ yearly_health_pulse = { #Fired from the birthday pulse ## Present but not constant on default values. ## Rare but not never-seen on reduced values. ## Increased without being ludicrous on high values. - 1000 = 0 - 2000 = harm.9501 # Nothingness event. + ### Reduced down drastically per community feedback. + 10000 = 0 + 20000 = harm.9501 # Nothingness event. #Infirm - 100 = health.7000 # Become infirm - 100 = health.7100 # Become depressed while infirm - 200 = harm.0001 # Becoming incapable due to age: culmination. - 200 = harm.0002 # Becoming incapable due to age: mental problems. - 200 = harm.0003 # Becoming incapable due to age: physical problems. + 1000 = health.7000 # Become infirm + 1000 = health.7100 # Become depressed while infirm + 2000 = harm.0001 # Becoming incapable due to age: culmination. + 2000 = harm.0002 # Becoming incapable due to age: mental problems. + 2000 = harm.0003 # Becoming incapable due to age: physical problems. # Random incapability. - 20 = harm.0501 # Best in Breed - Inbreeding has left you increasingly vapid and feeble-minded. - 20 = harm.0502 # Best in Breed - foreboding event. - 20 = harm.0511 # A Little Tumble - You fall from your horse/camel/elephant/donkey. - 20 = harm.0512 # A Little Tumble - foreboding event. - 20 = harm.0521 # Gurgling & Grasping - Whilst at sea, you fall overboard and drown long enough to endanger your brain. - 20 = harm.0522 # Gurgling & Grasping - foreboding event. - 20 = harm.0531 # The World Slipping - Struck down by a stroke. - 20 = harm.0532 # The World Slipping - foreboding event. - 20 = harm.0541 # Chilled to the Bones - Crippling arthritis, chiefly in colder regions, can hurt the elderly. - 20 = harm.0542 # Chilled to the Bones - foreboding event. - 20 = harm.0551 # A Thud & A Snap - A child falls from a tree. - 20 = harm.0552 # A Thud & A Snap - foreboding event. - 20 = harm.0561 # The Descent - An old person falls down some stairs. - 20 = harm.0562 # The Descent - foreboding event. - 20 = harm.0571 # A Trip During Training - A fighting ruler is whacked on the bonce whilst training. - 20 = harm.0572 # A Trip During Training - foreboding event. - 20 = harm.0581 # Slippery when Wet - Slipping getting out of the tub. - 20 = harm.0582 # Slippery when Wet - foreboding event. - 20 = harm.0591 # Death from Above - A peasant's falling pot leaves you incapable. - 20 = harm.0592 # Death from Above - foreboding event. - 20 = harm.0601 # What's the Harm? - Children playing goes horribly wrong. - 20 = harm.0602 # What's the Harm? - foreboding event. - 20 = harm.0611 # Dizzying Heights - As a cripplingly feeble character, stand up way, way too fast. - 20 = harm.0612 # Dizzying Heights - foreboding event. - 20 = harm.0621 # A Jolly Good Time - Drunken shenanigans. - 20 = harm.0622 # A Jolly Good Time - foreboding event. - 20 = harm.0631 # A Rollicking Good Time - Heart attack whilst vigorously bonking. - 20 = harm.0632 # A Rollicking Good Time - foreboding event. - 20 = harm.0641 # Some Slight Swelling - Dropsy renders you bed-ridden. - 20 = harm.0642 # Some Slight Swelling - foreboding event. + 10 = harm.0501 # Best in Breed - Inbreeding has left you increasingly vapid and feeble-minded. + 10 = harm.0502 # Best in Breed - foreboding event. + 10 = harm.0511 # A Little Tumble - You fall from your horse/camel/elephant/donkey. + 10 = harm.0512 # A Little Tumble - foreboding event. + 10 = harm.0521 # Gurgling & Grasping - Whilst at sea, you fall overboard and drown long enough to endanger your brain. + 10 = harm.0522 # Gurgling & Grasping - foreboding event. + 10 = harm.0531 # The World Slipping - Struck down by a stroke. + 10 = harm.0532 # The World Slipping - foreboding event. + 10 = harm.0541 # Chilled to the Bones - Crippling arthritis, chiefly in colder regions, can hurt the elderly. + 10 = harm.0542 # Chilled to the Bones - foreboding event. + 10 = harm.0551 # A Thud & A Snap - A child falls from a tree. + 10 = harm.0552 # A Thud & A Snap - foreboding event. + 10 = harm.0561 # The Descent - An old person falls down some stairs. + 10 = harm.0562 # The Descent - foreboding event. + 10 = harm.0571 # A Trip During Training - A fighting ruler is whacked on the bonce whilst training. + 10 = harm.0572 # A Trip During Training - foreboding event. + 10 = harm.0581 # Slippery when Wet - Slipping getting out of the tub. + 10 = harm.0582 # Slippery when Wet - foreboding event. + 10 = harm.0591 # Death from Above - A peasant's falling pot leaves you incapable. + 10 = harm.0592 # Death from Above - foreboding event. + 10 = harm.0601 # What's the Harm? - Children playing goes horribly wrong. + 10 = harm.0602 # What's the Harm? - foreboding event. + 10 = harm.0611 # Dizzying Heights - As a cripplingly feeble character, stand up way, way too fast. + 10 = harm.0612 # Dizzying Heights - foreboding event. + 10 = harm.0621 # A Jolly Good Time - Drunken shenanigans. + 10 = harm.0622 # A Jolly Good Time - foreboding event. + 10 = harm.0631 # A Rollicking Good Time - Heart attack whilst vigorously bonking. + 10 = harm.0632 # A Rollicking Good Time - foreboding event. + 10 = harm.0641 # Some Slight Swelling - Dropsy renders you bed-ridden. + 10 = harm.0642 # Some Slight Swelling - foreboding event. # Random deaths. 20 = harm.1001 # Choke On It - Choking at a feast. diff --git a/common/on_action/lifestyles/diplomacy_lifestyle_on_actions.txt b/common/on_action/lifestyles/diplomacy_lifestyle_on_actions.txt deleted file mode 100644 index 3f0f85d099..0000000000 --- a/common/on_action/lifestyles/diplomacy_lifestyle_on_actions.txt +++ /dev/null @@ -1,161 +0,0 @@ -###################################### -# Standard actions for random events # -###################################### - -diplomacy_lifestyle_progress_pulse = { # Fires 4 times per year - trigger = { - has_lifestyle = diplomacy_lifestyle - is_landed = yes # Lifestyle events inherently assume you have one. Non-landed rulers shouldn't get lifestyle events, even if they still have a lifestyle. - exists = capital_province # Because in rare situations landed AI rulers can end up without a capital. - trigger_if = { - limit = { - is_ai = no - } - has_had_focus_for_days > 30 - } - NOR = { - has_character_flag = had_recent_lifestyle_ongoing_event - - # Must not currently be in a diplomacy event chain. - has_character_flag = is_in_diplomacy_foreign_special_event - has_character_flag = is_in_diplomacy_family_special_event - has_character_flag = is_in_diplomacy_majesty_special_event - } - } - - first_valid_on_action = { - diplomacy_lifestyle_ongoing_events # General event pool - diplomacy_lifestyle_unavailable_events # Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) - } -} - -#Ongoing events and story cycles -diplomacy_lifestyle_ongoing_events = { - trigger = { - is_available = yes - } - - random_on_action = { - chance_to_happen = 10 # Roughly one event every 18 months - - 80 = diplomacy_lifestyle_common_events - 15 = diplomacy_lifestyle_uncommon_events - 5 = diplomacy_lifestyle_rare_events - } -} - -# Characters get a Common event roughly once every 24 months (2 years). Most lifestyle events should be Common events. -diplomacy_lifestyle_common_events = { - random_events = { - # Generic Events: - 100 = diplomacy_generic.0012 #Master suppression techniques - - # Foreign Affairs Events - 100 = diplomacy_foreign.1074 # Religious Refugees - 100 = diplomacy_foreign.3001 # Pen Pals - 100 = diplomacy_foreign.1100 # Meeting of neighboring heirs - 100 = diplomacy_foreign.1150 # Rulers tidying borders - 100 = diplomacy_foreign.1200 # Finding Diplomacy Friend - - # Family Events - 100 = diplomacy_family.0007 # Recruit votes for your heir of choice - 50 = diplomacy_family.0008 # Heir has disagreeable traits, coaching - 100 = diplomacy_family.2100 # Family fight - 100 = diplomacy_family.2200 # Picking Best Friend from list - 100 = diplomacy_family.2250 # Jealous relative reacting to lover's spouse - 100 = diplomacy_family.2300 # Problematic Dynasty Member - - # Majesty Events - 100 = diplomacy_majesty.0004 # Power of Words - Compliment someone to improve relations with them. - 100 = diplomacy_majesty.0016 # Kindred Spirits - Notice a potential friend; how do you react? - 100 = diplomacy_majesty.1020 # Loyal Subjects - Figure out how to inspirte loyalty in your vassals. - 100 = diplomacy_majesty.4030 # A Battle of Ideas - Develop tactics for use in conversations. - 100 = diplomacy_majesty.4070 # Lure of Language - Learn a foreign language prevalent in your realm - 100 = diplomacy_majesty.4090 # Trappings of Royalty - How shall you dress your royal personage? - 50 = diplomacy_majesty_special.1010 # A Tedious Disagreement - } -} - -# Characters get an Uncommon event roughly once every 120 months (10 years). Longer event chains and lucrative opporunities should be Uncommon events. -diplomacy_lifestyle_uncommon_events = { - random_events = { - 100 = diplomacy_foreign_special.1017 # Court visit - } - fallback = diplomacy_lifestyle_common_events -} - -# Characters get a Rare event roughly once every 360 months (30 years). Character-defining events and easter egg events should be Rare events. -diplomacy_lifestyle_rare_events = { - random_events = { - 100 = diplomacy_family_special.2200 #Heir-vassal personality conflict - 150 = lifestyle_nicknames.0003 #Stewardship nickname for when the character is arrogant - 150 = lifestyle_nicknames.0004 #Stewardship nickname when the character is humble - } - fallback = diplomacy_lifestyle_uncommon_events -} - -# Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) -diplomacy_lifestyle_unavailable_events = { - trigger = { - is_available = no - } - random_events = { - # WARNING: All events in this pool *MUST* have custom is_available triggers defined. - # Otherwise we can wind up with weird things like imprisoned characters having a strategy discussion with their army commanders out on the campaign trail. - chance_to_happen = 10 - - 50 = diplomacy_majesty.4030 # A Battle of Ideas - Develop tactics for use in conversations. - 50 = 0 # Above event only has a 50% chance of firing during war. - } -} - - -########################################### -# Custom actions for special event chains # -########################################### - -diplomacy_foreign_special_1010_court_visit_events = { - events = { - diplomacy_foreign_special.1030 #Event for success (they had a good time - might give additional bonuses) - diplomacy_foreign_special.1031 #Event for failure (they go home because unhappy) - - } - random_events = { - 100 = diplomacy_foreign_special.1020 #Hunt or luncheon - 100 = diplomacy_foreign_special.1021 #Dance or church - 100 = diplomacy_foreign_special.1022 #Private dinner with relative/spouse/consort - 100 = diplomacy_foreign_special.1028 #Compliment - } -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_spy_outcome_events = { - events = { - diplomacy_foreign_special.1023 #Nothing special happened - diplomacy_foreign_special.1024 #They seem friendly - diplomacy_foreign_special.1025 #They seem to be plotting - diplomacy_foreign_special.1026 #They seem about to sleep together - } -} - - - -################################### -# Commission Epic Event Selection -################################### -commission_epic_ongoing = { - random_events = { - 100 = commission_epic.1001 # A Question of Time - 100 = commission_epic.1002 # Rich Source Material - 100 = commission_epic.1003 # Writer's Retreat - 100 = commission_epic.1004 # Expert Illuminator - 100 = commission_epic.1005 # The Song of Our People - 80 = commission_epic.1006 # Friends From Legends (Become friends with a Vassal) - 50 = commission_epic.1007 # Epic Emnity (Become rivals with a Vassal) - 100 = commission_epic.2001 # Precedence (Steward) - 100 = commission_epic.2002 # Pride of the Family (Spymaster) - 100 = commission_epic.2003 # Eternal Obligations (Court Chaplain, Theocratic) - 100 = commission_epic.2004 # Inspiration Strikes (Marshal) - 100 = commission_epic.2005 # Honesty and Perception (Chancellor) - 100 = commission_epic.2006 # Bound in Faith (Court Chaplain, Lay Clergy) - } -} \ No newline at end of file diff --git a/common/on_action/lifestyles/general_lifestyle_on_actions.txt b/common/on_action/lifestyles/general_lifestyle_on_actions.txt deleted file mode 100644 index 9caf357817..0000000000 --- a/common/on_action/lifestyles/general_lifestyle_on_actions.txt +++ /dev/null @@ -1,12 +0,0 @@ -# Called from code when a player refunds their perks -# Root is the player -on_perks_refunded = { - effect = { - refund_all_perks = yes - add_stress = refund_perks_stress_impact - add_character_flag = { - flag = has_refunded_perks - } - remove_all_perk_lifestyle_traits_effect = yes - } -} diff --git a/common/on_action/lifestyles/intrigue_lifestyle_on_actions.txt b/common/on_action/lifestyles/intrigue_lifestyle_on_actions.txt deleted file mode 100644 index 721619e800..0000000000 --- a/common/on_action/lifestyles/intrigue_lifestyle_on_actions.txt +++ /dev/null @@ -1,124 +0,0 @@ -###################################### -# Standard actions for random events # -###################################### - -intrigue_lifestyle_progress_pulse = { # Fires 4 times per year - trigger = { - has_lifestyle = intrigue_lifestyle - is_landed = yes # Lifestyle events inherently assume you have one. Non-landed rulers shouldn't get lifestyle events, even if they still have a lifestyle. - exists = capital_province # Because in rare situations landed AI rulers can end up without a capital. - trigger_if = { - limit = { - is_ai = no - } - has_had_focus_for_days > 30 - } - NOR = { - has_character_flag = had_recent_lifestyle_ongoing_event - - # Must not currently be in a intrigue event chain. - has_character_flag = is_in_intrigue_special_event - } - } - - first_valid_on_action = { - intrigue_lifestyle_ongoing_events # General event pool - intrigue_lifestyle_unavailable_events # Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) - } -} - -#Ongoing events and story cycles -intrigue_lifestyle_ongoing_events = { - trigger = { - is_available = yes - } - - random_on_action = { - chance_to_happen = 10 # Roughly one event every 18 months - - 80 = intrigue_lifestyle_common_events - 15 = intrigue_lifestyle_uncommon_events - 5 = intrigue_lifestyle_rare_events - } -} - -# Characters get a Common event roughly once every 24 months (2 years). Most lifestyle events should be Common events. -intrigue_lifestyle_common_events = { - random_events = { - # Skulduggery - 100 = intrigue_scheming.1001 #Act without your council for the sake of a county - 100 = intrigue_scheming.1011 #Invent code - 100 = intrigue_scheming.1201 #Hired spies report your castle's weaknesses - 100 = intrigue_scheming.1401 #Meet a merchant from a far away land - 100 = intrigue_scheming.2001 #Gain intrigue mentor - 100 = intrigue_scheming.2101 #Sneaky person seeks you out (might be an agent) - 100 = intrigue_scheming.3001 #Convert a Hook on a Courtier into a Hook on their Court Owner - 100 = intrigue_scheming.3041 #Convert a Hook on ruler's vassal into a Hook on the ruler - 100 = intrigue_scheming.3061 #An opportunity to turn an enemy's Heir into a Bastard - 200 = intrigue_scheming.4021 #Interrogate a prisoner to learn what secrets they know. - 100 = intrigue_scheming.4040 #Make your courtiers hate each other so they scheme and plot against someone else. - 100 = intrigue_scheming.1601 #Turn a Secret into a Hook, or otherwise - 100 = intrigue_scheming.4050 #Sell a major secret you know about somebody to the close family of the owner and/or target. - - # Intimidation - 100 = intrigue_dread.1801 #Poison tasting - 100 = intrigue_dread.1901 #Mess with a courtier you don't like - 100 = intrigue_dread.4200 # Forest of Corpses - 100 = intrigue_dread.2001 #You're scaring a loved one - 100 = intrigue_dread.2101 #Shut up rumors about a relative - 100 = intrigue_dread.2201 #Councillor is too scared to speak their mind - 100 = intrigue_dread.2301 #Your court thinks you're soft - 100 = intrigue_dread.2401 #Executions could be better - - # Temptation - 200 = intrigue_temptation.2201 #Gain secrets from a lover in another court. - 100 = intrigue_temptation.3000 #A visiting guest would like a tumble before leaving - 100 = intrigue_temptation.3100 #A courtier propositions you via a lewd image. - 100 = intrigue_temptation.3110 #While drinking with a courtier, you lead them towards deviancy. - 100 = intrigue_temptation.3120 #You enjoy a dinner with one of your guests, and try to tempt them into staying. - 100 = intrigue_temptation.3010 #Wingman/woman - 100 = intrigue_temptation.3020 #Medieval tinder - 100 = intrigue_temptation.3130 #Cuckolding a potential rival. - 100 = intrigue_temptation.3140 #Flirt openly with people at court. - 100 = intrigue_temptation.3150 #Caught chatting up a courtier. - 100 = intrigue_temptation.3160 #Sleep with someone who dislikes you for fun or profit. - } -} - -# Characters get an Uncommon event roughly once every 120 months (10 years). Longer event chains and lucrative opporunities should be Uncommon events. -intrigue_lifestyle_uncommon_events = { - random_events = { - 100 = intrigue_scheming_special.1001 #Convince Courtier to Share Spy-Secrets - 100 = intrigue_scheming_special.1301 #Root out secrets at your court - 100 = intrigue_dread_special.1301 #Root out secrets at your court - 100 = intrigue_temptation_special.1000 #Matchmaking - 100 = intrigue_dread.4100 # Bothersome petitioners - 100 = intrigue_scheming.1801 # Informant on Enemy's Siege Tactics - } - fallback = intrigue_lifestyle_common_events -} - -# Characters get a Rare event roughly once every 360 months (30 years). Character-defining events and easter egg events should be Rare events. -intrigue_lifestyle_rare_events = { - random_events = { - 100 = intrigue_dread.1501 #Cannibal cook - 100 = intrigue_dread.4001 #Torture & brainwash one of your prisoners to make them into a mind-slave. - 100 = intrigue_dread_special.1101 #Join a touring theater - 150 = lifestyle_nicknames.0007 # Intrigue nickname for someone who's arrogant - 150 = lifestyle_nicknames.0008 # Intrigue nickname when the character is humble - } - fallback = intrigue_lifestyle_uncommon_events -} - -# Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) -intrigue_lifestyle_unavailable_events = { - trigger = { - is_available = no - } - - random_events = { - # WARNING: All events in this pool *MUST* have custom is_available triggers defined. - # Otherwise we can wind up with weird things like imprisoned characters having a strategy discussion with their army commanders out on the campaign trail. - chance_to_happen = 10 - } -} diff --git a/common/on_action/lifestyles/martial_lifestyle_on_actions.txt b/common/on_action/lifestyles/martial_lifestyle_on_actions.txt deleted file mode 100644 index e011624e3c..0000000000 --- a/common/on_action/lifestyles/martial_lifestyle_on_actions.txt +++ /dev/null @@ -1,243 +0,0 @@ -###################################### -# Standard actions for random events # -###################################### - -martial_lifestyle_progress_pulse = { # Fires 4 times per year - trigger = { - has_lifestyle = martial_lifestyle - is_landed = yes # Lifestyle events inherently assume you have one. Non-landed rulers shouldn't get lifestyle events, even if they still have a lifestyle. - exists = capital_province # Because in rare situations landed AI rulers can end up without a capital. - trigger_if = { - limit = { - is_ai = no - } - has_had_focus_for_days > 30 - } - NOR = { - has_character_flag = had_recent_lifestyle_ongoing_event - - # Must not currently be in a martial event chain. - has_character_flag = is_in_martial_special_event - } - } - - first_valid_on_action = { - martial_lifestyle_ongoing_events # General event pool - martial_lifestyle_unavailable_events # Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) - } -} - -#Ongoing events and story cycles -martial_lifestyle_ongoing_events = { - trigger = { - is_available = yes - } - - random_on_action = { - chance_to_happen = 10 # Roughly one event every 18 months - - 80 = martial_lifestyle_common_events - 15 = martial_lifestyle_uncommon_events - 5 = martial_lifestyle_rare_events - } -} - -# Characters get a Common event roughly once every 24 months (2 years). Most lifestyle events should be Common events. -martial_lifestyle_common_events = { - random_events = { - #STRATEGY - 100 = martial_strategy.1051 # Courtiers gossip about your skill in battle. - 100 = martial_strategy.2000 # Reading about old battles (Learning Challenge) - 100 = martial_strategy.2020 # Practicing unfair/unsporting battle tactics (Intrigue Challenge) - 100 = martial_strategy.3010 # Strategy meeting with two prominent vassals. - 100 = martial_strategy.2030 # Ensuring that your troops have the provisions they need (Stewardship Challenge) - 75 = martial_strategy.4000 # Stocking your stores or feeding your servants. - 100 = martial_strategy.4010 # Rebuilding the walls of a lesser domain county, or letting them crumble. - 100 = martial_strategy.7000 # A knight questions your blunt tactics - - #AUTHORITY - 100 = martial_authority.1031 # Mercenaries are being assholes at an inn - 100 = martial_authority.2040 # Resolving a dispute between some soldiers (Diplomacy Challenge) - 100 = martial_authority.2050 # An Extra Hand: Find a right-hand (wo)man - 100 = martial_authority_special.1100 # Soldier and Officer Fighting - 100 = martial_authority_special.1501 # Deal with Deserters - 100 = martial_authority.5000 # You visit some baronies or go partying with an important vassal. - 100 = martial_authority_special.3000 # Impress someone with your leadership - 100 = martial_authority.8000 #Your child starts murdering your knights at a tournament - 100 = martial_authority.4000 #You have an opportunity to repurpose a farming tool you discovered in the armoury - - #CHIVALRY - 100 = martial_chivalry.0001 # A peasant tries to fight you at practice - 100 = martial_chivalry.0002 # Horse Riding Accident - Hope you love horses! - 100 = martial_chivalry.0010 # Train with your signature weapon - 100 = martial_chivalry.1011 # Find an old castle - 100 = martial_chivalry.1021 # Stress triggers bad battle practice - 100 = martial_chivalry.2010 # Getting challenged to a practice duel (Prowess Challenge) - 100 = martial_chivalry.3000 # Teaching a terrible general how to train troops. - 100 = martial_chivalry.4000 # Catch some daring rustlers - 30 = martial_chivalry.5100 # You get mistaken for a commander instead of a ruler - 100 = martial_chivalry.5000 # There are rumors about you sleeping with your liege's spouse - 100 = martial_chivalry.6000 # You find an abandoned church while training in the woods - - - #Learning Commander Traits - 25 = learn_commander_trait.0002 #aggressive_attacker, unyielding_defender, or flexible_leader - 25 = learn_commander_trait.0003 #Logistician, Military Engineer, forder - 25 = learn_commander_trait.0004 #Reckless or Reaver - 25 = learn_commander_trait.0006 #Holy Warrior - 25 = learn_commander_trait.0007 #Desert Warrior - 25 = learn_commander_trait.0008 #Jungle Stalker - 25 = learn_commander_trait.0009 #Winter Soldier - 100 = learn_commander_trait.1000 #Start learning chain (completely separate from the above events) - - #Alternate learning events inspired by historical battles. - 100 = historical_commander_trait.0001 #Cannae(Hannibal) - aggressive_attacker, logistician, or flexible_leader - 100 = historical_commander_trait.0002 #Alesia(Caesar) - military_engineer, unyielding_defender, or reckless - 100 = historical_commander_trait.0003 #Tyre(Alexander) - forder, military_engineer, or reaver - 100 = historical_commander_trait.0004 #Milvian(Constantine) holy_warrior, forder, or flexible_leader - 100 = historical_commander_trait.0005 #Mu'tha(Khalid) - holy_warrior, unyielding_defender, or logistician - } -} - -# Characters get an Uncommon event roughly once every 120 months (10 years). Longer event chains and lucrative opporunities should be Uncommon events. -martial_lifestyle_uncommon_events = { - random_events = { - 100 = martial_strategy_special.1301 # Storm Your Own Castle - 100 = martial_strategy_special.1401 # March gone awry - 100 = martial_chivalry_special.1201 # Mounted Warrior Practice - 50 = martial_chivalry_special.1601 # Train a warhorse - } - fallback = martial_lifestyle_common_events -} - -# Characters get a Rare event roughly once every 360 months (30 years). Character-defining events and easter egg events should be Rare events. -martial_lifestyle_rare_events = { - random_events = { - 150 = lifestyle_nicknames.0005 # Martial nickname for someone who's arrogant - 150 = lifestyle_nicknames.0006 # Martial nickname when the character is humble - } - fallback = martial_lifestyle_uncommon_events -} - -# Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) -martial_lifestyle_unavailable_events = { - trigger = { - is_available = no - } - - random_events = { - # WARNING: All events in this pool *MUST* have custom is_available triggers defined. - # Otherwise we can wind up with weird things like imprisoned characters having a strategy discussion with their army commanders out on the campaign trail. - chance_to_happen = 10 - - 100 = martial_authority.2040 # Resolving a dispute between some soldiers (Diplomacy Challenge) - 100 = martial_strategy.3010 # Strategy meeting with two prominent vassals. - } -} - - -############################### -# ONGOING EVENT ON_ACTIONS -############################### - -#Hands out the correct event for when you have a horse riding accident -horse_riding_accident_outcome = { - events = { - martial_chivalry.0007 #Die - martial_chivalry.0006 #Become Near Death - martial_chivalry.0005 #Become Severely Injured - martial_chivalry.0004 #Become Wounded - } -} - - -#Event cycle for searching for your troops (starting from warfare_progress.1401) -search_for_troops_event_selection = { - random_events = { - 100 = martial_strategy_special.1402 #Soldiers at a local tavern - 100 = martial_strategy_special.1403 #Soldiers camping by a body of water - 100 = martial_strategy_special.1404 #Soldiers still being trained by a sergeant - 100 = martial_strategy_special.1405 #Soldiers starting to serve a preacher - 50 = martial_strategy_special.1498 #Success! - } -} - - -############################### -# On actions handling the learning commander trait chain -############################### - -#Select the correct event for a character to approach you with an offer to learn a trait -learn_commander_trait_offer = { - random_events = { - 100 = learn_commander_trait.1101 #logistician - 100 = learn_commander_trait.1102 #military_engineer - 100 = learn_commander_trait.1103 #aggressive_attacker - 100 = learn_commander_trait.1104 #unyielding_defender - 100 = learn_commander_trait.1105 #forder - 100 = learn_commander_trait.1106 #flexible_leader - 100 = learn_commander_trait.1107 #desert_warrior - 100 = learn_commander_trait.1108 #jungle_stalker - 100 = learn_commander_trait.1109 #winter_soldier - 100 = learn_commander_trait.1110 #reaver - 100 = learn_commander_trait.1112 #reckless - 100 = learn_commander_trait.1113 #holy_warrior - } -} - -#Final test for correct trait -learn_commander_trait_test = { - first_valid = { - learn_commander_trait.1291 #Teacher is no longer with you - learn_commander_trait.1201 #logistician - learn_commander_trait.1202 #military_engineer - learn_commander_trait.1203 #aggressive_attacker - learn_commander_trait.1204 #unyielding_defender - learn_commander_trait.1205 #forder - learn_commander_trait.1206 #flexible_leader - learn_commander_trait.1207 #desert_warrior - learn_commander_trait.1208 #jungle_stalker - learn_commander_trait.1209 #winter_soldier - learn_commander_trait.1210 #reaver - learn_commander_trait.1212 #reckless - learn_commander_trait.1213 #holy_warrior - } -} - -#Success for correct trait -learn_commander_trait_success = { - first_valid = { - learn_commander_trait.1391 #Teacher is no longer with you - learn_commander_trait.1301 #logistician - learn_commander_trait.1302 #military_engineer - learn_commander_trait.1303 #aggressive_attacker - learn_commander_trait.1304 #unyielding_defender - learn_commander_trait.1305 #forder - learn_commander_trait.1306 #flexible_leader - learn_commander_trait.1307 #desert_warrior - learn_commander_trait.1308 #jungle_stalker - learn_commander_trait.1309 #winter_soldier - learn_commander_trait.1310 #reaver - learn_commander_trait.1312 #reckless - learn_commander_trait.1313 #holy_warrior - } -} - -#Failure for correct trait -learn_commander_trait_failure = { - first_valid = { - learn_commander_trait.1491 #Teacher is no longer with you - learn_commander_trait.1401 #logistician - learn_commander_trait.1402 #military_engineer - learn_commander_trait.1403 #aggressive_attacker - learn_commander_trait.1404 #unyielding_defender - learn_commander_trait.1405 #forder - learn_commander_trait.1406 #flexible_leader - learn_commander_trait.1407 #desert_warrior - learn_commander_trait.1408 #jungle_stalker - learn_commander_trait.1409 #winter_soldier - learn_commander_trait.1410 #reaver - learn_commander_trait.1412 #reckless - learn_commander_trait.1413 #holy_warrior - } -} diff --git a/common/on_action/lifestyles/stewardship_lifestyle_on_actions.txt b/common/on_action/lifestyles/stewardship_lifestyle_on_actions.txt deleted file mode 100644 index efbdc4258a..0000000000 --- a/common/on_action/lifestyles/stewardship_lifestyle_on_actions.txt +++ /dev/null @@ -1,268 +0,0 @@ -###################################### -# Standard actions for random events # -###################################### - -stewardship_lifestyle_progress_pulse = { # Fires 4 times per year - trigger = { - has_lifestyle = stewardship_lifestyle - is_landed = yes # Lifestyle events inherently assume you have one. Non-landed rulers shouldn't get lifestyle events, even if they still have a lifestyle. - exists = capital_province # Because in rare situations landed AI rulers can end up without a capital. - trigger_if = { - limit = { - is_ai = no - } - has_had_focus_for_days > 30 - } - NOR = { - has_character_flag = had_recent_lifestyle_ongoing_event - - # Must not currently be in a stewardship event chain. - has_character_flag = is_in_stewardship_wealth_special_event - has_character_flag = is_in_stewardship_domain_special_event - has_character_flag = is_in_stewardship_duty_special_event - } - } - - first_valid_on_action = { - stewardship_lifestyle_ongoing_events # General event pool - stewardship_lifestyle_unavailable_events # Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) - } -} - -#Ongoing events and story cycles -stewardship_lifestyle_ongoing_events = { - trigger = { - is_available = yes - } - - random_on_action = { - chance_to_happen = 10 # Roughly one event every 18 months - - 80 = stewardship_lifestyle_common_events - 15 = stewardship_lifestyle_uncommon_events - 5 = stewardship_lifestyle_rare_events - } -} - -# Characters get a Common event roughly once every 24 months (2 years). Most lifestyle events should be Common events. -stewardship_lifestyle_common_events = { - random_events = { - # General Events - 100 = stewardship_general.1054 # Accusations of Witchcraft - 100 = stewardship_general.5011 # Fish pond! - 100 = stewardship_general.5041 # Servant caught stealing from the household - 100 = stewardship_general.2001 # Visited by a Peddler - - # Wealth Events - 100 = stewardship_wealth.1001 # Get Out of Bankruptcy Fast! - 100 = stewardship_wealth.1011 # Mint New Coins - 100 = stewardship_wealth.1021 # War Taxes - 100 = stewardship_wealth.1061 # New Acquisitions - 100 = stewardship_wealth.5001 # Purchase livestock - 100 = stewardship_wealth.5002 # Investment advice (wealth friend) - 100 = stewardship_wealth.6001 # Roadside Stall - 100 = stewardship_wealth.7000 # You're offered taxes stolen from your rival - 100 = stewardship_wealth.2000 # Weighing Opportunities - - # Domain Events - 100 = stewardship_domain.1041 # Guild Dispute - 200 = stewardship_domain.1042 # Domineering Guild - 100 = stewardship_domain.1052 # Infested Granary - 100 = stewardship_domain.1053 # Corrupt Tax Collector - 100 = stewardship_domain.1073 # Culture Clash - 100 = stewardship_domain.6001 # Marshland Clearing - 100 = stewardship_domain.6002 # Forest clearing - 100 = stewardship_domain.6011 # Haggle with stonemasons - 75 = martial_strategy.4000 # Stocking your stores or feeding your servants. - - # Duty Events - 100 = stewardship_duty.0001 # The Diplomatic Craft - 100 = stewardship_duty.0017 # Conflict at the Council - 100 = stewardship_duty.1062 # Wealth Aplenty - 100 = stewardship_duty.1068 # Patron Benefits - 100 = stewardship_duty.4010 # Convince a vassal to leave a faction - 100 = stewardship_duty.4040 # Convince a vassal to change their contract - 100 = stewardship_duty.4060 # Lower a faction's discontent during war - 100 = stewardship_duty.7001 # Resolve a war between two ai vassals - 100 = stewardship_duty.7023 # About that Favor - - } -} - -# Characters get an Uncommon event roughly once every 120 months (10 years). Longer event chains and lucrative opporunities should be Uncommon events. -stewardship_lifestyle_uncommon_events = { - random_events = { - - # Wealth Events - 100 = stewardship_wealth.1051 # Freeman's Fortune - - # Domain Events - 100 = stewardship_domain.5031 # Reduce revolt risk by being diligent - 100 = stewardship_domain_special.1001 # Bad harvest - 100 = stewardship_domain_special.1101 # Charter fair - 100 = stewardship_domain_special.1301 # Construct a road - 100 = stewardship_domain_special.3010 # Visit displeased County - 100 = stewardship_domain_special.8001 # Construct irrigation project in county - - # Duty Events - 100 = stewardship_duty.1055 # Unwanted Pregnancy - 100 = stewardship_duty.1071 # Runaway Serfs - 100 = stewardship_duty.5021 # Vassal cheating their contract - 100 = stewardship_duty_special.1201 # Map painting journey - 100 = stewardship_duty_special.2000 # Vassal Mediation - - } - fallback = stewardship_lifestyle_common_events -} - -# Characters get a Rare event roughly once every 360 months (30 years). Character-defining events and easter egg events should be Rare events. -stewardship_lifestyle_rare_events = { - random_events = { - 100 = stewardship_domain_special.1401 # A missing village - 100 = stewardship_domain_special.1500 # Domesday Book - 100 = lifestyle_nicknames.0001 # Stewardship nickname for when the character is arrogant - 100 = lifestyle_nicknames.0002 # Stewardship nickname when the character is humble - } - fallback = stewardship_lifestyle_uncommon_events -} - -# Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.) -stewardship_lifestyle_unavailable_events = { - trigger = { - is_available = no - } - - random_events = { - # WARNING: All events in this pool *MUST* have custom is_available triggers defined. - # Otherwise we can wind up with weird things like imprisoned characters having a strategy discussion with their army commanders out on the campaign trail. - chance_to_happen = 10 - - 100 = stewardship_wealth.1001 # Get Out of Bankruptcy Fast! - 100 = stewardship_wealth.1021 # War Taxes - 100 = stewardship_duty.4010 # Convince a vassal to leave a faction - 100 = stewardship_duty.4060 # Lower a faction's discontent during war - } -} - -########################################### -# Custom actions for special event chains # -########################################### - -#Map painting chain -map_painting_event_selection = { - random_events = { - 100 = stewardship_duty_special.1203 - 100 = stewardship_duty_special.1204 - 100 = stewardship_duty_special.1205 - 100 = stewardship_duty_special.1206 - 100 = stewardship_duty_special.1207 - 100 = stewardship_duty_special.1208 - } -} - -map_painting_outcome = { - random_events = { - 100 = stewardship_duty_special.1281 - 100 = stewardship_duty_special.1282 - 100 = stewardship_duty_special.1283 - 100 = stewardship_duty_special.1284 - 100 = stewardship_duty_special.1285 - 100 = stewardship_duty_special.1286 - } -} - - -#Road building chain -stewardship_road_building_chain = { - first_valid = { - stewardship_domain_special.1392 - stewardship_domain_special.1391 - } - fallback = stewardship_road_building_events -} - -stewardship_road_building_events = { - random_events = { - 100 = stewardship_domain_special.1311 - 100 = stewardship_domain_special.1312 - 100 = stewardship_domain_special.1313 - 100 = stewardship_domain_special.1314 - 100 = stewardship_domain_special.1315 - 100 = stewardship_domain_special.1316 - 100 = stewardship_domain_special.1317 - 100 = stewardship_domain_special.1318 - 100 = stewardship_domain_special.1319 - 100 = stewardship_domain_special.1320 - 100 = stewardship_domain_special.1321 - 100 = stewardship_domain_special.1395 - } -} - -stewardship_lifestyle_domesday = { - random_events = { - 100 = stewardship_domain_special.1510 # Upset Priest - 100 = stewardship_domain_special.1520 # Concerned Noble - 100 = stewardship_domain_special.1530 # Resentful Guilds - 100 = stewardship_domain_special.1540 # Bandit Attack - 100 = stewardship_domain_special.1550 # Corrupt Steward - 100 = stewardship_domain_special.1560 # Upset Merchants - } - fallback = stewardship_lifestyle_domesday_end # End of event chain. -} - -stewardship_lifestyle_domesday_end = { - random_events = { - 100 = stewardship_domain_special.1590 - } -} - - -########################### -# Mediation Story Cycle -########################### - -stewardship_duty_special_2000_mediation_stage_1 = { - random_events = { - 100 = stewardship_duty_special.2011 - 100 = stewardship_duty_special.2012 - 100 = stewardship_duty_special.2013 - 100 = stewardship_duty_special.2014 - 100 = stewardship_duty_special.2015 - #100 = stewardship_duty_special.2016 - #100 = stewardship_duty_special.2017 - 100 = stewardship_duty_special.2018 - 100 = stewardship_duty_special.2019 - } -} - -stewardship_duty_special_2000_mediation_stage_2 = { - random_events = { - 100 = stewardship_duty_special.2021 - 100 = stewardship_duty_special.2022 - #100 = stewardship_duty_special.2023 - #100 = stewardship_duty_special.2024 - 100 = stewardship_duty_special.2025 - 20 = stewardship_duty_special.2026 - 100 = stewardship_duty_special.2027 - } -} - -stewardship_duty_special_2000_mediation_background_events = { - random_events = { - 100 = stewardship_duty_special.2051 - 100 = stewardship_duty_special.2052 - 100 = stewardship_duty_special.2053 - } -} - -sell_titles_side_effect_events = { - random_events = { - 100 = sell_titles.0001 # Vassal wants Hook instead - 100 = sell_titles.0002 # Friend gives you Gold - 100 = sell_titles.0003 # Vassal thinks you generous - 100 = sell_titles.0004 # Powerful Vassal thinks you haven't done enough for them - 100 = sell_titles.0005 # Powerful Vassal reduces their obligations - 100 = sell_titles.0006 # Someone chastises you - 30 = sell_titles.1001 # A merchant has an offer - } -} diff --git a/common/on_action/mandate_on_actions.txt b/common/on_action/mandate_on_actions.txt deleted file mode 100644 index ddd0e9910f..0000000000 --- a/common/on_action/mandate_on_actions.txt +++ /dev/null @@ -1,29 +0,0 @@ -diarchy_mandate_fill_coffers_random = { - random_events = { - 100 = diarchy.1201 # Open Hearts, Open Pockets - Levy an extra tax from a wealthy co-vassal. - 100 = diarchy.1211 # Terms & Conditions - Reinforce the fine points of a co-vassal's contract. - 100 = diarchy.1221 # Your New Home - Resettle peasants from a rural county to an urban one. - 100 = diarchy.1231 # In for a Penny - Issue stricter criminal fines. - 100 = diarchy.1241 # A Taxing Subject - Levy exempt institutions (churches in theocratic faiths, privileged burghers and charities in lay ones). - } -} - -diarchy_mandate_promote_authority_random = { - random_events = { - 100 = diarchy.1701 # The Right to Rule - Boost CA/TA by negotiating with powerful vassals. - 100 = diarchy.1711 # Expiration Date - Exploit wording in a vassal contract to reset a cooldown. - 100 = diarchy.1721 # Settling Grievances - Negotiate a powerful character out of a faction. - 100 = diarchy.1731 # Settling Accounts - Negotiate a group of counties out of a faction. - 100 = diarchy.1741 # Look at it this Way - Boost the opinion council members have of their liege. - } -} - -diarchy_mandate_swell_armies_random = { - random_events = { - 100 = diarchy.2201 # Bring Out Your Youth - Round up countryside recruits. - 100 = diarchy.2211 # A Rare Talent - Woo Hedge Knight - 100 = diarchy.2221 # Martial Donatives - Entice professional soldiery - 100 = diarchy.2231 # A Better Use for You - Empty the gaols - 100 = diarchy.2241 # Make a WomanMan Out of You - Train baronial troops - } -} diff --git a/common/on_action/prison_on_actions.txt b/common/on_action/prison_on_actions.txt index 834bb0fd62..cd55fda224 100644 --- a/common/on_action/prison_on_actions.txt +++ b/common/on_action/prison_on_actions.txt @@ -5,7 +5,7 @@ # Code on-action: character being imprisoned in root scope # imprisoning character set as scope:imprisoner on_imprison = { - effect = { #You no longer make such decisions over your life :( + effect = { # You no longer make such decisions over your life :( # EP2: Cancel associated activity and travel plan if they exist if = { limit = { @@ -41,7 +41,7 @@ on_imprison = { limit = { has_character_modifier = losing_weight_modifier } remove_character_modifier = losing_weight_modifier } - if = { #from event hold_court.6140 + if = { # from event hold_court.6140 limit = { scope:imprisoner = { has_character_modifier = 6140_pet_modifier @@ -57,43 +57,12 @@ on_imprison = { # Warcraft # Struggle Catalysts - #if = { - # limit = { - # root = { - # is_important_or_vip_struggle_character = yes - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_imprison_important - # CHAR = scope:imprisoner - # } - # } - # } - # } - # root = { - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_imprison_important - # CHAR = scope:imprisoner - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_imprison_important - # character = scope:imprisoner - # } - # } - # } - #} # End of Warcraft + # Memory system create_character_memory = { type = imprisoned - - participants = { - imprisoner = scope:imprisoner - } + participants = { imprisoner = scope:imprisoner } } if = { limit = { @@ -211,11 +180,6 @@ on_release_from_prison = { limit = { has_character_modifier = 6140_animal_guardian_modifier } remove_character_modifier = 6140_animal_guardian_modifier } - # struggle content - #if = { - # limit = { has_character_flag = catalyst_release_important_blocker } - # remove_character_flag = catalyst_release_important_blocker - #} if = { limit = { has_character_flag = realm_priest @@ -307,8 +271,6 @@ quarterly_prison_maintenance_pulse = { ######## #Dungeon on_actions ######## - - dungeon_ongoing = { trigger = { exists = imprisoner #Don't fire if we've been released since the on_action was called. @@ -326,6 +288,7 @@ dungeon_ongoing = { 100 = dungeon_ongoing.0007 #It is terrible to be Ambitious and in prison 100 = dungeon_ongoing.0008 #Impatient, and have stayed in the dungeon "forever" 100 = dungeon_ongoing.0009 #You prison pet is there to comfort you + 100 = dungeon_ongoing.0010 #Write to a relative asking for help #Long-term imprisonment events: 500 = dungeon_ongoing.9001 #Become ill @@ -342,7 +305,7 @@ dungeon_ongoing_reformed = { } random_events = { - chance_to_happen = 25 + #chance_to_happen = 25 500 = 0 100 = dungeon_ongoing.0001 #Crazy neighbor bothers you 200 = dungeon_ongoing.0002 #Wait patiently - or not @@ -353,6 +316,7 @@ dungeon_ongoing_reformed = { 100 = dungeon_ongoing.0007 #It is terrible to be Ambitious and in prison 100 = dungeon_ongoing.0008 #Impatient, and have stayed in the dungeon "forever" 100 = dungeon_ongoing.0009 #You prison pet is there to comfort you + 100 = dungeon_ongoing.0010 #Write to a relative asking for help #Long-term imprisonment events: 500 = dungeon_ongoing.9001 #Become ill @@ -380,6 +344,7 @@ dungeon_ongoing_neglected = { 100 = dungeon_ongoing.0007 #It is terrible to be Ambitious and in prison 100 = dungeon_ongoing.0008 #Impatient, and have stayed in the dungeon "forever" 100 = dungeon_ongoing.0009 #You prison pet is there to comfort you + 100 = dungeon_ongoing.0010 #Write to a relative asking for help #Long-term imprisonment events: 500 = dungeon_ongoing.9001 #Become ill @@ -406,6 +371,7 @@ house_arrest_ongoing = { 100 = house_arrest_ongoing.0003 #Missing love ones 100 = house_arrest_ongoing.0004 #Friend at court helps you 100 = house_arrest_ongoing.0005 #Rival at court is a nuisance + 100 = dungeon_ongoing.0010 #Write to a relative asking for help } } diff --git a/common/on_action/province_on_actions.txt b/common/on_action/province_on_actions.txt index b8d7bd005e..01b22143f3 100644 --- a/common/on_action/province_on_actions.txt +++ b/common/on_action/province_on_actions.txt @@ -1,18 +1,13 @@ # root: The province in which the building was completed +# character: The character that paid for the construction, if available on_building_completed = { effect = { root = { - #Hard working Tradition + # Hard working Tradition if = { limit = { - culture = { - has_cultural_parameter = development_gain_on_building_complete - } - NOT = { - county = { - has_variable = dev_gain_cooldown - } - } + culture = { has_cultural_parameter = development_gain_on_building_complete } + NOT = { county = { has_variable = dev_gain_cooldown } } } county = { change_development_progress_with_overflow = 25 @@ -24,12 +19,10 @@ on_building_completed = { } } - #Metal crafting Tradition + # Metal crafting Tradition if = { limit = { - culture = { - has_cultural_parameter = prestige_gain_on_building_complete_in_mountains - } + culture = { has_cultural_parameter = prestige_gain_on_building_complete_in_mountains } OR = { terrain = mountains terrain = desert_mountains @@ -39,13 +32,11 @@ on_building_completed = { add_prestige = medium_prestige_value } } - - #Sacred Mountains Tradition + + # Sacred Mountains Tradition if = { limit = { - county.holder.culture = { - has_cultural_parameter = piety_gain_on_building_complete_in_mountains - } + county.holder.culture = { has_cultural_parameter = piety_gain_on_building_complete_in_mountains } OR = { terrain = mountains terrain = desert_mountains @@ -55,13 +46,11 @@ on_building_completed = { add_piety = minor_piety_value } } - - #Sacred Groves Tradition + + # Sacred Groves Tradition if = { limit = { - county.holder.culture = { - has_cultural_parameter = piety_gain_on_building_complete_in_forest_taiga - } + county.holder.culture = { has_cultural_parameter = piety_gain_on_building_complete_in_forest_taiga } OR = { terrain = forest terrain = taiga @@ -155,97 +144,7 @@ on_building_completed = { # Warcraft # Struggle parameter - #if = { - # limit = { - # has_holding_type = castle_holding - # county.holder = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = completing_building_in_castle_gives_development - # } - # } - # } - # county = { - # change_development_progress_with_overflow = 10 - # } - #} - # - #if = { - # limit = { - # has_holding_type = church_holding - # county.holder = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = completing_building_in_temple_gives_piety - # } - # } - # } - # county.holder = { - # add_piety = medium_piety_gain - # } - #} - # # Struggle catalyst - #if = { - # limit = { - # has_holding_type = castle_holding - # county.holder = { - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_new_building_in_castle - # } - # } - # } - # county.holder = { - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_new_building_in_castle - # character = root.county.holder - # } - # } - # } - #} - #else_if = { - # limit = { - # has_holding_type = city_holding - # county.holder = { - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_new_building_in_city - # } - # } - # } - # county.holder = { - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_new_building_in_city - # character = root.county.holder - # } - # } - # } - #} - #else_if = { - # limit = { - # has_holding_type = church_holding - # county.holder = { - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_new_building_in_temple - # } - # } - # } - # county.holder = { - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_new_building_in_temple - # character = root.county.holder - # } - # } - # } - #} # End of Warcraft # Points of Interest @@ -362,3 +261,19 @@ on_building_completed = { } } + +# root: The province in which the building was started +# character: The character that paid for the construction, if available +on_building_started = { + effect = { + + } +} + +# root: The province in which the building was cancelled +# character: The character that paid for the construction, if available +on_building_cancelled = { + effect = { + + } +} diff --git a/common/on_action/realm_maintenance_on_actions.txt b/common/on_action/realm_maintenance_on_actions.txt deleted file mode 100644 index d4fa83c243..0000000000 --- a/common/on_action/realm_maintenance_on_actions.txt +++ /dev/null @@ -1,95 +0,0 @@ -realm_maintenance_quarterly_pulse = { - on_actions = { - low_control_pulse - high_countrol_pulse - in_debt_county_corruption_pulse - } -} - -#Being in debt may add corruption -in_debt_county_corruption_pulse = { - trigger = { - gold < 0 - any_held_county = { - NOT = { immune_to_county_corruption_trigger = yes } - } - } - effect = { - every_held_county = { - limit = { - NOT = { immune_to_county_corruption_trigger = yes } - } - save_temporary_scope_as = county - random = { - chance = in_debt_county_corruption_gain_chance - save_scope_as = county - holder = { - save_scope_as = corruption_holder - trigger_event = { - id = realm_maintenance.0002 - days = { 10 40 } - } - } - } - } - } -} - -#Low County Control may add corruption -low_control_pulse = { - trigger = { - any_held_county = { - county_control < low_county_control_limit - NOT = { immune_to_county_corruption_trigger = yes } - } - } - effect = { - every_held_county = { - limit = { - county_control < low_county_control_limit - NOT = { immune_to_county_corruption_trigger = yes } - } - random = { - chance = county_control_corruption_gain_chance - save_scope_as = county - holder = { - save_scope_as = corruption_holder - trigger_event = { - id = realm_maintenance.0003 - days = { 10 40 } - } - } - } - } - } -} - -#High County Control may remove corruption -high_countrol_pulse = { - trigger = { - gold >= 0 - any_held_county = { - has_county_corruption_trigger = yes - county_control > high_county_control_limit - } - } - effect = { - every_held_county = { - limit = { - has_county_corruption_trigger = yes - county_control > high_county_control_limit - } - random = { - chance = high_control_county_corruption_removal_chance - save_scope_as = county - holder = { - save_scope_as = corruption_holder - trigger_event = { - id = realm_maintenance.0004 - days = { 10 40 } - } - } - } - } - } -} diff --git a/common/on_action/relations/bishop_on_actions.txt b/common/on_action/relations/bishop_on_actions.txt deleted file mode 100644 index 660935c554..0000000000 --- a/common/on_action/relations/bishop_on_actions.txt +++ /dev/null @@ -1,33 +0,0 @@ -bishop_ongoing = { - trigger = { - is_landed = yes - OR = { - any_theocratic_vassal = { - opinion = { - target = prev - value <= -10 - } - } - AND = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - opinion = { - target = prev - value <= -10 - } - } - } - } - } - - random_events = { - chance_to_happen = 25 - 200 = 0 - 100 = bishop.1001 #Forced divorce - 100 = bishop.1011 #Force you to leave faction - 100 = bishop.2001 #Force to release a prisoner - 100 = bishop.2002 #Set family members against ruler - 100 = bishop.2003 #Decrease demesne county control - 100 = bishop.2004 #Set Zealot vassals against ruler - } -} diff --git a/common/on_action/relations/jester_on_actions.txt b/common/on_action/relations/jester_on_actions.txt deleted file mode 100644 index acfa5d4fd1..0000000000 --- a/common/on_action/relations/jester_on_actions.txt +++ /dev/null @@ -1,28 +0,0 @@ -jester_ongoing = { - trigger = { - stress > 0 - age >= 12 - employs_court_position = court_jester_court_position - any_court_position_holder = { - type = court_jester_court_position - is_physically_able_ai_adult = yes - } - } - - random_events = { - chance_to_happen = 50 - 2000 = 0 - 100 = jester.100 - 100 = jester.200 - 100 = jester.300 - 10 = jester.400 - 100 = jester.500 - 100 = jester.600 - 100 = jester.700 - 100 = jester.800 - 10 = jester.900 - 100 = jester.1000 - 100 = jester.1100 - 100 = jester.1200 - } -} diff --git a/common/on_action/relations/parent_on_actions.txt b/common/on_action/relations/parent_on_actions.txt deleted file mode 100644 index ec378cb2aa..0000000000 --- a/common/on_action/relations/parent_on_actions.txt +++ /dev/null @@ -1,19 +0,0 @@ -#On actions governing Parent random events - -################### -# ONGOING EVENTS -################### - -parent_meddling_outcome = { - trigger = { - scope:parent = { - is_alive = yes - } - } - random_events = { - 50 = parent.2002 #Parent sends one of your children away to be educated - 50 = parent.2003 #Parent insults courtier - 50 = parent.2004 #Parent gives you stress - 50 = parent.3001 #Parent takes interest in your child's life - } -} \ No newline at end of file diff --git a/common/on_action/relations/relation_on_actions.txt b/common/on_action/relations/relation_on_actions.txt index 624ae03d25..6a9ad87d56 100644 --- a/common/on_action/relations/relation_on_actions.txt +++ b/common/on_action/relations/relation_on_actions.txt @@ -58,30 +58,6 @@ on_set_relation_lover = { # Warcraft # Struggle Catalysts. - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_friend_lover_with_character - # CHAR = scope:target - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_friend_lover_with_character - # CHAR = scope:target - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_became_friend_lover_with_character - # character = root - # } - # } - #} # End of Warcraft # being lover with a child is forbidden @@ -112,6 +88,44 @@ on_set_relation_lover = { } } } + + # If we're a clan this affects unity + if = { + limit = { # You'll lose unity for becoming the lover with another house member's spouse (regardless of what house your lover has) + scope:target = { + primary_spouse ?= { + exists = house + exists = root.house + house = root.house + } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target.primary_spouse + VALUE = medium_unity_loss + DESC = clan_unity_caused_trouble.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { # You'll gain some unity for becoming a lover with a member of your house (as long as they aren't married to yet ANOTHER house member) + scope:target = { + primary_spouse ?= { + exists = house + exists = root.house + NOT = { house = root.house } + } + } + } + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = minor_unity_gain + DESC = clan_unity_become_lover.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } #events = { # lover.0010 @@ -156,24 +170,6 @@ on_set_relation_soulmate = { } # Warcraft # Struggle Catalysts. - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_best_friend_soulmate_with_very_important_character - # CHAR = scope:target - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_became_best_friend_soulmate_with_very_important_character - # character = root - # } - # } - #} # End of Warcraft create_character_memory = { type = became_soulmates @@ -189,6 +185,15 @@ on_set_relation_soulmate = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = minor_unity_gain + DESC = clan_unity_become_soulmate.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -260,98 +265,18 @@ on_set_relation_friend = { # Warcraft # Struggle Parameter - #if = { - # limit = { - # # Does the current phase have the right parameter? - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = struggle_becoming_friend_gives_prestige - # } - # # check diff faith or culture and involvement - # is_diff_faith_or_culture_trigger = { - # CHAR = scope:target - # STATUS = involved - # STRUGGLE_TYPE = iberian_struggle - # } - # } - # send_interface_toast = { - # title = bonus_from_new_friend - # left_icon = root - # right_icon = scope:target - # add_prestige = { - # value = { - # add = minor_prestige_gain - # multiply = scope:target.primary_title.tier - # } - # } - # } - # scope:target = { - # send_interface_toast = { - # title = bonus_from_new_friend - # left_icon = scope:target - # right_icon = root - # add_prestige = { - # value = { - # add = minor_prestige_gain - # multiply = scope:target.primary_title.tier - # } - # } - # } - # } - #} - # - #if = { - # limit = { - # faith = scope:target.faith - # # Does the current phase have the right parameter? - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = same_faith_friend_piety_gain - # } - # } - # send_interface_toast = { - # title = bonus_from_new_friend - # left_icon = root - # right_icon = scope:target - # add_piety = medium_piety_gain - # } - # scope:target = { - # send_interface_toast = { - # title = bonus_from_new_friend - # left_icon = scope:target - # right_icon = root - # add_piety = medium_piety_gain - # } - # } - #} - # # Struggle Catalyst - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_friend_lover_with_character - # CHAR = scope:target - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_friend_lover_with_character - # CHAR = scope:target - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_became_friend_lover_with_character - # character = root - # } - # } - #} # End of Warcraft + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = miniscule_unity_gain + DESC = clan_unity_become_friend.desc + REVERSE_NON_HOUSE_TARGET = no + } + # Hostage story cycle if = { limit = { @@ -590,31 +515,16 @@ on_set_relation_best_friend = { # Warcraft # Struggle Catalysts. - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_best_friend_soulmate_with_very_important_character - # CHAR = scope:target - # } - # } - # } - # every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_became_best_friend_soulmate_with_very_important_character - # CHAR = scope:target - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_became_best_friend_soulmate_with_very_important_character - # character = root - # } - # } - #} # End of Warcraft + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = minor_unity_gain + DESC = clan_unity_become_best_friend.desc + REVERSE_NON_HOUSE_TARGET = no + } } } @@ -755,19 +665,7 @@ rival_relation_changes = { on_set_relation_rival = { effect = { - #every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_becomes_rival_with_involved - # CHAR = scope:target - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_becomes_rival_with_involved - # character = root - # } - #} + # Warcraft send_set_relation_toast_effect = { OWNER = root TARGET = scope:target RELATION = rival } if = { @@ -791,6 +689,15 @@ on_set_relation_rival = { } } + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = medium_unity_loss + DESC = clan_unity_become_rival.desc + REVERSE_NON_HOUSE_TARGET = no + } + # Hostage story cycle if = { limit = { @@ -835,19 +742,6 @@ on_set_relation_rival = { # Warcraft on_set_relation_nemesis = { effect = { - #every_character_struggle = { - # involvement = involved - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_becomes_rival_with_involved - # CHAR = scope:target - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_becomes_rival_with_involved - # character = root - # } - #} send_set_relation_toast_effect = { OWNER = root TARGET = scope:target RELATION = nemesis } if = { limit = { @@ -871,6 +765,14 @@ on_set_relation_nemesis = { } } + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = root + TARGET = scope:target + VALUE = medium_unity_loss + DESC = clan_unity_become_nemesis.desc + REVERSE_NON_HOUSE_TARGET = no + } } } diff --git a/common/on_action/relations/sibling_on_actions.txt b/common/on_action/relations/sibling_on_actions.txt deleted file mode 100644 index d86bf3c023..0000000000 --- a/common/on_action/relations/sibling_on_actions.txt +++ /dev/null @@ -1,39 +0,0 @@ -sibling_quarterly_pulse = { - trigger = { - any_sibling = { count >= 1 } - } - - on_actions = { - sibling_statuses - ongoing_sibling - } -} - - -sibling_statuses = { - random_events = { - 100 = sibling.0005 #The realm gets fed up with a troublemaker sibling - } -} - - -ongoing_sibling = { - random_events = { - chance_to_happen = 25 - 500 = 0 - 100 = sibling.0001 #Sibling wants to be rewarded - 100 = sibling.0004 #Vassal complains about sibling - 100 = sibling.1001 #Sibling adds diplomacy bonus - 100 = sibling.1002 #Sibling adds martial bonus - 100 = sibling.1003 #Sibling adds intrigue bonus - 100 = sibling.1004 #Sibling adds stewardship bonus - 100 = sibling.1005 #Sibling adds learning bonus - 100 = sibling.2001 #A sibling causes stress and worry - 100 = sibling.8001 #A Greedy sibling appropriates money - 100 = sibling.8002 #A Generous sibling is kind to peasants in a province - 100 = sibling.8003 #A Lustful sibling has a relationship with a servant - 100 = sibling.8004 #Arrogant sibling upsets peasants in a province - 100 = sibling.8005 #Impatient sibling causes upset - 100 = sibling.8006 #Just sibling delivers just judgement for vassal - } -} diff --git a/common/on_action/relations/spouse_on_actions.txt b/common/on_action/relations/spouse_on_actions.txt deleted file mode 100644 index a9d165b3f3..0000000000 --- a/common/on_action/relations/spouse_on_actions.txt +++ /dev/null @@ -1,266 +0,0 @@ - -@spouse_on_action_setup_chance = 4 -@chance_of_nothing_for_count_ais = 75 - - - -spouse_councillor_default_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 1 = court_politics_task_on_action - 1 = chivalry_task_on_action - 1 = court_intrigue_task_on_action - 1 = manage_domain_task_on_action - 1 = patronage_task_on_action - } -} - - -court_politics_setup = { - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 100 = court_politics_task_on_action - 20 = chivalry_task_on_action - 20 = manage_domain_task_on_action - 20 = patronage_task_on_action - 20 = court_intrigue_task_on_action - } -} - -court_politics_task_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_events = { - 300 = 0 - # NOTIFICATION EVENTS - 100 = councillor_spouse_diplomacy.1001 #The opinion of a Close Kinsman in your realm improves - 100 = councillor_spouse_diplomacy.1002 #A rivalry between your children is ended - 100 = councillor_spouse_diplomacy.1003 #Your heir becomes friend with (another) one of your children - 100 = councillor_spouse_diplomacy.1004 #The diplomacy skill of your Chancellor increases - 100 = councillor_spouse_diplomacy.1005 #Spouse lose Shy - 100 = councillor_spouse_diplomacy.1006 #Spouse gains Gregarious - 100 = councillor_spouse_diplomacy.1007 #Opinion boost for close family member - 100 = councillor_spouse_diplomacy.1008 #Opinion boost for relevant dynasty member - 100 = councillor_spouse_diplomacy.1009 #Opinion boost for house head - - # EVENTS - 50 = councillor_spouse_diplomacy.2001 #Heir, or all children, become more interesting as marriage partners - 50 = councillor_spouse_diplomacy.2002 #Friendship between your heir and the heir of one of your powerful vassals - 50 = councillor_spouse_diplomacy.2003 #Reconcile with a rival that is present in your realm - 50 = councillor_spouse_diplomacy.2004 #Foreign claimant seeks audience at your court - opportunity to use their claim! - } -} - -chivalry_setup = { - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 20 = court_politics_task_on_action - 100 = chivalry_task_on_action - 20 = manage_domain_task_on_action - 20 = patronage_task_on_action - 20 = court_intrigue_task_on_action - } -} - -chivalry_task_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_events = { - 300 = 0 - 100 = councillor_spouse_martial.0001 #A county gains increased levies - 60 = councillor_spouse_martial.0002 #The realm gains increased levies - 80 = councillor_spouse_martial.0003 #Increased army morale - 100 = councillor_spouse_martial.0004 #Gain Prestige - 100 = councillor_spouse_martial.0005 #Reduced mercenary cost - 100 = councillor_spouse_martial.0006 #Health boost - 100 = councillor_spouse_martial.0007 #A wounded character gains a Health boost - 50 = councillor_spouse_martial.0008 #Gain Dread - 50 = councillor_spouse_martial.0009 #Increase a child's Prowess - #Events # - 50 = councillor_spouse_martial.1001 #Local Tourney - 50 = councillor_spouse_martial.1002 #Gain Prestige or Dread - 25 = councillor_spouse_martial.1003 #Stop a war between vassals - 50 = councillor_spouse_martial.1004 #Spouse raises troops - 50 = councillor_spouse_martial.1005 #A vassal is cowed - } -} - - -court_intrigue_setup = { - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 20 = court_politics_task_on_action - 20 = chivalry_task_on_action - 20 = manage_domain_task_on_action - 20 = patronage_task_on_action - 100 = court_intrigue_task_on_action - } -} - -court_intrigue_task_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_events = { - 300 = 0 - 200 = councillor_spouse_intrigue.0001 #Spouse increases your Spymaster's opinion of you - 150 = councillor_spouse_intrigue.0002 #Spouse Uncovers a Scheme against you - 100 = councillor_spouse_intrigue.0003 #Spouse uncovers a Secret - 100 = councillor_spouse_intrigue.0004 #Spouse adds progress to an Intrigue Scheme - 50 = councillor_spouse_intrigue.0005 #Gain a Manipulation Hook on a courtier or vassal - 100 = councillor_spouse_intrigue.0006 #Spouse loses Trusting - 100 = councillor_spouse_intrigue.0007 #Spouse gains Deceitful - 200 = councillor_spouse_intrigue.1001 #Your Spymaster is Scheming against you - 100 = councillor_spouse_intrigue.1002 #A character of major importance has a Secret - 50 = councillor_spouse_intrigue.1003 #A vassal in a Scheme is removed - 50 = councillor_spouse_intrigue.1004 #Uncover a Secret on a powerful vassal in a faction - 50 = councillor_spouse_intrigue.1005 #A vassal leaves a faction and starts desipising the faction leader - 30 = councillor_spouse_intrigue.1006 #A Hooked Courtier gets sent as a plant - } -} - - - -manage_domain_setup = { - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 20 = court_politics_task_on_action - 20 = chivalry_task_on_action - 100 = manage_domain_task_on_action - 20 = patronage_task_on_action - 20 = court_intrigue_task_on_action - } -} - -manage_domain_task_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_events = { - 300 = 0 - 100 = councillor_spouse_stewardship.1001 #A temporary cost reduction for MaA regiments. - 100 = councillor_spouse_stewardship.1002 #A build time boon modifier is added to a directly owned province - 100 = councillor_spouse_stewardship.1003 #Cheaper buildings in a directly owned barony - 100 = councillor_spouse_stewardship.1004 #They've organized your household better - get money! - 100 = councillor_spouse_stewardship.1005 #They've handled your household well - prestige boost - 100 = councillor_spouse_stewardship.1006 #They've handled your household well - courtier opinion boost - 100 = councillor_spouse_stewardship.1007 #They keep you healthy - gain health modifier - 100 = councillor_spouse_stewardship.1008 #They keep someone you care about healthy - they gain health modifier - 100 = councillor_spouse_stewardship.1009 #Increase development growth for a county in need - 100 = councillor_spouse_stewardship.1010 #Gain a favor hook on a courtier since your spouse helped them out - 100 = councillor_spouse_stewardship.1011 #Remove a negative county modifier from the stewardship lifestyle - - 50 = councillor_spouse_stewardship.2001 #What should your spouse invest money on? - 50 = councillor_spouse_stewardship.2002 #Opportunity to borrow money from a courtier - 50 = councillor_spouse_stewardship.2003 #Neighboring ruler as a trade-partner. - 50 = councillor_spouse_stewardship.2004 #Gain favor hook since your spouse helped a vassal out - 50 = councillor_spouse_stewardship.2005 #Risky business opportunity! - } -} - - -patronage_setup = { - random_on_action = { - chance_to_happen = @spouse_on_action_setup_chance - chance_of_no_event = { - if = { - limit = { - is_ai = yes - highest_held_title_tier < tier_duchy - } - value = @chance_of_nothing_for_count_ais # AI counts aren't particularly important - } - } - 20 = court_politics_task_on_action - 20 = chivalry_task_on_action - 20 = manage_domain_task_on_action - 100 = patronage_task_on_action - 20 = court_intrigue_task_on_action - } -} - -patronage_task_on_action = { - trigger = { - exists = cp:councillor_spouse - cp:councillor_spouse = scope:councillor - } - random_events = { - 300 = 0 - #Different faith/culture - 100 = councillor_spouse_learning.1001 #Vassal of spouse culture/faith opinion increase - 100 = councillor_spouse_learning.1002 #Important member of spouse's house opinion increase - 100 = councillor_spouse_learning.1003 #Opinion increase in domain county with spouse's culture/faith - 100 = councillor_spouse_learning.2001 #Spouse mediates with faction member - - #Same faith/culture - 30 = councillor_spouse_learning.1301 #Spouse converts someone of a different faith - 10 = councillor_spouse_learning.1302 #Spouse converts someone of a different culture - 100 = councillor_spouse_learning.1303 #Spouse gives piety - 100 = councillor_spouse_learning.1304 #Spouse increases relations with religious vassals - 100 = councillor_spouse_learning.1305 #Spouse increases relations with religious head - 10 = councillor_spouse_learning.2301 #Spouse has good relations with religious head - - #General - 100 = councillor_spouse_learning.1601 #Spouse helps with focus progress - 10 = councillor_spouse_learning.1602 #Spouse makes child shrewed - 100 = councillor_spouse_learning.1603 #Opinion increased with ward at court (not your child) - 30 = councillor_spouse_learning.2601 #Spouse offers to tutor you - 30 = councillor_spouse_learning.2602 #Spouse offers to tutor an important person in secondary skill - 100 = councillor_spouse_learning.2603 #Spouse offers to tutor a councillor - } -} \ No newline at end of file diff --git a/common/on_action/religion_on_actions.txt b/common/on_action/religion_on_actions.txt index 1c3f1854e9..366ce35de9 100644 --- a/common/on_action/religion_on_actions.txt +++ b/common/on_action/religion_on_actions.txt @@ -92,64 +92,7 @@ on_character_faith_change = { # Warcraft # Struggle Catalyst: heir changes culture while under age - #if = { - # limit = { - # catalyst_very_important_child_change_culture_or_faith_preliminary_trigger = yes - # } - # random_parent = { - # limit = { - # any_character_struggle = { - # involvement = involved - # } - # } - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_very_important_child_change_culture_or_faith - # character = root - # } - # } - # } - #} - # # Local conversion - #if = { - # limit = { - # exists = root.capital_province - # root.capital_province.faith = root.faith - # any_character_struggle = { - # involvement = involved - # phase_has_catalyst = catalyst_convert_local_culture_faith - # is_faith_involved_in_struggle = root.faith - # } - # } - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_convert_local_culture_faith - # character = root - # } - # } - #} - #else_if = { # Forced conversion - # limit = { - # any_character_struggle = { - # involvement = involved - # is_faith_involved_in_struggle = root.faith - # phase_has_catalyst = catalyst_forced_conversion - # } - # } - # every_character_struggle = { - # involvement = involved - # activate_struggle_catalyst = { - # catalyst = catalyst_forced_conversion - # character = root - # } - # } - #} - # End of Warcraft - - # Warcraft - Removing # End of Warcraft # Hostage story cycle @@ -179,7 +122,6 @@ on_character_faith_change = { great_holy_war.0059 # Clear Crusader traits on conversion. great_holy_war.0084 # Replace fallback ghw recipient great_holy_war.0085 # Remove pledged vassals upon conversion of their liege. - false_conversion.0001 # Flag possible false conversions. war_event.3100 # Handles invalidation of religious wars } } diff --git a/common/on_action/royal_court_acquisition.txt b/common/on_action/royal_court_acquisition.txt deleted file mode 100644 index 6611c9f755..0000000000 --- a/common/on_action/royal_court_acquisition.txt +++ /dev/null @@ -1,11 +0,0 @@ -# Root = Player gaining a royal court for the first time -on_player_royal_court_first_gained = { - events = { court_maintenance.0011 } - effect = { - send_interface_toast = { - title = gained_royal_court_toast - left_icon = root - custom_tooltip = gained_royal_court_toast_desc - } - } -} diff --git a/common/on_action/schemes/abduct_on_actions.txt b/common/on_action/schemes/abduct_on_actions.txt deleted file mode 100644 index a49a95b671..0000000000 --- a/common/on_action/schemes/abduct_on_actions.txt +++ /dev/null @@ -1,94 +0,0 @@ -abduct_setup = { - first_valid_on_action = { - standard_abduct_method_setup - } -} - - - -standard_abduct_method_setup = { - random_events = { - 100 = abduct_outcome.1001 # Seize from the roadside - 100 = abduct_outcome.1002 # On the Way - 100 = abduct_outcome.1003 # Unwelcome Guests - } -} - -abduct_succeeded = { - # Picks out the correct success event depending on setup. - trigger = { - exists = scope:scheme - } - first_valid = { - abduct_outcome.2001 #Seized Roadside - abduct_outcome.2002 #On the Way - abduct_outcome.2003 #Unwelcome Guests - } -} - -abduct_failed = { - # Picks out the correct failure event depending on setup/save. - trigger = { - exists = scope:scheme - } - first_valid = { - abduct_outcome.4001 #Seized Roadside - abduct_outcome.4002 #On the Way - abduct_outcome.4003 #Unwelcome Guests - } -} - -abduct_ongoing = { - # Events that can happen while planning to abduct someone. (shared with murder) - trigger = { - exists = scope:scheme - } - - random_events = { - chance_to_happen = 10 - 300 = 0 - ############# - # Generic Intrigue Scheme events - ############# - #Agents: - 200 = intrigue_scheme_ongoing.1001 # Pay gold for Scheme Progress - 200 = intrigue_scheme_ongoing.1002 # Zealous agent promotes your agenda - 200 = intrigue_scheme_ongoing.1004 # A Gregarious agent is a little too loose-lipped - 200 = intrigue_scheme_ongoing.1006 # A Lazy agent is a little careless - 30 = intrigue_scheme_ongoing.1007 # Caring agent wants you to stop - 100 = intrigue_scheme_ongoing.1008 # Agent close to being discovered - 100 = intrigue_scheme_ongoing.1009 # Close relation is willing to join your scheme after all - 100 = intrigue_scheme_ongoing.5019 # Find old architectural papers - - #Target: - 200 = intrigue_scheme_ongoing.2001 # Trusting target - 200 = intrigue_scheme_ongoing.2002 # Drunkard target - 50 = intrigue_scheme_ongoing.2003 # Discover a secret about someone else than your target - - #Child target: - 300 = intrigue_scheme_ongoing.4001 # Agent is put in charge of a group of children - 300 = intrigue_scheme_ongoing.4002 # Child is gullible - 200 = intrigue_scheme_ongoing.4003 # Agent has second thoughts - - #Other - 100 = intrigue_scheme_ongoing.3003 # Mapping the local surroundings - 100 = intrigue_scheme_ongoing.3005 # Messenger pigeon - 100 = intrigue_scheme_ongoing.5001 # Distract guards with itching powder - 100 = intrigue_scheme_ongoing.5009 # "Friend of Animals" gets some help - - 100 = intrigue_scheme_ongoing.3010 # Translate letters yourself - 100 = intrigue_scheme_ongoing.3011 # Complex language code - - ############# - # Lifestyle events - ############# - 200 = intrigue_scheme_lifestyle.1001 # Opportunity for a general to set up a soldier spy ring - 100 = intrigue_scheme_lifestyle.1002 # Your soldier spy ring has been compromised! - 200 = intrigue_scheme_lifestyle.3001 # Study the targets habits - 200 = intrigue_scheme_lifestyle.3101 # Convert informants in target´s court - 100 = intrigue_scheme_lifestyle.3102 # Informants are revealed! - 200 = intrigue_scheme_lifestyle.3201 # Intercept communication - 200 = intrigue_scheme_lifestyle.3301 # Possible to gain hook - ends the scheme - 200 = intrigue_scheme_lifestyle.3401 # Convince courtier at target's court to inform on them - } -} diff --git a/common/on_action/schemes/befriend_on_actions.txt b/common/on_action/schemes/befriend_on_actions.txt deleted file mode 100644 index 361b783d99..0000000000 --- a/common/on_action/schemes/befriend_on_actions.txt +++ /dev/null @@ -1,224 +0,0 @@ -################### -# ONGOING EVENTS - REGULAR -################### -befriend_ongoing = { - trigger = { - exists = scope:scheme - is_travelling = no - } - random_events = { - chance_to_happen = 25 - 500 = 0 - 100 = befriend_ongoing.1001 # Brag about how great you are - 100 = befriend_ongoing.1002 # Send a gift - 500 = befriend_ongoing.1003 # Shared Rival - 100 = befriend_ongoing.2001 # The target is gregarious - 100 = befriend_ongoing.3001 # Envoy Chain - 100 = befriend_ongoing.3007 # Have your friendship blessed by a friendly religious affiliate - 200 = befriend_ongoing.3009 # Spouse offers to put in a good word - 50 = befriend_ongoing.3013 # Spouse disrupts the scheme - 150 = befriend_ongoing.9100 # Rival spreads false rumors - 150 = befriend_ongoing.9101 # Friends with shared trait helps ruler - 150 = befriend_ongoing.9103 # Dreaded ruler is misunderstood by Target - 100 = befriend_ongoing.9104 # Offering to Theocrat - - # Personality match/mismatch - 300 = befriend_ongoing.5001 # Cynical Owner tries to befriend Zealous Target - 300 = befriend_ongoing.5002 # Trusting Owner tries to befriend Cynical Target - 300 = befriend_ongoing.5003 # Gregarious Owner tries to befriend Depressed Target - 300 = befriend_ongoing.5004 # Gluttonous Owner tries to befriend Temperate Target - 300 = befriend_ongoing.5005 # Ambitious Owner tries to befriend Content Target - 200 = befriend_ongoing.5006 # Owner and Target have nothing in common - 300 = befriend_ongoing.5007 # Use Learning to overcome differences - #Trades and Exchanges - 200 = befriend_ongoing.6001 # Target asks for the release of a prisoner - 50 = befriend_ongoing.6009 # Offer Target a Favor - 150 = befriend_ongoing.6011 # Cancel a Favor - 200 = befriend_ongoing.6013 # Cancel Blackmail - 250 = befriend_ongoing.6015 # Trade some of their Stress for yours - 50 = befriend_ongoing.6017 # Start development in Target's County - 100 = befriend_ongoing.6019 # Give up opinion with other character to benefit them - #Diplomatic Scheme Lifestyle Events - 100 = diplomatic_scheme_lifestyle.1001 #Having the Warfare Lifestyle in common - 100 = diplomatic_scheme_lifestyle.3001 #Spy on target to learn likes/dislikes - 100 = diplomatic_scheme_lifestyle.3101 #Confrontation from target - #100 = diplomatic_scheme_lifestyle.3201 #Sacrifice agent for scheme power - # Shared Lifestyles - 600 = befriend_ongoing.4000 # Both have Lifestyle General - 600 = befriend_ongoing.4010 # Both have Lifestyle Diplomat - 600 = befriend_ongoing.4020 # Both have Lifestyle Administrator - 600 = befriend_ongoing.4030 # Both have Lifestyle Schemer - 600 = befriend_ongoing.4040 # Both have Lifestyle Scholar - 600 = befriend_ongoing.4050 # Both have Lifestyle Seducer - 600 = befriend_ongoing.4060 # Both have Lifestyle Blademaster - 600 = befriend_ongoing.4070 # Both have Lifestyle Hunter - 600 = befriend_ongoing.4080 # Both have Lifestyle Reveler - 600 = befriend_ongoing.4090 # Both have Lifestyle Torturer - 600 = befriend_ongoing.4300 # Both have Dread - - - # Circumstances - 100 = befriend_ongoing.4100 # At war with the same enemy - 100 = befriend_ongoing.4110 # In the same faction - - #Apply scheme modifiers from saved variables - 1000 = personal_scheme_ongoing.1000 #Apply exotic wares modifier you procured while on a pilgrimage - } -} - -########################### -# ONGOING EVENTS - TARGET DISLIKES SCHEMER -########################### -befriend_dislike_ongoing = { - trigger = { - exists = scope:scheme - is_travelling = no - } - random_events = { - chance_to_happen = 25 - 1000 = 0 - # General events: - 20 = befriend_ongoing_dislike.0001 # Send a gift - 500 = befriend_ongoing_dislike.0002 # Target that really doesn't like owner, isn't interested - 500 = befriend_ongoing_dislike.0003 # Target that doesn't like Owner, is bothered by insistence - 200 = befriend_ongoing_dislike.0004 # Target rebuffing advances - 200 = befriend_ongoing_dislike.0005 # Softening disposition - 200 = befriend_ongoing.3009 # Spouse offers to put in a good word - 50 = befriend_ongoing.3013 # Spouse disrupts the scheme - 400 = befriend_ongoing.1003 # Shared Rival - 150 = befriend_ongoing.9100 # Rival spreads false rumors - 150 = befriend_ongoing.9103 # Dreaded ruler is misunderstood by Target - 100 = befriend_ongoing.9104 # Offering to Theocrat I - 100 = befriend_ongoing.9105 # Offering to Theocrat II - # Scheme Target-based events: - 100 = befriend_ongoing_dislike.2001 # Gregarious target isn't accepting your friendliness. - 100 = befriend_ongoing_dislike.2002 # Shy Target is difficult to deal with - # Personality match/mismatch - 300 = befriend_ongoing_dislike.5001 # Cynical Owner tries to befriend Zealous Target - 300 = befriend_ongoing_dislike.5002 # Trusting Owner tries to befriend Cynical Target - 300 = befriend_ongoing_dislike.5003 # Gregarious Owner tries to befriend Depressed Target - 300 = befriend_ongoing_dislike.5004 # Gluttonous Owner tries to befriend Temperate Target - 300 = befriend_ongoing_dislike.5005 # Ambitious Owner tries to befriend Content Target - 200 = befriend_ongoing.5006 # Owner and Target have nothing in common - 300 = befriend_ongoing.5007 # Use Learning to overcome differences - #Trades and Exchanges - 100 = befriend_ongoing.6001 # Target asks for the release of a prisoner - 50 = befriend_ongoing.6009 # Offer Target a Favor - 150 = befriend_ongoing.6011 # Cancel a Favor - 200 = befriend_ongoing.6013 # Cancel Blackmail - 250 = befriend_ongoing.6015 # Trade some of their Stress for yours - 100 = befriend_ongoing.6019 # Give up opinion with other character to benefit them - } -} - -########################## -# ONGOING EVENTS - TARGET IS A RIVAL -########################## -befriend_rival_ongoing = { - trigger = { - exists = scope:scheme - is_travelling = no - } - random_events = { - chance_to_happen = 25 - 1000 = 0 - #General events - 200 = befriend_ongoing_rival.0002 # Having an argument - 500 = befriend_ongoing_dislike.0002 # Target that really doesn't like owner isn't interested - 300 = befriend_ongoing_rival.0001 # Target rebuffing advances - 150 = befriend_ongoing_rival.0005 # The rival spreads lies about you - 200 = befriend_ongoing.3009 # Spouse offers to put in a good word - 50 = befriend_ongoing.3013 # Spouse disrupts the scheme - #Scheme-target based events - 300 = befriend_ongoing_rival.2000 # Trying to give a compliment - #Personality match/mismatch - 300 = befriend_ongoing_dislike.5001 # Cynical Owner tries to befriend Zealous Target - 300 = befriend_ongoing_dislike.5002 # Trusting Owner tries to befriend Cynical Target - 300 = befriend_ongoing_dislike.5003 # Gregarious Owner tries to befriend Depressed Target - 300 = befriend_ongoing_dislike.5004 # Gluttonous Owner tries to befriend Temperate Target - 300 = befriend_ongoing_dislike.5005 # Ambitious Owner tries to befriend Content Target - 200 = befriend_ongoing.5006 # Owner and Target have nothing in common - 300 = befriend_ongoing.5007 # Use Learning to overcome differences - #Trades and Exchanges - 100 = befriend_ongoing.6001 # Target asks for the release of a prisoner - 150 = befriend_ongoing.6011 # Cancel a Favor - 200 = befriend_ongoing.6013 # Cancel Blackmail - 250 = befriend_ongoing.6015 # Trade some of their Stress for yours - } -} - - -#################################################################### -# OUTCOME ON ACTIONS -#################################################################### - -############################ -# Fire Success w/Friendship event -############################ - -befriend_critical_success = { - random_events = { - 60 = befriend_outcome.6001 # Visit a local lord's manor - 60 = befriend_outcome.6002 # Attend a dance - 60 = befriend_outcome.6003 # Common interests - 50 = befriend_outcome.6004 # Generic success - 60 = befriend_outcome.6301 # Estate Visit - 20 = befriend_outcome.6006 # Success vs Faction leader - 60 = befriend_outcome.2007 # Travel Generic Success - } -} - -######################### -# Befriend Success Events -######################### - -befriend_success = { - random_events = { - 60 = befriend_outcome.2001 # Visit a local lord's manor - 60 = befriend_outcome.2002 # Attend a dance - 60 = befriend_outcome.2003 # Common interests - 50 = befriend_outcome.2004 # Generic success - 60 = befriend_outcome.2201 # A Formal Meeting - 60 = befriend_outcome.2301 # Estate Visit - 100 = befriend_outcome.9800 # Cemetery visit (vs Low opinion) - 100 = befriend_outcome.2005 # Generic Success (vs Rival) - 20 = befriend_outcome.2006 # Success vs Faction member - 60 = befriend_outcome.2007 # Travel Generic Success - } -} - -######################### -# Befriend Failure Events -######################### - -befriend_failure = { - random_events = { - 60 = befriend_outcome.4001 # Visit a local lord's manor - 60 = befriend_outcome.4002 # Attend a dance - 60 = befriend_outcome.4003 # Common interests - 10 = befriend_outcome.4004 # Generic Failure - 60 = befriend_outcome.4201 # A Formal Meeting - 60 = befriend_outcome.4301 # Estate Visit - 100 = befriend_outcome.9900 # Cemetery visit (vs Rival) - } -} - -######################### -# Befriend Crit Failure Events -######################### - -befriend_critical_failure = { - random_events = { - 60 = befriend_outcome.8001 # Visit a local lord's manor - 60 = befriend_outcome.8002 # Attend a dance - 60 = befriend_outcome.8003 # Common interests - 10 = befriend_outcome.8004 # Generic Failure - 30 = befriend_outcome.8005 # Shamed by callous Rival - 30 = befriend_outcome.8006 # Faction Leader refuses appeasement - 60 = befriend_outcome.8007 # Spouse blackmails - 40 = befriend_outcome.8008 # Bishop stirs peasants - 40 = befriend_outcome.8009 # Liege shames at court. - 60 = befriend_outcome.8201 # A Formal Meeting - 60 = befriend_outcome.8301 # Estate Visit - } -} diff --git a/common/on_action/schemes/court_on_actions.txt b/common/on_action/schemes/court_on_actions.txt deleted file mode 100644 index 43dfb30dd5..0000000000 --- a/common/on_action/schemes/court_on_actions.txt +++ /dev/null @@ -1,37 +0,0 @@ - -########################### -# ONGOING EVENTS -########################### - -court_ongoing = { - trigger = { - exists = scope:scheme - } - random_events = { - 10 = court_ongoing.1000 # Fart incident - 10 = court_ongoing.1010 # A LadyLord's honor (duel/convince) - 40 = court_ongoing.1020 # Fetch a gift (40 because this can lead to 5 different events) - 10 = court_ongoing.1100 # Compliment poem - 10 = court_ongoing.1200 # Extreme request - 15 = court_ongoing.1110 # Competition (15 because of more restrictive triggers) - 10 = court_ongoing.1120 # Boring party guest - 10 = bp2_yearly.8080 # Send your ward in to sing your praises - - #Apply scheme modifiers from saved variables - 1000 = personal_scheme_ongoing.1000 #Apply exotic wares modifier you procured while on a pilgrimage - } -} - - - -#################################################################### -# OUTCOME ON ACTIONS -#################################################################### - -court_outcome = { - random_events = { - 10 = court_outcome.1000 # You save target from a wolf - 10 = court_outcome.1100 # You save target from an intruder - } -} - diff --git a/common/on_action/schemes/elope_on_actions.txt b/common/on_action/schemes/elope_on_actions.txt deleted file mode 100644 index 6f3f50082b..0000000000 --- a/common/on_action/schemes/elope_on_actions.txt +++ /dev/null @@ -1,40 +0,0 @@ - -elope_ongoing = { - # Events that can happen while planning to elope with someone. (shared with murder/abduct) - trigger = { - exists = scope:scheme - } - - random_events = { - chance_to_happen = 20 - 200 = 0 - ############# - # Generic Intrigue Scheme events - ############# - - #Agents: - 200 = intrigue_scheme_ongoing.1001 #Pay gold for Scheme Progress - 100 = intrigue_scheme_ongoing.1004 #A Gregarious agent is a little too loose-lipped - 100 = intrigue_scheme_ongoing.1006 #A Lazy agent is a little careless - 100 = intrigue_scheme_ongoing.1008 #Agent close to being discovered - 200 = intrigue_scheme_ongoing.1009 #Close relation is willing to join your scheme after all - 75 = intrigue_scheme_ongoing.2003 #Discover a secret about someone else than your target - 100 = intrigue_scheme_ongoing.5019 # Find old architectural papers - - #Target - 100 = elope.2000 # Lover is doubting - - #Other - 100 = intrigue_scheme_ongoing.3003 # Map wilderness outside of target location - 100 = intrigue_scheme_ongoing.3005 # Messenger pigeon - 100 = intrigue_scheme_ongoing.5001 # Distract guards with itching powder - 100 = intrigue_scheme_ongoing.5009 # "Friend of Animals" gets some help - - ############# - # Lifestyle events - ############# - 200 = intrigue_scheme_lifestyle.3101 #Convert informants in target´s court - 100 = intrigue_scheme_lifestyle.3102 #Informants are revealed! - 200 = intrigue_scheme_lifestyle.3201 #Intercept communication - } -} diff --git a/common/on_action/schemes/fabricate_hook_on_actions.txt b/common/on_action/schemes/fabricate_hook_on_actions.txt deleted file mode 100644 index e3d3ce29b4..0000000000 --- a/common/on_action/schemes/fabricate_hook_on_actions.txt +++ /dev/null @@ -1,28 +0,0 @@ - -fabricate_hook_method_success_outcome = { - random_events = { - 100 = fabricate_hook_outcome.1001 # Compromised Situation that you set up - 100 = fabricate_hook_outcome.1002 # Fabricate Letter - 100 = fabricate_hook_outcome.1003 # Rescue from Thugs you hired - 100 = fabricate_hook_outcome.1004 # Counter a Rumour you started - 100 = fabricate_hook_outcome.1005 # Threaten their life - } -} - -fabricate_hook_ongoing = { - trigger = { - exists = scope:scheme - is_travelling = no - } - - random_events = { - chance_to_happen = 5 - 100 = 0 - 100 = fabricate_hook_ongoing.0001 # Ask a family member of theirs for help - 100 = fabricate_hook_ongoing.0002 # Learn from someone who already has leverage - 100 = fabricate_hook_ongoing.0003 # Spread rumors among servants - 100 = fabricate_hook_ongoing.0004 # Study their personality - - 100 = intrigue_scheme_ongoing.5026 # Court chaplain is in on it - } -} diff --git a/common/on_action/schemes/learn_language_on_actions.txt b/common/on_action/schemes/learn_language_on_actions.txt deleted file mode 100644 index 0991bc5ca4..0000000000 --- a/common/on_action/schemes/learn_language_on_actions.txt +++ /dev/null @@ -1,40 +0,0 @@ -learn_language_success = { - random_events = { - 100 = learn_language_outcome.1000 - } -} - -learn_language_failure = { - random_events = { - 100 = learn_language_outcome.2000 - } -} - - -learn_language_ongoing = { - trigger = { - is_landed = yes - is_physically_able = yes - } - random_events = { - 500 = 0 - 2 = learn_language_ongoing.1000 # Young character picks up the language *really* fast - 2 = learn_language_ongoing.1010 # Someone becomes infatuated with you when you speak the 'unbelievably romantic' foreign language - 2 = learn_language_ongoing.1020 # Someone in your vicinity that speaks the language offers to help you learn it - 2 = learn_language_ongoing.1030 # Someone offers you a trinket-slot book on learning languages - 2 = learn_language_ongoing.1040 # Earn the admiration of the one you're targeting - 2 = learn_language_ongoing.1050 # Your rival has sabotaged your notes! Lose progress. - 2 = learn_language_ongoing.1060 # Offend someone who doesn't speak your language - 2 = learn_language_ongoing.1070 # The target 'helps' you by sending you a lewd book - 6 = learn_language_ongoing.1080 # Your Court Tutor helps you along - 2 = learn_language_ongoing.1090 # Learning a language is hard - 2 = learn_language_ongoing.1100 # News of your efforts are spreading, gain cultural acceptance - 2 = learn_language_ongoing.1110 # Become a Poet? - 2 = learn_language_ongoing.1120 # Lose prestige for reading children's fables - 4 = learn_language_ongoing.1130 # Attracted Spouse/Lover help you out - 4 = learn_language_ongoing.1140 # Friend/family member/non-attracted spouse helps you out - 2 = learn_language_ongoing.1200 # Your dog ate your homework! - 100 = learn_language_ongoing.1300 # You pick up some language tips while traveling - } -} - diff --git a/common/on_action/schemes/murder_on_actions.txt b/common/on_action/schemes/murder_on_actions.txt index 699aa1c796..cca8229f5a 100644 --- a/common/on_action/schemes/murder_on_actions.txt +++ b/common/on_action/schemes/murder_on_actions.txt @@ -354,5 +354,14 @@ murder_ongoing = { 100 = intrigue_scheme_lifestyle.3201 # Intercept communication 100 = intrigue_scheme_lifestyle.3301 # Possible to gain hook - ends the scheme 100 = intrigue_scheme_lifestyle.3401 # Convince courtier at target's court to inform on them + + ####Unique Assassination Ongoing Events##### + 100 = assassination_ongoing.0001 #Secret symphatizer! + 100 = assassination_ongoing.0002 #Recruiting fanatics + 100 = assassination_ongoing.0003 #Bribing courtiers + 100 = assassination_ongoing.0004 #Your master assassin fears death + 100 = assassination_ongoing.0005 #Making a poisoned blade + 100 = assassination_ongoing.0006 #A junior assassin faltered + 250 = assassination_ongoing.0007 #target is a paragon, assassin has doubts - least likely to trigger, so likelihood set to high } } diff --git a/common/on_action/schemes/seduce_on_actions.txt b/common/on_action/schemes/seduce_on_actions.txt deleted file mode 100644 index 63d2a882aa..0000000000 --- a/common/on_action/schemes/seduce_on_actions.txt +++ /dev/null @@ -1,113 +0,0 @@ - -########################### -# ONGOING EVENTS -########################### - -seduce_ongoing_milestone_1 = { - trigger = { - exists = scope:scheme - } - random_events = { # Any added events must set and remove scheme_event_active_flag to prevent simultaneous firing in MP - 25 = seduce_ongoing.1101 #Send an expensive gift - 25 = seduce_ongoing.1102 #Send a handmade gift - 25 = seduce_ongoing.1103 #Send a small gift - 25 = seduce_ongoing.1104 #Send a special gift - 100 = seduce_ongoing.1801 #Give a compliment - 100 = seduce_ongoing.3001 #Do something for someone close to target - 100 = seduce_ongoing.4001 #A Troubadour at Target's Court - 100 = seduce_ongoing.5201 #Seducing a friend - 100 = seduce_ongoing.5301 #Seducing close family - A Moment Alone - 100 = seduce_ongoing.6041 #Spy on their preferences - 100 = seduce_ongoing.7001 #Target is shy - 100 = bp2_yearly.8080 #You have a ward - - #Apply scheme modifiers from saved variables - 1000 = personal_scheme_ongoing.1000 #Apply exotic wares modifier you procured while on a pilgrimage - } -} - -seduce_ongoing_milestone_2 = { - trigger = { - exists = scope:scheme - } - random_events = { # Any added events must set and remove scheme_event_active_flag to prevent simultaneous firing in MP - ## Estimating Target's Preference - 100 = seduce_ongoing.1001 #A Dance - 100 = seduce_ongoing.1601 #Book Reading - 100 = seduce_ongoing.1701 #Jousting Day - ## Owner Skill and Target Preference - 100 = seduce_ongoing.2001 #Love Potion - ## Risk-based Opportunities - 100 = seduce_ongoing.4011 #A Walk in Town - 100 = seduce_ongoing.4101 #Below their balcony - ## Relation-based Events - 100 = seduce_ongoing.5001 #Seducing a rival - 100 = seduce_ongoing.5011 #Both wrathful - 100 = seduce_ongoing.5101 #Seducing a vassal - ## Skill-unlocked events - 100 = seduce_ongoing.6001 #Talk to a foreign courtier target to "understand their liege" - 100 = seduce_ongoing.6011 #Military drill show-off - 100 = seduce_ongoing.6021 #Discuss tactics - 100 = seduce_ongoing.6031 #Both have high intrigue - 100 = seduce_ongoing.6051 #Both Diplomatic: Intense exchanges of diplomatic courtesy - } -} - - - -#################################################################### -# OUTCOME ON ACTIONS -#################################################################### - -############################ -# Fire Success event -############################ - -seduce_success = { - first_valid = { - seduce_outcome.2000 # Bedded the Pope! - seduce_outcome.2307 # Seduce rival/someone you dislike a lot - seduce_outcome.2308 # Seduce close family member - seduce_outcome.2306 # Spouse seduction - } - fallback = seduce_generic_success - effect = { - root = { - add_achievement_variable_effect = { - VARIABLE = achievement_seductive_variable - VALUE = 1 - } - } - } -} - -seduce_generic_success = { - random_events = { - 150 = seduce_outcome.2010 # Both Drunkards - 100 = seduce_outcome.2020 # In the privy - 150 = seduce_outcome.2030 # Both Gluttonous - 100 = seduce_outcome.2040 # At the walls - 150 = seduce_outcome.2050 # Both chaste, at least one married - 100 = seduce_outcome.2301 # Go to the target's chambers - 150 = seduce_outcome.2302 # Sneak into target's court (long distance) - 150 = seduce_outcome.2303 # Gregarious target(and owner), gushing compliments - 150 = seduce_outcome.2304 # Meet under the open sky (for hunters etc.) - 100 = seduce_outcome.2305 # Love letter - 100 = seduce_outcome.2309 # Sex scene is generated - } -} - - -############################ -# Fire Failure event -############################ -seduce_failure = { - random_events = { - 100 = seduce_outcome.4001 # Standard rejection event, no discovery (kind rejection) - 100 = seduce_outcome.4005 # Standard discovered failure event - 100 = seduce_outcome.4002 # Hard reject (Disabled by Graceful Recovery) - 50 = seduce_outcome.4003 # Hard reject & reveal (Disabled by Graceful Recovery) - 100 = seduce_outcome.4004 # Taboo (incest/sodomy) - 100 = seduce_outcome.4100 # Flirtatious rejection, no discovery - } -} diff --git a/common/on_action/schemes/steal_back_artifact_on_actions.txt b/common/on_action/schemes/steal_back_artifact_on_actions.txt deleted file mode 100644 index fb7785b86b..0000000000 --- a/common/on_action/schemes/steal_back_artifact_on_actions.txt +++ /dev/null @@ -1,28 +0,0 @@ -steal_back_artifact_success = { - random_events = { - 100 = steal_back_artifact_outcome.1001 # Standard Event: Success - } -} - -steal_back_artifact_failure = { - random_events = { - 100 = steal_back_artifact_outcome.2001 # Standard Event: Failure - } -} - -steal_back_artifact_ongoing = { - trigger = { - is_travelling = no - } - random_events = { - 100 = 0 - - # Bribe someone who knows the target to distract them. A lover, friend, or potential person of interest - # Forge a fake artefact to buy more time before the target realizes that the artefact is missing - - 2 = steal_back_artifact_ongoing.1001 # Bribing the antiquarian to purposefully lower security - 2 = steal_back_artifact_ongoing.1002 # Micro management - 2 = intrigue_scheme_ongoing.1001 # generic intrigue bribe - } -} - diff --git a/common/on_action/schemes/sway_on_actions.txt b/common/on_action/schemes/sway_on_actions.txt index 140c623f78..b3f9e249a7 100644 --- a/common/on_action/schemes/sway_on_actions.txt +++ b/common/on_action/schemes/sway_on_actions.txt @@ -4,6 +4,7 @@ 2 = sway_outcome.1001 #Diplomacy duel for more opinion 2 = sway_outcome.1002 #Learning duel for more opinion 2 = sway_outcome.1003 #They're warming up to me, can I take it further? + #50 = sway_outcome.1004 #Only triggered from the Persian Struggle } } diff --git a/common/on_action/secret_on_actions.txt b/common/on_action/secret_on_actions.txt deleted file mode 100644 index d3805abe31..0000000000 --- a/common/on_action/secret_on_actions.txt +++ /dev/null @@ -1 +0,0 @@ -#On actions handling secret events diff --git a/common/on_action/story_cycles/story_cycle_cat_on_actions.txt b/common/on_action/story_cycles/story_cycle_cat_on_actions.txt deleted file mode 100644 index 0f1afd61ae..0000000000 --- a/common/on_action/story_cycles/story_cycle_cat_on_actions.txt +++ /dev/null @@ -1,34 +0,0 @@ -#On actions handling the Cat Story Cycle - -ongoing_cat_events = { - trigger = { - is_imprisoned = no - } - random_events = { - 50 = pet_animal.0101 #Random encounter, get some gold - 50 = pet_animal.0103 #Your cat charms a vassal - 50 = pet_animal.0104 #Chill with your cat and lose stress - 5 = pet_animal.0105 #Your cat exposes a courtier's/vassal's secret - 50 = pet_animal.6055 # Is your spouse is allergic?/Your spouse is allergic! - 50 = pet_animal.0109 #Your cat kills rodents - 50 = pet_animal.0110 #Your cat insults a vassal - - 50 = pet_animal.2001 #You have both a dog AND a cat - 50 = pet_animal.2002 #You have both a dog AND a cat. Things don't really work out - - 50 = pet_animal.0200 #Your cat falls off a desk - 50 = pet_animal.0201 #Your cat knocks something off a shelf - 50 = pet_animal.0202 #Your cat interrupts some coitus - 50 = pet_animal.0203 #Your cat loves a random courtier - 50 = pet_animal.0204 #Your cat makes you feel better when you're sick - 50 = pet_animal.0205 #Your cat keeps interrupting you - } -} - - -story_cycle_cat_pet_decision_on_actions = { - random_events = { - 50 = pet_animal.6051 #You pet your cat - 50 = pet_animal.6052 #You pet your cat v.2 - } -} diff --git a/common/on_action/story_cycles/story_cycle_dog_on_actions.txt b/common/on_action/story_cycles/story_cycle_dog_on_actions.txt deleted file mode 100644 index 026bb7e5cc..0000000000 --- a/common/on_action/story_cycles/story_cycle_dog_on_actions.txt +++ /dev/null @@ -1,30 +0,0 @@ -#On actions handling the Dog Story Cycle - -ongoing_dog_events = { - trigger = { - is_landed = yes - is_imprisoned = no - } - random_events = { - 50 = pet_animal.1101 #Walk you dog, get health modifier - 50 = pet_animal.1102 #Dog runs away! - 50 = pet_animal.1107 #Your dog charms a vassal - 5 = pet_animal.1108 #Your dog exposes a scheme targeting you - 50 = pet_animal.1109 #Meet another dog! - 50 = pet_animal.1113 #Bring your dog to a council meeting? - 50 = pet_animal.1118 #Your dog insults a vassal - - 50 = pet_animal.2001 #You have both a dog AND a cat - 50 = pet_animal.2002 #You have both a dog AND a cat. Things don't really work out - } -} - - -story_cycle_dog_pet_decision_on_actions = { - random_events = { - 50 = pet_animal.6001 #You pet your dog - 50 = pet_animal.6002 #You pet your dog v.2 - 1 = pet_animal.6003 #Your dog finds a claim :O - 1 = pet_animal.6004 #Your dog lashes out D: - } -} \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_doppelganger_on_actions.txt b/common/on_action/story_cycles/story_cycle_doppelganger_on_actions.txt deleted file mode 100644 index c161a75f32..0000000000 --- a/common/on_action/story_cycles/story_cycle_doppelganger_on_actions.txt +++ /dev/null @@ -1,14 +0,0 @@ -#On actions handling the Doppelganger Cycle - -ongoing_doppelganger_events = { - trigger = { - is_imprisoned = no - } - random_events = { - 50 = bp1_yearly.9008 # Your Doppelganger wants a life swap - 50 = bp1_yearly.9009 # Your Doppelganger sleeps with your lover - 50 = bp1_yearly.9010 # Your Doppelganger claims to be the real you - 50 = bp1_yearly.9014 # You fall in love with your Doppelganger - 10 = bp1_yearly.9015 # You turn out to be long lost twins - } -} diff --git a/common/on_action/story_cycles/story_cycle_house_feud_on_actions.txt b/common/on_action/story_cycles/story_cycle_house_feud_on_actions.txt deleted file mode 100644 index 7c47bd9767..0000000000 --- a/common/on_action/story_cycles/story_cycle_house_feud_on_actions.txt +++ /dev/null @@ -1,36 +0,0 @@ -#On actions handling the Family Feud Story Cycle - -ongoing_house_feud_events = { - trigger = { - #DLC check - has_bp1_dlc_trigger = yes - #Standard checks - is_available_adult = yes - } - random_events = { - 50 = bp1_house_feud.0100 # jealous of higher rank - 50 = bp1_house_feud.0110 # scorning lower rank - 50 = bp1_house_feud.0200 # feud house has killed more members than we have - 50 = bp1_house_feud.0210 # losing, end it? - 50 = bp1_house_feud.0220 # winning, end it? - 25 = bp1_house_feud.0300 # end long running feud? - 50 = bp1_house_feud.0410 # friendly house members pleading to stop feud - 25 = bp1_house_feud.0420 # liege tries to stop feud betwen vassals - } -} - -house_feud_inheritance_events = { - random_events = { - chance_to_happen = 25 - 100 = bp1_house_feud.9001 # 0009 setup - 100 = bp1_house_feud.9002 # 0004 setup - } -} - -house_feud_ai_scheme_pulse = { - random_events = { - 600 = bp1_house_feud.9500 # Join existing murder - 100 = bp1_house_feud.9501 # Start murder - 100 = bp1_house_feud.9502 # Start cuckoldry - } -} diff --git a/common/on_action/story_cycles/story_cycle_hunt_mystical_animal_on_actions.txt b/common/on_action/story_cycles/story_cycle_hunt_mystical_animal_on_actions.txt deleted file mode 100644 index 0c1e419150..0000000000 --- a/common/on_action/story_cycles/story_cycle_hunt_mystical_animal_on_actions.txt +++ /dev/null @@ -1,15 +0,0 @@ -#On actions handling the Cat Story Cycle - -ongoing_hunt_mystical_animal_events = { - random_events = { - 50 = hunt_mystical_animal.1001 #You dream about the animal - 100 = hunt_mystical_animal.1002 #You see the animal - 50 = hunt_mystical_animal.1003 #Send people to look for the animal? - 20 = hunt_mystical_animal.1004 #Someone has seen the animal! - 10 = hunt_mystical_animal.1006 #You lose your mind - 50 = hunt_mystical_animal.1008 #Ask peasants to look for it - 50 = hunt_mystical_animal.1009 #Your court chaplain is worried - 1 = hunt_mystical_animal.9002 #Someone else got it (fallback event for if it's been going on for too long) - 50 = hunt.8540 # You wake up in your hunting lodge and see an omen - } -} diff --git a/common/on_action/story_cycles/story_cycle_murders_at_court_on_actions.txt b/common/on_action/story_cycles/story_cycle_murders_at_court_on_actions.txt deleted file mode 100644 index ce1c93c948..0000000000 --- a/common/on_action/story_cycles/story_cycle_murders_at_court_on_actions.txt +++ /dev/null @@ -1,27 +0,0 @@ -#On actions handling the murders at court Story Cycle - - -murders_at_court_events = { - random_events = { - 100 = murders_at_court.1001 #Pieces of a body found - 100 = murders_at_court.1002 #Another body found - 100 = murders_at_court.1003 #Spouse is found dead - 50 = murders_at_court.1004 #Child is found dead - 100 = murders_at_court.2001 #An important courtier is found dead - 100 = murders_at_court.2002 #Your heir is found dead - 100 = murders_at_court.2003 #You got your calloused ass killed - - 100 = murders_at_court.2101 #Someone in line of succession is killed - murderer is your heir - 100 = murders_at_court.2201 #A body without eyes is found - murderer is a witch - - 100 = murders_at_court.5001 #Watson comes by your court - } -} - -#You're finally resolving this! -murders_at_court_confrontation = { - random_events = { - 100 = murders_at_court.9001 #Confrontation event - 100 = murders_at_court.9004 #You catch them in the act! - } -} diff --git a/common/on_action/story_cycles/story_cycle_party_baron_on_actions.txt b/common/on_action/story_cycles/story_cycle_party_baron_on_actions.txt deleted file mode 100644 index 1a50dcdac5..0000000000 --- a/common/on_action/story_cycles/story_cycle_party_baron_on_actions.txt +++ /dev/null @@ -1,19 +0,0 @@ -#On actions handling the peasant affair Story Cycle - -party_baron_events = { - random_events = { - chance_to_happen = 70 - 100 = party_baron.2001 # Party Baron speaks to a Powerful Vassal - 100 = party_baron.2002 # Party Baron helps you befriend a friend of theirs - 100 = party_baron.2003 # Party Baron stops a Murder Scheme against you - 200 = party_baron.2004 # Party Baron becomes your Friend - 200 = party_baron.2005 # Party Baron becomes your Best Friend - 300 = party_baron.2006 # What a party - 300 = party_baron.2007 # Party Baron shows up with volunteers while at war - - 200 = party_baron.3001 # Why does everyone love Party Baron so much?? - 200 = party_baron.3002 # Vassals dislike how much you dislike Party Baron - 100 = party_baron.3003 # Party Baron befriends you despite everything - 200 = party_baron.3004 # You need to do something about the Party Baron - } -} \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_peasant_affair_on_actions.txt b/common/on_action/story_cycles/story_cycle_peasant_affair_on_actions.txt deleted file mode 100644 index 284efe62b3..0000000000 --- a/common/on_action/story_cycles/story_cycle_peasant_affair_on_actions.txt +++ /dev/null @@ -1,25 +0,0 @@ -#On actions handling the peasant affair Story Cycle - -peasant_affair_shows_up_at_court = { - random_events = { - 100 = peasant_affair.1001 - } -} - -peasant_affair_looking_for_peasant = { - first_valid = { - peasant_affair.2001 - peasant_affair.2002 - } -} - -peasant_affair_peasant_at_court = { - random_events = { - chance_to_happen = 25 - 500 = 0 - 100 = peasant_affair.3001 #Peasant mother wants you to acknowledge the child as yours - 100 = peasant_affair.3002 #Peasant Father wants you to acknowledge the child as his - 100 = peasant_affair.3003 #Peasant wants to become your Lover - 100 = peasant_affair.3004 #Peasant wants to marry you - } -} \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_statecraft_lifestyle_respected_liege_on_actions.txt b/common/on_action/story_cycles/story_cycle_statecraft_lifestyle_respected_liege_on_actions.txt deleted file mode 100644 index 775e51a731..0000000000 --- a/common/on_action/story_cycles/story_cycle_statecraft_lifestyle_respected_liege_on_actions.txt +++ /dev/null @@ -1,5 +0,0 @@ -#On actions handling the Respected Liege story cycle - -ongoing_respected_liege_events = { - -} \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_sycophant_on_actions.txt b/common/on_action/story_cycles/story_cycle_sycophant_on_actions.txt deleted file mode 100644 index cebfb466cf..0000000000 --- a/common/on_action/story_cycles/story_cycle_sycophant_on_actions.txt +++ /dev/null @@ -1,17 +0,0 @@ -#On actions handling the Sycophant Cycle - -ongoing_sycophant_events = { - random_events = { - 50 = bp1_yearly.8110 # Sycophant's secret - 25 = bp1_yearly.8120 # Sycophant's allure - 50 = bp1_yearly.8130 # Sycophant's enemies - 25 = bp1_yearly.8140 # Sycophant's revenge - 50 = bp1_yearly.8160 # Sycophant's joke - 50 = bp1_yearly.8170 # Sycophant's friend - 25 = bp1_yearly.8180 # Sycophant's ultimatum - 50 = bp1_yearly.8190 # Sycophant's talents - 50 = bp1_yearly.8191 # Sycophant's rewards - 50 = bp1_yearly.8192 # Sycophant's mistakes - } -} - diff --git a/common/on_action/story_cycles/story_cycle_turkic_tribe_on_actions.txt b/common/on_action/story_cycles/story_cycle_turkic_tribe_on_actions.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/on_action/story_cycles/story_cycle_turkic_tribe_on_actions.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_unity_decisions_on_actions.txt b/common/on_action/story_cycles/story_cycle_unity_decisions_on_actions.txt new file mode 100644 index 0000000000..6d7c5310db --- /dev/null +++ b/common/on_action/story_cycles/story_cycle_unity_decisions_on_actions.txt @@ -0,0 +1,8 @@ +ongoing_madrasas_events = { + random_events = { + 100 = 0 + # These probabilities might seem low, but keep in mind that they increase depending on the # of madrasa pupils you have + 30 = fp3_yearly.2061 + 20 = fp3_yearly.2062 + } +} \ No newline at end of file diff --git a/common/on_action/story_cycles/story_cycle_visited_by_ghosts_on_actions.txt b/common/on_action/story_cycles/story_cycle_visited_by_ghosts_on_actions.txt deleted file mode 100644 index b510fba62c..0000000000 --- a/common/on_action/story_cycles/story_cycle_visited_by_ghosts_on_actions.txt +++ /dev/null @@ -1,16 +0,0 @@ -#On actions handling the ghost Cycle - -ongoing_visited_by_ghosts_events = { - trigger = { - is_imprisoned = no - } - random_events = { - 50 = bp1_yearly.9027 # first act of repentance: charity - 50 = bp1_yearly.9028 # Second ghost visits: rival - 50 = bp1_yearly.9029 # Second ghost visits: parent - 50 = bp1_yearly.9030 # Second ghost visits: first ghost again - 50 = bp1_yearly.9031 # Making ammends with rival's family - 50 = bp1_yearly.9032 # Making ammends with rival to please parents - 50 = bp1_yearly.9033 # Ending event - } -} diff --git a/common/on_action/story_cycles/story_cycle_warhorse_on_actions.txt b/common/on_action/story_cycles/story_cycle_warhorse_on_actions.txt deleted file mode 100644 index b9931349f0..0000000000 --- a/common/on_action/story_cycles/story_cycle_warhorse_on_actions.txt +++ /dev/null @@ -1,17 +0,0 @@ -#On actions handling the Warhorse Story Cycle - -ongoing_warhorse_events = { #Other ongoing events - random_events = { - 100 = warhorse.1001 #Buy new gear for your horse - 100 = warhorse.1101 #Stress reduction or prowess - 100 = warhorse.1201 #Your horse is sick! Pay gold or risk its death - 100 = warhorse.1301 #Another horse-enthusiast compliments your horse - 100 = warhorse.1401 #Your horse is cursed - } -} - -breed_warhorse = { - random_events = { - 100 = warhorse.8001 #You horse is getting old, you should consider breeding! - } -} diff --git a/common/on_action/stress_coping_decisions_on_actions.txt b/common/on_action/stress_coping_decisions_on_actions.txt deleted file mode 100644 index ba5acd9697..0000000000 --- a/common/on_action/stress_coping_decisions_on_actions.txt +++ /dev/null @@ -1,94 +0,0 @@ -#Response events to stress coping decisions that lets you lose stress - -stress_loss_drunkard = { - random_events = { - 100 = stress_trait_coping_decisions.1001 - 10 = stress_trait_coping_decisions.1002 - 5 = stress_trait_coping_decisions.1004 - } -} - -stress_loss_hashishiyah = { - random_events = { - 100 = stress_trait_coping_decisions.1501 - } -} - -stress_loss_rakish = { - random_events = { - 100 = stress_trait_coping_decisions.2001 - 5 = stress_trait_coping_decisions.2002 - } -} - -stress_loss_reclusive = { - random_events = { - 100 = stress_trait_coping_decisions.2501 - } -} - -stress_loss_irritable = { - random_events = { - 100 = stress_trait_coping_decisions.3001 - } -} - -stress_loss_flagellant = { - random_events = { - 100 = stress_trait_coping_decisions.3501 - } -} - -stress_loss_profligate = { - random_events = { - 100 = stress_trait_coping_decisions.4001 - } -} - -stress_loss_improvident = { - random_events = { - 100 = stress_trait_coping_decisions.4501 - } -} - -stress_loss_contrite = { - random_events = { - 100 = stress_trait_coping_decisions.5001 - 10 = stress_trait_coping_decisions.5002 - } -} - -stress_loss_comfort_eater = { - random_events = { - 100 = stress_trait_coping_decisions.5501 - 10 = stress_trait_coping_decisions.5502 - } -} - -stress_loss_inappetetic = { - random_events = { - 100 = stress_trait_coping_decisions.6001 - } -} - -stress_loss_journaller = { - random_events = { - 100 = stress_trait_coping_decisions.6501 - } -} - -stress_loss_confider = { - random_events = { - 100 = stress_trait_coping_decisions.7001 - 100 = stress_trait_coping_decisions.7002 - } -} - -stress_loss_athletic = { - random_events = { - 100 = stress_trait_coping_decisions.7501 #default - 100 = stress_trait_coping_decisions.7502 #heavier is more - 100 = stress_trait_coping_decisions.7503 #friendly competition - 100 = stress_trait_coping_decisions.7504 #exercise companion - } -} diff --git a/common/on_action/struggle_on_actions.txt b/common/on_action/struggle_on_actions.txt index f10fb94f61..ebe2e5e2d0 100644 --- a/common/on_action/struggle_on_actions.txt +++ b/common/on_action/struggle_on_actions.txt @@ -4,32 +4,8 @@ yearly_struggle_playable_pulse = {} # root: is involved (or interloper) character # Scope:struggle is the currently pulsing struggle. -# Warcraft -five_year_struggle_playable_pulse = { -# random_events = { -# chance_to_happen = 95 -# 1 = 0 -# -# 80 = fp2_struggle.1000 #Stoking the Fire -# 50 = fp2_struggle.1001 #War Widows -# 50 = fp2_struggle.1010 #Soul of Iron -# 45 = fp2_struggle.1020 #Death of a Councilman -# 70 = fp2_struggle.2001 -# 80 = fp2_struggle.2003 -# 25 = fp2_struggle.2004 # The weights inside this event are a bit high, but since the event is struggle-exclusive it will probably not be an issue -# 70 = fp2_struggle.2006 -# 70 = fp2_struggle.2007 -# 5 = fp2_struggle.2009 -# 90 = fp2_struggle.3001 # Not particularly struggle related, but making it only appear during the struggle makes it more unique and special -# 50 = fp2_struggle.3011 -# 25 = fp2_struggle.3021 # Usually the lower chance is because the effects are too great, in this case it is to ensure people don't think every other iberian had discovered han powder. -# } -} -# -#fp2_iberian_struggle_starting_events = { -# events = { -# neutral_struggle.0001 -# fp2_struggle.0003 -# } -#} -# End of Warcraft +five_year_struggle_playable_pulse = {} + +#fp2_iberian_struggle_random_events + +#fp2_iberian_struggle_starting_events diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index a1317a2ffb..63b69f75b9 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -228,12 +228,6 @@ on_title_gain = { } } - # Am I The Chad? - #if = { - # limit = { root = character:easteregg_chad_uhl } - # set_house = house:house_chad_uhl - #} - # Memories # Ascended to the throne if = { @@ -407,11 +401,7 @@ on_title_lost = { is_landed = no any_concubine = { count >= 1 } } - every_concubine = { - root = { - remove_concubine = prev - } - } + every_concubine = { root = { remove_concubine = prev } } } #Apply loss of stress to the Rivals @@ -443,7 +433,7 @@ on_title_lost = { custom_tooltip = msg_rival_dethroned_desc - stress_impact = { + stress_impact = { base = medium_stress_loss vengeful = medium_stress_loss } @@ -616,3 +606,150 @@ on_baron_found_or_created_for_title = { } } } + +# Called when realm capital changes. It can be manual move, loss in conquest, move after inheritance, +# move when granted a better title, becoming landed for the first time +# root: New realm capital barony +# scope:old_capital - previous capital barony. Can be empty, can be owned by someone else +on_realm_capital_change = { + effect = { + holder = { + # Do we need to refresh their vizier's modifiers? + if = { + limit = { has_diarchy_parameter = diarchy_is_vizierate } + diarch = { + # What we're doing here is regenerating loc on the diarchs that might refer to a specific place which they no longer have access to. + ## This is gonna get real gross, folks, so my apologies. + if = { + limit = { has_character_modifier = vizier_extravagance_t1_treasure_modifier } + remove_character_modifier = vizier_extravagance_t1_treasure_modifier + add_character_modifier = { + modifier = vizier_extravagance_t1_treasure_modifier + desc = vizier_extravagance_t1_treasure_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_activities_modifier } + remove_character_modifier = vizier_extravagance_t1_activities_modifier + add_character_modifier = { + modifier = vizier_extravagance_t1_activities_modifier + desc = vizier_extravagance_t1_activities_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_property_modifier } + remove_character_modifier = vizier_extravagance_t1_property_modifier + add_character_modifier = { + modifier = vizier_extravagance_t1_property_modifier + desc = vizier_extravagance_t1_property_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_charity_modifier } + remove_character_modifier = vizier_extravagance_t1_charity_modifier + add_character_modifier = { + modifier = vizier_extravagance_t1_charity_modifier + desc = vizier_extravagance_t1_charity_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_treasure_modifier } + remove_character_modifier = vizier_extravagance_t2_treasure_modifier + add_character_modifier = { + modifier = vizier_extravagance_t2_treasure_modifier + desc = vizier_extravagance_t2_treasure_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_activities_modifier } + remove_character_modifier = vizier_extravagance_t2_activities_modifier + add_character_modifier = { + modifier = vizier_extravagance_t2_activities_modifier + desc = vizier_extravagance_t2_activities_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_property_modifier } + remove_character_modifier = vizier_extravagance_t2_property_modifier + add_character_modifier = { + modifier = vizier_extravagance_t2_property_modifier + desc = vizier_extravagance_t2_property_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_charity_modifier } + remove_character_modifier = vizier_extravagance_t2_charity_modifier + add_character_modifier = { + modifier = vizier_extravagance_t2_charity_modifier + desc = vizier_extravagance_t2_charity_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_treasure_modifier } + remove_character_modifier = vizier_extravagance_t3_treasure_modifier + add_character_modifier = { + modifier = vizier_extravagance_t3_treasure_modifier + desc = vizier_extravagance_t3_treasure_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_activities_modifier } + remove_character_modifier = vizier_extravagance_t3_activities_modifier + add_character_modifier = { + modifier = vizier_extravagance_t3_activities_modifier + desc = vizier_extravagance_t3_activities_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_property_modifier } + remove_character_modifier = vizier_extravagance_t3_property_modifier + add_character_modifier = { + modifier = vizier_extravagance_t3_property_modifier + desc = vizier_extravagance_t3_property_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_charity_modifier } + remove_character_modifier = vizier_extravagance_t3_charity_modifier + add_character_modifier = { + modifier = vizier_extravagance_t3_charity_modifier + desc = vizier_extravagance_t3_charity_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_treasure_modifier } + remove_character_modifier = vizier_extravagance_t4_treasure_modifier + add_character_modifier = { + modifier = vizier_extravagance_t4_treasure_modifier + desc = vizier_extravagance_t4_treasure_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_activities_modifier } + remove_character_modifier = vizier_extravagance_t4_activities_modifier + add_character_modifier = { + modifier = vizier_extravagance_t4_activities_modifier + desc = vizier_extravagance_t4_activities_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_property_modifier } + remove_character_modifier = vizier_extravagance_t4_property_modifier + add_character_modifier = { + modifier = vizier_extravagance_t4_property_modifier + desc = vizier_extravagance_t4_property_modifier_custom_desc.on_action + } + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_charity_modifier } + remove_character_modifier = vizier_extravagance_t4_charity_modifier + add_character_modifier = { + modifier = vizier_extravagance_t4_charity_modifier + desc = vizier_extravagance_t4_charity_modifier_custom_desc.on_action + } + } + } + } + } + } +} diff --git a/common/on_action/traits_on_actions.txt b/common/on_action/traits_on_actions.txt deleted file mode 100644 index 72f41c98a9..0000000000 --- a/common/on_action/traits_on_actions.txt +++ /dev/null @@ -1,56 +0,0 @@ -#Trait specific events triggered from "random_yearly_playable_pulse" - - - -#Going to a new stress level will fire this. -assign_trait_events = { - on_actions = { - assign_trait_on_action - assign_trait_ai_on_action - } -} - - -#A simpler system is used for ai to randomly seed the traits -assign_trait_ai_on_action = { - trigger = { - is_ai = yes - is_adult = yes - } - random_events = { - 5000 = 0 - 100 = trait_specific.0001 - } -} - -#Assignment of special traits -assign_trait_on_action = { - trigger = { - is_ai = no - is_travelling = no - } - random_events = { - 5000 = 0 - #lunatic - 50 = trait_specific.1001 #You start experiencing symptoms (hallucinations) - 50 = trait_specific.1002 #You start experiencing symptoms (disorganized thoughts) - #possessed - 100 = trait_specific.2001 #Start experiencing symptoms (fear, visual distortions, seizure) - #depressed - 100 = trait_specific.3001 #You start to experience symptoms (tiredness, feeling "empty") - #witch - 100 = trait_specific.4001 #You find an old tome - #cannibal - 50 = trait_specific.5001 #You crave rare and exotic meat - 50 = trait_specific.5003 #You are put in an extreme situation - #deviant - 50 = trait_specific.6001 #You discover some books that in turn makes you discover something about yourself - 50 = trait_specific.6002 #Your deviant lover introduces you to some freaky stuff - #drunkard - 100 = trait_specific.7001 #Find solace in drink - #herbalist - 100 = trait_specific.8001 #A merchant sends you some seeds - #poet - 50 = trait_specific.9001 # You spend an evening musing over (bad) rhymes. - } -} diff --git a/common/on_action/travel_on_actions.txt b/common/on_action/travel_on_actions.txt index 30934c4d8d..ad16f2fa15 100644 --- a/common/on_action/travel_on_actions.txt +++ b/common/on_action/travel_on_actions.txt @@ -317,6 +317,15 @@ travel_events_on_action = { #Mystical animal story 300 = hunt_mystical_animal.1002 + + #FP3 Travelling through foreign faith land: + 300 = travel_events_fp3.0010 #Dying Embers + 300 = travel_events_fp3.0030 #A Feast for Falcons + #200 = fp3_scholarship.1010 # The Last Magi + #FP3 Travel Events + 150 = travel_events_fp3.0020 #Qanat Diving + #200 = travel_events_fp3.0040 #Mare's Milk + 150 = travel_events_fp3.0050 #Tomb Raiders } } diff --git a/common/on_action/war_on_actions.txt b/common/on_action/war_on_actions.txt index b0418ac859..bb48dfc4fb 100644 --- a/common/on_action/war_on_actions.txt +++ b/common/on_action/war_on_actions.txt @@ -467,7 +467,7 @@ on_war_started = { # same scopes are available in these events as in the CBs themselves, this just fires for all CBs instead of a specific CB. # note that any events/effects fired here WILL NOT show up in the war summary tooltip; they fire at the same time as the war resolution, but are not actually part of the war resolution itself. -on_war_won_attacker = { +on_war_won_attacker = { # As in, won BY attacker. Only one of the two on_actions runs when a war ends. # The war notifications are handled in `effect` instead of `events` due to order of operations. # `effect` fires on THIS tick, `events` fires on the NEXT tick, and the war gets destroyed between this tick and the next. effect = { @@ -523,33 +523,10 @@ on_war_won_attacker = { # Warcraft # Struggle Catalysts - #scope:attacker = { - # if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_win_any_war_within_the_region - # CHAR = scope:defender - # } - # } - # } - # every_character_struggle = { - # limit = { - # activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - # CATALYST = catalyst_win_any_war_within_the_region - # CHAR = scope:defender - # } - # } - # activate_struggle_catalyst = { - # catalyst = catalyst_win_any_war_within_the_region - # character = scope:attacker - # } - # } - # } - #} # End of Warcraft + + # Memories scope:attacker = { create_character_memory = { type = war_won @@ -565,7 +542,6 @@ on_war_won_attacker = { OTHER = defender } } - scope:defender = { create_character_memory = { type = war_lost @@ -644,6 +620,7 @@ on_war_won_defender = { loser = scope:attacker } } + set_war_over_memory_casus_belli_effect = { STANCE = offensive OUTCOME = lost diff --git a/common/on_action/witch_on_actions.txt b/common/on_action/witch_on_actions.txt deleted file mode 100644 index 480536720c..0000000000 --- a/common/on_action/witch_on_actions.txt +++ /dev/null @@ -1,25 +0,0 @@ - -#################################################################### -# WITCH RITUAL ON_ACTIONS -#################################################################### - - - - -#################################################################### -# CONVERT TO WITCHCRAFT ON_ACTIONS -#################################################################### - -#Success is just one event - -convert_to_witchcraft_failure_outcome = { - trigger = { - exists = scope:scheme - } - - random_events = { - 4 = witch.2004 - 1 = witch.2005 - } -} - diff --git a/common/on_action/yearly_groups_on_actions.txt b/common/on_action/yearly_groups_on_actions.txt index 02e50f9d57..0d120dc35a 100644 --- a/common/on_action/yearly_groups_on_actions.txt +++ b/common/on_action/yearly_groups_on_actions.txt @@ -20,7 +20,10 @@ } modifier = { # Reduces frequency for having both sets of FP events valid factor = 0.5 - fp2_character_involved_in_struggle_trigger = yes + OR = { + fp2_eligible_for_yearly_events_trigger = yes + fp3_eligible_for_yearly_events_trigger = yes + } } } @@ -96,86 +99,7 @@ } # Warcraft - Need adaptation -#fp2_yearly_events = { -# trigger = { -# has_fp2_dlc_trigger = yes -# -# any_realm_county = { # Most events are geographical in nature -# any_county_province = { geographical_region = world_europe_west_iberia } -# } -# } -# weight_multiplier = { -# base = 1 -# modifier = { # Reduces frequency for characters with non-matching cultures -# factor = 0.33 -# -# NOT = { -# culture = { has_cultural_pillar = heritage_iberian } -# } -# } -# modifier = { # Reduces chance after recently having had an event from this pulse -# factor = 0.2 -# has_character_flag = recently_got_fp2_event -# } -# modifier = { # Reduces frequency for having both sets of FP events valid -# factor = 0.5 -# fp1_eligible_for_yearly_events_trigger = yes -# } -# } -# -# random_events = { -# 200 = 0 -# -# # FP2 - Fate of Iberia Events -# 160 = fp2_yearly.1001 # Chess Two -# 10 = fp2_yearly.1002 # A Compromising Position -# 160 = fp2_yearly.1003 # Tilting at...Giants? -# 160 = fp2_yearly.1004 # The Hawk of Quarysh -# 160 = fp2_yearly.1005 # Lost Viking -# 80 = fp2_yearly.1006 # Viking Cheese? -# 180 = fp2_yearly.2020 # Horchata colonialism event -# 160 = fp2_yearly.4004 # The Wandering Master -# 160 = fp2_yearly.4005 # Establishing Enclaves -# 160 = fp2_yearly.4006 # God's Architect -# 160 = fp2_yearly.8000 # Burning the Vineyards -# 180 = fp2_yearly.8001 # Assembling the Cortes -# 160 = fp2_yearly.8002 # A Dietary Dilemma -# 160 = fp2_yearly.8003 # Flight of Fancy -# 160 = fp2_yearly.8004 # The Toledo School of Translation -# 160 = fp2_yearly.8005 # Under the Stone Pine -# 160 = fp2_yearly.8006 # Saqaliba Settlers -# 180 = fp2_struggle.1002 # Xenophilic Advancment -# 160 = fp2_struggle.1050 # Dreams of Destruction -# 150 = fp2_struggle.2000 # Disorderly Market -# 140 = fp2_struggle.2008 # Misdeeds of the Councillor -# 350 = fp2_struggle.2013 # The Secret to Freedom -# 130 = fp2_struggle.2015 # Letter on the Back -# 180 = fp2_yearly.2025 # Suffering from Success -# 150 = fp2_yearly.4001 # You fancy a little siesta -# 150 = fp2_yearly.4002 # A county is increasingly religiously intertwined -# 150 = fp2_yearly.4003 # The road to Santiago is under threat from bandits -# 150 = fp2_yearly.4007 # Finding a shell on the road to Santiago -# 150 = fp2_yearly.4008 # Folk stories around the fireside -# 300 = fp2_yearly.4009 # Visiting the Malato Tree -# 150 = fp2_yearly.4010 # Finding a Verraco -# 300 = fp2_yearly.3000 # Neighboring Muslims are growing rice, adopt the practice yourself? -# 100 = bell_special_yearly.1000 # The bell of Huesca yearly -# 150 = fp2_yearly.9000 # Thriving Jewish Community -# 150 = fp2_yearly.9001 # Suspect Conversos of secretly praciticing Judaism -# 150 = fp2_yearly.9002 # Jewish people come fleeing persecution from a nearby realm -# 150 = fp2_yearly.9005 # Toledan Nights -# 50 = fp2_yearly.9006 # Local bishop mad his church faces the wrong way -# } -# -# effect = { -# root = { -# add_character_flag = { -# flag = recently_got_fp2_event -# days = 1095 # 3 years -# } -# } -# } -#} +#fp2_yearly_events # End of Warcraft bp1_yearly_events = { @@ -322,3 +246,107 @@ bp1_yearly_events = { 5 = bp1_house_feud.0012 # Consider starting feud against house who cuckolded you } } + +fp3_yearly_events = { + trigger = { + has_fp3_dlc_trigger = yes + + government_has_flag = government_is_clan + #any_realm_county = { # Most events are geographical in nature + # any_county_province = { geographical_region = world_persian_empire } + #} + } + weight_multiplier = { + base = 0.5 + modifier = { # Reduces chance after recently having had an event from this pulse + factor = 0.2 + has_character_flag = recently_got_fp3_event + } + } + + random_events = { + 200 = 0 + + # Frontier Events + #250 = fp3_yearly.8000 # Ghazi Gone Bad + #250 = fp3_yearly.8001 # Frontier Fortress Benefactor + #250 = fp3_yearly.8002 # Faith at the Frontier + #350 = fp3_yearly.8003 # Exotic Espand + #350 = fp3_yearly.8004 # The Frontier Beckons + #350 = fp3_yearly.8009 # Caliphal Concerns + #250 = fp3_yearly.8010 # Abode of War + #250 = fp3_yearly.8014 # Secrets of the Teapot + #250 = fp3_yearly.8016 # Forgotten Stones & Hyrcanian Havoc + #500 = fp3_yearly.8018 # Heavenly Horses + # + ## The Nomads Story Cycle + #100 = fp3_yearly.8888 #Grazing Grievances + # + ## Heritage Events + #250 = fp3_yearly.8019 # Refuge of Light + #250 = fp3_yearly.8020 # The Lady of the Land + #350 = fp3_yearly.8021 # An Acidic Accident + #500 = fp3_yearly.8024 # The Return to the Sky + #350 = fp3_yearly.8027 # Nine-Hundred Ninety Chapters of Gold + #250 = fp3_yearly.8033 # Frozen Delights + #550 = fp3_yearly.8034 # The Hephthalite Hoard + #250 = fp3_yearly.8035 # The Heart and the Creator + #250 = fp3_yearly.8036 # The City of the Mouthless + #500 = fp3_yearly.8037 # A Cure for Acedia (the Melancholia Chain) + # + ##FP3 - Extra Yearly Events + #150 = fp3_yearly.8045 #The Mysterious Bundle (the Buzina Chain) + # + ## Zoroastrian Events + #200 = fp3_yearly.8050 #The Fate of the Dead + #200 = fp3_yearly.8051 #The Purest Fire + + # Guardianship Events + 200 = childhood.2400 # Ward approaches guardian with theological doubts + + # Clan Events + 250 = fp3_clan.8000 # Usury against Unity + 250 = fp3_clan.8001 # Clan Quarrel + 250 = fp3_clan.8002 # Bonds of Faith + #250 = fp3_clan.8003 # The Power of a Name + 250 = fp3_clan.8004 # Bonds of Fear + 250 = fp3_clan.8005 # A Proper Position + 250 = fp3_clan.8006 # Small Spies + 125 = fp3_clan.3000 # Ravaged Tulips + + # Tax Collector / Clan Events + 250 = fp3_clan.1000 # Worth more than Gold? + 250 = fp3_clan.1010 # GetHerHis Cup Runneth Over + 250 = fp3_clan.1020 # Practical Learning + 250 = fp3_clan.1030 # Tax Dispute + 250 = fp3_clan.1040 # Mismanaged Land + + 250 = fp3_clan.8008 #Bleeding them Dry + 250 = fp3_clan.8009 #Popular with the People + 250 = fp3_clan.8010 #Competent Qadis / More Magistrates + 250 = fp3_clan.8011 #A Proper Paymaster + 250 = fp3_clan.8012 #Auspicious Avarice + 240 = fp3_clan.8013 #The Burden of Tax Farming + 250 = fp3_clan.8015 #Scandalous Scion + 250 = fp3_clan.8016 #Hammam Havoc + #250 = fp3_clan.8017 #A Questionable Position + + # Eren events + #250 = fp3_yearly.2000 # Daylight Censors + #250 = fp3_yearly.2001 # Public Intoxication + 100 = fp3_yearly.2011 # Maunds of Wheat for non-royal court users + #250 = fp3_yearly.2020 # Set the Scale, Vassal Version + #500 = fp3_yearly.2040 # Commander of the Faithful + 500 = false_conversion.2000 # A Moment of Weakness + 250 = fp3_scholarship.1000 # A Second Aryabhata + } + + effect = { + root = { + add_character_flag = { + flag = recently_got_fp3_event + days = 1095 + } + } + } +} diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 08f1897b2a..ba34e28204 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -71,6 +71,121 @@ yearly_playable_pulse = { } assign_court_type_traits_to_courtiers_effect = yes } + + # Yearly house head opinion update: to change into only one log maybe? + if = { + limit = { + government_has_flag = government_is_clan + exists = house + is_house_head = yes + } + save_scope_as = unity_target + if = { + limit = { + OR = { + has_character_flag = steer_unity_towards_harmonious_passive_gain + has_character_flag = steer_unity_towards_antagonistic_passive_loss + } + } + house = { + add_unity_value = { + value = { + if = { + limit = { root = { has_character_flag = steer_unity_towards_harmonious_passive_gain } } + add = medium_unity_gain + } + else = { + add = medium_unity_loss + } + } + character = root + desc = clan_unity_steer_direction_passive_change.desc + } + } + } + else = { + house = { + set_variable = { + name = house_opinion_unity_impact + value = 0 + } + every_house_member = { + limit = { + is_house_head = no + is_adult = yes + } + if = { + limit = { + opinion = { + target = scope:unity_target + value >= low_positive_opinion + } + } + prev = { + change_variable = { + name = house_opinion_unity_impact + add = miniscule_unity_value + } + } + if = { + limit = { + opinion = { + target = scope:unity_target + value >= high_positive_opinion + } + } + prev = { + change_variable = { + name = house_opinion_unity_impact + add = minor_unity_value + } + } + + } + } + else = { + prev = { + change_variable = { + name = house_opinion_unity_impact + subtract = miniscule_unity_value + } + } + + if = { + limit = { + opinion = { + target = scope:unity_target + value <= high_negative_opinion + } + } + prev = { + change_variable = { + name = house_opinion_unity_impact + subtract = minor_unity_value + } + } + } + } + } + if = { + limit = { var:house_opinion_unity_impact != 0 } + add_unity_value = { + value = { + if = { + limit = { var:house_opinion_unity_impact > 0 } + add = minor_unity_gain + } + else = { + add = minor_unity_loss + } + } + character = root + desc = clan_unity_generic_average_yearly_opinion_house_head.desc + } + } + } + } + } } events = { adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise) @@ -325,6 +440,7 @@ random_yearly_playable_pulse = { 6 = on_yearly_events 5 = fp1_yearly_events #4 = fp2_yearly_events + 2 = fp3_yearly_events 2 = bp1_yearly_events 2 = earth_mother_events.1 1 = central_kal_events.1 @@ -348,8 +464,12 @@ random_yearly_playable_pulse = { bp2_child_pulse delay = { days = { 181 240 } } bp2_parent_guardian_hostage_taker_pulse - delay = { days = { 241 300 } } + delay = { days = { 241 290 } } bp2_adult_followups + delay = { days = { 291 310 } } + court_scholar_ongoing + delay = { days = { 25 44 } } + clan_events_on_action } } @@ -580,7 +700,6 @@ on_yearly_invisible_events = { } } - on_yearly_events = { random_events = { chance_to_happen = 25 @@ -974,6 +1093,7 @@ on_yearly_events = { #150 = fp2_yearly.3002 # And They Were Roommates #150 = fp2_yearly.3003 # A Flavorful Evening #150 = fp2_yearly.3001 # Choosing your epitaph + #180 = fp2_struggle.2003 #Band of Lost Birds # End of Warcraft #BP1 - Bontent Pack One Events @@ -1090,6 +1210,42 @@ on_yearly_events = { 250 = bp1_house_feud.0008 # Consider starting feud against house who imprisoned family a while 250 = bp1_house_feud.0012 # Consider starting feud against house who cuckolded you + # FP3 - Frontier Events + #250 = fp3_yearly.8000 # Ghazi Gone Bad + #250 = fp3_yearly.8001 # Frontier Fortress Benefactor + #250 = fp3_yearly.8002 # Faith at the Frontier + #350 = fp3_yearly.8003 # Exotic Espand + #350 = fp3_yearly.8004 # The Frontier Beckons + #350 = fp3_yearly.8009 # Caliphal Concerns + #250 = fp3_yearly.8010 # Abode of War + #250 = fp3_yearly.8014 # Secrets of the Teapot + #250 = fp3_yearly.8016 # Forgotten Stones & Hyrcanian Havoc + #500 = fp3_yearly.8018 # Heavenly Horses + #100 = fp3_yearly.8888 #A Grazing Grievance (start of the Nomads Story Cycle) + + # FP3 - Heritage Events + #250 = fp3_yearly.8019 # Refuge of Light + #250 = fp3_yearly.8020 # The Lady of the Land + #350 = fp3_yearly.8021 # An Acidic Accident + #500 = fp3_yearly.8024 # The Return to the Sky + #350 = fp3_yearly.8027 # Nine-Hundred Ninety Chapters of Gold + #250 = fp3_yearly.8033 # Frozen Delights + #550 = fp3_yearly.8034 # The Hephthalite Hoard + #250 = fp3_yearly.8035 # The Heart and the Creator + #250 = fp3_yearly.8036 # The City of the Mouthless + #500 = fp3_yearly.8037 # A Cure for Acedia (the Melancholia Chain) + #300 = fp3_scholarship.1000 # Request Indian mathematician courtiers + 200 = fp3_scholarship.8500 + 200 = fp3_scholarship.8600 + + #FP3 - Extra Yearly Events + #150 = fp3_yearly.8045 #The Mysterious Bundle (the Buzina Chain) + 500 = false_conversion.2000 # A Moment of Weakness + + # FP3 - Zoroastrian Events + #200 = fp3_yearly.8050 #The Fate of the Dead + #200 = fp3_yearly.8051 # The Purest Fire + # Guardianship Events 200 = childhood.2400 # Ward approaches guardian with theological doubts @@ -1102,6 +1258,10 @@ on_yearly_events = { #50 = hajj.0500 # Promise your dying Hajjaj relative to go on the Hajj #BP2 - Bontent Pack Two Events + 50 = pet_rock.0001 #You find a neat-looking rock + 10 = destiny_child.0001 #Destiny Child Story Cycle + + 100 = bp2_yearly_extra.0001 #My favorite councilor 200 = bp2_yearly.0601 # Ruling Rightly - Regent tries to teach you about state. 100 = bp2_yearly.0611 # PrimaryTitle's Second Capital - Far away regent never seems to visit. @@ -1153,10 +1313,10 @@ on_yearly_events = { 100 = bp2_yearly.7000 # Wet nurse has a disease and can pass it down to a child 100 = bp2_yearly.7001 # Spouse is jealous about wet nurse 100 = bp2_yearly.7002 # Court Chaplain informs You that your marraige is incestuous, due to you having same wet nurse as your spouse - 500 = bp2_yearly.7003 # Wet Nurse informs you about first words of your child - 500 = bp2_yearly.7004 # Wet Nurse informs you about first steps of your child - 500 = bp2_yearly.7005 # Wet Nurse informs you about first fallen teeth of your child - 500 = bp2_yearly.7006 # Wet Nurse informs you about first independent dress up of your child + 20 = bp2_yearly.7003 # Wet Nurse informs you about first words of your child + 20 = bp2_yearly.7004 # Wet Nurse informs you about first steps of your child + 20 = bp2_yearly.7005 # Wet Nurse informs you about first fallen teeth of your child + 20 = bp2_yearly.7006 # Wet Nurse informs you about first independent dress up of your child 500 = bp2_yearly.7029 # You, a tribal ruler after completing Rites of Passage, can enourage or not next child doing the rites 500 = bp2_yearly.7014 # Child and Wet Nurse connect over same faith/culture @@ -1167,13 +1327,39 @@ on_yearly_events = { 100 = bp2_yearly.8100 # You develop feelings for another kid, is this a crush? 400 = bp2_yearly.8110 # Sacred childbirth, people want to pamper you 200 = bp2_yearly.8120 # Sacred childbirth, offer to take care of your pregnant spouse - 50 = pet_rock.0001 #You find a neat-looking rock 10 = destiny_child.0001 #Destiny Child Story Cycle 25 = bp2_yearly.2010 # Imaginary Friend Story Cycle Start 100 = bp2_yearly_extra.0001 #My favorite councilor + #FP3 - Clan Events + 250 = fp3_clan.8000 # Usury against Unity, by Ola Jentzsch + 250 = fp3_clan.8001 # Clan Quarrel, by Ola Jentzsch + #250 = fp3_clan.8002 # Bonds of Faith, by Ola Jentzsch + #250 = fp3_clan.8003 # The Power of a Name, by Ola Jentzsch + 250 = fp3_clan.8004 # Bonds of Fear, by Ola Jentzsch + 250 = fp3_clan.8005 # A Proper Position, by Ola Jentzsch + 250 = fp3_clan.8006 # Small Spies, by Ola Jentzsch + 250 = fp3_clan.8008 # Bleeding them Dry, by Ola Jentzsch + 250 = fp3_clan.8009 # Popular with the People, by Ola Jentzsch + 250 = fp3_clan.8010 # Competent Qadis / More Magistrates, by Ola Jentzsch + 250 = fp3_clan.8011 # A Proper Paymaster, by Ola Jentzsch + 250 = fp3_clan.8012 # Auspicious Avarice, by Ola Jentzsch + 240 = fp3_clan.8013 # The Burden of Tax Farming, by Ola Jentzsch + 250 = fp3_clan.8015 # Scandalous Scion, by Ola Jentzsch + 250 = fp3_clan.8016 # Hammam Havoc, by Ola Jentzsch + #250 = fp3_clan.8017 # A Questionable Position, by Ola Jentzsch + 175 = fp3_clan.3000 # Ravaged Tulips, by Hugo Cortell + + # FP3 - Eren Events + #250 = fp3_yearly.2000 # Daylight Censors + #250 = fp3_yearly.2001 # Public Intoxication + 100 = fp3_yearly.2011 # Maunds of Wheat no royal court + #250 = fp3_yearly.2020 # Set the Scale, Vassal Version + #250 = fp3_yearly.2021 # Set the Scale, Liege Version + #500 = fp3_yearly.2040 # Commander of the Faithful + ### Warcraft 500 = cen_kal.1000 100 = cen_kal.1001 diff --git a/common/opinion_modifiers/00_activity_feast_opinions.txt b/common/opinion_modifiers/00_activity_feast_opinions.txt deleted file mode 100644 index 492dc0a893..0000000000 --- a/common/opinion_modifiers/00_activity_feast_opinions.txt +++ /dev/null @@ -1,339 +0,0 @@ -#OPINIONS SET BY THE FEAST ACTIVITY - -feast_hosted_successful_feast = { - opinion = 20 - years = 10 - decaying = yes -} - -feast_hosted_successful_feast_with_music = { - opinion = 30 - years = 10 - decaying = yes -} - -feast_host_failed_to_appear = { - opinion = -15 - years = 10 - decaying = yes -} - -feast_got_stew_all_over_me = { - opinion = -20 - years = 5 -} - -feast_disgracefully_ate_from_floor = { - opinion = -10 - years = 5 - decaying = yes -} - -feast_left_food_around_to_rot = { - opinion = -10 - years = 5 -} - -feast_had_good_talk = { - opinion = 10 - years = 5 -} - -feast_laughed_at_me = { - opinion = -5 - years = 5 -} - -feast_showed_sympathy_to_host = { - opinion = 15 - years = 5 -} - -feast_victimised_in_prank = { - opinion = -5 - years = 5 - decaying = yes -} - -feast_helped_during_breakin = { - opinion = 30 - years = 10 - decaying = yes -} - -bonded_at_feast_opinion = { - opinion = 30 - years = 10 - decaying = yes -} - - -with_friend_at_feast_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -impressed_with_humility_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -disgusted_by_humility_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -annoying_glutton_at_feast_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -complained_on_my_behalf_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -disorganized_feast_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -wrote_love_letter_at_feast_opinion = { - opinion = 15 - years = 15 - decaying = yes -} - -learned_at_feast_opinion = { - opinion = 5 - years = 10 - decaying = yes -} - -friend_had_good_time_at_feast_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -lover_feast_secret_dalliance_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - -rival_feast_altercation_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -feast_had_good_time_together_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -feast_pleasant_time_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -was_unimpressed_at_feast_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -gave_compliment_at_feast_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -feast_amazing_food_glutton_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -feast_meager_food_glutton_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -feast_rejected_dalliance_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -feast_spouse_doing_impressive_job_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -feast_threw_up_on_me_opinion = { - opinion = -5 - years = 10 - decaying = yes -} - -feast_spouse_gave_me_credit_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -feast_spouse_did_not_credit_me_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -feast_sided_with_me_in_my_fight_opinion = { - opinion = 20 - years = 20 - decaying = yes -} - -feast_sided_against_me_in_my_fight_opinion = { - opinion = -20 - years = 15 - decaying = yes -} - -feast_attended_my_feast_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -feast_spouse_hosted_successful_feast_opinion = { - opinion = 15 - years = 15 - decaying = yes -} - -feast_life_of_the_party_opinion = { - monthly_change = 0.2 - decaying = yes -} - -feast_common_burden_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -feast_murdered_someone = { - opinion = -20 - years = 10 - decaying = yes -} - -offered_attention_at_feast_opinion = { - opinion = 25 - years = 5 - decaying = yes -} - -feast_saved_my_life_opinion = { - opinion = 40 - years = 20 - decaying = yes -} - -feast_threw_me_out_opinion = { - opinion = -20 - years = 20 - decaying = yes -} - -#LIFESTYLE FEAST OPINIONS -feast_strategic_disagreement_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -feast_got_taught_a_lesson = { - opinion = -20 - years = 10 - decaying = yes -} - - -#ARTIFACT FEAST EVENT - -feast_recieved_amazing_gift = { - opinion = 30 - years = 10 - decaying = yes -} - -feast_recieved_underwhelming_gift = { - opinion = 10 - years = 10 - decaying = yes -} - -feast_recieved_amazing_toast = { - opinion = 20 - years = 10 - decaying = yes -} - -feast_recieved_underwhelming_toast = { - opinion = 5 - years = 10 - decaying = yes -} - -feast_purposefully_ruined_gift = { - opinion = -15 - years = 10 - decaying = yes -} - - -feast_mistaken_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -feast_lied_to_me_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -feast_compassionate_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -feast_condemning_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -feast_helped_me_opinion = { - opinion = 15 - years = 5 - decaying = yes -} diff --git a/common/opinion_modifiers/00_activity_hunt_opinions.txt b/common/opinion_modifiers/00_activity_hunt_opinions.txt deleted file mode 100644 index 1a5e564fd5..0000000000 --- a/common/opinion_modifiers/00_activity_hunt_opinions.txt +++ /dev/null @@ -1,172 +0,0 @@ -opinion_hunt_got_to_take_shot = { - opinion = 25 - decaying = yes - years = 5 -} - -opinion_hunt_forest_feast = { - opinion = 20 - decaying = yes - years = 5 -} - -opinion_hunt_solved_poverty_problem = { - opinion = 15 - decaying = yes - years = 10 -} - -opinion_hunt_brave_hunter = { - opinion = 10 - decaying = yes - years = 5 -} - -opinion_hunt_craven_hunter = { - opinion = -10 - decaying = yes - years = 5 -} - -hunt_impressive_learning_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -hunt_left_in_trap_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_fellow_witch_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_forced_to_kill_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_honored_with_kill_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_fought_over_kill_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_dharmic_mercy_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_left_behind_opinion = { - monthly_change = 0.05 - decaying = yes -} - -suspicious_addition_opinion = { - monthly_change = 0.025 - decaying = yes -} - -hunt_did_not_shoot_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_failed_woo_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_jumped_boulder_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_jump_boulder_pressure_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_distracted_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_disappointed_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_bored_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_treated_wound_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_waited_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_scolded_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_trusted_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hunt_snubbed_leader_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - -hunt_game_mismanagement_opinion = { - opinion = -10 - years = 7 - decaying = yes -} - -hunt_gifted_eyas_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -hunt_gifted_trophy_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -hunt_generous_hunter_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -hunt_released_poachers_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -hunt_bad_hunter_opinion = { - opinion = -10 - decaying = yes - years = 5 -} diff --git a/common/opinion_modifiers/00_activity_pilgrimage_opinions.txt b/common/opinion_modifiers/00_activity_pilgrimage_opinions.txt deleted file mode 100644 index 0df7ca9d44..0000000000 --- a/common/opinion_modifiers/00_activity_pilgrimage_opinions.txt +++ /dev/null @@ -1,41 +0,0 @@ -#OPINIONS SET BY THE PILGRIMAGE ACTIVITY - -divine_blessing_friendship_opinion = { - opinion = 30 - years = 30 -} - -shrine_pilferer_opinion = { - opinion = -15 - years = 10 -} - -shrine_desecrater_opinion = { - opinion = -30 - years = 10 -} - -pilgrimage_altruistic_opinion = { - opinion = 10 - years = 10 -} - -pilgrimage_besserwisser_opinion = { - opinion = -5 - years = 10 -} - -pilgrimage_apa_opinion = { - opinion = 10 - years = 10 -} - -pilgrimage_apa_communal_prayer_opinion = { - opinion = 10 - years = 10 -} - -pilgrimage_apa_religious_procession_opinion = { - opinion = 10 - years = 10 -} diff --git a/common/opinion_modifiers/00_activity_playdate_opinions.txt b/common/opinion_modifiers/00_activity_playdate_opinions.txt deleted file mode 100644 index a64cf9edd5..0000000000 --- a/common/opinion_modifiers/00_activity_playdate_opinions.txt +++ /dev/null @@ -1,13 +0,0 @@ -#OPINIONS SET BY THE PLAYDATE ACTIVITY - -attended_my_playdate_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -hosted_successful_playdate_opinion = { - opinion = 20 - years = 10 - decaying = yes -} diff --git a/common/opinion_modifiers/00_activity_system_opinons.txt b/common/opinion_modifiers/00_activity_system_opinons.txt deleted file mode 100644 index f485bbb618..0000000000 --- a/common/opinion_modifiers/00_activity_system_opinons.txt +++ /dev/null @@ -1,41 +0,0 @@ -# ACTIVITY SYSTEM OPINIONS - -hosted_tournament_opinion = { - monthly_change = 0.1 - decaying = yes -} - -tour_visited_vassal_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_wedding_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_hunt_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_tour_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_pilgrimage_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_feast_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hosted_mediocre_feast_opinion = { - monthly_change = 0.2 - decaying = yes -} diff --git a/common/opinion_modifiers/00_birth_opinions.txt b/common/opinion_modifiers/00_birth_opinions.txt deleted file mode 100644 index 59c2087c97..0000000000 --- a/common/opinion_modifiers/00_birth_opinions.txt +++ /dev/null @@ -1,44 +0,0 @@ -#Opinion modifiers applied from the bastard effect events - -legitimized_my_child_opinion = { - opinion = 25 - decaying = yes - years = 15 -} - -legitimized_my_children_opinion = { #Twin version - opinion = 25 - decaying = yes - years = 15 -} - -legitimized_a_bastard_opinion = { - opinion = -25 - decaying = yes - years = 15 -} - -legitimized_bastard_opinion = { - opinion = -40 - decaying = yes - years = 50 -} - -rejected_our_child_opinion = { - opinion = -20 - decaying = yes - years = 15 -} - -rejected_our_children_opinion = { #Twin version - opinion = -20 - decaying = yes - years = 15 -} - -legitimized_me_opinion = { - opinion = 15 - decaying = yes - years = 50 -} - diff --git a/common/opinion_modifiers/00_childhood_opinions.txt b/common/opinion_modifiers/00_childhood_opinions.txt deleted file mode 100644 index 9cea5c45ad..0000000000 --- a/common/opinion_modifiers/00_childhood_opinions.txt +++ /dev/null @@ -1,131 +0,0 @@ -#Opinion modifiers applied from the Childhood events - -charming_crush_on_me_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -bothersome_crush_on_me_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -sweet_opinion = { - monthly_change = 0.05 - decaying = yes -} - -gift_of_cat_opinion = { - monthly_change = 0.05 - decaying = yes -} - -gift_of_dog_opinion = { - monthly_change = 0.05 - decaying = yes -} - -entertained_opinion = { - monthly_change = 0.1 - decaying = yes -} - -gave_toy_opinion = { - monthly_change = 0.1 - decaying = yes -} - -heartbroken_opinion = { - monthly_change = 0.1 - decaying = yes -} - -spoilsport_opinion = { - opinion = -25 - years = 10 - decaying = yes -} - -clever_child_opinion = { - opinion = 50 - years = 20 - decaying = yes -} - -delightfully_devilish_opinion = { - opinion = 50 - years = 50 - decaying = yes -} - -worried_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -lazy_child_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -little_pig_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -sweet_child_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -funny_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -thankful_opinion = { - opinion = 20 - years = 20 - decaying = yes -} - -changed_my_life_opinion = { - opinion = 50 - years = 50 - decaying = yes -} - -guardian_of_heir_opinion = { - opinion = 25 - growing = yes - monthly_change = 5 - stacking = yes -} - -guardian_of_relative_opinion = { - opinion = 15 - growing = yes - monthly_change = 5 - stacking = yes -} - -guardian_of_heir_parochial_opinion = { - opinion = 50 - growing = yes - monthly_change = 5 - stacking = yes -} - -guardian_of_relative_parochial_opinion = { - opinion = 30 - growing = yes - monthly_change = 5 - stacking = yes -} diff --git a/common/opinion_modifiers/00_claim_throne_opinions.txt b/common/opinion_modifiers/00_claim_throne_opinions.txt deleted file mode 100644 index 96b4f3972d..0000000000 --- a/common/opinion_modifiers/00_claim_throne_opinions.txt +++ /dev/null @@ -1,47 +0,0 @@ -#Opinion modifiers connected to Claim Throne - -claim_my_throne_success_discovered_opinion = { - opinion = -40 -} - -claim_my_throne_success_undiscovered_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -claim_my_throne_failure_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -claim_throne_aiding_liege_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -claim_throne_bought_support_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -claim_throne_self_declared_opinion = { - opinion = -50 - decaying = yes - years = 20 -} - -claim_throne_tricked_peasants_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -claim_throne_forged_letter_opinion = { - opinion = -50 - decaying = yes - years = 20 -} diff --git a/common/opinion_modifiers/00_council_opinions.txt b/common/opinion_modifiers/00_council_opinions.txt deleted file mode 100644 index 7a4444685c..0000000000 --- a/common/opinion_modifiers/00_council_opinions.txt +++ /dev/null @@ -1,6 +0,0 @@ - -fired_from_council_opinion = { - opinion = -20 - decaying = no - years = 10 -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_council_task_opinions.txt b/common/opinion_modifiers/00_council_task_opinions.txt deleted file mode 100644 index 8aa82abd78..0000000000 --- a/common/opinion_modifiers/00_council_task_opinions.txt +++ /dev/null @@ -1,119 +0,0 @@ -chancellor_task_foreign_affairs_opinion = { - monthly_change = 0.2 - decaying = yes -} - -chancellor_task_domestic_affairs_opinion = { - monthly_change = 0.2 - decaying = yes -} - -chancellor_task_neighbor_decreased_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -chancellor_task_neighbor_increased_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -chancellor_task_powerful_vassal_decreased_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -chancellor_task_powerful_vassal_increased_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -chancellor_bestow_royal_favor_opinion = { - monthly_change = 0.05 - decaying = yes - max = 100 - stacking = yes -} - -marshal_task_increase_control_baron_decrease_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -marshal_task_increase_control_baron_increase_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -court_chaplain_fabricated_claim_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -court_chaplain_fabricated_claim_on_vassal_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -task_religious_relations_opinion = { - monthly_change = 0.2 - decaying = yes -} - -bad_religious_relations_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -bonus_religious_relations_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -court_chaplain_upsetting_claim_fabrication_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -court_chaplain_vassal_claim_target_upset_modifier = { - opinion = -30 - decaying = yes - years = 10 -} - - -spouse_held_local_tourney_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - - -spouse_martial_display_of_force_opinion = { - opinion = 10 - decaying = yes - years = 10 -} - -spouse_coerced_gift_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -steward_convince_dejure_upset_modifier = { - opinion = -30 - decaying = yes - years = 10 -} diff --git a/common/opinion_modifiers/00_court_events_opinions_linnea.txt b/common/opinion_modifiers/00_court_events_opinions_linnea.txt deleted file mode 100644 index c69166899d..0000000000 --- a/common/opinion_modifiers/00_court_events_opinions_linnea.txt +++ /dev/null @@ -1,7 +0,0 @@ -#Opinions from Court Events - -dumped_animal_on_me_opinion = { - opinion = -20 - years = 10 - decaying = yes -} diff --git a/common/opinion_modifiers/00_crime_and_prison_opinions.txt b/common/opinion_modifiers/00_crime_and_prison_opinions.txt deleted file mode 100644 index 08221c8f00..0000000000 --- a/common/opinion_modifiers/00_crime_and_prison_opinions.txt +++ /dev/null @@ -1,395 +0,0 @@ -#Opinion modifiers connected to murder (and imprisonment reasons) - -############## -# CATEGORIES # -############## - -# Treason -# Misc Crime -# Murder -# Abduction -# Elopement -# Execute -# Torture -# Blinded -# Castration - -############ -# OPINIONS # -############ - -### TREASON ### -treachery_opinion = { - opinion = -30 - imprisonment_reason = yes - years = 20 - decaying = yes -} - -treasonous_revoke_refusal = { - opinion = -20 - years = 10 - imprisonment_reason = yes - revoke_title_reason = yes -} - -treasonous_imprison_refusal = { - opinion = -20 - years = 10 - imprisonment_reason = yes - revoke_title_reason = yes -} - -treasonous_disobeyed_diarch = { - opinion = -20 - years = 20 - imprisonment_reason = yes - revoke_title_reason = yes -} - -orchestrated_coup_opinion = { - opinion = -100 - imprisonment_reason = yes - revoke_title_reason = yes - years = 50 - decaying = yes -} - -treasonous_usurped_my_diarch = { - opinion = -30 - years = 20 - imprisonment_reason = yes - revoke_title_reason = yes -} - -### MISC CRIMES ### -abductor_opinion = { # From an event - opinion = -40 - decaying = yes - years = 10 - imprisonment_reason = yes -} - -attempted_murder_opinion = { # From an event - opinion = -20 - decaying = yes - years = 10 - imprisonment_reason = yes -} - -botched_my_treatment_crime_opinion = { - opinion = -50 - decaying = yes - years = 10 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -botched_treatment_of_kin_crime_opinion = { - opinion = -40 - decaying = yes - years = 10 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -failed_to_treat_me_crime_opinion = { - opinion = -25 - decaying = yes - years = 10 - imprisonment_reason = yes -} - -failed_to_treat_kin_crime_opinion = { - opinion = -20 - decaying = yes - years = 10 - imprisonment_reason = yes -} - -theft_opinion = { - opinion = -20 - decaying = yes - years = 20 - imprisonment_reason = yes - execute_reason = yes -} - -embezzled_opinion = { - opinion = -30 - decaying = yes - years = 10 - imprisonment_reason = yes - revoke_title_reason = yes -} - -attempted_arrest_opinion = { - opinion = -40 - years = 15 - decaying = yes - imprisonment_reason = yes -} - -attempted_imprisonment_opinion = { - opinion = -30 - years = 15 - decaying = yes -} - -rebellious_vassal_opinion = { - opinion = -25 - years = 10 - revoke_title_reason = yes -} - -plotting_against_liege_opinion = { - opinion = -20 - imprisonment_reason = yes - years = 10 -} - -plotting_against_me_opinion = { - opinion = -20 - imprisonment_reason = yes - years = 10 -} - -plotting_against_diarch_opinion = { - opinion = -20 - imprisonment_reason = yes - years = 10 -} - -spying_on_liege_opinion = { - opinion = -20 - imprisonment_reason = yes - years = 10 -} - -###ABDUCTION### -abducted_me_opinion = { - opinion = -30 - years = 20 - decaying = yes -} - - -attempted_abduction_opinion = { - opinion = -20 - years = 10 - decaying = yes - imprisonment_reason = yes -} - -### ELOPEMENT ### -elopement_opinion = { - opinion = -30 - decaying = yes - years = 30 - imprisonment_reason = yes -} - -attempted_elopement_opinion = { - opinion = -20 - decaying = yes - years = 15 - imprisonment_reason = yes -} - -###MURDER### - -#Crime opinions -murdered_close_family_crime = { - opinion = -80 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -attempted_murder_close_family_crime = { - opinion = -70 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -attempted_murder_me_crime = { - opinion = -100 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -abducted_me_crime = { - opinion = -60 - imprisonment_reason = yes - banish_reason = yes -} - -abducted_close_family_crime = { - opinion = -45 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -attempted_abduct_close_family_crime = { - opinion = -40 - imprisonment_reason = yes - banish_reason = yes -} - -abducted_close_relation_opinion = { - opinion = -30 - years = 25 - decaying = yes -} - -attempted_abduct_me_crime = { - opinion = -100 - imprisonment_reason = yes - banish_reason = yes -} - -murdered_close_relation_opinion = { - opinion = -30 - years = 25 - decaying = yes -} - -murdered_someone_close_to_me_crime = { - opinion = -50 - imprisonment_reason = yes -} - -hurt_someone_close_to_me_crime = { - opinion = -20 - imprisonment_reason = yes -} - -murdered_my_vassal_crime = { #Only used in feud event - opinion = -20 - imprisonment_reason = yes -} - -###EXECUTION### -executed_close_family = { - opinion = -50 - years = 30 - decaying = yes -} - -executed_close_family_crime = { - opinion = -50 - imprisonment_reason = yes - execute_reason = yes - banish_reason = yes -} - -executed_dynasty_member = { - opinion = -20 - years = 20 - decaying = yes -} - -executed_close_relation_opinion = { - opinion = -30 - years = 25 - decaying = yes -} - -executed_family_sun_trial_modifier = { - opinion = -30 - years = 20 - decaying = yes -} - -executed_my_countryman_modifier = { - opinion = -25 - years = 20 - decaying = yes -} - -executed_guest_modifier = { - opinion = -5 - years = 10 - decaying = yes -} - - -### TORTURE ### -tortured_family_member = { - opinion = -30 - years = 20 - decaying = yes - imprisonment_reason = yes -} - -tortured_me = { - opinion = -75 - decaying = yes - years = 50 - imprisonment_reason = yes -} - - -### BLINDED ### -blinded_family_member = { - opinion = -20 - years = 20 - decaying = yes -} - -blinded_me = { - opinion = -50 - decaying = yes - years = 50 - imprisonment_reason = yes -} - - -### CASTRATION ### -castrated_family_member = { - opinion = -20 - years = 20 - decaying = yes -} - -castrated_me = { - opinion = -50 - decaying = yes - years = 50 - imprisonment_reason = yes -} - -### STEALING ### -attempted_to_steal_artifact_from_me = { - opinion = -30 - decaying = yes - years = 5 - imprisonment_reason = yes -} - -stole_artifact_from_me = { - opinion = -50 - decaying = yes - years = 15 - imprisonment_reason = yes -} - -### FOREIGN PRISONER RECOVATION ### -foreign_prison_revocation_opinion = { - opinion = -10 - years = 10 - revoke_title_reason = yes -} - -### SUMPTUARY LAW ### -sumptuary_violation_opinion = { - opinion = -10 - years = 10 - # No crime is worse than a crime against fashion - imprisonment_reason = yes -} diff --git a/common/opinion_modifiers/00_decision_opinions.txt b/common/opinion_modifiers/00_decision_opinions.txt deleted file mode 100644 index e9dc1a8e5b..0000000000 --- a/common/opinion_modifiers/00_decision_opinions.txt +++ /dev/null @@ -1,17 +0,0 @@ -reformed_holy_roman_empire_opinion = { - opinion = 50 - years = 30 - decaying = yes -} - -implemented_traditional_succession_law_opinion = { - opinion = 30 - years = 20 - decaying = yes -} - -bizarre_claims_opinion = { - opinion = -30 - years = 30 - decaying = yes -} diff --git a/common/opinion_modifiers/00_doctrinal_crime_opinions.txt b/common/opinion_modifiers/00_doctrinal_crime_opinions.txt deleted file mode 100644 index 2bb0082170..0000000000 --- a/common/opinion_modifiers/00_doctrinal_crime_opinions.txt +++ /dev/null @@ -1,81 +0,0 @@ -sodomite_crime = { - opinion = -15 - imprisonment_reason = yes - revoke_title_reason = yes -} - -sodomite_intolerant = { - opinion = -15 -} - -incest_intolerant = { - opinion = -15 -} - -cannibal_crime = { - opinion = -30 - imprisonment_reason = yes - execute_reason = yes -} - -witchcraft_crime = { - opinion = -15 - imprisonment_reason = yes - execute_reason = yes -} - -witchcraft_intolerant = { - opinion = -15 -} - -deviant_crime = { - opinion = -15 - imprisonment_reason = yes - revoke_title_reason = yes -} - -deviant_intolerant = { - opinion = -15 -} - -kinslayer_intolerant = { - opinion = -5 -} - -kinslayer_crime_dynasty = { - imprisonment_reason = yes - banish_reason = yes - execute_reason = yes -} - -tenet_excommunicated_crime = { - opinion = -20 - imprisonment_reason = yes - revoke_title_reason = yes - banish_reason = yes -} - -denounced_trait_crime = { - opinion = -15 - imprisonment_reason = yes -} - -adulterer_crime = { - opinion = -5 - imprisonment_reason = yes - revoke_title_reason = yes -} - -adulterer_intolerant = { - opinion = -5 -} - -fornicator_crime = { - opinion = -5 - imprisonment_reason = yes - revoke_title_reason = yes -} - -fornicator_intolerant = { - opinion = -5 -} diff --git a/common/opinion_modifiers/00_dynasty_opinions.txt b/common/opinion_modifiers/00_dynasty_opinions.txt deleted file mode 100644 index 16c9eef46f..0000000000 --- a/common/opinion_modifiers/00_dynasty_opinions.txt +++ /dev/null @@ -1,45 +0,0 @@ - -#Stacking opinions -disinherited_opinion = { - opinion = -75 -} - -denounced_opinion = { - opinion = -50 -} - -forgave_denounced_opinion = { - opinion = -25 - decaying = yes - monthly_change = 0.01 -} - -disinherited_house_member_opinion = { - opinion = -15 - decaying = yes - monthly_change = 0.01 -} - -denounced_house_member_opinion = { - opinion = -10 - decaying = yes - monthly_change = 0.01 -} - -forgave_house_member_opinion = { - opinion = 5 - decaying = yes - monthly_change = 0.01 -} - -restored_inheritance_opinion = { - opinion = 40 - decaying = yes - monthly_change = 0.01 -} - -restored_house_member_inheritance_opinion = { - opinion = 15 - decaying = yes - monthly_change = 0.01 -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_election_opinions.txt b/common/opinion_modifiers/00_election_opinions.txt deleted file mode 100644 index a942c75f81..0000000000 --- a/common/opinion_modifiers/00_election_opinions.txt +++ /dev/null @@ -1,11 +0,0 @@ -voting_for_me_opinion = { - opinion = 25 - growing = yes - monthly_change = 1 -} - -voting_for_my_candidate_opinion = { - opinion = 15 - growing = yes - monthly_change = 1 -} diff --git a/common/opinion_modifiers/00_fabricate_hook_opinions.txt b/common/opinion_modifiers/00_fabricate_hook_opinions.txt deleted file mode 100644 index 79e222da11..0000000000 --- a/common/opinion_modifiers/00_fabricate_hook_opinions.txt +++ /dev/null @@ -1,13 +0,0 @@ -#Opinion modifiers connected to Fabricate Hook - -fabricate_hook_threatened_me = { - opinion = -30 - decaying = yes - years = 10 -} - -fabricated_hook_against_court_opinion = { - opinion = -40 - decaying = yes - years = 5 -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_friendship_opinions.txt b/common/opinion_modifiers/00_friendship_opinions.txt deleted file mode 100644 index 2908812a84..0000000000 --- a/common/opinion_modifiers/00_friendship_opinions.txt +++ /dev/null @@ -1,161 +0,0 @@ -#OPINIONS SET BY FRIENDSHIP EVENTS - -rejected_by_friend_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -optimistic_about_friendship_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -friend_abandoned_me_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -friend_gave_major_gift_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -friend_gave_good_gift_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -supported_my_war_opinion = { - opinion = 15 - years = 20 - decaying = yes -} - - -rejected_gift_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - - -supported_my_enemy_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - - -sent_great_courtier_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - - -confided_in_me_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -bad_friend_reputation_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - - -bad_intervention_my_behalf_opinion = { - opinion = -15 - years = 2 - decaying = yes -} - - -keeps_bothering_me_opinion = { - opinion = -10 - years = 2 - decaying = yes -} - - -successfull_intercession_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - - -friend_interceded_for_me_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -spouse_approves_of_friend_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -spouse_likes_friend_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - - -spouse_disapproves_of_friend_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - - -spouse_dislikes_friend_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - - -passed_favor_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - - -trusted_judgement_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -comrades_in_arms_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -stood_by_me_opinion = { - opinion = 15 - years = 5 - decaying = yes -} - -humored_opinion = { - opinion = 15 - years = 5 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_holy_order_opinions.txt b/common/opinion_modifiers/00_holy_order_opinions.txt deleted file mode 100644 index b70da8a621..0000000000 --- a/common/opinion_modifiers/00_holy_order_opinions.txt +++ /dev/null @@ -1,20 +0,0 @@ - -holy_order_founder_opinion = { - opinion = 30 - years = 30 -} - -holy_order_patron_opinion = { - opinion = 20 -} - -holy_order_destroyed_order_opinion = { - opinion = -50 -} - -#Stacking opinions -holy_order_revoked_lease_opinion = { - monthly_change = 0.05 - decaying = yes -} - diff --git a/common/opinion_modifiers/00_intrigue_scheme_opinions.txt b/common/opinion_modifiers/00_intrigue_scheme_opinions.txt deleted file mode 100644 index 6a32aee938..0000000000 --- a/common/opinion_modifiers/00_intrigue_scheme_opinions.txt +++ /dev/null @@ -1,132 +0,0 @@ -# HARD-CODED ONES - THESE MUST BE HERE - -scheming_against_me = { - opinion = -50 - imprisonment_reason = yes -} - -schemed_against_me = { - opinion = -50 - years = 10 - decaying = yes - imprisonment_reason = yes -} - -#### - -#Secret Scheme Discovery -accused_of_scheming_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -liege_scheming_against_me_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -liege_attempting_to_murder_me_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -spied_on_me_agent_opinion = { - opinion = -20 - years = 2 - decaying = yes -} - -spied_on_me_instigator_opinion = { - opinion = -30 - years = 3 - decaying = yes -} - -blackmailing_me_opinion = { - opinion = -15 -} - -blackmailed_by_agent_opinion = { - opinion = -15 - years = 2 - decaying = yes -} - -forced_to_scheme_against_friend_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -# Scheme drunkard agent -forced_to_stay_away_from_the_bottle_opinion = { - opinion = -10 - years = 2 -} - -hero_of_the_moment_opinion = { - opinion = 25 - years = 2 - decaying = yes -} - -drunkard_attack_opinion = { - opinion = -15 - years = 1 - decaying = yes - -} - - -attempted_to_remove_agent_opinion = { - opinion = -100 - years = 20 - decaying = yes -} - - -scheme_refused_my_advice_opinion = { - opinion = -30 - years = 5 - decaying = yes -} - -scheme_followed_my_advice_opinion = { - opinion = 30 - years = 10 - decaying = yes -} - -opinion_scheme_refused_to_stop_spying = { - opinion = -50 - years = 10 - decaying = yes -} - -opinion_scheme_refused_to_stop_murder = { - opinion = -100 - years = 10 - decaying = yes -} - -opinion_scheme_spied_on_me = { - opinion = -30 - years = 10 - decaying = yes -} - -opinion_scheme_wanted_to_murder_close_relation = { - opinion = -50 - years = 10 - decaying = yes -} - - -opinion_scheme_code_rejected = { - opinion = -10 - years = 5 - decaying = yes -} diff --git a/common/opinion_modifiers/00_lifestyle_governance_opinions.txt b/common/opinion_modifiers/00_lifestyle_governance_opinions.txt deleted file mode 100644 index 8c5d5f81fe..0000000000 --- a/common/opinion_modifiers/00_lifestyle_governance_opinions.txt +++ /dev/null @@ -1,98 +0,0 @@ -#Opinion modifiers granted by Guile Lifestyle events - -governance_careful_mapping_of_my_realm_opinion = { - opinion = 40 - decaying = yes - years = 10 -} - - -governance_taxed_clergy_when_bankrupt = { - opinion = -10 - decaying = yes - years = 1 - -} - -governance_taxed_nobles_when_bankrupt = { - opinion = -10 - decaying = yes - years = 1 - -} - -governance_taxed_cities_when_bankrupt = { - opinion = -10 - decaying = yes - years = 1 - -} - -governance_fish_pond = { - opinion = 20 - decaying = yes - monthly_change = 0.1 -} - -governance_emphasised_authority_opinion = { - opinion = -15 - decaying = yes - years = 10 -} - -governance_vassal_defied_assessment_for_domesday_book = { - opinion = -15 - decaying = yes - years = 2 -} - -governance_forced_assessment_for_domesday_book = { - opinion = -15 - decaying = yes - years = 2 -} - -governance_domesday_book_praised_for_steward = { - opinion = 10 - decaying = yes - years = 4 -} - -governance_domesday_book_criticized_steward = { - opinion = -10 - decaying = yes - years = 4 -} - -dismissed_me_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -disapproving_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -approving_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - - -### PERKS - -meritocracy_claimed_my_throne_opinion = { - opinion = -80 - decaying = yes - years = 30 -} - -extorted_me_opinion = { - opinion = -40 - decaying = yes - years = 10 -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_lifestyle_intrigue_opinions.txt b/common/opinion_modifiers/00_lifestyle_intrigue_opinions.txt deleted file mode 100644 index b3e8233a24..0000000000 --- a/common/opinion_modifiers/00_lifestyle_intrigue_opinions.txt +++ /dev/null @@ -1,75 +0,0 @@ -#Opinion modifiers granted by Intrigue Lifestyle events - -intrigue_was_impatient_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -intrigue_used_as_test_subject_opinion = { - opinion = -30 - decaying = yes - years = 15 -} - -intrigue_used_as_risky_test_subject_opinion = { - opinion = -50 - decaying = yes - years = 15 -} - -did_not_tell_my_secret = { - opinion = 20 - years = 5 - decaying = yes -} - -intrigue_mind_broken_opinion = { - opinion = 1000 -} - -good_adjudicator_opinion = { - opinion = 20 -} - -considerate_liege_opinion = { - opinion = 20 -} - -intrigue_defied_loved_one_opinion = { - opinion = -60 - decaying = yes - years = 10 -} - -intrigue_made_me_sound_scary_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -intrigue_helped_me_out_opinion = { - opinion = 15 - years = 10 -} - -intrigue_suspect_your_involvement_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -intrigue_sent_goons_opinion = { - opinion = -30 - years = 10 -} - -intrigue_thrown_under_the_carriage_opinion = { - opinion = -20 - years = 10 -} - -intrigue_position_is_safe_opinion = { - opinion = 15 - years = 5 -} diff --git a/common/opinion_modifiers/00_lifestyle_medicine_opinions.txt b/common/opinion_modifiers/00_lifestyle_medicine_opinions.txt deleted file mode 100644 index e81ce2a6d1..0000000000 --- a/common/opinion_modifiers/00_lifestyle_medicine_opinions.txt +++ /dev/null @@ -1,4 +0,0 @@ -spell_thief_attempted_opinion = { - opinion = -20 - years = 10 -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_lifestyle_statecraft_opinions.txt b/common/opinion_modifiers/00_lifestyle_statecraft_opinions.txt deleted file mode 100644 index e48e6db615..0000000000 --- a/common/opinion_modifiers/00_lifestyle_statecraft_opinions.txt +++ /dev/null @@ -1,27 +0,0 @@ -belittled_my_enemy = { - opinion = 15 - years = 5 - decaying = yes -} - - - -renewed_attention = { - opinion = 25 - years = 15 - decaying = yes -} - -statecraft_family_meaning_opinion = { - opinion = 25 - years = 10 - decaying = yes -} - -perk_negotiated_alliance_opinion = { - opinion = 20 -} - -event_negotiated_alliance_opinion = { - opinion = 20 -} diff --git a/common/opinion_modifiers/00_lover_opinions.txt b/common/opinion_modifiers/00_lover_opinions.txt deleted file mode 100644 index f879e0287a..0000000000 --- a/common/opinion_modifiers/00_lover_opinions.txt +++ /dev/null @@ -1,99 +0,0 @@ -#Opinions added by Lover events - -known_incest_opinion = { - decaying = yes - monthly_change = 0.1 -} - -lover_hurt_me_opinion = { - opinion = -30 - years = 2 - decaying = yes -} - -lover_shared_secret_with_me_opinion = { - opinion = 15 - years = 2 - decaying = yes -} - -lover_being_mean_opinion = { - opinion = -15 - years = 2 - decaying = yes -} - - -terrible_love_letter_opinion = { - opinion = -5 - years = 2 - decaying = yes -} - - -love_letter_opinion = { - opinion = 10 - years = 2 - decaying = yes -} - - -good_love_letter_opinion = { - opinion = 20 - years = 2 - decaying = yes -} - - -great_love_letter_opinion = { - opinion = 25 - years = 2 - decaying = yes -} - - -lover_disappointed_for_retinue_opinion = { - opinion = -10 - years = 3 - decaying = yes -} - - -lover_let_me_down_opinion = { - opinion = -25 - years = 3 - decaying = yes -} - -lover_traveling_along_opinion = { - opinion = 15 - years = 3 - decaying = yes -} - - -lover_broken_promise_opinion = { - opinion = -15 - years = 2 - decaying = yes -} - -lover_abandoned_me_opinion = { - opinion = -40 - years = 10 -} - -lover_breakup_opinion = { - opinion = -30 - years = 10 -} - -took_my_lover_opinion = { - opinion = -50 -} - -flirty_opinion = { - opinion = 20 - years = 5 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_marriage_opinions.txt b/common/opinion_modifiers/00_marriage_opinions.txt deleted file mode 100644 index 67bef8be7c..0000000000 --- a/common/opinion_modifiers/00_marriage_opinions.txt +++ /dev/null @@ -1,133 +0,0 @@ -#Opinion modifiers connected to betrothal and marriage (i.e. not spouse opinions) - -broke_betrothal_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -refused_alliance_opinion = { - opinion = -25 - years = 100 -} - -# Monogamous character in polygamous marriage opinions. -polygamous_marriage_opinion = { - opinion = -40 - divorce_reason = yes - stacking = no -} -former_polygamous_marriage_opinion = { - opinion = -20 - decaying = yes - years = 20 - stacking = no -} -spouse_does_not_believe_in_concubines_opinion = { - opinion = -40 - divorce_reason = yes - stacking = no -} -spouse_does_not_believe_in_former_concubines_opinion = { - opinion = -20 - decaying = yes - years = 20 - stacking = no -} - - -relative_in_blasphemous_union_opinion = { - opinion = -20 - decaying = yes - years = 20 - stacking = yes -} - -# Monogamous or polygamous character concubine opinions. -concubine_with_monogamous_faith_opinion = { - opinion = -40 - stacking = no -} -concubine_with_polygamous_faith_opinion = { - opinion = -30 - stacking = no -} - -formerly_concubine_with_monogamous_faith_opinion = { - opinion = -20 # 20 less than the active penalty, due to the addition of 'set aside' as well. - decaying = yes - years = 20 - stacking = no -} -formerly_concubine_with_polygamous_faith_opinion = { - opinion = -10 # 20 less than the active penalty, due to the addition of 'set aside' as well. - decaying = yes - years = 20 - stacking = no -} - -forced_me_concubine_marriage_opinion = { - opinion = -60 - decaying = yes - years = 20 - stacking = yes -} -forced_spouse_concubine_marriage_opinion = { - opinion = -50 - decaying = yes - years = 20 - stacking = yes -} -stole_concubine_opinion = { - opinion = -20 - decaying = yes - years = 20 - stacking = yes -} -forced_family_concubine_marriage_opinion = { - opinion = -30 - decaying = yes - years = 10 - stacking = yes -} - -same_sex_with_no_acceptance_opinion = { - opinion = -40 - stacking = no -} - -former_same_sex_with_no_acceptance_opinion = { - opinion = -20 # 20 less than the active penalty - decaying = yes - years = 20 - stacking = no -} - -broke_betrothal_grand_wedding_opinion = { - years = 10 - decaying = yes -} - -prestigious_wedding_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -non_prestigious_wedding_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -challenged_authority_opinion = { - opinion = -100 - decaying = yes - years = 20 -} - -married_lowborn_opinion = { - opinion = -20 - decaying = yes - years = 10 -} diff --git a/common/opinion_modifiers/00_martial_lifestyle_opinions.txt b/common/opinion_modifiers/00_martial_lifestyle_opinions.txt deleted file mode 100644 index 243cf9fd4d..0000000000 --- a/common/opinion_modifiers/00_martial_lifestyle_opinions.txt +++ /dev/null @@ -1,30 +0,0 @@ -gave_up_on_learn_commander_trait_opinion = { - opinion = -15 - decaying = yes - years = 10 -} - - -taught_me_commander_trait_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -duel_mutual_respect_opinion = { - opinion = 30 - decaying = yes - years = 20 -} - -honorable_duelist = { - opinion = 20 - decaying = yes - years = 10 -} - -dishonorable_duelist = { - opinion = -20 - decaying = yes - years = 20 -} diff --git a/common/opinion_modifiers/00_opinion_modifiers.txt b/common/opinion_modifiers/00_opinion_modifiers.txt deleted file mode 100644 index 2b02a086f6..0000000000 --- a/common/opinion_modifiers/00_opinion_modifiers.txt +++ /dev/null @@ -1,1192 +0,0 @@ -#Stacking opinions -friendliness_opinion = { - monthly_change = 0.1 - decaying = yes - stacking = yes -} - -respect_opinion = { - monthly_change = 0.1 - decaying = yes -} - -refusal_opinion = { - monthly_change = 0.1 - decaying = yes -} - -kindness_opinion = { - monthly_change = 0.1 - decaying = yes -} - -reputation_opinion = { - monthly_change = 0.1 - decaying = yes -} - -cruelty_opinion = { - monthly_change = 0.1 - decaying = yes -} - -love_opinion = { - monthly_change = 0.05 - decaying = yes - stacking = yes -} - -compliment_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hate_opinion = { - monthly_change = 0.05 - decaying = yes -} - -irritated_opinion = { - monthly_change = 0.05 - decaying = yes -} - -envy_opinion = { - monthly_change = 0.1 - decaying = yes -} - -pious_opinion = { - monthly_change = 0.1 - decaying = yes -} - -impious_opinion = { - monthly_change = 0.1 - decaying = yes -} - -suspicion_opinion = { - monthly_change = 0.1 - decaying = yes - stacking = yes -} - -trust_opinion = { - monthly_change = 0.1 - decaying = yes -} - -disappointed_opinion = { - monthly_change = 0.1 - decaying = yes -} - -pleased_opinion = { - monthly_change = 0.1 - decaying = yes -} - -insult_opinion = { - monthly_change = 0.1 - decaying = yes -} - -angry_opinion = { - monthly_change = 0.1 - decaying = yes -} - -grateful_opinion = { - monthly_change = 0.1 - decaying = yes -} - -romance_opinion = { - monthly_change = 0.1 - decaying = yes -} - -blew_off_some_steam_opinion = { - monthly_change = 0.1 - decaying = yes -} - -weak_opinion = { - monthly_change = 0.1 - decaying = yes -} - -disgusted_opinion = { - monthly_change = 0.1 - decaying = yes -} - -impressed_opinion = { - monthly_change = 0.1 - decaying = yes -} - -flattered_opinion = { - monthly_change = 0.1 - decaying = yes -} - -flustered_opinion = { - monthly_change = 0.1 - decaying = yes -} - -amused_opinion = { - monthly_change = 0.1 - decaying = yes -} - -bored_opinion = { - monthly_change = 0.1 - decaying = yes -} - -pity_opinion = { - monthly_change = 0.1 - decaying = yes -} - -scared_opinion = { - monthly_change = 0.1 - decaying = yes -} - -dismissive_opinion = { - monthly_change = 0.1 - decaying = yes -} - -hurt_opinion = { - monthly_change = 0.1 - decaying = yes -} - -annoyed_opinion = { - monthly_change = 0.1 - decaying = yes -} - -frustrated_opinion = { - monthly_change = 0.1 - decaying = yes -} - -overreaction_opinion = { - monthly_change = 0.1 - decaying = yes -} - -admiration_opinion = { - monthly_change = 0.1 - decaying = yes -} - -confusion_opinion = { - monthly_change = 0.1 - decaying = yes -} - -commiseration_opinion = { - monthly_change = 0.1 - decaying = yes -} - -gloating_opinion = { - monthly_change = 0.1 - decaying = yes -} - -estranged_opinion = { - monthly_change = 0.1 - decaying = yes -} - -given_luxuries_opinion = { - monthly_change = 0.1 - decaying = yes -} - -banned_from_knight_force = { - decaying = no -} - - -#General - -plotting_against_vassals_opinion = { - monthly_change = 0.1 - decaying = yes -} - -humbled_opinion = { - monthly_change = 0.1 - decaying = yes -} - -neglected_opinion = { - monthly_change = 0.1 - decaying = yes -} - -humiliated_opinion = { - monthly_change = 0.1 - decaying = yes -} - -bitter_rivalry_opinion = { - opinion = -25 -} - -unfriendly_opinion = { - opinion = -5 -} - -gift_opinion = { - monthly_change = 0.25 - decaying = yes -} - -gift_artifact_opinion = { - monthly_change = 0.25 - decaying = yes -} - -kept_promise = { - opinion = 40 - monthly_change = 0.1 - decaying = yes -} - -broke_promise = { - opinion = -30 - monthly_change = 0.1 - decaying = yes -} - -repentant_opinion = { - monthly_change = 0.1 - decaying = yes -} - -unrepentant_opinion = { - monthly_change = 0.1 - decaying = yes -} - -exposed_my_secret_opinion = { - opinion = -30 - years = 20 - decaying = yes -} - -humorous_opinion = { - opinion = 5 - years = 5 - decaying = yes -} - -#Feast opinions -rude_opinion = { - opinion = -20 - years = 5 - decaying = yes -} - -publicly_ridiculed = { - opinion = -30 - years = 5 - decaying = yes -} - -romantic_gesture_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - -spilled_wine_on_me = { - opinion = -20 - years = 5 - decaying = yes -} - -friendly_interaction = { - opinion = 10 - years = 5 - decaying = yes -} - -pet_pet = { - monthly_change = 0.25 - decaying = yes -} - -#Tea ceremony opinions -opinion_welcomed_with_tea = { - opinion = 20 - years = 5 - decaying = yes -} - - -#Hunt opinions -opinion_acting_strange = { - opinion = -5 - years = 5 - decaying = yes -} - -blamed_me_unjustly = { - opinion = -20 - years = 5 - decaying = yes -} - -sc_negotiator_improved_relations_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - - -#CHILDHOOD -childhood_crush = { - opinion = 10 -} - -childhood_bully = { - opinion = -10 -} - -childhood_victim = { - opinion = -5 -} - -supportive_parent = { - opinion = 20 - years = 15 - decaying = yes -} - - -#BASTARD RELATED OPINION MODIFIERS -raised_as_my_own = { - opinion = 20 -} - -truly_of_my_blood_opinion = { - opinion = 20 -} - -uncertain_lineage_opinion = { - opinion = -15 - years = 20 - decaying = yes -} - -sullied_our_house_opinion = { - opinion = -20 - years = 20 - decaying = yes -} - -spied_on_me_opinion = { - opinion = -25 - years = 5 - decaying = yes -} - -#RECEIVED TITLE -received_title_barony = { - opinion = 20 - years = 50 - stacking = yes -} - -received_title_county = { - opinion = 40 - years = 50 - stacking = yes -} - -received_title_duchy = { - opinion = 60 - years = 50 - stacking = yes -} - -received_title_kingdom = { - opinion = 80 - years = 50 - stacking = yes -} - -received_title_empire = { - opinion = 100 - years = 50 - stacking = yes -} - -#PRISON -loved_one_dungeon_death = { - opinion = -40 - years = 20 - decaying = yes -} - -helped_me_in_time_of_need = { - opinion = 30 - years = 10 - decaying = yes -} - -mocked_me_in_time_of_need = { - opinion = -30 - years = 10 - decaying = yes -} - -imprisoned_family_member = { - opinion = -15 - years = 20 - decaying = yes -} - -imprisoned_family_member_dungeon = { - opinion = -30 - years = 20 - decaying = yes -} - -moved_to_house_arrest_opinion = { - opinion = 15 - years = 20 - decaying = yes -} - -family_moved_to_dungeon_opinion = { - opinion = -15 - years = 20 - decaying = yes -} - -#PHYSICIAN -hired_me_opinion = { - opinion = 30 - decaying = yes - years = 5 -} - -botched_my_treatment_opinion = { - opinion = -30 - decaying = yes - years = 5 -} - -botched_treatment_of_kin_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -failed_to_treat_me_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -failed_to_treat_kin_opinion = { - opinion = -5 - decaying = yes - years = 5 -} - -#Romance scheme -romance_scheme_courtship_opinion = { - decaying = no - opinion = 10 -} - -# Personal Grudge -murder_personal_grudge_opinion = { - opinion = -10 - decaying = yes - years = 2 -} - -declined_guardianship_opinion = { - opinion = -15 - years = 10 - decaying = yes - stacking = yes -} - -tried_to_eat_me_opinion = { - monthly_change = 0.1 - decaying = yes -} - -# Factions -claimant_faction_claimant_opinion = { - opinion = 20 - years = 20 -} - -claimant_faction_member_opinion = { - opinion = 60 - years = 30 -} - -# Raid -raided_me_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - - -###MISC -insulted_parent = { - opinion = -10 - years = 1 - decaying = yes -} - -gravely_insulted_parent = { - opinion = -30 - years = 1 - decaying = yes -} - -grateful_child = { - opinion = 10 - years = 1 - decaying = yes -} - -increased_opinion = { - opinion = 10 - years = 1 - decaying = yes -} - -insulted_courtier = { - opinion = -20 - years = 1 - decaying = yes -} - -loyal_servant = { - opinion = 50 -} - -distrustful = { - opinion = -35 - years = 50 - decaying = yes -} - -was_spared = { - opinion = 40 - years = 10 - decaying = yes -} - -falsely_accused = { - opinion = -30 - years = 1 - decaying = yes -} - -ignored_concerns = { - opinion = -15 - years = 10 - decaying = yes -} - -weak_excuses = { - opinion = -5 - years = 5 - decaying = yes -} - -also_cannibal = { - opinion = 20 -} - -also_poet_opinion = { - opinion = 5 -} - -reason_child_died = { - opinion = -30 - years = 10 - decaying = yes -} - -abandoned_me_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -spouse_mediation_opinion = { - opinion = 10 - decaying = yes - years = 10 -} - -grateful_ward_opinion = { - opinion = 30 - years = 30 -} - -forgiven_opinion = { - opinion = 50 - decaying = yes - years = 10 -} - -comforted_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -rejected_opinion = { - opinion = -50 - years = 20 -} - -murder_partner_opinion = { - opinion = 25 - years = 20 -} - -smeared_opinion = { - opinion = -30 - years = 10 -} - -insulted_opinion = { - opinion = -30 - years = 10 -} - -befriended_opinion = { - opinion = 50 - years = 10 -} - -pacified_opinion = { - opinion = 15 - years = 5 -} - -strengthened_friendship_opinion = { - opinion = 30 - years = 5 -} - -mentored_me_opinion = { - opinion = 25 - years = 10 -} - -mentored_my_heir_opinion = { - opinion = 15 - years = 10 -} - -ruined_my_heir_opinion = { - opinion = -25 - years = 15 -} - -helpful_vassal_opinion = { - opinion = 15 - years = 5 -} - -intrusive_liege_opinion = { - opinion = -30 - years = 5 -} - -trusting_liege_opinion = { - opinion = 15 - years = 5 -} - -pretender_opinion = { - opinion = -100 - years = 50 -} - -treacherous_invader_opinion = { - opinion = -100 - years = 100 -} - -helped_me_agaisnt_tyrant_opinion = { - opinion = 25 - years = 15 - decaying = yes -} - -sided_with_tyrant_opinion = { - opinion = -25 - years = 10 - decaying = yes -} - -opinion_of_predecessor = { - years = 5 - decaying = yes -} - -promise_to_predecessor = { - years = 10 - decaying = yes -} - -preferred_heir_opinion = { - opinion = 30 - years = 10 - decaying = yes -} - -unpreferred_heir_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -courtly_title_creation_opinion = { - opinion = 15 - years = 10 - decaying = yes - stacking = yes -} - -courtly_lowborn_grant_opinion = { - opinion = -10 - years = 10 - decaying = yes - stacking = yes -} - -courtly_disinherit_opinion = { - opinion = -20 - years = 10 - decaying = yes - stacking = yes -} - -courtly_court_position_opinion = { - opinion = 10 - years = 10 - decaying = yes - stacking = yes -} - -glory_hound_approves_war_victory_opinion = { - opinion = 10 - years = 10 - decaying = yes - stacking = yes -} - -glory_hound_disapproves_war_white_peace_opinion = { - opinion = -10 - years = 10 - decaying = yes - stacking = yes -} - -glory_hound_disapproves_war_defeat_opinion = { - opinion = -20 - years = 10 - decaying = yes - stacking = yes -} - -parochial_approves_holding_construction_opinion = { - opinion = 20 - years = 10 - decaying = yes - stacking = yes -} - -parochial_approves_holding_upgrade_opinion = { - opinion = 10 - years = 10 - decaying = yes - stacking = yes -} - -parochial_disapproves_strong_war_enemy_opinion = { - opinion = -10 - years = 10 - decaying = yes - stacking = yes -} - -zealot_approves_temple_construction_opinion = { - opinion = 30 - years = 10 - decaying = yes - stacking = yes -} - -zealot_approves_temple_upgrade_opinion = { - opinion = 15 - years = 10 - decaying = yes - stacking = yes -} - -zealot_disapproves_of_asking_hof_for_gold_opinion = { - opinion = -10 - years = 10 - decaying = yes - stacking = yes -} - -zealot_approves_of_learning_language_opinion = { - opinion = 10 - years = 10 - decaying = yes - stacking = yes -} - -zealot_approves_of_religious_display_opinion = { - opinion = 10 - years = 10 - decaying = yes - stacking = yes -} - -zealot_disapproves_of_cynicism_opinion = { - opinion = -10 - years = 10 - decaying = yes - stacking = yes -} - -minority_disapproves_of_conversion_opinion = { - opinion = -20 - years = 10 - decaying = yes - stacking = yes -} - -barons_and_minor_landholders_disapproves_baron_revocations_opinion = { - opinion = -20 - years = 10 - decaying = yes - stacking = yes -} - -kicked_me_from_court = { - years = 20 - decaying = yes - opinion = -30 -} - -kicked_relative_from_court = { - years = 10 - decaying = yes - opinion = -20 -} - -attempt_to_force_end_war_opinion = { - years = 5 - decaying = yes - opinion = -10 -} - -attempt_to_force_surrender_opinion = { - years = 5 - decaying = yes - opinion = -10 -} - -courtly_friends_opinion = { - years = 35 - decaying = yes - opinion = 40 -} - -forced_friendship_opinion = { - years = 15 - decaying = yes - opinion = -20 -} - -shamed_me_opinion = { - years = 15 - decaying = yes - opinion = -30 -} - -forced_divorce_opinion = { - years = 15 - decaying = yes - opinion = -30 -} - -granted_independence_opinion = { - years = 10 - decaying = yes - opinion = 30 -} - -determined_independence_granted_opinion = { - years = 20 - decaying = yes - opinion = 50 -} - -not_repay_loan_opinion = { - years = 20 - decaying = yes - opinion = -30 -} - -break_up_opinion = { - years = 15 - decaying = yes - opinion = -15 -} - -heard_bad_rumours_opinion = { - years = 15 - decaying = yes - opinion = -20 -} - -suicide_opinion = { - monthly_change = 0.1 - decaying = yes -} - -attempted_suicide_opinion = { - monthly_change = 0.1 - decaying = yes -} - -relieved_opinion = { - monthly_change = 0.1 - decaying = yes -} - -curtailed_privileges_opinion = { - opinion = -5 - revoke_title_reason = yes -} - -thinks_liege_incapable_opinion = { - decaying = yes - opinion = -10 - years = 15 -} - -admires_resolve_opinion = { - decaying = yes - opinion = 10 - years = 15 -} - -forgot_name_opinion = { - decaying = yes - monthly_change = 0.1 -} - -delicious_morsel_opinion = { - decaying = yes - monthly_change = 0.1 -} - -frightened_in_court_opinion = { - decaying = yes - monthly_change = 0.1 -} - -lost_strong_hook_opinion = { - opinion = -50 - decaying = yes - years = 10 -} - -lost_weak_hook_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -ensures_my_safety_opinion = { - decaying = yes - monthly_change = 0.1 -} - -#TESTS -tried_to_bribe_opinion = { - opinion = -15 - years = 1 -} - -rejected_invitation_opinion = { - opinion = -20 - years = 1 - decaying = yes -} - -refused_bribe_opinion = { - opinion = -10 - years = 1 -} - -stopped_bribing_me_opinion = { - opinion = -20 - years = 1 - decaying = yes -} - -employer_opinion = { - opinion = 20 -} - -abused_position_of_trust_opinion = { - monthly_change = 0.2 - decaying = yes -} - -held_retinue_party_opinion = { - opinion = 20 - years = 1 - decaying = yes -} - -debug_hates_liege_opinion = { - opinion = -50 -} - -test_opinion_modifier = { - opinion = 50 - years = 1 - decaying = yes -} - -flaunted_lineage_opinion = { - monthly_change = 0.1 - decaying = yes -} - -revoked_court_position_opinion = { - opinion = -30 - years = 10 - decaying = yes - stacking = yes -} - -contempt_opinion = { - monthly_change = 0.05 - decaying = yes -} - -surgically_maimed = { - opinion = -30 - years = 10 - decaying = yes -} - -loyalty_opinion = { - opinion = 25 - years = 10 - decaying = yes -} -wounded_me = { - opinion = -20 - years = 10 - decaying = yes -} - -cheater_opinion = { - monthly_change = 0.1 - decaying = yes -} - -threatened_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -accused_crime_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -spurned_gift_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - -saved_my_life_opinion = { - opinion = 40 - years = 20 - decaying = yes -} - -accidentally_killed_family_opinion = { - opinion = -15 - years = 20 - decaying = yes -} - -murder_feast_family_opinion = { - opinion = -20 - years = 20 - decaying = yes -} - -bloody_wedding_family_opinion = { - opinion = -30 - years = 20 - decaying = yes -} - -left_family_for_dead_opinion = { - opinion = -15 - years = 20 - decaying = yes -} - -passed_me_over_for_regent_opinion = { - monthly_change = 0.1 - decaying = yes -} -designated_bad_regent_opinion = { - monthly_change = 0.1 - decaying = yes -} -designated_me_regent_opinion = { - opinion = 30 - # Remember to sync this to DESIGNATE_DIARCH_INTERVAL_DAYS so that we don't have anyone happy they got the job after they were fired from the job. - years = 10 - decaying = yes -} - -emulating_culture_opinion = { - monthly_change = 0.1 - decaying = yes -} diff --git a/common/opinion_modifiers/00_peasant_affair_opinions.txt b/common/opinion_modifiers/00_peasant_affair_opinions.txt deleted file mode 100644 index 1d412ce82b..0000000000 --- a/common/opinion_modifiers/00_peasant_affair_opinions.txt +++ /dev/null @@ -1,13 +0,0 @@ -#Opinions from the Peasant Affair story - -peasant_affair_rejected_acknowledgement_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -peasant_affair_rejected_lover_opinion = { - opinion = -20 - years = 10 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_poetry_opinions.txt b/common/opinion_modifiers/00_poetry_opinions.txt deleted file mode 100644 index d6ec2b45c4..0000000000 --- a/common/opinion_modifiers/00_poetry_opinions.txt +++ /dev/null @@ -1,31 +0,0 @@ -################################################## -# Poetry Opinions -################################################## - -# This needs to be synced with send_poem_cooldown_years_value in 00_poetry_values.txt. -@send_poem_cooldown_years_value = 5 - -sent_poem_romance_opinion = { - opinion = 20 - monthly_change = 0.3 - decaying = yes -} - -sent_poem_mourning_opinion = { - opinion = 20 - monthly_change = 0.3 - decaying = yes -} - -sent_poem_grateful_opinion = { - opinion = 20 - monthly_change = 0.3 - decaying = yes -} - -sent_poem_humiliated_opinion = { - opinion = -50 - monthly_change = 0.3 - decaying = yes -} - diff --git a/common/opinion_modifiers/00_prison_opinions.txt b/common/opinion_modifiers/00_prison_opinions.txt deleted file mode 100644 index a54e7314d6..0000000000 --- a/common/opinion_modifiers/00_prison_opinions.txt +++ /dev/null @@ -1,71 +0,0 @@ -imprisoned_me = { - opinion = -30 - years = 10 - decaying = yes -} - -imprisoned_me_past = { - opinion = -30 - years = 10 - decaying = yes -} - -released_from_prison = { - opinion = 20 - years = 10 - decaying = yes -} - -demanded_claim_renouncement = { - opinion = -30 - years = 10 - decaying = yes -} - -banished_me = { - opinion = -20 - years = 10 - decaying = yes -} - -demanded_taking_vows = { - opinion = -10 - years = 10 - decaying = yes -} - -demanded_hook = { - opinion = -20 - years = 10 - decaying = yes -} - -demanded_recruitment = { - opinion = -15 - years = 10 - decaying = yes -} - -ransomed_from_prison = { - opinion = 20 - years = 10 - decaying = yes -} - -merciful_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -escaped_from_prison_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -escaped_from_prison_crime = { - opinion = -30 - years = 10 - imprisonment_reason = yes -} diff --git a/common/opinion_modifiers/00_regional_opinions.txt b/common/opinion_modifiers/00_regional_opinions.txt deleted file mode 100644 index 2603c74438..0000000000 --- a/common/opinion_modifiers/00_regional_opinions.txt +++ /dev/null @@ -1,21 +0,0 @@ -#Opinion modifiers connected to regional flavour. - -attempted_slaver_opinion = { - monthly_change = 0.1 - decaying = yes -} - -slaver_opinion = { - monthly_change = 0.1 - decaying = yes -} - -clamped_down_on_slavers_opinion = { - monthly_change = 0.1 - decaying = yes -} - -savaged_my_slavers_opinion = { - monthly_change = 0.2 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_religious_opinions.txt b/common/opinion_modifiers/00_religious_opinions.txt deleted file mode 100644 index a73b90b3a8..0000000000 --- a/common/opinion_modifiers/00_religious_opinions.txt +++ /dev/null @@ -1,157 +0,0 @@ -#Opinion modifiers applied from various religious interactions - -divorced_me_opinion = { - opinion = -25 - decaying = yes - years = 50 -} - -divorced_close_kin = { - opinion = -5 - decaying = yes - years = 5 -} - -set_me_aside_opinion = { - opinion = -20 - decaying = yes - years = 25 -} - - -temporal_condemnation_opinion = { - opinion = -20 - decaying = yes - years = 10 - revoke_title_reason = yes -} - -temporal_condemnation_condemned_me_opinion = { - opinion = -25 - decaying = yes - years = 10 -} - -requested_money_opinion = { - monthly_change = 0.1 - decaying = yes - stacking = yes -} - -claimed_my_title_opinion = { - monthly_change = 0.1 - decaying = yes -} - -demanded_my_conversion_opinion = { - opinion = -20 - monthly_change = 0.1 - decaying = yes - stacking = yes -} - -resisted_conversion_opinion = { - opinion = -15 - years = 10 -} - -illegal_resisted_conversion_opinion = { - opinion = -15 - years = 10 - imprisonment_reason = yes - revoke_title_reason = yes -} - -donated_ghw_money_1 = { - opinion = 5 - years = 10 -} - -donated_ghw_money_2 = { - opinion = 15 - years = 15 -} - -restored_papacy_opinion = { - opinion = 40 - years = 40 -} - -destroyed_papacy_opinion = { - opinion = -40 - years = 40 -} - -established_samarkand_opinion = { - opinion = 40 - years = 40 -} - -followed_the_chakravarti_opinion = { - opinion = 20 - years = 20 -} - -unpledged_from_ghw_opinion = { - opinion = -30 - years = 20 - decaying = yes -} - -donated_to_church_opinion = { - opinion = 15 - years = 10 -} - -founded_holy_order_opinion = { - opinion = 30 - years = 20 - decaying = yes -} - -religious_freedom_opinion = { - opinion = 30 - years = 25 - decaying = yes -} - -asked_me_to_take_vows_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -attempted_literalist_debate_opinion = { - opinion = -15 - monthly_change = 0.2 - decaying = yes -} - -literalist_debate_victor_opinion = { - opinion = -15 - monthly_change = 0.2 - decaying = yes -} - -literalist_debate_loser_opinion = { - opinion = -30 - monthly_change = 0.1 - decaying = yes -} - -cavalier_accusations_opinion = { - opinion = -30 - monthly_change = 0.2 - decaying = yes -} - -brought_heretics_to_my_notice_opinion = { - opinion = 20 - monthly_change = 0.2 - decaying = yes -} - -brought_me_on_pilgrimage_opinion = { - monthly_change = 0.15 - decaying = yes -} diff --git a/common/opinion_modifiers/00_rival_opinions.txt b/common/opinion_modifiers/00_rival_opinions.txt deleted file mode 100644 index 907962b344..0000000000 --- a/common/opinion_modifiers/00_rival_opinions.txt +++ /dev/null @@ -1,53 +0,0 @@ -#Opinions added by Rival events - -rival_insult_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - - -rival_of_friend_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - - -friend_of_rival_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - - -rival_differing_personalities_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -defused_feud_escalation_opinion = { - opinion = 25 - years = 10 - decaying = yes -} - -defended_family_honor_opinion ={ - monthly_change = 0.1 - decaying = yes -} - -attacked_by_rivals_child = { - opinion = -35 - years = 10 - decaying = yes - revoke_title_reason = yes -} - -killed_my_child = { - opinion = -50 - years = 10 - decaying = yes - revoke_title_reason = yes -} diff --git a/common/opinion_modifiers/00_romance_and_adultery_opinions.txt b/common/opinion_modifiers/00_romance_and_adultery_opinions.txt deleted file mode 100644 index c9b4f0bb1a..0000000000 --- a/common/opinion_modifiers/00_romance_and_adultery_opinions.txt +++ /dev/null @@ -1,74 +0,0 @@ -#ROMANCE/ADULTERY - -# Opinions for unfaithful spouse "exposure" (i.e. affair has become public) -slept_with_spouse_exposed_opinion = { - opinion = -30 - years = 15 - decaying = yes - imprisonment_reason = yes -} - -unfaithful_spouse_exposed_opinion = { - opinion = -60 - years = 15 - decaying = yes - imprisonment_reason = yes -} - - -# Opinions for unfaithful spouse discovery (i.e. affair is not public, but spouse knows) -unfaithful_spouse_discovered_opinion = { - opinion = -60 - years = 15 - decaying = yes -} - -slept_with_spouse_discovered_opinion = { - opinion = -30 - years = 15 - decaying = yes -} - - -# Opinions for publicised failure of seduction. -adulterer_advances_on_relevant_character = { - opinion = -30 - years = 10 - decaying = yes -} -fornicator_advances_on_relevant_character = { - opinion = -30 - years = 10 - decaying = yes -} -incestuous_advances_on_relevant_character = { - opinion = -30 - years = 10 - decaying = yes -} -sodomite_advances_on_relevant_character = { - opinion = -30 - years = 10 - decaying = yes -} - - -# Opinions for infidelity_confrontation_story -refused_to_renounce_lover_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -# Soulmate betrayed (cheating (secret or variable), romancing other characters) -betrayed_our_promise = { - opinion = -60 - years = 20 - decaying = yes -} - -how_could_you_opinion = { - opinion = -20 - years = 20 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_scheme_befriend_opinions.txt b/common/opinion_modifiers/00_scheme_befriend_opinions.txt deleted file mode 100644 index f0692c8c6a..0000000000 --- a/common/opinion_modifiers/00_scheme_befriend_opinions.txt +++ /dev/null @@ -1,117 +0,0 @@ -### BEFRIEND OPINIONS -sent_charming_envoy_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - -heard_praise_opinion = { - opinion = 10 - years = 2 - decaying = yes -} - -heard_of_foolishness_opinion = { - opinion = -10 - years = 2 - decaying = yes -} - - -successful_befriending_target_opinion = { - opinion = 50 - years = 3 - decaying = yes -} - - -successful_befriending_owner_opinion = { - opinion = 15 - years = 3 - decaying = yes -} - - -disastrous_befriend_attempt_opinion = { - opinion = -20 - years = 3 - decaying = yes -} - -was_scolded_opinion = { - opinion = -20 - years = 3 - decaying = yes -} - -softening_disposition_opinion = { - opinion = 10 - years = 3 - decaying = yes -} - -cynical_vs_zealous_befriend_opinion = { - opinion = 10 - years = 3 - decaying = yes -} - -trusting_vs_cynical_befriend_opinion = { - opinion = -10 - years = 3 - decaying = yes -} - -gregarious_vs_depressed_befriend_opinion = { - opinion = -10 - years = 3 - decaying = yes -} - -gluttonous_vs_temperate_befriend_opinion = { - opinion = 10 - years = 3 - decaying = yes -} - -ambitious_vs_content_befriend_opinion = { - opinion = 10 - years = 3 - decaying = yes -} - -forced_shy_communication_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - -shared_interests_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - -befriend_common_enemy_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -faction_common_goals_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - -agitated_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - -laughingstock_opinion = { - opinion = -30 - years = 5 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_scheme_seduce_opinion.txt b/common/opinion_modifiers/00_scheme_seduce_opinion.txt deleted file mode 100644 index 928246528d..0000000000 --- a/common/opinion_modifiers/00_scheme_seduce_opinion.txt +++ /dev/null @@ -1,61 +0,0 @@ -#OPINIONS SET BY THE Seduce Scheme - -seduce_bad_time_opinion = { - monthly_change = 1.5 - decaying = yes -} - -seduce_refused_to_end_seduction_spouse_opinion = { - opinion = -40 - years = 15 - decaying = yes - imprisonment_reason = yes -} - -seduce_loss_of_trust_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -seduce_continued_seduction_opinion = { - monthly_change = 0.2 - decaying = yes - imprisonment_reason = yes -} - -seduce_suspicion_target_spouse_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - -seduce_refused_target_spouse_opinion = { - opinion = -50 - years = 15 - decaying = yes - imprisonment_reason = yes -} - -seduce_continued_seduction_of_my_spouse_opinion = { - monthly_change = 0.2 - decaying = yes - imprisonment_reason = yes -} - -seduce_regular_cooldown_opinion = { - years = 5 - decaying = yes - opinion = -10 -} - -seduce_permanent_blocker_opinion = { - opinion = -15 -} - -rebuffed_opinion = { - years = 5 - decaying = yes - opinion = -15 -} - diff --git a/common/opinion_modifiers/00_scheme_sway_opinions.txt b/common/opinion_modifiers/00_scheme_sway_opinions.txt deleted file mode 100644 index a3fba495fa..0000000000 --- a/common/opinion_modifiers/00_scheme_sway_opinions.txt +++ /dev/null @@ -1,26 +0,0 @@ -#OPINIONS SET BY THE Sway Scheme - -scheme_sway_opinion = { - monthly_change = 0.05 - decaying = yes - max = 100 - stacking = yes -} - -sway_misunderstanding_opinion = { - monthly_change = 0.1 - decaying = yes - max = -50 - stacking = yes -} - -sway_blocker_opinion = { - monthly_change = 0.05 - decaying = yes -} - -sway_good_rumors_opinion = { - opinion = 10 - years = 5 - decaying = yes -} diff --git a/common/opinion_modifiers/00_sibling_opinions.txt b/common/opinion_modifiers/00_sibling_opinions.txt deleted file mode 100644 index 4f54c64512..0000000000 --- a/common/opinion_modifiers/00_sibling_opinions.txt +++ /dev/null @@ -1,132 +0,0 @@ -#Opinions caused by sibling events - -told_off_by_sibling_opinion = { - opinion = -15 - years = 5 - decaying = yes -} - -sibling_let_me_down_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -received_land_from_sibling_opinion = { - opinion = 25 - years = 10 - decaying = yes -} - -sibling_goes_back_on_promise_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - -sibling_refused_help_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - -sibling_wants_me_to_change_opinion = { - opinion = -10 - years = 2 - decaying = yes -} - -sibling_behaved_badly_opinion = { - opinion = -15 - years = 5 - decaying = yes -} - -sibling_dislikes_charity_opinion = { - opinion = -15 - years = 10 - decaying = yes -} - - - -sibling_helped_me_with_peasants_opinion = { - opinion = 15 - years = 10 - decaying = yes -} - -has_annoying_sibling_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -refused_to_rein_in_sibling_opinion = { - opinion = -25 - years = 15 - decaying = yes -} - - -sibling_reined_me_in_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - - -sibling_aiding_diplomacy_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -sibling_aiding_martial_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -sibling_aiding_intrigue_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -sibling_aiding_stewardship_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -sibling_aiding_learning_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -told_off_by_stressed_sibling_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - - -sibling_delivered_just_judgement_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - - -delivered_just_judgement_opinion = { - opinion = 15 - years = 10 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_spouse_opinions.txt b/common/opinion_modifiers/00_spouse_opinions.txt deleted file mode 100644 index 2334d92e9c..0000000000 --- a/common/opinion_modifiers/00_spouse_opinions.txt +++ /dev/null @@ -1,125 +0,0 @@ -#Opinions granted by Spouse events - -spouse_similar_personality_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -spouse_similar_life_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -spouse_personal_disagreements_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -spouse_common_friend_opinion = { - opinion = 30 - years = 10 - decaying = yes -} - -spouse_praised_me_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - -spouse_applauded_me_opinion = { - opinion = 25 - years = 15 - decaying = yes -} - -spouse_spoke_highly_opinion = { - opinion = 30 - years = 15 - decaying = yes -} - -spouse_spoke_poorly_opinion = { - opinion = -10 - years = 10 - decaying = yes -} - -spouse_ill_rumors_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -spouse_vicious_rumors_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - - -spouse_suspecting_motives_opinion = { - opinion = -10 - years = 5 - decaying = yes -} - - -known_adultery_opinion = { - opinion = -30 -} - - -spouses_lover_opinion = { - opinion = -30 -} - - -spouse_pleasant_relationship_opinion = { - opinion = 30 - years = 10 - decaying = yes -} - - -spouse_unpleasant_relationship_opinion = { - opinion = -30 - years = 10 - decaying = yes -} - - -spouse_trusted_me_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - - -spouse_warned_me_opinion = { - opinion = 20 - years = 10 - decaying = yes -} - - -spouse_caused_suspicion_opinion = { - opinion = -20 - years = 5 - decaying = yes -} - -spouse_made_secondary_opinion = { - opinion = -30 - years = 5 - decaying = yes -} - -spouse_made_primary_opinion = { - opinion = 10 - years = 5 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_stress_effect_opinions.txt b/common/opinion_modifiers/00_stress_effect_opinions.txt deleted file mode 100644 index ea7da7c855..0000000000 --- a/common/opinion_modifiers/00_stress_effect_opinions.txt +++ /dev/null @@ -1,92 +0,0 @@ -#Opinion modifiers applied from the Stress effect events - -stress_neglected_child_opinion = { - opinion = -25 - #days = default_stress_opinion_duration - years = 5 - decaying = yes -} - -stress_neglected_spouse_opinion = { - opinion = -30 - #days = default_stress_opinion_duration - years = 5 - decaying = yes -} - -stress_disagreed_with_councillor = { - opinion = -20 - #days = default_stress_opinion_duration - years = 5 - decaying = yes -} - -stress_upset_councillor = { - opinion = -20 - #days = default_stress_opinion_duration - years = 5 - decaying = yes -} - -stress_outburst = { - opinion = -20 - #days = default_stress_opinion_duration - years = 5 - decaying = yes -} - -stress_lashed_out_opinion = { - opinion = -25 - years = 5 - decaying = yes -} - - -stress_excessive_outburst_opinion = { - opinion = -35 - years = 10 - decaying = yes -} - - -stress_argument_with_spouse_opinion = { - opinion = -30 - years = 5 - decaying = yes -} - - -horrifying_discovery_cannibalism_opinion = { - opinion = -40 - years = 10 - decaying = yes -} - -heir_of_stressed_liege_opinion = { - opinion = -25 - years = 10 - decaying = yes -} - - -stress_unceremoniously_dismissed_opinion = { - opinion = -25 - years = 5 - decaying = yes -} - -stress_abdicated_opinion = { - monthly_change = 0.1 - decaying = yes -} - -stress_sycophant_opinion = { - monthly_change = 0.2 - decaying = yes -} - -stress_denied_food_opinion = { - opinion = -40 - years = 15 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/00_struggle_opinions.ola.txt b/common/opinion_modifiers/00_struggle_opinions.ola.txt deleted file mode 100644 index 0f8dbe58f5..0000000000 --- a/common/opinion_modifiers/00_struggle_opinions.ola.txt +++ /dev/null @@ -1,116 +0,0 @@ - #Perplexed opinion - -perplexed_opinion = { - monthly_change = 0.1 - decaying = yes -} - -slightly_disappointed_opinion = { - monthly_change = 0.2 - decaying = yes -} - -unfair_expectations_opinion = { - monthly_change = 0.1 - decaying = yes -} - -funded_righteous_cause_opinion = { - monthly_change = 0.2 - decaying = yes -} - -replaced_me_opinion = { - opinion = -20 - decaying = no - years = 10 -} - -left_me_to_wolves_opinion = { - opinion = -30 - decaying = no - years = 20 -} - -handed_over_my_enemy_opinion { - monthly_change = 0.1 - decaying = yes -} - -harbored_a_fugitive_opinion = { - opinion = -10 - decaying = no - years = 10 -} - -let_me_keep_my_job_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -rejected_my_enemy_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - - failed_comfort_opinion = { - opinion = -20 - decaying = yes - years = 10 - } - - -made_amends_opinion = { - decaying = yes - years = 10 -} - -avenged_relative_opinion = { - decaying = yes - years = 10 -} - -failed_to_capture_killers_opinion = { - decaying = yes - years = 10 -} - -blames_for_death_of_relative_opinion = { - decaying = no - years = 10 -} - -ignored_demands_opinion = { - decaying = no - years = 10 -} - - listened_opinion = { - opinion = 20 - decaying = yes - years = 10 - } - - - - privileges_to_people_opinion = { - decaying = yes - years = 10 - } - - - threatened_by_buildup_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - - happy_opinion = { - decaying = yes - years = 10 - } - - - diff --git a/common/opinion_modifiers/00_title_opinions.txt b/common/opinion_modifiers/00_title_opinions.txt deleted file mode 100644 index 15e1284b21..0000000000 --- a/common/opinion_modifiers/00_title_opinions.txt +++ /dev/null @@ -1,45 +0,0 @@ -usurped_title = { - opinion = -50 - years = 12 -} - -tried_to_usurped_title = { - opinion = -30 - years = 12 -} - -destroyed_title = { - opinion = -25 - years = 10 -} - -pressed_my_claim = { - opinion = 50 - years = 20 -} - -revoked_title = { - opinion = -80 - years = 10 -} - -granted_vassal = { - opinion = 40 - years = 10 -} - -retracted_vassal = { - opinion = -40 - years = 10 -} - -became_vassal = { - opinion = 10 -} - -treasonous_retract_refusal = { - opinion = -20 - years = 10 - imprisonment_reason = yes - revoke_title_reason = yes -} diff --git a/common/opinion_modifiers/00_travel_opinions.txt b/common/opinion_modifiers/00_travel_opinions.txt deleted file mode 100644 index 87b1d91677..0000000000 --- a/common/opinion_modifiers/00_travel_opinions.txt +++ /dev/null @@ -1,253 +0,0 @@ - -whipped_me_opinion = { - opinion = -50 - decaying = yes - years = 15 -} - -spy_suspicion_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -poached_military_opinion = { - opinion = -20 - decaying = yes - years = 5 -} - -recruited_me_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -sabotaged_pastures_opinion = { - opinion = -30 - decaying = yes - years = 15 -} - -improved_my_pastures_opinion = { - opinion = 30 - decaying = yes - years = 15 -} - -punished_my_camel_farm_opinion = { - opinion = -20 - decaying = yes - years = 15 -} - -slaughtered_my_camel_opinion = { - opinion = -40 - decaying = yes - years = 15 -} - -almost_crushed_me_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -scolded_my_child_opinion = { - opinion = -20 - decaying = yes - years = 5 -} - -burned_my_orchard_opinion = { - opinion = -30 - decaying = yes - imprisonment_reason = yes - years = 10 -} - -treated_me_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -treated_my_child_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -fireshy_liege_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -dishonorable_liege_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -pillaged_my_plantation_opinion = { - opinion = -40 - decaying = yes - years = 15 -} - -helped_during_fire_opinion = { - opinion = 40 - decaying = yes - years = 15 -} - -local_hero_liege_opinion = { - opinion = 40 - decaying = yes - years = 15 -} - -sent_me_into_fire_opinion = { - opinion = -20 - decaying = yes - years = 5 -} - -saved_me_from_bull_opinion = { - opinion = 20 - decaying = yes - years = 5 -} - -bull_rushed_opinion = { - opinion = -20 - decaying = yes - years = 5 -} - -tip_about_witch_opinion = { - opinion = 15 - decaying = yes - years = 5 -} - -revealed_witch_to_me_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -whipped_my_subject_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -held_me_back_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -attacked_my_subject_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -subject_hospitality_abused_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -subject_compensated_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -did_not_stop_heresy_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -stopped_heretic_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -imprisoned_heretic_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -manhunted_with_me_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -hunted_with_me_opinion = { - opinion = 20 - decaying = yes - years = 5 -} - -burned_my_jungle_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -ignored_my_assassination_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -ignored_assault_on_me_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -subject_imprisoned_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -left_companion_behind_opinion = { - opinion = -10 - decaying = yes - years = 10 -} - -let_ill_recover_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -cared_for_my_health_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -tried_to_poison_me_opinion = { - opinion = -40 - decaying = yes - years = 20 -} - -ignored_my_illness_opinion = { - opinion = -20 - decaying = yes - years = 5 -} diff --git a/common/opinion_modifiers/00_vassal_promise_opinions.txt b/common/opinion_modifiers/00_vassal_promise_opinions.txt deleted file mode 100644 index ec69ad0362..0000000000 --- a/common/opinion_modifiers/00_vassal_promise_opinions.txt +++ /dev/null @@ -1,16 +0,0 @@ -promised_vassal_holy_war_opinion = { - opinion = 20 - days = 180 -} -promised_vassal_claim_war_opinion = { - opinion = 20 - days = 180 -} -favored_vassal_opinion = { - monthly_change = 0.1 - decaying = yes -} -favored_vassals_rival_opinion = { - monthly_change = 0.1 - decaying = yes -} diff --git a/common/opinion_modifiers/00_war_opinions.txt b/common/opinion_modifiers/00_war_opinions.txt deleted file mode 100644 index 82d8a80391..0000000000 --- a/common/opinion_modifiers/00_war_opinions.txt +++ /dev/null @@ -1,75 +0,0 @@ -declared_war = { - opinion = -25 - years = 12 - decaying = yes - imprisonment_reason = yes - revoke_title_reason = yes -} - -declared_war_on_son_daughter = { - opinion = -15 - years = 10 - decaying = yes -} - -vassal_lost_faction_revolt_war = { - opinion = -30 - years = 15 - decaying = yes - revoke_title_reason = yes - imprisonment_reason = yes - banish_reason = yes - execute_reason = yes -} - -vassal_wp_faction_revolt_war = { - opinion = -30 - years = 15 - decaying = yes - revoke_title_reason = yes - imprisonment_reason = yes -} - -peasant_revolt_opinion = { - opinion = -30 - years = 30 - decaying = yes - revoke_title_reason = yes - imprisonment_reason = yes - banish_reason = yes - execute_reason = yes -} - -liege_lost_declared_religious_war = { - opinion = -15 - years = 5 -} - -liege_lost_mongol_invasion_war = { - opinion = -20 - years = 5 -} - -rejected_call_to_defensive_war = { - opinion = -50 - years = 25 - decaying = yes -} - -rejected_call_to_offensive_war = { - opinion = -20 - years = 10 - decaying = yes -} - -contributed_in_war = { - opinion = 100 - monthly_change = 1 - decaying = yes -} - -warmonger_opinion = { - opinion = -50 - decaying = yes - years = 10 -} diff --git a/common/opinion_modifiers/01_dlc_bp1_filippa_opinions.txt b/common/opinion_modifiers/01_dlc_bp1_filippa_opinions.txt deleted file mode 100644 index 1cc70071a0..0000000000 --- a/common/opinion_modifiers/01_dlc_bp1_filippa_opinions.txt +++ /dev/null @@ -1,18 +0,0 @@ - -primary_heir_replaced_opinion = { - opinion = -50 - years = 20 - decaying = no -} - -parent_primary_heir_replaced_opinion = { - opinion = -50 - years = 20 - decaying = no -} - -tutored_me_opinion = { - opinion = 30 - years = 10 - decaying = yes -} \ No newline at end of file diff --git a/common/opinion_modifiers/01_dlc_bp1_opinions.txt b/common/opinion_modifiers/01_dlc_bp1_opinions.txt deleted file mode 100644 index fde23620c5..0000000000 --- a/common/opinion_modifiers/01_dlc_bp1_opinions.txt +++ /dev/null @@ -1,129 +0,0 @@ -awkward_opinion = { - monthly_change = 0.05 - decaying = yes -} - -relied_on_me_opinion = { - opinion = 10 - years = 10 - decaying = yes -} - -vanquished_opinion = { - monthly_change = 0.05 - decaying = yes -} - -defiled_place_of_worship_opinion = { - opinion = -30 - years = 10 - decaying = no -} - -lust_opinion = { - monthly_change = 0.05 - decaying = yes -} - -spurned_opinion = { - monthly_change = 0.1 - decaying = yes -} - -warily_flattered_opinion = { - monthly_change = 0.1 - decaying = yes -} - -emotionally_devastated_opinion = { - monthly_change = 0.05 - decaying = yes -} - -confused_opinion = { - monthly_change = 0.05 - decaying = yes -} - -# Family Feud -house_feud_opinion = { - opinion = -25 -} - -house_feud_ignored_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -house_feud_followed_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -house_feud_enthusiast_opinion = { - opinion = 20 - decaying = yes - years = 5 -} - -house_feud_liege_cancelled_opinion = { - opinion = 15 - decaying = yes - years = 5 -} - -house_feud_liege_maintained_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -house_feud_victim_feud_opinion = { - opinion = 20 - decaying = yes - years = 5 -} - -house_feud_victim_rival_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -house_feud_victim_ignored_opinion = { - opinion = -15 - decaying = yes - years = 5 -} - -vengeful_opinion = { - monthly_change = 0.05 - decaying = yes -} - -#Sycophant -disgruntled_opinion = { - opinion = -10 - years = 10 - decaying = no -} - -released_attempted_murderer_opinion = { - opinion = -20 - years = 10 - decaying = yes -} - -partners_in_crime_opinion = { - opinion = 10 - years = 10 - decaying = no -} - -mollified_opinion = { - opinion = 10 - years = 5 - decaying = yes -} diff --git a/common/opinion_modifiers/01_dlc_ep1_opinions.txt b/common/opinion_modifiers/01_dlc_ep1_opinions.txt deleted file mode 100644 index ef3c7dd4fe..0000000000 --- a/common/opinion_modifiers/01_dlc_ep1_opinions.txt +++ /dev/null @@ -1,67 +0,0 @@ -################################################## -# #Hold Court - -ep1_took_advantage_of_kindness_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -ep1_rejected_sponsoring_a_feast_opinion = { - opinion = -20 - years = 5 - decaying = yes -} - -ep1_accepted_sponsoring_a_feast_opinion = { - opinion = 20 - years = 5 - decaying = yes -} - -absolutely_horrified_opinion = { - opinion = -100 - years = 50 - decaying = yes -} - -## From hold_court.7060 -developing_attraction_opinion = { - monthly_change = 0.05 - decaying = yes -} - -took_my_advice_opinion = { - monthly_change = 0.1 - decaying = yes -} - -ep1_disagreed_with_decision_opinion = { - opinion = -20 - years = 5 - decaying = yes -} - -ep1_agreed_with_decision_opinion = { - opinion = 10 - years = 5 - decaying = yes -} - -ep1_disagreed_with_lowborn_adoption_opinion = { - opinion = -40 - years = 10 - decaying = yes -} - -sumptuary_debate_victor_opinion = { - opinion = -15 - monthly_change = 0.2 - decaying = yes -} - -sumptuary_debate_loser_opinion = { - opinion = -30 - monthly_change = 0.1 - decaying = yes -} diff --git a/common/opinion_modifiers/01_dlc_fp1_opinions.txt b/common/opinion_modifiers/01_dlc_fp1_opinions.txt deleted file mode 100644 index 93a9af4872..0000000000 --- a/common/opinion_modifiers/01_dlc_fp1_opinions.txt +++ /dev/null @@ -1,77 +0,0 @@ -################################################## -# #Decision Opinions - -king_of_the_north_sea_opinion = { - opinion = 50 - decaying = yes - years = 20 -} - -queen_of_the_north_sea_opinion = { - opinion = 50 - decaying = yes - years = 20 -} - -fp1_held_grand_sacrifice_opinion = { - opinion = 30 - decaying = yes - years = 5 -} - -fp1_held_human_sacrifice_opinion = { - opinion = -50 - decaying = yes - years = 5 -} - -################################################## -# #Event Opinions - -fp1_rejected_my_sword_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -fp1_accepted_my_sword_opinion = { - opinion = 30 - decaying = yes - years = 20 -} - -fp1_defied_religious_traditions_opinion = { - opinion = -15 - decaying = yes - years = 10 -} - -fp1_usurped_my_authority_opinion = { - opinion = -40 - decaying = yes - years 10 -} - -fp1_saved_me_from_the_mob_opinion = { - opinion = 50 - decaying = yes - years = 20 -} - -fp1_abandoned_me_to_the_mob_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -fp1_honoured_heathen_opinion = { - opinion = -40 - decaying = yes - years = 10 -} - -fp1_desecrated_corpse_of_loved_one = { - opinion = -40 - decaying = yes - years = 20 -} \ No newline at end of file diff --git a/common/opinion_modifiers/01_roco_opinions.txt b/common/opinion_modifiers/01_roco_opinions.txt deleted file mode 100644 index 49fc96c4dc..0000000000 --- a/common/opinion_modifiers/01_roco_opinions.txt +++ /dev/null @@ -1,93 +0,0 @@ -6010_mismanagement_opinion = { - opinion = -20 - revoke_title_reason = yes -} - -hold_court_7000_forcibly_converted_faith = { - monthly_change = 0.5 - decaying = yes -} - -hold_court_7000_rebuked_by_spouse = { - monthly_change = 0.5 - decaying = yes -} - -hold_court_7000_forced_penance = { - monthly_change = 10 - decaying = yes -} - -hold_court_7000_convinced = { - monthly_change = 0.5 - decaying = yes -} - -hold_court_7000_unconvinced = { - monthly_change = 0.5 - decaying = yes -} - -protected_me_opinion = { - monthly_change = 0.1 - decaying = yes -} -betrayed_me_opinion = { - monthly_change = 0.1 - decaying = yes -} - -tricked_opinion = { - monthly_change = 0.1 - decaying = yes -} - -attempted_trickery_opinion = { - monthly_change = 0.1 - decaying = yes -} - -attempted_protection_opinion = { - monthly_change = 0.1 - decaying = yes -} - -trusted_me_opinion = { - monthly_change = 0.1 - decaying = yes -} - -ignored_opinion = { - monthly_change = 0.5 - decaying = yes -} - -kicked_out_opinion = { - monthly_change = 0.1 - decaying = yes -} - -helped_negotiation_opinion = { - monthly_change = 0.1 - decaying = yes -} - -just_opinion = { - monthly_change = 0.1 - decaying = yes -} - -villain_opinion = { - monthly_change = 0.1 - decaying = yes -} - -outbid_opinion = { - monthly_change = 0.1 - decaying = yes -} - -claimed_my_artifact_opinion = { - monthly_change = 0.1 - decaying = yes -} diff --git a/common/opinion_modifiers/02_dlc_bp1_opinions.txt b/common/opinion_modifiers/02_dlc_bp1_opinions.txt deleted file mode 100644 index 1a7a577349..0000000000 --- a/common/opinion_modifiers/02_dlc_bp1_opinions.txt +++ /dev/null @@ -1,41 +0,0 @@ -threw_excrement_opinion = { - opinion = 50 - decaying = yes - years = 20 -} - -drenched_in_excrement_opinion = { - opinion = 50 - decaying = yes - years = 20 -} - -didnt_trust_friend_opinion = { - opinion = -20 - decaying = yes - years = 20 -} - -trusted_friend_opinion = { - opinion = 20 - decaying = yes - years = 20 -} - -forgave_me_opinion = { - opinion = 20 - decaying = yes - years = 20 -} - -improved_artifact_opinion = { - opinion = 30 - decaying = yes - years = 20 -} - -messed_with_artifact_opinion = { - opinion = -20 - decaying = yes - years = 20 -} diff --git a/common/opinion_modifiers/03_dlc_fp2_opinions.txt b/common/opinion_modifiers/03_dlc_fp2_opinions.txt deleted file mode 100644 index ed2ea21ee0..0000000000 --- a/common/opinion_modifiers/03_dlc_fp2_opinions.txt +++ /dev/null @@ -1,76 +0,0 @@ -################################################## -# #General Opinions - -################################################## -# #Decision Opinions - -################################################## -# #Event Opinions -fp2_consulted_me_opinion = { - opinion = 10 - decaying = yes - years = 5 -} - -fp2_questioned_my_faith_opinion = { - opinion = -25 - decaying = yes - years = 5 -} - -fp2_reassured_faith_opinion = { - opinion = 25 - decaying = yes - years = 10 -} - -fp2_tolerated_me_opinion = { - opinion = 25 - decaying = yes - years = 10 -} - -struggle_3001_spouse_crown_modifier = { - monthly_change = 0.1 - decaying = yes -} - - -bizarre_claims_opinion_modifier = { - opinion = -30 - years = 30 -} - -fp2_council_toledo_opinion = { - monthly_change = 0.1 - decaying = yes -} - -fp2_excluded_from_council_toledo_opinion = { - monthly_change = 0.1 - decaying = yes -} - -fp2_council_toledo_new_hof_opinion = { - monthly_change = 0.1 - decaying = yes - opinion = -20 -} - -fp2_council_toledo_pope_opinion = { - monthly_change = 0.1 - decaying = yes - opinion = 20 -} - -fp2_enforced_truce_opinion = { - opinion = -20 - monthly_change = 0.1 - decaying = yes -} - -absorbed_de_jure_opinion = { - opinion = -20 - monthly_change = 0.1 - decaying = yes -} diff --git a/common/opinion_modifiers/04_dlc_ep2_filippa_opinions.txt b/common/opinion_modifiers/04_dlc_ep2_filippa_opinions.txt deleted file mode 100644 index f5b5356401..0000000000 --- a/common/opinion_modifiers/04_dlc_ep2_filippa_opinions.txt +++ /dev/null @@ -1,33 +0,0 @@ - -################################################## -# Tour Opinions - -tour_dragged_prisoners_opinion = { - opinion = -20 - decaying = yes - years = 10 -} - -tour_loyal_subject_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -tour_fanatic_cat_lover_subject_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -tour_fanatic_dog_lover_subject_opinion = { - opinion = 20 - decaying = yes - years = 10 -} - -tour_disapprove_of_killing_opinion = { - opinion = -20 - decaying = yes - years = 10 -} \ No newline at end of file diff --git a/common/opinion_modifiers/04_dlc_ep2_opinions.txt b/common/opinion_modifiers/04_dlc_ep2_opinions.txt deleted file mode 100644 index f7f8568bc4..0000000000 --- a/common/opinion_modifiers/04_dlc_ep2_opinions.txt +++ /dev/null @@ -1,693 +0,0 @@ -############# -# EP2 Opinions -############# - -################################################## -# General Opinions - -acclaimed_opinion = { - monthly_change = 0.05 - decaying = yes -} - - - -################################################## -# Diarch Opinions - -strife_opinion = { - monthly_change = 0.05 - decaying = yes - stacking = yes -} - -################################################## -# Tour Opinions - -favor_opinion = { - monthly_change = 0.05 - decaying = yes -} - -hook_progress_opinion = { - opinion = 25 - decaying = yes - years = 10 -} - -no_booze_opinion = { - monthly_change = 0.05 - decaying = yes -} - -suspicious_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tasty_food_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tax_avoidance_opinion = { - imprisonment_reason = yes - monthly_change = 0.05 - decaying = yes -} - -refused_gift_opinion = { - monthly_change = 0.05 - decaying = yes -} - -taxation_tour_opinion = { - opinion = -15 - monthly_change = 0.05 - decaying = yes -} - -dread_tour_opinion = { - monthly_change = 0.05 - decaying = yes -} - -refused_tour_demand_opinion = { - imprisonment_reason = yes - opinion = -20 - years = 10 -} - -good_majesty_tour_opinion = { - monthly_change = 0.05 - decaying = yes -} - -turned_away_tour_opinion = { - imprisonment_reason = yes - opinion = -25 - years = 10 -} - -################################################## -# Tournament Opinions - -tournament_disqualified_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_upset_crowd_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_host_pas_darmes_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_ejected_interloper_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_stopped_pas_darmes_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_ejected_opinion = { - decaying = no -} - -tournament_stole_knight_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_pas_darmes_forbidden_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_compensated_tragedy_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_forgave_tragedy_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_replaced_champion_opinion = { - monthly_change = 0.05 - decaying = yes -} - -woo_attendee_contest_opinion = { - monthly_change = 0.05 - decaying = yes -} - -woo_attendee_spouse_contest_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_marriage_prize_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_marriage_prize_parent_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_received_favor_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_spurned_favor_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_vowed_to_lose_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_refused_to_lose_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_lost_for_love_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_convinced_priest_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_unconvinced_priest_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_not_competing_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_dismissed_priest_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_elevated_peasant_knight_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tax_avoidance_crime = { - opinion = -5 - imprisonment_reason = yes - revoke_title_reason = yes -} - -ep2_liege_relocated_my_courtier_opinion = { - opinion = -10 - decaying = yes - years = 5 -} - -ep2_disliked_liege_relocated_my_courtier_opinion = { - opinion = -50 - decaying = yes - years = 15 -} - -ep2_humored_liege_opinion = { - opinion = 30 - decaying = yes - years = 10 -} - -ep2_declined_exotic_dinner_inviation_opinion = { - opinion = -30 - decaying = yes - years = 10 -} - -tournament_mocked_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_confused_opinion = { - monthly_change = 0.1 - decaying = yes -} - -tournament_respected_wishes_opinion = { - monthly_change = 0.1 - decaying = yes -} - -tournament_mercy_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_agreed_opinion = { - monthly_change = 0.05 - decaying = yes -} -tournament_savagely_beaten_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_savagely_beaten_consort_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_savagely_beaten_friend_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_savagely_beaten_lover_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_savagely_beaten_family_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_savagely_beaten_liege_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_failed_woo_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_attempted_sabotage_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_tolerated_sabotage_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_lancer_vassal_tyranny_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_lancer_gazumped_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_congratulate_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_congratulate_toast_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_congratulate_vague_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_banished_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_imprisoned_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_dishonorable_gamer_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_rubbed_in_board_game_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_insult_to_injury_board_game_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_take_back_board_game_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_shared_vulnerability_board_game_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_failed_pas_darmes_reclaim_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_admonished_duelist_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_expelled_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_executed_workers_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_spared_workers_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_compensated_victims_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_collapse_victim_family_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_tyrannical_disqualification_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_punished_arsonists_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_donated_materials_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_fire_uncompensated_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_reneged_marriage_prize_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_honored_marriage_prize_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_bought_round_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_cut_off_round_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_banished_farrier_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_failed_gift_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_arrested_revelers_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_tolerated_revelers_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_religious_tension_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_favored_revelers_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_dragged_off_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_streaker_opinion = { - monthly_change = 0.05 - decaying = yes - imprisonment_reason = yes -} - -tournament_wronged_me_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_bribed_replacement_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_ended_rightly_opinion = { - monthly_change = 0.05 - decaying = yes -} - -tournament_appointed_champion_opinion = { - decaying = yes - monthly_change = 0.05 -} - -tournament_liege_concession_opinion = { - monthly_change = 0.05 - decaying = yes -} - -################################################## -# Wedding Opinions - -wedding_understanding_spouse_opinion = { - opinion = 30 - decaying = no - years = 10 - stacking = yes -} - -wedding_challenging_spouse_opinion = { - opinion = 15 - decaying = no - years = 10 -} - -wedding_cruel_spouse_opinion = { - opinion = -30 - decaying = no - years = 10 -} - -wedding_useless_spouse_opinion = { - opinion = -30 - decaying = no - years = 10 -} - -wedding_good_entertainment_opinion = { - opinion = 15 - decaying = yes - monthly_change = 0.05 -} - -wedding_scary_entertainment_opinion = { - opinion = -25 - decaying = yes - monthly_change = 0.05 -} - -wedding_traditional_ritual_opinion = { - opinion = 10 - decaying = yes - monthly_change = 0.05 -} - -wedding_no_ritual_opinion = { - opinion = -10 - decaying = yes - monthly_change = 0.05 -} - -came_to_my_wedding_opinion = { - decaying = yes - monthly_change = 0.5 -} - -wnight_common_things_opinion = { - opinion = 10 - decaying = no - years = 10 -} - -wnight_nothing_in_common_opinion = { - opinion = -5 - decaying = no - years = 10 -} - -wbanquet_white_animal_opinion = { - monthly_change = 0.05 - decaying = yes -} - -organized_my_wedding_opinion = { - opinion = 20 - decaying = yes - monthly_change = 0.05 -} - -honored_opinion = { - opinion = 30 - decaying = yes - monthly_change = 0.05 -} - -wedding_good_option_opinion = { - opinion = 10 - monthly_change = 0.5 - decaying = yes - stacking = yes -} - -wedding_balanced_option_opinion = { - opinion = 10 - monthly_change = 0.5 - decaying = yes - stacking = yes -} - -wedding_barred_bedding_doors_opinion = { - opinion = -10 - monthly_change = 0.5 - decaying = yes -} - -wedding_forced_bedding_ceremony_opinion = { - opinion = 10 - monthly_change = 0.5 - decaying = yes -} - -wedding_caved_to_bedding_opinion = { - opinion = 10 - monthly_change = 0.5 - decaying = yes -} - -coward_opinion = { - opinion = -10 - decaying = yes - monthly_change = 0.05 -} - -berated_child_opinion = { - opinion = -40 - monthly_change = 0.5 - decaying = yes -} - -give_a_chance_opinion = { - opinion = 40 - monthly_change = 0.5 - decaying = yes -} - -unforgiven_opinion = { - decaying = yes - monthly_change = 0.05 -} - -opened_my_eyes_opinion = { - opinion = 40 - monthly_change = 0.5 - decaying = yes -} - -kept_my_secret_opinion = { - opinion = 40 - monthly_change = 0.5 - decaying = yes -} - -ruined_wedding_night_opinion = { - opinion = -20 - monthly_change = 0.5 - decaying = yes -} - -revealed_lover_wedding_night_opinion = { - opinion = -20 - monthly_change = 0.5 - decaying = yes -} - -making_an_effort_opinion = { - opinion = 30 - monthly_change = 0.5 - decaying = yes -} - -feeling_welcome_opinion = { - monthly_change = 0.5 - decaying = yes -} diff --git a/common/playable_difficulty_infos/00_playable_difficulty_infos.txt b/common/playable_difficulty_infos/00_playable_difficulty_infos.txt deleted file mode 100644 index 852c5ab053..0000000000 --- a/common/playable_difficulty_infos/00_playable_difficulty_infos.txt +++ /dev/null @@ -1,76 +0,0 @@ -pdi_at_war = { - is_shown = { - is_at_war = yes - } -} - -pdi_no_player_heir = { - is_shown = { - NOT = { exists = player_heir } - } -} -pdi_primary_heir_of_wrong_dynasty = { - is_shown = { - exists = player_heir - exists = primary_heir - NOT = { primary_heir.dynasty = root.dynasty } - } -} - -pdi_cannot_have_children = { - is_shown = { - can_have_children = no - } -} - -pdi_female_under_male_dominated_doctrine = { - is_shown = { - is_female = yes - faith = { has_doctrine = doctrine_gender_male_dominated } - } -} -pdi_male_under_female_dominated_doctrine = { - is_shown = { - is_female = no - faith = { has_doctrine = doctrine_gender_female_dominated } - } -} - -pdi_liege_of_hostile_faith = { - is_shown = { - exists = liege - liege = { - faith = { - faith_hostility_level = { - target = root.faith - value >= faith_hostile_level - } - } - } - } -} - -pdi_patrilinial_marriage_as_woman = { - is_shown = { - is_female = yes - patrilinear_marriage = yes - } -} -pdi_matrilinial_marriage_as_man = { - is_shown = { - is_female = no - matrilinear_marriage = yes - } -} - -pdi_is_in_debt = { - is_shown = { - gold < 0 - } -} - -pdi_has_poor_health = { - is_shown = { - health <= poor_health - } -} diff --git a/common/playable_difficulty_infos/_playable_difficulty_infos.info b/common/playable_difficulty_infos/_playable_difficulty_infos.info deleted file mode 100644 index 80424140dc..0000000000 --- a/common/playable_difficulty_infos/_playable_difficulty_infos.info +++ /dev/null @@ -1,10 +0,0 @@ -Difficulty information shown when selecting a character to play in the lobby. - -== Structure == - -# Key is also used as localization key for the entry -psi_at_war = { - # Trigger to control if the entry is shown for a character - # Scope: root = character - is_shown = {} -} diff --git a/common/religion/doctrines/00_core_tenets.txt b/common/religion/doctrines/00_core_tenets.txt index 7a4c1f9f47..dbb205d895 100644 --- a/common/religion/doctrines/00_core_tenets.txt +++ b/common/religion/doctrines/00_core_tenets.txt @@ -80,6 +80,10 @@ character_modifier = { monthly_learning_lifestyle_xp_gain_mult = 0.2 } + + traits = { + virtues = { scholar } + } } tenet_armed_pilgrimages = { @@ -391,6 +395,10 @@ divine_marriage_opinion = 10 divine_marriage_piety_gain_active = yes } + + traits = { + virtues = { pure_blooded = 2 } + } } # Warcraft @@ -679,6 +687,36 @@ parameters = { clergy_can_fight = yes } + + name = { + first_valid = { + triggered_desc = { + trigger = { + #OR = { + #has_doctrine = doctrine_heretic_branch_zandik + has_doctrine = tenet_pastoral_isolation + #} + } + desc = tenet_unrelenting_faith_zandik_name + } + desc = tenet_unrelenting_faith_name + } + } + + desc = { + first_valid = { + triggered_desc = { + trigger = { + #OR = { + #has_doctrine = doctrine_heretic_branch_zandik + has_doctrine = tenet_pastoral_isolation + #} + } + desc = tenet_unrelenting_faith_zandik_desc + } + desc = tenet_unrelenting_faith_desc + } + } } tenet_vows_of_poverty = { @@ -1057,7 +1095,7 @@ traits = { virtues = { - lifestyle_mystic + lifestyle_mystic = { weight = 1 } } } @@ -1360,16 +1398,13 @@ } } - is_shown = { - - # Warcraft - NOT = { like_christianity_religion_trigger = yes } - - } - parameters = { sanctioned_false_conversion = yes } + + character_modifier = { + monthly_intrigue_lifestyle_xp_gain_mult = 0.1 #FP3 addition to make this tenet more attractive + } } tenet_tax_nonbelievers = { @@ -1424,6 +1459,15 @@ levy_reinforcement_rate_same_faith = 0.25 levy_reinforcement_rate_different_faith = -0.25 } + + parameters = { + unlock_jizya_contract = yes + } + + is_shown = { + like_christianity_religion_trigger = no + NOT = { has_doctrine = special_doctrine_jizya } + } } ############################# @@ -1858,8 +1902,8 @@ } traits = { - virtues = { gluttonous = 2 } - sins = { temperate = 2 } + virtues = { gluttonous = { scale = 2 weight = 2 } } + sins = { temperate = { scale = 2 weight = 2 } } } character_modifier = { @@ -1969,7 +2013,12 @@ } traits = { - virtues = { lifestyle_mystic = 5 } + virtues = { + lifestyle_mystic = { + scale = 5 + weight = 2 + } + } } } @@ -2150,6 +2199,7 @@ parameters = { sky_burials_active = yes + can_build_towers_of_silence_active = yes } character_modifier = { @@ -2171,12 +2221,15 @@ } is_shown = { - - # Warcraft - evil_public_religion_trigger = no - - tenet_sun_worship_allowed_trigger = yes - + OR = { + has_doctrine = tenet_sun_worship #If you already have it + AND = { + # Warcraft + evil_public_religion_trigger = no + + tenet_sun_worship_allowed_trigger = yes + } + } } # Warcraft @@ -3441,6 +3494,120 @@ hills_advantage = 5 } } + + ############################# + # FP3 Tenets # + ############################# + + tenet_fp3_fedayeen = { + icon = core_tenet_assassin + + name = { + first_valid = { + desc = tenet_fp3_sacred_murder_name + } + } + + is_shown = { } + + can_pick = { + custom_description = { + text = incompatible_tenet_pacifism_trigger + NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } } + } + custom_description = { + text = incompatible_tenet_dharmic_pacifism_trigger + NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } } + } + custom_description = { + text = fedayeen_required_doctrines_trigger + OR = { + doctrine:tenet_warmonger = { is_in_list = selected_doctrines } + doctrine:tenet_unrelenting_faith = { is_in_list = selected_doctrines } + doctrine:tenet_consolamentum = { is_in_list = selected_doctrines } + doctrine:tenet_armed_pilgrimages = { is_in_list = selected_doctrines } + doctrine:tenet_struggle_submission = { is_in_list = selected_doctrines } + doctrine:tenet_pursuit_of_power = { is_in_list = selected_doctrines } + } + } + } + + piety_cost = { + value = faith_tenet_cost_massive + + # Multiplier for keeping same tenet + if = { + limit = { has_doctrine = tenet_fp3_fedayeen } + multiply = faith_unchanged_doctrine_cost_mult + } + } + + parameters = { + master_assassin_court_position_unlocked = yes + death_is_glory = yes + sanctioned_assassinations = yes + } + + character_modifier = { + controlled_province_advantage = 5 + monthly_piety_gain_per_dread_add = 0.01 + prowess = 2 + } + + traits = { + virtues = { vengeful = 1 } + sins = { craven = 1 } + } + } + + tenet_communal_possessions = { + icon = core_tenet_communism + is_shown = { + always = no + } + can_pick = { + always = yes + } + + piety_cost = { + if = { + limit = { + OR = { + has_doctrine = tenet_mendicant_preachers + #has_doctrine = tenet_gnosticism + like_christianity_religion_trigger = yes + like_zoroastrianism_religion_trigger = yes + } + } + value = faith_tenet_cost_mid + } + else = { + value = faith_tenet_cost_high + } + + #Multiplier for keeping same tenet + if = { + limit = { has_doctrine = tenet_communal_possessions } + multiply = faith_unchanged_doctrine_cost_mult + } + } + + parameters = { + piety_from_gifts_active = yes + piety_from_marrying_lowborn_active = yes + } + + character_modifier = { + monthly_county_control_change_factor = -0.2 + build_gold_cost = -0.1 + county_opinion_add = 10 + } + + traits = { + virtues = { peasant_leader = 2 } #because communism! + sins = { arrogant } + } + } ############################# # Empty Template Tenet # ############################# diff --git a/common/religion/doctrines/00_doctrines_zoroastrianism.txt b/common/religion/doctrines/00_doctrines_zoroastrianism.txt new file mode 100644 index 0000000000..2c2974fd8e --- /dev/null +++ b/common/religion/doctrines/00_doctrines_zoroastrianism.txt @@ -0,0 +1,30 @@ +doctrine_zoroastrian_branches = { + group = "main_group" + is_available_on_create = { + always = no + } + + + doctrine_major_branch_behdin = { + piety_cost = { + value = faith_doctrine_cost_high + if = { + limit = { has_doctrine = doctrine_heretic_branch_zandik } #Becoming accepted by the mainstream movement is very piety-expensive + multiply = 3 + } + } + parameters = { + hostility_override_doctrine_major_branch_behdin = 1 + } + } + + doctrine_heretic_branch_zandik = { + piety_cost = { + value = faith_doctrine_cost_low #but being a heretic, that's cheap... + } + character_modifier = { + advantage_against_coreligionists = 5 + } + } +} + diff --git a/common/religion/doctrines/02_doctrines_special.txt b/common/religion/doctrines/02_doctrines_special.txt index 0e5593c461..36faae6b41 100644 --- a/common/religion/doctrines/02_doctrines_special.txt +++ b/common/religion/doctrines/02_doctrines_special.txt @@ -113,3 +113,25 @@ full_tolerance = { } } } + + +has_jizya_doctrine = { + group = "special" + + is_available_on_create = { + has_doctrine = special_doctrine_jizya + } + + + special_doctrine_jizya = { + character_modifier = { + domain_tax_different_faith_mult = 0.2 + levy_reinforcement_rate_same_faith = 0.25 + levy_reinforcement_rate_different_faith = -0.25 + } + + parameters = { + unlock_jizya_contract = yes + } + } +} diff --git a/common/religion/fervor_modifiers/00_fervor_modifiers.txt b/common/religion/fervor_modifiers/00_fervor_modifiers.txt deleted file mode 100644 index 895f3893cb..0000000000 --- a/common/religion/fervor_modifiers/00_fervor_modifiers.txt +++ /dev/null @@ -1,11 +0,0 @@ -base_fervor_increase = { - value = 3.5 -} - -#no_head_fervor = { -# trigger = { -# has_doctrine = doctrine_no_head -# } -# value = 0.1 -#} - diff --git a/common/religion/fervor_modifiers/_fervor_modifiers.info b/common/religion/fervor_modifiers/_fervor_modifiers.info deleted file mode 100644 index 2179867d38..0000000000 --- a/common/religion/fervor_modifiers/_fervor_modifiers.info +++ /dev/null @@ -1,16 +0,0 @@ -Fervor changes gradually over time based on these modifiers. -Fervor can be between 0 and 100. -These modifiers are applied once a month. - -== Structure == -modifier_key = { # The key will be used for naming the modifier - value = script value # How much to change fervor by - trigger = {} # When this modifier should apply -} -Scope provides the faith as ROOT. - -== Triggers and effects == - -- fervor > 10 - Checks current fervor in faith scope - -- change_fervor = script value - Changes fervor by given amount diff --git a/common/religion/religions/daradorism.txt b/common/religion/religions/daradorism.txt index 77f098e739..8e0e71490f 100644 --- a/common/religion/religions/daradorism.txt +++ b/common/religion/religions/daradorism.txt @@ -100,6 +100,8 @@ custom_faith_lamb custom_faith_black_sheep # Dove custom_faith_dove + # Horse? + afridunism # Temple hellenic_custom # Stones diff --git a/common/religion/religions/druidism_group.txt b/common/religion/religions/druidism_group.txt index 429b1b544a..a0c35ce065 100644 --- a/common/religion/religions/druidism_group.txt +++ b/common/religion/religions/druidism_group.txt @@ -105,6 +105,8 @@ custom_faith_lamb custom_faith_black_sheep # Dove custom_faith_dove + # Horse? + afridunism # Temple hellenic_custom # Stones diff --git a/common/schemes/abduct_scheme.txt b/common/schemes/abduct_scheme.txt index f69862700b..7fca84d611 100644 --- a/common/schemes/abduct_scheme.txt +++ b/common/schemes/abduct_scheme.txt @@ -39,6 +39,7 @@ NOT = { is_isolated_from_trigger = { target = scope:target } } is_landed = yes + is_incapable = no custom_description = { #If they're your kid you need special traits to do it text = abduct_own_children_block object = scope:target diff --git a/common/schemes/befriend_scheme.txt b/common/schemes/befriend_scheme.txt index f464e1a251..d8a8f29a08 100644 --- a/common/schemes/befriend_scheme.txt +++ b/common/schemes/befriend_scheme.txt @@ -43,7 +43,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no scope:target = { is_adult = yes is_imprisoned = no diff --git a/common/schemes/claim_throne_scheme.txt b/common/schemes/claim_throne_scheme.txt index 6aba81ddda..5b4c70f9ae 100644 --- a/common/schemes/claim_throne_scheme.txt +++ b/common/schemes/claim_throne_scheme.txt @@ -6,6 +6,11 @@ icon = icon_scheme_claim_throne allow = { + is_adult = yes + is_imprisoned = no + is_landed = yes + highest_held_title_tier > tier_barony + OR = { has_perk = meritocracy_perk # Scheme unlocked by the Meritocracy Perk AND = { @@ -14,36 +19,14 @@ NOT = { has_diarchy_parameter = can_be_instantly_dismissed } } } - #AND = { - # is_powerful_vassal_of = scope:target - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_claim_throne_for_powerful_vassals - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:target - # } - # } - #} - #AND = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_abduct_for_all - # is_secondary_character_involvement_involved_trigger = { - # CHAR = scope:target - # } - # } - #} + # Warcraft } - - is_adult = yes - is_landed = yes - is_imprisoned = no } valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no scope:owner = { exists = liege liege = scope:target diff --git a/common/schemes/convert_to_witchcraft_scheme.txt b/common/schemes/convert_to_witchcraft_scheme.txt index 6c67fc7cf7..603d8b3f21 100644 --- a/common/schemes/convert_to_witchcraft_scheme.txt +++ b/common/schemes/convert_to_witchcraft_scheme.txt @@ -30,7 +30,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no #Have I been blocked from targeting this character? custom_description = { #Permanent text = witchcraft_scheme_blocked diff --git a/common/schemes/court_scheme.txt b/common/schemes/court_scheme.txt index 4257419844..028d5d707e 100644 --- a/common/schemes/court_scheme.txt +++ b/common/schemes/court_scheme.txt @@ -122,7 +122,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no #HARD-BLOCK: Incest Target is too young NOT = { custom_description = { diff --git a/common/schemes/diarch_schemes.txt b/common/schemes/diarch_schemes.txt index 58036b4fc7..ab0a5d1c32 100644 --- a/common/schemes/diarch_schemes.txt +++ b/common/schemes/diarch_schemes.txt @@ -21,6 +21,7 @@ } valid = { + is_incapable = no scope:target = { is_diarch = yes is_imprisoned = no diff --git a/common/schemes/elope_scheme.txt b/common/schemes/elope_scheme.txt index a7ba3363e6..e2d8015219 100644 --- a/common/schemes/elope_scheme.txt +++ b/common/schemes/elope_scheme.txt @@ -18,7 +18,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no scope:target = { is_alive = yes is_imprisoned = no diff --git a/common/schemes/fabricate_hook_scheme.txt b/common/schemes/fabricate_hook_scheme.txt index 8cd05276a5..3991808ab8 100644 --- a/common/schemes/fabricate_hook_scheme.txt +++ b/common/schemes/fabricate_hook_scheme.txt @@ -15,15 +15,13 @@ has_relation_rival = scope:target } } - #AND = { - # any_character_struggle = { - # involvement = involved - # has_struggle_phase_parameter = unlocks_fabricate_hooks_for_all - # is_secondary_character_involvement_either_trigger = { - # CHAR = scope:target - # } - # } - #} + AND = { + government_has_flag = government_is_clan + is_in_same_clan_as_trigger = { CHARACTER = scope:target } + house = { + has_house_unity_parameter = unity_unlock_fabricate_hooks + } + } } is_adult = yes @@ -34,7 +32,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no trigger_if = { limit = { exists = scope:target.court_owner } custom_description = { diff --git a/common/schemes/learn_language_scheme.txt b/common/schemes/learn_language_scheme.txt deleted file mode 100644 index 6770bc087f..0000000000 --- a/common/schemes/learn_language_scheme.txt +++ /dev/null @@ -1,361 +0,0 @@ -learn_language = { - - skill = learning - desc = learn_language_desc_general - cooldown = { months = 2 } - is_secret = no - uses_agents = no - power_per_skill_point = 1 - spymaster_power_per_skill_point = 0 - resistance_per_skill_point = 0 - spymaster_resistance_per_skill_point = 0 - uses_resistance = no - minimum_progress_chance = 5 - maximum_progress_chance = 95 - minimum_success = 5 - maximum_success = 95 - icon = icon_scheme_learn_language - - allow = { - age >= 6 - NOR = { - culture = { # You can't learn your own native language - has_same_culture_language = scope:target.culture - } - knows_language_of_culture = scope:target.culture - custom_description = { # Should not be able to target the same language twice - object = scope:target - text = scheme_target_same_language_as_existing_scheme - any_scheme = { - scheme_type = learn_language - scheme_target = { - culture = { # You can't learn the same language with two different schemes - has_same_culture_language = scope:target.culture - } - } - } - } - } - - scope:target = { - age >= 10 - } - is_imprisoned = no - - #AI blockers - trigger_if = { - limit = { is_ai = yes } - - scope:target = { - trigger_if = { #So players don't get spammed by AI's - limit = { - is_ai = no - } - NOT = { - any_targeting_scheme = { - scheme_type = learn_language - } - } - } - } - } - } - - valid = { - NOR = { - culture = { # You can't learn your own native language - has_same_culture_language = scope:target.culture - } - knows_language_of_culture = scope:target.culture - } - scope:target = { - OR = { - exists = location - in_diplomatic_range = scope:owner - } - } - } - - base_success_chance = { - base = 0 - - modifier = { - add = { - value = scope:owner.learning - multiply = 3 - } - desc = SCHEME_LEARNING_MODIFIER - scope:owner.learning > 0 - } - - modifier = { - add = { - value = scope:owner.piety_level - multiply = 10 - } - desc = SCHEME_PIETY_LEVEL_MODIFIER - scope:owner.piety_level > 0 - scope:owner.culture = { - has_cultural_parameter = language_success_chance_per_piety_level - } - } - - modifier = { - add = scope:owner.cp:councillor_court_chaplain.learning - desc = SCHEME_CHAPLAIN_HELP_LEARNING_MODIFIER - exists = scope:owner.cp:councillor_court_chaplain - scope:owner.cp:councillor_court_chaplain.learning > 0 - } - - modifier = { - add = { - value = 5 - multiply = { - value = scope:owner.num_of_known_languages - subtract = 1 - } - } - desc = SCHEME_KNOWN_LANGUAGES_MODIFIER - scope:owner.num_of_known_languages > 1 - } - - modifier = { - add = { - value = 30 - subtract = scope:owner.age - multiply = 2 - } - desc = SCHEME_YOUTH_MODIFIER - scope:owner.age < 30 - } - - modifier = { - add = 25 - desc = SCHEME_HERITAGE_MODIFIER - scope:target.culture = { - has_same_culture_heritage = scope:owner.culture - } - } - - modifier = { - add = 50 - desc = SCHEME_LOYAL_SOLDIERS_MODIFIER - scope:owner = { - culture = { - has_cultural_parameter = extra_learn_language_success_chance_vs_liege - } - any_liege_or_above = { - this = scope:target - } - } - } - - modifier = { - add = 30 - desc = SCHEME_CULTURE_BLENDING_MODIFIER - scope:owner = { - culture = { - has_cultural_parameter = learns_more_languages - } - } - } - - #Intellect good - modifier = { - desc = "scheme_intellect_good_1" - scope:owner = { has_trait = intellect_good_1 } - add = 10 - } - - modifier = { - desc = "scheme_intellect_good_2" - scope:owner = { has_trait = intellect_good_2 } - add = 20 - } - - modifier = { - desc = "scheme_intellect_good_3" - scope:owner = { has_trait = intellect_good_3 } - add = 30 - } - - modifier = { - scope:target = { has_trait = stubborn } - desc = "SCHEME_TRAIT_STUBBORN" - add = 10 - } - - modifier = { - scope:target = { has_trait = ambitious } - desc = "SCHEME_TRAIT_AMBITIOUS" - add = 5 - } - - #Paranoid value is added automatically because of trait parameter enemy_personal_scheme_success_chance_add - - # Lifestyles - - # Dynasty Kin Personal Scheme Success Chance on Dynasty Perk - modifier = { - add = kin_legacy_4_success_chance - desc = KIN_LEGACY_DESC - exists = scope:owner.dynasty - scope:owner.dynasty = { - has_dynasty_perk = kin_legacy_4 - } - scope:target.dynasty = scope:owner.dynasty - } - - # House Personal Scheme Success Chance on Cultural Parameter - modifier = { - add = cultural_house_personal_scheme_success_chance - desc = KIN_PARAMETER_DESC - exists = scope:owner.house - exists = scope:target.house - scope:owner.culture = { - has_cultural_parameter = cultural_house_personal_scheme_success_chance - } - scope:target.house = scope:owner.house - } - - # Pedagogy Perk - modifier = { - add = 25 - desc = LEARN_LANGUAGE_PEDAGOGY_PERK_DESC - scope:owner = { - has_perk = pedagogy_perk - } - } - - # Thicker Than Water Perk - modifier = { - add = thicker_than_water_bonus - desc = BEFRIEND_THICKER_THAN_WATER_PERK_DESC - scope:owner = { - has_perk = thicker_than_water_perk - } - scope:target = { - is_close_or_extended_family_of = scope:owner - } - } - } - - on_ready = { - random = { - chance = scope:scheme.scheme_success_chance - - save_scope_value_as = { - name = scheme_successful - value = yes - } - } - scope:owner = { - if = { - limit = { - exists = scope:scheme_successful - } - trigger_event = { - on_action = learn_language_success - } - } - else = { - trigger_event = { - on_action = learn_language_failure - } - } - } - } - - on_invalidated = { - scheme_target = { - save_scope_as = target - } - scheme_owner = { - save_scope_as = owner - } - if = { - limit = { - scope:target = { is_alive = no } - } - scope:owner = { - send_interface_toast = { - title = learn_language_invalidated - custom_tooltip = learn_language_invalidated_dead_desc - left_icon = scope:target - } - } - } - else_if = { - limit = { - scope:owner = { - #OR = { - culture = { # You can't learn your own native language - has_same_culture_language = scope:target.culture - } - #knows_language_of_culture = scope:target.culture - #} - } - } - scope:owner = { - send_interface_toast = { - title = learn_language_invalidated - custom_tooltip = learn_language_invalidated_cannot_learn_language_desc - left_icon = scope:target - } - } - } - - if = { - limit = { - scope:target = { - NOT = { in_diplomatic_range = scope:owner } - } - } - scope:owner = { - send_interface_toast = { - title = learn_language_invalidated_title - left_icon = scope:target - custom_description_no_bullet = { - object = scope:target - text = scheme_target_not_in_diplomatic_range - } - } - } - } - - scope:owner = { - if = { - limit = { - is_alive = yes - scope:target = { - OR = { - is_alive = no - NOT = { in_diplomatic_range = scope:owner } - } - } - NOR = { - culture = { # You can't learn your own native language - has_same_culture_language = scope:target.culture - } - knows_language_of_culture = scope:target.culture - } - } - set_variable = { - name = language_progress - value = prev.scheme_progress - } - trigger_event = learn_language_outcome.3000 - } - } - } - - on_monthly = { - save_scope_as = scheme - scheme_target = { save_scope_as = target } - scheme_owner = { - save_scope_as = owner - trigger_event = { on_action = learn_language_ongoing } - } - } - success_desc = "LEARN_LANGUAGE_SUCCESS_DESC" -} diff --git a/common/schemes/murder_scheme.txt b/common/schemes/murder_scheme.txt index 1ce09d5088..08af4669b9 100644 --- a/common/schemes/murder_scheme.txt +++ b/common/schemes/murder_scheme.txt @@ -4,7 +4,7 @@ desc = murder_desc_general hostile = yes icon = icon_scheme_hostile - + allow = { age >= 14 is_imprisoned = no @@ -13,7 +13,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no trigger_if = { limit = { is_parent_of = scope:target diff --git a/common/schemes/seduce_scheme.txt b/common/schemes/seduce_scheme.txt index f90c52211a..f9479272af 100644 --- a/common/schemes/seduce_scheme.txt +++ b/common/schemes/seduce_scheme.txt @@ -124,7 +124,14 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no + #seducing done by or to minors is not allowed. + scope:owner = { + is_adult = yes + } + scope:target = { + is_adult = yes + } #HARD-BLOCK: Incest Target is too young NOT = { custom_description = { diff --git a/common/schemes/steal_back_artifact_scheme.txt b/common/schemes/steal_back_artifact_scheme.txt deleted file mode 100644 index fef577885f..0000000000 --- a/common/schemes/steal_back_artifact_scheme.txt +++ /dev/null @@ -1,240 +0,0 @@ -steal_back_artifact = { - - skill = intrigue - desc = steal_back_artifact_general_desc - hostile = yes - icon = icon_scheme_steal_back_artifact - - power_per_skill_point = 2 - resistance_per_skill_point = 1.75 - power_per_agent_skill_point = 1 - - minimum_progress_chance = 20 - maximum_progress_chance = 90 - minimum_success = 10 - maximum_secrecy = 95 - maximum_success = 85 - - cooldown = { years = 10 } - is_secret = yes - base_secrecy = 20 - - agent_leave_threshold = -25 - - allow = { - is_adult = yes - is_imprisoned = no - - scope:target = { - is_adult = yes - is_imprisoned = no - } - - #AI blockers - trigger_if = { - limit = { is_ai = yes } - - scope:target = { #AI won't steal if they like you - opinion = { - target = scope:owner - value <= 50 - } - - trigger_if = { #AI won't steal from friends... Unless... - limit = { - OR = { - has_relation_friend = scope:owner - has_relation_best_friend = scope:owner - } - } - scope:owner = { - OR = { - has_trait = greedy - has_trait = deceitful - } - } - } - trigger_if = { #So players don't get spammed by AIs trying to steal - limit = { - is_ai = no - } - NOT = { - any_targeting_scheme = { - scheme_type = steal_back_artifact - } - } - } - } - } - } - - valid = { - NOT = { is_at_war_with = scope:target } - scope:target = { - OR = { - exists = location - in_diplomatic_range = scope:owner - } - } - - scope:target = { - any_character_artifact = { - scope:owner = { - has_artifact_claim = prev - } - } - } - } - - valid_agent = { - age >= 14 - is_imprisoned = no - } - - agent_join_chance = { - base = 0 - - modifier = { - add = -15 - desc = BASE_RELUCTANCE - } - - #Is Owner sending a gift in the invite interaction? - modifier = { - add = 10 - exists = scope:gift - always = scope:gift - NOT = { - OR = { - scope:target = { is_parent_of = root } - root = { is_parent_of = scope:target } - } - } - desc = "SCHEME_WITH_GIFT" - } - - #Default Hostile Scheme modifiers - hostile_scheme_agent_base_join_chance_modifier = yes - } - - base_success_chance = { - base = 10 - #SCHEME OWNER# - compare_modifier = { - desc = SCHEME_IS_A_SCHEMER - target = scope:owner - value = intrigue - multiplier = 2 - } - } - - agent_success_chance = { - base = 5 - - compare_modifier = { - desc = "SCHEME_AGENT_INTRIGUE" - value = intrigue - multiplier = 2 - } - } - - on_ready = { - random = { - chance = scope:scheme.scheme_success_chance - - save_scope_value_as = { - name = scheme_successful - value = yes - } - } - scope:owner = { - if = { - limit = { - exists = scope:scheme_successful - } - trigger_event = { - on_action = steal_back_artifact_success - } - } - else = { - trigger_event = { - on_action = steal_back_artifact_failure - } - } - } - } - - on_invalidated = { - scheme_target = { - save_scope_as = target - } - scheme_owner = { - save_scope_as = owner - } - if = { - limit = { - scope:target = { is_alive = no } - } - scope:owner = { - send_interface_toast = { - title = steal_back_artifact_invalidated_title - custom_tooltip = steal_back_artifact_invalidated_dead - left_icon = scope:target - } - } - } - else_if = { - limit = { - scope:owner = { - is_at_war_with = scope:target - } - } - scope:owner = { - send_interface_toast = { - title = steal_back_artifact_invalidated_title - custom_tooltip = steal_back_artifact_invalidated_war - left_icon = scope:target - } - } - } - - if = { - limit = { - scope:target = { - NOT = { in_diplomatic_range = scope:owner } - } - } - scope:owner = { - send_interface_toast = { - title = steal_back_artifact_invalidated_title - left_icon = scope:target - custom_description_no_bullet = { - object = scope:target - text = scheme_target_not_in_diplomatic_range - } - } - } - } - } - - on_monthly = { - save_scope_as = scheme - scheme_owner = { save_scope_as = owner } - scheme_target = { save_scope_as = target } - - hostile_scheme_discovery_chance_effect = yes - - if = { - limit = { - NOT = { exists = scope:discovery_event_happening } - } - scheme_owner = { - trigger_event = { - on_action = steal_back_artifact_ongoing - days = { 1 15 } - } - } - } - } - success_desc = "STEAL_BACK_ARTIFACT_SUCCESS_DESC" -} diff --git a/common/schemes/sway_scheme.txt b/common/schemes/sway_scheme.txt index c34e403463..a2061a649c 100644 --- a/common/schemes/sway_scheme.txt +++ b/common/schemes/sway_scheme.txt @@ -71,7 +71,7 @@ valid = { # Warcraft NOT = { is_isolated_from_trigger = { target = scope:target } } - + is_incapable = no NOT = { is_at_war_with = scope:target } scope:target = { OR = { diff --git a/common/script_values/00_age_values.txt b/common/script_values/00_age_values.txt deleted file mode 100644 index 627cbc1999..0000000000 --- a/common/script_values/00_age_values.txt +++ /dev/null @@ -1,113 +0,0 @@ - -#Childhood -childhood_personality_age = 3 -childhood_education_start_age = 6 - -adulthood_start_age = 16 - -age_plus_1 = { - value = age - add = 1 -} -age_plus_3 = { - value = age - add = 3 -} -age_plus_5 = { - value = age - add = 5 -} -age_plus_10 = { - value = age - add = 10 -} -age_plus_25 = { - value = age - add = 25 -} -age_minus_1 = { - value = age - subtract = 1 -} -age_minus_3 = { - value = age - subtract = 3 -} -age_minus_5 = { - value = age - subtract = 5 -} -age_minus_10 = { - value = age - subtract = 10 -} -age_minus_25 = { - value = age - subtract = 25 -} - - -age_dif_child_up = { - value = age - multiply = 1.4 -} - -age_dif_child_down = { - value = age - divide = 1.2 -} - - -age_dif_child_up_friend = { - value = age - multiply = 1.3 -} - -age_dif_child_down_friend = { - value = age - divide = 1.3 -} - -years_to_adulthood = { - value = adulthood_start_age - subtract = age - min = 0 -} - -grand_wedding_timeout = { - value = 3 #please update GRAND_WEDDING_PROMISE_INFO loc if this changes - if = { - limit = { - scope:spouse_1.age <= scope:spouse_2.age - } - add = scope:spouse_1.years_to_adulthood - } - else = { - add = scope:spouse_2.years_to_adulthood - } -} - -grand_wedding_timeout_alt = { - value = 3 #please update GRAND_WEDDING_PROMISE_INFO loc if this changes - if = { - limit = { - scope:temp_marriage_scope.age <= scope:temp_marriage_scope.betrothed.age - } - add = scope:temp_marriage_scope.years_to_adulthood - } - else = { - add = scope:temp_marriage_scope.betrothed.years_to_adulthood - } -} - -grand_wedding_timeout_notification = { - value = grand_wedding_timeout - multiply = 365 - subtract = 1 -} - -grand_wedding_timeout_notification_alt = { - value = grand_wedding_timeout_alt - multiply = 365 - subtract = 1 -} diff --git a/common/script_values/00_ai_values.txt b/common/script_values/00_ai_values.txt index 2869429eb8..5519c9498b 100644 --- a/common/script_values/00_ai_values.txt +++ b/common/script_values/00_ai_values.txt @@ -1084,6 +1084,377 @@ calc_rough_root_opinion_value = { add = -100 } } +calc_rough_opcalc_char_opinion_value = { + if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 95 + } + } + add = 100 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 90 + } + } + add = 95 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 85 + } + } + add = 90 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 80 + } + } + add = 85 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 75 + } + } + add = 80 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 70 + } + } + add = 75 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 65 + } + } + add = 70 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 60 + } + } + add = 65 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 55 + } + } + add = 60 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 50 + } + } + add = 55 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 45 + } + } + add = 50 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 40 + } + } + add = 45 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 35 + } + } + add = 40 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 30 + } + } + add = 35 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 25 + } + } + add = 30 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 20 + } + } + add = 25 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 15 + } + } + add = 20 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 10 + } + } + add = 15 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 5 + } + } + add = 10 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= 0 + } + } + add = 5 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -4 + } + } + add = 0 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -5 + } + } + add = -5 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -10 + } + } + add = -10 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -15 + } + } + add = -15 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -20 + } + } + add = -20 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -25 + } + } + add = -25 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -30 + } + } + add = -30 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -35 + } + } + add = -35 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -40 + } + } + add = -40 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -45 + } + } + add = -45 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -50 + } + } + add = -50 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -55 + } + } + add = -55 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -60 + } + } + add = -60 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -65 + } + } + add = -65 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -70 + } + } + add = -70 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -75 + } + } + add = -75 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -80 + } + } + add = -80 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -85 + } + } + add = -85 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -90 + } + } + add = -90 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -95 + } + } + add = -95 + } + else_if = { + limit = { + opinion = { + target = scope:opcalc_char + value >= -100 + } + } + add = -100 + } +} ### Brief: ai_men_at_arms_expense_gold_min # The AI will quickly try to spend this much of its gold income on MAA diff --git a/common/script_values/00_basic_values.txt b/common/script_values/00_basic_values.txt index 5f268ad2ac..ee1884938e 100644 --- a/common/script_values/00_basic_values.txt +++ b/common/script_values/00_basic_values.txt @@ -1324,6 +1324,14 @@ send_gift_opinion = { } divide = 3 } + if = { + limit = { + scope:actor.culture ?= { + has_innovation = fp3_innovation_fritware + } + } + multiply = 1.2 + } max = 100 } if = { diff --git a/common/script_values/00_character_legacy_values.txt b/common/script_values/00_character_legacy_values.txt deleted file mode 100644 index 9f2ee3888d..0000000000 --- a/common/script_values/00_character_legacy_values.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Referenced by code. Scoring for the legacy screen -# Root is the played character -legacy_score = { - value = 0 - add = prestige_level - add = piety_level - add = dynasty.dynasty_prestige_level -} diff --git a/common/script_values/00_council_values.txt b/common/script_values/00_council_values.txt deleted file mode 100644 index ed81ef23a6..0000000000 --- a/common/script_values/00_council_values.txt +++ /dev/null @@ -1,49 +0,0 @@ - - - -marshal_task_side_effect_cooldown = 365 #Number of days minimum before the Marshal can fire a side effect event from a task again -marshal_task_modifier_duration = 1825 #Number of days that modifiers set by the marshal task should last for by default - -chancellor_task_side_effect_cooldown = 365 -chancellor_task_modifier_duration = 1825 - -steward_task_side_effect_cooldown = 365 -steward_task_modifier_duration = 1825 - -spymaster_task_side_effect_cooldown = 365 -spymaster_task_modifier_duration = 1825 - -court_chaplain_task_side_effect_cooldown = 365 -court_chaplain_task_modifier_duration = 1825 - -council_scaled_monthly_income = { - add = liege.highest_held_title_tier - subtract = 2 - min = 0.5 -} - -council_scaled_by_liege_tier = { - add = liege.highest_held_title_tier - subtract = 1 - min = 1 -} - -council_scaled_skill_value = { - add = liege.highest_held_title_tier - subtract = 1 -} - -council_friend_impact_percentage = 20 - -council_best_friend_impact_percentage = 30 - -council_rival_impact_percentage = -20 - -council_nemesis_impact_percentage = -30 - -council_reliable_house_percentage = 10 - -council_task_fabricate_claim_relative_strength = { - value = max_military_strength - multiply = 1.2 -} diff --git a/common/script_values/00_county_control_values.txt b/common/script_values/00_county_control_values.txt deleted file mode 100644 index dfdf33d0ca..0000000000 --- a/common/script_values/00_county_control_values.txt +++ /dev/null @@ -1,129 +0,0 @@ -###################### -# County Corruption values -###################### - -miniscule_county_control_loss = -5 -minor_county_control_loss = -10 -medium_county_control_loss = -20 -major_county_control_loss = -30 -extreme_county_control_loss = -40 -massive_county_control_loss = -50 -monumental_county_control_loss = -75 -miniscule_county_control_gain = 5 -minor_county_control_gain = 10 -medium_county_control_gain = 20 -major_county_control_gain = 30 -extreme_county_control_gain = 40 -massive_county_control_gain = 50 -monumental_county_control_gain = 75 - -low_county_control = 33 -medium_county_control = 66 -full_county_control = 100 - -low_county_control_limit = 35 -high_county_control_limit = 95 - -high_control_county_corruption_removal_chance = 35 - -max_county_corruption_modifiers_at_once = 3 - -script_county_control = { - value = 0 - add = county_control -} - -county_corruption_modifier_count = { - if = { - limit = { - has_county_modifier = county_corruption_inefficient_tax_collection_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_deserting_levies_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_smuggling_ring_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_inefficient_census_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_lack_of_sheriffs_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_lack_of_courts_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_thieves_guild_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_unsafe_highways_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_uncooperative_guilds_modifier - } - add = 1 - } - if = { - limit = { - has_county_modifier = county_corruption_lackluster_administration_modifier - } - add = 1 - } -} - -county_control_corruption_gain_chance = { - add = low_county_control_limit - #Account for actual county control - subtract = county_control # At low_county_control_limit Control, there is a 0 percent chance of gaining Corruption - - divide = { - add = 5 # A base of approximately 25% chance of gaining corruption per year at 0 Control - } - divide = { # Further reduce the chance of corruption per corruption modifier the County already has - add = county_corruption_modifier_count - multiply = 2 - min = 1 - } -} - -in_debt_county_corruption_gain_chance = { - value = 3 - - add = { #Gold should always be a negative value at this point - value = 0 - subtract = holder.gold - multiply = 0.005 #Make it 1% more likely per -200 gold - max = 5 - } - - #Make it linearly less likely to accrue additional modifiers for each modifiers you have - divide = { - add = 1 - add = county_corruption_modifier_count - } -} \ No newline at end of file diff --git a/common/script_values/00_court_amenities_values.txt b/common/script_values/00_court_amenities_values.txt deleted file mode 100644 index c5ec7f9c37..0000000000 --- a/common/script_values/00_court_amenities_values.txt +++ /dev/null @@ -1,175 +0,0 @@ -############################ -# AMENITIES COST VALUES -############################ -# BASE VALUES - -base_court_amenities_cost = { - value = sub_realm_size - divide = { - add = 4 - subtract = { - add = 0.25 - multiply = court_grandeur_current_level - } - } - if = { # Add a baseline depending on rank - limit = { - highest_held_title_tier = tier_empire - } - add = 20 - } - else = { - add = 10 - } - if = { - limit = { - culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - multiply = { - value = 1.75 - } - } - else_if = { - limit = { - culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - multiply = { - value = 1.5 - } - } - else_if = { - limit = { - culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - multiply = { - value = 1.25 - } - } -} - -court_amenities_cost_level_1 = { - value = base_court_amenities_cost - divide = 96 - min = 0.2 - if = { - limit = { - government_has_flag = government_is_tribal - } - min = 0.4 - } -} -court_amenities_cost_level_2 = { - value = base_court_amenities_cost - divide = 48 - min = 0.4 - if = { - limit = { - government_has_flag = government_is_tribal - } - min = 0.8 - } -} -court_amenities_cost_level_3 = { - value = base_court_amenities_cost - divide = 32 - min = 0.6 - if = { - limit = { - government_has_flag = government_is_tribal - } - min = 1.2 - } -} -court_amenities_cost_level_4 = { - value = base_court_amenities_cost - divide = 24 - min = 0.8 - if = { - limit = { - government_has_flag = government_is_tribal - } - min = 1.6 - } -} - -############################ -# FASHION COSTS -############################ - -court_fashion_acceptable_cost = { - value = court_amenities_cost_level_1 -} -court_fashion_decent_cost = { - value = court_amenities_cost_level_2 -} -court_fashion_good_cost = { - value = court_amenities_cost_level_3 -} -court_fashion_fantastic_cost = { - value = court_amenities_cost_level_4 -} - -############################ -# FOOD QUALITY COSTS -############################ - -court_food_quality_modest_cost = { - value = court_amenities_cost_level_1 -} -court_food_quality_decent_cost = { - value = court_amenities_cost_level_2 -} -court_food_quality_lavish_cost = { - value = court_amenities_cost_level_3 -} -court_food_quality_exotic_cost = { - value = court_amenities_cost_level_4 -} - -############################ -# LODGING STANDARTS COSTS -############################ - -court_lodging_standards_small_cost = { - value = court_amenities_cost_level_1 -} -court_lodging_standards_middling_cost = { - value = court_amenities_cost_level_2 -} -court_lodging_standards_spacious_cost = { - value = court_amenities_cost_level_3 -} -court_lodging_standards_grand_cost = { - value = court_amenities_cost_level_4 -} - - -############################ -# COURT SERVANTS COSTS -############################ - -court_servants_few_cost = { - value = court_amenities_cost_level_1 -} -court_court_servants_some_cost = { - value = court_amenities_cost_level_2 -} -court_court_servants_many_cost = { - value = court_amenities_cost_level_3 -} -court_servants_endless_cost = { - value = court_amenities_cost_level_4 -} - -# Referenced from code -# root is the character -# Determines how long amenity cooldowns are in months -court_amenity_cooldown_months = { - value = 12 -} diff --git a/common/script_values/00_court_grandeur_values.txt b/common/script_values/00_court_grandeur_values.txt deleted file mode 100644 index bb787ec134..0000000000 --- a/common/script_values/00_court_grandeur_values.txt +++ /dev/null @@ -1,20 +0,0 @@ -court_grandeur_rank_4_min_level = 9 -court_grandeur_rank_3_min_level = 6 -court_grandeur_rank_2_min_level = 3 - -current_cgv_above_expected_exact_value = { - value = court_grandeur_current - subtract = court_grandeur_minimum_expected -} - -indebt_guest_interaction_lost_test_grandeur_cost_value = { value = minor_court_grandeur_loss } - -# Note: base chance is 50, so this works out at 50 + [this value] = guestimated likelihood (i.e., before traits and such) before the AI will consider using this interaction. -indebt_guest_interaction_likely_success_control_value = 25 - -indebt_guest_interaction_get_intrigue_difference_value = { - # Grab scope:actor's intrigue. - value = scope:actor.intrigue - # And then remove scope:recipient's. - subtract = scope:recipient.intrigue -} diff --git a/common/script_values/00_court_position_values.txt b/common/script_values/00_court_position_values.txt deleted file mode 100644 index 8265a9afdb..0000000000 --- a/common/script_values/00_court_position_values.txt +++ /dev/null @@ -1,682 +0,0 @@ - -############################ -# MINOR TITLE COSTS -############################ - -minor_court_position_salary = { - add = { - value = 0.25 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - if = { - limit = { - scope:liege.sub_realm_size >= 120 - } - multiply = { - value = 1.6 - desc = enormous_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 90 - } - multiply = { - value = 1.4 - desc = large_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 60 - } - multiply = { - value = 1.2 - desc = medium_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 30 - } - multiply = { - value = 1.1 - desc = small_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - } - multiply = { - value = 1.75 - desc = culture_era_late_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - } - multiply = { - value = 1.5 - desc = culture_era_high_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - } - multiply = { - value = 1.25 - desc = culture_era_early_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - highest_held_title_tier >= tier_empire - } - } - multiply = { - value = 1.25 - desc = empire_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - government_has_flag = government_is_tribal - } - } - multiply = { - value = 0.25 - desc = tribal_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_parameter = cheaper_court_positions - } - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } -} -medium_court_position_salary = { - add = { - value = 0.5 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - if = { - limit = { - scope:liege.sub_realm_size >= 120 - } - multiply = { - value = 1.6 - desc = enormous_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 90 - } - multiply = { - value = 1.4 - desc = large_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 60 - } - multiply = { - value = 1.2 - desc = medium_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 30 - } - multiply = { - value = 1.1 - desc = small_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - } - multiply = { - value = 1.75 - desc = culture_era_late_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - } - multiply = { - value = 1.5 - desc = culture_era_high_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - } - multiply = { - value = 1.25 - desc = culture_era_early_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - highest_held_title_tier >= tier_empire - } - } - multiply = { - value = 1.25 - desc = empire_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - government_has_flag = government_is_tribal - } - } - multiply = { - value = 0.25 - desc = tribal_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_parameter = cheaper_court_positions - } - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } -} -major_court_position_salary = { - add = { - value = 1.0 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - if = { - limit = { - scope:liege.sub_realm_size >= 120 - } - multiply = { - value = 1.6 - desc = enormous_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 90 - } - multiply = { - value = 1.4 - desc = large_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 60 - } - multiply = { - value = 1.2 - desc = medium_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 30 - } - multiply = { - value = 1.1 - desc = small_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - } - multiply = { - value = 1.75 - desc = culture_era_late_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - } - multiply = { - value = 1.5 - desc = culture_era_high_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - } - multiply = { - value = 1.25 - desc = culture_era_early_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - highest_held_title_tier >= tier_empire - } - } - multiply = { - value = 1.25 - desc = empire_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - government_has_flag = government_is_tribal - } - } - multiply = { - value = 0.25 - desc = tribal_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_parameter = cheaper_court_positions - } - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } -} - -court_position_physician_salary = { - add = { - value = 0.1 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - if = { - limit = { exists = scope:liege } - if = { - limit = { - scope:liege.culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - multiply = { - value = 1.75 - desc = culture_era_late_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - multiply = { - value = 1.5 - desc = culture_era_high_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - multiply = { - value = 1.25 - desc = culture_era_early_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - highest_held_title_tier >= tier_empire - } - } - multiply = { - value = 1.25 - desc = empire_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - government_has_flag = government_is_tribal - } - } - multiply = { - value = 0.25 - desc = tribal_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - if = { - limit = { - scope:liege.culture = { - has_cultural_parameter = cheaper_court_positions - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - } -} - -court_position_antiquarian_salary = { - add = { - value = 0.15 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - if = { - limit = { - scope:liege.sub_realm_size >= 120 - } - multiply = { - value = 1.6 - desc = enormous_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 90 - } - multiply = { - value = 1.4 - desc = large_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 60 - } - multiply = { - value = 1.2 - desc = medium_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege.sub_realm_size >= 30 - } - multiply = { - value = 1.1 - desc = small_realm_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_late_medieval - } - } - } - multiply = { - value = 1.75 - desc = culture_era_late_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_high_medieval - } - } - } - multiply = { - value = 1.5 - desc = culture_era_high_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - else_if = { - limit = { - scope:liege = { - culture = { - has_cultural_era_or_later = culture_era_early_medieval - } - } - } - multiply = { - value = 1.25 - desc = culture_era_early_medieval_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - highest_held_title_tier >= tier_empire - } - } - multiply = { - value = 1.25 - desc = empire_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE" - } - } - if = { - limit = { - scope:liege = { - government_has_flag = government_is_tribal - } - } - multiply = { - value = 0.25 - desc = tribal_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } - if = { - limit = { - scope:liege = { - culture = { - has_cultural_parameter = cheaper_court_positions - } - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } -} - -court_position_travel_leader_salary = { - add = { - value = 0.1 - desc = COURT_POSITION_SALARY_BREAKDOWN_BASE - format = "BASE_VALUE_FORMAT_DECIMALS" - } - - if = { - limit = { - scope:liege = { - culture = { - has_cultural_parameter = cheaper_court_positions - } - } - } - multiply = { - value = 0.8 - desc = esteemed_hospitality_salary_mod - format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE" - } - } -} - -minor_court_position_prestige_salary = 0.5 -medium_court_position_prestige_salary = 1.0 -major_court_position_prestige_salary = 2.0 - -minor_court_position_prestige_cost = -0.2 - -minor_court_position_prestige_revoke_cost = 25 -medium_court_position_prestige_revoke_cost = 75 -major_court_position_prestige_revoke_cost = 200 - - -############################ -# COURT POSITION EFFECTIVENESS LEVELS -############################ - -terrible_effectiveness = 1 -poor_effectiveness = 2 -average_effectiveness = 3 -good_effectiveness = 4 -excellent_effectiveness = 5 - -garuda_prowess_svalue = 8 - - -executioner_control_value = { - scope:actor = { - every_court_position_holder = { - type = executioner_court_position - add = this.aptitude:executioner_court_position - } - } - multiply = 3 -} -executioner_control_value_tooltip = { # Keep identical to executioner_control_value - every_court_position_holder = { - type = executioner_court_position - add = this.aptitude:executioner_court_position - } - multiply = 3 -} - -############################ -# COURT POSITION OPINIONS -############################ - -regular_court_position_opinion = 5 -ceremonial_court_position_opinion = 10 - -court_jester_position_opinion = { - scope:employee = { - if = { - limit = { - has_no_particular_noble_roots_trigger = yes - } - value = 5 - } - else = { - value = -20 - } - } -} diff --git a/common/script_values/00_decision_values.txt b/common/script_values/00_decision_values.txt index e6ffb978ac..6bab851580 100644 --- a/common/script_values/00_decision_values.txt +++ b/common/script_values/00_decision_values.txt @@ -54,3 +54,7 @@ invite_knights_decision_upper_value = { value = invite_knights_decision_standard_value add = 3 } + +fp3_antagonize_character_interaction_cooldown = { + value = 5 +} diff --git a/common/script_values/00_diarchy_values.txt b/common/script_values/00_diarchy_values.txt index 1d539f88a0..2e20131e6f 100644 --- a/common/script_values/00_diarchy_values.txt +++ b/common/script_values/00_diarchy_values.txt @@ -67,826 +67,1734 @@ diarch_loyalty_score_type_regency_value = { #target = liege #} #add = scope:liege_opinion - ## Instead, we do some dump placeholder script. + ## Instead, we do some dumb placeholder script. #TODO_CD_EP2; please, I'm begging you. Think of the children. Fix the above. The below is disgusting. add = { desc = diarch_loyalty_score.regency.opinion_of_you value = calc_rough_liege_opinion_value } # High-Tier Relationships. - ## We don't take the basic tier relationships into account because they affect opinion heavily, and we don't want to double dip too much unless it seems important. - ## Good. + add = diarch_loyalty_score_standard_values_high_tier_relationships_value + # Traits. + add = diarch_loyalty_score_standard_values_general_traits_value + # Court Positions. + add = diarch_loyalty_score_standard_values_general_court_positions_value + # Cultural Traditions. + add = diarch_loyalty_score_standard_values_general_culture_value + # Sympathies. + ## General factors. + add = diarch_loyalty_score_standard_values_general_sympathies_value + ## Dread factors in in temporary regencies. if = { limit = { - has_any_best_good_relationship_with_character_trigger = { CHARACTER = liege } + liege = { + dread >= 1 + has_diarchy_active_parameter = diarchy_type_is_temporary_regency + } + has_dread_level_towards = { + target = liege + level >= 1 + } + } + add = { + desc = diarch_loyalty_score.regency.temporary_regency.dread + value = { + value = liege.dread + # Weight up if they're a basic natural coward. + if = { + limit = { + has_dread_level_towards = { + target = liege + level >= 2 + } + } + multiply = 2 + } + } + } + } + # Overrides. + ## Loyalty overrides. + add = diarch_loyalty_score_standard_values_overrides_loyalty_value + } +} + +diarch_loyalty_score_type_vizierate_value = { + ### PLEASE NOTE #### + # It's deliberate design that we don't double up on lots of values between loyalty and succession score (e.g., familial bonuses). + # If the two values become too synced, then you'll either always be fine or else always be screwed. Neither of these are fun or interesting. + # The intention is that societal ties govern your succession score whilst loyalty is more about personal relations and outlook (which is why we pepper in some traits and cultural traditions to break the score up a bit). + + if = { + # For performance reasons, you'll sometimes check this when you don't have a liege, so we need to check beforehand for error purposes. + limit = { exists = liege } + # Add raw opinion. + ## Except don't because this throws errors and is broken — commented out till we can figure out a fix. + #save_opinion_value_as = { + #name = liege_opinion + #target = liege + #} + #add = scope:liege_opinion + ## Instead, we do some dumb placeholder script. + #TODO_CD_EP2; please, I'm begging you. Think of the children. Fix the above. The below is disgusting. + add = { + desc = diarch_loyalty_score.regency.opinion_of_you + value = calc_rough_liege_opinion_value + } + # High-Tier Relationships. + add = diarch_loyalty_score_standard_values_high_tier_relationships_value + # Traits. + add = diarch_loyalty_score_standard_values_general_traits_value + # Court Positions. + add = diarch_loyalty_score_standard_values_general_court_positions_value + # Cultural Traditions. + add = diarch_loyalty_score_standard_values_general_culture_value + # Sympathies. + ## General factors. + add = diarch_loyalty_score_standard_values_general_sympathies_value + # Overrides. + ## Loyalty overrides. + add = diarch_loyalty_score_standard_values_overrides_loyalty_value + } +} + +diarch_loyalty_score_standard_values_general_sympathies_value = { + # Compassion if liege is helpless. + if = { + limit = { + liege = { + OR = { + is_incapable = yes + is_adult = no + } + } + } + add = { + desc = diarch_loyalty_score.regency.compassion_for_helpless + value = root.ai_compassion + } + } + # Tyranny. + if = { + limit = { liege.tyranny >= 1 } + add = { + desc = diarch_loyalty_score.regency.tyranny + value = { + value = liege.tyranny + multiply = -1 } + } + } +} + +diarch_loyalty_score_standard_values_general_culture_value = { + culture = { + # +++ Malleable Subjects. + if = { + limit = { has_cultural_tradition = tradition_fp2_malleable_subjects } add = { - desc = diarch_loyalty_score.regency.your_positive_relation - value = diarch_loyalty_score_add_massive_gain + desc = diarch_loyalty_score.regency.tradition_fp2_malleable_subjects + value = diarch_loyalty_score_add_major_gain } } - ## Bad. + # +++ Recognition of Talent & lowborn. if = { limit = { - has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = liege } + has_cultural_tradition = tradition_talent_acquisition + root = { is_lowborn = yes } } add = { - desc = diarch_loyalty_score.regency.your_negative_relation - value = diarch_loyalty_score_add_massive_loss + desc = diarch_loyalty_score.regency.tradition_talent_acquisition + value = diarch_loyalty_score_add_major_gain } } - # Traits. - ## + Lazy. + # ++/-- Astute Diplomats & they like or dislike their liege. if = { - limit = { has_trait = lazy } - add = { - desc = diarch_loyalty_score.regency.lazy - value = diarch_loyalty_score_add_minor_gain + limit = { has_cultural_tradition = tradition_astute_diplomats } + # If they like you, they work loyally. + if = { + limit = { + root = { + opinion = { + target = liege + value >= 1 + } + } + } + add = { + desc = diarch_loyalty_score.regency.tradition_astute_diplomats.positive + value = diarch_loyalty_score_add_medium_gain + } + } + # If they don't, they work against you. + else_if = { + limit = { + root = { + opinion = { + target = liege + value <= -1 + } + } + } + add = { + desc = diarch_loyalty_score.regency.tradition_astute_diplomats.negative + value = diarch_loyalty_score_add_medium_loss + } } + # Else neutral, so they're ambivalent. } - ## ++/-- Diligent. - ### ++ If they like you... - else_if = { + # ++ Ruling Caste & is liege. + if = { limit = { - has_trait = diligent - opinion = { - target = liege - value >= 1 + root.liege.culture = { + has_cultural_tradition = tradition_ruling_caste + # But only apply it to diff-cultured characters. + NOT = { this = root.culture } } } add = { - desc = diarch_loyalty_score.regency.diligent.positive + desc = diarch_loyalty_score.regency.tradition_ruling_caste value = diarch_loyalty_score_add_medium_gain } } - ### -- If they dislike you... - else_if = { + # ++ Family Business & extended family. + if = { limit = { - has_trait = diligent - opinion = { - target = liege - value <= -1 - } + has_cultural_tradition = tradition_family_entrepreneurship + root = { is_close_or_extended_family_of = liege } } add = { - desc = diarch_loyalty_score.regency.diligent.negative - value = diarch_loyalty_score_add_medium_loss + desc = diarch_loyalty_score.regency.tradition_family_entrepreneurship + value = diarch_loyalty_score_add_medium_gain } } - ### ... and perfectly-neutral diligent characters do nothing extra about it. They are ambivalent. - ## ++ Craven. + # + Hereditary Hierarchy. if = { - limit = { has_trait = craven } + limit = { has_cultural_tradition = tradition_hereditary_hierarchy } add = { - desc = diarch_loyalty_score.regency.craven - value = diarch_loyalty_score_add_medium_gain + desc = diarch_loyalty_score.regency.tradition_hereditary_hierarchy + value = diarch_loyalty_score_add_minor_gain } } - ## ++ Honest. + # + Tribal Unity & same-house. if = { - limit = { has_trait = honest } + limit = { + has_cultural_tradition = tradition_tribe_unity + exists = root.liege.house + root.house ?= root.liege.house + } add = { - desc = diarch_loyalty_score.regency.honest - value = diarch_loyalty_score_add_medium_gain + desc = diarch_loyalty_score.regency.tradition_tribe_unity + value = diarch_loyalty_score_add_minor_gain } } - ## -- Deceitful. - else_if = { - limit = { has_trait = deceitful } - add = { - desc = diarch_loyalty_score.regency.deceitful - value = diarch_loyalty_score_add_medium_loss + # + Strong Kinship & same-house. + #if = { + # limit = { + # has_cultural_tradition = tradition_strong_kinship + # exists = root.liege.house + # root.house ?= root.liege.house + # } + # add = { + # desc = diarch_loyalty_score.regency.tradition_strong_kinship + # value = diarch_loyalty_score_add_minor_gain + # } + #} + # +/- Chivalry & variable depending on "honour". + if = { + limit = { has_cultural_tradition = tradition_chivalry } + # If dishonourable... + if = { + limit = { + root.liege = { + OR = { + tyranny >= 1 + prestige_level <= 0 + has_any_shunned_or_criminal_trait_in_faith_trigger = { + CHARACTER = liege + FAITH = root.faith + } + # We avoid the actual ai_honour stat because it's a bit less exposed to the player. + } + } + } + add = { + desc = diarch_loyalty_score.regency.tradition_chivalry.loss + value = diarch_loyalty_score_add_minor_loss + } + } + # Else, honourable enough. + else = { + add = { + desc = diarch_loyalty_score.regency.tradition_chivalry.gain + value = diarch_loyalty_score_add_minor_gain + } } } - ## +++ Content. + # + Philosopher Culture & learning education. if = { - limit = { has_trait = content } + limit = { + has_cultural_tradition = tradition_philosopher_culture + root = { has_trait = education_learning } + } add = { - desc = diarch_loyalty_score.regency.content - value = diarch_loyalty_score_add_major_gain + desc = diarch_loyalty_score.regency.tradition_philosopher_culture + value = diarch_loyalty_score_add_minor_gain } } - ## --- Ambitious. - else_if = { - limit = { has_trait = ambitious } + # -1 (and only 1) if Vegetarian & liege isn't also vegetarian. + ## This one goes out to our dear D.M. for everything he's ever said at lunch. + if = { + limit = { + has_cultural_tradition = tradition_vegetarianism + # ^We're deliberately only checking culture rather than faith here - not wanting to mock religious convictions. + root.liege = { is_vegetarian_trigger = no } + } add = { - desc = diarch_loyalty_score.regency.ambitious - value = diarch_loyalty_score_add_major_loss + desc = diarch_loyalty_score.regency.tradition_vegetarianism + value = -1 } } - ## -- Arbitrary. + # -- Eye for an Eye. if = { - limit = { has_trait = arbitrary } + limit = { has_cultural_tradition = tradition_eye_for_an_eye } add = { - desc = diarch_loyalty_score.regency.arbitrary + desc = diarch_loyalty_score.regency.tradition_eye_for_an_eye value = diarch_loyalty_score_add_medium_loss } } - ## ++ Just. - else_if = { - limit = { has_trait = just } + # -- Byzantine Traditions. + if = { + limit = { has_cultural_tradition = tradition_byzantine_succession } add = { - desc = diarch_loyalty_score.regency.just - value = diarch_loyalty_score_add_medium_gain + desc = diarch_loyalty_score.regency.tradition_byzantine_succession + value = diarch_loyalty_score_add_medium_loss } } - ## --- Disloyal. + # -- Warrior Culture & non-martially educated lieges. if = { - limit = { has_trait = disloyal } + limit = { + has_cultural_tradition = tradition_warrior_culture + root.liege = { + NOR = { + has_trait = education_martial + has_focus = education_martial + } + } + } add = { - desc = diarch_loyalty_score.regency.disloyal - value = diarch_loyalty_score_add_major_loss + desc = diarch_loyalty_score.regency.tradition_warrior_culture + value = diarch_loyalty_score_add_medium_loss } } - ## +++ Loyal. - else_if = { - limit = { has_trait = loyal } + # --- Practiced Pirates. + if = { + limit = { has_cultural_tradition = tradition_practiced_pirates } add = { - desc = diarch_loyalty_score.regency.loyal - value = diarch_loyalty_score_add_major_gain + desc = diarch_loyalty_score.regency.tradition_practiced_pirates + value = diarch_loyalty_score_add_major_loss } } - # Court Positions. - ## ++ Chief Eunuch. + # --- Bound by Faith & different faiths. if = { - limit = { has_court_position = chief_eunuch_court_position } + limit = { + has_cultural_tradition = tradition_faith_bound + NOT = { root.faith = root.liege.faith } + } add = { - desc = diarch_loyalty_score.regency.chief_eunuch - value = diarch_loyalty_score_add_medium_gain + desc = diarch_loyalty_score.regency.tradition_faith_bound + value = diarch_loyalty_score_add_major_loss } } - ## ++ Chief Qadi. - #if = { - # limit = { has_court_position = chief_qadi_court_position } - # add = { - # desc = diarch_loyalty_score.regency.chief_qadi - # value = diarch_loyalty_score_add_medium_gain - # } - #} - # Cultural Traditions. - culture = { - # +++ Malleable Subjects. - if = { - limit = { has_cultural_tradition = tradition_fp2_malleable_subjects } - add = { - desc = diarch_loyalty_score.regency.tradition_fp2_malleable_subjects - value = diarch_loyalty_score_add_major_gain + } +} + +diarch_loyalty_score_standard_values_general_court_positions_value = { + # Court Positions. + ## ++ Chief Eunuch. + if = { + limit = { has_court_position = chief_eunuch_court_position } + add = { + desc = diarch_loyalty_score.regency.chief_eunuch + value = diarch_loyalty_score_add_medium_gain + } + } + ## ++ Chief Qadi. + #if = { + # limit = { has_court_position = chief_qadi_court_position } + # add = { + # desc = diarch_loyalty_score.regency.chief_qadi + # value = diarch_loyalty_score_add_medium_gain + # } + #} +} + +diarch_loyalty_score_standard_values_general_traits_value = { + # Traits. + ## + Lazy. + if = { + limit = { has_trait = lazy } + add = { + desc = diarch_loyalty_score.regency.lazy + value = diarch_loyalty_score_add_minor_gain + } + } + ## ++/-- Diligent. + ### ++ If they like you... + else_if = { + limit = { + has_trait = diligent + opinion = { + target = liege + value >= 1 + } + } + add = { + desc = diarch_loyalty_score.regency.diligent.positive + value = diarch_loyalty_score_add_medium_gain + } + } + ### -- If they dislike you... + else_if = { + limit = { + has_trait = diligent + opinion = { + target = liege + value <= -1 + } + } + add = { + desc = diarch_loyalty_score.regency.diligent.negative + value = diarch_loyalty_score_add_medium_loss + } + } + ### ... and perfectly-neutral diligent characters do nothing extra about it. They are ambivalent. + ## ++ Craven. + if = { + limit = { has_trait = craven } + add = { + desc = diarch_loyalty_score.regency.craven + value = diarch_loyalty_score_add_medium_gain + } + } + ## ++ Honest. + if = { + limit = { has_trait = honest } + add = { + desc = diarch_loyalty_score.regency.honest + value = diarch_loyalty_score_add_medium_gain + } + } + ## -- Deceitful. + else_if = { + limit = { has_trait = deceitful } + add = { + desc = diarch_loyalty_score.regency.deceitful + value = diarch_loyalty_score_add_medium_loss + } + } + ## +++ Content. + if = { + limit = { has_trait = content } + add = { + desc = diarch_loyalty_score.regency.content + value = diarch_loyalty_score_add_major_gain + } + } + ## --- Ambitious. + else_if = { + limit = { has_trait = ambitious } + add = { + desc = diarch_loyalty_score.regency.ambitious + value = diarch_loyalty_score_add_major_loss + } + } + ## -- Arbitrary. + if = { + limit = { has_trait = arbitrary } + add = { + desc = diarch_loyalty_score.regency.arbitrary + value = diarch_loyalty_score_add_medium_loss + } + } + ## ++ Just. + else_if = { + limit = { has_trait = just } + add = { + desc = diarch_loyalty_score.regency.just + value = diarch_loyalty_score_add_medium_gain + } + } + ## --- Disloyal. + if = { + limit = { has_trait = disloyal } + add = { + desc = diarch_loyalty_score.regency.disloyal + value = diarch_loyalty_score_add_major_loss + } + } + ## +++ Loyal. + else_if = { + limit = { has_trait = loyal } + add = { + desc = diarch_loyalty_score.regency.loyal + value = diarch_loyalty_score_add_major_gain + } + } +} + +diarch_loyalty_score_standard_values_high_tier_relationships_value = { + # We don't take the basic tier relationships into account because they affect opinion heavily, and we don't want to double dip too much unless it seems important. + ## Good. + if = { + limit = { + has_any_best_good_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + desc = diarch_loyalty_score.regency.your_positive_relation + value = diarch_loyalty_score_add_massive_gain + } + } + ## Bad. + if = { + limit = { + has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + desc = diarch_loyalty_score.regency.your_negative_relation + value = diarch_loyalty_score_add_massive_loss + } + } +} + +diarch_loyalty_score_standard_values_overrides_loyalty_value = { + # Everyone has a breaking point, so if they categorically hate you, we reduce it down. + if = { + limit = { + opinion = { + target = liege + value <= -100 + } + OR = { + has_hook_of_type = { + target = root + type = loyalty_hook + } + has_hook_of_type = { + target = root + type = predecessor_loyalty_hook } + ai_honor >= max_positive_honor } - # +++ Recognition of Talent & lowborn. + } + add = { + desc = diarch_loyalty_score.regency.override_negated + value = diarch_loyalty_score_add_major_gain + } + } + # Loyalty hooks of any kind mean the diarch will always be unfailingly loyal in their duties. + ## Standard loyalty. + else_if = { + limit = { + liege = { + has_hook_of_type = { + target = root + type = loyalty_hook + } + } + } + add = { + desc = diarch_loyalty_score.regency.loyalty_hook.self + value = diarch_loyalty_score_add_omega_gain + } + } + ## Predecessor loyalty. + else_if = { + limit = { + liege = { + has_hook_of_type = { + target = root + type = predecessor_loyalty_hook + } + } + } + add = { + desc = diarch_loyalty_score.regency.loyalty_hook.predecessor + value = diarch_loyalty_score_add_omega_gain + } + } + # And, per request, if the character is unfailingly honourable then they will also always be loyal. + else_if = { + limit = { ai_honor >= max_positive_honor } + add = { + desc = diarch_loyalty_score.regency.ai_honour + value = diarch_loyalty_score_add_omega_gain + } + } +} + +regent_loyal_after_death_hook_duration_years_value = { + value = 21 + subtract = root.primary_heir.age +} + +historic_regent_loyal_after_death_hook_duration_years_char_214_value = { + value = 21 + subtract = age +} + +################################################## +# Diarchy Succession Candidate Values + +# These need to be whole numbers or the UI'll get _weird_. +miniscule_diarch_candidate_value = 1 +minor_diarch_candidate_value = 2 +medium_diarch_candidate_value = 6 +major_diarch_candidate_value = 14 +massive_diarch_candidate_value = 22 +monumental_diarch_candidate_value = 33 + +miniscule_diarch_candidate_gain = miniscule_diarch_candidate_value +minor_diarch_candidate_gain = minor_diarch_candidate_value +medium_diarch_candidate_gain = medium_diarch_candidate_value +major_diarch_candidate_gain = major_diarch_candidate_value +massive_diarch_candidate_gain = massive_diarch_candidate_value +monumental_diarch_candidate_gain = monumental_diarch_candidate_value + +miniscule_diarch_candidate_loss = { + value = miniscule_diarch_candidate_value + multiply = -1 +} +minor_diarch_candidate_loss = { + value = minor_diarch_candidate_value + multiply = -1 +} +medium_diarch_candidate_loss = { + value = medium_diarch_candidate_value + multiply = -1 +} +major_diarch_candidate_loss = { + value = major_diarch_candidate_value + multiply = -1 +} +massive_diarch_candidate_loss = { + value = massive_diarch_candidate_value + multiply = -1 +} +monumental_diarch_candidate_loss = { + value = monumental_diarch_candidate_value + multiply = -1 +} + +hard_disable_diarch_candidate_value = -1000 + +diarchy_succession_court_type_baseline_value = 10 +diarchy_succession_competence_baseline_value = 5 + +diarchy_regent_succession_score_value = { + if = { + # For performance reasons, you'll sometimes check this when you don't have a liege, so we need to check beforehand for error purposes. + limit = { exists = liege } + # We increase the importance of family if the liege is underage or an imbecile. + if = { + limit = { + liege = { + OR = { + is_adult = no + is_incapable = yes + } + } + any_close_or_extended_family_member = { this = liege } + } + # Ruling characters get a bit less, as they have other duties. + if = { + limit = { is_ruler = yes } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.diarchy_specific.regency.close_or_extended_family_of_invalid.ruler + } + } + # Whereas non-rulers get a mega-boost, as they can be there all the time + else = { + add = { + value = monumental_diarch_candidate_gain + desc = diarch_succession_score.diarchy_specific.regency.close_or_extended_family_of_invalid.non_ruler + } + } + } + # Familial ties. + ## If you engage in hyper-incest and break your own regency succession, don't come crying to the devs. You have done this to yourself. + add = { + desc = diarch_succession_score.category.familial_ties + # ADD SCORE + ## Is parent of + if = { + limit = { is_parent_of = liege } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_parent + } + } + ## Is child of + if = { + limit = { is_child_of = liege } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_child + } + } + ## Is sibling of + if = { + limit = { is_sibling_of = liege } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_sibling + } + } + ## Is grandparent of + if = { + limit = { is_grandparent_of = liege } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_grandparent + } + } + ## Is grandchild of + if = { + limit = { is_grandchild_of = liege } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_grandchild + } + } + ## Is uncle/aunt of + if = { + limit = { is_uncle_or_aunt_of = liege } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_auntuncle + } + } + ## Is nibling of + if = { + limit = { is_nibling_of = liege } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_nibling + } + } + ## Is cousin of + if = { + limit = { is_cousin_of = liege } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_cousin + } + } + ## Is great grandparent of + if = { + limit = { is_great_grandparent_of = liege } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.your_greatgrandparent + } + } + ## Is great grandchild of + if = { + limit = { is_great_grandchild_of = liege } + add = { + value = miniscule_diarch_candidate_gain + desc = diarch_succession_score.familial_ties.yourgreat_grandchild + } + } + } + # Personal ties. + add = { + desc = diarch_succession_score.category.personal_ties + # ADD SCORE + ## Is your heir + if = { + limit = { + exists = liege.primary_heir + this = liege.primary_heir + } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_heir + } + } + ## Is spouse of + if = { + limit = { is_spouse_of = liege } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_spouse + } + } + ## Is guardian of + if = { + limit = { has_relation_ward = liege } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_ward + } + } + ## Has a seat on your council + if = { + limit = { is_councillor_of = liege } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_councillor + } + } + ## Is powerful vassal of + if = { + limit = { is_powerful_vassal = yes } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_powerful_vassal + } + } + ## Has positive opinion + if = { + limit = { + opinion = { + target = liege + value >= medium_positive_opinion + } + } + add = { + value = miniscule_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.likes_you + } + } + ## Has positive relationship + if = { + limit = { + has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_positive_relation + } + } + # REMOVE SCORE + ## Is your nemesis + if = { + limit = { + has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = major_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.your_nemesis + } + } + ## Has a moderate bad relationship + if = { + limit = { + has_any_only_moderate_bad_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = medium_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.your_negative_relation + } + } + ## Has negative opinion + if = { + limit = { + opinion = { + target = liege + value <= medium_negative_opinion + } + } + add = { + value = miniscule_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.dislikes_you + } + } + } + # Societal bonds. + add = { + desc = diarch_succession_score.category.societal_bonds + # ADD SCORE + ## Is in your house + if = { + limit = { + exists = house + house = liege.house + } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.societal_bonds.your_house + } + } + ## Is in your dynasty if = { limit = { - has_cultural_tradition = tradition_talent_acquisition - root = { is_lowborn = yes } + exists = house + # Filter out same-house chars to avoid double-dipping. + NOT = { house = liege.house } + # So we _only_ want same dynasty chars. + dynasty = liege.dynasty } add = { - desc = diarch_loyalty_score.regency.tradition_talent_acquisition - value = diarch_loyalty_score_add_major_gain + value = miniscule_diarch_candidate_gain + desc = diarch_succession_score.societal_bonds.your_dynasty + } + } + ## Has same faith + if = { + limit = { faith = liege.faith } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.societal_bonds.your_faith + } + } + ## Is of same culture + if = { + limit = { culture = liege.culture } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.societal_bonds.your_culture + } + } + } + # Royal court. + if = { + limit = { + liege = { has_royal_court = yes } + } + add = { + desc = diarch_succession_score.category.royal_court + # ADD SCORE + ## Skill for court type. + ### Diplomacy. + if = { + limit = { + liege = { has_court_type = court_diplomatic } + } + add = { + value = diplomacy + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.diplomacy + } + } + ### Martial. + if = { + limit = { + liege = { has_court_type = court_warlike } + } + add = { + value = martial + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.martial + } + } + ### Stewardship. + if = { + limit = { + liege = { has_court_type = court_administrative } + } + add = { + value = stewardship + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.stewardship + } + } + ### Intrigue. + if = { + limit = { + liege = { has_court_type = court_intrigue } + } + add = { + value = intrigue + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.intrigue + } } - } - # ++/-- Astute Diplomats & they like or dislike their liege. - if = { - limit = { has_cultural_tradition = tradition_astute_diplomats } - # If they like you, they work loyally. + ### Learning. if = { limit = { - root = { - opinion = { - target = liege - value >= 1 - } - } + liege = { has_court_type = court_scholarly } } add = { - desc = diarch_loyalty_score.regency.tradition_astute_diplomats.positive - value = diarch_loyalty_score_add_medium_gain + value = learning + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.learning } } - # If they don't, they work against you. - else_if = { + ### Prowess. + if = { limit = { - root = { - opinion = { - target = liege - value <= -1 - } - } + liege = { has_court_type = court_tribal } + } + add = { + value = prowess + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_court_type_baseline_value + desc = diarch_succession_score.royal_court.court_type.prowess } + } + ## Speaks court language. + if = { + limit = { knows_court_language_of = liege } add = { - desc = diarch_loyalty_score.regency.tradition_astute_diplomats.negative - value = diarch_loyalty_score_add_medium_loss + value = major_diarch_candidate_gain + desc = diarch_succession_score.royal_court.speaks_court_language } } - # Else neutral, so they're ambivalent. } - # ++ Ruling Caste & is liege. + } + # Traits: Noble Ambitions. + add = { + desc = diarch_succession_score.category.traits.noble_ambitions + # ADD SCORE + ## Ambitious trait if = { - limit = { - root.liege.culture = { - has_cultural_tradition = tradition_ruling_caste - # But only apply it to diff-cultured characters. - NOT = { this = root.culture } - } - } + limit = { has_trait = ambitious } add = { - desc = diarch_loyalty_score.regency.tradition_ruling_caste - value = diarch_loyalty_score_add_medium_gain + value = minor_diarch_candidate_gain + desc = diarch_succession_score.traits.ambitious } } - # ++ Family Business & extended family. + ## Diligent trait if = { - limit = { - has_cultural_tradition = tradition_family_entrepreneurship - root = { is_close_or_extended_family_of = liege } - } + limit = { has_trait = diligent } add = { - desc = diarch_loyalty_score.regency.tradition_family_entrepreneurship - value = diarch_loyalty_score_add_medium_gain + value = minor_diarch_candidate_gain + desc = diarch_succession_score.traits.diligent } } - # + Hereditary Hierarchy. + # REMOVE SCORE + ## Lazy trait if = { - limit = { has_cultural_tradition = tradition_hereditary_hierarchy } + limit = { has_trait = lazy } add = { - desc = diarch_loyalty_score.regency.tradition_hereditary_hierarchy - value = diarch_loyalty_score_add_minor_gain + value = minor_diarch_candidate_loss + desc = diarch_succession_score.traits.lazy } } - # + Tribal Unity & same-house. + ## Humble trait if = { - limit = { - has_cultural_tradition = tradition_tribe_unity - exists = root.liege.house - root.house ?= root.liege.house - } + limit = { has_trait = humble } add = { - desc = diarch_loyalty_score.regency.tradition_tribe_unity - value = diarch_loyalty_score_add_minor_gain + value = minor_diarch_candidate_loss + desc = diarch_succession_score.traits.humble } } - # + Strong Kinship & same-house. - #if = { - # limit = { - # has_cultural_tradition = tradition_strong_kinship - # exists = root.liege.house - # root.house ?= root.liege.house - # } - # add = { - # desc = diarch_loyalty_score.regency.tradition_strong_kinship - # value = diarch_loyalty_score_add_minor_gain - # } - #} - # +/- Chivalry & variable depending on "honour". - if = { - limit = { has_cultural_tradition = tradition_chivalry } - # If dishonourable... - if = { - limit = { - root.liege = { - OR = { - tyranny >= 1 - prestige_level <= 0 - has_any_shunned_or_criminal_trait_in_faith_trigger = { - CHARACTER = liege - FAITH = root.faith - } - # We avoid the actual ai_honour stat because it's a bit less exposed to the player. - } - } - } - add = { - desc = diarch_loyalty_score.regency.tradition_chivalry.loss - value = diarch_loyalty_score_add_minor_loss - } - } - # Else, honourable enough. - else = { - add = { - desc = diarch_loyalty_score.regency.tradition_chivalry.gain - value = diarch_loyalty_score_add_minor_gain - } + ## Content trait + if = { + limit = { has_trait = content } + add = { + value = minor_diarch_candidate_loss + desc = diarch_succession_score.traits.content } } - # + Philosopher Culture & learning education. + } + # Circumstances. + add = { + desc = diarch_succession_score.category.circumstances + # REMOVE SCORE + ## Has a critical illness if = { - limit = { - has_cultural_tradition = tradition_philosopher_culture - root = { has_trait = education_learning } + limit = { has_serious_disease_trigger = yes } + add = { + value = major_diarch_candidate_loss + desc = diarch_succession_score.circumstances.cripplingly_ill } + } + ## Has severe wounds + if = { + limit = { has_trait = wounded_3 } add = { - desc = diarch_loyalty_score.regency.tradition_philosopher_culture - value = diarch_loyalty_score_add_minor_gain + value = medium_diarch_candidate_loss + desc = diarch_succession_score.circumstances.badly_wounded } } - # -1 (and only 1) if Vegetarian & liege isn't also vegetarian. - ## This one goes out to our dear D.M. for everything he's ever said at lunch. + ## Has a criminal reason. if = { limit = { - has_cultural_tradition = tradition_vegetarianism - # ^We're deliberately only checking culture rather than faith here - not wanting to mock religious convictions. - root.liege = { is_vegetarian_trigger = no } + save_temporary_scope_as = char_temp + liege = { + OR = { + has_imprisonment_reason = scope:char_temp + has_banish_reason = scope:char_temp + has_execute_reason = scope:char_temp + has_revoke_title_reason = scope:char_temp + } + } } add = { - desc = diarch_loyalty_score.regency.tradition_vegetarianism - value = -1 + value = medium_diarch_candidate_loss + desc = diarch_succession_score.circumstances.known_criminal } } - # -- Eye for an Eye. + ## Under the age of 25 if = { - limit = { has_cultural_tradition = tradition_eye_for_an_eye } + limit = { age <= 25 } add = { - desc = diarch_loyalty_score.regency.tradition_eye_for_an_eye - value = diarch_loyalty_score_add_medium_loss + value = minor_diarch_candidate_loss + desc = diarch_succession_score.circumstances.very_young } } - # -- Byzantine Traditions. + ## High-stress characters if = { - limit = { has_cultural_tradition = tradition_byzantine_succession } + limit = { stress_level >= 1 } add = { - desc = diarch_loyalty_score.regency.tradition_byzantine_succession - value = diarch_loyalty_score_add_medium_loss + value = minor_diarch_candidate_loss + desc = diarch_succession_score.circumstances.stressed_out } } - # -- Warrior Culture & non-martially educated lieges. + ## Bastard / Child of Concubine if = { limit = { - has_cultural_tradition = tradition_warrior_culture - root.liege = { - NOR = { - has_trait = education_martial - has_focus = education_martial - } + OR = { + has_trait = bastard + has_trait = child_of_concubine } } add = { - desc = diarch_loyalty_score.regency.tradition_warrior_culture - value = diarch_loyalty_score_add_medium_loss + value = miniscule_diarch_candidate_loss + desc = diarch_succession_score.circumstances.illegitimate } } - # --- Practiced Pirates. + ## Has a minor illness if = { - limit = { has_cultural_tradition = tradition_practiced_pirates } + limit = { has_trait = ill } add = { - desc = diarch_loyalty_score.regency.tradition_practiced_pirates - value = diarch_loyalty_score_add_major_loss + value = miniscule_diarch_candidate_loss + desc = diarch_succession_score.circumstances.mildly_ill } } - # --- Bound by Faith & different faiths. + ## Has a minor wound if = { limit = { - has_cultural_tradition = tradition_faith_bound - NOT = { root.faith = root.liege.faith } + OR = { + has_trait = wounded_1 + has_trait = wounded_2 + } } add = { - desc = diarch_loyalty_score.regency.tradition_faith_bound - value = diarch_loyalty_score_add_major_loss + value = minor_diarch_candidate_loss + desc = diarch_succession_score.circumstances.mildly_wounded } } - } - # Compassion if liege is helpless. - if = { - limit = { - liege = { - OR = { - is_incapable = yes - is_adult = no + ## Doesn't speak your main language + ### Due to technical constraints, we can currently only check if you speak your liege's culture's language, not if you have any shared languages. + if = { + limit = { + NOR = { + knows_language_of_culture = liege.culture + # Exempt family members so that we don't screw wrong-gendered unlanded chars over. + is_close_or_extended_family_of = liege } } - } - add = { - desc = diarch_loyalty_score.regency.compassion_for_helpless - value = root.ai_compassion - } - } - # Tyranny. - if = { - limit = { liege.tyranny >= 1 } - add = { - desc = diarch_loyalty_score.regency.tyranny - value = { - value = liege.tyranny - multiply = -1 + add = { + value = major_diarch_candidate_loss + desc = diarch_succession_score.circumstances.not_speak_language } } } - # Dread factors in in temporary regencies. + # REMOVE CANDIDATES + ## Must be a vassal or in your court if = { limit = { - liege = { - dread >= 1 - has_diarchy_active_parameter = diarchy_type_is_temporary_regency + exists = liege + NOR = { + is_ruler = yes + is_courtier_of = liege } - has_dread_level_towards = { - target = liege - level >= 1 - } } add = { - desc = diarch_loyalty_score.regency.temporary_regency.dread - value = { - value = liege.dread - # Weight up if they're a basic natural coward. - if = { - limit = { - has_dread_level_towards = { - target = liege - level >= 2 - } - } - multiply = 2 - } - } + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.neither_vassal_nor_courtier } } - # Overrides. - ## Everyone has a breaking point, so if they categorically hate you, we reduce it down. + ## Must be an adult if = { - limit = { - opinion = { - target = liege - value <= -100 - } - OR = { - has_hook_of_type = { - target = root - type = loyalty_hook - } - has_hook_of_type = { - target = root - type = predecessor_loyalty_hook - } - ai_honor >= max_positive_honor - } - } + limit = { is_adult = no } add = { - desc = diarch_loyalty_score.regency.override_negated - value = diarch_loyalty_score_add_major_gain + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.child } } - ## Loyalty hooks of any kind mean the diarch will always be unfailingly loyal in their duties. - ### Standard loyalty. - else_if = { - limit = { - liege = { - has_hook_of_type = { - target = root - type = loyalty_hook - } - } - } + ## Must not NOT imprisoned + if = { + limit = { is_imprisoned = yes } add = { - desc = diarch_loyalty_score.regency.loyalty_hook.self - value = diarch_loyalty_score_add_omega_gain + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.imprisoned } } - ### Predecessor loyalty. - else_if = { + ## Is NOT incapable or infirm + if = { limit = { - liege = { - has_hook_of_type = { - target = root - type = predecessor_loyalty_hook - } - } - } - add = { - desc = diarch_loyalty_score.regency.loyalty_hook.predecessor - value = diarch_loyalty_score_add_omega_gain - } - } - ## And, per request, if the character is unfailingly honourable then they will also always be loyal. - else_if = { - limit = { ai_honor >= max_positive_honor } - add = { - desc = diarch_loyalty_score.regency.ai_honour - value = diarch_loyalty_score_add_omega_gain - } - } - } -} - -regent_loyal_after_death_hook_duration_years_value = { - value = 21 - subtract = root.primary_heir.age -} - -historic_regent_loyal_after_death_hook_duration_years_char_214_value = { - value = 21 - subtract = age -} - -################################################## -# Diarchy Succession Candidate Values - -# These need to be whole numbers or the UI'll get _weird_. -miniscule_diarch_candidate_value = 1 -minor_diarch_candidate_value = 2 -medium_diarch_candidate_value = 6 -major_diarch_candidate_value = 14 -massive_diarch_candidate_value = 22 -monumental_diarch_candidate_value = 33 - -miniscule_diarch_candidate_gain = miniscule_diarch_candidate_value -minor_diarch_candidate_gain = minor_diarch_candidate_value -medium_diarch_candidate_gain = medium_diarch_candidate_value -major_diarch_candidate_gain = major_diarch_candidate_value -massive_diarch_candidate_gain = massive_diarch_candidate_value -monumental_diarch_candidate_gain = monumental_diarch_candidate_value - -miniscule_diarch_candidate_loss = { - value = miniscule_diarch_candidate_value - multiply = -1 -} -minor_diarch_candidate_loss = { - value = minor_diarch_candidate_value - multiply = -1 -} -medium_diarch_candidate_loss = { - value = medium_diarch_candidate_value - multiply = -1 -} -major_diarch_candidate_loss = { - value = major_diarch_candidate_value - multiply = -1 -} -massive_diarch_candidate_loss = { - value = massive_diarch_candidate_value - multiply = -1 -} -monumental_diarch_candidate_loss = { - value = monumental_diarch_candidate_value - multiply = -1 + OR = { + is_incapable = yes + has_trait = infirm + } + } + add = { + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.incapable_or_infirm + } + } + ## Event filter. + ### Current regent's shenanigans. + if = { + limit = { var:diarch_succession_filtered_due_to_incumbents_politicking ?= liege } + add = { + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.event_filters.incumbent_politicking + } + } + } } -hard_disable_diarch_candidate_value = -1000 - -diarchy_succession_court_type_baseline_value = 10 - -diarchy_regent_succession_score_value = { +diarchy_vizier_succession_score_value = { if = { # For performance reasons, you'll sometimes check this when you don't have a liege, so we need to check beforehand for error purposes. limit = { exists = liege } - # We increase the importance of family if the liege is underage or an imbecile. - if = { - limit = { - liege = { - OR = { - is_adult = no - is_incapable = yes - } + # Familial ties. + ## We actually weight down here, as you don't generally want family to be your vizier. + add = { + desc = diarch_succession_score.category.familial_ties + # REMOVE SCORE + ## Is close family + if = { + limit = { is_close_family_of = liege } + add = { + value = monumental_diarch_candidate_loss + desc = diarch_succession_score.familial_ties.undignified.close_family } - any_close_or_extended_family_member = { this = liege } } - # Ruling characters get a bit less, as they have other duties. - if = { - limit = { is_ruler = yes } + ## Is extended family + else_if = { + limit = { is_extended_family_of = liege } add = { - value = massive_diarch_candidate_gain - desc = diarch_succession_score.regency.close_or_extended_family_of_invalid.ruler + value = massive_diarch_candidate_loss + desc = diarch_succession_score.familial_ties.undignified.extended_family } } - # Whereas non-rulers get a mega-boost, as they can be there all the time - else = { + ## Is same-house + else_if = { + limit = { + exists = liege.house + house ?= liege.house + } add = { - value = monumental_diarch_candidate_gain - desc = diarch_succession_score.regency.close_or_extended_family_of_invalid.non_ruler + value = major_diarch_candidate_loss + desc = diarch_succession_score.familial_ties.undignified.house + } + } + ## Is same-dynasty + else_if = { + limit = { + exists = liege.dynasty + dynasty = liege.dynasty + } + add = { + value = medium_diarch_candidate_loss + desc = diarch_succession_score.familial_ties.undignified.dynasty } } } - # Familial ties. - ## If you engage in hyper-incest and break your own regency succession, don't come crying to the devs. You have done this to yourself. + # Personal ties. + ## Since viziers aren't generally part of the ruling family, or indeed any ruling family, we cut down personal ties a smidge compared to usual. add = { - desc = diarch_succession_score.category.familial_ties + desc = diarch_succession_score.category.personal_ties # ADD SCORE - ## Is parent of + ## Is guardian of if = { - limit = { is_parent_of = liege } + limit = { has_relation_ward = liege } add = { value = massive_diarch_candidate_gain - desc = diarch_succession_score.regency.your_parent + desc = diarch_succession_score.personal_ties.your_ward } } - ## Is child of + ## Nothing for being on your council - they're a council position, so this'd only ever weight up the incumbent. + ### I mean, technically not _but_ the actual mechanical effect is that the vizier council position'll auto-replace whatever other position they held, which'd get annoying_fast_, so we avoid it. + ## Has positive opinion if = { - limit = { is_child_of = liege } + limit = { + opinion = { + target = liege + value >= medium_positive_opinion + } + } add = { - value = major_diarch_candidate_gain - desc = diarch_succession_score.regency.your_child + value = miniscule_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.likes_you } } - ## Is sibling of + ## Has positive relationship if = { - limit = { is_sibling_of = liege } + limit = { + has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = minor_diarch_candidate_gain + desc = diarch_succession_score.personal_ties.your_positive_relation + } + } + # REMOVE SCORE + ## Is your nemesis + if = { + limit = { + has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = major_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.your_nemesis + } + } + ## Has a moderate bad relationship + if = { + limit = { + has_any_only_moderate_bad_relationship_with_character_trigger = { CHARACTER = liege } + } + add = { + value = medium_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.your_negative_relation + } + } + ## Has negative opinion + if = { + limit = { + opinion = { + target = liege + value <= medium_negative_opinion + } + } + add = { + value = miniscule_diarch_candidate_loss + desc = diarch_succession_score.personal_ties.dislikes_you + } + } + } + # Suitable servants. + add = { + desc = diarch_succession_score.category.suitable_servant + # ADD SCORE + ## Ruler status. + ### Tax collector. + if = { + limit = { is_tax_collector = yes } add = { value = major_diarch_candidate_gain - desc = diarch_succession_score.regency.your_sibling + desc = diarch_succession_score.suitable_servant.tax_collector } } - ## Is grandparent of + ### Lowborn. if = { - limit = { is_grandparent_of = liege } + limit = { is_lowborn = yes } add = { - value = medium_diarch_candidate_gain - desc = diarch_succession_score.regency.your_grandparent + value = minor_diarch_candidate_gain + desc = diarch_succession_score.suitable_servant.lowborn } } - ## Is grandchild of + ### Landless. if = { - limit = { is_grandchild_of = liege } + limit = { is_landed = no } add = { value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_grandchild + desc = diarch_succession_score.suitable_servant.landless } } - ## Is uncle/aunt of + ## In-Groupness. + ### Same culture. if = { - limit = { is_uncle_or_aunt_of = liege } + limit = { culture = liege.culture } add = { value = medium_diarch_candidate_gain - desc = diarch_succession_score.regency.your_auntuncle + desc = diarch_succession_score.suitable_servant.shares_liege_culture } } - ## Is nibling of + ### Same faith. if = { - limit = { is_nibling_of = liege } + limit = { faith = liege.faith } add = { value = medium_diarch_candidate_gain - desc = diarch_succession_score.regency.your_nibling + desc = diarch_succession_score.suitable_servant.shares_liege_faith } } - ## Is cousin of + ### Diff-faith same HoF. if = { - limit = { is_cousin_of = liege } + limit = { + NOT = { faith = liege.faith } + exists = liege.faith.religious_head + faith.religious_head ?= liege.faith.religious_head + } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.suitable_servant.shares_liege_hof + } + } + ### Diff-faith diff-HoF Righteous. + else_if = { + limit = { + NOT = { faith = liege.faith } + faith = { + faith_hostility_level = { + target = prev.liege.faith + value = faith_fully_accepted_level + } + } + } add = { value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_cousin + desc = diarch_succession_score.suitable_servant.diff_faith_considers_liege_righteous } } - ## Is great grandparent of + ### Diff-faith diff-HoF Astray. + else_if = { + limit = { + NOT = { faith = liege.faith } + faith = { + faith_hostility_level = { + target = prev.liege.faith + value = faith_astray_level + } + } + } + add = { + value = miniscule_diarch_candidate_gain + desc = diarch_succession_score.suitable_servant.diff_faith_considers_liege_astray + } + } + # VARIABLE SCORE + ## In-Groupness. + ### Diff-culture acceptance. if = { - limit = { is_great_grandparent_of = liege } + limit = { + NOT = { culture = liege.culture } + } + culture = { + add = { + value = { + # Grab the our cultural acceptance value. + value = "cultural_acceptance(prev.liege.culture)" + # Now, the actual 0 opinion point is waaaaay up at 100%, so we set a high base to make lacking acceptance more of a problem. + ## But not so high as to screw minorities (who are likely both faith and culture minorities) out of ever getting the position. + add = -50 + # Finally, reduce the number down - this gives us an axis of -10 to +10. + multiply = 0.2 + # Cultural Acceptance actually goes to 2 decimal places, so we need to round it out neatly or someone's gonna end up with a score of 25.03. + round = yes + } + desc = diarch_succession_score.suitable_servant.diff_culture_acceptance + } + } + } + # REMOVE SCORE + ## Ruler status. + ### Punish barons. + #### Double-dipping, but just to make it clear. + if = { + limit = { is_landed = yes } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_greatgrandparent + value = medium_diarch_candidate_loss + desc = diarch_succession_score.suitable_servant.landed } } - ## Is great grandchild of + ## In-Groupness. + ### Diff-faith diff-HoF Hostile. if = { - limit = { is_great_grandchild_of = liege } + limit = { + faith = { + faith_hostility_level = { + target = prev.liege.faith + value = faith_hostile_level + } + } + } add = { - value = miniscule_diarch_candidate_gain - desc = diarch_succession_score.regency.yourgreat_grandchild + value = minor_diarch_candidate_loss + desc = diarch_succession_score.suitable_servant.diff_faith_considers_liege_hostile + } + } + ### Diff-faith diff-HoF Evil. + else_if = { + limit = { + faith = { + faith_hostility_level = { + target = prev.liege.faith + value = faith_evil_level + } + } + } + add = { + value = medium_diarch_candidate_loss + desc = diarch_succession_score.suitable_servant.diff_faith_considers_liege_evil } } } - # Personal ties. + # Nepotism. add = { - desc = diarch_succession_score.category.personal_ties - # ADD SCORE - ## Is your heir + desc = diarch_succession_score.category.nepotism + # Liege Partners. + ## Friends with primary spouse. if = { limit = { - exists = liege.primary_heir - this = liege.primary_heir + liege.primary_spouse ?= { has_relation_friend = prev } } add = { - value = massive_diarch_candidate_gain - desc = diarch_succession_score.regency.your_heir + value = medium_diarch_candidate_gain + desc = diarch_succession_score.nepotism.primary_spouse.friend } } - ## Is spouse of + ## Friends with consort if = { - limit = { is_spouse_of = liege } + limit = { + diarch_candidate_shares_relationship_with_lesser_consort_trigger = { RELATION = friend } + } add = { - value = massive_diarch_candidate_gain - desc = diarch_succession_score.regency.your_spouse + value = minor_diarch_candidate_gain + desc = diarch_succession_score.nepotism.consort.friend } } - ## Is guardian of + ## Best Friends with primary spouse. if = { - limit = { has_relation_ward = liege } + limit = { + liege.primary_spouse ?= { has_relation_best_friend = prev } + } add = { - value = massive_diarch_candidate_gain - desc = diarch_succession_score.regency.your_ward + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.primary_spouse.best_friend } } - ## Has a seat in your council + ## Best Friends with consort if = { - limit = { is_councillor_of = liege } + limit = { + diarch_candidate_shares_relationship_with_lesser_consort_trigger = { RELATION = best_friend } + } add = { value = medium_diarch_candidate_gain - desc = diarch_succession_score.regency.your_councillor + desc = diarch_succession_score.nepotism.consort.best_friend } } - ## Is powerful vassal of + ## Rivals with primary spouse. if = { - limit = { is_powerful_vassal = yes } + limit = { + liege.primary_spouse ?= { has_relation_rival = prev } + } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_powerful_vassal + value = major_diarch_candidate_loss + desc = diarch_succession_score.nepotism.primary_spouse.rival } } - ## Has positive opinion + ## Rivals with consort if = { limit = { - opinion = { - target = liege - value >= medium_positive_opinion + diarch_candidate_shares_relationship_with_lesser_consort_trigger = { RELATION = rival } + } + add = { + value = medium_diarch_candidate_loss + desc = diarch_succession_score.nepotism.consort.rival + } + } + ## Nemeses with primary spouse. + if = { + limit = { + liege.primary_spouse ?= { has_relation_nemesis = prev } + } + add = { + value = monumental_diarch_candidate_loss + desc = diarch_succession_score.nepotism.primary_spouse.nemesis + } + } + ## Nemeses with consort + if = { + limit = { + diarch_candidate_shares_relationship_with_lesser_consort_trigger = { RELATION = nemesis } + } + add = { + value = massive_diarch_candidate_loss + desc = diarch_succession_score.nepotism.consort.nemesis + } + } + ## Shares culture with minority consort + if = { + limit = { + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = any_consort + QUALITY = culture } } add = { - value = miniscule_diarch_candidate_gain - desc = diarch_succession_score.regency.likes_you + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.any_consort.shares_minority_culture } } - ## Has positive relationship + ## Shares faith with minority consort if = { limit = { - has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = liege } + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = any_consort + QUALITY = faith + } } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_positive_relation + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.any_consort.shares_minority_faith } } - # REMOVE SCORE - ## Is your nemesis + # Liege Stay-at-Home Children. + ## Friends with SaH child. if = { limit = { - has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = liege } + diarch_candidate_shares_relationship_with_child_trigger = { RELATION = friend } + } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.nepotism.sah_child.friend + } + } + ## Best Friends with SaH child. + if = { + limit = { + diarch_candidate_shares_relationship_with_child_trigger = { RELATION = best_friend } + } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.sah_child.best_friend + } + } + ## Rivals with SaH child. + if = { + limit = { + diarch_candidate_shares_relationship_with_child_trigger = { RELATION = rival } } add = { value = major_diarch_candidate_loss - desc = diarch_succession_score.regency.your_nemesis + desc = diarch_succession_score.nepotism.sah_child.rival } } - ## Has a moderate bad relationship + ## Nemeses with SaH child. if = { limit = { - has_any_only_moderate_bad_relationship_with_character_trigger = { CHARACTER = liege } + diarch_candidate_shares_relationship_with_child_trigger = { RELATION = nemesis } } add = { - value = medium_diarch_candidate_loss - desc = diarch_succession_score.regency.your_negative_relation + value = massive_diarch_candidate_loss + desc = diarch_succession_score.nepotism.sah_child.nemesis } } - ## Has negative opinion + ## Shares culture with minority SaH child. if = { limit = { - opinion = { - target = liege - value <= medium_negative_opinion + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = any_child + QUALITY = culture } } add = { - value = miniscule_diarch_candidate_loss - desc = diarch_succession_score.regency.dislikes_you + value = medium_diarch_candidate_gain + desc = diarch_succession_score.nepotism.sah_child.shares_minority_culture } } - } - # Societal bonds. - add = { - desc = diarch_succession_score.category.societal_bonds - # ADD SCORE - ## Is in your house + ## Shares faith with minority SaH child. if = { limit = { - exists = house - house = liege.house + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = any_child + QUALITY = faith + } } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_house + value = medium_diarch_candidate_gain + desc = diarch_succession_score.nepotism.sah_child.shares_minority_faith } } - ## Is in your dynasty + # Incumbent Vizier. if = { - limit = { - exists = house - # Filter out same-house chars to avoid double-dipping. - NOT = { house = liege.house } - # So we _only_ want same dynasty chars. - dynasty = liege.dynasty + limit = { exists = liege.diarch } + # Close family of incumbent vizier. + if = { + limit = { + NOT = { this = liege.diarch } + is_close_family_of = liege.diarch + } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.close_family + } } - add = { - value = miniscule_diarch_candidate_gain - desc = diarch_succession_score.regency.your_dynasty + # Extended family of incumbent vizier. + if = { + limit = { + NOT = { this = liege.diarch } + is_extended_family_of = liege.diarch + } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.extended_family + } } - } - ## Has same faith - if = { - limit = { faith = liege.faith } - add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_faith + # Friends with incumbent vizier. + if = { + limit = { has_relation_friend = liege.diarch } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.friend + } } - } - ## Is of same culture - if = { - limit = { culture = liege.culture } - add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.your_culture + # Best Friends with incumbent vizier. + if = { + limit = { has_relation_best_friend = liege.diarch } + add = { + value = massive_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.best_friend + } + } + # Rivals with incumbent vizier. + if = { + limit = { has_relation_rival = liege.diarch } + add = { + value = major_diarch_candidate_loss + desc = diarch_succession_score.nepotism.incumbent_vizier.rival + } + } + # Nemeses with incumbent vizier. + if = { + limit = { has_relation_nemesis = liege.diarch } + add = { + value = monumental_diarch_candidate_loss + desc = diarch_succession_score.nepotism.incumbent_vizier.nemesis + } + } + # Shares culture with minority incumbent vizier. + if = { + limit = { + NOT = { this = liege.diarch } + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = diarch + QUALITY = culture + } + } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.shares_minority_culture + } + } + # Shares faith with minority incumbent vizier. + if = { + limit = { + NOT = { this = liege.diarch } + diarch_candidate_shares_minority_status_with_trigger = { + TRIGGER_OR_TARGET = diarch + QUALITY = faith + } + } + add = { + value = major_diarch_candidate_gain + desc = diarch_succession_score.nepotism.incumbent_vizier.shares_minority_faith + } } } } @@ -908,7 +1816,7 @@ diarchy_regent_succession_score_value = { value = diplomacy # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.diplomacy + desc = diarch_succession_score.royal_court.court_type.diplomacy } } ### Martial. @@ -920,7 +1828,7 @@ diarchy_regent_succession_score_value = { value = martial # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.martial + desc = diarch_succession_score.royal_court.court_type.martial } } ### Stewardship. @@ -932,7 +1840,7 @@ diarchy_regent_succession_score_value = { value = stewardship # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.stewardship + desc = diarch_succession_score.royal_court.court_type.stewardship } } ### Intrigue. @@ -944,7 +1852,7 @@ diarchy_regent_succession_score_value = { value = intrigue # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.intrigue + desc = diarch_succession_score.royal_court.court_type.intrigue } } ### Learning. @@ -956,7 +1864,7 @@ diarchy_regent_succession_score_value = { value = learning # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.learning + desc = diarch_succession_score.royal_court.court_type.learning } } ### Prowess. @@ -968,62 +1876,176 @@ diarchy_regent_succession_score_value = { value = prowess # Then we subtract the baseline so that your skill has to matter. subtract = diarchy_succession_court_type_baseline_value - desc = diarch_succession_score.regency.court_type.prowess + desc = diarch_succession_score.royal_court.court_type.prowess } } ## Speaks court language. if = { limit = { knows_court_language_of = liege } add = { - value = major_diarch_candidate_gain - desc = diarch_succession_score.regency.speaks_court_language + # Value a bit lower than elsewhere; it's not that it's not important, but it's more easily out-balanced by other factors (e.g., competency) so we need to lower it proportionally. + value = medium_diarch_candidate_gain + desc = diarch_succession_score.royal_court.speaks_court_language } } } } - # Traits. + # Base skills. + ## Viziers are a very functional job, so they always take account of the most practical courtly skills. add = { - desc = diarch_succession_score.category.traits + desc = diarch_succession_score.category.competence # ADD SCORE - ## Ambitious trait + ## Diplomacy. + add = { + value = diplomacy + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_competence_baseline_value + desc = diarch_succession_score.competence.vizierate.diplomacy + } + ## Stewardship. + add = { + value = stewardship + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_competence_baseline_value + desc = diarch_succession_score.competence.vizierate.stewardship + } + ## Intrigue. + add = { + value = intrigue + # Then we subtract the baseline so that your skill has to matter. + subtract = diarchy_succession_competence_baseline_value + desc = diarch_succession_score.competence.vizierate.intrigue + } + } + # Traits: Civil Service. + ## These are a bit more important due to the lack of familial ties, so we boost the score a little. + add = { + desc = diarch_succession_score.category.traits.civil_service + # ADD SCORE + ## Prefer motivated workers. + ### Ambitious trait if = { limit = { has_trait = ambitious } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.ambitious + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.ambitious } } - ## Diligent trait + ### Diligent trait if = { limit = { has_trait = diligent } add = { - value = minor_diarch_candidate_gain - desc = diarch_succession_score.regency.diligent + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.diligent + } + } + ## But also just things that make you a good civil servant. + ### Humble trait + if = { + limit = { has_trait = humble } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.humble + } + } + ### Content trait + if = { + limit = { has_trait = content } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.content + } + } + ### Patient trait + if = { + limit = { has_trait = patient } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.patient + } + } + ### Just trait + if = { + limit = { has_trait = just } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.just + } + } + ## Both extremities of the wealth spectrum are appreciated. + ### Greedy + if = { + limit = { has_trait = greedy } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.greedy + } + } + ### Generous + if = { + limit = { has_trait = generous } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.generous + } + } + ## Plus some lifestyle cappers. + ### Diplomat + if = { + limit = { has_trait = diplomat } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.diplomat + } + } + ### Administrator + if = { + limit = { has_trait = administrator } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.administrator + } + } + ### Avaricious + if = { + limit = { has_trait = avaricious } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.avaricious + } + } + ### Schemer + if = { + limit = { has_trait = schemer } + add = { + value = medium_diarch_candidate_gain + desc = diarch_succession_score.traits.schemer } } # REMOVE SCORE - ## Lazy trait + ## Poor workers. + ### Lazy trait if = { limit = { has_trait = lazy } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.lazy + value = medium_diarch_candidate_loss + desc = diarch_succession_score.traits.lazy } } - ## Humble trait + ### Arrogant trait if = { - limit = { has_trait = humble } + limit = { has_trait = arrogant } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.humble + value = medium_diarch_candidate_loss + desc = diarch_succession_score.traits.arrogant } } - ## Content trait + ### Impatient trait if = { - limit = { has_trait = content } + limit = { has_trait = impatient } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.content + value = medium_diarch_candidate_loss + desc = diarch_succession_score.traits.impatient } } } @@ -1036,7 +2058,7 @@ diarchy_regent_succession_score_value = { limit = { has_serious_disease_trigger = yes } add = { value = major_diarch_candidate_loss - desc = diarch_succession_score.regency.cripplingly_ill + desc = diarch_succession_score.circumstances.cripplingly_ill } } ## Has severe wounds @@ -1044,61 +2066,49 @@ diarchy_regent_succession_score_value = { limit = { has_trait = wounded_3 } add = { value = medium_diarch_candidate_loss - desc = diarch_succession_score.regency.badly_wounded + desc = diarch_succession_score.circumstances.badly_wounded } } ## Has a criminal reason. if = { limit = { + save_temporary_scope_as = char_temp liege = { OR = { - has_imprisonment_reason = root - has_banish_reason = root - has_execute_reason = root - has_revoke_title_reason = root + has_imprisonment_reason = scope:char_temp + has_banish_reason = scope:char_temp + has_execute_reason = scope:char_temp + has_revoke_title_reason = scope:char_temp } } } add = { value = medium_diarch_candidate_loss - desc = diarch_succession_score.regency.known_criminal + desc = diarch_succession_score.circumstances.known_criminal } } ## Under the age of 25 if = { limit = { age <= 25 } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.very_young + value = medium_diarch_candidate_loss + desc = diarch_succession_score.circumstances.very_young } } ## High-stress characters if = { limit = { stress_level >= 1 } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.stressed_out - } - } - ## Bastard / Child of Concubine - if = { - limit = { - OR = { - has_trait = bastard - has_trait = child_of_concubine - } - } - add = { - value = miniscule_diarch_candidate_loss - desc = diarch_succession_score.regency.illegitimate + value = medium_diarch_candidate_loss + desc = diarch_succession_score.circumstances.stressed_out } } ## Has a minor illness if = { limit = { has_trait = ill } add = { - value = miniscule_diarch_candidate_loss - desc = diarch_succession_score.regency.mildly_ill + value = minor_diarch_candidate_loss + desc = diarch_succession_score.circumstances.mildly_ill } } ## Has a minor wound @@ -1110,8 +2120,8 @@ diarchy_regent_succession_score_value = { } } add = { - value = minor_diarch_candidate_loss - desc = diarch_succession_score.regency.mildly_wounded + value = medium_diarch_candidate_loss + desc = diarch_succession_score.circumstances.mildly_wounded } } ## Doesn't speak your main language @@ -1126,24 +2136,17 @@ diarchy_regent_succession_score_value = { } add = { value = major_diarch_candidate_loss - desc = diarch_succession_score.regency.not_speak_language + desc = diarch_succession_score.circumstances.not_speak_language } } } # REMOVE CANDIDATES - ## Must be a vassal or in your court + ## Cannot be a big land owner if = { - limit = { - exists = liege - NOR = { - is_ruler = yes - is_courtier_of = liege - host = liege - } - } + limit = { highest_held_title_tier > tier_barony } add = { value = hard_disable_diarch_candidate_value - desc = diarch_succession_score.regency.neither_vassal_nor_courtier + desc = diarch_succession_score.disqualifiers.count_or_above } } ## Must be an adult @@ -1151,7 +2154,7 @@ diarchy_regent_succession_score_value = { limit = { is_adult = no } add = { value = hard_disable_diarch_candidate_value - desc = diarch_succession_score.regency.child + desc = diarch_succession_score.disqualifiers.child } } ## Must not NOT imprisoned @@ -1159,7 +2162,7 @@ diarchy_regent_succession_score_value = { limit = { is_imprisoned = yes } add = { value = hard_disable_diarch_candidate_value - desc = diarch_succession_score.regency.imprisoned + desc = diarch_succession_score.disqualifiers.imprisoned } } ## Is NOT incapable or infirm @@ -1172,7 +2175,16 @@ diarchy_regent_succession_score_value = { } add = { value = hard_disable_diarch_candidate_value - desc = diarch_succession_score.regency.incapable_or_infirm + desc = diarch_succession_score.disqualifiers.incapable_or_infirm + } + } + ## MUST match liege's faith gender requirements + ### We double-check this here (even though it's disallowed for validity) to stop wrong-gendered characters sneakily inheriting the post when the numbers haven't been recalc'd then _immediately_ invalidating. + if = { + limit = { diarch_matches_liege_faith_gender_preference_trigger = no } + add = { + value = hard_disable_diarch_candidate_value + desc = diarch_succession_score.disqualifiers.right_gendered_for_liege } } ## Event filter. @@ -1181,7 +2193,7 @@ diarchy_regent_succession_score_value = { limit = { var:diarch_succession_filtered_due_to_incumbents_politicking ?= liege } add = { value = hard_disable_diarch_candidate_value - desc = diarch_succession_score.regency.event_filters.incumbent_politicking + desc = diarch_succession_score.disqualifiers.event_filters.incumbent_politicking } } } @@ -1724,6 +2736,101 @@ liege_dismiss_entrenched_regency_interaction_dynasty_prestige_value = { value = diarch_should_educate_liege_value = 50 +vizier_bonus_tax_jurisdictions_value = { + add = stewardship + divide = 7.5 + min = 1 + max = 5 +} + +vizier_dismissal_penalty_sop_mult_value = 0.1 + +vizier_extravagance_modifiers_t1_tally = { + if = { + limit = { has_character_modifier = vizier_extravagance_t1_treasure_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_activities_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_property_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t1_charity_modifier } + add = 1 + } +} + +vizier_extravagance_modifiers_t2_tally = { + if = { + limit = { has_character_modifier = vizier_extravagance_t2_treasure_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_activities_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_property_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t2_charity_modifier } + add = 1 + } +} + +vizier_extravagance_modifiers_t3_tally = { + if = { + limit = { has_character_modifier = vizier_extravagance_t3_treasure_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_activities_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_property_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t3_charity_modifier } + add = 1 + } +} + +vizier_extravagance_modifiers_t4_tally = { + if = { + limit = { has_character_modifier = vizier_extravagance_t4_treasure_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_activities_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_property_modifier } + add = 1 + } + if = { + limit = { has_character_modifier = vizier_extravagance_t4_charity_modifier } + add = 1 + } +} + +vizier_mulct_swing_check_value = { + value = 100 + subtract = diarchy_swing +} +vizier_mulct_swing_gain_miniscule_value = miniscule_sop_swing_diarch_gain +vizier_mulct_swing_gain_minor_value = minor_sop_swing_diarch_gain +vizier_mulct_swing_gain_medium_value = medium_sop_swing_diarch_gain +vizier_mulct_swing_gain_major_value = major_sop_swing_diarch_gain +vizier_mulct_swing_gain_massive_value = massive_sop_swing_diarch_gain + ################################################## # Activities diff --git a/common/script_values/00_distance_values.txt b/common/script_values/00_distance_values.txt deleted file mode 100644 index 8d599f5dfa..0000000000 --- a/common/script_values/00_distance_values.txt +++ /dev/null @@ -1,10 +0,0 @@ - -#Values used for checking distance with the 'squared_distance' trigger. - -squared_distance_small = 22500 #150 map-pixels. Roughly one Wales away (top to bottom). -squared_distance_medium = 62500 #250 map-pixels. Roughly one Ireland away (top to bottom). -squared_distance_large = 422500 #650 map-pixels. Roughly one France away (top to bottom). -squared_distance_huge = 722500 #850 map-pixels. Roughly one Holy Roman Empire away (left to right). -squared_distance_almost_massive = 1440000 #1200 map-pixels. Roughly 1.5 Holy Roman Empire away (left to right). -squared_distance_massive = 2402500 #1550 map-pixels. -squared_distance_monstrous = 9000000 #3000 map-pixels \ No newline at end of file diff --git a/common/script_values/00_dlc_fp3_script_values.txt b/common/script_values/00_dlc_fp3_script_values.txt new file mode 100644 index 0000000000..1f68b9da2e --- /dev/null +++ b/common/script_values/00_dlc_fp3_script_values.txt @@ -0,0 +1,882 @@ +############# +# FP3 Scripted Values +############# + +################################################## +# Unity + +critical_house_unity = 20 +terrible_house_unity = 40 +low_house_unity = 60 +mediocre_house_unity = 80 +average_house_unity = 100 +decent_house_unity = 120 +good_house_unity = 140 +high_house_unity = 160 +very_high_house_unity = 180 + +opinion_thresholds_for_antagonistic_independence = -50 + +number_of_futuwaa_members = { + value = 0 + every_courtier = { + limit = { fp3_is_valid_futuwaa_member = { SPONSOR = root } } + add = 1 + } + house ?= { + every_house_member = { + limit = { + fp3_is_valid_futuwaa_member = { SPONSOR = root } + NOT = { is_courtier_of = root } + } + add = 1 + } + } +} + +number_of_madrasa_pupils = { + value = 0 + every_courtier = { + limit = { fp3_is_valid_madrasa_pupil = { SPONSOR = root } } + add = 1 + } + house ?= { + every_house_member = { + limit = { + fp3_is_valid_madrasa_pupil = { SPONSOR = root } + NOT = { is_courtier_of = root } + } + add = 1 + } + } +} + +################################################## +# Struggle + +fp3_house_modifier_concession_ending_duration = 100 +fp3_house_modifier_sunder_caliphate_duration = 100 + +fp3_concession_death_countdown = { + value = current_year + subtract = 866 + multiply = 1 +} + +fp3_persia_ownage_percentage_for_foundation = 0.20 + +fp3_persia_supporter_rulers_decimal_value = { + value = 50 + divide = 100 + max = 1 +} + +fp3_persia_supporter_rulers_max_value = { + value = 0 +} + +fp3_persia_supporter_rulers_half_value = { + value = 0 +} + +fp3_persia_supporter_rulers_count_value = { + value = 0 +} + +fp3_persia_iranian_rulers_count_value = { + value = 0 +} + +fp3_persia_all_rulers_count_value = { + value = 0 +} + +fp3_persia_all_rulers_requirement_value = { + value = 0 +} + +fp3_persia_all_rulers_percentage_value = { + value = 0 +} + +fp3_persia_independent_detractor_rulers_count_value = { + value = 0 +} + +fp3_persia_independent_non_sunni_rulers_count_value = { + value = 0 +} + +fp3_iranian_sub_realm_counties_value = { + value = 0 +} + +fp3_persia_flame_of_iran_independent_value = { + value = 0 +} + +# Paramameter for percentage of Persia you must control +fp3_persia_owned_for_rekindle_persia_percent_value = 30 + +# Uses above to plug in to script as a decimal +fp3_persia_owned_for_rekindle_persia_decimal_value = { + value = fp3_persia_owned_for_rekindle_persia_percent_value + divide = 100 + max = 1 +} + +fp3_iranian_current_owned_persia_value = { + value = 0 +} + +# Paramameter for percentage of Persia that must be iranian +fp3_iranian_culture_for_rekindle_persia_percent_value = 75 + +fp3_iranian_culture_for_rekindle_persia_decimal_value = { + value = fp3_iranian_culture_for_rekindle_persia_percent_value + divide = 100 + max = 1 +} + +fp3_iranian_culture_current_persian_culture_value = { + value = 0 +} + +fp3_shia_caliphate_ending_conversion_chance_percent_value = 75 + +fp3_shia_caliphate_ending_conversion_chance_decimal_value = { + value = fp3_iranian_culture_for_rekindle_persia_percent_value + divide = 100 + max = 1 +} + +fp3_strengthen_caliphate_ending_conversion_chance_percent_value = 50 + +fp3_strengthen_caliphate_ending_conversion_chance_decimal_value = { + value = fp3_iranian_culture_for_rekindle_persia_percent_value + divide = 100 + max = 1 +} + +fp3_struggle_ending_conversion_modifier_value = 1.5 + +fp3_iranian_faith_for_rekindle_persia_conversion_chance_percent_value = 50 + +fp3_iranian_faith_for_rekindle_persia_conversion_chance_decimal_value = { + value = fp3_iranian_culture_for_rekindle_persia_percent_value + divide = 100 + max = 1 +} + +fp3_current_nb_ally_shia_caliphate = { + value = 0 + every_ally = { + limit = { highest_held_title_tier >= tier_kingdom } + add = 1 + } +} + +################################################## +# Tax Collector +tax_collector_aptitude_miniscule_increase = { value = 5 } + +tax_collector_aptitude_minor_increase = { value = 10 } + +tax_collector_aptitude_medium_increase = { value = 15 } + +tax_collector_aptitude_major_increase = { value = 20 } + +tax_collector_aptitude_massive_increase = { value = 25 } + + +tax_collector_aptitude_score = { + value = 1 + add = { + value = diplomacy + max = 50 + desc = court_position_skill_diplomacy + } + add = { + value = martial + max = 50 + desc = court_position_skill_martial + } + add = { + value = stewardship + max = 50 + desc = court_position_skill_stewardship + } + add = { + value = intrigue + max = 50 + desc = court_position_skill_intrigue + } + add = { + value = learning + multiply = 2 + max = 50 + desc = court_position_skill_learning + } + + if = { + limit = { + has_trait = just + } + add = { + value = 10 + desc = court_position_just_trait + } + } + if = { + limit = { + has_trait = diplomat + } + add = { + value = 10 + desc = court_position_diplomat_trait + } + } + if = { + limit = { + has_trait = administrator + } + add = { + value = 10 + desc = court_position_administrator_trait + } + } + if = { + limit = { + has_trait = avaricious + } + add = { + value = 10 + desc = court_position_avaricious_trait + } + } + if = { + limit = { + has_character_modifier = fp3_capable_magistrates_modifier + } + add = { + value = tax_collector_aptitude_major_increase + desc = capable_magistrates_modifier + } + } + #if = { + # limit = { + # has_character_flag = fp3_inspired_tax_collector + # } + # add = { + # value = 20 + # desc = fp3_inspired_tax_collector + # } + #} + # Opinion of liege + add = { + desc = opinion_of_liege + value = { + if = { + limit = { + save_temporary_opinion_value_as = { name = target_opinion target = liege} + scope:target_opinion >= very_high_positive_opinion + } + add = 20 + } + else_if = { + limit = { + save_temporary_opinion_value_as = { name = target_opinion target = liege } + scope:target_opinion >= high_positive_opinion + } + add = 15 + } + else_if = { + limit = { + save_temporary_opinion_value_as = { name = target_opinion target = liege } + scope:target_opinion >= medium_positive_opinion + } + add = 10 + } + else_if = { + limit = { + save_temporary_opinion_value_as = { name = target_opinion target = liege } + scope:target_opinion >= low_positive_opinion + } + add = 5 + } + else = { + add = 0 + } + } + } + + # Cultural Tradition + if = { + limit = { + culture = { has_cultural_parameter = characters_are_better_tax_collector } + } + add = { + value = tax_collector_aptitude_medium_increase + desc = traditions_cheaper_value + } + } + + # Flag Check (for debug/event usage) - Use debug.9610 + if = { + limit = { has_character_flag = is_guaranteed_excellent_tax_collector } + add = 110 + } + + add = court_position_aptitude_family_business_value + + # Viziers + if = { + limit = { + liege = { + exists = diarch + has_diarchy_active_parameter = diarch_aptitude_helps_tax_collectors_toggle + } + } + # Are we the vizier? If yes, we get a flat boost tied to our Scales of Power swing. + if = { + limit = { this = liege.diarch } + add = { + value = diarch_aptitude_helps_tax_collectors_buffed_by_swing_value + desc = diarchy_tax_collector_boost.scales_of_power + } + } + # Else we're someone different, so we get a fraction of the vizier's aptitude added to our own. + else = { + ## Plenty of vizier's aptitude. + if = { + limit = { + liege = { has_diarchy_active_parameter = diarch_aptitude_helps_tax_collectors_t4 } + } + add = { + value = { + value = liege.diarch.tax_collector_aptitude_score + # But remove the buff the vizier got from the SoP swing or things'll get ridiculous. + subtract = diarch_aptitude_helps_tax_collectors_buffed_by_swing_value + # Now, reduce according to the correct percentage. + multiply = diarch_aptitude_helps_tax_collectors_t4_value + # Just in case, let's min things. + min = 1 + } + desc = diarchy_tax_collector_boost.diarch_aptitude.t4 + } + } + ## Most of vizier's aptitude. + else_if = { + limit = { + liege = { has_diarchy_active_parameter = diarch_aptitude_helps_tax_collectors_t3 } + } + add = { + value = { + value = liege.diarch.tax_collector_aptitude_score + # But remove the buff the vizier got from the SoP swing or things'll get ridiculous. + subtract = diarch_aptitude_helps_tax_collectors_buffed_by_swing_value + # Now, reduce according to the correct percentage. + multiply = diarch_aptitude_helps_tax_collectors_t3_value + # Just in case, let's min things. + min = 1 + } + desc = diarchy_tax_collector_boost.diarch_aptitude.t3 + } + } + ## Some of vizier's aptitude. + else_if = { + limit = { + liege = { has_diarchy_active_parameter = diarch_aptitude_helps_tax_collectors_t2 } + } + add = { + value = { + value = liege.diarch.tax_collector_aptitude_score + # But remove the buff the vizier got from the SoP swing or things'll get ridiculous. + subtract = diarch_aptitude_helps_tax_collectors_buffed_by_swing_value + # Now, reduce according to the correct percentage. + multiply = diarch_aptitude_helps_tax_collectors_t2_value + # Just in case, let's min things. + min = 1 + } + desc = diarchy_tax_collector_boost.diarch_aptitude.t2 + } + } + ## A little of vizier's aptitude. + else_if = { + limit = { + liege = { has_diarchy_active_parameter = diarch_aptitude_helps_tax_collectors_t1 } + } + add = { + value = { + value = liege.diarch.tax_collector_aptitude_score + # But remove the buff the vizier got from the SoP swing or things'll get ridiculous. + subtract = diarch_aptitude_helps_tax_collectors_buffed_by_swing_value + # Now, reduce according to the correct percentage. + multiply = diarch_aptitude_helps_tax_collectors_t1_value + # Just in case, let's min things. + min = 1 + } + desc = diarchy_tax_collector_boost.diarch_aptitude.t1 + } + } + } + } +} + +diarch_aptitude_helps_tax_collectors_buffed_by_swing_multiplier_value = 0.5 +diarch_aptitude_helps_tax_collectors_buffed_by_swing_value = { + value = liege.diarchy_swing + multiply = diarch_aptitude_helps_tax_collectors_buffed_by_swing_multiplier_value +} +diarch_aptitude_helps_tax_collectors_t1_value = 0.1 +diarch_aptitude_helps_tax_collectors_t2_value = 0.2 +diarch_aptitude_helps_tax_collectors_t3_value = 0.4 +diarch_aptitude_helps_tax_collectors_t4_value = 0.6 + + +preferred_tax_collector_modifier = { + value = 0 + if = { # Let's prioritize any close family members (cause that's more interesting) + add = 25 + limit = { + is_close_family_of = root + } + } +} +################################################## + +################################################## +# Decisions +embellish_capital_gold_cost = { value = major_gold_value } + +claim_the_imamate_decision_same_faith_county_count = 5 + +claim_the_imamate_decision_same_faith_greater_county_count = 15 + +claim_the_imamate_decision_own_max_sins = 1 + +promote_persian_scripture_piety_cost = { value = major_piety_value } + +promote_persian_scripture_conversion_modifier_value = 1.5 + +promote_persian_scripture_fundamentalist_stress_value = { value = major_stress_gain } + +consulted_house_councillors_percentage = 10 + +favour_skilled_outsiders_decision_prestige_cost_value = { + # Scales to tier. + ## Counts pay basically nothing. + if = { + limit = { highest_held_title_tier = tier_county } + add = minor_prestige_value + } + ## Dukes pay a bit. + else_if = { + limit = { highest_held_title_tier = tier_duchy } + add = medium_prestige_value + } + ## Kings pay a moderate amount. + else_if = { + limit = { highest_held_title_tier = tier_kingdom } + add = 225 + } + ## Emperors pay a substantial amount. + else_if = { + limit = { highest_held_title_tier = tier_empire } + add = 300 + } +} + + +favour_skilled_outsiders_decision_skill_threshold_value = high_skill_rating + +favour_skilled_outsiders_decision_tally_offended_courtlies_value = { + value = 0 + every_vassal = { + limit = { favour_skilled_outsiders_decision_grab_courtlies_trigger = yes } + } + add = 1 +} + +favour_skilled_outsiders_decision_tally_offended_landless_councillors_value = { + value = 0 + every_councillor = { + limit = { favour_skilled_outsiders_decision_grab_landless_councillors_trigger = yes } + } + add = 1 +} + +favour_skilled_outsiders_decision_tally_offended_non_courtlies_value = { + value = 0 + every_vassal = { + limit = { favour_skilled_outsiders_decision_non_courtlies_trigger = yes } + } + add = 1 +} + +fp3_skilled_outsider_template_diplomacy_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_diplomacy_martial = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_diplomacy_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_diplomacy_martial = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_template_martial_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_martial_prowess = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_diplomacy_martial = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_martial_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_martial_prowess = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_diplomacy_martial = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_template_stewardship_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_intrigue_stewardship = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_stewardship_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_intrigue_stewardship = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_template_intrigue_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_intrigue_stewardship = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_learning_intrigue = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_intrigue_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_intrigue_stewardship = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_learning_intrigue = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_template_learning_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_learning_intrigue = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_prowess_learning = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_learning_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_learning_intrigue = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_prowess_learning = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_template_prowess_min_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_prowess_learning = yes } + # Guarantee a nice minimum rather than using the usual variance rules. + add = high_skill_rating + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_martial_prowess = yes } + # And again, guarantee a nice minimum without variance. + add = decent_skill_rating + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = min_template_low_skill } +} + +fp3_skilled_outsider_template_prowess_max_value = { + # Is this a primary skill for this outsider? + if = { + limit = { scope:outsider_prowess_learning = yes } + add = max_template_high_skill + } + # Is this a secondary skill for this outsider? + else_if = { + limit = { scope:outsider_martial_prowess = yes } + add = max_template_decent_skill + } + # Otherwise, this is an irrelevant skill for this outsider. + else = { add = max_template_low_skill } +} + +fp3_skilled_outsider_minimum_main_skill_batch_b_char1_value = { + # Three points above... + value = 3 + if = { + limit = { scope:outsider_diplomacy_martial = yes } + add = diplomacy + } + if = { + limit = { scope:outsider_martial_prowess = yes } + add = martial + } + if = { + limit = { scope:outsider_prowess_learning = yes } + add = prowess + } + if = { + limit = { scope:outsider_learning_intrigue = yes } + add = learning + } + if = { + limit = { scope:outsider_intrigue_stewardship = yes } + add = intrigue + } + if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + add = stewardship + } +} + +fp3_skilled_outsider_minimum_main_skill_batch_b_char2_value = { + # Two points below... + value = -2 + if = { + limit = { scope:outsider_diplomacy_martial = yes } + add = diplomacy + } + if = { + limit = { scope:outsider_martial_prowess = yes } + add = martial + } + if = { + limit = { scope:outsider_prowess_learning = yes } + add = prowess + } + if = { + limit = { scope:outsider_learning_intrigue = yes } + add = learning + } + if = { + limit = { scope:outsider_intrigue_stewardship = yes } + add = intrigue + } + if = { + limit = { scope:outsider_stewardship_diplomacy = yes } + add = stewardship + } +} + +################################################## +# Military +fp3_realm_based_mercenary_cost = { + # Sample formula + # X * (Y + (Z/10) # Real example: 1162 * (0.6 + (4 / 10)) = 1162, meaning that if you have 4 counties, you get no discount, but no increase either. + # X is the initial cost. It is not in the operation above because it is applied post-facto as a modifier. + # Y is our base value, since we want to make the initial cost cheaper with a multiplication, it is a decimal. I chose 0.6, but it can be tweaked. + # Z is realm size. We turn it into a decimal so that it can then be added to our base value (Y), increasing the cost to either a lesser discount or an upsell based on size. + value = 0.6 + add = { + value = sub_realm_size + divide = 10 + } +} + +fp3_request_invasion_troop_value_estimate = { + value = scope:recipient.max_military_strength + subtract = scope:secondary_recipient.max_military_strength + divide = 20 + round = yes +} + +fp3_request_invasion_troop_value_bonus_troops = { + value = scope:recipient.max_military_strength + subtract = scope:secondary_recipient.max_military_strength + divide = 500 + round = yes + min = 1 + max = 10 +} + +fp3_request_invasion_troop_value_bonus_levy_troops = { + value = fp3_request_invasion_troop_value_bonus_troops + multiply = 100 +} + + + +# The cost in gold of sponsoring a new research project +fp3_research_base_cost = { + value = medium_gold_value +} + + +################################################## +# Seljuk invaion + +fp3_seljuk_chance_of_appearance = 10 +fp3_chance_female_leader = { + value = 0 + if = { + limit = { has_game_rule = inversed_gender_equality } + add = 100 + } + else_if = { + limit = { has_game_rule = full_gender_equality } + add = 50 + } + else = { + add = 0 + } +} + +fp3_seljuk_invasion_troop_gain_minor = 1 +fp3_seljuk_invasion_troop_gain_small = 2 +fp3_seljuk_invasion_troop_gain_medium = 3 +fp3_seljuk_invasion_troop_gain_major = 4 +fp3_seljuk_invasion_troop_gain_massive = 5 + +fp3_seljuk_stack_miniscule_value = 0.6 +fp3_seljuk_stack_minor_value = 0.8 +fp3_seljuk_stack_medium_value = 1 +fp3_seljuk_stack_major_value = 1.25 +fp3_seljuk_stack_massive_value = 1.5 +fp3_seljuk_stack_monumental_value = 2 + +seljuk_invasion_nomad_strength_score_levy = { + value = 0 +} + +seljuk_invasion_nomad_strength_score_siege_weapon = { + value = 0 +} + +# Zanj Rebellion + +zanj_rebellion_strength_score_levy = { + value = 0 +} + +zanj_rebellion_strength_score_skirmishers = { + value = 0 +} + +zanj_rebellion_strength_score_bowmen = { + value = 0 +} + +zanj_rebellion_strength_score_pikemen = { + value = 0 +} + +rescue_house_members_cb_house_unity_gain = { + scope:defender = { + every_prisoner = { + limit = { house ?= scope:attacker.house } + add = medium_unity_gain + } + } + + max = 20 +} + +fp3_struggle_switch_sides_value = { + value = 0 +} diff --git a/common/script_values/00_dynasty_values.txt b/common/script_values/00_dynasty_values.txt index 3cfed0c638..b2f10286ff 100644 --- a/common/script_values/00_dynasty_values.txt +++ b/common/script_values/00_dynasty_values.txt @@ -109,3 +109,9 @@ ep2_activities_legacy_1_pilgrimages_learning_cap_value = { } ep2_activities_legacy_3_tours_modifier_duration_value = 20 + +#FP3 Values + +khvarenah_legacy_marriage_acceptance = 10 + +khvarenah_legacy_aptitude = 10 diff --git a/common/script_values/00_ep1_script_values.txt b/common/script_values/00_ep1_script_values.txt deleted file mode 100644 index 8437c5498f..0000000000 --- a/common/script_values/00_ep1_script_values.txt +++ /dev/null @@ -1,663 +0,0 @@ -# Referenced from code, in code value will be clamped between NRoyalCourt::COURT_GRANDEUR_MIN and NRoyalCourt::COURT_GRANDEUR_MAX -# root = character calculating for -court_grandeur_minimum_expected_value = { - value = sub_realm_size - divide = 4 - if = { # Elective Empires have slightly lower expectations (i.e. the HRE) - limit = { - any_held_title = { - tier = tier_empire - has_title_law_flag = elective_succession_law - } - } - divide = 2 - } - if = { # Add a baseline depending on rank - limit = { - highest_held_title_tier = tier_empire - } - add = 20 - } - else = { - add = 10 - } - if = { - limit = { - government_has_flag = government_is_tribal - } - multiply = 0 - add = court_grandeur_current - } -} - -# Referenced from code for the multiplier of above/below expected court grandeur level modifiers -court_grandeur_level_difference_modifier_multiplier = { - value = 1 - if = { # Small realms receives larger bonuses for being above their expected level - limit = { - court_grandeur_current_level >= court_grandeur_minimum_expected_level - } - value = 100 # Realm size baseline - divide = { - value = sub_realm_size - min = 1 - } - min = 1 - max = 4 - } - else = { # Big realms receives larger penalties for being below their expected level - value = sub_realm_size - multiply = 0.025 - min = 1 - max = 4 - } -} - -delusions_of_grandeur_level_difference = { - value = court_grandeur_minimum_expected_level - add = 6 -} - -ep1_court_grandeur_marriage_acceptance_value = { - scope:actor = { - add = court_grandeur_current_level - subtract = court_grandeur_minimum_expected_level - multiply = 5 - if = { - limit = { - scope:recipient.faith = { - faith_hostility_level = { - target = scope:actor.faith - value = faith_astray_level - } - } - } - divide = 2 - } - else_if = { - limit = { - scope:recipient.faith = { - faith_hostility_level = { - target = scope:actor.faith - value = faith_hostile_level - } - } - } - divide = 3 - } - else_if = { - limit = { - scope:recipient.faith = { - faith_hostility_level = { - target = scope:actor.faith - value = faith_evil_level - } - } - } - divide = 4 - } - } -} - -ep1_court_grandeur_marriage_acceptance_value_penalty = { - scope:actor = { - add = court_grandeur_current_level - subtract = court_grandeur_minimum_expected_level - multiply = 10 - } -} - -grandeur_loss_on_succession_value = { - value = -10 - if = { # 100 Dread makes you lose 5 more grandeur - limit = { - dread > 0 - } - subtract = { - value = dread - divide = 20 - } - } - if = { # 100 Tyranny makes you lose 10 more grandeur - limit = { - tyranny > 0 - } - subtract = { - value = tyranny - divide = 10 - } - } - if = { - limit = { - exists = primary_heir - primary_heir = { - has_trait = ambitious - } - } - multiply = 0.5 - } - if = { - limit = { - exists = primary_title - primary_title = { - has_order_of_succession = election - } - } - multiply = 0.5 - } -} - -# The unmodified, average cost of sponsoring an Inspiration. -basic_fund_inspiration_cost = { - value = 100 -} - -inspiration_cost_skill_multiplier = 0.5 -quality_bonus_per_skill_level_value = 2 # A character with an average skill value of 20 will produce artifacts with +40 quality - -# Calculates the total number of characters in the world who have an active Inspiration. -num_world_inspired_characters_value = { - value = 0 - every_inspired_character = { - limit = { has_completed_inspiration = no } - add = 1 - } -} - -# Calculates the total number of characters in the world who currently have a Royal Court. -num_world_royal_courts_value = { - value = 0 - every_character_with_royal_court = { - add = 1 - } -} - -# How many new inspirations can be created by inspiration_system.0005 each year if we are below the limit. -max_new_inspirations_per_year_value = { - value = 3 # 16% of the existing world region have a chance to get an inspired character - add = { - value = 15 #if every royal court is wealthy enough, we generate 1x nb of world region inspired characters - multiply = { - value = 0 - add = { - every_character_with_royal_court = { - limit = { - OR = { - is_ai = no - AND = { - is_ai = yes - short_term_gold >= ai_inspiration_desired_gold_value - } - } - } - add = 1 - } - divide = { - every_character_with_royal_court = { - add = 1 - } - min = 1 # security to avoid dividing by 0 if there is none royal court - } - } - } - ceiling = yes - } -} - -# The 'ideal' limit for how many total inspirations will exist in the world at a time, per royal court. -# Scripted effects can bring us over this value, but inspiration_system.0005 will not generate new inspirations until we fall back under it. -ideal_total_inspirations_per_royal_court_value = 1.875 - -ideal_total_world_inspirations = { - value = num_world_royal_courts_value - multiply = ideal_total_inspirations_per_royal_court_value -} - -# How many months an inspired character will wait around in a court for before moving on to a new one. -inspired_character_recent_arrival_duration_value = { - value = 15 - # Adds -3 or +3 months, if they are (im)patient. - if = { - limit = { has_trait = impatient } - subtract = 3 - } - else_if = { - limit = { has_trait = patient } - add = 3 - } - # Adds between +3 and -3 months before moving on, based on ai_energy. - add = { - value = ai_energy - multiply = -0.03 - round = yes - } -} - -# How many years a courtier must serve in a specific court to get the court type trait -years_to_gain_court_type_trait = 5 - -# The trigger to check time served ("days_since_joined_court") needs days, so we convert the years here -days_to_gain_court_type_trait = { - add = years_to_gain_court_type_trait - multiply = 365 -} - -cgv_level_threshold_court_type_trait_1 = 5 -cgv_level_threshold_court_type_trait_2 = 8 - -# Court Type Values -court_intrigue_spymaster_task_bonus = 20 -court_administrative_steward_task_bonus = 30 - -# Hold Court Grace Values -hold_court_grace_period_years = 1825 - -hold_court_grace_period_comparison = { - value = 1 - add = { - value = current_year - subtract = var:last_hold_court_date - subtract = hold_court_grace_period_years # 5 - multiply = 0.1 - min = 0 - max = 1 - } - # example - # 1066 - 1054 = 12 - 5 = 7 * 0.1 = 0.7 + 1 = 1.7 - # subtract 5 as this is the hard cooldown, we only want to increase weight for years beyond that - # modifier caps at 2 (10 years since last hold court) -} - -# To be used for court positions that are very mobile and requires a healthy and strong body -court_position_aptitude_high_penalty_value = { - if = { - limit = { - is_landed = yes - } - add = { - value = -20 - desc = court_position_landed_penalty - } - } - if = { - limit = { - has_trait = maimed - } - add = { - value = -25 - desc = court_position_maimed_trait - } - } - if = { - limit = { - has_trait = wounded_3 - } - add = { - value = -25 - desc = court_position_wounded_3_trait - } - } - else_if = { - limit = { - has_trait = wounded_2 - } - add = { - value = -15 - desc = court_position_wounded_2_trait - } - } - #Wounded_1 is ok since it's not a serious injury... yet - if = { - limit = { - has_trait = blind - } - add = { - value = -50 - desc = court_position_blind_trait - } - } - if = { - limit = { - has_trait = infirm - } - add = { - value = -75 - desc = court_position_infirm_trait - } - } -} - -# To be used for court positions that are NOT very mobile and doesn't really require a strong/healthy body -court_position_aptitude_low_penalty_value = { - if = { - limit = { - is_landed = yes - } - add = { - value = -20 - desc = court_position_landed_penalty - } - } - if = { - limit = { - has_trait = maimed - } - add = { - value = -15 - desc = court_position_maimed_trait - } - } - if = { - limit = { - has_trait = wounded_3 - } - add = { - value = -15 - desc = court_position_wounded_3_trait - } - } - else_if = { - limit = { - has_trait = wounded_2 - } - add = { - value = -10 - desc = court_position_wounded_2_trait - } - } - #Wounded_1 is ok since it's not a serious injury... yet - if = { - limit = { - has_trait = infirm - } - add = { - value = -75 - desc = court_position_infirm_trait - } - } -} - -court_position_candidate_score_base_value = { - scope:liege = { - # Not very likely to hire rivals - if = { - limit = { - has_relation_rival = scope:employee - } - add = -1000 - } - if = { - limit = { - NOT = { exists = scope:firing_court_position } - scope:employee = { has_any_court_position = yes } - } - add = -150 - } - } -} - -# Aptitude goes from 1 to 5, so the score here goes from 4 to 20 (except significantly discouraging hiring someone who isn't the best) -court_position_candidate_aptitude_value = { - scope:employee = { - # Does the liege have a better candidate that they should be hiring instead? - if = { - limit = { - scope:highest_available_aptitude > scope:employee_aptitude - } - add = -125 - } - # More likely to pick a courtier with a high aptitude, less likely to pick one with low - add = { - value = scope:employee_aptitude - multiply = 4 - } - } -} - -court_position_debt_considerations_value = { - scope:liege = { - if = { - limit = { - debt_level >= 5 - } - add = -5000 - } - else_if = { - limit = { - debt_level >= 4 - } - add = -1000 - } - else_if = { - limit = { - debt_level >= 3 - } - add = -500 - } - else_if = { - limit = { - debt_level >= 2 - } - add = -200 - } - else_if = { - limit = { - debt_level >= 1 - } - add = -50 - } - } -} - -court_position_seneschal_debt_considerations_value = { # Regardless of debt, having a seneschal is good if your control is abysmal - scope:liege = { - if = { - limit = { - is_at_war = no - NOT = { - any_held_title = { - tier = tier_county - county_control < 100 - } - } - } - if = { - limit = { - debt_level >= 5 - } - add = -5000 - } - else_if = { - limit = { - debt_level >= 4 - } - add = -1000 - } - else_if = { - limit = { - debt_level >= 3 - } - add = -500 - } - else_if = { - limit = { - debt_level >= 2 - } - add = -200 - } - else_if = { - limit = { - debt_level >= 1 - } - add = -50 - } - } - } -} - -# This is balanced against a typical base score of 50 -# And a typical skill score of 12 (aptitude of 3) -# We want to sit at roughly 10% of income spent -# So 10% income spent needs to give -62 score -# So the cost of them all we multiply by 600, for 10% = -60 -# While the cost of the position itself with 100. 5 positions of 2% each will then each get -2 -court_position_liege_score_base_value = { - value = 0 - scope:liege = { - subtract = { - # Less likely to hire for the really expensive positions - # But this is a pretty minor impact - value = 100 - multiply = scope:percent_of_monthly_gold_income - } - subtract = { - # Value decreases as cost of all positions increase - value = 600 - multiply = scope:percent_of_monthly_gold_income_all_positions - } - } -} - -order_mass_eviction_decision_cost_value = 350 - -exoticise_a_grand_hall_decision_cost_value = { - # A nicely hefty base cost. - value = massive_gold_value - - # Modified down a bit for architect. - if = { - limit = { has_trait = architect } - multiply = 0.75 - } -} - -# Check the guts of the value inside a sub-value so that we can script a fallback. -ep1_decision_0111_proportional_cgv_actual_gain_value = { - value = 0 - - # Add the target's CGV. - add = court_grandeur_current - # Subtract root's CGV to get the difference. - subtract = root.court_grandeur_current - # Reduce it down a bit. - multiply = 0.5 - # Round it out. - round = yes -} - -ep1_decision_0111_proportional_cgv_gain_value = { - value = 0 - - # Import the real tally from elsewhere. - add = ep1_decision_0111_proportional_cgv_actual_gain_value - # Fallback: we can't set a minimum, since we can have values either side of zero. If we hit zero, default to 1 instead. - if = { - limit = { - ep1_decision_0111_proportional_cgv_actual_gain_value = 0 - } - add = 1 - } -} - -ep1_decision_0111_proportional_prestige_cost_value = { - # Carry over our CGV differential. - value = ep1_decision_0111_proportional_cgv_gain_value - - # Invert it: if you lose CGV, we want you to gain prestige, and if you gain CGV, you should lose prestige. - multiply = -1 - # Whilst we're here (and numbers are low), round things. - round = yes - # Make the cost a noteworthy fraction. - multiply = 50 -} - -ep1_flavour_0001_scion_minimum_age_value = 18 - -ep1_flavour_0001_scion_parent_minimum_age_value = { - # Base of 20 for something kinda sensible. - value = 20 - # Plus the scion's minimum age. - add = ep1_flavour_0001_scion_minimum_age_value -} - -# Scripted value used so we can reference it in a custom tooltip. -ep1_flavour_0021_courts_lose_opinion_value = 20 - -# Aaaaand a further linked value so that the loc plays nicely; otherwise we get a double negative of "loses -20". -ep1_flavour_0021_courts_lose_opinion_actual_value = { - value = ep1_flavour_0021_courts_lose_opinion_value - multiply = -1 -} - -# Scripted value used so we can reference it in a custom tooltip. -ep1_flavour_0021_courts_gain_opinion_value = 20 - -# As the name says... value of gained prestige per level of food amenities at feasts! -ep1_feast_prestige_per_food_amenities_value = { - value = medium_prestige_gain - if = { - limit = { - amenity_level = { type = court_food_quality value >= max_amenity_level } - } - add = { - value = medium_prestige_gain - multiply = 0.4 - } - } - else_if = { - limit = { - amenity_level = { type = court_food_quality value = very_high_amenity_level } - } - add = { - value = medium_prestige_gain - multiply = 0.25 - } - } - else_if = { - limit = { - amenity_level = { type = court_food_quality value = medium_amenity_level } - } - add = { - value = medium_prestige_gain - multiply = -0.25 - } - } - else_if = { - limit = { - amenity_level = { type = court_food_quality value <= low_amenity_level } - } - add = { - value = medium_prestige_gain - multiply = -0.4 - } - } -} - -challenge_for_artifact_prestige_cost_value = { - value = 150 - scope:target = { - if = { - limit = { rarity = masterwork } - multiply = 2 - } - else_if = { - limit = { rarity = famed } - multiply = 3 - } - else_if = { - limit = { rarity = illustrious } - multiply = 4 - } - } -} - -challenge_for_artifact_prestige_limit_value = { - value = challenge_for_artifact_prestige_cost_value - divide = 3 - min = 150 -} - -ep1_fund_inspiration_2100_rival_difference = { - add = scope:other_inspiration_owner.inspiration.inspiration_gold_invested - subtract = scope:inspiration_owner.inspiration.inspiration_gold_invested -} diff --git a/common/script_values/00_faction_values.txt b/common/script_values/00_faction_values.txt deleted file mode 100644 index 9db03264e6..0000000000 --- a/common/script_values/00_faction_values.txt +++ /dev/null @@ -1,119 +0,0 @@ -################### -# FACTION VALUES # -################### - -base_discontent_progress = 3 - -minor_discontent_gain = 10 -medium_discontent_gain = 20 -major_discontent_gain = 30 -minor_discontent_loss = -10 -medium_discontent_loss = -20 -major_discontent_loss = -30 -massive_discontent_loss = -50 - -faction_war_white_peace_cooldown = 5 # years -faction_war_defeat_cooldown = 10 # years - -faction_nation_fracturing_war_white_peace_cooldown = 15 # years -faction_nation_fracturing_war_defeat_cooldown = 30 # years - - -liberty_war_victory_cooldown = 5 - -# Values for the AI to evaluate how powerful factions are relative to each other. -faction_power_minimal = { - value = faction_power_threshold - multiply = 0.25 -} -faction_power_halfway_threshold = { - value = faction_power_threshold - multiply = 0.50 -} -faction_power_pushing_threshold = { - value = faction_power_threshold - multiply = 0.75 -} - -faction_weight_factor_power_minimal_penalty = 0.5 -faction_weight_factor_power_halfway_threshold = 1.20 # +20% total faction weight -faction_weight_factor_power_pushing_threshold = 1.25 # +50% total faction weight -faction_weight_factor_power_exceeds_threshold = 1.60 # +100% total faction weight - -faction_discontent_for_extra_power = { - value = base_discontent_progress - multiply = { # We want discontent to increase gradually as a faction grows their military power. - value = faction_power - subtract = faction_power_threshold - divide = faction_power_threshold # To get the % over the power threshold we are. - multiply = 4 # At 25% bonus faction power, discontent increases 100% faster (compared to the base gain). - } - round = yes # To avoid having it say +0... - max = 10 # Minimum 8 months to reach 100% discontent (no insta-revolts, no matter how powerful the faction is). -} - -total_county_levies = { - value = 0 - - # Get the base levies from each province. - every_in_de_jure_hierarchy = { - limit = { - tier = tier_barony - } - title_province = { - add = building_levies - } - } - - # Levy size multipliers (excluding ruler-specific modifiers, such as Martial skill). - multiply = { - # 100% Levy Base - value = 1 - - # Adds bonus levies from Development (at base 20 development, +20% levies). - add = { - add = development_level - multiply = 0.01 - } - - # Adds bonus levies from cultural innovations. - if = { - limit = { - culture = { - has_innovation = innovation_bannus - } - } - add = 0.1 - } - } -} - -county_levies_to_raise = { - value = total_county_levies - - # Will summon between 75% and 175% of total county levy strength, depending on how much they hate you (most commonly will be 95-110% though, scores between -20 and -35 are the most common) - multiply = { - value = county_opinion - multiply = -0.01 - add = 0.5 - } -} - -county_maa_to_raise = { - value = total_county_levies - - # Based on county levy strength, summon an appropiate number of MAAs that scales with popular opinion. - multiply = { - value = county_opinion - multiply = -0.00003 - } - round = yes - min = 1 -} - -peasant_war_victory_county_control_loss = -75 -peasant_war_starts_county_control_loss = -25 - -liege_opinion_value = { - value = scope:opinion_of_current_liege -} diff --git a/common/script_values/00_game_rule_values.txt b/common/script_values/00_game_rule_values.txt deleted file mode 100644 index c9f7fc8764..0000000000 --- a/common/script_values/00_game_rule_values.txt +++ /dev/null @@ -1,183 +0,0 @@ -slower_game_rule_value = 0.5 -significantly_slower_game_rule_value = 0.25 -faster_game_rule_value = 2 -significantly_faster_game_rule_value = 4 - -random_harm_spiteful_diverse_skilled_value = 15 -random_harm_spiteful_multi_skilled_value = 18 -random_harm_spiteful_specialist_skilled_value = 23 - -random_harm_spiteful_perks_in_tree_total_value = 20 - -harm_game_rule_likelihood_minor_increase_value = 0.1 -harm_game_rule_likelihood_medium_increase_value = 0.25 -harm_game_rule_likelihood_major_increase_value = 0.4 - -harm_game_rule_likelihood_value = { - value = 0 - # Set a base from the for various game rule configurations. - ## Default. - if = { - limit = { - OR = { - has_game_rule = harm_dangerous - has_game_rule = harm_spiteful - } - } - add = 1 - } - ## Reduced. - else_if = { - limit = { has_game_rule = harm_illusion_of_safety } - add = 0.25 - } - ## Disabled. - ### Covered in the trigger. - ## Increased. - else_if = { - limit = { - OR = { - has_game_rule = harm_tragic - has_game_rule = harm_tragically_spiteful - } - } - add = 1.5 - } - ## Increased even further for interesting characters. - if = { - limit = { - # Must have an appropriate game rule. - OR = { - has_game_rule = harm_spiteful - has_game_rule = harm_tragically_spiteful - } - } - # And be suitably worthwhile! - ## Highly skilled. - if = { - limit = { - calc_true_if = { - amount >= 4 - diplomacy >= random_harm_spiteful_diverse_skilled_value - martial >= random_harm_spiteful_diverse_skilled_value - stewardship >= random_harm_spiteful_diverse_skilled_value - intrigue >= random_harm_spiteful_diverse_skilled_value - learning >= random_harm_spiteful_diverse_skilled_value - prowess >= random_harm_spiteful_diverse_skilled_value - } - calc_true_if = { - amount >= 2 - diplomacy >= random_harm_spiteful_multi_skilled_value - martial >= random_harm_spiteful_multi_skilled_value - stewardship >= random_harm_spiteful_multi_skilled_value - intrigue >= random_harm_spiteful_multi_skilled_value - learning >= random_harm_spiteful_multi_skilled_value - prowess >= random_harm_spiteful_multi_skilled_value - } - OR = { - diplomacy >= random_harm_spiteful_specialist_skilled_value - martial >= random_harm_spiteful_specialist_skilled_value - stewardship >= random_harm_spiteful_specialist_skilled_value - intrigue >= random_harm_spiteful_specialist_skilled_value - learning >= random_harm_spiteful_specialist_skilled_value - prowess >= random_harm_spiteful_specialist_skilled_value - } - } - add = harm_game_rule_likelihood_medium_increase_value - } - ## Positive genetic traits. - ### First, we check number. - #### We don't tolerate excess. - if = { - limit = { num_of_good_genetic_traits >= 2 } - add = harm_game_rule_likelihood_minor_increase_value - } - #### Let alone impractical excess. - else_if = { - limit = { num_of_good_genetic_traits >= 3 } - add = harm_game_rule_likelihood_medium_increase_value - } - ### Then we check quality. - #### Some buffs. - if = { - limit = { - OR = { - has_trait = beauty_good_1 - has_trait = intellect_good_1 - has_trait = physique_good_1 - } - } - add = harm_game_rule_likelihood_minor_increase_value - } - #### Clearly doing some breeding. - else_if = { - limit = { - OR = { - has_trait = beauty_good_2 - has_trait = intellect_good_2 - has_trait = physique_good_2 - } - } - add = harm_game_rule_likelihood_medium_increase_value - } - #### Remember: you opted into this. - else_if = { - limit = { - OR = { - has_trait = beauty_good_3 - has_trait = intellect_good_3 - has_trait = physique_good_3 - } - } - add = harm_game_rule_likelihood_major_increase_value - } - ## Notable levels of prestige or piety. - if = { - limit = { - OR = { - prestige_level >= max_prestige_level - piety_level >= max_piety_level - } - } - add = harm_game_rule_likelihood_minor_increase_value - } - ## Very young or getting old & in charge of an important realm. - if = { - limit = { - OR = { - AND = { - age <= 28 - OR = { - highest_held_title_tier >= tier_kingdom - realm_size >= monumental_realm_size - } - } - AND = { - age >= 66 - OR = { - highest_held_title_tier >= tier_kingdom - realm_size >= monumental_realm_size - } - } - } - } - add = harm_game_rule_likelihood_medium_increase_value - } - ## Has capped out a noble number of perk trees. - if = { - limit = { - calc_true_if = { - amount >= 2 - perks_in_diplomacy_lifestyle >= random_harm_spiteful_perks_in_tree_total_value - perks_in_martial_lifestyle >= random_harm_spiteful_perks_in_tree_total_value - perks_in_stewardship_lifestyle >= random_harm_spiteful_perks_in_tree_total_value - perks_in_intrigue_lifestyle >= random_harm_spiteful_perks_in_tree_total_value - perks_in_learning_lifestyle >= random_harm_spiteful_perks_in_tree_total_value - } - } - add = harm_game_rule_likelihood_medium_increase_value - } - } - # But uhhh, make sure it never gets too ungodly kill-crazy. - max = 2.5 -} diff --git a/common/script_values/00_goverment_values.txt b/common/script_values/00_goverment_values.txt deleted file mode 100644 index 828cb4999f..0000000000 --- a/common/script_values/00_goverment_values.txt +++ /dev/null @@ -1,121 +0,0 @@ -################### -# GOVERNMENT VALUES # -################### - -clan_government_levies_default = 0.3 -clan_government_levies_player = 0.25 -clan_government_levies_opinion_scale_positive = 0.00305 -clan_government_levies_opinion_scale_negative = 0.004 -clan_government_levies_min_ca_1 = 0.05 -clan_government_levies_min_ca_2 = 0.15 -clan_government_levies_min_ca_3 = 0.25 - -clan_government_tax_default = 0.15 -clan_government_tax_player = 0.1 -clan_government_tax_opinion_scale_positive = 0.001 -clan_government_tax_opinion_scale_negative = 0.003 -clan_government_tax_min_ca_1 = 0.025 -clan_government_tax_min_ca_2 = 0.05 -clan_government_tax_min_ca_3 = 0.1 - -clan_government_levies_max_possible = { - value = clan_government_levies_default - add = { - value = clan_government_levies_opinion_scale_positive - multiply = 100 - } -} - -clan_government_tax_max_possible = { - value = clan_government_tax_default - add = { - value = clan_government_tax_opinion_scale_positive - multiply = 100 - } -} - -#Feudal government values -exempt_feudal_tax = 0 -low_feudal_tax = 0.025 -normal_feudal_tax = 0.1 -high_feudal_tax = 0.15 -extortionate_feudal_tax = 0.25 - -feudal_tax_exempt_level = 0 -feudal_tax_low_level = 1 -feudal_tax_normal_level = 2 -feudal_tax_high_level = 3 -feudal_tax_extortionate_level = 4 - -feudal_levies_exempt_level = 0 -feudal_levies_low_level = 1 -feudal_levies_normal_level = 2 -feudal_levies_high_level = 3 -feudal_levies_extortionate_level = 4 - -scutage_contract_tax = 0.5 -scutage_contract_tax_tooltip = { - value = scutage_contract_tax - multiply = 100 -} -scutage_contract_levies = -0.75 -scutage_contract_levies_tooltip = { - value = scutage_contract_levies - multiply = 100 - multiply = -1 -} -march_contract_taxes = -0.5 -march_contract_taxes_tooltip = { - value = march_contract_taxes - multiply = 100 - multiply = -1 -} -palatinate_contract_taxes = -0.2 -palatinate_contract_levies = -0.2 -palatinate_contract_taxes_tooltip = { - value = palatinate_contract_taxes - multiply = 100 - multiply = -1 -} -fortification_rights_contract_taxes = -0.10 -fortification_rights_contract_taxes_tooltip = { - value = fortification_rights_contract_taxes - multiply = 100 - multiply = -1 -} -succession_rights_contract_law_cost = 0.25 -succession_rights_contract_law_cost_tooltip = { - value = succession_rights_contract_law_cost - multiply = 100 -} -war_declaration_rights_allowed_cost_reduction = 0.5 -war_declaration_rights_allowed_cost_reduction_tooltip = { - value = war_declaration_rights_allowed_cost_reduction - multiply = 100 -} -max_contract_changes = 3 - -family_entrepreneurship_tax = 1 -family_entrepreneurship_tax_tooltip = { - value = family_entrepreneurship_tax - multiply = 100 -} -centralized_power_levies = 0.5 -centralized_power_levies_tooltip = { - value = centralized_power_levies - multiply = 100 -} -centralized_power_tax = -1 - - -ghazi_religious_war_cost_reduction = 0.5 -ghazi_religious_war_cost_reduction_tooltip = { - value = ghazi_religious_war_cost_reduction - multiply = 100 -} - -ghazi_prestige_cost_increments = 0.25 -ghazi_prestige_cost_increments_tooltip = { - value = ghazi_prestige_cost_increments - multiply = 100 -} diff --git a/common/script_values/00_governance_lifestyle_values.txt b/common/script_values/00_governance_lifestyle_values.txt deleted file mode 100644 index 3012d80534..0000000000 --- a/common/script_values/00_governance_lifestyle_values.txt +++ /dev/null @@ -1,53 +0,0 @@ - -#Domesday Book Quality Levels -stewardship_domain_special_1500_domesday_perfect_quality = 24 -stewardship_domain_special_1500_domesday_excellent_quality = 20 -stewardship_domain_special_1500_domesday_high_quality = 15 -stewardship_domain_special_1500_domesday_mediocre_quality = 10 -stewardship_domain_special_1500_domesday_poor_quality = 5 - - -#How much more monthly tax would character have to pay to their liege if obligation level was increased -stewardship_duty_5021_monthly_tax_difference = { - value = 0 - if = { - limit = { vassal_contract_obligation_level:feudal_government_taxes = feudal_tax_exempt_level } - add = low_feudal_tax - subtract = feudal_tax_exempt_level - } - else_if = { - limit = { vassal_contract_obligation_level:feudal_government_taxes = feudal_tax_low_level } - add = normal_feudal_tax - subtract = low_feudal_tax - } - else_if = { - limit = { vassal_contract_obligation_level:feudal_government_taxes = feudal_tax_normal_level } - add = high_feudal_tax - subtract = normal_feudal_tax - } - else = { #Else because vassal obligation doesn't go any higher - add = extortionate_feudal_tax - subtract = high_feudal_tax - } - multiply = monthly_character_income -} - -#5 years of tax difference -stewardship_duty_5021_big_money = { - value = stewardship_duty_5021_monthly_tax_difference - multiply = 120 #120 months = 10 years - - divide = 5 - ceiling = yes - multiply = 5 -} - -#2.5 years of tax difference -stewardship_duty_5021_small_money = { - value = stewardship_duty_5021_monthly_tax_difference - multiply = 60 #60 months = 5 years - - divide = 5 - ceiling = yes - multiply = 5 -} \ No newline at end of file diff --git a/common/script_values/00_hold_court_values.txt b/common/script_values/00_hold_court_values.txt deleted file mode 100644 index 446cfccfce..0000000000 --- a/common/script_values/00_hold_court_values.txt +++ /dev/null @@ -1,213 +0,0 @@ - -#Values used for checking relative strengths of neighbors - -hold_court_8010_75_strength_value = { - value = ROOT.max_military_strength - multiply = 0.75 -} - -hold_court_8010_border_length_value = { - value = 0 - every_sub_realm_county = { - limit = { hold_court_8010_county_trigger = yes } - add = 1 - } - if = { - limit = { has_trait = paranoid } - add = 1 - } - if = { - limit = { has_trait = lazy } - add = 1 - } - if = { - limit = { has_trait = craven } - add = 1 - } - if = { - limit = { is_powerful_vassal = yes } - add = 1 - } -} - -hold_court_holding_cost_cheaper_value = { - value = main_building_tier_1_cost - multiply = 0.8 -} - -hold_court_holding_cost_half_value = { - value = main_building_tier_1_cost - multiply = 0.8 - divide = 2 -} - -hold_court_holding_cost_double_value = { - value = main_building_tier_1_cost - multiply = 2 -} - -hold_court_holding_cost_architect_cheaper_value = { - value = main_building_tier_1_cost - multiply = 0.6 -} - -hold_court_holding_cost_architect_expensive_value = { - value = main_building_tier_1_cost - multiply = 1.2 -} - -hold_court_8030_average_mayor_diplomacy_value = { - value = 0 - add = scope:mayor_1.diplomacy - add = scope:mayor_2.diplomacy - divide = 2 -} - -hold_court_8180_contract_weak_value = { - value = 2 -} - -hold_court_8180_contract_average_value = { - value = 3 -} - -hold_court_8180_contract_good_value = { - value = 4 -} - -hold_court_8180_contract_great_value = { - value = 5 -} - -hold_court_8180_contract_value = { - value = 0 - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 1 } - add = hold_court_8180_contract_good_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 2 } - add = hold_court_8180_contract_weak_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 3 } - add = hold_court_8180_contract_weak_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 4 } - add = hold_court_8180_contract_average_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 5 } - add = hold_court_8180_contract_good_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 6 } - add = hold_court_8180_contract_good_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 7 } - add = hold_court_8180_contract_average_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 8 } - add = hold_court_8180_contract_average_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 9 } - add = hold_court_8180_contract_great_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 10 } - add = hold_court_8180_contract_average_value - } - if = { - limit = { scope:contract_lord.var:hc_8180_contract_var = 11 } - add = hold_court_8180_contract_average_value - } -} - -hold_court_8180_artifact_value = { - value = scope:vassal_artifact.var:quality - divide = 2 -} - -court_8190_vassal_modifier_value = { - value = 0 - subtract = steward_promote_culture_base_total - multiply = -0.10 -} - -court_8190_county_value = { - value = 0 - if = { - limit = { - any_realm_county = { culture = scope:other_vassal.culture } - } - every_realm_county = { - limit = { culture = scope:other_vassal.culture } - add = 1 - } - } -} - -court_8200_pope_modifier_value = { - value = 0 - subtract = court_chaplain_conversion_base_total - multiply = -0.15 -} - -court_8200_vassal_modifier_value = { - value = 0 - subtract = court_chaplain_conversion_base_total - multiply = -0.10 -} - -court_8200_county_value = { - value = 0 - if = { - limit = { - any_realm_county = { faith = scope:infidel_vassal.faith } - } - every_realm_county = { - limit = { faith = scope:infidel_vassal.faith } - add = 1 - } - } -} - -court_8260_faction_value = { - value = 0 - if = { - limit = { exists = scope:vassal_faction } - scope:vassal_faction = { - every_faction_member = { add = 1 } - } - } -} - -court_8090_half_building_cost_value = { - value = medium_gold_value - divide = 2 - max = 50 -} - -court_8090_discount_building_cost_value = { - value = medium_gold_value - divide = 3 - multiply = 2 - max = 65 -} - -initial_petitioners_value = 3 - -petitioner_total_chain_length_value = { - value = initial_petitioners_value - # Add the start and end events. - add = 2 -} - -petitioner_current_progress_value = { - value = scope:event_chain_progress - add = 1 -} diff --git a/common/script_values/00_holy_order_values.txt b/common/script_values/00_holy_order_values.txt deleted file mode 100644 index a28846fddb..0000000000 --- a/common/script_values/00_holy_order_values.txt +++ /dev/null @@ -1,99 +0,0 @@ - -#Holy Order standard values -holy_order_barony_number_soft_threshold = 10 - -#Setup values -holy_order_gold_cost = { - value = 500 - if = { - limit = { - is_ai = yes - } - add = -300 - } - # Remove cost if there's a free credit available. - if = { - limit = { has_character_modifier = next_free_ho_hire_modifier } - multiply = 0 - } -} - -holy_order_piety_cost = { - value = 1000 - if = { - limit = { - is_ai = yes - } - add = -600 - } - # Remove cost if there's a free credit available. - if = { - limit = { has_character_modifier = next_free_ho_hire_modifier } - multiply = 0 - } -} - -holy_order_starting_gold = { - value = 250 -} - -cancel_holy_order_piety_cost = { - value = 500 -} - - -#Holy Order province calculations -holy_order_barony_value_calculation = { - value = 0 - add = scope:request_target.major_gold_value - add = { - value = scope:request_target.medium_gold_value - multiply = { - value = county.development_level - multiply = 0.1 - } - } - if = { - limit = { - title_province = { - has_holding_type = castle_holding - } - } - multiply = 1.2 - } - if = { - limit = { - title_province = { - OR = { - has_building = castle_02 - has_building = city_02 - } - } - } - multiply = 1.2 - } - if = { - limit = { - title_province = { - OR = { - has_building = castle_03 - has_building = city_03 - } - } - } - multiply = 1.4 - } - if = { - limit = { - title_province = { - OR = { - has_building = castle_04 - has_building = city_04 - } - } - } - multiply = 1.6 - } - - max = massive_gold_max_value -} diff --git a/common/script_values/00_intrigue_lifestyle_values.txt b/common/script_values/00_intrigue_lifestyle_values.txt deleted file mode 100644 index 149f53a2e2..0000000000 --- a/common/script_values/00_intrigue_lifestyle_values.txt +++ /dev/null @@ -1,8 +0,0 @@ - -#Depravity Tracking -intrigue_depravity_compassionate_loss_threshold = 3 -intrigue_depravity_threshold = 3 - -#Deceit Tracking -intrigue_deception_honest_loss_threshold = 3 -intrigue_deception_threshold = 3 \ No newline at end of file diff --git a/common/script_values/00_law_values.txt b/common/script_values/00_law_values.txt deleted file mode 100644 index ef87d4bf7b..0000000000 --- a/common/script_values/00_law_values.txt +++ /dev/null @@ -1,476 +0,0 @@ -############## -# LAW VALUES # -############## - -# Scaling value used to calculate realm law cost changes. -subrealm_size_modifier = { - every_sub_realm_county = { - add = 10 - } - max = 900 - - if = { - limit = { - culture = { has_cultural_parameter = cheaper_to_change_laws } - } - multiply = 0.5 - } -} - -# Learning: Base Law Cost Reduction -learning_law_cost_modifier = { - value = 0 - subtract = learning - add = 8 - divide = 50 - min = -0.5 -} - -#Faith: The modifier used to calculate the Legalism modifier if the character's faith has Legalism -legalism_law_cost_modifier = { - value = 0 - add = num_sinful_traits - subtract = num_virtuous_traits - divide = 10 - min = -0.3 -} - -#Faith: Religious Law -religious_legal_pronouncements_modifier = -0.1 - -#Faith: Natural Primitivism -natural_primitivism_modifier = 1.5 - -#Crown Authority Change -increase_crown_authority_prestige_base = 100 - -increase_crown_authority_prestige_cost = { - add = { - desc = "BASE_VALUE" - value = increase_crown_authority_prestige_base - format = "BASE_VALUE_FORMAT" - } - - # Realm Size Penalty: +10 Prestige cost per county controlled by you(r vassals) - if = { - limit = { - NOT = { - culture = { has_cultural_parameter = cheaper_to_change_laws } - } - } - add = { - desc = "realm_size" - format = "BREAKDOWN_FORMAT_REALM_SIZE_PRESTIGE_COST" - value = subrealm_size_modifier - } - } - if = { #Reduced penalty from Tradition (for tooltip) - limit = { - culture = { has_cultural_parameter = cheaper_to_change_laws } - } - add = { - desc = "realm_size" - format = "TRADITION_BREAKDOWN_LAW_REALM_SIZE_COST" - value = subrealm_size_modifier - } - } - - # Learning Modifier (2% more expensive for each skill point below 8 Learning) - if = { - limit = { - learning < 8 - } - add = { - desc = "poor_learning_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = learning_law_cost_modifier - } - } - else_if = { # (2% less expensive for each skill point below 8 Learning) - limit = { - learning > 8 - } - add = { - desc = "learning_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = learning_law_cost_modifier - } - } - - # Tenet Modifiers - if = { - limit = { - faith = { - has_doctrine_parameter = legalism_modified_law_costs - } - } - add = { - desc = "rite_legalism_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = legalism_law_cost_modifier - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = natural_primitivism_law_cost_increase - } - } - multiply = { - desc = "rite_primitivism_law_cost_tooltip" - value = natural_primitivism_modifier - } - } - if = { - limit = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - multiply = { - desc = "succession_rights_forced_partition" - value = 1.25 # succession_rights_contract_law_cost = 0.25 - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = religious_legal_pronouncements_law_cost_reduction - } - } - multiply = { - desc = "rite_pronouncements_law_cost_tooltip" - value = 0.9 # religious_legal_pronouncements_modifier = -0.1 - } - } - - # Apply All-Things cooldown breaker multiplier. - if = { - limit = { - has_variable = crown_authority_cooldown - culture = { has_innovation = innovation_all_things } - } - # If the tally exists, multiply by that. - if = { - limit = { has_variable = authority_cooldown_break_tally } - multiply = { - desc = "breaking_authority_cooldown" - value = var:authority_cooldown_break_tally - } - } - # Otherwise, multiply by the stock tally base. - else = { - multiply = { - desc = "breaking_authority_cooldown" - value = authority_cooldown_breaker_value - } - } - } - - # Character Modifier Bonuses - if = { - limit = { has_character_modifier = yearly_benevolent_forgiveness_modifier } - multiply = { - desc = "character_modifiers_law_cost_tooltip" - value = 0.9 # yearly_benevolent_forgiveness_modifier = -10% - } - } - - # Character Modifier Maluses - if = { - limit = { has_character_modifier = vassal_distrust_modifier } - multiply = { - desc = "character_modifiers_law_cost_tooltip" - value = 1.1 # vassal_distrust_modifier = +10% - } - } -} - -#Tribal Authority Change -increase_tribal_authority_prestige_base = 200 - -increase_tribal_authority_prestige_cost = { - add = { - desc = "BASE_VALUE" - value = increase_tribal_authority_prestige_base - format = "BASE_VALUE_FORMAT" - } - # +10 Prestige cost per county controlled by you(r vassals) - add = { - desc = "realm_size" - format = "BREAKDOWN_FORMAT_REALM_SIZE_PRESTIGE_COST" - value = subrealm_size_modifier - } - - # Learning Modifier (2% more expensive for each skill point below 8 Learning) - if = { - limit = { - learning < 8 - } - add = { - desc = "poor_learning_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = learning_law_cost_modifier - } - } - else_if = { # (2% less expensive for each skill point below 8 Learning) - limit = { - learning > 8 - } - add = { - desc = "learning_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = learning_law_cost_modifier - } - } - - # Tenet Modifiers - if = { - limit = { - faith = { - has_doctrine_parameter = legalism_modified_law_costs - } - } - add = { - desc = "rite_legalism_law_cost_tooltip" - value = { - add = increase_crown_authority_prestige_base - add = subrealm_size_modifier - } - multiply = legalism_law_cost_modifier - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = natural_primitivism_law_cost_increase - } - } - add = { - desc = "rite_primitivism_law_cost_tooltip" - value = natural_primitivism_modifier - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = religious_legal_pronouncements_law_cost_reduction - } - } - multiply = { - desc = "rite_pronouncements_law_cost_tooltip" - value = 0.9 # religious_legal_pronouncements_modifier = -0.1 - } - } - - # Apply All-Things cooldown breaker multiplier. - if = { - limit = { - has_variable = tribal_authority_cooldown - culture = { has_innovation = innovation_all_things } - } - # If the tally exists, multiply by that. - if = { - limit = { has_variable = authority_cooldown_break_tally } - multiply = { - desc = "breaking_authority_cooldown" - value = var:authority_cooldown_break_tally - } - } - # Otherwise, multiply by the stock tally base. - else = { - multiply = { - desc = "breaking_authority_cooldown" - value = authority_cooldown_breaker_value - } - } - } - - # Character Modifier Bonuses - if = { - limit = { has_character_modifier = yearly_benevolent_forgiveness_modifier } - multiply = { - desc = "character_modifiers_law_cost_tooltip" - value = 0.9 # yearly_benevolent_forgiveness_modifier = -10% - } - } - - # Character Modifier Maluses - if = { - limit = { has_character_modifier = vassal_distrust_modifier } - multiply = { - desc = "character_modifiers_law_cost_tooltip" - value = 1.1 # vassal_distrust_modifier = +10% - } - } -} - -#Succession Law Change -change_succession_law_prestige_base = 500 -@title_succession_law_mult = 3 #How many times more expensive is it to add custom title succession than change your realm succession? - -change_succession_law_prestige_cost = { - add = { - desc = "BASE_VALUE" - value = change_succession_law_prestige_base - format = "BASE_VALUE_FORMAT" - } - #Calculate the Legalism modifier if relevant - if = { - limit = { - faith = { - has_doctrine_parameter = legalism_modified_law_costs - } - } - add = { - desc = "rite_legalism_law_cost_tooltip" - value = change_succession_law_prestige_base - multiply = legalism_law_cost_modifier - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = natural_primitivism_law_cost_increase - } - } - add = { - desc = "rite_primitivism_law_cost_tooltip" - value = natural_primitivism_modifier - } - } - if = { - limit = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - multiply = { - desc = "succession_rights_forced_partition" - value = 1.25 # succession_rights_contract_law_cost = 0.25 - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = religious_legal_pronouncements_law_cost_reduction - } - } - multiply = { - desc = "rite_pronouncements_law_cost_tooltip" - value = 0.9 # religious_legal_pronouncements_modifier = -0.1 - } - } -} - -change_title_succession_law_prestige_cost = { - add = { - desc = "BASE_VALUE" - value = change_succession_law_prestige_base - multiply = @title_succession_law_mult - } - #Calculate the Legalism modifier if relevant - if = { - limit = { - faith = { - has_doctrine_parameter = legalism_modified_law_costs - } - } - add = { - desc = "rite_legalism_law_cost_tooltip" - value = change_succession_law_prestige_base - multiply = legalism_law_cost_modifier - multiply = @title_succession_law_mult - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = natural_primitivism_law_cost_increase - } - } - add = { - desc = "rite_primitivism_law_cost_tooltip" - value = natural_primitivism_modifier - } - } - if = { - limit = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - multiply = { - desc = "succession_rights_forced_partition" - value = 1.25 # succession_rights_contract_law_cost = 0.25 - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = religious_legal_pronouncements_law_cost_reduction - } - } - multiply = { - desc = "rite_pronouncements_law_cost_tooltip" - value = 0.9 # religious_legal_pronouncements_modifier = -0.1 - } - } -} - -@hre_title_succession_law_mult = 20 -change_hre_title_succession_law_prestige_cost = { - add = { - desc = "BASE_VALUE" - value = change_succession_law_prestige_base - multiply = @hre_title_succession_law_mult - } - #Calculate the Legalism modifier if relevant - if = { - limit = { - faith = { - has_doctrine_parameter = legalism_modified_law_costs - } - } - add = { - desc = "rite_legalism_law_cost_tooltip" - value = change_succession_law_prestige_base - multiply = legalism_law_cost_modifier - multiply = @hre_title_succession_law_mult - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = natural_primitivism_law_cost_increase - } - } - add = { - desc = "rite_primitivism_law_cost_tooltip" - value = natural_primitivism_modifier - } - } - if = { - limit = { - faith = { - has_doctrine_parameter = religious_legal_pronouncements_law_cost_reduction - } - } - multiply = { - desc = "rite_pronouncements_law_cost_tooltip" - value = 0.9 # religious_legal_pronouncements_modifier = -0.1 - } - } -} diff --git a/common/script_values/00_lifestyle_values.txt b/common/script_values/00_lifestyle_values.txt deleted file mode 100644 index fe18d7f7b8..0000000000 --- a/common/script_values/00_lifestyle_values.txt +++ /dev/null @@ -1,842 +0,0 @@ -###################### -# EXPERIENCE VALUES FOR PERK POINTS (used for add_focus_lifestyle_xp) -###################### - -# Use these values -miniscule_lifestyle_xp = 25 -minor_lifestyle_xp = 50 -medium_lifestyle_xp = 100 -major_lifestyle_xp = 300 -massive_lifestyle_xp = 500 # Half of xp needed for 1 perk point -monumental_lifestyle_xp = 1000 # Enough for 1 perk point... but why give XP instead of just awarding a full perk? - -travel_medium_xp = { - value = medium_lifestyle_xp - multiply = 2 -} - -travel_major_xp = { - value = major_lifestyle_xp - multiply = 2 -} - - - -# DEPRECATED VALUES - DO NOT USE - WILL BE DELETED! -miniscule_lifestyle_experience = 25 -minor_lifestyle_experience = 50 -medium_lifestyle_experience = 100 -major_lifestyle_experience = 300 -massive_lifestyle_experience = 500 # Half of xp needed for 1 perk point -monumental_lifestyle_experience = 1000 # Enough for 1 perk point - - - -####################################### -# LIFESTYLE PERK VALUES -####################################### - -max_perk_amount_per_lifestyle = 30 - -############### -# INTRIGUE -############### - -# Digging for Dirt -digging_for_dirt_perk_percentage = 25 -# Court of Shadows -court_of_shadows_perk_percentage = 50 -# Prepared for Anything -prepared_for_anything_perk_secondary_percentage = 10 -#Dark Insights perk values -dark_insights_stat_increase_chance = 50 # The chance of gaining a stat point from torturing people -dark_insights_prowess_increase_maximum = 5 # The maximum amount of Prowess that can be gained from Dark Insights -dark_insights_intrigue_increase_maximum = 5 # The maximum amount of Intrigue that can be gained from Dark Insights -home_advantage_perk_bonus = 50 # Bonus granted to seduce schemes against courtiers -smooth_operator_perk_bonus = 25 # Bonus granted to seduce schemes - - - -################ -# MARTIAL -################ - -# Courtship Perk values -courtship_court_success_chance_bonus_value = 30 -elope_court_success_chance_bonus_value = 30 - -# Promising Prospects Perk -promising_prospects_self_value = 50 -promising_prospects_other_value = 25 - -# Peacemaker Perk -peacemaker_value = 10 - -# Bellum Justum Perk -bellum_justum_discount_percentage = 50 - -# Strict Organization Perk -strict_organization_percentage = 20 - -# Hard Rule -hard_rule_military_power_increase = 20 - -################# -# DIPLOMACY -################# - -# Adaptive Traditions Perk -adaptive_traditions_perk_impact_percent = 25 - -# Accomplished Forger Perk -accomplished_forger_percentage = 75 - -# Thicker Than Water Perk -thicker_than_water_bonus = 25 - -# Flatterer Perk -flatterer_bonus = 30 - -# True Ruler Perk -true_ruler_value = 20 - -# Accomplished Forger -minor_buy_claim_prestige_value = { - value = minor_prestige_value - multiply = 5 -} -medium_buy_claim_prestige_value = { - value = minor_buy_claim_prestige_value - multiply = 2 -} -major_buy_claim_prestige_value = { - value = medium_buy_claim_prestige_value - multiply = 2 -} -massive_buy_claim_prestige_value = { - value = major_buy_claim_prestige_value - multiply = 2 -} -minor_buy_claim_prestige_loss = { - value = 0 - subtract = minor_buy_claim_prestige_value -} -medium_buy_claim_prestige_loss = { - value = 0 - subtract = medium_buy_claim_prestige_value -} -major_buy_claim_prestige_loss = { - value = 0 - subtract = major_buy_claim_prestige_value -} -massive_buy_claim_prestige_loss = { - value = 0 - subtract = massive_buy_claim_prestige_value -} - - -################ -# STEWARDSHIP -################ - -# Tax Man -tax_man_perk_percentage = 25 - -# Chains of Loyalty -chains_of_loyalty_percentage = 25 - -planned_cultivation_percentage = 20 - - -demand_payment_current_gold_value = { - value = scope:recipient.gold -} -demand_payment_gold_to_pay = { - value = scope:recipient.golden_obligation_value -} - - -############### -# LEARNING -############### - -# Clerical Justifications -clerical_justifications_percentage = 20 - -# Learn on the Job -learn_on_the_job_percentage = 20 - -# Zealous Proselytizer -zealous_proselytizer_percentage = 25 - -# Sanctioned Loopholes -minor_buy_claim_piety_value = { - value = minor_piety_value - multiply = 5 -} -medium_buy_claim_piety_value = { - value = minor_buy_claim_piety_value - multiply = 2 -} -major_buy_claim_piety_value = { - value = medium_buy_claim_piety_value - multiply = 2 -} -massive_buy_claim_piety_value = { - value = major_buy_claim_piety_value - multiply = 2 -} -minor_buy_claim_piety_loss = { - value = 0 - subtract = minor_buy_claim_piety_value -} -medium_buy_claim_piety_loss = { - value = 0 - subtract = medium_buy_claim_piety_value -} -major_buy_claim_piety_loss = { - value = 0 - subtract = major_buy_claim_piety_value -} -massive_buy_claim_piety_loss = { - value = 0 - subtract = massive_buy_claim_piety_value -} - - - -############################################## -# EVENT VALUES -################################################ - -########################### -# LIFESTYLE FRIEND VALUES # -########################### - - - -diplomacy_foreign_affairs_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = diplomacy_lifestyle - diplomacy >= decent_skill_rating - } - } - add = diplomacy - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_foreign_affairs_focus } } - add = 10 - } - if = { - limit = { has_trait = gregarious } - add = 5 - } - if = { - limit = { has_council_position = councillor_chancellor } - add = 10 - } - } -} - - -diplomacy_majesty_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = diplomacy_lifestyle - diplomacy >= decent_skill_rating - } - } - add = diplomacy - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus } } - add = 10 - } - if = { - limit = { has_trait = arrogant } - add = 5 - } - add = highest_held_title_tier - add = prestige_level - } -} - -diplomacy_family_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = diplomacy_lifestyle - diplomacy >= decent_skill_rating - } - } - add = diplomacy - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_family_focus } } - add = 10 - } - every_child = { - limit = { - opinion = { - target = root - value >= medium_positive_opinion - } - } - add = 3 - } - add = { - value = ai_compassion - divide = high_positive_ai_value - multiply = 10 - } - } -} - -martial_strategy_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = martial_lifestyle - martial >= decent_skill_rating - } - } - add = martial - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus } } - add = 10 - } - add = { - value = number_of_commander_traits - multiply = 3 - } - if = { - limit = { has_council_position = councillor_marshal } - add = 10 - } - } -} - -martial_authority_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = martial_lifestyle - martial >= decent_skill_rating - } - } - add = martial - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = martial_authority_focus } } - add = 10 - } - if = { - limit = { has_council_position = councillor_marshal } - add = 10 - } - } -} - -martial_chivalry_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = martial_lifestyle - prowess >= decent_skill_rating - } - } - add = prowess - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus } } - add = 10 - } - if = { - limit = { has_trait = lifestyle_blademaster } - add = 10 - } - if = { - limit = { has_trait = brave } - add = 5 - } - if = { - limit = { is_knight = yes } - add = 10 - } - } -} - -stewardship_wealth_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = stewardship_lifestyle - stewardship >= decent_skill_rating - } - } - add = stewardship - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus } } - add = 10 - } - add = { - value = ai_greed - divide = high_positive_ai_value - multiply = 10 - } - if = { - limit = { has_council_position = councillor_steward } - add = 10 - } - } -} - -stewardship_domain_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = stewardship_lifestyle - stewardship >= decent_skill_rating - } - } - add = stewardship - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus } } - add = 10 - } - if = { - limit = { has_council_position = councillor_steward } - add = 10 - } - } -} - -stewardship_duty_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = stewardship_lifestyle - stewardship >= decent_skill_rating - } - } - add = stewardship - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = stewardship_duty_focus } } - add = 10 - } - if = { - limit = { has_trait = diligent } - add = 10 - } - every_vassal = { - limit = { - is_powerful_vassal = yes - opinion = { - target = root - value >= medium_positive_opinion - } - } - add = 3 - } - } -} - -intrigue_skulduggery_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = intrigue_lifestyle - intrigue >= decent_skill_rating - } - } - add = intrigue - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus } } - add = 10 - } - if = { - limit = { has_trait = patient } - add = 5 - } - add = { - value = ai_honor - divide = high_negative_ai_value - multiply = 10 - } - } -} - -intrigue_temptation_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = intrigue_lifestyle - intrigue >= decent_skill_rating - } - } - add = intrigue - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = intrigue_temptation_focus } } - add = 10 - } - if = { - limit = { has_trait = lustful } - add = 5 - } - add = { - value = ai_honor - divide = high_negative_ai_value - multiply = 10 - } - every_relation = { - type = lover - add = 3 - } - add = { - value = attraction - divide = high_positive_attraction - multiply = 10 - } - if = { - limit = { is_deviant_trigger = yes } - add = 5 - } - if = { - limit = { - has_trait = celibate - } - add = -100 - } - if = { - limit = { - OR = { - has_trait = chaste - has_sexuality = asexual - } - } - add = -10 - } - } -} - -intrigue_intimidation_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = intrigue_lifestyle - intrigue >= decent_skill_rating - } - } - add = intrigue - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = intrigue_intimidation_focus } } - add = 10 - } - if = { - limit = { has_trait = sadistic } - add = 5 - } - add = { - value = ai_compassion - divide = high_negative_ai_value - multiply = 10 - } - add = { - value = dread - divide = high_dread - multiply = 10 - } - } -} - -learning_medicine_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = learning_lifestyle - learning >= decent_skill_rating - } - } - add = learning - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = learning_medicine_focus } } - add = 10 - } - if = { - limit = { has_trait = lifestyle_physician } - add = 10 - } - if = { - limit = { has_trait = lifestyle_herbalist } - add = 10 - } - if = { - limit = { has_trait = temperate } - add = 5 - } - add = { - value = ai_compassion - divide = high_negative_ai_value - multiply = 5 - } - } -} - -learning_scholarship_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = learning_lifestyle - learning >= decent_skill_rating - } - } - add = learning - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = learning_scholarship_focus } } - add = 10 - } - if = { - limit = { has_trait = diligent } - add = 5 - } - add = { - value = ai_rationality - divide = high_positive_ai_value - multiply = 5 - } - add = { - value = ai_zeal - divide = high_negative_ai_value - multiply = 3 - } - } -} - -learning_theology_focus_friend_points = { - value = 0 - if = { - limit = { - OR = { #You must have a matching focus or a high skill - has_lifestyle = learning_lifestyle - learning >= decent_skill_rating - } - } - add = learning - subtract = low_skill_rating - if = { - limit = { has_focus_or_focus_trait_trigger = { FOCUS = learning_theology_focus } } - add = 10 - } - if = { - limit = { has_trait = lifestyle_mystic } - add = 10 - } - add = { - value = ai_zeal - divide = high_positive_ai_value - multiply = 5 - } - add = { - value = num_virtuous_traits - multiply = 4 - } - } -} - - - -############# -# DIPLOMACY # -############# - -# Returns a total value between 0.0 and 1.0 based on how relevant this character is to root's chosen focus. -# Irrelevant characters tend towards 0.0 and 0.1, while highly relevant ones will tend towards 0.75 and 1.0 -# Examples of highly relevant characters include a powerful vassal while in the Majesty focus, or a neighboring independent King while in the Foreign Affairs focus. -diplomacy_roots_focus_based_character_relevance_weighting = { - value = 0 - if = { - # Majesty-focused charaters prefer someone in their realm of high standing. - limit = { - root = { has_focus = diplomacy_majesty_focus } - } - if = { - limit = { # Target is my direct liege. - this = root.liege - } - add = 1.0 - } - else_if = { - limit = { # Target is one of my powerful vassals. - is_powerful_vassal_of = root - } - add = 0.70 - } - else_if = { - limit = { # Target is one of my direct vassals. - is_vassal_of = root - } - add = 0.35 - } - else_if = { - limit = { # Target is one of my courtiers. - is_courtier_of = root - } - add = 0.05 - } - } - if = { - # Family-focused characters prefer direct relations or those who are part of their dynasty. - limit = { - root = { has_focus = diplomacy_family_focus } - } - - # Family Check - if = { - limit = { - is_close_family_of = root - } - add = 0.40 - } - else_if = { - limit = { - is_extended_family_of = root - } - add = 0.25 - } - - # Consort Check - if = { - limit = { - is_spouse_of = root - } - add = 0.45 - } - else_if = { - limit = { - is_concubine_of = root - } - add = 0.05 - } - - # Dynasty Check - if = { - limit = { - house = root.house - } - add = 0.15 - } - else_if = { - limit = { - dynasty = root.dynasty - } - add = 0.05 - } - } - if = { - # Foreign Affairs-focused characters prefer those who are not in their realm. - limit = { - root = { has_focus = diplomacy_foreign_affairs_focus } - } - if = { - limit = { # Is the ruler of a completely independent realm. - is_independent_ruler = yes - } - add = 0.50 - } - else_if = { - limit = { # We are at least in different realms. - NOT = { top_liege = root.top_liege } - } - add = 0.35 - } - else_if = { - limit = { # We are at least not part of the same vassal-liege chain. - save_temporary_scope_as = this_character - NOT = { - target_is_liege_or_above = root - root = { target_is_liege_or_above = scope:this_character } - } - } - add = 0.10 - } - - # Foreign Affairs-focused characters also have a stronger preference for foreigners of an equal or higher rank! - if = { - limit = { # Same tier as us (or higher) - NOT = { top_liege = root.top_liege } - tier_difference = { - target = root - value = 0 - } - } - add = 0.25 - } - else_if = { - limit = { # Only 1 tier below us - NOT = { top_liege = root.top_liege } - tier_difference = { - target = root - value = 1 - } - } - add = 0.10 - } - - # It is a little weird for a vassal ruler to be debating an independent ruler of a higher rank, so we should avoid it where possible! - if = { - limit = { - root = { - is_independent_ruler = no - } - is_independent_ruler = yes - highest_held_title_tier > root.highest_held_title_tier - } - add = -0.50 - } - } -} - - -############################# -# LIFESTYLE TRAIT VALUES -############################# - -### Mystic -mystic_first_rank_up_threshold = 2 -mystic_second_rank_up_threshold = 3 - -small_lifestyle_random_xp_low = 5 -small_lifestyle_random_xp_high = 40 -medium_lifestyle_random_xp_low = 55 -medium_lifestyle_random_xp_high = 80 - - -lifestyle_blademaster_xp_gain_minor_value = { - value = { 3 7 } -} diff --git a/common/script_values/00_men_at_arms_values.txt b/common/script_values/00_men_at_arms_values.txt index a248c5cb6a..79fe753ad8 100644 --- a/common/script_values/00_men_at_arms_values.txt +++ b/common/script_values/00_men_at_arms_values.txt @@ -93,6 +93,10 @@ mulaththamun_recruitment_cost = @[light_cavalry_recruitment_cost + 0] mulaththamun_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1] mulaththamun_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1] +cataphract_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.3] +cataphract_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.3] +cataphract_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.3] + abudrar_recruitment_cost = @[skirmisher_recruitment_cost * 1.8] abudrar_low_maint_cost = @[skirmisher_low_maint_cost * 1.8] abudrar_high_maint_cost = @[skirmisher_high_maint_cost * 1.8] @@ -119,6 +123,14 @@ jomsviking_pirates_recruitment_cost = @[skirmisher_recruitment_cost * 1.4] jomsviking_pirates_low_maint_cost = @[skirmisher_low_maint_cost * 1.4] jomsviking_pirates_high_maint_cost = @[skirmisher_high_maint_cost * 1.4] +tawashi_recruitment_cost = @[light_cavalry_recruitment_cost * 1.1] +tawashi_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1] +tawashi_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1] + +asawira_recruitment_cost = 300 +asawira_low_maint_cost = 1 +asawira_high_maint_cost = 3 + ### Regional MAA camel_rider_recruitment_cost = @[light_cavalry_recruitment_cost + 0] camel_rider_low_maint_cost = @[light_cavalry_low_maint_cost * 0.8] diff --git a/common/script_values/00_poetry_values.txt b/common/script_values/00_poetry_values.txt deleted file mode 100644 index df3b187c0d..0000000000 --- a/common/script_values/00_poetry_values.txt +++ /dev/null @@ -1,5 +0,0 @@ -################################################## -# Send Poem Interaction - -# This needs to be synced with @send_poem_cooldown_years_value in 00_poetry_opinions.txt. -send_poem_cooldown_years_value = 5 diff --git a/common/script_values/00_prison_values.txt b/common/script_values/00_prison_values.txt deleted file mode 100644 index 8522a473ff..0000000000 --- a/common/script_values/00_prison_values.txt +++ /dev/null @@ -1,20 +0,0 @@ - -dungeon_events_on_action_chance = { - if = { - limit = { - exists = imprisoner - scope:imprisoner = { has_character_flag = reformed_dungeon } - } - add = 25 - } - if = { - limit = { - exists = scope:imprisoner - scope:imprisoner = { has_character_flag = neglected_dungeon } - } - add = 75 - } - else = { - add = 50 - } -} \ No newline at end of file diff --git a/common/script_values/00_regional_values.txt b/common/script_values/00_regional_values.txt deleted file mode 100644 index 1370f23511..0000000000 --- a/common/script_values/00_regional_values.txt +++ /dev/null @@ -1,38 +0,0 @@ -############# -# SAHARA & SAHEL -############# - -local_slave_gold_value = { #How much would a colossal slave raid fetch from this place? - value = monthly_income - multiply = 10 - - #Sensible max-mins. - min = 30 - max = 100 - - #Give a whole number. - ceiling = yes -} - -slaver_reparations_value = { - value = monthly_character_income - - #Sensible max-mins. - min = 10 - max = 120 - - #Give a whole number. - ceiling = yes -} - -selfish_liege_slave_gold_value = { - value = monthly_income - multiply = 5 - - #Sensible max-mins. - min = 15 - max = 80 - - #Give a whole number. - ceiling = yes -} \ No newline at end of file diff --git a/common/script_values/00_relation_values.txt b/common/script_values/00_relation_values.txt deleted file mode 100644 index 5f9cd1ce56..0000000000 --- a/common/script_values/00_relation_values.txt +++ /dev/null @@ -1,44 +0,0 @@ -# Default relation opinions -default_friend_opinion = 15 -default_rival_opinion = -15 -default_lover_opinion = 15 - -#Rivalry score adjustments -minor_rival_score_gain = 10 -medium_rival_score_gain = 20 -major_rival_score_gain = 30 -massive_rival_score_gain = 40 - -#Rivalry score diff thresholds -minor_story_owner_advantage = 10 -medium_story_owner_advantage = 30 -major_story_owner_advantage = 50 -minor_target_rival_advantage = -10 -medium_target_rival_advantage = -30 -major_target_rival_advantage = -50 - -# Existing Relationship Tallies -sum_friends_and_rivals_tally_value = { - value = 0 - every_relation = { - type = friend - add = 1 - } - every_relation = { - type = rival - add = 1 - } -} -sum_potential_friends_and_potential_rivals_tally_value = { - value = 0 - every_relation = { - type = potential_friend - add = 1 - } - every_relation = { - type = potential_rival - add = 1 - } -} - -getwomanmangirlboy_age_threshold_value = 20 diff --git a/common/script_values/00_scheme_values.txt b/common/script_values/00_scheme_values.txt deleted file mode 100644 index 9f9c54060d..0000000000 --- a/common/script_values/00_scheme_values.txt +++ /dev/null @@ -1,280 +0,0 @@ -################### -# SCHEME VALUES # -################### -# Determines the scheme progress loss when declining to execute it at full progress -decline_execution_setback = -3 -major_decline_execution_setback = -5 - -# Failed scheme setback values -scheme_failed_outcome_setback_value = -7 - -#Scheme progress changes -scheme_progress_gain = 1 -scheme_progress_loss = -1 - -# Scheme power -minor_positive_scheme_power = 2 -medium_positive_scheme_power = 5 -major_positive_scheme_power = 10 -minor_negative_scheme_power = -2 -medium_negative_scheme_power = -5 -major_negative_scheme_power = -10 - -# Secrecy changes -minor_secrecy_loss = -0.05 -medium_secrecy_loss = -0.1 -major_secrecy_loss = -0.15 -minor_secrecy_gain = 0.05 -medium_secrecy_gain = 0.1 -major_secrecy_gain = 0.15 - -#Discovery Chances -hostile_scheme_own_court_discovery_chance = { - value = 2 - if = { - limit = { - exists = cp:councillor_spymaster - NOT = { scope:target = cp:councillor_spymaster } - } - subtract = { - value = cp:councillor_spymaster.intrigue - multiply = 0.01 - } - } -} - -#Watchful Modifier -watchful_modifier_duration = 730 - - -# EVENT COOLDOWN FOR VARIOUS SCHEMES -default_scheme_event_cooldown_duration_value = 730 -spy_scheme_event_cooldown_time = 365 - -# BRIBES -bribe_value = { - value = 50 - if = { - limit = { - scope:recipient.ai_greed > 0 - } - add = { - value = scope:recipient.ai_greed - divide = 4 - } - } - - if = { - limit = { - scope:recipient = { is_landed = yes } - scope:recipient.primary_title.tier < tier_duchy - } - multiply = 2 - } - else_if = { - limit = { - scope:recipient.primary_title.tier >= tier_duchy - } - multiply = 3 - } - - if = { - limit = { - scope:recipient = { - liege = scope:actor - is_theocratic_lessee = yes - } - scope:actor.primary_title.tier < tier_duchy - } - multiply = 2 - } - else_if = { - limit = { - scope:recipient = { - liege = scope:actor - is_theocratic_lessee = yes - } - scope:actor.primary_title.tier >= tier_duchy - } - multiply = 3 - } - - if = { - limit = { - scope:actor = { - exists = dynasty - dynasty = { - has_dynasty_perk = guile_legacy_2 - } - } - } - multiply = 0.5 - } - - if = { - limit = { - scope:recipient = { - OR = { - AND = { - is_landed = yes - government_has_flag = government_is_tribal - } - AND = { - is_landed = no - exists = liege - liege = { - government_has_flag = government_is_tribal - } - } - AND = { - is_landed = no - exists = host - host = { - government_has_flag = government_is_tribal - } - } - } - } - } - multiply = 0.25 - min = 5 - } - - # Discount from BP2 imaginary friend story cycle ending - if = { - limit = { - scope:actor = { has_character_modifier = imaginary_friend_mad_modifier } - } - multiply = 0.5 - min = 5 - } -} - -#GIFTS -gift_value = { - value = 50 - if = { - limit = { - scope:recipient.ai_greed > 0 - } - add = { - value = scope:recipient.ai_greed - divide = 4 - } - } - - if = { - limit = { - scope:recipient = { is_landed = yes } - scope:recipient.primary_title.tier < tier_duchy - } - multiply = 2 - } - else_if = { - limit = { - scope:recipient.primary_title.tier >= tier_duchy - } - multiply = 3 - } - - if = { - limit = { - scope:recipient = { - liege = scope:actor - is_theocratic_lessee = yes - } - scope:actor.primary_title.tier < tier_duchy - } - multiply = 2 - } - else_if = { - limit = { - scope:recipient = { - liege = scope:actor - is_theocratic_lessee = yes - } - scope:actor.primary_title.tier >= tier_duchy - } - multiply = 3 - } - - if = { - limit = { - scope:actor = { - exists = dynasty - dynasty = { - has_dynasty_perk = fp1_adventure_legacy_2 - } - } - } - multiply = 0.5 - } - - if = { - limit = { - scope:recipient = { - OR = { - AND = { - is_landed = yes - government_has_flag = government_is_tribal - } - AND = { - is_landed = no - exists = liege - liege = { - government_has_flag = government_is_tribal - } - } - AND = { - is_landed = no - exists = host - host = { - government_has_flag = government_is_tribal - } - } - } - } - } - multiply = 0.25 - min = 5 - } -} - -bribe_acceptance_value = { - value = 10 - if = { - limit = { - root.ai_greed > 0 - } - add = root.ai_greed - } - divide = 5 - ceiling = yes - multiply = 5 -} - -sway_opinion_increase_per_success = 25 -sway_max_value = 100 - -# Claim Throne values -claim_throne_discovered_prestige_loss = { - value = major_prestige_loss -} -claim_throne_discovered_failure_prestige_loss = { - value = medium_prestige_loss -} - -# Vengeful Trait Scheme Success Chance Modifier -vengeful_scheme_success_chance_modifier = 15 - -court_scheme_max_compatability_value = { - value = 30 - if = { - limit = { - culture = { - has_cultural_parameter = ai_romance_scheme_increase - } - } - add = 70 - } -} diff --git a/common/script_values/00_scholarship_lifestyle_values.txt b/common/script_values/00_scholarship_lifestyle_values.txt deleted file mode 100644 index d1eca6fbab..0000000000 --- a/common/script_values/00_scholarship_lifestyle_values.txt +++ /dev/null @@ -1,6 +0,0 @@ - -#Zealous Tracking -scholarship_zealous_threshold = -3 - -#Cynical Tracking -scholarsip_cynical_threshold = 3 \ No newline at end of file diff --git a/common/script_values/00_single_combat_values.txt b/common/script_values/00_single_combat_values.txt deleted file mode 100644 index 567a751ae5..0000000000 --- a/common/script_values/00_single_combat_values.txt +++ /dev/null @@ -1,179 +0,0 @@ -############################ -# COMBAT SETTINGS -############################ - -# By default, how much % extra do we pump it up when someone is risking injury? Occurs *after* it has been determined that they may be injured, and just increases that chance. -starting_injury_bonus = 10 - -# How much of a gap do you need, initially, between you and your opponent in order to win? -starting_success_threshold = 125 - -# How many rounds can the single combat go before it enters sudden death? -round_cap_limit = 4 - -# When does it get easier to injure yourself, and by how much? -round_injury_bonus_lower = 3 -round_injury_bonus_lowest = 4 -round_injury_adjustment_lower = 10 -round_injury_adjustment_lowest = 30 - -# When does it get easier to win, and by how much? -round_success_threshold_lower = 3 -round_success_threshold_lowest = 4 -round_success_adjustment_lower = -15 -round_success_adjustment_lowest = -20 - -############################ -# SINGLE COMBAT SKILL RATINGS -############################ - -low_scsk = low_skill_rating -mediocre_scsk = mediocre_skill_rating -medium_scsk = medium_skill_rating -decent_scsk = decent_skill_rating -high_scsk = high_skill_rating -very_high_scsk = very_high_skill_rating -extremely_high_scsk = extremely_high_skill_rating - -############################ -# COMBAT ROLLS -############################ - -# Injury Risk values -injury_risk_none = 0 -injury_risk_low = 25 -injury_risk_medium = 50 -injury_risk_high = 75 -injury_risk_very_high = 100 - -# Duel Success values -duel_success_none = 0 -duel_success_low = 25 -duel_success_medium = 50 -duel_success_high = 75 -duel_success_very_high = 100 - -############################ -# DESC THRESHOLDS -############################ - -sc_defender_injury_check_actual = { - value = scope:sc_defender.var:sc_defender_injury_risk_check - subtract = scope:sc_defender.var:sc_defender_duel_success_score -} - -sc_attacker_injury_check_actual = { - value = scope:sc_attacker.var:sc_attacker_injury_risk_check - subtract = scope:sc_attacker.var:sc_attacker_duel_success_score -} - -single_combat_injury_very_unlikely_value = -50 -single_combat_injury_unlikely_value = -10 -single_combat_injury_neutral_value = 10 -single_combat_injury_likely_value = 40 - -single_combat_success_almost_impossible_value = -70 -single_combat_success_very_unlikely_value = -45 -single_combat_success_unlikely_value = -20 -single_combat_success_likely_value = 20 -single_combat_success_very_likely_value = 45 -single_combat_success_almost_certain_value = 70 - -############################ -# COMBAT MOVE WEIGHTING CONTROLS -############################ - -sce_regular_combat_repeat_down_weight = -750 - -############################ -# COMBAT MOVE AI WEIGHTS -############################ - -sce_ai_mod_trait_weight_light = 25 - -sce_ai_mod_trait_weight_medium = 50 - -sce_ai_mod_trait_weight_heavy = 75 - -sce_ai_mod_trait_down_weight_medium = -50 - -############################ -# COMBAT MOVE SPECIAL EFFECTS VALUES -############################ - -combat_move_pocket_silver_value = 20 - -combat_move_reason_you_suck_speech_value = { - value = diplomacy - # Every 1pts of diplomacy gives 5 prestige. - multiply = 5 -} - -combat_move_butchery_dread_value = { - value = prowess - # Every 2pts of prowess gives a point of dread. - divide = 2 - # Up to a sensible maximum. - max = 10 -} - -combat_move_blade_dance_value = { - value = prowess - # Every 1pts of prowess gives 5 prestige. - multiply = 5 -} - -# Since this doesn't refere to a true threshold, a malus means incrementing the number (bringing you closer to the eventual target). -combat_move_wound_threshold_malus_1 = 30 -combat_move_wound_threshold_malus_2 = 40 -combat_move_wound_threshold_malus_3 = 50 - -# Since this doesn't refere to a true threshold, a bonus means decrementing the number (bringing you further away from the eventual target). -combat_move_wound_threshold_bonus_1 = -30 -combat_move_wound_threshold_bonus_2 = -40 -combat_move_wound_threshold_bonus_3 = -50 - -############################ -# MISC -############################ - -# Calculates a character's prowess, plus the number of traits they have with beneficial special combat moves. -sce_has_single_combat_special_traits_value = { - value = prowess - - # Blademaster. - if = { - limit = { has_trait = lifestyle_blademaster } - add = 10 - } - # Hunter. - if = { - limit = { has_trait = lifestyle_hunter } - add = 10 - } - # Berserker. - if = { - limit = { has_trait = berserker } - add = 10 - } - # Shieldmaiden. - if = { - limit = { has_trait = shieldmaiden } - add = 10 - } - # Varangian. - if = { - limit = { has_trait = varangian } - add = 10 - } - # Deviant. - if = { - limit = { has_trait = deviant } - add = 10 - } - # Viking. - if = { - limit = { has_trait = viking } - add = 10 - } -} \ No newline at end of file diff --git a/common/script_values/00_stress_values.txt b/common/script_values/00_stress_values.txt deleted file mode 100644 index c55befeef3..0000000000 --- a/common/script_values/00_stress_values.txt +++ /dev/null @@ -1,159 +0,0 @@ -############################ -# STRESS CHANGES -############################ - -miniscule_stress_gain = 10 -minor_stress_gain = 20 -medium_stress_gain = 40 -major_stress_gain = 60 -massive_stress_gain = 100 -monumental_stress_gain = 150 - -miniscule_stress_loss = -5 -minor_stress_loss = -10 -medium_stress_loss = -20 -major_stress_loss = -40 -massive_stress_loss = -60 -monumental_stress_loss = -100 - -#Thresholds -minor_stress_gain_threshold = 100 -medium_stress_gain_threshold = 200 -major_stress_gain_threshold = 300 -max_stress_gain_threshold = 400 - -#Values to be used in "stress_impact" -miniscule_stress_impact_gain = 10 -minor_stress_impact_gain = 20 -medium_stress_impact_gain = 40 -major_stress_impact_gain = 80 -massive_stress_impact_gain = 100 -miniscule_stress_impact_loss = -5 -minor_stress_impact_loss = -15 -medium_stress_impact_loss = -30 -major_stress_impact_loss = -65 -massive_stress_impact_loss = -100 - -# For certain traits 'nullifying' most of a medium stress gain, but some left for flavor. -sub_medium_stress_impact_loss = -30 -sub_medium_stress_impact_gain = 30 - -refund_perks_stress_impact = 100 - -mental_break_opt_out_stress_gain = 25 -hunt_stress_loss_value = -30 -meager_feast_stress_loss_value = -10 -feast_stress_loss_value = -30 -medium_feast_stress_loss_value = -35 -lavish_feast_stress_loss_value = -40 -exotic_feast_stress_loss_value = -45 -activity_stress_loss_impact = -15 -activity_stress_gain_impact = 15 - -#Duration of stress-induced opinion penalties in days -default_stress_opinion_duration = 3650 - - -#Cost of changing a child's traits -child_trait_change_stress_penalty = 30 -depart_from_own_trait_stress_cost = 10 - - -#Stress trigger values -very_low_stress = 10 -low_stress = 25 -lower_than_baseline_stress = 50 -normal_baseline_stress = 75 -higher_than_baseline_stress = 100 -low_medium_stress = 125 -medium_stress = 150 -high_medium_stress = 175 -high_stress = 200 -very_high_stress = 250 -extremely_high_stress = 300 - - -# Mental Break values -stress_threshold_cooldown_duration = { - value = 1824 # 1 day less than 5 years - if = { - limit = { - has_perk = mental_resilience_perk - } - add = 1095 # 3 years extra - } - floor = yes # Should be unneccessary, but ensures it's an int -} -stress_threshold_cooldown_duration_in_years = { - value = 5 - if = { - limit = { - has_perk = mental_resilience_perk - } - add = 3 - } -} -stress_threshold_second_check_timing = { - value = 1825 # 5 years - if = { - limit = { - has_perk = mental_resilience_perk - } - add = 1095 # 3 years extra - } - floor = yes # Should be unneccessary, but ensures it's an int -} - -generous_title_grant_value = { - value = 0 - # Base stress value scaled on title tier. - every_in_list = { - list = target_titles - - add = { - value = 0 - - if = { - limit = { this.tier = tier_county } - add = minor_stress_loss # 10 base - } - else_if = { - limit = { this.tier = tier_duchy } - add = { - value = medium_stress_loss - multiply = 1.25 # 25 base - } - } - else_if = { - limit = { this.tier = tier_kingdom } - add = { - value = major_stress_loss - multiply = 2 # 80 base - } - } - else_if = { - limit = { this.tier = tier_empire } - add = { - value = monumental_stress_loss - multiply = 2 # 200 base - } - } - - # Lose more stress for giving away titles of your primary tier; lose less stress for giving away titles far below your primary in tier. - multiply = { - value = this.tier - add = 1 - divide = scope:actor.primary_title.tier - } - - # Round to the nearest multiple of 5. - divide = 5 - round = yes - multiply = 5 - - # For a Duke, this will be x1.25 for Duchies (-30) and x1 for Counties(-10) - # For a King, this will be x1.25 for a Kingdom (-100), x1 for a Duchy (-25) and x0.75 for Counties(-10) - # For an Emperor, this will be x1.25 for an Empire(-200), x1 for a Kingdom(-80), x0.75 for a Duchy(-20) and x0.4 for a Counties (-5) - } - } -} diff --git a/common/script_values/00_struggle_values.txt b/common/script_values/00_struggle_values.txt index 8c11444bf3..70e45ee762 100644 --- a/common/script_values/00_struggle_values.txt +++ b/common/script_values/00_struggle_values.txt @@ -11,6 +11,21 @@ minor_struggle_catalyst_gain = 3 medium_struggle_catalyst_gain = 5 major_struggle_catalyst_gain = 10 massive_struggle_catalyst_gain = 25 +monumental_struggle_catalyst_gain = 50 + +# "over time" values for balancing passage of time catalysts. +minimal_struggle_catalyst_over_time_gain = 1 +minor_struggle_catalyst_over_time_gain = 2 +medium_struggle_catalyst_over_time_gain = 3 +major_struggle_catalyst_over_time_gain = 5 +massive_struggle_catalyst_over_time_gain = 10 +monumental_struggle_catalyst_over_time_gain = 20 + +# Special values for syncing catalysts between phases that need different values than the standard for balancing purposes. +catalyst_forming_alliance_between_supporter_detractor_rulers_value = 2 +catalyst_fp3_yearly_time_out_ending_drift = { + value = 1 +} # Mess around with the AI's priorities for war targets. ## We mostly apply this in nakedly aggressive wars; AI with claims or de jure rights elsewhere shouldn't want to forgo them completely. @@ -25,6 +40,8 @@ struggle_wars_prioritise_struggle_targets_value = { catalyst_forming_alliance_with_major_uninvolved_power_power_realm_size_value = { value = massive_realm_size } +catalyst_cooldown_between_significant_character_deaths_years_value = 25 + ################################################## # Phase Values @@ -47,3 +64,37 @@ add_X_per_sub_realm_struggle_county_value = { fp2_struggle_0011_gift_cost_value = { value = major_gold_value } fp2_struggle_compromise_ending_minimal_empire_size = 5 + +# What we show in loc. +fp3_caliph_gets_cheaper_subjugation_cb_show_value = 0.2 +# What we actually use in script. +fp3_caliph_gets_cheaper_subjugation_cb_actual_value = { + value = 1 + subtract = fp3_caliph_gets_cheaper_subjugation_cb_show_value +} + +# Empower viziers. +fp3_empower_viziers_swing_value = 25 + +################################################## +# FP3 Control Values + +# At what threshold of house heads do we activate successively larger antagonistic house catalysts? +catalyst_yearly_influential_house_is_antagonistic_major_control_value = 10 +catalyst_yearly_influential_house_is_antagonistic_medium_control_value = 6 +catalyst_yearly_influential_house_is_antagonistic_minor_control_value = 3 +catalyst_yearly_influential_house_is_antagonistic_minimal_control_value = 1 + +# At what threshold of house heads do we activate successively larger harmonious house catalysts? +catalyst_yearly_influential_house_is_harmonious_major_control_value = 10 +catalyst_yearly_influential_house_is_harmonious_medium_control_value = 6 +catalyst_yearly_influential_house_is_harmonious_minor_control_value = 3 +catalyst_yearly_influential_house_is_harmonious_minimal_control_value = 1 + +sub_realm_size_value = { + value = sub_realm_size +} + +caliph_realm_size_value = { + value = 0 +} diff --git a/common/script_values/00_suggestion_values.txt b/common/script_values/00_suggestion_values.txt deleted file mode 100644 index 24030cb2cd..0000000000 --- a/common/script_values/00_suggestion_values.txt +++ /dev/null @@ -1,5 +0,0 @@ -recommended_num_maa_regiments_value = { - # 1 for counts, 2 for dukes, 3 for kings, 4 for emperors - value = highest_held_title_tier - subtract = 1 -} \ No newline at end of file diff --git a/common/script_values/00_title_tiers_values.txt b/common/script_values/00_title_tiers_values.txt deleted file mode 100644 index 1c95edc622..0000000000 --- a/common/script_values/00_title_tiers_values.txt +++ /dev/null @@ -1,18 +0,0 @@ -tier_unlanded = 0 -tier_barony = 1 -tier_county = 2 -tier_duchy = 3 -tier_kingdom = 4 -tier_empire = 5 - -highest_held_title_tier_plus_one = { - value = highest_held_title_tier - add = 1 - max = tier_empire -} - -highest_held_title_tier_minus_one = { - value = highest_held_title_tier - subtract = 1 - min = tier_unlanded -} \ No newline at end of file diff --git a/common/script_values/00_trait_values.txt b/common/script_values/00_trait_values.txt deleted file mode 100644 index cc2cdc2329..0000000000 --- a/common/script_values/00_trait_values.txt +++ /dev/null @@ -1,10 +0,0 @@ -#Trait xp -miniscule_trait_xp = 1 -minor_trait_xp = 3 -medium_trait_xp = 5 -major_trait_xp = 10 -massive_trait_xp = 20 #Rarely ever use - -#XP needed for trait level -trait_second_level = 50 -trait_third_level = 100 \ No newline at end of file diff --git a/common/script_values/00_travel_values.txt b/common/script_values/00_travel_values.txt deleted file mode 100644 index 1114841735..0000000000 --- a/common/script_values/00_travel_values.txt +++ /dev/null @@ -1,112 +0,0 @@ -traveler_rank_up_1_threshold = 10 -traveler_rank_up_2_threshold = 20 -traveler_rank_up_3_threshold = 30 -traveler_rank_up_4_threshold = 40 -traveler_rank_up_5_threshold = 50 -traveler_rank_up_6_threshold = 60 -traveler_rank_up_7_threshold = 70 -traveler_rank_up_8_threshold = 80 -traveler_rank_up_9_threshold = 90 -traveler_rank_up_10_threshold = 100 - -# Read time constants -@hills_danger_value = 45 -@mountains_danger_value = 65 -@desert_danger_value = 50 -@desert_mountains_danger_value = 65 -@jungle_danger_value = 65 -@forest_danger_value = 45 -@taiga_danger_value = 55 -@wetlands_danger_value = 65 -@steppe_danger_value = 50 -@floodplains_danger_value = 35 -@drylands_danger_value = 35 -@high_reduction_constant = -1 -@medium_reduction_constant = @[2 / 3 * -1] -@low_reduction_constant = @[1 / 3 * -1] - -# Script values other files can reference -hills_danger_value = @hills_danger_value -mountains_danger_value = @mountains_danger_value -desert_danger_value = @desert_danger_value -desert_mountains_danger_value = @desert_mountains_danger_value -jungle_danger_value = @jungle_danger_value -forest_danger_value = @forest_danger_value -taiga_danger_value = @taiga_danger_value -wetlands_danger_value = @wetlands_danger_value -steppe_danger_value = @steppe_danger_value -floodplains_danger_value = @floodplains_danger_value -drylands_danger_value = @drylands_danger_value - -ocean_danger_value = 75 -coastal_sea_danger_value = 50 -low_sea_danger_reduction = -25 -medium_sea_danger_reduction = -45 - -hills_high_danger_reduction = @[hills_danger_value * high_reduction_constant] -hills_medium_danger_reduction = @[hills_danger_value * medium_reduction_constant -2] -hills_low_danger_reduction = @[hills_danger_value * low_reduction_constant +1] - -mountains_high_danger_reduction = @[mountains_danger_value * high_reduction_constant] -mountains_medium_danger_reduction = @[mountains_danger_value * medium_reduction_constant +1] -mountains_low_danger_reduction = @[mountains_danger_value * low_reduction_constant -2] - -desert_high_danger_reduction = @[desert_danger_value * high_reduction_constant] -desert_medium_danger_reduction = @[desert_danger_value * medium_reduction_constant +1] -desert_low_danger_reduction = @[desert_danger_value * low_reduction_constant -2] - -desert_mountains_high_danger_reduction = @[desert_mountains_danger_value * high_reduction_constant] -desert_mountains_medium_danger_reduction = @[desert_mountains_danger_value * medium_reduction_constant +1] -desert_mountains_low_danger_reduction = @[desert_mountains_danger_value * low_reduction_constant -2] - -jungle_high_danger_reduction = @[jungle_danger_value * high_reduction_constant] -jungle_medium_danger_reduction = @[jungle_danger_value * medium_reduction_constant +1] -jungle_low_danger_reduction = @[jungle_danger_value * low_reduction_constant -2] - -forest_high_danger_reduction = @[forest_danger_value * high_reduction_constant] -forest_medium_danger_reduction = @[forest_danger_value * medium_reduction_constant -2] -forest_low_danger_reduction = @[forest_danger_value * low_reduction_constant +1] - -taiga_high_danger_reduction = @[taiga_danger_value * high_reduction_constant] -taiga_medium_danger_reduction = @[taiga_danger_value * medium_reduction_constant -1] -taiga_low_danger_reduction = @[taiga_danger_value * low_reduction_constant -1] - -wetlands_high_danger_reduction = @[wetlands_danger_value * high_reduction_constant] -wetlands_medium_danger_reduction = @[wetlands_danger_value * medium_reduction_constant +1] -wetlands_low_danger_reduction = @[wetlands_danger_value * low_reduction_constant -2] - -steppe_high_danger_reduction = @[steppe_danger_value * high_reduction_constant] -steppe_medium_danger_reduction = @[steppe_danger_value * medium_reduction_constant +1] -steppe_low_danger_reduction = @[steppe_danger_value * low_reduction_constant -2] - -floodplains_high_danger_reduction = @[floodplains_danger_value * high_reduction_constant] -floodplains_medium_danger_reduction = @[floodplains_danger_value * medium_reduction_constant +1] -floodplains_low_danger_reduction = @[floodplains_danger_value * low_reduction_constant -2] - -drylands_high_danger_reduction = @[drylands_danger_value * high_reduction_constant] -drylands_medium_danger_reduction = @[drylands_danger_value * medium_reduction_constant +1] -drylands_low_danger_reduction = @[drylands_danger_value * low_reduction_constant -2] - -# Travel Option Cost Scripted Values -low_travel_option_base_cost = 2 -medium_travel_option_base_cost = 5 -high_travel_option_base_cost = 10 - -tier_multiplier = { - value = primary_title.tier - subtract = 1 - min = 1 -} - -low_travel_option_cost = { - value = low_travel_option_base_cost - multiply = tier_multiplier -} -medium_travel_option_cost = { - value = medium_travel_option_base_cost - multiply = tier_multiplier -} -high_travel_option_cost = { - value = high_travel_option_base_cost - multiply = tier_multiplier -} diff --git a/common/script_values/01_character_weighting_values.txt b/common/script_values/01_character_weighting_values.txt deleted file mode 100644 index c01f293710..0000000000 --- a/common/script_values/01_character_weighting_values.txt +++ /dev/null @@ -1,146 +0,0 @@ -################################### -# Character Weighting Values -# For a given character, each value will return a given score based on how relevant/important that character is to ROOT given the situation. -################################### -# Weight List: -# captured_combatant_weights_for_root_participant - For evaluating importance of prisoners captured during war, for the participants of that war. -# captured_combatant_weights_for_root_nonparticipant - For evaluating importance of prisoners captured during war for noncombatants (e.g., relatives of the prisoner). -# slain_combatant_weights_for_root_participant - For evaluating importance of casualties slain during war, for the participants of that war. -# slain_combatant_weights_for_root_nonparticipant - For evaluating importance of casualties slain during war for noncombatants (e.g., relatives of the deceased). - -captured_combatant_weights_for_root_participant = { - value = 0 - if = { - limit = { - # Captured primary participants are worth 100% warscore, so are absolute #1 priority. - exists = scope:combat_war - OR = { - this = scope:combat_war.primary_attacker - this = scope:combat_war.primary_defender - } - } - add = 5000 - } - if = { - limit = { - # Captured heirs of primary participants are worth 50% warscore, so are #2 priority. - exists = scope:combat_war - OR = { - is_heir_of = scope:combat_war.primary_attacker - is_heir_of = scope:combat_war.primary_defender - } - } - add = 1000 - } - if = { limit = { this = root.player_heir } # My own heir is of 3rd importance, since they are very important in the long term but not immediately relevant to the ongoing war. - add = 500 - } - if = { - limit = { - # The person I just defeated in combat is of 4th importance, since they are defeated 'for good' (for the moment). - exists = scope:combat_loser - this = scope:combat_loser - } - add = 100 - } - if = { limit = { is_close_family_of = root} - add = 50 - } - if = { limit = { is_of_major_interest_to_root_trigger = yes } - add = 10 - } - if = { limit = { is_of_minor_interest_to_root_trigger = yes} - add = 5 - } - add = this.highest_held_title_tier -} - -captured_combatant_weights_for_root_nonparticipant = { - value = 0 - - if = { limit = { this = root.player_heir } - add = 1000 - } - if = { limit = { is_heir_of = root } - add = 500 - } - if = { limit = { is_of_major_interest_to_root_trigger = yes } - add = 100 - } - if = { limit = { is_consort_of = root } - add = 50 - } - if = { limit = { is_child_of = root } - add = 25 - } - if = { limit = { is_of_minor_interest_to_root_trigger = yes } - add = 10 - } - if = { limit = { is_courtier_of = root } - add = 1 - } - add = this.highest_held_title_tier -} - -slain_combatant_weights_for_root_participant = { - value = 0 - if = { - limit = { - # Slain primary participants do not give warscore, but can change the outcome of the ongoing war (esp. if their successors are reluctant to continue the war). - exists = scope:combat_war - OR = { - this = scope:combat_war.primary_attacker - this = scope:combat_war.primary_defender - } - } - add = 1000 - } - if = { limit = { this = root.player_heir } # I care about my heir in the long-term, even if not immediately relevant. - add = 500 - } - if = { - limit = { - # If I killed the person I just fought in battle, I don't have to worry about them any more! - exists = scope:combat_loser - this = scope:combat_loser - } - add = 100 - } - if = { limit = { is_close_family_of = root} - add = 50 - } - if = { limit = { is_of_major_interest_to_root_trigger = yes } - add = 10 - } - if = { limit = { is_of_minor_interest_to_root_trigger = yes} - add = 5 - } - add = this.highest_held_title_tier -} - -slain_combatant_weights_for_root_nonparticipant = { - value = 0 - - if = { limit = { this = root.player_heir } - add = 1000 - } - if = { limit = { is_heir_of = root } - add = 500 - } - if = { limit = { is_of_major_interest_to_root_trigger = yes } - add = 100 - } - if = { limit = { is_consort_of = root } - add = 50 - } - if = { limit = { is_child_of = root } - add = 25 - } - if = { limit = { is_of_minor_interest_to_root_trigger = yes } - add = 10 - } - if = { limit = { is_courtier_of = root } - add = 1 - } - add = this.highest_held_title_tier -} \ No newline at end of file diff --git a/common/script_values/02_dlc_ep1_script_values.txt b/common/script_values/02_dlc_ep1_script_values.txt deleted file mode 100644 index 30c7a9de6e..0000000000 --- a/common/script_values/02_dlc_ep1_script_values.txt +++ /dev/null @@ -1,48 +0,0 @@ -## Referenced from code, in code value will be clamped between NRoyalCourt::COURT_GRANDEUR_MIN and NRoyalCourt::COURT_GRANDEUR_MAX -## root = character calculating for -#court_grandeur_minimum_expected_value = { -# value = 50 -#} -# -#ep1_court_grandeur_marriage_acceptance_value = 50 -# -## Referenced from code for the multiplier of above/below expected court grandeur level modifiers -#court_grandeur_level_difference_modifier_multiplier = { -# value = sub_realm_size -# multiply = 0.01 -#} - -6_levels_above_expected_level = { - value = court_grandeur_minimum_expected_level - add = 6 -} - -9_levels_above_expected_level = { - value = court_grandeur_minimum_expected_level - add = 9 -} - -1_levels_below_expected_level = { - value = court_grandeur_minimum_expected_level - subtract = 1 -} - -3_levels_below_expected_level = { - value = court_grandeur_minimum_expected_level - subtract = 3 -} - -5_levels_below_expected_level = { - value = court_grandeur_minimum_expected_level - subtract = 5 -} - -7_levels_below_expected_level = { - value = court_grandeur_minimum_expected_level - subtract = 7 -} - -9_levels_below_expected_level = { - value = court_grandeur_minimum_expected_level - subtract = 9 -} diff --git a/common/script_values/02_ruler_designer_values.txt b/common/script_values/02_ruler_designer_values.txt deleted file mode 100644 index 00953d9812..0000000000 --- a/common/script_values/02_ruler_designer_values.txt +++ /dev/null @@ -1,123 +0,0 @@ -ruler_designer_general_skill_value_cost = { - value = 0 - if = { - limit = { - scope:value > 0 - scope:value < 5 - } - add = 2 - multiply = scope:value - } - else_if = { - limit = { - scope:value > 4 - scope:value < 9 - } - add = 4 - multiply = { - value = scope:value - subtract = 4 - } - add = 8 - } - else_if = { - limit = { - scope:value > 8 - scope:value < 13 - } - add = 7 - multiply = { - value = scope:value - subtract = 8 - } - add = 24 - } - else_if = { - limit = { - scope:value > 12 - scope:value < 17 - } - add = 11 - multiply = { - value = scope:value - subtract = 12 - } - add = 52 - } - else_if = { - limit = { - scope:value > 16 - } - add = 17 - multiply = { - value = scope:value - subtract = 16 - } - add = 96 - } -} - -ruler_designer_diplomacy_skill_value_cost = { value = ruler_designer_general_skill_value_cost } -ruler_designer_martial_skill_value_cost = { value = ruler_designer_general_skill_value_cost } -ruler_designer_stewardship_skill_value_cost = { value = ruler_designer_general_skill_value_cost } -ruler_designer_intrigue_skill_value_cost = { value = ruler_designer_general_skill_value_cost } -ruler_designer_learning_skill_value_cost = { value = ruler_designer_general_skill_value_cost } - -ruler_designer_prowess_skill_value_cost = { - value = 0 - if = { - limit = { - scope:value > 0 - scope:value < 5 - } - add = 1 - multiply = scope:value - } - else_if = { - limit = { - scope:value > 4 - scope:value < 9 - } - add = 2 - multiply = { - value = scope:value - subtract = 4 - } - add = 4 - } - else_if = { - limit = { - scope:value > 8 - scope:value < 13 - } - add = 4 - multiply = { - value = scope:value - subtract = 8 - } - add = 12 - } - else_if = { - limit = { - scope:value > 12 - scope:value < 17 - } - add = 7 - multiply = { - value = scope:value - subtract = 12 - } - add = 28 - } - else_if = { - limit = { - scope:value > 16 - } - add = 11 - multiply = { - value = scope:value - subtract = 16 - } - add = 56 - } -} diff --git a/common/script_values/02_vassal_values.txt b/common/script_values/02_vassal_values.txt deleted file mode 100644 index 7505b6a86a..0000000000 --- a/common/script_values/02_vassal_values.txt +++ /dev/null @@ -1,279 +0,0 @@ -#Needs to be loaded after - -################ -# Stop War attacker chance calculation -################ - -stop_war_diplomacy_modifier = { - value = diplomacy - multiply = 5 -} - -stop_war_relation_penalties = { - # Opinion Penalties - if = { - limit = { - opinion = { - target = scope:actor - value < -49 - } - } - add = -50 - } - else_if = { - limit = { - opinion = { - target = scope:actor - value < 0 - } - } - add = -25 - } - - # Relationship Penalty - if = { - limit = { - has_relation_rival = scope:actor - } - add = -100 - } -} - -stop_war_relation_bonuses = { - # Opinion Bonuses - if = { - limit = { - opinion = { - target = scope:actor - value >= 50 - } - } - add = 50 - } - else_if = { - limit = { - opinion = { - target = scope:actor - value > 0 - } - } - add = 25 - } - - # Relationship Bonus - if = { - limit = { - has_relation_friend = scope:actor - } - add = 25 - } -} - -#Calculated in scope:recipient -stop_war_attacker_likelihood_calculation = { - if = { - # Cowed characters always accept. - limit = { - has_dread_level_towards = { - target = scope:actor - level = 2 - } - } - value = 100 - } - else = { - # Calculate chance of character accepting. - # Penalties are added first, which then get reduced by Intimidation (if applicable). - # Then bonuses are added, and finally circumstantial modifiers. - - ################### - # Negative Values # - ################### - subtract = stop_war_diplomacy_modifier - add = stop_war_relation_penalties - - # Trait Penalties - if = { - limit = { - has_trait = stubborn - } - add = -50 - } - if = { - limit = { - has_trait = ambitious - } - add = -30 - } - - ######################### - # Indimidation Modifier # - ######################### - if = { - limit = { - has_dread_level_towards = { - target = scope:actor - level = 1 - } - } - multiply = 0.5 # Reduces all current penalties by 50% - } - - ################### - # Positive Values # - ################### - - # Liege's Diplomacy - add = scope:actor.stop_war_diplomacy_modifier - add = stop_war_relation_bonuses - - # Traits - if = { - limit = { - has_trait = fickle - } - add = 30 - } - - ####################### - # Other Circumstances # - ####################### - - #Warscore - if = { - limit = { - exists = scope:target - } - subtract = scope:target.attacker_war_score - } - - #TODO: Strong claim/Weak claim difference - - #TODO: Laws - - min = 5 - max = 95 - } -} - -stop_war_defender_likelihood_calculation = { - if = { - # Cowed characters always accept. - limit = { - has_dread_level_towards = { - target = scope:actor - level = 2 - } - } - value = 100 - } - else_if = { - #If it's a war over the defender's last county, they won't say yes. - if = { - limit = { - exists = scope:target - any_held_title = { - count = 1 - tier = tier_county - always = yes - save_temporary_scope_as = last_county_title - } - scope:target.casus_belli = { - any_target_title = { - this = scope:last_county_title - } - } - } - value = 0 - } - } - else = { - # Calculate chance of character accepting. - # Penalties are added first, which then get reduced by Intimidation (if applicable). - # Then bonuses are added, and finally circumstantial modifiers. - - ################### - # Negative Values # - ################### - subtract = stop_war_diplomacy_modifier - add = stop_war_relation_penalties - - # Traits - if = { - limit = { - has_trait = arrogant - } - add = -50 - } - if = { - limit = { - has_trait = ambitious - } - add = -30 - } - if = { - limit = { - has_trait = greedy - } - add = -20 - } - - ######################### - # Intimidation Modifier # - ######################### - if = { - limit = { - has_dread_level_towards = { - target = scope:actor - level = 1 - } - } - multiply = 0.75 # Reduces all current penalties by 25% (Intentionally less than the 50% reduction for attackers, because defenders have more to lose). - } - - ################### - # Positive Values # - ################### - - # Liege's Diplomacy - add = scope:actor.stop_war_diplomacy_modifier - add = stop_war_relation_bonuses - - # Traits - if = { - limit = { - has_trait = humble - } - add = 20 - } - - ####################### - # Other Circumstances # - ####################### - - #Warscore - if = { - limit = { - exists = scope:target - } - subtract = scope:target.defender_war_score - } - - #TODO: Strong claim/Weak claim difference - - #TODO: Laws - - min = 1 - max = 95 - } -} - -stop_war_attacker_bribe_size = { - value = medium_gold_value - multiply = 2 -} - -stop_war_defender_bribe_size = { - value = medium_gold_value - multiply = 4 -} \ No newline at end of file diff --git a/common/script_values/04_ep2_hunt_values.txt b/common/script_values/04_ep2_hunt_values.txt index 01a292dfaf..a88337de6b 100644 --- a/common/script_values/04_ep2_hunt_values.txt +++ b/common/script_values/04_ep2_hunt_values.txt @@ -748,7 +748,12 @@ hunt_province_reference_value = { } # BUILDINGS if = { # Hunting Grounds - limit = { has_building_or_higher = hunting_grounds_01 } + limit = { + #OR = { + has_building_or_higher = hunting_grounds_01 + #has_building_or_higher = rainbow_mountains_01 + #} + } add = hunt_hunting_grounds_success_value } if = { # Logging Camps diff --git a/common/script_values/04_ep2_tour_values.txt b/common/script_values/04_ep2_tour_values.txt deleted file mode 100644 index cd58ae7cfb..0000000000 --- a/common/script_values/04_ep2_tour_values.txt +++ /dev/null @@ -1,86 +0,0 @@ -tour_stop_value = { # the cost of adding a tour stop - value = medium_gold_value - if = { - limit = { exists = scope:province } - if = { - limit = { "scope:previous_province.squared_distance(scope:province)" <= squared_distance_small } - multiply = 0.25 - } - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_small - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_medium - } - multiply = 0.45 - } - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_medium - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_large - } - multiply = 0.65 - } - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_large - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_huge - } - multiply = 0.85 - } - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_huge - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_almost_massive - } - multiply = 1.05 - } - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_almost_massive - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_massive - } - multiply = 1.25 - } - #Klingenberg -> Jerusalem - if = { - limit = { - "scope:previous_province.squared_distance(scope:province)" > squared_distance_massive - "scope:previous_province.squared_distance(scope:province)" <= squared_distance_monstrous - } - multiply = 1.55 - } - #Klingenberg -> Kanchipuram - if = { - limit = { "scope:previous_province.squared_distance(scope:province)" > squared_distance_monstrous } - multiply = 2.05 - } - } - multiply = activity_cost_scale_by_era -} - - -welcome = 3 -neutral = 2 -suspicious = 1 - -tour_entourage_weight_value = { - value = 100 - add = standard_travel_entourage_additions - if = { - limit = { - OR = { - has_trait = gregarious - has_trait = lifestyle_reveler - has_trait = gluttonous - } - } - add = 10 - } - if = { - limit = { - is_close_family_of = scope:host - } - add = 20 - } -} - diff --git a/common/script_values/04_ep2_wedding_values.txt b/common/script_values/04_ep2_wedding_values.txt index 19ec0c20eb..ea23360bd3 100644 --- a/common/script_values/04_ep2_wedding_values.txt +++ b/common/script_values/04_ep2_wedding_values.txt @@ -311,42 +311,7 @@ } add = -100 } - # Leaving those for reference, but they are not needed, as we look for neighboring rulers in the Wedding Intent - #modifier = { #Distant Realm — No Connection - # desc = offer_vassalization_interaction_aibehavior_distantrealm_tt - # trigger = { - # root = { - # NOT = { - # character_is_realm_neighbor = scope:impress_check - # } - # } - # scope:impress_check.capital_province = { squared_distance = { target = root.capital_province value < 200000 } } - # } - # add = -250 - #} - #modifier = { #Remote Realm. - # desc = offer_vassalization_interaction_aibehavior_remoterealm_tt - # trigger = { - # root = { - # NOT = { - # character_is_realm_neighbor = scope:impress_check - # } - # } - # scope:impress_check.capital_province = { squared_distance = { target = root.capital_province value >= 200000 } } - # } - # add = -500 - #} - #TODO_CD how could this work? - #add = { - # value = 1 - # subtract = { - # value = scope:impress_check.max_military_strength # Intended for recipient to use max, to avoid having vassalizations become too easy for weakened realms - # divide = { value = root.current_military_strength min = 1 } - # } - # multiply = 20 - # ceiling = yes - #} if = { limit = { root = { @@ -759,39 +724,7 @@ } } } - #TODO_CD check if it works - #Compare Opinion modifier - Clans care more about opinion - #if = { - # limit = { - # root = { - # government_has_flag = government_is_clan - # } - # scope:impress_check = { - # government_has_flag = government_is_clan - # } - # } - # add = { - # value = { - # opinion_modifier = { - # who = scope:impress_check - # opinion_target = root - # multiplier = 0.7 - # } - # } - # } - #} - #else = { - # add = { - # value = { - # opinion_modifier = { - # who = scope:impress_check - # opinion_target = root - # multiplier = 0.35 - # } - # } - # } - #} - # DIPLOMATIC COURT GRANDEUR BONUS + if = { limit = { root = { diff --git a/common/script_values/10_health_values.txt b/common/script_values/10_health_values.txt index facfda719a..f6b663cb25 100644 --- a/common/script_values/10_health_values.txt +++ b/common/script_values/10_health_values.txt @@ -701,3 +701,10 @@ vigorous_sex_age_difference_value = { divide = racial_age_multiplier_value subtract = 25 } + +harm_event_random_list_low_odd_success_value = 40 +harm_event_random_list_low_odd_failure_value = 60 +harm_event_random_list_medium_odd_success_value = 60 +harm_event_random_list_medium_odd_failure_value = 40 +harm_event_random_list_high_odd_success_value = 70 +harm_event_random_list_high_odd_failure_value = 30 diff --git a/common/script_values/50_pilgrimage_values.txt b/common/script_values/50_pilgrimage_values.txt deleted file mode 100644 index 452a9e0ca1..0000000000 --- a/common/script_values/50_pilgrimage_values.txt +++ /dev/null @@ -1,283 +0,0 @@ -##################### -# PILGRIMAGE VALUES # -##################### - -# Reward values -short_pilgrimage_piety_gain = { - value = major_piety_gain - if = { - limit = { - exists = dynasty - dynasty = { - has_dynasty_perk = erudition_legacy_4 - } - } - multiply = 1.3 - } -} - -#Needs to be synced with the x_pilgrimage_piety_multiplier below to display the actual increase in % -medium_pilgrimage_piety_gain = { - value = major_piety_gain - multiply = 1.5 - if = { - limit = { - exists = dynasty - dynasty = { - has_dynasty_perk = erudition_legacy_4 - } - } - multiply = 1.3 - } -} - -medium_pilgrimage_piety_multiplier = { value = 50 } - -long_pilgrimage_piety_gain = { - value = major_piety_gain - multiply = 2.5 - if = { - limit = { - exists = dynasty - dynasty = { - has_dynasty_perk = erudition_legacy_4 - } - } - multiply = 1.3 - } -} - -long_pilgrimage_piety_multiplier = { value = 150 } - -very_long_pilgrimage_piety_gain = { - value = major_piety_gain - multiply = 3.5 - if = { - limit = { - exists = dynasty - dynasty = { - has_dynasty_perk = erudition_legacy_4 - } - } - multiply = 1.3 - } -} - -very_long_pilgrimage_piety_multiplier = { value = 250 } - -#This needs to be synced with cost/length multipliers in the Solo Pilgrimage phase cost in the activity_types\pilgrimage.txt file -pilgrimage_length_cost_tier_1 = { - value = scope:host.medium_gold_value - multiply = 0.2 -} - -#Praha -> Cologne -pilgrimage_length_cost_tier_2 = { - value = scope:host.medium_gold_value - multiply = 0.4 -} - -pilgrimage_length_cost_tier_3 = { - value = scope:host.medium_gold_value - multiply = 0.6 -} - -pilgrimage_length_cost_tier_4 = { - value = scope:host.medium_gold_value - multiply = 0.8 -} - -pilgrimage_length_cost_tier_5 = { - value = scope:host.medium_gold_value - multiply = 1 -} - -#Klingenberg -> Jerusalem -pilgrimage_length_cost_tier_6 = { - value = scope:host.medium_gold_value - multiply = 1.2 -} - -#Klingenberg -> Kanchipuram -pilgrimage_length_cost_tier_7 = { - value = scope:host.medium_gold_value - multiply = 1.5 -} - -pilgrimage_low_pious_multiplier = { value = 1.1 } -#Make sure the multiplier values sync up with the multiplier_tt values to display the Reward Tiers as percentages -pilgrimage_low_pious_multiplier_tt = { - value = pilgrimage_low_pious_multiplier - multiply = 100 - subtract = 100 -} -pilgrimage_mid_pious_multiplier = { value = 1.2 } -#Make sure the multiplier values sync up with the multiplier_tt values to display the Reward Tiers as percentages -pilgrimage_mid_pious_multiplier_tt = { - value = pilgrimage_mid_pious_multiplier - multiply = 100 - subtract = 100 -} -pilgrimage_high_pious_multiplier = { value = 1.3 } -#Make sure the multiplier values sync up with the multiplier_tt values to display the Reward Tiers as percentages -pilgrimage_high_pious_multiplier_tt = { - value = pilgrimage_high_pious_multiplier - multiply = 100 - subtract = 100 -} -pilgrimage_perfect_pious_multiplier = { value = 1.5 } -#Make sure the multiplier values sync up with the multiplier_tt values to display the Reward Tiers as percentages -pilgrimage_perfect_pious_multiplier_tt = { - value = pilgrimage_perfect_pious_multiplier - multiply = 100 - subtract = 100 -} - -pilgrimage_low_pious_trait_xp_value = { value = medium_trait_xp } -pilgrimage_mid_pious_trait_xp_value = { value = major_trait_xp } -pilgrimage_high_pious_trait_xp_value = { value = massive_trait_xp } -pilgrimage_perfect_pious_trait_xp_value = { - value = massive_trait_xp - multiply = 2 -} - -pilgrimage_low_worldly_acceptance_value = { value = 1 } -pilgrimage_mid_worldly_acceptance_value = { value = 3 } -pilgrimage_high_worldly_acceptance_value = { value = 5 } -pilgrimage_perfect_worldly_acceptance_value = { value = 7 } - - -# Distances to target holy site -long_pilgrimage_max_length = 5000000 # 5M Over this distance, it will be an exceptionally long pilgrimage -medium_pilgrimage_max_length = 1000000 # 1M, slightly larger than 1 'holy roman empire' away -short_pilgrimage_max_length = 100000 # 100K, slightly larger than 1 'ireland' away. - -hajj_cooldown_value = 1 - - -pilgrimage_entourage_pomp_appropriate_max_value = 5 -pilgrimage_entourage_pomp_ceremonial_max_value = 10 -pilgrimage_entourage_pomp_throng_max_value = 20 -# This one doesn't sync with anything, just presenting it here for consistency/ease of tweaking. -pilgrimage_entourage_pomp_humble_max_value = 7 - -pilgrimage_entourage_base_set_weighting_value = { - if = { - limit = { bannable_serving_diarch_trigger = no } - # We want to have bodyguards most of all. - if = { - limit = { has_court_position = bodyguard_court_position } - add = 1000 - } - # But we'll settle for knights. - else_if = { - limit = { - is_knight = yes - prowess >= high_skill_rating - } - # We keep the weight low, since you'll probably have a good few such knights and we don't want them hogging all the spots. - add = 5 - } - # Also maybe someone to just chat to. - ## Positive relations. - if = { - limit = { - has_any_good_relationship_with_character_trigger = { CHARACTER = scope:host } - } - # Same faith, standard weight. - if = { - limit = { faith = scope:host.faith } - add = 100 - } - # Other faith, _ehhhh_, they're for company but it's still a spiritual shindig. - else = { add = 10 } - } - ## Religious figures. - if = { - limit = { - save_temporary_scope_as = current_char - OR = { - liege ?= { cp:councillor_court_chaplain ?= scope:current_char } - AND = { - faith = scope:host.faith - has_trait = devoted - } - } - } - add = 300 - } - } - if = { - limit = { - bannable_serving_diarch_trigger = yes - } - add = -5000 - } -} - -pilgrimage_entourage_extras_set_weighting_value = { - # Same-faith only for all of these. - if = { - limit = { - faith = scope:host.faith - bannable_serving_diarch_trigger = no - } - # Assorted hangers-on. - ## Anyone with a court position. - if = { - limit = { has_any_court_position = yes } - add = 50 - } - ## Zealous courtiers & those with high learning. - if = { - limit = { - OR = { - has_trait = zealous - AND = { - learning >= very_high_skill_rating - NOT = { has_trait = cynical } - } - } - } - add = 25 - } - } - if = { - limit = { - bannable_serving_diarch_trigger = yes - } - add = -5000 - } -} - -pilgrimage_entourage_sodding_everyone_set_weighting_value = { - # Same-faith only for all of these. - if = { - limit = { - faith = scope:host.faith - is_designated_diarch = no - } - # Alright, now we're just grabbing everyone. - ## Plus landless councillors. - if = { - limit = { is_councillor = yes } - add = 100 - } - ## Anyone with a learning education. - if = { - limit = { has_trait = education_learning } - add = 25 - } - ## Finally, any adult courtier. - if = { - limit = { is_adult = yes } - add = 1 - } - } - if = { - limit = { - bannable_serving_diarch_trigger = yes - } - add = -5000 - } -} diff --git a/common/script_values/50_province_values.txt b/common/script_values/50_province_values.txt deleted file mode 100644 index fb5ae1682f..0000000000 --- a/common/script_values/50_province_values.txt +++ /dev/null @@ -1,3 +0,0 @@ -low_available_loot_value = 5 -medium_available_loot_value = 10 -high_available_loot_value = 15 \ No newline at end of file diff --git a/common/script_values/50_tribal_values.txt b/common/script_values/50_tribal_values.txt deleted file mode 100644 index 9a44966cb7..0000000000 --- a/common/script_values/50_tribal_values.txt +++ /dev/null @@ -1,10 +0,0 @@ -feudalize_tribal_holding_interaction_cost = { - value = 500 - if = { - limit = { - is_ai = yes - capital_province = { has_holding_type = tribal_holding } - } - add = -250 - } -} diff --git a/common/script_values/99_casus_belli_values..txt b/common/script_values/99_casus_belli_values..txt index b094197fbb..6f65a7cb42 100644 --- a/common/script_values/99_casus_belli_values..txt +++ b/common/script_values/99_casus_belli_values..txt @@ -54,6 +54,62 @@ common_cb_cost_multiplier_core = { desc = CB_TRIBAL_COST } } + + # Clan Unity modifiers + if = { + limit = { + scope:attacker = { + government_has_flag = government_is_clan + exists = scope:attacker.house + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_antagonistic_cb_cost + } + } + multiply = { + value = unity_antagonistic_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_competitive_cb_cost + } + } + multiply = { + value = unity_competitive_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_friendly_cb_cost + } + } + multiply = { + value = unity_friendly_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_harmonious_cb_cost + } + } + multiply = { + value = unity_harmonious_cb_cost_value + desc = CB_UNITY_COST + } + } + } + + # Special increase for Persia if Concession is reached if = { limit = { @@ -139,19 +195,6 @@ common_cb_piety_cost_multiplier_core = { desc = "CB_ATTACKER_VASSAL_CONTRACT" } } - # Ghazi reduction - if = { - limit = { - scope:attacker = { - is_independent_ruler = no - vassal_contract_has_flag = vassal_contract_cheaper_religious_war - } - } - multiply = { - value = ghazi_religious_war_cost_reduction - desc = "CB_ATTACKER_VASSAL_CONTRACT" - } - } # Someone in the target region sacrificed your HoF. if = { limit = { @@ -179,26 +222,7 @@ common_cb_piety_cost_multiplier_sans_struggles = { common_cb_piety_cost_multiplier = { value = common_cb_piety_cost_multiplier_core # Struggle Multipliers - #if = { - # limit = { - # scope:attacker = { - # OR = { - # any_character_struggle = { - # involvement = involved - # is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs } - # } - # any_character_struggle = { - # involvement = interloper - # is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs } - # } - # } - # } - # } - # multiply = { - # value = 0.5 - # desc = CB_STRUGGLE_PHASE_DISCOUNT - # } - #} + ## Generic modifiers. # Common multiplier multiply = common_cb_cost_multiplier_core @@ -218,6 +242,20 @@ holy_war_cb_piety_cost_multiplier = { desc = CB_REDUCED_HOLY_WAR_COST } } + + # Ghazi reduction + if = { + limit = { + scope:attacker = { + is_independent_ruler = no + vassal_contract_has_flag = vassal_contract_cheaper_religious_war + } + } + multiply = { + value = ghazi_religious_war_cost_reduction + desc = "CB_ATTACKER_VASSAL_CONTRACT" + } + } } # Base Costs diff --git a/common/script_values/99_chancellor_values.txt b/common/script_values/99_chancellor_values.txt deleted file mode 100644 index ebfcdce45f..0000000000 --- a/common/script_values/99_chancellor_values.txt +++ /dev/null @@ -1,528 +0,0 @@ - -################## -# Foreign Affairs -################## - -# Foreign Affairs opinion base modifier -chancellor_foreign_affairs_opinion_base = { - add = diplomacy - divide = 2 -} - -# Bonus to opinion from Adaptive Traditions -chancellor_foreign_affairs_opinion_max_perk_bonus_modifier = { - add = chancellor_foreign_affairs_opinion_base - multiply = { - add = adaptive_traditions_perk_impact_percent - divide = 100 - } -} - -#chancellor_foreign_affairs_opinion_max_perk_bonus_modifier = { -# value = 0 -# if = { -# limit = { -# scope:councillor_liege = { has_perk = adaptive_traditions_perk } -# } -# add = chancellor_foreign_affairs_opinion_base -# multiply = { -# add = adaptive_traditions_perk_impact_percent -# divide = 100 -# } -# } -#} - -# Bonus to opinion from Bureaucrats -chancellor_foreign_affairs_opinion_max_erudition_modifier = { - add = chancellor_foreign_affairs_opinion_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } -} - -# Bonus to opinion from Family Business -chancellor_foreign_affairs_opinion_max_family_business_modifier = { - add = chancellor_foreign_affairs_opinion_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } -} - -# Calculated max opinion -chancellor_foreign_affairs_opinion_max = { - add = chancellor_foreign_affairs_opinion_base - # Add bonus from Clerical Justification: - if = { - limit = { - scope:councillor_liege = { has_perk = adaptive_traditions_perk } - } - add = chancellor_foreign_affairs_opinion_max_perk_bonus_modifier - } - # Add bonus from Bureaucrats - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = chancellor_foreign_affairs_opinion_max_erudition_modifier - } - # Add bonus from Family Business - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = chancellor_foreign_affairs_opinion_max_family_business_modifier - } -} - -# Set to max for AI, or gradual scale for players -chancellor_foreign_affairs_realm_opinion_scale = { - add = 0 - if = { - limit = { - scope:councillor_liege = { - is_independent_ruler = no - is_ai = yes - } - } - add = chancellor_foreign_affairs_opinion_max - } - else_if = { - limit = { - scope:councillor_liege = { - is_independent_ruler = no - has_variable = chancellor_foreign_affairs_opinion_value - } - } - add = liege.var:chancellor_foreign_affairs_opinion_value - } -} - -chancellor_foreign_affairs_independent_opinion_scale = { - add = 0 - if = { - limit = { - scope:councillor_liege = { - is_ai = yes - is_independent_ruler = yes - } - } - add = chancellor_foreign_affairs_opinion_max - } - else_if = { - limit = { - scope:councillor_liege = { - is_independent_ruler = yes - has_variable = chancellor_foreign_affairs_opinion_value - } - } - add = liege.var:chancellor_foreign_affairs_opinion_value - } -} - -# Calculate monthly increase -chancellor_foreign_affairs_monthly_increase = { - add = chancellor_foreign_affairs_opinion_max - divide = 24 -} - -### Prestige gain - -# Base prestige gain scale -chancellor_foreign_affairs_prestige_gain_base = { - add = diplomacy - divide = 20 -} - -# Adaptive Traditions bonus -chancellor_foreign_affairs_prestige_gain_perk_bonus_scale = { - if = { - limit = { scope:councillor_liege = { has_perk = adaptive_traditions_perk } } - add = chancellor_foreign_affairs_prestige_gain_base - multiply = { - value = adaptive_traditions_perk_impact_percent - divide = 100 - } - } -} - -# Bureaucrats bonus -chancellor_foreign_affairs_prestige_gain_erudition_modifier = { - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = chancellor_foreign_affairs_prestige_gain_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } -} - -# Family Business bonus -chancellor_foreign_affairs_prestige_gain_family_business_modifier = { - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = chancellor_foreign_affairs_prestige_gain_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } -} - -# Final calculation (used for tooltips only) -chancellor_foreign_affairs_prestige_calculation = { - add = { - value = chancellor_foreign_affairs_prestige_gain_base - desc = "Base value" - } - add = { - value = chancellor_foreign_affairs_prestige_gain_perk_bonus_scale - desc = "Perk bonus" - } - add = { - value = chancellor_foreign_affairs_prestige_gain_erudition_modifier - desc = "Legacy bonus" - } - add = { - value = chancellor_foreign_affairs_prestige_gain_family_business_modifier - desc = FAMILY_BUSINESS_BONUS_VALUE - } -} - - - -#################### -# Domestic Affairs -#################### -chancellor_domestic_affairs_opinion_base = { - add = diplomacy - divide = 2 -} - -chancellor_domestic_affairs_opinion_chains_of_loyalty_bonus = { - add = chancellor_domestic_affairs_opinion_base - multiply = { - add = chains_of_loyalty_percentage - divide = 100 - } -} - -chancellor_domestic_affairs_opinion_erudition_bonus = { - add = chancellor_domestic_affairs_opinion_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } -} - -chancellor_domestic_affairs_opinion_family_business_bonus = { - add = chancellor_domestic_affairs_opinion_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } -} - -chancellor_domestic_affairs_opinion_max = { - add = chancellor_domestic_affairs_opinion_base - if = { - limit = { - scope:councillor_liege = { has_perk = chains_of_loyalty_perk } - } - add = chancellor_domestic_affairs_opinion_chains_of_loyalty_bonus - } - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = chancellor_domestic_affairs_opinion_erudition_bonus - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = chancellor_domestic_affairs_opinion_family_business_bonus - } -} - -chancellor_domestic_affairs_opinion_scale = { - value = 0 - if = { - limit = { - scope:councillor_liege = { - is_ai = yes - is_independent_ruler = yes - } - } - add = chancellor_domestic_affairs_opinion_max - } - else_if = { - limit = { - scope:councillor_liege = { has_variable = chancellor_domestic_affairs_opinion_value } - } - add = scope:councillor_liege.var:chancellor_domestic_affairs_opinion_value - } -} - -chancellor_domestic_affairs_monthly_increase = { - add = chancellor_domestic_affairs_opinion_max - divide = 24 -} - -chancellor_domestic_affairs_tyranny_base = { - add = diplomacy - #multiply = 2 - min = 1 -} - -chancellor_domestic_affairs_tyranny_chains_of_loyalty_bonus = { - value = 0 - if = { - limit = { - scope:councillor_liege = { has_perk = chains_of_loyalty_perk } - } - add = { - value = chancellor_domestic_affairs_tyranny_base - multiply = { - add = chains_of_loyalty_percentage - divide = 100 - } - } - } -} - -chancellor_domestic_affairs_tyranny_erudition_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = chancellor_domestic_affairs_tyranny_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } - } -} - -chancellor_domestic_affairs_tyranny_family_business_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = chancellor_domestic_affairs_tyranny_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } - } -} - -chancellor_domestic_affairs_tyranny_total = { - add = chancellor_domestic_affairs_tyranny_base - add = chancellor_domestic_affairs_tyranny_chains_of_loyalty_bonus - add = chancellor_domestic_affairs_tyranny_erudition_bonus - add = chancellor_domestic_affairs_tyranny_family_business_bonus -} - -##################### -# Integrate Title -##################### - -chancellor_integrate_title_current_progress = { - value = 0 - if = { - limit = { exists = scope:county } - add = scope:county.active_de_jure_drift_progress - } -} - -chancellor_integrate_title_progress_gain = { - add = diplomacy - multiply = 0.035 -} - -chancellor_integrate_title_erudition_bonus = { - add = chancellor_integrate_title_progress_gain - multiply = family_business_councillors_percentage - divide = 100 -} - -chancellor_integrate_title_family_business_bonus = { - add = chancellor_integrate_title_progress_gain - multiply = family_business_councillors_percentage - divide = 100 -} - - -# Relation impact -chancellor_integrate_title_monthly_increase_friend_bonus = { - value = chancellor_integrate_title_progress_gain - multiply = { - add = council_friend_impact_percentage - divide = 100 - } -} -chancellor_integrate_title_monthly_increase_best_friend_bonus = { - value = chancellor_integrate_title_progress_gain - multiply = { - add = council_best_friend_impact_percentage - divide = 100 - } -} -chancellor_integrate_title_monthly_increase_rival_bonus = { - value = chancellor_integrate_title_progress_gain - multiply = { - add = council_rival_impact_percentage - divide = 100 - } -} -chancellor_integrate_title_monthly_increase_nemesis_bonus = { - value = chancellor_integrate_title_progress_gain - multiply = { - add = council_nemesis_impact_percentage - divide = 100 - } -} - - -##################### -# Bestow Royal Favor -##################### - -chancellor_bestow_royal_favor_base = 5 - -chancellor_bestow_royal_favor_monthly_change = { - value = { - add = scope:councillor.diplomacy - } -} - -chancellor_bestow_royal_favor_progress_gain = { - add = diplomacy - multiply = 0.5 -} - -chancellor_bestow_royal_favor_opinion_increase_per_success = { - add = chancellor_bestow_royal_favor_opinion_increase_per_success_base - add = chancellor_bestow_royal_favor_opinion_increase_per_success_grandeur -} - -chancellor_bestow_royal_favor_opinion_increase_per_success_base = { - add = { - value = scope:councillor.diplomacy - multiply = 0.3 - min = 1 - max = 10 - ceiling = yes - } -} - -chancellor_bestow_royal_favor_opinion_increase_per_success_grandeur = { - add = { - value = scope:councillor_liege.court_grandeur_current - multiply = 0.05 - min = 1 - max = 10 - ceiling = yes - } -} - -# Base prestige gain scale -chancellor_bestow_royal_favor_prestige_gain_base = { - add = scope:councillor.diplomacy - divide = 5 - ceiling = yes - divide = 10 -} - -# Vassal's base prestige gain scale (static so we can add a character modifier) -chancellor_bestow_royal_favor_prestige_gain_base_vassal = { - add = 0.5 -} - -# Relation impact -chancellor_bestow_royal_favor_base_total = { - add = chancellor_bestow_royal_favor_base - add = chancellor_bestow_royal_favor_monthly_change -} - -chancellor_bestow_royal_favor_monthly_increase_friend_bonus = { - value = chancellor_bestow_royal_favor_base_total - multiply = { - add = council_friend_impact_percentage - divide = 100 - } -} -chancellor_bestow_royal_favor_monthly_increase_best_friend_bonus = { - value = chancellor_bestow_royal_favor_base_total - multiply = { - add = council_best_friend_impact_percentage - divide = 100 - } -} -chancellor_bestow_royal_favor_monthly_increase_rival_bonus = { - value = chancellor_bestow_royal_favor_base_total - multiply = { - add = council_rival_impact_percentage - divide = 100 - } -} -chancellor_bestow_royal_favor_monthly_increase_nemesis_bonus = { - value = chancellor_bestow_royal_favor_base_total - multiply = { - add = council_nemesis_impact_percentage - divide = 100 - } -} - - - - -### Learn on the Job modifier -chancellor_learn_on_the_job_scale = { - value = 0 - if = { - limit = { - exists = liege - liege = { has_perk = learn_on_the_job_perk } - } - add = diplomacy - multiply = { - add = learn_on_the_job_percentage - divide = 100 - } - floor = yes - min = 1 - } -} - -### Reliable House modifier -chancellor_reliable_house_scale = { - value = 0 - if = { - limit = { - exists = liege.dynasty - liege.dynasty = { has_dynasty_perk = fp2_coterie_legacy_2 } - house = liege.house - } - add = diplomacy - multiply = { - add = council_reliable_house_percentage - divide = 100 - } - floor = yes - min = 1 - } -} diff --git a/common/script_values/99_court_chaplain_values.txt b/common/script_values/99_court_chaplain_values.txt index 6dbba93e1b..3654365f1d 100644 --- a/common/script_values/99_court_chaplain_values.txt +++ b/common/script_values/99_court_chaplain_values.txt @@ -58,12 +58,28 @@ court_chaplain_religious_relations_family_business_bonus_modifier = { } } -# Total gain calculation (used for tooltip only) +court_chaplain_religious_relations_consulted_house_bonus_modifier = { + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + # Base value + add = court_chaplain_religious_relations_modifier + # Calculation of final value + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } + } +} + +# Total gain calculation court_chaplain_religious_relations_total_piety_gain = { add = court_chaplain_religious_relations_modifier add = court_chaplain_religious_relations_perk_bonus_modifier add = court_chaplain_religious_relations_erudition_legacy_5_bonus_modifier add = court_chaplain_religious_relations_family_business_bonus_modifier + add = court_chaplain_religious_relations_consulted_house_bonus_modifier } # Opinion: @@ -109,6 +125,14 @@ court_chaplain_religious_relations_opinion_max_family_business_modifier = { } } +court_chaplain_religious_relations_opinion_max_consulted_house_modifier = { + add = court_chaplain_religious_relations_opinion_base + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + # Calculate the full max value of the opinion gain court_chaplain_religious_relations_opinion_max = { add = court_chaplain_religious_relations_opinion_base @@ -132,6 +156,12 @@ court_chaplain_religious_relations_opinion_max = { } add = court_chaplain_religious_relations_opinion_max_family_business_modifier } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = court_chaplain_religious_relations_opinion_max_consulted_house_modifier + } } court_chaplain_religious_relations_no_hof_opinion_max = { @@ -139,6 +169,26 @@ court_chaplain_religious_relations_no_hof_opinion_max = { divide = court_chaplain_religious_relations_no_hof_balance } +# What % of total religious relations opinion gain have we achieved? +court_chaplain_religious_relations_opinion_scale = { + value = 0 + if = { + limit = { + scope:councillor_liege = { + is_ai = yes + is_independent_ruler = yes + } + } + add = court_chaplain_religious_relations_opinion_max + } + else_if = { + limit = { + scope:councillor_liege = { has_variable = court_chaplain_religious_relations_opinion_value } + } + add = scope:councillor_liege.var:court_chaplain_religious_relations_opinion_value + } +} + # Value used to fetch the correct "current Opinion bonus" value for player or AI # Bypasses monthly calculation for AI (it's not worth calculating it for them) court_chaplain_religious_relations_opinion_modifier = { @@ -232,6 +282,15 @@ court_chaplain_fabricate_claim_family_business_bonus = { } } +# FP3 Consulted House +court_chaplain_fabricate_claim_consulted_house_bonus = { + add = court_chaplain_fabricate_claim_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + # Bonus from Land Grants innovation court_chaplain_fabricate_claim_innovation_bonus_land_grants = { value = 0 @@ -407,6 +466,15 @@ court_chaplain_conversion_contextual_bonuses = { desc = FAMILY_BUSINESS_BONUS_VALUE } } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = scope:councillor.court_chaplain_conversion_monthly_increase_consulted_house_bonus + desc = CONSULTED_HOUSE_BONUS_VALUE + } + } # Relation Bonuses/Penalties if = { # Friend limit = { @@ -597,6 +665,26 @@ court_chaplain_conversion_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_GHW_TENET_NO_HOF_MODIFIER } } + ### Cthonic Redoubts + if = { + limit = { + exists = scope:county + scope:councillor.faith = { has_doctrine_parameter = easier_to_convert_faith_in_mountains } + scope:county = { + # We check any province and not just title province, to be generous. + any_county_province = { + OR = { + terrain = mountains + terrain = desert_mountains + } + } + } + } + add = { + value = scope:councillor.easier_to_convert_faith_in_mountains_bonus + desc = COURT_CHAPLAIN_CONVERSION_EASIER_TO_CONVERT_FAITH_IN_MOUNTAINS_BONUS_MODIFIER + } + } #Maluses for syncretic faiths. # Warcraft - Removed unused syncretic vanilla faith maluses @@ -702,33 +790,6 @@ court_chaplain_conversion_contextual_bonuses = { # Struggle Bonuses/Penalties ## Boost conversion in some phases. - #if = { - # limit = { - # exists = scope:county - # scope:county = { - # any_county_struggle = { has_struggle_phase_parameter = county_faith_conversion_in_region_proceeds_faster } - # } - # } - # add = { - # value = scope:councillor.boost_county_conversion_phase_bonus_value - # desc = CHAPLAIN_CONVERT_COUNTY_STRUGGLE_BONUS - # } - #} - ### Reduce it in others. - #if = { - # limit = { - # exists = scope:county - # scope:county = { - # any_county_struggle = { - # has_struggle_phase_parameter = county_faith_conversion_in_region_proceeds_slower - # } - # } - # } - # add = { - # value = scope:councillor.boost_county_conversion_phase_malus_value - # desc = CHAPLAIN_CONVERT_COUNTY_STRUGGLE_PENALTY - # } - #} #Other if = { @@ -834,28 +895,26 @@ court_chaplain_conversion_monthly_increase_perk_bonus = { # Bureaucrats bonus court_chaplain_conversion_monthly_increase_dynasty_perk_bonus = { - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = court_chaplain_conversion_base_total - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } + add = court_chaplain_conversion_base_total + multiply = { + add = erudition_legacy_5_percentage + divide = 100 } } court_chaplain_conversion_monthly_increase_family_business_bonus = { - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = court_chaplain_conversion_base_total - multiply = { - add = family_business_councillors_percentage - divide = 100 - } + add = court_chaplain_conversion_base_total + multiply = { + add = family_business_councillors_percentage + divide = 100 + } +} + +court_chaplain_conversion_monthly_increase_consulted_house_bonus = { + add = court_chaplain_conversion_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 } } @@ -1183,7 +1242,7 @@ easier_to_convert_faith_in_mountains_bonus = { multiply = easier_to_convert_faith_in_mountains_bonus_root_value } -harder_to_convert_faith_away_in_mountains_malus_root_value = -1 +harder_to_convert_faith_away_in_mountains_malus_root_value = -0.75 harder_to_convert_faith_away_in_mountains_malus_loc_control = { value = harder_to_convert_faith_away_in_mountains_malus_root_value @@ -1268,32 +1327,6 @@ conversion_learning_theology = { } } - -# Total value calculation -court_chaplain_conversion_total_value = { - add = court_chaplain_conversion_base_total - if = { - limit = { - scope:councillor_liege = { has_perk = zealous_proselytizer_perk } - } - add = court_chaplain_conversion_monthly_increase_perk_bonus - } - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = court_chaplain_conversion_monthly_increase_dynasty_perk_bonus - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = court_chaplain_conversion_monthly_increase_family_business_bonus - } -} - - - ##### Learn on the Job Skill bonus for Liege court_chaplain_learn_on_the_job_scale = { value = 0 @@ -1329,3 +1362,6 @@ court_chaplain_reliable_house_scale = { min = 1 } } + + +### FP3 Struggle Ending diff --git a/common/script_values/99_debug_values.txt b/common/script_values/99_debug_values.txt deleted file mode 100644 index 5f0021f9ca..0000000000 --- a/common/script_values/99_debug_values.txt +++ /dev/null @@ -1,74 +0,0 @@ - -debug_current_dread = { - add = dread -} - -debug_number_of_unintimidated_vassals = { - every_vassal = { - limit = { - has_dread_level_towards = { - target = root - level = 0 - } - } - add = 1 - } -} -debug_number_of_intimidated_vassals = { - every_vassal = { - limit = { - has_dread_level_towards = { - target = root - level = 1 - } - } - add = 1 - } -} -debug_number_of_cowed_vassals = { - every_vassal = { - limit = { - has_dread_level_towards = { - target = root - level = 2 - } - } - add = 1 - } -} - -debug_percentage_of_dread_affected_vassals = { - every_vassal = { - limit = { - has_dread_level_towards = { - target = root - level > 0 - } - } - add = 1 - } - divide = { - every_vassal = { - add = 1 - } - } - multiply = 100 -} - -debug_percentage_of_cowed_vassals = { - every_vassal = { - limit = { - has_dread_level_towards = { - target = root - level = 2 - } - } - add = 1 - } - divide = { - every_vassal = { - add = 1 - } - } - multiply = 100 -} diff --git a/common/script_values/99_marshal_values.txt b/common/script_values/99_marshal_values.txt deleted file mode 100644 index 558d467f0b..0000000000 --- a/common/script_values/99_marshal_values.txt +++ /dev/null @@ -1,468 +0,0 @@ - -###################### -# Organize Levies -###################### - -### Improving Levies -# Base value -marshal_organize_levies_base = { - add = 1 -} - -marshal_organize_levies_skill_base = { - add = martial - add = martial -} - -# Erudition bonus -marshal_organize_levies_erudition_bonus = { - add = { - value = marshal_organize_levies_base - add = marshal_organize_levies_skill_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } -} - -# Tradition: Family business -marshal_organize_levies_family_business_bonus = { - add = { - value = marshal_organize_levies_base - add = marshal_organize_levies_skill_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } -} - -# Final value -marshal_organize_levies_modifier_value = { - add = marshal_organize_levies_base - add = marshal_organize_levies_skill_base - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = marshal_organize_levies_erudition_bonus - } - if = { - limit = { - scope:councillor = { - culture = scope:councillor_liege.culture - culture = { has_cultural_parameter = close_family_better_councillors } - is_close_family_of = scope:councillor_liege - } - } - add = marshal_organize_levies_family_business_bonus - } -} - -### Army maintenance -# Base value -marshal_organize_levies_maintenance_base = { - add = 1 -} - -marshal_organize_levies_maintenance_skill_base = { - add = martial -} - -# Erudition bonus -marshal_organize_levies_maintenance_erudition_bonus = { - add = { - value = marshal_organize_levies_maintenance_base - add = marshal_organize_levies_maintenance_skill_base - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } -} - -# Tradition: Family business -marshal_organize_levies_maintenance_family_business_bonus = { - add = { - value = marshal_organize_levies_maintenance_base - add = marshal_organize_levies_maintenance_skill_base - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } -} - -# Final value -marshal_organize_levies_maintenance_total = { - add = marshal_organize_levies_maintenance_base - add = marshal_organize_levies_maintenance_skill_base - if = { - limit = { - scope:councillor = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - } - add = marshal_organize_levies_maintenance_erudition_bonus - } - if = { - limit = { - scope:councillor = { - culture = scope:councillor_liege.culture - culture = { has_cultural_parameter = close_family_better_councillors } - is_close_family_of = scope:councillor_liege - } - } - add = marshal_organize_levies_maintenance_family_business_bonus - } -} - -######################## -# Train Commanders -######################## - -### Overtime Boost MaA -# Base modifier -marshal_maa_overtime_boost_base = { - add = martial -} - -# Max value -marshal_maa_overtime_boost_max = { - add = martial -} - -# Monthly Increase -marshal_maa_overtime_boost_monthly_increase = { - add = 1 -} - -# Current -marshal_maa_overtime_boost_scale = { - add = 0 - if = { - limit = { - has_variable = marshal_overtime_boost - } - add = var:marshal_overtime_boost - } -} - -## Boost Knights -marshal_knights_overtime_boost_scale = { - add = 0 - if = { - limit = { - has_variable = marshal_overtime_boost - } - add = var:marshal_overtime_boost - } -} - - - -### Improve commanders -# Base value -marshal_train_commanders_monthly_chance_value_base = { - add = martial - divide = 2 -} -# Erudition value -marshal_train_commanders_monthly_chance_erudition_bonus = { - add = marshal_train_commanders_monthly_chance_value_base - multiply = erudition_legacy_5_percentage - divide = 100 -} - -# Family Business -marshal_train_commanders_monthly_chance_family_business_bonus = { - add = marshal_train_commanders_monthly_chance_value_base - multiply = family_business_councillors_percentage - divide = 100 -} - -# Total value -marshal_train_commanders_monthly_chance_value = { - value = marshal_train_commanders_monthly_chance_value_base - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = marshal_train_commanders_monthly_chance_erudition_bonus - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = marshal_train_commanders_monthly_chance_family_business_bonus - } -} - -task_supress_crime_progress = { - add = martial - divide = 10 -} - - -################################ -# Increase Control -################################ -marshal_increase_control_full_progress = { - if = { - limit = { exists = scope:county } - add = scope:county.county_control_rate - } -} - -marshal_increase_control_current_progress = { - value = 0 - if = { - limit = { exists = scope:county } - add = scope:county.county_control - } -} - -marshal_increase_control_base = 0.2 - -marshal_increase_county_control_monthly_change = { - add = martial - divide = 30 -} - -marshal_increase_control_base_total = { - add = marshal_increase_control_base - add = marshal_increase_county_control_monthly_change -} - -marshal_increase_control_monthly_increase_friend_bonus = { - if = { - limit = { - scope:councillor_liege = { - has_relation_friend = scope:councillor - NOT = { has_relation_best_friend = scope:councillor } - } - } - add = { - value = marshal_increase_control_base_total - multiply = { - value = council_friend_impact_percentage - divide = 100 - } - } - } -} -marshal_increase_control_monthly_increase_best_friend_bonus = { - if = { - limit = { - scope:councillor_liege = { - has_relation_best_friend = scope:councillor - } - } - add = { - value = marshal_increase_control_base_total - multiply = { - value = council_best_friend_impact_percentage - divide = 100 - } - } - } -} -marshal_increase_control_monthly_increase_rival_bonus = { - if = { - limit = { - scope:councillor_liege = { - has_relation_rival = scope:councillor - NOT = { has_relation_nemesis = scope:councillor } - } - } - add = { - value = marshal_increase_control_base_total - multiply = { - value = council_rival_impact_percentage - divide = 100 - } - } - } -} -marshal_increase_control_monthly_increase_nemesis_bonus = { - if = { - limit = { - scope:councillor_liege = { - has_relation_nemesis = scope:councillor - } - } - add = { - value = marshal_increase_control_base_total - multiply = { - value = council_nemesis_impact_percentage - divide = 100 - } - } - } -} - -marshal_increase_county_control_perk_bonus_monthly_change = { - value = 0 - if = { - limit = { - exists = liege - liege = { has_perk = strict_organization_perk } - } - add = marshal_increase_control_base_total - multiply = { - add = strict_organization_percentage - divide = 100 - } - } -} - -marshal_increase_county_control_erudition_bonus_monthly_change = { - value = 0 - add = marshal_increase_control_base_total - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } -} - -marshal_increase_county_control_family_business_bonus_monthly_change = { - value = 0 - add = marshal_increase_control_base_total - multiply = { - add = family_business_councillors_percentage - divide = 100 - } -} - -marshal_increase_county_control_experience_bonus_monthly_change = { - value = 0 - add = marshal_increase_control_base_total - multiply = { - add = 10 - divide = 100 - } -} - -marshal_increase_control_total = { - value = marshal_increase_control_base - add = marshal_increase_county_control_monthly_change - add = marshal_increase_control_monthly_increase_friend_bonus - add = marshal_increase_control_monthly_increase_best_friend_bonus - add = marshal_increase_control_monthly_increase_rival_bonus - add = marshal_increase_control_monthly_increase_nemesis_bonus - add = marshal_increase_county_control_perk_bonus_monthly_change - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = marshal_increase_county_control_erudition_bonus_monthly_change - } - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = marshal_increase_county_control_family_business_bonus_monthly_change - } - if = { - limit = { - has_character_modifier = event_bonus_to_county_control - } - add = marshal_increase_county_control_experience_bonus_monthly_change - } -} - -marshal_councillor_county_corruption_value = { - add = martial - divide = 5 -} - -marshal_county_county_corruption_value = { - if = { - limit = { exists = scope:county } - add = scope:county.county_control - divide = 5 - } -} - -marshal_remove_county_corruption_chance = { - add = martial - if = { - limit = { exists = scope:county } - add = { - value = scope:county.county_control - } - } - divide = 5 -} - -marshal_learn_on_the_job_scale = { - value = 0 - if = { - limit = { - liege = { has_perk = learn_on_the_job_perk } - } - add = martial - multiply = { - add = learn_on_the_job_percentage - divide = 100 - } - floor = yes - min = 1 - } -} - -marshal_scheme_overtime_boost_scale = { - add = 0 - if = { - limit = { - has_variable = marshal_overtime_decrease - } - subtract = var:marshal_overtime_decrease - } -} - -# Monthly Increase -marshal_knight_overtime_boost_monthly_increase = { - add = martial - multiply = 0.1 - floor = yes - min = 0.1 -} - -marshal_scheme_overtime_boost_monthly_increase = { - subtract = martial - multiply = 0.05 -} - -# Max value -marshal_knight_overtime_boost_max = { - add = martial - multiply = 2 -} - -marshal_scheme_overtime_boost_max = { - subtract = martial - multiply = 2 - floor = yes - min = -40 -} - -### Reliable House modifier -marshal_reliable_house_scale = { - value = 0 - if = { - limit = { - exists = liege.dynasty - liege.dynasty = { has_dynasty_perk = fp2_coterie_legacy_2 } - house = liege.house - } - add = martial - multiply = { - add = council_reliable_house_percentage - divide = 100 - } - floor = yes - min = 1 - } -} diff --git a/common/script_values/99_spouse_councillor_values.txt b/common/script_values/99_spouse_councillor_values.txt deleted file mode 100644 index 5c4e5eacf3..0000000000 --- a/common/script_values/99_spouse_councillor_values.txt +++ /dev/null @@ -1,389 +0,0 @@ - -spouse_skill_rating_1 = { - add = mediocre_skill_rating -} -spouse_skill_rating_2 = { - add = medium_skill_rating -} -spouse_skill_rating_3 = { - add = decent_skill_rating -} -spouse_skill_rating_4 = { - add = very_high_skill_rating -} - -inverted_spouse_skill_rating_1 = { - subtract = spouse_skill_rating_1 -} -inverted_spouse_skill_rating_2 = { - subtract = spouse_skill_rating_2 -} -inverted_spouse_skill_rating_3 = { - subtract = spouse_skill_rating_3 -} -inverted_spouse_skill_rating_4 = { - subtract = spouse_skill_rating_4 -} - - -spouse_default_task_diplomacy_scale = { - add = diplomacy - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 5 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_default_task_martial_scale = { - add = martial - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 5 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_default_task_intrigue_scale = { - add = intrigue - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 5 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_default_task_learning_scale = { - add = learning - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 5 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_default_task_stewardship_scale = { - add = stewardship - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 5 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_task_court_politics_scale = { - add = diplomacy - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 2 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_task_chivalry_scale = { - add = martial - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 2 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_task_court_intrigue_scale = { - add = intrigue - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 2 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_task_manage_domain_scale = { - add = stewardship - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 2 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -spouse_task_patronage_scale = { - add = learning - if = { - limit = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - } - multiply = 1.25 - } - if = { - limit = { - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - multiply = 1.25 - } - divide = 2 - if = { - limit = { - OR = { - scope:councillor_liege = { has_perk = loyalty_and_respect_perk } - scope:councillor_liege.culture = { has_cultural_parameter = better_spouses } - } - } - ceiling = yes - } - else = { - floor = yes - } - min = 1 -} - -#Spouse rank up values -councillor_spouse_lifestyle_rank_up_threshold = 4 #Number of half-years the character has to have been performing a task in order to rank up in the relevant skill -councillor_spouse_lifestyle_progress_factor = 0.75 #The factor by which the chance of ranking up each month is multiplied. At 1, one point of progress and one point of skill increase the chance (every six months) by 1% - -councillor_spouse_lifestyle_progress_increase = 1 #How much progress is added every time - - -#FROM EVENTS -opinion_boost_neighboring_ruler_value = { - add = 20 - if = { - limit = { - tier_difference = { - target = root - value = -1 - } - } - multiply = 2 - } - else_if = { - limit = { - tier_difference = { - target = root - value = -2 - } - } - multiply = 2.5 - } -} - -spouse_martial_event_troop_size = { - add = martial - add = prowess - if = { - limit = { - has_trait = strategist - } - multiply = 1.5 - } - if = { - limit = { - has_trait = overseer - } - multiply = 1.5 - } - if = { - limit = { - has_trait = gallant - } - multiply = 1.5 - } - - multiply = 10 - - round = yes -} - -councillor_spouse_martial_1005_a_value = { - add = scope:councillor.martial - divide = 2 -} diff --git a/common/script_values/99_spymaster_values.txt b/common/script_values/99_spymaster_values.txt deleted file mode 100644 index 21a31fd9f3..0000000000 --- a/common/script_values/99_spymaster_values.txt +++ /dev/null @@ -1,499 +0,0 @@ - -# Values used by the Spymaster tasks and ongoing Scheme Discovery - - -spymaster_scheme_discovery_base_chance = { - value = 1 - add = { - add = intrigue - divide = 3 - } -} - -spymaster_scheme_discovery_chance = { - add = spymaster_scheme_discovery_base_chance - if = { # Percentage bonus applied to the base chance - limit = { - is_performing_council_task = task_disrupt_schemes - } - add = { - value = spymaster_scheme_discovery_base_chance - multiply = { - value = spymaster_disrupt_schemes_total_modifier - divide = 100 - } - } - } - multiply = 0.5 -} - -spymaster_agent_discovery_base_chance = { - value = 1 - add = { - add = intrigue - divide = 3 - } -} - -spymaster_agent_discovery_chance = { - add = spymaster_agent_discovery_base_chance - if = { - limit = { - is_performing_council_task = task_disrupt_schemes - } - add = { - value = spymaster_agent_discovery_base_chance - multiply = { - value = spymaster_find_secrets_disrupt_schemes_modifier - divide = 100 - } - } - } - multiply = 0.5 -} - -spymaster_owner_discovery_base_chance = { - value = 1 - add = { - add = intrigue - divide = 4 - } -} - -spymaster_owner_discovery_chance = { - add = spymaster_owner_discovery_base_chance - if = { - limit = { - is_performing_council_task = task_disrupt_schemes - } - add = { - value = spymaster_owner_discovery_base_chance - multiply = { - value = spymaster_find_secrets_disrupt_schemes_modifier - divide = 100 - } - } - } - multiply = 0.5 -} - - - -spymaster_learn_on_the_job_scale = { - value = 0 - if = { - limit = { - exists = liege - liege = { has_perk = learn_on_the_job_perk } - } - add = intrigue - multiply = { - add = learn_on_the_job_percentage - divide = 100 - } - floor = yes - min = 1 - } -} - -### Reliable House modifier -spymaster_reliable_house_scale = { - value = 0 - if = { - limit = { - exists = liege.dynasty - liege.dynasty = { has_dynasty_perk = fp2_coterie_legacy_2 } - house = liege.house - } - add = intrigue - multiply = { - add = council_reliable_house_percentage - divide = 100 - } - floor = yes - min = 1 - } -} - - -######################################### -######## DISRUPT SCHEMES TASK ########### -######################################### - -spymaster_disrupt_schemes_hostile_scheme_resistance_base = { - add = 5 -} - -spymaster_disrupt_schemes_modifier_base_scale = { - add = intrigue - divide = 2 -} - -spymaster_disrupt_schemes_court_of_shadows_modifier_scale = { - value = 0 - if = { - limit = { - exists = liege - liege = { has_perk = court_of_shadows_perk } - } - add = { - value = spymaster_disrupt_schemes_hostile_scheme_resistance_base - add = spymaster_disrupt_schemes_modifier_base_scale - multiply = { - add = court_of_shadows_perk_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_erudition_legacy_5_modifier_scale = { - value = 0 - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = spymaster_disrupt_schemes_hostile_scheme_resistance_base - add = spymaster_disrupt_schemes_modifier_base_scale - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_family_business_modifier_scale = { - value = 0 - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = spymaster_disrupt_schemes_hostile_scheme_resistance_base - add = spymaster_disrupt_schemes_modifier_base_scale - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_modifier_final_scale = { - add = spymaster_disrupt_schemes_hostile_scheme_resistance_base - add = spymaster_disrupt_schemes_modifier_base_scale - add = spymaster_disrupt_schemes_court_of_shadows_modifier_scale - add = spymaster_disrupt_schemes_erudition_legacy_5_modifier_scale - add = spymaster_disrupt_schemes_family_business_modifier_scale -} - -spymaster_disrupt_schemes_scheme_discovery_base = { - add = 10 -} - -spymaster_disrupt_schemes_scheme_discovery_modifier = { - add = intrigue -} - -spymaster_find_secrets_disrupt_schemes_modifier = { - add = intrigue -} - -spymaster_find_secrets_disrupt_schemes_modifier_factor = { - value = 100 - subtract = { - value = spymaster_find_secrets_disrupt_schemes_modifier - multiply = 3 - } - min = 10 - divide = 100 -} - -spymaster_disrupt_schemes_court_of_shadows_scheme_discovery_modifier_scale = { - value = 0 - if = { - limit = { - exists = liege - liege = { has_perk = court_of_shadows_perk } - } - add = { - value = spymaster_disrupt_schemes_scheme_discovery_base - add = spymaster_disrupt_schemes_scheme_discovery_modifier - multiply = { - add = court_of_shadows_perk_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_erudition_legacy_5_discovery_modifier_scale = { - value = 0 - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = spymaster_disrupt_schemes_scheme_discovery_base - add = spymaster_disrupt_schemes_scheme_discovery_modifier - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_family_business_discovery_modifier_scale = { - value = 0 - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = spymaster_disrupt_schemes_scheme_discovery_base - add = spymaster_disrupt_schemes_scheme_discovery_modifier - multiply = { - add = family_business_councillors_percentage - divide = 100 - } - } - } -} - -spymaster_disrupt_schemes_total_modifier = { - add = spymaster_disrupt_schemes_scheme_discovery_base - add = spymaster_disrupt_schemes_scheme_discovery_modifier - add = spymaster_disrupt_schemes_court_of_shadows_scheme_discovery_modifier_scale - add = spymaster_disrupt_schemes_erudition_legacy_5_discovery_modifier_scale - add = spymaster_disrupt_schemes_family_business_discovery_modifier_scale -} - - -######################################### -######## ESPIONAGE SCHEME TASK ########## -######################################### - -spymaster_espionage_scheme_power_base = { - add = 10 -} - -spymaster_espionage_modifier_base_scale = { - add = intrigue -} - -spymaster_espionage_legacy_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = spymaster_espionage_scheme_power_base - add = spymaster_espionage_modifier_base_scale - multiply = { - value = erudition_legacy_5_percentage - divide = 100 - } - } - } -} - -spymaster_espionage_family_business_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = spymaster_espionage_scheme_power_base - add = spymaster_espionage_modifier_base_scale - multiply = { - value = family_business_councillors_percentage - divide = 100 - } - } - } -} - -spymaster_espionage_court_type_bonus = { - value = 0 - if = { - limit = { - has_dlc_feature = royal_court - scope:councillor_liege = { - has_royal_court = yes - has_court_type = court_intrigue - court_grandeur_current_level >= 4 - } - } - add = { - value = spymaster_espionage_scheme_power_base - add = spymaster_espionage_modifier_base_scale - multiply = { - value = court_intrigue_spymaster_task_bonus - divide = 100 - } - } - } -} - -spymaster_espionage_modifier_final_scale = { - add = spymaster_espionage_scheme_power_base - add = spymaster_espionage_modifier_base_scale - add = spymaster_espionage_legacy_bonus - add = spymaster_espionage_family_business_bonus - add = spymaster_espionage_court_type_bonus -} - -spymaster_espionage_success_chance_base = { - add = 5 -} - -spymaster_espionage_success_chance_modifier_base_scale = { - add = { - add = intrigue - multiply = 0.5 - } -} - -spymaster_espionage_success_chance_legacy_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - add = { - value = spymaster_espionage_success_chance_base - add = spymaster_espionage_success_chance_modifier_base_scale - multiply = { - value = erudition_legacy_5_percentage - divide = 100 - } - } - } -} - -spymaster_espionage_success_chance_family_business_bonus = { - value = 0 - if = { - limit = { - councillor_liege_has_family_business_bonus = yes - } - add = { - value = spymaster_espionage_success_chance_base - add = spymaster_espionage_success_chance_modifier_base_scale - multiply = { - value = family_business_councillors_percentage - divide = 100 - } - } - } -} - -spymaster_espionage_success_chance_court_type_bonus = { - value = 0 - if = { - limit = { - has_dlc_feature = royal_court - scope:councillor_liege = { - has_royal_court = yes - has_court_type = court_intrigue - court_grandeur_current_level >= 4 - } - } - add = { - value = spymaster_espionage_success_chance_base - add = spymaster_espionage_success_chance_modifier_base_scale - multiply = { - value = court_intrigue_spymaster_task_bonus - divide = 100 - } - } - } -} - -spymaster_espionage_success_chance_total = { - add = spymaster_espionage_success_chance_base - add = spymaster_espionage_success_chance_modifier_base_scale - add = spymaster_espionage_success_chance_legacy_bonus - add = spymaster_espionage_success_chance_family_business_bonus - add = spymaster_espionage_success_chance_court_type_bonus -} - -######################################### -########### FIND SECRET TASK ############ -######################################### - -spymaster_find_secrets_secret_discovery_chance = { - add = scope:councillor.intrigue - multiply = 5 - max = 95 -} - -spymaster_find_secrets_base = 5 - -spymaster_find_secrets_monthly_increase = { - add = intrigue -} - -spymaster_find_secrets_base_total = { - add = spymaster_find_secrets_base - add = spymaster_find_secrets_monthly_increase -} - - - -# Relation impact -spymaster_find_secrets_monthly_increase_friend_bonus = { - value = spymaster_find_secrets_base_total - multiply = { - add = council_friend_impact_percentage - divide = 100 - } -} -spymaster_find_secrets_monthly_increase_best_friend_bonus = { - value = spymaster_find_secrets_base_total - multiply = { - add = council_best_friend_impact_percentage - divide = 100 - } -} -spymaster_find_secrets_monthly_increase_rival_bonus = { - value = spymaster_find_secrets_base_total - multiply = { - add = council_rival_impact_percentage - divide = 100 - } -} -spymaster_find_secrets_monthly_increase_nemesis_bonus = { - value = spymaster_find_secrets_base_total - multiply = { - add = council_nemesis_impact_percentage - divide = 100 - } -} - -spymaster_find_secrets_perk_monthly_increase = { - add = spymaster_find_secrets_base_total - multiply = { - add = digging_for_dirt_perk_percentage - divide = 100 - } -} -spymaster_find_secrets_erudition_monthly_increase = { - add = spymaster_find_secrets_base_total - multiply = { - add = erudition_legacy_5_percentage - divide = 100 - } -} -spymaster_find_secrets_family_business_monthly_increase = { - add = spymaster_find_secrets_base_total - multiply = { - add = family_business_councillors_percentage - divide = 100 - } -} diff --git a/common/script_values/99_steward_values.txt b/common/script_values/99_steward_values.txt index 0d64cf48e6..98120a27d2 100644 --- a/common/script_values/99_steward_values.txt +++ b/common/script_values/99_steward_values.txt @@ -72,6 +72,14 @@ steward_collect_taxes_family_business_bonus_scale = { } } +steward_collect_taxes_consulted_house_bonus_scale = { + add = steward_collect_taxes_scale_base + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + steward_collect_taxes_scale_tooltip_total = { add = steward_collect_taxes_scale_base if = { @@ -92,6 +100,12 @@ steward_collect_taxes_scale_tooltip_total = { } add = steward_collect_taxes_family_business_bonus_scale } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = steward_collect_taxes_consulted_house_bonus_scale + } } steward_collect_taxes_total_scale = { @@ -235,6 +249,15 @@ steward_develop_county_family_business_monthly_increase = { } } +steward_develop_county_consulted_house_monthly_increase = { + value = 0 + add = steward_develop_county_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + steward_develop_county_total = { add = steward_develop_county_base add = steward_develop_county_monthly_increase @@ -501,8 +524,74 @@ steward_promote_culture_contextual_bonuses = { desc = COURT_CHAPLAIN_CONVERSION_LOCAL_COUNTY_MODIFIERS } } - #Reduce for various county modifiers. - if = { #Reduced conversion speed if the county has protected traditions. + #Reduce for various county modifiers. + # Cultural Traditions + ## Bonuses + if = { + limit = { + exists = scope:county + scope:county.culture = { has_cultural_parameter = easier_to_convert_county_culture_with_heritage } + scope:councillor_liege.culture = { has_same_culture_heritage = scope:county.culture } + } + add = { + value = conversion_culture_easier_to_culture_change_with_heritage_value + desc = TRADITION_EASIER_TO_CULTURE_CONVERT_WITH_HERITAGE_MODIFIER + } + } + if = { + limit = { + councillor_liege_has_erudition_legacy_5_perk = yes + } + add = { + value = steward_promote_culture_erudition_bonus_monthly_increase + desc = ERUDITION_DYNASTY_PERK_BONUS_VALUE + } + } + if = { + limit = { + councillor_liege_has_family_business_bonus = yes + } + add = { + value = steward_promote_culture_family_business_monthly_increase + desc = FAMILY_BUSINESS_BONUS_VALUE + } + } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = { + value = steward_promote_culture_consulted_house_monthly_increase + desc = CONSULTED_HOUSE_BONUS_VALUE + } + } + ## Penalties + if = { + limit = { + exists = scope:county + scope:county.culture = { has_cultural_parameter = harder_to_convert_county_culture_without_heritage } + NOT = { + scope:councillor_liege.culture = { has_same_culture_heritage = scope:county.culture } + } + } + add = { + value = conversion_culture_resistant_to_culture_change_without_heritage_value + desc = TRADITION_HARDER_TO_CULTURE_CONVERT_WITHOUT_HERITAGE_MODIFIER + } + } + + if = { + limit = { + exists = scope:county + scope:county.culture = { has_cultural_parameter = harder_to_convert_county_culture } + } + add = { + value = conversion_culture_resistant_to_culture_change + desc = TRADITION_HARDER_TO_CULTURE_CONVERT + } + } + + if = { limit = { exists = scope:county scope:county = { @@ -680,6 +769,30 @@ promote_culture_reclaimed_brittania_bonus = { multiply = 0.75 } +steward_promote_culture_erudition_bonus_monthly_increase = { + value = steward_promote_culture_base_total + multiply = { + add = erudition_legacy_5_percentage + divide = 100 + } +} + +steward_promote_culture_family_business_monthly_increase = { + value = steward_promote_culture_base_total + multiply = { + add = family_business_councillors_percentage + divide = 100 + } +} + +steward_promote_culture_consulted_house_monthly_increase = { + value = steward_promote_culture_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + promote_culture_local_traditions_respected_penalty = { value = 0 add = steward_promote_culture_base_total @@ -732,7 +845,13 @@ conversion_culture_easier_to_culture_change_with_heritage_value = { conversion_culture_resistant_to_culture_change_without_heritage_value = { value = 0 - subtract = steward_promote_culture_base + subtract = steward_promote_culture_base_total + multiply = 0.5 +} + +conversion_culture_resistant_to_culture_change = { + value = 0 + subtract = steward_promote_culture_base_total multiply = 0.5 } @@ -748,6 +867,12 @@ conversion_culture_accepting_of_culture_change_due_to_struggle_phase_value = { multiply = -0.5 } +conversion_culture_easy = { + value = 0 + add = steward_promote_culture_base_total + multiply = 0.5 +} + ######################################### ######## CONVINCE DE JURE TASK ########## ######################################### @@ -808,6 +933,14 @@ steward_convince_dejure_family_business_bonus = { } } +steward_convince_dejure_consulted_house_bonus = { + add = steward_convince_dejure_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + ######################################### ######### ACCEPT CULTURE TASK ########### ######################################### @@ -984,18 +1117,24 @@ task_accept_culture_progress = { } add = steward_accept_culture_erudition_bonus_yearly_increase } - add = steward_accept_culture_yearly_increase_friend_bonus - add = steward_accept_culture_yearly_increase_best_friend_bonus - add = steward_accept_culture_yearly_increase_rival_bonus - add = steward_accept_culture_yearly_increase_nemesis_bonus - add = steward_accept_culture_yearly_increase_independent_bonus - add = steward_accept_culture_court_type_bonus if = { limit = { councillor_liege_has_family_business_bonus = yes } add = steward_accept_culture_family_business_bonus_yearly_increase } + if = { + limit = { + councillor_liege_has_consulted_house_bonus = yes + } + add = steward_accept_culture_consulted_house_bonus_yearly_increase + } + add = steward_accept_culture_yearly_increase_friend_bonus + add = steward_accept_culture_yearly_increase_best_friend_bonus + add = steward_accept_culture_yearly_increase_rival_bonus + add = steward_accept_culture_yearly_increase_nemesis_bonus + add = steward_accept_culture_yearly_increase_independent_bonus + add = steward_accept_culture_court_type_bonus if = { limit = { exists = scope:county @@ -1013,6 +1152,14 @@ steward_accept_culture_family_business_bonus_yearly_increase = { } } +steward_accept_culture_consulted_house_bonus_yearly_increase = { + add = steward_accept_culture_base_total + multiply = { + add = consulted_house_councillors_percentage + divide = 100 + } +} + steward_accept_culture_yearly_increase_same_culture_bonus = { value = steward_accept_culture_base_total multiply = 0.25 diff --git a/common/script_values/wc_governments_values.txt b/common/script_values/wc_governments_values.txt new file mode 100644 index 0000000000..d201be4d03 --- /dev/null +++ b/common/script_values/wc_governments_values.txt @@ -0,0 +1,31 @@ +wc_clan_government_levies_default = 0.3 +wc_clan_government_levies_player = 0.25 +clan_government_levies_opinion_scale_positive = 0.00305 +clan_government_levies_opinion_scale_negative = 0.004 +clan_government_levies_min_ca_1 = 0.05 +clan_government_levies_min_ca_2 = 0.15 +clan_government_levies_min_ca_3 = 0.25 + +wc_clan_government_tax_default = 0.15 +wc_clan_government_tax_player = 0.1 +clan_government_tax_opinion_scale_positive = 0.001 +clan_government_tax_opinion_scale_negative = 0.003 +clan_government_tax_min_ca_1 = 0.025 +clan_government_tax_min_ca_2 = 0.05 +clan_government_tax_min_ca_3 = 0.1 + +clan_government_levies_max_possible = { + value = wc_clan_government_levies_default + add = { + value = clan_government_levies_opinion_scale_positive + multiply = 100 + } +} + +clan_government_tax_max_possible = { + value = wc_clan_government_tax_default + add = { + value = clan_government_tax_opinion_scale_positive + multiply = 100 + } +} \ No newline at end of file diff --git a/common/scripted_character_templates/00_holy_order_character_templates.txt b/common/scripted_character_templates/00_holy_order_character_templates.txt index ebc1e74489..edc5ca0404 100644 --- a/common/scripted_character_templates/00_holy_order_character_templates.txt +++ b/common/scripted_character_templates/00_holy_order_character_templates.txt @@ -114,7 +114,7 @@ min_template_high_skill max_template_high_skill } - after_creation = { + after_creation = { if = { limit = { has_dlc = tours_and_tournaments } add_trait = tourney_participant diff --git a/common/scripted_character_templates/00_officials_templates.txt b/common/scripted_character_templates/00_officials_templates.txt index f0c0c08ba2..229254195a 100644 --- a/common/scripted_character_templates/00_officials_templates.txt +++ b/common/scripted_character_templates/00_officials_templates.txt @@ -22,6 +22,167 @@ tax_collector_character = { } } +administrator_character = { + age = { 20 50 } + dynasty = none + random_traits_list = { + count = 1 + education_martial_1 = { + weight = { base = 10 } + } + education_martial_2 = { + weight = { + base = 15 + modifier = { + culture = { + OR = { + has_cultural_pillar = ethos_bellicose + has_cultural_tradition = tradition_reverence_for_veterans + } + } + add = 10 + } + } + } + education_martial_3 = { + weight = { + base = 10 + modifier = { + culture = { + OR = { + has_cultural_pillar = ethos_bellicose + has_cultural_tradition = tradition_reverence_for_veterans + } + } + add = 15 + } + } + } + education_martial_4 = { + weight = { + base = 0 + modifier = { + culture = { + OR = { + has_cultural_pillar = ethos_bellicose + has_cultural_tradition = tradition_reverence_for_veterans + } + } + add = 10 + } + } + } + education_stewardship_2 = { + weight = { base = 15 } + } + education_stewardship_3 = { + weight = { base = 10 } + } + education_stewardship_4 = { + weight = { base = 10 } + } + education_learning_2 = { + weight = { + base = 15 + modifier = { + culture = { + OR = { + has_cultural_tradition = tradition_fp3_beacon_of_learning + has_cultural_tradition = tradition_philosopher_culture + } + } + add = 20 + } + } + } + education_learning_3 = { + weight = { + base = 10 + modifier = { + culture = { + OR = { + has_cultural_tradition = tradition_fp3_beacon_of_learning + has_cultural_tradition = tradition_philosopher_culture + } + } + add = 20 + } + } + } + education_learning_4 = { + weight = { + base = 10 + modifier = { + culture = { + OR = { + has_cultural_tradition = tradition_fp3_beacon_of_learning + has_cultural_tradition = tradition_philosopher_culture + } + } + add = 20 + } + } + } + } + random_traits = yes + + martial = { min_template_average_skill max_template_decent_skill } + stewardship = { min_template_average_skill max_template_decent_skill } + learning = { min_template_average_skill max_template_decent_skill } + + after_creation = { + trigger_race_giving_no_gene_effect = yes + # Chance to get a suitable lifestyle trait depending on education + if = { + limit = { has_trait = education_martial } + random = { + chance = 10 + modifier = { + culture = { + OR = { + has_cultural_tradition = tradition_fp3_beacon_of_learning + has_cultural_tradition = tradition_philosopher_culture + } + } + add = 15 + } + + add_trait = overseer + } + } + if = { + limit = { has_trait = education_stewardship } + random = { + chance = 10 + + add_trait = administrator + } + random = { + chance = 10 + + add_trait = avaricious + } + } + if = { + limit = { has_trait = education_learning } + random = { + chance = 10 + modifier = { + culture = { + OR = { + has_cultural_tradition = tradition_fp3_beacon_of_learning + has_cultural_tradition = tradition_philosopher_culture + } + } + add = 15 + } + + add_trait = scholar + } + } + } +} + estate_owner_character = { age = { 20 40 } trait = deceitful diff --git a/common/scripted_character_templates/00_peasants_template.txt b/common/scripted_character_templates/00_peasants_template.txt index 491297c6d0..19a133d459 100644 --- a/common/scripted_character_templates/00_peasants_template.txt +++ b/common/scripted_character_templates/00_peasants_template.txt @@ -776,3 +776,37 @@ child_peasant_character = { trigger_race_giving_no_gene_effect = yes } } + +servant_father_character = { + age = { 16 36 } + random_traits = yes + dynasty = none + gender = male + intrigue = { + min_template_decent_skill + max_template_decent_skill + } + + after_creation = { + random_list = { + 200 = { + # Character is of average weight, nothing happens + } + 25 = { + change_current_weight = -25 + } + 25 = { + change_current_weight = -75 + } + 25 = { + change_current_weight = 25 + } + 25 = { + change_current_weight = 75 + } + } + add_character_flag = peasant_outfit + trigger_race_giving_no_gene_effect = yes + } +} + diff --git a/common/scripted_character_templates/00_soldier_character_templates.txt b/common/scripted_character_templates/00_soldier_character_templates.txt index 7f4989905a..5c45487986 100644 --- a/common/scripted_character_templates/00_soldier_character_templates.txt +++ b/common/scripted_character_templates/00_soldier_character_templates.txt @@ -240,8 +240,8 @@ new_siege_engineer = { age = { 30 45 } random_traits_list = { count = 1 - education_martial_3 = {} education_martial_4 = {} + education_martial_5 = {} } random_traits_list = { count = 3 @@ -278,7 +278,7 @@ new_siege_engineer = { min_template_average_skill max_template_average_skill } - martial = { 10 16 } + martial = { 12 24 } prowess = { 8 12 } after_creation = { @@ -355,7 +355,6 @@ new_berserker_character = { max_template_average_skill } prowess = { 8 12 } - after_creation = { # Warcraft trigger_race_giving_no_gene_effect = yes #Assigns race trait diff --git a/common/scripted_character_templates/01_bp1_filippa_character_templates.txt b/common/scripted_character_templates/01_bp1_filippa_character_templates.txt index 6c7721db1f..829ec13bcb 100644 --- a/common/scripted_character_templates/01_bp1_filippa_character_templates.txt +++ b/common/scripted_character_templates/01_bp1_filippa_character_templates.txt @@ -1,5 +1,4 @@ -#TODO_CD_FGK_BP1_POLISH Remove - + bp1_yearly_2021_martial_person_template = { age = { 18 35 } random_traits_list = { @@ -56,7 +55,7 @@ bp1_yearly_2021_martial_person_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_martial_person_template spawned a character over age borders" debug_log_scopes = no } } @@ -120,7 +119,7 @@ bp1_yearly_2021_learning_witch_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_learning_witch_template spawned a character over age borders" debug_log_scopes = no } } @@ -189,7 +188,7 @@ bp1_yearly_2021_learning_person_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_learning_person_template spawned a character over age borders" debug_log_scopes = no } } @@ -234,7 +233,7 @@ bp1_yearly_2021_stewardship_person_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_stewardship_person_template spawned a character over age borders" debug_log_scopes = no } } @@ -283,7 +282,7 @@ bp1_yearly_2021_diplomacy_person_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_diplomacy_person_template spawned a character over age borders" debug_log_scopes = no } } @@ -327,7 +326,7 @@ bp1_yearly_2021_intrigue_person_template = { trigger_race_giving_no_gene_effect = yes #Assigns race trait if = { limit = { age > age_debug_value } - debug_log = "soldier_friend_character spawned a character over age borders" + debug_log = "bp1_yearly_2021_intrigue_person_template spawned a character over age borders" debug_log_scopes = no } } diff --git a/common/scripted_character_templates/01_fp1_character_templates.txt b/common/scripted_character_templates/01_fp1_character_templates.txt index b419564d01..80fb5a5965 100644 --- a/common/scripted_character_templates/01_fp1_character_templates.txt +++ b/common/scripted_character_templates/01_fp1_character_templates.txt @@ -710,7 +710,7 @@ fp1_capital_county_orphan_character = { random_traits = yes #Personality random_traits_list = { - count = 2 + count = 1 rowdy = {} charming = {} curious = {} diff --git a/common/scripted_character_templates/04_fp3_character_templates.txt b/common/scripted_character_templates/04_fp3_character_templates.txt new file mode 100644 index 0000000000..c5676db96d --- /dev/null +++ b/common/scripted_character_templates/04_fp3_character_templates.txt @@ -0,0 +1,427 @@ +######################################################## +#FP3 Character Templates +####################################################### + +fp3_raging_ghazi_character = { + #General + age = { 18 40 } + culture = root.culture + faith = root.faith + dynasty = none + #Education + random_traits_list = { + education_martial_2 = { + weight = { base = 30 } + } + education_martial_3 = { + weight = { base = 20 } + } + education_martial_4 = { + weight = { base = 10} + } + } + trait = murderer + random_traits_list = { + count = 1 + irritable = {} + drunkard = {} + } + random_traits_list = { + count = 1 + aggressive_attacker = {} + desert_warrior = {} + reaver = {} + } + random_traits_list = { + count = 3 + callous = {} + gluttonous = {} + impatient = {} + sadistic = {} + vengeful = {} + wrathful = {} + zealous = {} + } + random_traits_list = { + count = 1 + faith_warrior = {} + lifestyle_blademaster = {} + strong = {} + lunatic_1 = {} + intellect_bad_1 = {} + } + random_traits = no + gender_female_chance = root_soldier_female_chance + #Skills + diplomacy = { min_template_low_skill max_template_decent_skill } + martial = { min_template_decent_skill max_template_high_skill } + stewardship = { min_template_low_skill max_template_decent_skill } + intrigue = { min_template_low_skill max_template_decent_skill } + learning = { min_template_low_skill max_template_decent_skill } + prowess = { min_template_decent_skill max_template_high_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + add_random_tiered_trait_xp_effect = { + TRAIT = lifestyle_blademaster + LEVEL_1 = yes + LEVEL_3 = no + } + } +} + +fp3_sufi_mystic = { + age = { 30 80 } + faith = root.faith + culture = root.culture + #Education + random_traits_list = { + education_learning_2 = { + weight = { base = 30 } + } + education_learning_3 = { + weight = { base = 30 } + } + education_learning_4 = { + weight = { base = 10} + } + } + trait = lifestyle_mystic + random_traits_list = { + count = 3 + calm = {} + humble = {} + stubborn = {} + honest = {} + just = {} + zealous = {} + compassionate = {} + temperate = {} + generous = {} + shy = {} + chaste = {} + } + random_traits_list = { #something fun to give them character! + count = 1 + pilgrim = {} + theologian = {} + poet = {} + } + random_traits = no + #Skills + diplomacy = { min_template_decent_skill max_template_high_skill } + martial = { min_template_low_skill max_template_decent_skill } + stewardship = { min_template_low_skill max_template_decent_skill } + intrigue = { min_template_decent_skill max_template_decent_skill } + learning = { min_template_decent_skill max_template_high_skill } + prowess = { min_template_low_skill max_template_decent_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + if = { + limit = { has_trait = lifestyle_mystic } + add_random_tiered_trait_xp_effect = { + TRAIT = lifestyle_mystic + LEVEL_1 = yes + LEVEL_3 = no + } + } + } +} + +fp3_zoroastrian_armed_pilgrim = { + age = { 20 50 } + #Education + random_traits_list = { + education_learning_2 = { + weight = { base = 30 } + } + education_learning_3 = { + weight = { base = 30 } + } + education_learning_4 = { + weight = { base = 10} + } + } + trait = lifestyle_mystic + trait = pilgrim + trait = zealous + random_traits_list = { + count = 2 + calm = {} + humble = {} + stubborn = {} + honest = {} + just = {} + compassionate = {} + temperate = {} + generous = {} + chaste = {} + } + random_traits_list = { + count = 1 + scholar = {} + theologian = {} + poet = {} + } + random_traits = no + #Skills + diplomacy = { min_template_low_skill max_template_decent_skill } + martial = { min_template_low_skill max_template_low_skill } + stewardship = { min_template_low_skill max_template_decent_skill } + intrigue = { min_template_low_skill max_template_decent_skill } + learning = { min_template_decent_skill max_template_decent_skill } + prowess = { min_template_low_skill max_template_decent_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + if = { + limit = { has_trait = lifestyle_mystic } + add_random_tiered_trait_xp_effect = { + TRAIT = lifestyle_mystic + LEVEL_1 = yes + LEVEL_3 = no + } + add_character_flag = { + flag = need_priest_outfit + } + } + } +} + +fp3_young_rascal = { + age = { 9 12 } + dynasty = none + #Personality + random_traits_list = { + count = 1 + rowdy = {} + bossy = {} + curious = {} + } + random_traits = no + #Misc + gender_female_chance = 50 + #Skills + diplomacy = { min_template_average_skill max_template_average_skill } + martial = { min_template_average_skill max_template_average_skill } + stewardship = { min_template_average_skill max_template_average_skill } + intrigue = { min_template_average_skill max_template_average_skill } + learning = { min_template_average_skill max_template_average_skill } + prowess = { min_template_average_skill max_template_average_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + } +} + +fp3_adorable_orphan = { + #General + age = { 6 13 } + faith = root.capital_county.faith + culture = root.capital_county.culture + dynasty = none + trait = wild_oat + #Personality + random_traits_list = { + count = 1 + rowdy = {} + charming = {} + curious = {} + pensive = {} + bossy = {} + } + random_traits_list = { + count = 1 + shrewd = {} + spindly = {} + strong = {} + scarred = {} + } + #Misc + random_traits = no + gender_female_chance = 50 + #Skills + diplomacy = { min_template_low_skill max_template_high_skill } + martial = { min_template_low_skill max_template_average_skill } + stewardship = { min_template_average_skill max_template_high_skill } + intrigue = { min_template_average_skill max_template_high_skill } + learning = { min_template_low_skill max_template_average_skill } + prowess = { min_template_low_skill max_template_average_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + } +} + +fp3_tomb_raider = { + #General + age = { 20 40 } + dynasty = none + #Education + random_traits_list = { + education_intrigue_1 = { + weight = { base = 20 } + } + education_intrigue_2 = { + weight = { base = 30 } + } + education_intrigue_3 = { + weight = { base = 10} + } + } + trait = lifestyle_traveler + trait = cynical + random_traits_list = { + count = 2 + brave = {} + greedy = {} + gregarious = {} + wrathful = {} + deceitful = {} + impatient = {} + ambitious = {} + vengeful = {} + lustful = {} + craven = {} + fickle = {} + arbitrary = {} + diligent = {} + } + + random_traits = no + gender_female_chance = 50 + #Skills + diplomacy = { min_template_low_skill max_template_decent_skill } + martial = { min_template_low_skill max_template_low_skill } + stewardship = { min_template_low_skill max_template_decent_skill } + intrigue = { min_template_decent_skill max_template_decent_skill } + learning = { min_template_low_skill max_template_low_skill } + prowess = { min_template_low_skill max_template_low_skill } + after_creation = { + trigger_race_giving_no_gene_effect = yes + } +} + +####FP3 Historical Characters#### + + +fp3_skilled_outsider_template = { + # General + age = { 30 60 } + # Education + ## We give out random low tier education traits, and we'll upgrade them later if we're in batch B. + random_traits_list = { + count = 1 + education_diplomacy_1 = { + trigger = { + OR = { + scope:outsider_diplomacy_martial = yes + scope:outsider_stewardship_diplomacy = yes + } + } + } + education_diplomacy_2 = { + trigger = { + OR = { + scope:outsider_diplomacy_martial = yes + scope:outsider_stewardship_diplomacy = yes + } + } + } + education_martial_1 = { + trigger = { + OR = { + scope:outsider_martial_prowess = yes + scope:outsider_diplomacy_martial = yes + # As there's no main prowess education. + scope:outsider_prowess_learning = yes + } + } + } + education_martial_2 = { + trigger = { + OR = { + scope:outsider_martial_prowess = yes + scope:outsider_diplomacy_martial = yes + # As there's no main prowess education. + scope:outsider_prowess_learning = yes + } + } + } + education_stewardship_1 = { + trigger = { + OR = { + scope:outsider_stewardship_diplomacy = yes + scope:outsider_intrigue_stewardship = yes + } + } + } + education_stewardship_2 = { + trigger = { + OR = { + scope:outsider_stewardship_diplomacy = yes + scope:outsider_intrigue_stewardship = yes + } + } + } + education_intrigue_1 = { + trigger = { + OR = { + scope:outsider_intrigue_stewardship = yes + scope:outsider_learning_intrigue = yes + } + } + } + education_intrigue_2 = { + trigger = { + OR = { + scope:outsider_intrigue_stewardship = yes + scope:outsider_learning_intrigue = yes + } + } + } + education_learning_1 = { + trigger = { + OR = { + scope:outsider_learning_intrigue = yes + scope:outsider_prowess_learning = yes + } + } + } + education_learning_2 = { + trigger = { + OR = { + scope:outsider_learning_intrigue = yes + scope:outsider_prowess_learning = yes + } + } + } + } + # We random roll all of our traits. + random_traits = yes + gender_female_chance = root_soldier_female_chance + # Skills + diplomacy = { + fp3_skilled_outsider_template_diplomacy_min_value + fp3_skilled_outsider_template_diplomacy_max_value + } + martial = { + fp3_skilled_outsider_template_martial_min_value + fp3_skilled_outsider_template_martial_max_value + } + stewardship = { + fp3_skilled_outsider_template_stewardship_min_value + fp3_skilled_outsider_template_stewardship_max_value + } + intrigue = { + fp3_skilled_outsider_template_intrigue_min_value + fp3_skilled_outsider_template_intrigue_max_value + } + learning = { + fp3_skilled_outsider_template_learning_min_value + fp3_skilled_outsider_template_learning_max_value + } + prowess = { + fp3_skilled_outsider_template_prowess_min_value + fp3_skilled_outsider_template_prowess_max_value + } + after_creation = { + trigger_race_giving_no_gene_effect = yes + } +} diff --git a/common/scripted_costs/00_costs.txt b/common/scripted_costs/00_costs.txt deleted file mode 100644 index 83e91a7a44..0000000000 --- a/common/scripted_costs/00_costs.txt +++ /dev/null @@ -1,740 +0,0 @@ -# Determines the cost of hybridizing cultures -# root: Character hybridizing -# scope:culture: Culture they're hybridizing with -hybridize_culture = { - prestige = { - add = { - desc = "BASE_VALUE" - value = 1000 - format = "BASE_VALUE_FORMAT" - } - - # If you're smaller than the culture you want to hybridize with, it should cost more - if = { - limit = { - root.culture.culture_realm_size_cost_scopes < scope:culture.culture_realm_size_cost_scopes - any_sub_realm_county = { # Culture has to be present in your realm for the cost to show - culture = scope:culture - } - } - add = { - desc = "realm_culture_size_diff" - value = culture_size_penalty - } - } - - # High cultural acceptance makes hybridization cheaper - if = { - limit = { - culture = { - cultural_acceptance = { - target = scope:culture - value >= 90 - } - } - } - multiply = { - value = 0.5 - desc = "hybrid_cost_from_acceptance" - } - } - else_if = { - limit = { - culture = { - cultural_acceptance = { - target = scope:culture - value >= 80 - } - } - } - multiply = { - value = 0.6 - desc = "hybrid_cost_from_acceptance" - } - } - else_if = { - limit = { - culture = { - cultural_acceptance = { - target = scope:culture - value >= 70 - } - } - } - multiply = { - value = 0.7 - desc = "hybrid_cost_from_acceptance" - } - } - else_if = { - limit = { - culture = { - cultural_acceptance = { - target = scope:culture - value >= 60 - } - } - } - multiply = { - value = 0.8 - desc = "hybrid_cost_from_acceptance" - } - } - else_if = { - limit = { - culture = { - cultural_acceptance = { - target = scope:culture - value >= 50 - } - } - } - multiply = { - value = 0.9 - desc = "hybrid_cost_from_acceptance" - } - } - - if = { - limit = { - root.culture = { - has_cultural_parameter = cheaper_to_hybridize - } - } - multiply = { - desc = "traditions_cheaper_value" - value = 0.25 - } - } - if = { # The AI only diverges via event, so cost is irrelevant (makes the can_diverge trigger more useful) - limit = { - root = { - is_ai = yes - } - } - multiply = 0 - } - } -} - -# Determines the cost of diverging culture -# root: Character diverging -diverge_culture = { - prestige = { - add = { - desc = "BASE" - value = 5000 - format = "BASE_VALUE_FORMAT" - } - - # Cost scales depending on how much of your culture is within your realm - # Controlling only a small part of your culture makes it cheaper - if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.1 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.1 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.2 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.2 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.3 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.3 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.4 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.4 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.5 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.5 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.6 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.6 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.7 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.7 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.8 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.8 - desc = "culture_size_in_realm" - } - } - else_if = { - limit = { - culture = { - any_culture_county = { - percent <= 0.9 - holder = { - OR = { - any_liege_or_above = { this = root } - this = root - } - } - } - } - } - multiply = { - value = 0.9 - desc = "culture_size_in_realm" - } - } - } -} - -# Cost of reforging an artifact ( turning it into another type of artifact ) -reforge_artifact = { - gold = { - value = { # Base cost is the missing durability - It shouldn't matter how often, or when, you repair an artifact - value = scope:artifact.artifact_max_durability - subtract = scope:artifact.artifact_durability - desc = "BASE" - } - if = { # Multiply base cost with artifact rarity - Except for trinkets - limit = { - scope:artifact = { rarity = illustrious } - } - multiply = { - value = 4 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { rarity = famed } - } - multiply = { - value = 3 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { rarity = masterwork } - } - multiply = { - value = 2 - desc = reforge_artifact_durability_desc - } - } - else = { # Bump up the base cost slightly - multiply = { - value = 1.3 - desc = reforge_artifact_durability_desc - } - } - divide = { - value = scope:artifact.artifact_age - desc = reforge_artifact_durability_desc - min = 1 - } - } - piety = { - value = { - value = 0 - desc = "BASE" - } - if = { - limit = { - scope:artifact.artifact_owner.faith = { has_doctrine_parameter = reforging_artifacts_costs_piety } - } - add = { - value = medium_piety_value - desc = aniconist_tenet_cost - } - if = { - limit = { - scope:artifact = { exists = var:relic } - } - multiply = { - value = 2 - desc = aniconist_reforging_relic - } - } - } - } -} - -# Cost of repairing an artifact ( restoring durability ) -repair_artifact = { - gold = { - value = { value = 25 desc = "BASE" } - if = { - limit = { - scope:artifact = { - artifact_durability >= 80 - artifact_durability < 100 - } - } - divide = { - value = 2 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability >= 20 - artifact_durability < 50 - } - } - multiply = { - value = 2 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability >= 5 - artifact_durability < 20 - } - } - multiply = { - value = 3 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability < 5 - } - } - multiply = { - value = 5 - desc = reforge_artifact_durability_desc - } - } - if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 75 - } - } - multiply = { - value = 5 - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 50 - artifact_wealth_quality_average_value < 75 - } - } - multiply = { - value = 2 - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 25 - artifact_wealth_quality_average_value < 50 - } - } - multiply = { - value = 1 #So we still get the description with the rarity - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value < 25 - } - } - divide = { - value = 2 - desc = reforge_artifact_rarity_desc - } - } - } - piety = { - value = { - value = 0 - desc = "BASE" - } - if = { - limit = { - scope:artifact.artifact_owner.faith = { has_doctrine_parameter = reforging_artifacts_costs_piety } - } - add = { - value = 50 - desc = aniconist_tenet_cost - } - if = { - limit = { - scope:artifact = { - artifact_durability >= 80 - artifact_durability < 100 - } - } - divide = { - value = 2 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability >= 20 - artifact_durability < 50 - } - } - multiply = { - value = 2 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability >= 5 - artifact_durability < 20 - } - } - multiply = { - value = 3 - desc = reforge_artifact_durability_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_durability < 5 - } - } - multiply = { - value = 5 - desc = reforge_artifact_durability_desc - } - } - if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 75 - } - } - multiply = { - value = 5 - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 50 - artifact_wealth_quality_average_value < 75 - } - } - multiply = { - value = 2 - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value >= 25 - artifact_wealth_quality_average_value < 50 - } - } - multiply = { - value = 1 #So we still get the description with the rarity - desc = reforge_artifact_rarity_desc - } - } - else_if = { - limit = { - scope:artifact = { - artifact_wealth_quality_average_value < 25 - } - } - divide = { - value = 2 - desc = reforge_artifact_rarity_desc - } - } - } - if = { - limit = { - scope:artifact = { exists = var:relic } - } - multiply = { - value = 2 - desc = aniconist_reforging_relic - } - } - } -} - -# Cost of adopting a court language -adopt_court_language = { - prestige = { - if = { - limit = { - has_character_flag = foreign_language_reformer - } - value = minor_prestige_value - } - else = { - value = massive_prestige_value - } - } -} - -reform_culture_ethos = { - prestige = { - value = { value = 20000 desc = "BASE" } - } -} - -reform_culture_language = { - prestige = { - value = { value = 3000 desc = "BASE" } - } -} - -reform_culture_martial = { - prestige = { - value = { value = 3000 desc = "BASE" } - } -} - -travel_leader = { - round = no - - gold = { - value = 0 - - add = { - value = scope:speed_aptitude - divide = 5 - min = 1 - desc = "TRAVEL_LEADER_SPEED_APTITUDE" - } - - add = { - value = scope:safety_aptitude - divide = 5 - min = 1 - desc = "TRAVEL_LEADER_SAFETY_APTITUDE" - } - } -} - -# root = accolade -deactivate_accolade = { - prestige = { - if = { - limit = { - accolade_owner ?= { - highest_held_title_tier >= tier_empire - } - accolade_rank >= 2 - } - add = massive_prestige_value - } - else_if = { - limit = { - accolade_owner ?= { - highest_held_title_tier = tier_kingdom - } - accolade_rank >= 2 - } - add = major_prestige_value - } - else_if = { - limit = { - OR = { - AND = { - accolade_owner ?= { - highest_held_title_tier = tier_duchy - } - accolade_rank >= 2 - } - AND = { - accolade_owner ?= { - highest_held_title_tier >= tier_empire - } - accolade_rank < 2 - } - } - } - add = medium_prestige_value - } - else_if = { - limit = { - OR = { - AND = { - accolade_owner ?= { - highest_held_title_tier = tier_county - } - accolade_rank >= 2 - } - AND = { - accolade_owner ?= { - highest_held_title_tier = tier_kingdom - } - accolade_rank < 2 - } - } - } - add = minor_prestige_value - } - else = { - add = miniscule_prestige_value - } - } -} - -# root = acclaimed knight -# event targets = scope:owner -create_accolade = { - prestige = { - if = { - limit = { - scope:owner ?= { - highest_held_title_tier >= tier_empire - } - } - add = 200 - } - else_if = { - limit = { - scope:owner ?= { - highest_held_title_tier = tier_kingdom - } - } - add = 150 - } - else = { - add = 100 - } - } -} diff --git a/common/scripted_effects/00_abduct_scheme_effects.txt b/common/scripted_effects/00_abduct_scheme_effects.txt index 6af84a6831..a6560d6508 100644 --- a/common/scripted_effects/00_abduct_scheme_effects.txt +++ b/common/scripted_effects/00_abduct_scheme_effects.txt @@ -77,7 +77,6 @@ abduct_success_effect = { days = 2 } trigger_event = abduct_outcome.5001 - #add_character_flag = catalyst_release_important_blocker struggle thing } hard_imprison_character_effect = { @@ -116,4 +115,4 @@ successful_abduct_outcome_event_option_effect = { scope:scheme = { end_scheme = yes } -} \ No newline at end of file +} diff --git a/common/scripted_effects/00_activity_effects.txt b/common/scripted_effects/00_activity_effects.txt index d86afdc35a..e8cfae24cb 100644 --- a/common/scripted_effects/00_activity_effects.txt +++ b/common/scripted_effects/00_activity_effects.txt @@ -3168,16 +3168,6 @@ disburse_feast_activity_rewards = { } add = major_prestige_gain } - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_prestige_from_feast - # } - # } - # add = medium_prestige_gain - #} } } } @@ -3232,16 +3222,6 @@ disburse_feast_activity_rewards = { } add = major_prestige_gain } - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_prestige_from_feast - # } - # } - # add = medium_prestige_gain - #} } } } @@ -3287,16 +3267,6 @@ disburse_feast_activity_rewards = { } add = major_prestige_gain } - #if = { - # limit = { - # any_character_struggle = { - # involvement = involved - # is_struggle_type = iberian_struggle - # has_struggle_phase_parameter = struggle_prestige_from_feast - # } - # } - # add = medium_prestige_gain - #} } } } @@ -3947,16 +3917,16 @@ add_to_entourage_court_and_activity_effect = { $CHAR_TO_ADD$ = { is_pool_character = yes } } show_as_tooltip = { add_courtier = $CHAR_TO_ADD$ } #This already happens with add_companion - if = { - limit = { exists = involved_activity } - $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } - } - hidden_effect = { + hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan! if = { limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } - current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } + $NEW_COURT_OWNER$.current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } } } + if = { + limit = { exists = involved_activity } + $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } + } } #If the character is NOT a pool character else = { @@ -3968,16 +3938,19 @@ add_to_entourage_court_and_activity_effect = { } add_courtier = $CHAR_TO_ADD$ } - if = { - limit = { exists = involved_activity } - $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } - } - hidden_effect = { + hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan! if = { limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } - current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } + $NEW_COURT_OWNER$.current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } } } + if = { + limit = { + exists = involved_activity + $CHAR_TO_ADD$ = { can_join_activity = $NEW_COURT_OWNER$.involved_activity } + } + $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } + } } } } @@ -3992,16 +3965,16 @@ recruit_to_entourage_court_and_activity_effect = { $CHAR_TO_ADD$ = { is_pool_character = yes } } show_as_tooltip = { add_courtier = $CHAR_TO_ADD$ } #This already happens with add_companion - if = { - limit = { exists = involved_activity } - $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } - } - hidden_effect = { + hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan! if = { limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } } } + if = { + limit = { exists = involved_activity } + $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } + } } #If the character is NOT a pool character else = { @@ -4013,16 +3986,16 @@ recruit_to_entourage_court_and_activity_effect = { } add_courtier = $CHAR_TO_ADD$ } - if = { - limit = { exists = involved_activity } - $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } - } - hidden_effect = { + hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan! if = { limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } } } + if = { + limit = { exists = involved_activity } + $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } + } } } } @@ -4058,6 +4031,12 @@ add_to_entourage_and_activity_but_not_court_effect = { exists = capital_province $CHAR_TO_ADD$ = { is_pool_character = yes } } + hidden_effect = { # This must go above activity effect, or they will try and make their own travel plan! + if = { + limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } + current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } + } + } $CHAR_TO_ADD$ = { hidden_effect = { move_to_pool_at = $NEW_COURT_OWNER$.capital_province } if = { @@ -4065,23 +4044,18 @@ add_to_entourage_and_activity_but_not_court_effect = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } } - hidden_effect = { - if = { - limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } - current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } - } - } + } #If the character is NOT a pool character else = { + if = { # This must go above activity effect, or they will try and make their own travel plan! + limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } + current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } + } if = { limit = { exists = $NEW_COURT_OWNER$.involved_activity } $CHAR_TO_ADD$ = { add_to_activity = $NEW_COURT_OWNER$.involved_activity } } - if = { - limit = { $CHAR_TO_ADD$ = { NOT = { exists = current_travel_plan } } } - current_travel_plan ?= { add_companion = $CHAR_TO_ADD$ } - } } } } diff --git a/common/scripted_effects/00_adventure_effects.txt b/common/scripted_effects/00_adventure_effects.txt deleted file mode 100644 index 9beac79d2b..0000000000 --- a/common/scripted_effects/00_adventure_effects.txt +++ /dev/null @@ -1,90 +0,0 @@ -##################################################################### -# EFFECT LIST -##################################################################### - -# Effects used in the Adventure Inspiration - -start_adventure_effect = { - - #To save the location so we can use it in the effect checking the distance - set_adventure_distance_variable_effect = { # Figure out how far it is there - ADVENTURER = $ADVENTURER$ - DESTINATION = $LOCATION$ - } - - $ADVENTURER$ = { - # Set a variable to check for availability - set_variable = gone_adventuring - - # Set up the event cycle - # To trigger the event that progresses the inspiration - trigger_event = { - id = fund_inspiration.0053 - days = 1 - } - # Fallback to make sure the inspiration is handled somehow if it goes on for too long - trigger_event = { - id = fund_inspiration.0054 - years = 10 - } - } -} - - -set_adventure_distance_variable_effect = { - # Requires ADVENTURER = character - # Requires DESTINATION = barony_title - $ADVENTURER$.location = { - save_temporary_scope_as = start_barony - } - # Calculate distance to the destination - # The value set indicates how long time it will take for the adventurer to come back - if = { - limit = { - scope:start_barony = { - squared_distance = { - target = $DESTINATION$ - value > long_adventure_max_length - } - } - } - set_variable = { - name = adventure_distance - value = very_long_adventure_var - } - } - else_if = { - limit = { - scope:start_barony = { - squared_distance = { - target = $DESTINATION$ - value > medium_adventure_max_length - } - } - } - set_variable = { - name = adventure_distance - value = long_adventure_var - } - } - else_if = { - limit = { - scope:start_barony = { - squared_distance = { - target = $DESTINATION$ - value > short_adventure_max_length - } - } - } - set_variable = { - name = adventure_distance - value = medium_adventure_var - } - } - else = { - set_variable = { - name = adventure_distance - value = short_adventure_var - } - } -} diff --git a/common/scripted_effects/00_ai_budget_effects.txt b/common/scripted_effects/00_ai_budget_effects.txt index 329337ab73..3cf4a4b6b4 100644 --- a/common/scripted_effects/00_ai_budget_effects.txt +++ b/common/scripted_effects/00_ai_budget_effects.txt @@ -338,7 +338,7 @@ ai_budget_manipulation_effect = { gold >= main_building_tier_1_cost long_term_gold < main_building_tier_1_cost NOT = { - has_government = tribal_government + government_has_flag = government_is_tribal } culture = { # The requirements for Castles, temples, and Cities has_innovation = innovation_motte @@ -442,4 +442,4 @@ ai_budget_manipulation_effect = { move_budget_gold = { gold = feudalize_tribal_holding_interaction_cost from = budget_short_term to = budget_long_term } } } -} +} \ No newline at end of file diff --git a/common/scripted_effects/00_ai_value_effects.txt b/common/scripted_effects/00_ai_value_effects.txt deleted file mode 100644 index 8157d7cb51..0000000000 --- a/common/scripted_effects/00_ai_value_effects.txt +++ /dev/null @@ -1,321 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#remove_adultery_variables_effect - -##################################################################### -# EFFECTS -##################################################################### - -#Saves a scope value with the "strongest" ai value (not exact values but based on the low/medium/high values in 00_ai_values.txt) -strongest_ai_value_effect = { - random_list = { - 1 = { #Positive boldness - trigger = { ai_boldness > 0 } - modifier = { - ai_boldness >= low_positive_boldness - factor = 100 - } - modifier = { - ai_boldness >= medium_positive_boldness - factor = 100 - } - modifier = { - ai_boldness >= high_positive_boldness - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_boldness - } - } - 1 = { #Positive compassion - trigger = { ai_compassion > 0 } - modifier = { - ai_compassion >= low_positive_compassion - factor = 100 - } - modifier = { - ai_compassion >= medium_positive_compassion - factor = 100 - } - modifier = { - ai_compassion >= high_positive_compassion - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_compassion - } - } - 1 = { #Positive greed - trigger = { ai_greed > 0 } - modifier = { - ai_greed >= low_positive_greed - factor = 100 - } - modifier = { - ai_greed >= medium_positive_greed - factor = 100 - } - modifier = { - ai_greed >= high_positive_greed - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_greed - } - } - 1 = { #Positive energy - trigger = { ai_energy > 0 } - modifier = { - ai_energy >= low_positive_energy - factor = 100 - } - modifier = { - ai_energy >= medium_positive_energy - factor = 100 - } - modifier = { - ai_energy >= high_positive_energy - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_energy - } - } - 1 = { #Positive honor - trigger = { ai_honor > 0 } - modifier = { - ai_honor >= low_positive_honor - factor = 100 - } - modifier = { - ai_honor >= medium_positive_honor - factor = 100 - } - modifier = { - ai_honor >= high_positive_honor - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_honor - } - } - 1 = { #Positive rationality - trigger = { ai_rationality > 0 } - modifier = { - ai_rationality >= low_positive_rationality - factor = 100 - } - modifier = { - ai_rationality >= medium_positive_rationality - factor = 100 - } - modifier = { - ai_rationality >= high_positive_rationality - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_rationality - } - } - 1 = { #Positive vengefulness - trigger = { ai_vengefulness > 0 } - modifier = { - ai_vengefulness >= low_positive_vengefulness - factor = 100 - } - modifier = { - ai_vengefulness >= medium_positive_vengefulness - factor = 100 - } - modifier = { - ai_vengefulness >= high_positive_vengefulness - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_vengefulness - } - } - 1 = { #Positive zeal - trigger = { ai_zeal > 0 } - modifier = { - ai_zeal >= low_positive_zeal - factor = 100 - } - modifier = { - ai_zeal >= medium_positive_zeal - factor = 100 - } - modifier = { - ai_zeal >= high_positive_zeal - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:positive_zeal - } - } - 1 = { #negative boldness - trigger = { ai_boldness < 0 } - modifier = { - ai_boldness <= low_negative_boldness - factor = 100 - } - modifier = { - ai_boldness <= medium_negative_boldness - factor = 100 - } - modifier = { - ai_boldness <= high_negative_boldness - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_boldness - } - } - 1 = { #negative compassion - trigger = { ai_compassion < 0 } - modifier = { - ai_compassion <= low_negative_compassion - factor = 100 - } - modifier = { - ai_compassion <= medium_negative_compassion - factor = 100 - } - modifier = { - ai_compassion <= high_negative_compassion - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_compassion - } - } - 1 = { #negative greed - trigger = { ai_greed < 0 } - modifier = { - ai_greed <= low_negative_greed - factor = 100 - } - modifier = { - ai_greed <= medium_negative_greed - factor = 100 - } - modifier = { - ai_greed <= high_negative_greed - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_greed - } - } - 1 = { #negative energy - trigger = { ai_energy < 0 } - modifier = { - ai_energy <= low_negative_energy - factor = 100 - } - modifier = { - ai_energy <= medium_negative_energy - factor = 100 - } - modifier = { - ai_energy <= high_negative_energy - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_energy - } - } - 1 = { #negative honor - trigger = { ai_honor < 0 } - modifier = { - ai_honor <= low_negative_honor - factor = 100 - } - modifier = { - ai_honor <= medium_negative_honor - factor = 100 - } - modifier = { - ai_honor <= high_negative_honor - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_honor - } - } - 1 = { #negative rationality - trigger = { ai_rationality < 0 } - modifier = { - ai_rationality <= low_negative_rationality - factor = 100 - } - modifier = { - ai_rationality <= medium_negative_rationality - factor = 100 - } - modifier = { - ai_rationality <= high_negative_rationality - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_rationality - } - } - 1 = { #negative vengefulness - trigger = { ai_vengefulness < 0 } - modifier = { - ai_vengefulness <= low_negative_vengefulness - factor = 100 - } - modifier = { - ai_vengefulness <= medium_negative_vengefulness - factor = 100 - } - modifier = { - ai_vengefulness <= high_negative_vengefulness - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_vengefulness - } - } - 1 = { #negative zeal - trigger = { ai_zeal < 0 } - modifier = { - ai_zeal <= low_negative_zeal - factor = 100 - } - modifier = { - ai_zeal <= medium_negative_zeal - factor = 100 - } - modifier = { - ai_zeal <= high_negative_zeal - factor = 100 - } - set_variable = { - name = strongest_ai_value - value = flag:negative_zeal - } - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_alert_actions_effects.txt b/common/scripted_effects/00_alert_actions_effects.txt deleted file mode 100644 index 6fcbfb72b2..0000000000 --- a/common/scripted_effects/00_alert_actions_effects.txt +++ /dev/null @@ -1,32 +0,0 @@ -try_create_lawfully_imprison = { - if = { - limit = { - is_imprisoned = no - root = { - has_imprisonment_reason = prev - } - } - try_create_important_action = { - important_action_type = action_can_lawfully_imprison - actor = root - recipient = this - } - } -} - -try_create_pardon = { - if = { - limit = { - target_is_liege_or_above = root - is_imprisoned = no - root = { - has_imprisonment_reason = prev - } - } - try_create_important_action = { - important_action_type = action_can_pardon - actor = root - recipient = this - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_bastard_effects.txt b/common/scripted_effects/00_bastard_effects.txt index 38305e53e6..df29e86c89 100644 --- a/common/scripted_effects/00_bastard_effects.txt +++ b/common/scripted_effects/00_bastard_effects.txt @@ -49,6 +49,77 @@ add_bastard_trait_based_on_faith_effect = { } else = { add_trait_force_tooltip = bastard + scope:father ?= { + random_memory = { + limit = { + OR = { + has_memory_type = first_born + has_memory_type = twins_born + has_memory_type = child_born + } + any_memory_participant = { scope:child ?= this } + } + set_variable = bastard + } + } + scope:mother ?= { + random_memory = { + limit = { + OR = { + has_memory_type = first_born + has_memory_type = twins_born + has_memory_type = child_born + } + any_memory_participant = { scope:child ?= this } + } + set_variable = bastard + } + } + scope:real_father = { + scope:child = { + if = { + limit = { has_trait = twin } + random_sibling = { + limit = { is_twin_of = scope:child } + save_scope_as = child_2 + } + } + } + if = { + limit = { + NOR = { + any_child = { + even_if_dead = yes + NOT = { this = scope:child } + } + exists = scope:child_2 + } + } + create_character_memory = { + type = first_born + participants = { child = scope:child } + } + } + else = { + if = { + limit = { exists = scope:child_2 } + create_character_memory = { + type = twins_born + participants = { + child = scope:child + child_2 = scope:child_2 + } + } + } + else = { + create_character_memory = { + type = child_born + participants = { child = scope:child } + } + } + } + scope:new_memory = { set_variable = bastard } + } } } diff --git a/common/scripted_effects/00_casus_belli_effects.txt b/common/scripted_effects/00_casus_belli_effects.txt deleted file mode 100644 index 2e81619740..0000000000 --- a/common/scripted_effects/00_casus_belli_effects.txt +++ /dev/null @@ -1,265 +0,0 @@ -#Effects relating to Casus Bellis. - -############################################################################################################################################################################################################# -# modify_participants_fame_values # -# by Sean Hughes # -# # -# Description: Makes the correct adjustments to prestige or piety for each participant in a war. # -# # -# Parameters: # -# WINNER: The character who won the war. # -# LOSER: The character who lost the war. # -# IS_RELIGIOUS_WAR: If yes we will modify Piety values instead of Prestige values. # -# FAME_BASE: The base value for calculating how much Prestige or Piety is gained/lost by each character, as below: # -# WINNER_FAME_SCALE: The winner will receive Prestige/Piety equal to FAME_BASE multiplied by this scale. # -# LOSER_FAME_SCALE: The winner will receive Prestige/Piety equal to FAME_BASE multiplied by this scale. **NOTE: This value should always be negative, otherwise the loser will gain piety/prestige!** # -# WINNER_ALLY_FAME_SCALE: Winner's allies will receive Prestige/Piety based on FAME_BASE, multiplied by this scale, then adjusted based on their War Contributuion. # -# LOSER_ALLY_FAME_SCALE: As above, but for the loser's side. ** NOTE: In the current design this should always be the same as WINNER_ALLY_FAME_SCALE, but I'm splitting it out in order to future-proof # -# this effect in case the design changes or modders want to alter how it works. ** # -# # -############################################################################################################################################################################################################# - -modify_all_participants_fame_values = { - - # Give the winner the appropriate type & amount of 'fame' (prestige or piety). - if = { - # If the attacker is the winner, we only award fame *experience* instead of actual fame currency. - limit = { - $WINNER$ = scope:attacker - } - if = { - # Piety level progress for winning offensive religious wars. - limit = { - $IS_RELIGIOUS_WAR$ = yes - } - scope:attacker = { - add_piety_experience = { - value = $FAME_BASE$ - multiply = $WINNER_FAME_SCALE$ - } - } - } - else = { - # Prestige level progress for winning all other offensive wars. - scope:attacker = { - add_prestige_experience = { - value = $FAME_BASE$ - multiply = $WINNER_FAME_SCALE$ - } - } - } - } - else = { - # If the defender is the winner, they get actual fame currency as a reward. - if = { - # Gain piety for winning defensive religious wars. - limit = { - $IS_RELIGIOUS_WAR$ = yes - } - scope:defender = { - add_piety = { - value = $FAME_BASE$ - multiply = $WINNER_FAME_SCALE$ - } - } - } - else = { - # Gain prestige for winning all other defensive wars. - scope:defender = { - add_prestige = { - value = $FAME_BASE$ - multiply = $WINNER_FAME_SCALE$ - } - } - } - } - - # Award the appropriate type & amount of 'fame' to the allies of both primary participants. - modify_allies_of_participants_fame_values = { - WINNER = $WINNER$ - IS_RELIGIOUS_WAR = $IS_RELIGIOUS_WAR$ - FAME_BASE = $FAME_BASE$ - WINNER_ALLY_FAME_SCALE = $WINNER_ALLY_FAME_SCALE$ - LOSER_ALLY_FAME_SCALE = $LOSER_ALLY_FAME_SCALE$ - } - - # Take the appropriate type & amount of 'fame' away from the loser of the war. - if = { - # Religious wars cost Piety for the loser. - limit = { - $IS_RELIGIOUS_WAR$ = yes - } - - $LOSER$ = { - add_piety = { - value = $FAME_BASE$ - multiply = $LOSER_FAME_SCALE$ - } - } - } - else = { - # All other war types cost Prestige from the loser. - $LOSER$ = { - add_prestige = { - value = $FAME_BASE$ - multiply = $LOSER_FAME_SCALE$ - } - } - } -} - -############################################################################################################################################################################################################# -# modify_allies_of_participants_fame_values # -# by Sean Hughes # -# # -# Description: Makes the correct adjustments to prestige or piety but ONLY for the allies in a war (e.g., not the primary attacker/defender). # -# Used as part of 'modify_participants_fame_values' but can also be used on it's own where desired, such as in a white peace where you don't want to give the primary participants any prestige/piety. # -# # -# Parameters: # -# WINNER: The character who won the war. # -# IS_RELIGIOUS_WAR: If yes we will modify Piety values instead of Prestige values. # -# FAME_BASE: The base value for calculating how much Prestige or Piety is gained/lost by each character, as below: # -# WINNER_ALLY_FAME_SCALE: Winner's allies will receive Prestige/Piety based on FAME_BASE, multiplied by this scale, then adjusted based on their War Contributuion. # -# LOSER_ALLY_FAME_SCALE: As above, but for the loser's side. ** NOTE: In the current design this should always be the same as WINNER_ALLY_FAME_SCALE, but I'm splitting it out in order to future-proof # -# this effect in case the design changes or modders want to alter how it works. ** # -# # -############################################################################################################################################################################################################# - -modify_allies_of_participants_fame_values = { - # Give the allies of both primary participants the appropriate type & amount of 'fame'. - - if = { - # Religious wars award Piety to participants. - limit = { - $IS_RELIGIOUS_WAR$ = yes - } - if = { - # Award Piety to the victorious attacker's allies. - limit = { - $WINNER$ = scope:attacker - } - add_from_contribution_attackers = { - piety = { - value = $FAME_BASE$ - multiply = $WINNER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - # Award Piety to the defeated defender's allies. - add_from_contribution_defenders = { - piety = { - value = $FAME_BASE$ - multiply = $LOSER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - } - else = { - # Award Piety to the victorious defender's allies. - add_from_contribution_defenders = { - piety = { - value = $FAME_BASE$ - multiply = $WINNER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - # Award Piety to the defeated attacker's allies. - add_from_contribution_attackers = { - piety = { - value = $FAME_BASE$ - multiply = $LOSER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - } - } - else = { - # All other war types award Prestige to participants. - if = { - # Award Prestige to the victorious attacker's allies. - limit = { - $WINNER$ = scope:attacker - } - add_from_contribution_attackers = { - prestige = { - value = $FAME_BASE$ - multiply = $WINNER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - # Award Prestige to the defeated defender's allies. - add_from_contribution_defenders = { - prestige = { - value = $FAME_BASE$ - multiply = $LOSER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - } - else = { - # Award Prestige to the victorious defender's allies. - add_from_contribution_defenders = { - prestige = { - value = $FAME_BASE$ - multiply = $WINNER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - # Award Prestige to the defeated attacker's allies. - add_from_contribution_attackers = { - prestige = { - value = $FAME_BASE$ - multiply = $LOSER_ALLY_FAME_SCALE$ - } - opinion = { - modifier = contributed_in_war - } - } - } - } -} - -add_hook_from_temp_de_jure_liege_to_attacker = { - # Assumes scope of title to be conquered. - # Assumes scope:attacker to be set for the character initiating the war. - # Assumes scope:temp_de_jure_liege to be set for the de jure liege that - # might gain a title from the war. - # Outcome: De jure liege of the contested title will owe a favor towards - # the attacker of the war if the de jure liege is in the vassal tree of the attacker. - if = { - limit = { - exists = scope:temp_de_jure_liege - NOT = { scope:temp_de_jure_liege = scope:attacker } - scope:temp_de_jure_liege = { target_is_liege_or_above = scope:attacker } - scope:temp_de_jure_liege = { - is_ai = yes - } - scope:attacker = { - can_add_hook = { - type = favor_hook - target = scope:temp_de_jure_liege - } - } - } - scope:attacker = { - add_hook = { - type = favor_hook - target = scope:temp_de_jure_liege - } - } - } -} diff --git a/common/scripted_effects/00_childhood_effects.txt b/common/scripted_effects/00_childhood_effects.txt deleted file mode 100644 index c69f08a02f..0000000000 --- a/common/scripted_effects/00_childhood_effects.txt +++ /dev/null @@ -1,707 +0,0 @@ -#Scripted effects relating to childhood - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#get_guardian_event_target_effect -#save_good_character_effect - #Save a relation scope for the child, use the arguments: - #RELATION = friend - #RELATION = crush - #RELATION = bully - #RELATION = victim - -###################################################################### -# EFFECTS -###################################################################### - - -#Get a child's Guardian, or alternatively a suitable stand-in, since the event relies on an adult being present -get_guardian_scope_effect = { - if = { - limit = { - any_relation = { - type = guardian - always = yes - } - } - random_relation = { - type = guardian - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - is_ruler = yes - any_parent = { - is_adult = yes - is_ai = yes - is_in_the_same_court_as = root - is_available = yes - } - } - random_parent = { - limit = { - is_adult = yes - is_ai = yes - is_in_the_same_court_as = root - is_available = yes - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - is_ruler = yes - any_courtier_or_guest = { - is_adult = yes - is_ai = yes - is_available = yes - } - } - random_courtier_or_guest = { - limit = { - is_adult = yes - is_ai = yes - is_available = yes - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - any_parent = { - is_ai = yes - is_available = yes - } - } - random_parent = { - limit = { - is_in_the_same_court_as = root - is_ai = yes - is_available = yes - } - alternative_limit = { - is_ai = yes - is_available = yes - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - any_sibling = { - is_ai = yes - is_adult = yes - is_available = yes - } - } - random_sibling = { - limit = { - is_ai = yes - is_adult = yes - is_available = yes - } - limit = { - is_ai = yes - is_adult = yes - is_in_the_same_court_as = root - is_available = yes - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - exists = liege - liege = { - any_courtier_or_guest = { - is_ai = yes - is_adult = yes - is_available = yes - } - } - } - liege = { - random_courtier_or_guest = { - limit = { - is_ai = yes - is_adult = yes - is_available = yes - } - save_scope_as = guardian - } - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - exists = liege - liege = { - is_adult = yes - is_ai = yes - is_available = yes - } - } - liege = { - save_scope_as = guardian - } - } - if = { #Close to last resort - limit = { - NOT = { exists = scope:guardian } - any_ruler = { - is_ai = yes - culture = root.culture - faith = root.faith - is_available = yes - } - } - random_ruler = { - limit = { - is_ai = yes - culture = root.culture - faith = root.faith - is_available = yes - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - any_ruler = { - is_ai = yes - is_available = yes - OR = { - culture = root.culture - faith = root.faith - } - } - } - debug_log = "Resorted to last resort when finding guardian for child" - debug_log_scopes = yes - random_ruler = { - limit = { - is_ai = yes - is_available = yes - OR = { - culture = root.culture - faith = root.faith - } - } - save_scope_as = guardian - } - } - if = { - limit = { - NOT = { exists = scope:guardian } - any_ruler = { - is_ai = yes - is_available = yes - } - } - debug_log = "Resorted to absolute last resort when finding guardian for child" - debug_log_scopes = yes - random_ruler = { - limit = { - is_ai = yes - is_available = yes - } - save_scope_as = guardian - } - } -} - - -#Save a relation scope for the child, use the arguments: - #RELATION = - #SCOPE = -save_good_character_effect = { - #Make sure that this list prioritizes other child vassals/heirs when the child being bullied is a player or player heir. - save_temporary_scope_value_as = { - name = $SCOPE$_relation - value = yes - } - if = { - limit = { - NOT = { exists = scope:$RELATION$ } - is_landed = yes - } - every_vassal = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - } - if = { - limit = { - is_landed = yes - NOT = { exists = scope:$RELATION$ } - } - every_courtier = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - if = { - limit = { - is_landed = yes - NOT = { exists = scope:$RELATION$ } - exists = liege - NOT = { this = liege } - } - liege = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_vassal = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - } - if = { - limit = { - is_landed = no - NOT = { exists = scope:$RELATION$ } - exists = liege - NOT = { this = liege } - } - liege = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_vassal = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_courtier_or_guest = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - } - - if = { - limit = { - NOT = { exists = scope:$RELATION$ } - exists = host - NOT = { this = host } - } - host = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_vassal = { - if = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - every_child = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_warden_hostage = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - every_courtier_or_guest = { - limit = { - save_good_$RELATION$_character_trigger_check = yes - } - add_to_list = good_child_relation_character - } - } - } - - if = { - limit = { - NOT = { exists = scope:$RELATION$ } - } - #To actually pick the relation - random_in_list = { - list = good_child_relation_character - limit = { - is_vassal_of = root - } - alternative_limit = { - is_courtier_of = root - } - alternative_limit = { - exists = liege - is_primary_heir_of = liege - } - alternative_limit = { - exists = liege - is_heir_of = liege - } - alternative_limit = { - always = yes - } - weight = { - base = 1 - modifier = { - add = 2 - is_powerful_vassal_of = root - } - modifier = { - add = 1 - exists = root.liege - is_vassal_of = root.liege - } - modifier = { - add = 1 - exists = root.liege - any_parent = { - is_vassal_of = root.liege - } - } - modifier = { - add = 4 - age >= root.age_dif_child_down - age <= root.age_dif_child_up - } - modifier = { - add = -0.5 - exists = scope:crush_relation - root = { has_sexuality = none } - OR = { - AND = { - is_female = yes - root = { is_female = yes } - } - AND = { - is_male = yes - root = { is_male = yes } - } - } - } - } - save_scope_as = $SCOPE$ - } - } -} - -send_event_about_player_heir_childhood_personality_effect = { - every_heir_title = { - limit = { - exists = holder - holder = { - is_ai = no - exists = player_heir - player_heir = scope:personality_child - NOT = { is_in_list = childhood_personality_event } - } - is_title_created = yes #Since partition succession may result in uncreated titles having heirs but not holders. - } - holder = { - add_to_list = childhood_personality_event - } - } - - every_in_list = { - list = childhood_personality_event - trigger_event = child_personality.$ID$ - } -} - -add_suitable_same_realm_children_to_list = { - if = { - limit = { exists = location.county.holder.top_liege } - location.county.holder.top_liege = { - save_scope_as = top_liege_scope - } - } - else_if = { - limit = { exists = location.county.holder } - location.county.holder = { - save_scope_as = top_liege_scope - } - } - else = { - save_scope_as = top_liege_scope - } - scope:top_liege_scope = { - if = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - if = { - limit = { - any_courtier_or_guest = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - every_courtier_or_guest = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - } - if = { - limit = { - any_warden_hostage = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - every_warden_hostage = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - } - if = { - limit = { - any_vassal_or_below = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - every_vassal_or_below = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - } - if = { - limit = { - any_vassal_or_below = { - any_courtier_or_guest = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - } - every_vassal_or_below = { - limit = { - any_courtier_or_guest = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - every_courtier_or_guest = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - } - } - if = { - limit = { - any_vassal_or_below = { - any_warden_hostage = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - } - every_vassal_or_below = { - limit = { - any_warden_hostage = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - } - every_warden_hostage = { - limit = { - is_ai = yes - is_available_child = yes - NOT = { this = root } - age >= 6 - } - add_to_list = suitable_same_realm_children - } - } - } - } -} - -add_similar_age_same_court_children_to_list = { - location.county.holder = { - if = { - limit = { - is_ai = yes - save_good_crush_character_trigger_check = yes - } - add_to_list = similar_age_same_court_children - } - if = { - limit = { - any_courtier_or_guest = { - is_ai = yes - save_good_crush_character_trigger_check = yes - } - } - every_courtier_or_guest = { - limit = { - is_ai = yes - save_good_crush_character_trigger_check = yes - } - add_to_list = similar_age_same_court_children - } - } - if = { - limit = { - any_warden_hostage = { - is_ai = yes - save_good_crush_character_trigger_check = yes - } - } - every_warden_hostage = { - limit = { - is_ai = yes - save_good_crush_character_trigger_check = yes - } - add_to_list = similar_age_same_court_children - } - } - } -} diff --git a/common/scripted_effects/00_compliment_effects.txt b/common/scripted_effects/00_compliment_effects.txt deleted file mode 100644 index dac857cf3f..0000000000 --- a/common/scripted_effects/00_compliment_effects.txt +++ /dev/null @@ -1,689 +0,0 @@ -#Effects used in Lifestyle Focus events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! -# - - -##################### -# COMPLIMENT SYSTEM # -##################### -#This system evaluates whether a character would accept a certain type of compliment (types listed below) from another character. It will set a compliment_outcome varaible with a flag value of either good, neutral or bad which can be used to trigger follow up events. - -#randomize_available_compliment_effect - as there are more compliment types than option buttons, you can use this effect to randomize a number of flags to trigger options (12 types of compliments). -#randomize_good_available_compliment_effect - this one will do its best to pick a good compliment option, recommended to use this one for at least one of the randomized options so that the player has at least one option which is likely to be successful. Defaults to randomize_available_compliment_effect if nothing good can be found. -#randomize_available_ai_value_compliment_effect - as the one above, but only uses the ai value compliments (8 types), the "light" version. -#clear_available_compliments_effect - clears all available compliment flags. -#evaluate_compliment_effect - evaluates the outcome of the compliment with a random_list and sets a compliment_outcome variable. -#evaluate_compliment_with_type_variable_effect - the same as the one above but also saves a variable containing the type of comliment used. - -#COMPLIMENT TYPES -#compassionate (ai value) -#bold (ai value) -#honorable (ai value) -#rational (ai value) -#zealous (ai value) -#energetic (ai value) -#forgiving (ai value) -#beautiful -#strong -#extroverted -#dominant - -#If you don't want to specify the available compliments, you can use this to get a selection relative to your root.diplomacy skill and your target's preferences. -#Run the effect as many times as the amount of compliment options you need. -#More diplomatically skilled characters has a higher chance to receive options which have a high likelihood of success. -#If you want to block a certain compliment, you can add that flag yourself before randomizing and then removing it afterwards. -#Use in scope of compliment giver. -#Needs arguments COMPLIMENT_RECEIVER -randomize_available_compliment_effect = { - random_list = { - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_compassionate } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_compassion >= low_positive_compassion } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_compassion < 0 } - } - add_character_flag = available_compliment_compassionate - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_bold } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_boldness >= low_positive_boldness } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_boldness < 0 } - } - add_character_flag = available_compliment_bold - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_honorable } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_honor >= low_positive_honor } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_honor < 0 } - } - add_character_flag = available_compliment_honorable - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_greedy } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_greed >= low_positive_greed } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_greed < 0 } - } - add_character_flag = available_compliment_greedy - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_rational } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_rationality >= low_positive_rationality } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_rationality < 0 } - } - add_character_flag = available_compliment_rational - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_zealous } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_zeal >= low_positive_zeal } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_zeal < 0 } - } - add_character_flag = available_compliment_zealous - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_energetic } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_energy >= low_positive_energy } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_energy < 0 } - } - add_character_flag = available_compliment_energetic - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_forgiving } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_vengefulness <= low_negative_vengefulness } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { ai_vengefulness > 0 } - } - add_character_flag = available_compliment_forgiving - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_beautiful } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { attraction >= 10 } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { attraction < -10 } - } - add_character_flag = available_compliment_beautiful - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_strong } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { - OR = { - has_trait = strong - has_trait = physique_good_1 - has_trait = physique_good_2 - has_trait = physique_good_3 - } - } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { - OR = { - has_trait = weak - has_trait = physique_bad_1 - has_trait = physique_bad_2 - has_trait = physique_bad_3 - } - } - } - add_character_flag = available_compliment_strong - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_extroverted } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { has_personality_extroverted_trigger = yes } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { has_personality_introverted_trigger = yes } - } - add_character_flag = available_compliment_extroverted - } - 1 = { - trigger = { NOT = { has_character_flag = available_compliment_dominant } } - modifier = { - factor = 3 - root.diplomacy >= decent_skill_rating - $COMPLIMENT_RECEIVER$ = { has_personality_dominant_trigger = yes } - } - modifier = { - factor = 2 - root.diplomacy < medium_skill_rating - $COMPLIMENT_RECEIVER$ = { has_personality_submissive_trigger = yes } - } - add_character_flag = available_compliment_dominant - } - } -} - -#Randomizes an available compliment which is likely to work, needs argument COMPLIMENT_RECEIVER. -randomize_good_available_compliment_effect = { - random_list = { - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_compassion >= low_positive_compassion } - NOT = { has_character_flag = available_compliment_compassionate } - } - add_character_flag = available_compliment_compassionate - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_boldness >= low_positive_boldness } - NOT = { has_character_flag = available_compliment_bold } - } - add_character_flag = available_compliment_bold - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_honor >= low_positive_honor } - NOT = { has_character_flag = available_compliment_honorable } - } - add_character_flag = available_compliment_honorable - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_greed >= low_positive_greed } - NOT = { has_character_flag = available_compliment_greedy } - } - add_character_flag = available_compliment_greedy - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_rationality >= low_positive_rationality } - NOT = { has_character_flag = available_compliment_rational } - } - add_character_flag = available_compliment_rational - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_zeal >= low_positive_zeal } - NOT = { has_character_flag = available_compliment_zealous } - } - add_character_flag = available_compliment_zealous - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_energy >= low_positive_energy } - NOT = { has_character_flag = available_compliment_energetic } - } - add_character_flag = available_compliment_energetic - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { ai_vengefulness <= low_negative_vengefulness } - NOT = { has_character_flag = available_compliment_forgiving } - } - add_character_flag = available_compliment_forgiving - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { attraction >= 10 } - NOT = { has_character_flag = available_compliment_beautiful } - } - add_character_flag = available_compliment_beautiful - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { - OR = { - has_trait = strong - has_trait = physique_good - } - } - NOT = { has_character_flag = available_compliment_strong } - } - add_character_flag = available_compliment_strong - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { has_personality_extroverted_trigger = yes } - NOT = { has_character_flag = available_compliment_extroverted } - } - add_character_flag = available_compliment_extroverted - } - 100 = { - trigger = { - $COMPLIMENT_RECEIVER$ = { has_personality_dominant_trigger = yes } - NOT = { has_character_flag = available_compliment_dominant } - } - add_character_flag = available_compliment_dominant - } - 1 = { #Fallback - randomize_available_compliment_effect = { COMPLIMENT_RECEIVER = $COMPLIMENT_RECEIVER$ } - } - } -} - -#Same as randomize_available_compliment_effect but it only uses the 8 ai value compliments. Required argument COMPLIMENT_RECEIVER (not tested) -randomize_available_ai_value_compliment_effect = { - add_character_flag = available_compliment_beautiful - add_character_flag = available_compliment_strong - add_character_flag = available_compliment_extroverted - add_character_flag = available_compliment_dominant - - randomize_available_compliment_effect = { COMPLIMENT_RECEIVER = $COMPLIMENT_RECEIVER$ } - - remove_character_flag = available_compliment_beautiful - remove_character_flag = available_compliment_strong - remove_character_flag = available_compliment_extroverted - remove_character_flag = available_compliment_dominant -} - -#Clears all the compliment flags after the event -clear_available_compliments_effect = { - remove_character_flag = available_compliment_compassionate - remove_character_flag = available_compliment_bold - remove_character_flag = available_compliment_honorable - remove_character_flag = available_compliment_greedy - remove_character_flag = available_compliment_rational - remove_character_flag = available_compliment_zealous - remove_character_flag = available_compliment_energetic - remove_character_flag = available_compliment_forgiving - remove_character_flag = available_compliment_beautiful - remove_character_flag = available_compliment_strong - remove_character_flag = available_compliment_extroverted - remove_character_flag = available_compliment_dominant -} - -#EVALUATION -#Use in scope of compliment receiver. -#2 types, regular evaluate_compliment_effect and evaluate_compliment_with_type_variable_effect which saves the variable containing the type (evaluated_compliment_type) -#Needs arguments COMPLIMENT_TYPE (see compliment type list above) and COMPLIMENT_GIVER (the name of the scope). - -evaluate_compliment_effect = { - - save_scope_value_as = { - name = evaluated_compliment_type - value = flag:$COMPLIMENT_TYPE$ - } - - if = { - limit = { exists = scope:evaluated_compliment_type } #Because there are error messages otherwise - - random_list = { - # BAD OUTCOME - 0 = { # Base chance of 0, since we don't ever want to randomly penalize the player due to bad luck even if they picked the right compliment. - modifier = { - add = 100 #Incorrect type of compliment significantly increases chances of being insulted. - OR = { - AND = { - scope:evaluated_compliment_type = flag:compassionate - ai_compassion < 0 - } - AND = { - scope:evaluated_compliment_type = flag:bold - ai_boldness < 0 - } - AND = { - scope:evaluated_compliment_type = flag:honorable - ai_honor < 0 - } - AND = { - scope:evaluated_compliment_type = flag:greedy - ai_greed < 0 - } - AND = { - scope:evaluated_compliment_type = flag:rational - ai_rationality < 0 - } - AND = { - scope:evaluated_compliment_type = flag:zealous - ai_zeal < 0 - } - AND = { - scope:evaluated_compliment_type = flag:energetic - ai_energy < 0 - } - AND = { - scope:evaluated_compliment_type = flag:forgiving - ai_vengefulness > 0 - } - AND = { - scope:evaluated_compliment_type = flag:beautiful - attraction < -10 - } - AND = { - scope:evaluated_compliment_type = flag:strong - OR = { - has_trait = weak - has_trait = physique_bad_1 - has_trait = physique_bad_2 - has_trait = physique_bad_3 - } - } - AND = { - scope:evaluated_compliment_type = flag:extroverted - has_personality_introverted_trigger = yes - } - AND = { - scope:evaluated_compliment_type = flag:dominant - has_personality_submissive_trigger = yes - } - } - } - modifier = { #Humble people struggle with compliments - factor = 1.5 - has_trait = humble - } - - save_scope_value_as = { - name = compliment_outcome - value = flag:bad - } - } - - 60 = { #NEUTRAL OUTCOME - modifier = { - factor = 1.3 - has_trait = arrogant - } - modifier = { - factor = 1.3 - has_trait = humble - } - - save_scope_value_as = { - name = compliment_outcome - value = flag:neutral - } - } - - 25 = { #GOOD OUTCOME - modifier = { #Great compliment (not step-based) - factor = 8 - OR = { - AND = { - scope:evaluated_compliment_type = flag:extroverted - has_personality_extroverted_trigger = yes - } - AND = { - scope:evaluated_compliment_type = flag:dominant - has_personality_dominant_trigger = yes - } - } - } - modifier = { #Great compliment (step-based) - factor = 2 #Adds up to 8 with the two modifiers below - OR = { - AND = { - scope:evaluated_compliment_type = flag:compassionate - ai_compassion >= high_positive_compassion - } - AND = { - scope:evaluated_compliment_type = flag:bold - ai_boldness >= high_positive_boldness - } - AND = { - scope:evaluated_compliment_type = flag:honorable - ai_honor >= high_positive_honor - } - AND = { - scope:evaluated_compliment_type = flag:greedy - ai_greed >= high_positive_greed - } - AND = { - scope:evaluated_compliment_type = flag:rational - ai_rationality >= high_positive_rationality - } - AND = { - scope:evaluated_compliment_type = flag:zealous - ai_zeal >= high_positive_zeal - } - AND = { - scope:evaluated_compliment_type = flag:energetic - ai_energy >= high_positive_energy - } - AND = { - scope:evaluated_compliment_type = flag:forgiving - ai_vengefulness <= high_negative_vengefulness - } - AND = { - scope:evaluated_compliment_type = flag:beautiful - attraction >= 30 - } - AND = { - scope:evaluated_compliment_type = flag:strong - has_trait = physique_good_3 - } - } - } - modifier = { #Good compliment (step-based) - factor = 2 #Adds up to 4 with the modifier below - OR = { - AND = { - scope:evaluated_compliment_type = flag:compassionate - ai_compassion >= medium_positive_compassion - } - AND = { - scope:evaluated_compliment_type = flag:bold - ai_boldness >= medium_positive_boldness - } - AND = { - scope:evaluated_compliment_type = flag:honorable - ai_honor >= medium_positive_honor - } - AND = { - scope:evaluated_compliment_type = flag:greedy - ai_greed >= medium_positive_greed - } - AND = { - scope:evaluated_compliment_type = flag:rational - ai_rationality >= medium_positive_rationality - } - AND = { - scope:evaluated_compliment_type = flag:zealous - ai_zeal >= medium_positive_zeal - } - AND = { - scope:evaluated_compliment_type = flag:energetic - ai_energy >= medium_positive_energy - } - AND = { - scope:evaluated_compliment_type = flag:forgiving - ai_vengefulness <= medium_negative_vengefulness - } - AND = { - scope:evaluated_compliment_type = flag:beautiful - attraction >= 20 - } - AND = { - scope:evaluated_compliment_type = flag:strong - OR = { - has_trait = physique_good_2 - has_trait = physique_good_3 - has_trait = strong - } - } - } - } - modifier = { #Good compliment (step-based) - factor = 4 - OR = { - AND = { - scope:evaluated_compliment_type = flag:compassionate - ai_compassion >= low_positive_compassion - } - AND = { - scope:evaluated_compliment_type = flag:bold - ai_boldness >= low_positive_boldness - } - AND = { - scope:evaluated_compliment_type = flag:honorable - ai_honor >= low_positive_honor - } - AND = { - scope:evaluated_compliment_type = flag:greedy - ai_greed >= low_positive_greed - } - AND = { - scope:evaluated_compliment_type = flag:rational - ai_rationality >= low_positive_rationality - } - AND = { - scope:evaluated_compliment_type = flag:zealous - ai_zeal >= low_positive_zeal - } - AND = { - scope:evaluated_compliment_type = flag:energetic - ai_energy >= low_positive_energy - } - AND = { - scope:evaluated_compliment_type = flag:forgiving - ai_vengefulness <= low_negative_vengefulness - } - AND = { - scope:evaluated_compliment_type = flag:beautiful - attraction >= 10 - } - AND = { - scope:evaluated_compliment_type = flag:strong - OR = { - has_trait = physique_good_1 - has_trait = physique_good_2 - has_trait = physique_good_3 - has_trait = strong - } - } - } - } - modifier = { #Arrogant people like compliments - factor = 1.5 - has_trait = arrogant - } - modifier = { #Diplomacy affects success chance - factor = { - value = $COMPLIMENT_GIVER$.diplomacy - subtract = diplomacy - multiply = 0.05 #I.e. 0.5 if 10 skill difference - add = 1 #To bring it to something like 1.5 - } - } - - save_scope_value_as = { - name = compliment_outcome - value = flag:good - } - } - } - } -} - -compliment_to_love_letter_effect = { - if = { - limit = { exists = scope:compliment_outcome } - - if = { - limit = { scope:compliment_outcome = flag:good } - set_variable = { - name = love_letter_quality - value = 4 - days = 150 - } - } - else_if = { - limit = { scope:compliment_outcome = flag:neutral } - set_variable = { - name = love_letter_quality - value = 2 - days = 150 - } - } - else_if = { - limit = { scope:compliment_outcome = flag:bad } - set_variable = { - name = love_letter_quality - value = 1 - days = 150 - } - } - - set_variable = { - name = love_letter_compliment_type - value = scope:evaluated_compliment_type - } - } -} - -compliment_to_love_letter_cleanup_effect = { - if = { - limit = { has_variable = love_letter_quality } - remove_variable = love_letter_quality - } - if = { - limit = { has_variable = love_letter_quality } - remove_variable = love_letter_compliment_type - } -} - - - diff --git a/common/scripted_effects/00_councillor_effects.txt b/common/scripted_effects/00_councillor_effects.txt index f386bb75e3..58ff3bd952 100644 --- a/common/scripted_effects/00_councillor_effects.txt +++ b/common/scripted_effects/00_councillor_effects.txt @@ -26,16 +26,30 @@ got_council_position_effect = { target = liege } } + + add_character_flag = is_in_the_council # Warcraft trigger_race_giving_no_gene_effect = yes #Assigns race trait } fired_from_council_position_effect = { + add_opinion = { modifier = fired_from_council_opinion target = liege } + + # If we're a clan this affects unity + #add_clan_unity_interaction_effect = { + # CHARACTER = root.liege + # TARGET = this + # VALUE = miniscule_unity_loss + # DESC = clan_unity_fired_from_council.desc + # REVERSE_NON_HOUSE_TARGET = no + #} + + remove_character_flag = is_in_the_council } ##################################################################### diff --git a/common/scripted_effects/00_county_corruption_effects.txt b/common/scripted_effects/00_county_corruption_effects.txt deleted file mode 100644 index 39d12b35a8..0000000000 --- a/common/scripted_effects/00_county_corruption_effects.txt +++ /dev/null @@ -1,1221 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### - -# add_random_county_corruption_modifier_effect - Adds a random CC modifier the County does not already have -# remove_random_county_corruption_modifier_effect - Removes a random CC the County has - -##################################################################### -# EFFECTS -##################################################################### - - -add_inefficient_tax_collection_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_inefficient_tax_collection_modifier - years = 10 - } - } - } - } -} - -add_deserting_levies_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_deserting_levies_modifier - years = 10 - } - } - } - } -} - -add_smuggling_ring_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_smuggling_ring_modifier - years = 10 - } - } - } - } -} - -add_bandits_rampant_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_bandits_rampant_modifier - years = 10 - } - } - } - } -} - -add_inefficient_census_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_inefficient_census_modifier - years = 10 - } - } - } - } -} - -add_lack_of_sheriffs_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_lack_of_sheriffs_modifier - years = 10 - } - } - } - } -} - -add_lack_of_courts_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_lack_of_courts_modifier - years = 10 - } - } - } - } -} - -add_thieves_guild_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_thieves_guild_modifier - years = 10 - } - } - } - } -} - -add_unsafe_highways_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_unsafe_highways_modifier - years = 10 - } - } - } - } -} - -add_uncooperative_guilds_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - triggered_desc = { - trigger = { exists = scope:low_control } - desc = gain_county_corruption.message.low_control - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_uncooperative_guilds_modifier - years = 10 - } - } - } - } -} - -add_lackluster_administration_modifier_effect = { - save_scope_as = county - holder = { - send_interface_message = { - type = msg_county_corruption_bad - title = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:deficit } - desc = gain_county_corruption.message.deficit - } - desc = gain_county_corruption.message.county_corruption - } - } - left_icon = scope:county - scope:county = { - add_county_modifier = { - modifier = county_corruption_lackluster_administration_modifier - years = 10 - } - } - } - } -} - - -#Use this for random addition of County Corruption, APART from Low Control -add_random_county_corruption_modifier_effect = { - random_list = { - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_tax_collection_modifier } - } - add_inefficient_tax_collection_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_deserting_levies_modifier } - } - add_deserting_levies_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_smuggling_ring_modifier } - } - add_smuggling_ring_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_bandits_rampant_modifier } - } - add_bandits_rampant_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_census_modifier } - } - add_inefficient_census_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_sheriffs_modifier } - } - add_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_courts_modifier } - } - add_lack_of_courts_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_thieves_guild_modifier } - } - add_thieves_guild_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_unsafe_highways_modifier } - } - add_unsafe_highways_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_uncooperative_guilds_modifier } - } - add_uncooperative_guilds_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lackluster_administration_modifier } - } - add_lackluster_administration_modifier_effect = yes - } - } -} - - -#Notification includes reference about Low Control -add_random_county_corruption_low_control_effect = { - random_list = { - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_tax_collection_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_inefficient_tax_collection_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_deserting_levies_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_deserting_levies_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_smuggling_ring_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_smuggling_ring_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_bandits_rampant_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_bandits_rampant_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_census_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_inefficient_census_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_sheriffs_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_courts_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_thieves_guild_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_thieves_guild_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_unsafe_highways_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_unsafe_highways_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_uncooperative_guilds_modifier } - } - save_scope_value_as = { - name = low_control - value = yes - } - add_uncooperative_guilds_modifier_effect = yes - } - } -} - - -#Notification includes reference about Debt -add_random_county_corruption_in_debt_effect = { - random_list = { - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_tax_collection_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_inefficient_tax_collection_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_deserting_levies_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_deserting_levies_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_smuggling_ring_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_smuggling_ring_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_bandits_rampant_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_bandits_rampant_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_inefficient_census_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_inefficient_census_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_sheriffs_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lack_of_courts_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_thieves_guild_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_thieves_guild_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_unsafe_highways_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_unsafe_highways_modifier_effect = yes - } - 100 = { - trigger = { - NOT = { has_county_modifier = county_corruption_uncooperative_guilds_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_uncooperative_guilds_modifier_effect = yes - } - 500 = { - trigger = { - NOT = { has_county_modifier = county_corruption_lackluster_administration_modifier } - } - save_scope_value_as = { - name = deficit - value = yes - } - add_lackluster_administration_modifier_effect = yes - } - } -} - -############# -# Removal of County Corruption -############# - -remove_inefficient_tax_collection_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_inefficient_tax_collection_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_inefficient_tax_collection_modifier - } - } - } -} - -remove_deserting_levies_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_deserting_levies_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_deserting_levies_modifier - } - } - } -} - -remove_smuggling_ring_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_smuggling_ring_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_smuggling_ring_modifier - } - } - } -} - -remove_bandits_rampant_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_bandits_rampant_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_bandits_rampant_modifier - } - } - } -} - -remove_inefficient_census_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_inefficient_census_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_inefficient_census_modifier - } - } - } -} - -remove_lack_of_sheriffs_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_lack_of_sheriffs_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_lack_of_sheriffs_modifier - } - } - } -} - -remove_lack_of_courts_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_lack_of_courts_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_lack_of_courts_modifier - } - } - } -} - -remove_thieves_guild_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_thieves_guild_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_thieves_guild_modifier - } - } - } -} - -remove_unsafe_highways_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_unsafe_highways_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_unsafe_highways_modifier - } - } - } -} - -remove_uncooperative_guilds_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_uncooperative_guilds_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_uncooperative_guilds_modifier - } - } - } -} - -remove_lackluster_administration_modifier_effect = { - save_scope_as = county - holder = { - if = { - limit = { - exists = scope:marshal_removal - } - send_interface_message = { - type = msg_county_corruption_good_increase_control - title = remove_county_corruption.message.marshal_removal - left_icon = scope:county - right_icon = scope:councillor - - scope:county = { - remove_county_modifier = county_corruption_lackluster_administration_modifier - } - } - } - else = { - scope:county = { - remove_county_modifier = county_corruption_lackluster_administration_modifier - } - } - } -} - -remove_random_county_corruption_modifier_effect = { - random_list = { - 100 = { - trigger = { - has_county_modifier = county_corruption_inefficient_tax_collection_modifier - } - remove_inefficient_tax_collection_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_deserting_levies_modifier - } - remove_deserting_levies_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_smuggling_ring_modifier - } - remove_smuggling_ring_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_bandits_rampant_modifier - } - remove_bandits_rampant_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_inefficient_census_modifier - } - remove_inefficient_census_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lack_of_sheriffs_modifier - } - remove_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lack_of_courts_modifier - } - remove_lack_of_courts_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_thieves_guild_modifier - } - remove_thieves_guild_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_unsafe_highways_modifier - } - remove_unsafe_highways_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_uncooperative_guilds_modifier - } - remove_uncooperative_guilds_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lackluster_administration_modifier - } - remove_lackluster_administration_modifier_effect = yes - } - } -} - -marshal_remove_random_county_corruption_modifier_effect = { - random_list = { - 100 = { - trigger = { - has_county_modifier = county_corruption_inefficient_tax_collection_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_inefficient_tax_collection_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_deserting_levies_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_deserting_levies_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_smuggling_ring_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_smuggling_ring_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_bandits_rampant_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_bandits_rampant_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_inefficient_census_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_inefficient_census_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lack_of_sheriffs_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_lack_of_sheriffs_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lack_of_courts_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_lack_of_courts_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_thieves_guild_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_thieves_guild_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_unsafe_highways_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_unsafe_highways_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_uncooperative_guilds_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_uncooperative_guilds_modifier_effect = yes - } - 100 = { - trigger = { - has_county_modifier = county_corruption_lackluster_administration_modifier - } - if = { - limit = { - scope:councillor = holder.cp:councillor_marshal - } - save_scope_value_as = { - name = marshal_removal - value = yes - } - } - hidden_effect = { - set_variable = { - name = county_corruption_recent_removal - years = 3 - } - } - remove_lackluster_administration_modifier_effect = yes - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_court_position_effects.txt b/common/scripted_effects/00_court_position_effects.txt index 37c2645607..7b91f4685b 100644 --- a/common/scripted_effects/00_court_position_effects.txt +++ b/common/scripted_effects/00_court_position_effects.txt @@ -16,6 +16,15 @@ basic_gained_court_position_effect = { modifier = courtly_court_position_opinion } } + + # Unity impact + #add_clan_unity_interaction_effect = { + # CHARACTER = scope:liege + # TARGET = this + # VALUE = 0 #minor_unity_gain + # DESC = clan_unity_assigned_to_court_position.desc + # REVERSE_NON_HOUSE_TARGET = yes + #} } #Would any courtier feel scorned for not getting this title? We might have them complain in court.5050 hidden_effect = { @@ -106,6 +115,15 @@ basic_revoked_court_position_effect = { target = scope:liege opinion = -30 } + + # Unity impact + #add_clan_unity_interaction_effect = { + # CHARACTER = scope:liege + # TARGET = this + # VALUE = 0 #minor_unity_loss + # DESC = clan_unity_assigned_to_court_position.desc + # REVERSE_NON_HOUSE_TARGET = no + #} } } @@ -494,7 +512,10 @@ court_position_grant_effect = { # Give position, and revoke old holder's if they } } if = { - limit = { exists = scope:old_holder } + limit = { + exists = scope:old_holder + scope:old_holder = { has_court_position = $POS$ } + } send_interface_toast = { title = move_and_grant_court_position_effect_tooltip left_icon = $CANDIDATE$ @@ -533,6 +554,7 @@ court_position_target_variable_effect = { trigger = { is_vassal_of = $EMPLOYER$ court_position_stewardship_trigger = yes + NOT = { has_court_position = royal_architect_court_position } } modifier = { add = 2 @@ -550,7 +572,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = royal_architect_court_position EMPLOYER = $EMPLOYER$ } } 6 = { # SENESCHAL - trigger = { court_position_stewardship_trigger = yes } + trigger = { + court_position_stewardship_trigger = yes + NOT = { has_court_position = seneschal_court_position } + } modifier = { add = 2 has_trait = administrator @@ -572,6 +597,7 @@ court_position_target_variable_effect = { any_child = { is_adult = no } } court_position_learning_trigger = yes + NOT = { has_court_position = court_tutor_court_position } } modifier = { add = 2 @@ -589,7 +615,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = court_tutor_court_position EMPLOYER = $EMPLOYER$ } } 6 = { # HIGH ALMONER - trigger = { court_position_learning_trigger = yes } + trigger = { + court_position_learning_trigger = yes + NOT = { has_court_position = high_almoner_court_position } + } modifier = { add = 2 has_trait = improvident @@ -606,7 +635,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = high_almoner_court_position EMPLOYER = $EMPLOYER$ } } 6 = { # COURT PHYSICIAN - trigger = { court_position_learning_trigger = yes } + trigger = { + court_position_learning_trigger = yes + NOT = { has_court_position = court_physician_court_position } + } modifier = { add = 2 OR = { @@ -630,6 +662,7 @@ court_position_target_variable_effect = { trigger = { $EMPLOYER$ = { has_any_artifact = yes } court_position_learning_trigger = yes + NOT = { has_court_position = antiquarian_court_position } } modifier = { add = 2 @@ -650,6 +683,7 @@ court_position_target_variable_effect = { trigger = { is_vassal_of = $EMPLOYER$ court_position_martial_trigger = { EMPLOYER = root } + NOT = { has_court_position = master_of_horse_court_position } } modifier = { add = 2 @@ -669,6 +703,7 @@ court_position_target_variable_effect = { 6 = { # BODYGUARD trigger = { court_position_martial_trigger = { EMPLOYER = root } + NOT = { has_court_position = bodyguard_court_position } } modifier = { add = 10 @@ -700,6 +735,7 @@ court_position_target_variable_effect = { 6 = { # CHAMPION trigger = { court_position_martial_trigger = { EMPLOYER = root } + NOT = { has_court_position = champion_court_position } } modifier = { add = 2 @@ -720,6 +756,7 @@ court_position_target_variable_effect = { trigger = { is_vassal_of = $EMPLOYER$ court_position_martial_trigger = { EMPLOYER = root } + NOT = { has_court_position = master_of_hunt_court_position } } modifier = { add = 2 @@ -737,7 +774,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = master_of_hunt_court_position EMPLOYER = $EMPLOYER$ } } 2 = { # POET - trigger = { has_trait = poet } + trigger = { + has_trait = poet + NOT = { has_court_position = court_poet_court_position } + } modifier = { factor = 0.5 $EMPLOYER$ = { employs_court_position = court_poet_court_position } @@ -750,6 +790,9 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = court_poet_court_position EMPLOYER = $EMPLOYER$ } } 1 = { # MUSICIAN + trigger = { + NOT = { has_court_position = court_musician_court_position } + } modifier = { add = 2 has_trait = gregarious @@ -766,6 +809,9 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = court_musician_court_position EMPLOYER = $EMPLOYER$ } } 1 = { # CUPBEARER + trigger = { + NOT = { has_court_position = cupbearer_court_position } + } modifier = { add = 2 has_trait = lifestyle_reveler @@ -782,7 +828,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = cupbearer_court_position EMPLOYER = $EMPLOYER$ } } 2 = { # LADY-IN-WAITING - trigger = { court_position_lady_in_waiting_trigger = yes } + trigger = { + court_position_lady_in_waiting_trigger = yes + NOT = { has_court_position = lady_in_waiting_court_position } + } modifier = { add = 5 has_trait = confider @@ -815,7 +864,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = lady_in_waiting_court_position EMPLOYER = $EMPLOYER$ } } 20 = { # EUNUCH - trigger = { court_position_eunuch_trigger = yes } + trigger = { + court_position_eunuch_trigger = yes + NOT = { has_court_position = chief_eunuch_court_position } + } modifier = { factor = 0.5 $EMPLOYER$ = { employs_court_position = chief_eunuch_court_position } @@ -830,6 +882,7 @@ court_position_target_variable_effect = { 2 = { # GARDENER trigger = { $EMPLOYER$ = { can_employ_court_position_type = court_gardener_court_position EMPLOYER = $EMPLOYER$ } + NOT = { has_court_position = court_gardener_court_position } } modifier = { add = 4 @@ -857,6 +910,7 @@ court_position_target_variable_effect = { has_completed_inspiration = yes exists = inspiration } + NOT = { has_court_position = court_artificer_court_position } } modifier = { add = 10 @@ -874,7 +928,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = court_artificer_court_position EMPLOYER = $EMPLOYER$ } } 2 = { # CULTURAL EMISSARY - trigger = { court_position_emissary_trigger = yes } + trigger = { + court_position_emissary_trigger = yes + NOT = { has_court_position = cultural_emissary_court_position } + } modifier = { add = 25 has_trait = diplomat @@ -944,7 +1001,10 @@ court_position_target_variable_effect = { #} # End of Warcraft 2 = { # CARAVAN MASTER - trigger = { court_position_travel_leader_trigger = yes } + trigger = { + court_position_travel_leader_trigger = yes + NOT = { has_court_position = travel_leader_court_position } + } modifier = { add = 25 has_trait = lifestyle_hunter @@ -961,7 +1021,10 @@ court_position_target_variable_effect = { court_position_old_holder_effect = { POS = travel_leader_court_position EMPLOYER = $EMPLOYER$ } } 2 = { # WET NURSE - trigger = { court_position_wet_nurse_trigger = yes } + trigger = { + court_position_wet_nurse_trigger = yes + NOT = { has_court_position = wet_nurse_court_position } + } modifier = { add = 5 has_trait = loyal diff --git a/common/scripted_effects/00_court_scheme_effects.txt b/common/scripted_effects/00_court_scheme_effects.txt deleted file mode 100644 index b4e851739c..0000000000 --- a/common/scripted_effects/00_court_scheme_effects.txt +++ /dev/null @@ -1,407 +0,0 @@ -#Scripted effects relating to Murder Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -###################################################################### -# EFFECTS -###################################################################### - -######################## -# COURT SCHEME EFFECTS # -######################## - -court_success_prestige_effect = { - - if = { - limit = { court_love_is_shunned_or_criminal_trigger = no } #Only if it's not a taboo courtship - - #Whose tier matters? - if = { - limit = { - scope:target = { - is_ruler = no - exists = liege - OR = { - is_spouse_of = this.liege - is_close_or_extended_family_of = this.liege - } - } - } - scope:target = { liege = { save_scope_as = prestige_comparison } } - } - else = { - scope:target = { save_scope_as = prestige_comparison } - } - - #Epic - if = { - limit = { - #They are at least two levels above you or empire level - OR = { - tier_difference = { - target = scope:prestige_comparison - value <= -2 - } - scope:prestige_comparison.highest_held_title_tier = tier_empire - } - } - add_prestige = massive_prestige_gain - } - #Great - else_if = { - limit = { - OR = { - #They are one level above you or kingdom level - tier_difference = { - target = scope:prestige_comparison - value = -1 - } - scope:prestige_comparison.highest_held_title_tier = tier_kingdom - } - } - add_prestige = major_prestige_gain - } - #Good - else_if = { - limit = { - #They're your level or duchy level - OR = { - scope:prestige_comparison.highest_held_title_tier = this.highest_held_title_tier - scope:prestige_comparison.highest_held_title_tier = tier_duchy - } - } - add_prestige = medium_prestige_value - } - #Okay - else_if = { - limit = { - #They're at least county level - scope:prestige_comparison.highest_held_title_tier >= tier_county - } - add_prestige = minor_prestige_value - } - #Everything else (everyone targeting barons/unlanded) - else = { - add_prestige = miniscule_prestige_value - } - } -} - - - - -court_ongoing_1010_good_duel_outcome_effect = { - add_prestige = medium_prestige_gain - scope:scheme = { - add_scheme_modifier = { - type = courting_act_of_heroism_modifier - } - } -} - -court_ongoing_fetch_gift_modifier_effect = { - #Wolf pelt - if = { - limit = { - scope:target = { has_character_flag = court_ongoing_wolf_pelt_flag } - has_royal_court = yes # Since these are court artifacts and serve no real purpose to those without a court - } - create_artifact_animal_hide_effect = { - OWNER = scope:target - HUNTER = scope:target - LEGENDARY = no - ANIMAL = flag:wolf - } - } - # Necklace - else_if = { - limit = { - scope:target = { has_character_flag = court_ongoing_necklace_flag } - } - create_artifact_necklace_effect = { - OWNER = scope:target - SMITH = scope:target - } - hidden_effect_new_object = { - scope:newly_created_artifact = { - flag_as_trash_artifact = yes - } - } - } - # Flower - else_if = { - limit = { - scope:target = { has_character_flag = court_ongoing_orchid_flag } - } - save_scope_value_as = { - name = flower_species - value = flag:flower_type_orchid - } - create_artifact_pressed_flower_effect = { OWNER = scope:target } - clear_saved_scope = flower_species - hidden_effect_new_object = { - scope:newly_created_artifact = { - flag_as_trash_artifact = yes - } - } - } - else = { - add_character_modifier = { - modifier = $GIFT$_modifier - years = 20 - } - } -} - -court_ongoing_fetch_gift_target_outcome_effect = { - hidden_effect = { - scope:target = { - if = { - limit = { is_ai = no } - } - save_temporary_scope_value_as = { - name = gift_outcome - value = flag:$OUTCOME$ - } - - if = { - limit = { - scope:gift_outcome = flag:success - } - send_interface_toast = { - title = court_ongoing.1021.$GIFT$.success - left_icon = scope:owner - court_ongoing_fetch_gift_modifier_effect = { GIFT = $GIFT$ } - } - } - else_if = { - limit = { - scope:gift_outcome = flag:failure - } - send_interface_toast = { - title = court_ongoing.1021.$GIFT$.failure - left_icon = scope:owner - } - } - #Flag clean up - remove_character_flag = court_ongoing_wolf_pelt_flag - remove_character_flag = court_ongoing_necklace_flag - remove_character_flag = court_ongoing_orchid_flag - } - } -} - -court_ongoing_1030_dog_modifier_effect = { - if = { - limit = { - NOT = { has_character_flag = had_dog_story } - } - start_dog_story_cycle_effect = yes - } -} - -court_ongoing_1030_cat_modifier_effect = { - if = { - limit = { - NOT = { has_character_flag = had_cat_story } - } - start_cat_story_cycle_effect = yes - } -} - -court_ongoing_1030_failure_effect = { - reverse_add_opinion = { - target = scope:target - modifier = disappointed_opinion - opinion = -10 - } -} - - -court_ongoing_1100_outcome_effect = { - show_as_tooltip = { - random_list = { - 1 = { - desc = court_ongoing.1100.success.tt - show_chance = no - scope:scheme = { - add_scheme_modifier = { - type = courting_charm_modifier - } - } - } - 1 = { - desc = court_ongoing.1100.neutral.tt - show_chance = no - } - 1 = { - desc = court_ongoing.1100.failure.tt - show_chance = no - reverse_add_opinion = { - target = scope:target - modifier = insult_opinion - opinion = -10 - } - } - } - } - - hidden_effect = { - scope:target = { - trigger_event = { - id = court_ongoing.1101 - days = { 3 7 } - } - } - } -} - -court_consummate_effect = { - if = { - limit = { this = scope:owner } - - } - else = { - set_relation_soulmate = scope:owner - } -} - -court_kiss_effect = { - - hidden_effect = { - if = { - limit = { NOT = { has_relation_potential_lover = scope:target } } - set_relation_potential_lover = scope:target - } - } -} - -target_success_opinion_bonus_effect = { - reverse_add_opinion = { - target = scope:owner - modifier = love_opinion - opinion = 30 - } -} - - -end_court_scheme_effect = { - save_temporary_scope_value_as = { - name = court_outcome - value = flag:$OUTCOME$ - } - - scope:owner = { - # SUCCESS: SOULMATES - # (This is the only one which target also needs to see, run it in owner scope in show_as_tooltip first and then execute in target's scope) - if = { - limit = { scope:court_outcome = flag:success_soulmate } - - scope:target = { set_relation_soulmate = { reason = $REASON$ target = prev } } - had_sex_with_effect = { #Run this in target scope because owner has own tooltip - CHARACTER = scope:target - PREGNANCY_CHANCE = pregnancy_chance - } - reverse_add_opinion = { - target = scope:target - modifier = romance_scheme_courtship_opinion #Blocks courtship - } - - #Maybe break of existing lover relationships - hidden_effect = { - scope:target = { - if = { - limit = { - has_trait = lustful - is_ai = yes - any_relation = { - type = lover - NOT = { this = scope:owner } - } - } - every_relation = { - type = lover - random = { - chance = 90 - opinion_modifier = { #Less likely if they really like the lover - who = scope:target - opinion_target = this - multiplier = -0.5 - min = -20 - } - modifier = { #More likely if they have more lovers - add = 10 - scope:target = { - any_relation = { - type = lover - count >= 2 - } - } - } - lover_breakup_effect = { - BREAKER = scope:target - LOVER = this - } - } - } - } - } - } - } - # SUCCESS: KISS - else_if = { - limit = { scope:court_outcome = flag:success_kiss } - custom_tooltip = court_outcome.kiss.tt - reverse_add_opinion = { - target = scope:target - modifier = romance_scheme_courtship_opinion #Blocks courtship - } - } - # FAILURE: SOFT - else_if = { - limit = { scope:court_outcome = flag:failure_soft } - #Shared effect with Seduce because failure in one scheme should block the other - scope:target = { seduction_cooldown_for_character_effect = { CHARACTER = scope:owner } } - } - # FAILURE: HARD - else_if = { - limit = { scope:court_outcome = flag:failure_hard } - #Shared effect with Seduce because failure in one scheme should block the other - scope:target = { seduction_block_character_effect = { CHARACTER = scope:owner } } - } - - # Tradition bonuses - if = { - limit = { - OR = { - scope:court_outcome = flag:success_soulmate - scope:court_outcome = flag:success_kiss - } - culture = { - has_cultural_parameter = romance_scheme_bonuses - } - exists = dynasty - } - dynasty = { - add_dynasty_prestige = minor_dynasty_prestige_gain - } - } - else_if = { - limit = { - OR = { - scope:court_outcome = flag:failure_soft - scope:court_outcome = flag:failure_hard - } - culture = { - has_cultural_parameter = romance_scheme_bonuses - } - } - add_stress = medium_stress_impact_gain - } - } - - scope:scheme = { end_scheme = yes } -} diff --git a/common/scripted_effects/00_culture_effects.txt b/common/scripted_effects/00_culture_effects.txt deleted file mode 100644 index 7d5df92316..0000000000 --- a/common/scripted_effects/00_culture_effects.txt +++ /dev/null @@ -1,1288 +0,0 @@ - -convert_county_and_holder_if_in_region_effect = { - if = { - # If this county is of the old culture and is in the designated region, flip it to the new culture. - limit = { - culture = $OLD_CULTURE$ - title_province = { - geographical_region = $REGION$ - } - } - set_county_culture = $NEW_CULTURE$ - - # If the holder is also of the old culture, and their capital is in the designated region, we flip them along with the county. - holder = { - if = { - limit = { - culture = $OLD_CULTURE$ - capital_province = { - geographical_region = $REGION$ - } - } - set_culture = $NEW_CULTURE$ - } - } - } -} - -merge_cultures_in_region_effect = { - hidden_effect = { - convert_county_and_holder_if_in_region_effect = { - OLD_CULTURE = $OLD_CULTURE_1$ - NEW_CULTURE = $NEW_CULTURE$ - REGION = $REGION$ - } - convert_county_and_holder_if_in_region_effect = { - OLD_CULTURE = $OLD_CULTURE_2$ - NEW_CULTURE = $NEW_CULTURE$ - REGION = $REGION$ - } - } -} - -convert_player_realm_from_old_culture_to_new_effect = { - # For localization - $OLD_CULTURE$ = { save_scope_as = old_culture } - $NEW_CULTURE$ = { save_scope_as = new_culture } - - custom_tooltip = global_culture.custom.change_culture - hidden_effect = { - # Compile a list of everyone who will flip to the new culture. - every_vassal_or_below = { - limit = { - culture = $OLD_CULTURE$ - } - add_to_list = characters_to_convert - every_courtier = { - limit = { - culture = $OLD_CULTURE$ - } - add_to_list = characters_to_convert - } - } - every_courtier = { - limit = { - culture = $OLD_CULTURE$ - } - add_to_list = characters_to_convert - } - - # Flip the player to the new culture. - set_culture = $NEW_CULTURE$ - add_character_flag = converted_culture_this_lifetime - - # Flip their courtiers/vassals with a custom description. - every_in_list = { - list = characters_to_convert - set_culture = $NEW_CULTURE$ - } - - # Then flip all their counties. - every_sub_realm_county = { - limit = { - culture = $OLD_CULTURE$ - } - set_county_culture = $NEW_CULTURE$ - } - } -} - -merge_cultures_in_player_realm_effect = { - $OLD_CULTURE_1$ = { save_scope_as = old_culture_1 } - $OLD_CULTURE_2$ = { save_scope_as = old_culture_2 } - $NEW_CULTURE$ = { save_scope_as = new_culture } - - custom_tooltip = global_culture.custom_merge_culture - - hidden_effect = { - convert_player_realm_from_old_culture_to_new_effect = { - OLD_CULTURE = scope:old_culture_1 - NEW_CULTURE = scope:new_culture - } - convert_player_realm_from_old_culture_to_new_effect = { - OLD_CULTURE = scope:old_culture_2 - NEW_CULTURE = scope:new_culture - } - } -} - -convert_family_culture_and_notify_vassals_effect = { - # Save the root character as a reference - save_scope_as = converting_character - # Save the old culture as a scope - $OLD_CULTURE$ = { - save_scope_as = old_culture - } - $NEW_CULTURE$ = { - save_scope_as = new_culture - } - $CONVERTER$ = { - save_scope_as = converter - } - # Convert root character and AI close family members - set_culture = scope:new_culture - if = { - limit = { - is_ai = yes - } - add_character_flag = converted_culture_this_lifetime_ai - } - else = { - add_character_flag = converted_culture_this_lifetime - } - - every_close_family_member = { - custom = every_close_family_member_sharing_your_culture - limit = { - OR = { - is_courtier_of = scope:converter - is_vassal_of = scope:converter - } - # Exclude previous generations - NOT = { is_parent_of = root } - NOT = { is_grandparent_of = root } - # Only non-ruler same-culture characters - is_ruler = no - has_culture = scope:old_culture - } - set_culture = scope:new_culture - add_to_temporary_list = notified_of_culture_change - } - every_consort = { - #custom = every_consort_sharing_your_culture - limit = { - is_ruler = no - has_culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - set_culture = scope:new_culture - add_to_temporary_list = notified_of_culture_change - } - every_consort = { - limit = { - is_ruler = yes - has_culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - custom_description = { - text = decide_on_local_culture_conversion - trigger_event = { - id = culture_conversion.0001 - days = 1 - } - } - } - - # Offer every same-culture vassal a chance to convert - every_vassal = { - custom = every_old_culture_vassal_holding_new_culture_land - limit = { - culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - custom_description = { - text = decide_on_local_culture_conversion - trigger_event = { - id = culture_conversion.0001 - days = 1 - } - } - add_to_temporary_list = notified_of_culture_change - } - - # Notifications - hidden_effect = { - every_player = { - limit = { - OR = { - is_consort_of = scope:converting_character - AND = { - exists = liege - liege = scope:converting_character - } - AND = { - exists = scope:converting_character.liege - this = scope:converting_character.liege - } - } - NOT = { is_in_list = notified_of_culture_change } - } - send_interface_message = { - type = culture_conversion - title = converted_culture_msg_title - custom_tooltip = converted_from_old_culture_to_new_culture_tt - right_icon = scope:converting_character - } - } - } -} - -norse_assimilate_local_traditions_effect = { - # Save the root character as a reference - save_scope_as = converting_character - # Save the old culture as a scope - $OLD_CULTURE$ = { - save_scope_as = old_culture - } - $NEW_CULTURE$ = { - save_scope_as = new_culture - } - $OLD_FAITH$ = { - save_scope_as = old_faith - } - $NEW_FAITH$ = { - save_scope_as = new_faith - } - $CONVERTER$ = { - save_scope_as = converter - } - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - if = { - limit = { - exists = dynasty - dynasty = { - NOT = { - has_dynasty_modifier = settled_norse_dynasty_modifier - } - } - } - dynasty = { - add_dynasty_modifier = { modifier = settled_norse_dynasty_modifier years = 80 } - } - } - # Convert root character and AI close family members - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - if = { - limit = { - is_ai = yes - } - add_character_flag = converted_culture_this_lifetime_ai - } - else = { - add_character_flag = converted_culture_this_lifetime - } - - every_close_family_member = { - custom = every_close_family_member_sharing_your_culture - limit = { - is_courtier_of = scope:converter - # Only non-ruler same-culture characters - has_culture = scope:old_culture - } - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - hidden_effect = { - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - } - add_to_temporary_list = notified_of_culture_change - } - every_consort = { - #custom = every_consort_sharing_your_culture - limit = { - is_ruler = no - has_culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - hidden_effect = { - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - } - add_to_temporary_list = notified_of_culture_change - } - - # All Norse vassals convert - every_vassal = { - custom = every_norse_vassal - limit = { - culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - hidden_effect = { - if = { - limit = { - exists = dynasty - dynasty = { - NOT = { - has_dynasty_modifier = settled_norse_dynasty_modifier - } - } - } - dynasty = { - add_dynasty_modifier = { modifier = settled_norse_dynasty_modifier years = 80 } - } - } - } - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - - hidden_effect = { - every_close_family_member = { - limit = { - is_courtier_of = scope:converter - # Only non-ruler same-culture characters - has_culture = scope:old_culture - } - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - hidden_effect = { - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - } - add_to_temporary_list = notified_of_culture_change - } - every_consort = { - limit = { - is_ruler = no - has_culture = scope:old_culture - NOT = { is_in_list = notified_of_culture_change } - } - set_culture = scope:new_culture - if = { - limit = { - NOR = { - scope:old_faith = scope:new_faith - has_trait = zealous - } - } - hidden_effect = { - bastard_to_wild_oat_conversion_assimilation_effect = yes - } - set_character_faith = scope:new_faith - } - hidden_effect = { - add_character_modifier = { - modifier = embraced_local_traditions_modifier - } - } - add_to_temporary_list = notified_of_culture_change - } - } - - add_to_temporary_list = notified_of_culture_change - } - - # Notifications - hidden_effect = { - every_player = { - limit = { - OR = { - is_consort_of = scope:converting_character - AND = { - exists = liege - liege = scope:converting_character - } - AND = { - exists = scope:converting_character.liege - this = scope:converting_character.liege - } - } - NOT = { is_in_list = notified_of_culture_change } - } - send_interface_message = { - type = culture_conversion - title = converted_culture_msg_title - custom_tooltip = converted_from_old_culture_to_new_culture_tt - right_icon = scope:converting_character - } - } - } -} - -expand_hybrid_culture_from_origin_point = { - every_title_to_title_neighboring_and_across_water_county = { - limit = { - holder.top_liege = $CONVERTEE$.top_liege - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - - random = { - chance = { - value = 30 - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 45 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 50 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 55 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 60 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 65 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 70 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 75 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 80 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 85 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 90 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 95 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 100 } - } - } - } - add = 5 - } - } - set_county_culture = $CULTURE$ - every_title_to_title_neighboring_and_across_water_county = { - limit = { - holder.top_liege = $CONVERTEE$.top_liege - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - random = { - chance = { - value = 30 - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 45 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 50 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 55 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 60 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 65 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 70 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 75 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 80 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 85 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 90 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 95 } - } - } - } - add = 5 - } - if = { - limit = { - $CULTURE$ = { - any_parent_culture = { - save_temporary_scope_as = first_parent - } - any_parent_culture = { - NOT = { - this = scope:first_parent - } - cultural_acceptance = { target = scope:first_parent value >= 100 } - } - } - } - add = 5 - } - } - set_county_culture = $CULTURE$ - } - } - } - } -} - -new_culture_created_conversion_effect = { - - # Save the hybrid culture for use with ai_will_do down the line - if = { - limit = { - $CULTURE$ = { is_hybrid_culture = yes } - } - add_to_global_variable_list = { name = hybrid_cultures target = $CULTURE$ } - } - - # Convert Counties (if of same culture as recipient's old culture) - $CONVERTEE$ = { - if = { - limit = { - capital_county = { - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - } - capital_county = { - set_county_culture = $CULTURE$ - expand_hybrid_culture_from_origin_point = { - CONVERTEE = $CONVERTEE$ - CULTURE = $CULTURE$ - } - } - } - else_if = { - limit = { - any_held_title = { - tier = tier_county - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - } - random_held_title = { - limit = { - tier = tier_county - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - set_county_culture = $CULTURE$ - expand_hybrid_culture_from_origin_point = { - CONVERTEE = $CONVERTEE$ - CULTURE = $CULTURE$ - } - } - } - else_if = { - limit = { - any_sub_realm_county = { - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - } - random_sub_realm_county = { - limit = { - save_temporary_scope_as = county_check - $CULTURE$ = { - any_parent_culture = { - this = scope:county_check.culture - } - } - } - set_county_culture = $CULTURE$ - expand_hybrid_culture_from_origin_point = { - CONVERTEE = $CONVERTEE$ - CULTURE = $CULTURE$ - } - } - } - } - # Spouses convert - $CONVERTEE$ = { - every_spouse = { - limit = { - OR = { - is_courtier_of = $CONVERTER$ - is_courtier_of = $CONVERTEE$ - is_vassal_of = $CONVERTER$ - is_vassal_of = $CONVERTEE$ - } - save_temporary_scope_as = spouse_check - $CULTURE$ = { - any_parent_culture = { - this = scope:spouse_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - # Family in recipient's court also convert - if = { - limit = { - $CONVERTEE$ = { - is_ruler = yes - any_close_or_extended_family_member = { - exists = court_owner - court_owner = $CONVERTEE$ - NOT = { culture = $CULTURE$ } - is_ai = yes - } - } - } - $CONVERTEE$ = { - every_close_or_extended_family_member = { - custom = all_family_members_at_court - limit = { - exists = court_owner - court_owner = $CONVERTEE$ - NOT = { culture = $CULTURE$ } - is_ai = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - } - # Make sure relevant non-significant characters convert - $CONVERTEE$ = { - hidden_effect = { - every_courtier_or_guest = { - limit = { - NOT = { culture = $CULTURE$ } - is_ai = yes - has_no_particular_noble_roots_trigger = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - if = { - limit = { - exists = $CONVERTEE$.capital_province - } - every_pool_character = { - province = $CONVERTEE$.capital_province - limit = { - NOT = { culture = $CULTURE$ } - is_ai = yes - has_no_particular_noble_roots_trigger = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - } - } - $CONVERTEE$ = { # Clean up culture in the realm for subvassals with a liege of the wrong culture - hidden_effect = { - every_vassal_or_below = { - limit = { - is_landed = yes - save_temporary_scope_as = vassal_check - $CULTURE$ = { - any_parent_culture = { - this = scope:vassal_check.culture - } - } - NOT = { - $CULTURE$ = { - any_parent_culture = { - this = scope:vassal_check.liege.culture - } - } - } - } - save_scope_as = vassal_converting - new_culture_created_vassal_conversion_effect = { - CONVERTEE = scope:vassal_converting - CONVERTER = $CONVERTER$ - CULTURE = $CULTURE$ - } - } - #every_sub_realm_county = { - # limit = { - # save_temporary_scope_as = county_check - # $CULTURE$ = { - # any_parent_culture = { - # this = scope:county_check.culture - # } - # } - # NOT = { - # $CULTURE$ = { - # any_parent_culture = { - # this = scope:county_check.holder.culture - # } - # } - # } - # } - # set_county_culture = $CULTURE$ - #} - } - } - $CONVERTEE$ = { - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } -} - -new_culture_created_vassal_conversion_effect = { - - # Save the hybrid culture for use with ai_will_do down the line - if = { - limit = { - $CULTURE$ = { is_hybrid_culture = yes } - NOT = { - any_in_global_list = { - variable = hybrid_cultures - this = $CULTURE$ - } - } - } - add_to_global_variable_list = { name = hybrid_cultures target = $CULTURE$ } - } - - # Convert Counties (if of same culture as recipient's old culture) - $CONVERTEE$ = { - #every_held_title = { - # limit = { - # tier = tier_county - # save_temporary_scope_as = county_check - # $CULTURE$ = { - # any_parent_culture = { - # this = scope:county_check.culture - # } - # } - # } - # set_county_culture = $CULTURE$ - #} - } - # Spouses convert - $CONVERTEE$ = { - every_spouse = { - limit = { - OR = { - is_courtier_of = $CONVERTER$ - is_courtier_of = $CONVERTEE$ - is_vassal_of = $CONVERTER$ - is_vassal_of = $CONVERTEE$ - } - save_temporary_scope_as = spouse_check - $CULTURE$ = { - any_parent_culture = { - this = scope:spouse_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - # Family in recipient's court also convert - if = { - limit = { - $CONVERTEE$ = { - is_ruler = yes - any_close_or_extended_family_member = { - exists = court_owner - court_owner = $CONVERTEE$ - NOT = { culture = $CULTURE$ } - is_ai = yes - } - } - } - $CONVERTEE$ = { - every_close_or_extended_family_member = { - custom = all_family_members_at_court - limit = { - exists = court_owner - court_owner = $CONVERTEE$ - NOT = { culture = $CULTURE$ } - is_ai = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - } - - # Make sure relevant non-significant characters convert - $CONVERTEE$ = { - hidden_effect = { - every_courtier_or_guest = { - limit = { - NOT = { culture = $CULTURE$ } - is_ai = yes - has_no_particular_noble_roots_trigger = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - if = { - limit = { - exists = $CONVERTEE$.capital_province - } - every_pool_character = { - province = $CONVERTEE$.capital_province - limit = { - NOT = { culture = $CULTURE$ } - is_ai = yes - has_no_particular_noble_roots_trigger = yes - save_temporary_scope_as = family_check - $CULTURE$ = { - any_parent_culture = { - this = scope:family_check.culture - } - } - } - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - } - } - } - $CONVERTEE$ = { - set_culture = $CULTURE$ - hidden_effect = { - add_character_flag = converted_culture_this_lifetime - } - } - - $CONVERTEE$ = { - every_vassal = { - limit = { - is_landed = yes - is_ai = yes - save_temporary_scope_as = vassal_check - $CULTURE$ = { - any_parent_culture = { - this = scope:vassal_check.culture - } - } - } - - run_interaction = { - interaction = request_culture_conversion_interaction - actor = $CONVERTEE$ - recipient = this - execute_threshold = accept - } - } - } -} diff --git a/common/scripted_effects/00_custom_loc_effects.txt b/common/scripted_effects/00_custom_loc_effects.txt deleted file mode 100644 index fdf6a1e019..0000000000 --- a/common/scripted_effects/00_custom_loc_effects.txt +++ /dev/null @@ -1,27 +0,0 @@ -#Custom Loc scripted effects -# all date calculations are done in DAYS -# to be run in the root character scope -get_period_of_time_word_setup_effect = { - set_variable = { - name = start_date - value = $START_DATE$ - } - set_variable = { - name = current_date - value = current_date - } - set_variable = { - name = period_of_time - value = { - value = var:current_date - subtract = var:start_date - } - } -} - -# To be called in the after block of the event where this is used so the variables get cleaned up -clean_up_period_of_time_word_effect = { - remove_variable = start_date - remove_variable = current_date - remove_variable = period_of_time -} diff --git a/common/scripted_effects/00_debug_and_shortcut_effects.txt b/common/scripted_effects/00_debug_and_shortcut_effects.txt new file mode 100644 index 0000000000..e2bdf3fe9b --- /dev/null +++ b/common/scripted_effects/00_debug_and_shortcut_effects.txt @@ -0,0 +1,48 @@ +################################################## +# Shortcuts +################################################## + +# Easily set-or-add to a variable. +increment_variable_effect = { + if = { + limit = { + NOT = { exists = var:$VAR$ } + } + set_variable = { + name = $VAR$ + value = $VAL$ + } + } + else = { + change_variable = { + name = $VAR$ + add = $VAL$ + } + } +} + +# Easily set-or-add to a _global_ variable - generally only for use in logging. +increment_global_variable_effect = { + if = { + limit = { + NOT = { exists = global_var:$VAR$ } + } + set_global_variable = { + name = $VAR$ + value = $VAL$ + } + } + else = { + change_global_variable = { + name = $VAR$ + add = $VAL$ + } + } +} + +################################################## +# Debug +################################################## + +log_debug_variable_for_persian_struggle_effect = { +} diff --git a/common/scripted_effects/00_decisions_effects.txt b/common/scripted_effects/00_decisions_effects.txt index 6939911b0f..a9b6f671f1 100644 --- a/common/scripted_effects/00_decisions_effects.txt +++ b/common/scripted_effects/00_decisions_effects.txt @@ -768,6 +768,52 @@ special_succession_tanistry_effect = { } } +special_succession_jirga_effect = { + if = { + limit = { highest_held_title_tier = tier_empire } + every_held_title = { + limit = { + tier = tier_empire + NOR = { + has_title_law_flag = advanced_succession_law + has_title_law_flag = elective_succession_law + } + } + add_title_law = tribal_elective_succession_law + } + every_vassal = { + limit = { special_succession_jirga_trigger = yes } + add_opinion = { + modifier = implemented_traditional_succession_law_opinion + years = 20 + target = root + } + custom = major_decisions.3100.tt_opinion_thing + } + } + else = { + every_held_title = { + limit = { + tier = tier_kingdom + NOR = { + has_title_law_flag = advanced_succession_law + has_title_law_flag = elective_succession_law + } + } + add_title_law = tribal_elective_succession_law + } + every_vassal = { + limit = { special_succession_jirga_trigger = yes } + add_opinion = { + modifier = implemented_traditional_succession_law_opinion + years = 20 + target = root + } + custom = major_decisions.3100.tt_opinion_jirga + } + } +} + ################################################## # Launch Hungarian Migration Effects @@ -878,6 +924,7 @@ found_cadet_house_decision_effect = { # Warcraft # add_achievement_flag_effect = { FLAG = achievement_a_house_of_my_own_flag } } + create_cadet_branch = yes add_prestige = $PRESTIGE$ hidden_effect = { diff --git a/common/scripted_effects/00_diarchy_scripted_effects.txt b/common/scripted_effects/00_diarchy_scripted_effects.txt index 8f43d4693c..ab4a098548 100644 --- a/common/scripted_effects/00_diarchy_scripted_effects.txt +++ b/common/scripted_effects/00_diarchy_scripted_effects.txt @@ -1127,6 +1127,285 @@ invalidate_diarch_grand_wedding_effect = { } } +sort_vizier_candidates_to_list_effect = { + scope:actor = { + every_courtier = { + limit = { is_valid_basic_candidate_for_vizier_trigger = yes } + add_to_list = characters_pre_filter + } + every_vassal = { + limit = { + is_valid_basic_candidate_for_vizier_trigger = yes + highest_held_title_tier <= tier_barony + } + add_to_list = characters_pre_filter + } + } + hidden_effect = { + while = { + count = 6 + ordered_in_list = { + list = characters_pre_filter + order_by = diarchy_vizier_succession_score_value + limit = { + NOT = { is_in_list = characters } + } + add_to_list = characters + } + } + } +} + +mulct_vizier_for_cash_effect = { + $VIZIER$ = { + # How much cash are we getting? + ## Miniscule + if = { + limit = { scope:mulct_vizier_interaction_minimal = yes } + if = { + limit = { + NOT = { exists = scope:free_mulct } + } + update_diarchy_swing_with_perspective_effect = { + SWING = vizier_mulct_swing_gain_miniscule_value + LIEGE = $VIZIER$.liege + } + } + hidden_effect = { add_short_term_gold = liege.minor_gold_value } + pay_short_term_gold = { + target = $VIZIER$.liege + gold = liege.minor_gold_value + } + } + ## Minor + else_if = { + limit = { scope:mulct_vizier_interaction_minor = yes } + if = { + limit = { + NOT = { exists = scope:free_mulct } + } + update_diarchy_swing_with_perspective_effect = { + SWING = vizier_mulct_swing_gain_minor_value + LIEGE = $VIZIER$.liege + } + } + hidden_effect = { add_short_term_gold = liege.medium_gold_value } + pay_short_term_gold = { + target = $VIZIER$.liege + gold = liege.medium_gold_value + } + } + ## Medium + else_if = { + limit = { scope:mulct_vizier_interaction_medium = yes } + if = { + limit = { + NOT = { exists = scope:free_mulct } + } + update_diarchy_swing_with_perspective_effect = { + SWING = vizier_mulct_swing_gain_medium_value + LIEGE = $VIZIER$.liege + } + } + hidden_effect = { add_short_term_gold = liege.major_gold_value } + pay_short_term_gold = { + target = $VIZIER$.liege + gold = liege.major_gold_value + } + } + ## Major + else_if = { + limit = { scope:mulct_vizier_interaction_major = yes } + if = { + limit = { + NOT = { exists = scope:free_mulct } + } + update_diarchy_swing_with_perspective_effect = { + SWING = vizier_mulct_swing_gain_major_value + LIEGE = $VIZIER$.liege + } + } + hidden_effect = { add_short_term_gold = liege.massive_gold_value } + pay_short_term_gold = { + target = $VIZIER$.liege + gold = liege.massive_gold_value + } + } + ## Massive + else_if = { + limit = { scope:mulct_vizier_interaction_massive = yes } + if = { + limit = { + NOT = { exists = scope:free_mulct } + } + update_diarchy_swing_with_perspective_effect = { + SWING = vizier_mulct_swing_gain_massive_value + LIEGE = $VIZIER$.liege + } + } + hidden_effect = { add_short_term_gold = liege.monumental_gold_value } + pay_short_term_gold = { + target = $VIZIER$.liege + gold = liege.monumental_gold_value + } + } + # Now we pawn everything they have at the relevant level. + ## T1 + if = { + limit = { + NOT = { exists = scope:free_mulct } + scope:mulct_vizier_interaction_minor = yes + } + custom_tooltip = mulct_vizier_interaction.vizier_loses_extravagance_t1_modifiers + hidden_effect = { + remove_character_modifier = vizier_extravagance_t1_treasure_modifier + remove_character_modifier = vizier_extravagance_t1_activities_modifier + remove_character_modifier = vizier_extravagance_t1_property_modifier + remove_character_modifier = vizier_extravagance_t1_charity_modifier + } + } + ## T2 + else_if = { + limit = { + NOT = { exists = scope:free_mulct } + scope:mulct_vizier_interaction_medium = yes + } + custom_tooltip = mulct_vizier_interaction.vizier_loses_extravagance_t2_modifiers + hidden_effect = { + remove_character_modifier = vizier_extravagance_t2_treasure_modifier + remove_character_modifier = vizier_extravagance_t2_activities_modifier + remove_character_modifier = vizier_extravagance_t2_property_modifier + remove_character_modifier = vizier_extravagance_t2_charity_modifier + } + } + ## T3 + else_if = { + limit = { + NOT = { exists = scope:free_mulct } + scope:mulct_vizier_interaction_major = yes + } + custom_tooltip = mulct_vizier_interaction.vizier_loses_extravagance_t3_modifiers + hidden_effect = { + remove_character_modifier = vizier_extravagance_t3_treasure_modifier + remove_character_modifier = vizier_extravagance_t3_activities_modifier + remove_character_modifier = vizier_extravagance_t3_property_modifier + remove_character_modifier = vizier_extravagance_t3_charity_modifier + } + } + ## T4 + else_if = { + limit = { + NOT = { exists = scope:free_mulct } + scope:mulct_vizier_interaction_massive = yes + } + custom_tooltip = mulct_vizier_interaction.vizier_loses_extravagance_t4_modifiers + hidden_effect = { + remove_character_modifier = vizier_extravagance_t4_treasure_modifier + remove_character_modifier = vizier_extravagance_t4_activities_modifier + remove_character_modifier = vizier_extravagance_t4_property_modifier + remove_character_modifier = vizier_extravagance_t4_charity_modifier + } + } + } +} + +mulct_vizier_for_cash_opinion_reaction_effect = { + # Greedy viziers hate this. + if = { + limit = { has_trait = greedy } + save_scope_value_as = { + name = opinion_val + value = { + value = -15 + multiply = $MULT$ + } + } + add_opinion = { + modifier = goldlust_opinion + target = scope:actor + opinion = scope:opinion_val + } + } + # Generous & most profligate viziers are sorta _eh_ about it. + else_if = { + limit = { + OR = { + has_trait = generous + has_trait = profligate + } + } + save_scope_value_as = { + name = opinion_val + value = { + value = -5 + multiply = $MULT$ + } + } + add_opinion = { + modifier = resigned_opinion + target = scope:actor + opinion = scope:opinion_val + } + } + # Loyal viziers consider it their duty & forgiving viziers accept it. + else_if = { + limit = { + OR = { + has_trait = loyal + has_trait = forgiving + } + } + save_scope_value_as = { + name = opinion_val + value = { + value = -7 + multiply = $MULT$ + } + } + add_opinion = { + modifier = resigned_opinion + target = scope:actor + opinion = scope:opinion_val + } + } + # Disloyal viziers think your duty can go stuff itself & vengeful viziers are irate. + else_if = { + limit = { + OR = { + has_trait = disloyal + has_trait = vengeful + } + } + save_scope_value_as = { + name = opinion_val + value = { + value = -12 + multiply = $MULT$ + } + } + add_opinion = { + modifier = took_my_coin_opinion + target = scope:actor + opinion = scope:opinion_val + } + } + # Everyone else is annoyed. + else = { + save_scope_value_as = { + name = opinion_val + value = { + value = -10 + multiply = $MULT$ + } + } + add_opinion = { + modifier = took_my_coin_opinion + target = scope:actor + opinion = scope:opinion_val + } + } +} + ################################################## # Events @@ -1248,7 +1527,7 @@ update_diarchy_swing_with_perspective_effect = { $LIEGE$ = { # Sort the effect. hidden_effect = { change_diarchy_swing = $SWING$ } - # Grab $LIEGE$'s' scope for loc. + # Grab $LIEGE$'s scope for loc. ## We save a weirdy scope name so we don't accidentally overwrite common scopes. save_scope_as = liege_loc } @@ -1481,3 +1760,25 @@ update_diarchy_swing_with_perspective_effect = { } ## No gain not accounted for: you should never be swinging by 0. } + +################################################## +# Vizierates + +vizierate_remove_extravagance_modifiers_effect = { + remove_character_modifier = vizier_extravagance_t1_treasure_modifier + remove_character_modifier = vizier_extravagance_t1_activities_modifier + remove_character_modifier = vizier_extravagance_t1_property_modifier + remove_character_modifier = vizier_extravagance_t1_charity_modifier + remove_character_modifier = vizier_extravagance_t2_treasure_modifier + remove_character_modifier = vizier_extravagance_t2_activities_modifier + remove_character_modifier = vizier_extravagance_t2_property_modifier + remove_character_modifier = vizier_extravagance_t2_charity_modifier + remove_character_modifier = vizier_extravagance_t3_treasure_modifier + remove_character_modifier = vizier_extravagance_t3_activities_modifier + remove_character_modifier = vizier_extravagance_t3_property_modifier + remove_character_modifier = vizier_extravagance_t3_charity_modifier + remove_character_modifier = vizier_extravagance_t4_treasure_modifier + remove_character_modifier = vizier_extravagance_t4_activities_modifier + remove_character_modifier = vizier_extravagance_t4_property_modifier + remove_character_modifier = vizier_extravagance_t4_charity_modifier +} diff --git a/common/scripted_effects/00_diplomacy_lifestyle_effects.txt b/common/scripted_effects/00_diplomacy_lifestyle_effects.txt deleted file mode 100644 index 484972ea6a..0000000000 --- a/common/scripted_effects/00_diplomacy_lifestyle_effects.txt +++ /dev/null @@ -1,473 +0,0 @@ -#Effects used in Statecraft Lifestyle Focus events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! -# -# A Flaw of Character: -# diplomacy_family_0008_appropriate_lesson_effect Used to evaluate if the lesson the player picked was suitable for their heir. -# -# The Power of Words: Outcome for complimenting somebody -# diplomacy_majesty_0004_outcome_effect -# -# Manipulating a Vassal: -# diplomacy_generic_0012_good_outcome_effect Successful Manipulation, gain Hook and Opinion -# diplomacy_generic_0012_bad_outcome_effect Failed Manipulation, lose Opinion -# diplomacy_generic_0012_terrible_outcome_effect Failed Manipulation, lose Hook and Prestige -# diplomacy_generic_0012_tooltip_effect Tooltip-Only Summary of Possible Outcomes -# -# Court Visit -# diplomacy_foreign_special_1010_court_visit_outcome_preview_effect Non-executing effect used to show the player a preview of possible event outcomes in a tooltip. -# diplomacy_foreign_special_1010_court_visit_outcome_great_effect The best possible outcome from this event chain -# diplomacy_foreign_special_1010_court_visit_outcome_good_effect The standard outcome from this event chain -# diplomacy_foreign_special_1010_court_visit_outcome_bad_effect The worst possible outcome from this event chain -# diplomacy_foreign_special_1010_clean_up_court_visit_effect Clears all flags and variables after the event chain has concluded. -# diplomacy_foreign_special_1010_court_visit_interesting_relation_okay_effect One of several effects for what your visitor does to your courtier behind closed doors. This one is neutral. -# diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect One of several effects for what your visitor does to your courtier behind closed doors. This one they become friends. -# diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect One of several effects for what your visitor does to your courtier behind closed doors. This one they turn them against you. -# diplomacy_foreign_special_1010_court_visit_interesting_relation_seduce_effect One of several effects for what your visitor does to your courtier behind closed doors. This one they seduce them. -# diplomacy_foreign_special_1010_court_visit_join_seduction_successfully_effect If your visitor tried to seduce your courtier, and you're spying on them, you have the chance of joining in! -# diplomacy_foreign_special_1010_court_visit_interesting_relation_outcome_effect Finalized the closed door relationship effect. - - -diplomacy_majesty_0004_outcome_effect = { - random_list = { - 1 = { - desc = diplomacy_majesty.0004.success.tt - show_chance = no - - show_as_tooltip = { - add_diplomacy_lifestyle_xp = medium_lifestyle_xp - reverse_add_opinion = { - target = scope:compliment_receiver - modifier = kindness_opinion - opinion = 25 - } - } - } - 1 = { - desc = diplomacy_majesty.0004.neutral.tt - show_chance = no - show_as_tooltip = { - add_diplomacy_lifestyle_xp = minor_lifestyle_xp - } - } - 1 = { - desc = diplomacy_majesty.0004.failure.tt - show_chance = no - - show_as_tooltip = { - reverse_add_opinion = { - target = scope:compliment_receiver - modifier = cruelty_opinion - opinion = -25 - } - } - } - } - - hidden_effect = { - if = { - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:good - } - trigger_event = { id = diplomacy_majesty.0005 days = 7 } - } - - else_if = { - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:neutral - } - send_interface_toast = { - left_icon = scope:compliment_receiver - title = diplomacy_majesty.0004.neutral_outcome.desc - - add_diplomacy_lifestyle_xp = minor_lifestyle_xp - } - } - - else_if = { - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:bad - } - trigger_event = { id = diplomacy_majesty.0006 days = 7 } - } - } -} - - - -# Court Visit Effects - -diplomacy_foreign_special_1010_court_visit_outcome_preview_effect = { - show_as_tooltip = { - $CHARACTER$ = { - random_list = { - 1 = { - show_chance = no - desc = diplomacy_foreign_special.1017.great - - root = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = 30 - } - if = { - limit = { $CHARACTER$ = scope:target_list_member_a } - custom_tooltip = diplomacy_foreign_special.1017.friends_a - } - else_if = { - limit = { $CHARACTER$ = scope:target_list_member_b } - custom_tooltip = diplomacy_foreign_special.1017.friends_b - } - else = { - custom_tooltip = diplomacy_foreign_special.1017.friends_c - } - add_diplomacy_lifestyle_perk_points = 1 - } - } - 1 = { - show_chance = no - desc = diplomacy_foreign_special.1017.good - - root = { - diplomacy_foreign_special_1010_court_visit_outcome_good_effect = { CHARACTER = $CHARACTER$ } - } - } - 1 = { - show_chance = no - desc = diplomacy_foreign_special.1017.bad - - root = { - diplomacy_foreign_special_1010_court_visit_outcome_bad_effect = { CHARACTER = $CHARACTER$ } - } - } - } - } - } - -} - -diplomacy_foreign_special_1010_court_visit_outcome_great_effect = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = 30 - } - hidden_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = 30 - } - } - progress_towards_friend_effect = { - CHARACTER = $CHARACTER$ - OPINION = 0 - REASON = friend_court_visit - } - add_diplomacy_lifestyle_perk_points = 1 -} - -diplomacy_foreign_special_1010_court_visit_outcome_good_effect = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = respect_opinion - opinion = 15 - } - hidden_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = 15 - } - } - add_diplomacy_lifestyle_perk_points = 1 -} - -diplomacy_foreign_special_1010_court_visit_outcome_bad_effect = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = disappointed_opinion - opinion = -15 - } -} - - -diplomacy_foreign_special_1010_clean_up_court_visit_effect = { - remove_variable = court_visit_points - remove_variable = no_of_court_visit_events - remove_character_flag = is_in_diplomacy_foreign_special_event - remove_character_flag = court_visit_hunt_or_dance - remove_character_flag = court_visit_dance_or_holy_place - remove_character_flag = private_dinner - remove_character_flag = compliment - remove_character_flag = in_success_event - remove_character_flag = in_failure_event -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_okay_effect = { - scope:foreign_guest = { - add_opinion = { - target = scope:interesting_relation - modifier = friendliness_opinion - opinion = 15 - } - reverse_add_opinion = { - target = scope:interesting_relation - modifier = friendliness_opinion - opinion = 15 - } - } -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect = { - scope:interesting_relation = { - set_relation_friend = { reason = friend_court_visit target = scope:foreign_guest } - } - scope:foreign_guest = { - hidden_effect = { - add_opinion = { - target = scope:interesting_relation - modifier = friendliness_opinion - opinion = 30 - } - reverse_add_opinion = { - target = scope:interesting_relation - modifier = friendliness_opinion - opinion = 30 - } - } - } -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect = { - scope:foreign_guest = { - if = { - limit = { - can_add_hook = { - target = scope:interesting_relation - type = manipulation_hook - } - } - add_hook = { - target = scope:interesting_relation - type = manipulation_hook - } - } - } - scope:interesting_relation = { - add_opinion = { - target = scope:foreign_guest - modifier = trust_opinion - opinion = 30 - } - add_opinion = { - target = scope:host_ruler - modifier = suspicion_opinion - opinion = -20 - } - hidden_effect = { if = { limit = { NOT = { has_relation_potential_rival = scope:host_ruler } } set_relation_potential_rival = scope:host_ruler } } - } -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_seduce_effect = { - scope:foreign_guest = { - set_relation_lover = { reason = lover_court_visit_seduction target = scope:interesting_relation involved_character = root } - - hidden_effect = { - intercourse_with_character_effect = { INTERCOURSE_CHARACTER = scope:interesting_relation } - add_opinion = { - target = scope:interesting_relation - modifier = romance_opinion - opinion = 30 - } - reverse_add_opinion = { - target = scope:interesting_relation - modifier = romance_opinion - opinion = 30 - } - } - } -} - -diplomacy_foreign_special_1010_court_visit_join_seduction_successfully_effect = { - $CHARACTER$ = { - if = { - limit = { - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = $CHARACTER$ - CHARACTER_2 = root - } - NOT = { - OR = { - has_relation_lover = root - is_consort_of = root - } - } - } - set_relation_lover = { reason = lover_court_visit_seduction target = root } - } - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - hidden_effect = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = pleased_opinion - opinion = 30 - } - } - } -} - -diplomacy_foreign_special_1010_court_visit_interesting_relation_outcome_effect = { - if = { - limit = { scope:private_dinner_outcome = flag:okay } - diplomacy_foreign_special_1010_court_visit_interesting_relation_okay_effect = yes - } - else_if = { - limit = { scope:private_dinner_outcome = flag:befriend } - diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect = yes - } - else_if = { - limit = { scope:private_dinner_outcome = flag:manipulate } - diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect = yes - } - else_if = { - limit = { scope:private_dinner_outcome = flag:seduce } - diplomacy_foreign_special_1010_court_visit_interesting_relation_seduce_effect = yes - } -} - -diplomacy_foreign_1150_successful_county_switch_effect = { - # Give your county/vassal to the neighbor - if = { - limit = { - scope:county.holder = scope:neighbor - } - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - scope:county = { - change_title_holder = { - holder = scope:ruler - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - else_if = { - limit = { - scope:ruler_vassal = { - highest_held_title_tier = tier_county - } - } - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - scope:ruler_vassal = { - change_liege = { - liege = scope:ruler - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - else = { - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - scope:county = { - change_title_holder = { - holder = scope:ruler - change = scope:change - } - } - } - # The neighbor gives his county/vassal to you. - if = { - limit = { - scope:neighbor_county.holder = scope:ruler - } - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - scope:neighbor_county = { - change_title_holder = { - holder = scope:neighbor - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - else = { - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - scope:neighbor_vassal = { - change_liege = { - liege = scope:neighbor - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - # Add xp - scope:ruler = { add_diplomacy_lifestyle_xp = major_lifestyle_experience } - # Add positive opinion - scope:neighbor = { - add_opinion = { - modifier = respect_opinion - target = scope:ruler - opinion = low_positive_opinion - } - } -} - -diplomacy_foreign_1150_failed_county_switch_effect = { - # Add xp - scope:ruler = { add_diplomacy_lifestyle_xp = miniscule_lifestyle_experience } - # Add negative opinion (both neighbor and possible vassal) - scope:neighbor = { - add_opinion = { - modifier = respect_opinion - target = scope:ruler - opinion = low_negative_opinion - } - } - if = { - limit = { - exists = scope:neighbor_vassal - } - scope:neighbor_vassal = { - add_opinion = { - modifier = respect_opinion - target = scope:ruler - opinion = medium_negative_opinion - } - } - } - # Reduce control in your county (...sell-out) - scope:neighbor_county = { - change_county_control = major_county_control_loss - } -} diff --git a/common/scripted_effects/00_diplomacy_perk_effects.txt b/common/scripted_effects/00_diplomacy_perk_effects.txt deleted file mode 100644 index 2ce6020792..0000000000 --- a/common/scripted_effects/00_diplomacy_perk_effects.txt +++ /dev/null @@ -1,928 +0,0 @@ - -### Effects for handling Diplomacy Lifestyle Perks - -# sound_foundations_skill_gain_effect: Randomly gain a skill point because of your child -# sound_foundations_random_removal_effect: Removes a random one of the modifiers added by Sound Foundations - -sound_foundations_skill_gain_effect = { - if = { - limit = { - NOT = { has_variable = current_sound_foundations_value } - } - set_variable = { - name = current_sound_foundations_value # Number of applied modifiers - value = 0 - } - } - every_child = { - add_to_temporary_list = current_amount_of_children - } - - if = { - limit = { - exists = var:current_sound_foundations_value - save_temporary_scope_as = affected_parent - var:current_sound_foundations_value < sound_foundations_max - any_in_list = { - list = current_amount_of_children - count > scope:affected_parent.var:current_sound_foundations_value - } - } - random_list = { - 1 = { - add_character_modifier = { - modifier = sound_foundations_martial_gain - } - } - 1 = { - add_character_modifier = { - modifier = sound_foundations_diplomacy_gain - } - } - 1 = { - add_character_modifier = { - modifier = sound_foundations_intrigue_gain - } - } - 1 = { - add_character_modifier = { - modifier = sound_foundations_stewardship_gain - } - } - 1 = { - add_character_modifier = { - modifier = sound_foundations_learning_gain - } - } - } - change_variable = { - name = current_sound_foundations_value - add = 1 - } - } -} - -sound_foundations_random_removal_effect = { - if = { - limit = { - has_perk = sound_foundations_perk - } - every_child = { - add_to_temporary_list = current_amount_of_children - } - - if = { - limit = { - exists = var:current_sound_foundations_value - save_temporary_scope_as = affected_parent - var:current_sound_foundations_value <= sound_foundations_max - var:current_sound_foundations_value > 0 - any_in_list = { - list = current_amount_of_children - count > scope:affected_parent.var:current_sound_foundations_value - NOT = { has_character_flag = about_to_die_but_not_dead_yet_flag } # Applied from on action death; called before imminent death - } - } - - random_list = { - 1 = { - trigger = { - has_character_modifier = sound_foundations_martial_gain - } - remove_character_modifier = sound_foundations_martial_gain - } - 1 = { - trigger = { - has_character_modifier = sound_foundations_diplomacy_gain - } - remove_character_modifier = sound_foundations_diplomacy_gain - } - 1 = { - trigger = { - has_character_modifier = sound_foundations_intrigue_gain - } - remove_character_modifier = sound_foundations_intrigue_gain - } - 1 = { - trigger = { - has_character_modifier = sound_foundations_stewardship_gain - } - remove_character_modifier = sound_foundations_stewardship_gain - } - 1 = { - trigger = { - has_character_modifier = sound_foundations_learning_gain - } - remove_character_modifier = sound_foundations_learning_gain - } - } - - change_variable = { - name = current_sound_foundations_value - subtract = 1 - } - } - } -} - - - -groomed_to_rule_random_skills_effect = { - save_scope_as = child - if = { - limit = { - trigger_if = { - limit = { age <= childhood_education_start_age } - has_trait = rowdy # Default trait for martial ed - } - trigger_else_if = { - limit = { age < adulthood_start_age } - has_focus = education_martial - } - trigger_else = { - has_trait = education_martial - } - } - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:martial - } - } - else_if = { - limit = { - trigger_if = { - limit = { age <= childhood_education_start_age } - has_trait = charming # Default trait for intrigue ed - } - trigger_else_if = { - limit = { age < adulthood_start_age } - has_focus = education_intrigue - } - trigger_else = { - has_trait = education_intrigue - } - } - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:intrigue - } - } - else_if = { - limit = { - trigger_if = { - limit = { age <= childhood_education_start_age } - has_trait = curious # Default trait for diplomacy ed - } - trigger_else_if = { - limit = { age < adulthood_start_age } - has_focus = education_diplomacy - } - trigger_else = { - has_trait = education_diplomacy - } - } - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:diplomacy - } - } - else_if = { - limit = { - trigger_if = { - limit = { age <= childhood_education_start_age } - has_trait = bossy # Default trait for stewardship ed - } - trigger_else_if = { - limit = { age < adulthood_start_age } - has_focus = education_stewardship - } - trigger_else = { - has_trait = education_stewardship - } - } - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:stewardship - } - } - else_if = { - limit = { - trigger_if = { - limit = { age <= childhood_education_start_age } - has_trait = pensive # Default trait for learning ed - } - trigger_else_if = { - limit = { age < adulthood_start_age } - has_focus = education_learning - } - trigger_else = { - has_trait = education_learning - } - } - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:learning - } - } - else = { # Fallback in case something goes wrong - random_list = { - 1 = { - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:martial - } - } - 1 = { - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:diplomacy - } - } - 1 = { - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:intrigue - } - } - 1 = { - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:stewardship - } - } - 1 = { - save_temporary_scope_value_as = { - name = skill_to_increase - value = flag:learning - } - } - } - } - if = { - limit = { - scope:skill_to_increase = flag:martial - } - random_list = { - 1 = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_martial_skill = 1 - } - scope:parent = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_martial_skill = 1 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_martial_skill = 2 - } - scope:parent = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_martial_skill = 2 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_martial_skill = 3 - } - scope:parent = { - send_interface_message = { - type = event_martial_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_martial_skill = 3 - } - } - } - } - } - } - } - else_if = { - limit = { - scope:skill_to_increase = flag:intrigue - } - random_list = { - 1 = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_intrigue_skill = 1 - } - scope:parent = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_intrigue_skill = 1 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_intrigue_skill = 2 - } - scope:parent = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_intrigue_skill = 2 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_intrigue_skill = 3 - } - scope:parent = { - send_interface_message = { - type = event_intrigue_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_intrigue_skill = 3 - } - } - } - } - } - } - } - else_if = { - limit = { - scope:skill_to_increase = flag:diplomacy - } - random_list = { - 1 = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_diplomacy_skill = 1 - } - scope:parent = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_diplomacy_skill = 1 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_diplomacy_skill = 2 - } - scope:parent = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_diplomacy_skill = 2 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_diplomacy_skill = 3 - } - scope:parent = { - send_interface_message = { - type = event_diplomacy_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_diplomacy_skill = 3 - } - } - } - } - } - } - } - else_if = { - limit = { - scope:skill_to_increase = flag:stewardship - } - random_list = { - 1 = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_stewardship_skill = 1 - } - scope:parent = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_stewardship_skill = 1 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_stewardship_skill = 2 - } - scope:parent = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_stewardship_skill = 2 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_stewardship_skill = 3 - } - scope:parent = { - send_interface_message = { - type = event_stewardship_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_stewardship_skill = 3 - } - } - } - } - } - } - } - else_if = { - limit = { - scope:skill_to_increase = flag:learning - } - random_list = { - 1 = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_learning_skill = 1 - } - scope:parent = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_learning_skill = 1 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_learning_skill = 2 - } - scope:parent = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_learning_skill = 2 - } - } - } - } - } - 1 = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:parent - - add_learning_skill = 3 - } - scope:parent = { - send_interface_message = { - type = event_learning_good - title = groomed_to_rule_msg_title - left_icon = scope:child - - show_as_tooltip = { - scope:child = { - add_learning_skill = 3 - } - } - } - } - } - } - } -} - -childhood_groomed_to_rule_skill_gain_effect = { - every_parent = { - limit = { - is_alive = yes - has_perk = groomed_to_rule_perk - } - save_scope_as = parent - root = { - groomed_to_rule_random_skills_effect = yes - } - } -} - - -save_commission_epic_loc_variables = { - story_owner = { - set_variable = { - name = composition_type - value = scope:story.var:composition_type - } - set_variable = { - name = composition_detail - value = scope:story.var:composition_detail - } - if = { - limit = { - exists = scope:story.var:composer - } - set_variable = { - name = composer_exists - value = yes - } - scope:story.var:composer = { - save_scope_as = composer - } - } - } -} - -clear_commission_epic_loc_variables = { - remove_variable = composition_type - remove_variable = composition_detail - remove_variable = composer_exists -} - -update_embassies_effect = { - if = { - limit = { - has_perk = embassies_perk - } - remove_all_character_modifier_instances = embassies_perk_modifier - - set_variable = { - name = current_embassies_perk_value - value = 0 - } - set_variable = { - name = previous_current_embassies_perk_value - value = 0 - } - - if = { - limit = { - exists = var:previous_current_embassies_perk_value - exists = var:current_embassies_perk_value - } - - every_ally = { - prev = { - change_variable = { - name = previous_current_embassies_perk_value - add = 1 - } - if = { - limit = { - exists = var:current_embassies_perk_value - var:current_embassies_perk_value < embassies_max - } - change_variable = { - name = current_embassies_perk_value - add = 1 - } - add_character_modifier = { - modifier = embassies_perk_modifier - } - } - } - } - - # For players that were over the cap before the change so that they don't feel like they've "lost progress" - save_temporary_scope_as = variable_check - if = { - limit = { - var:current_embassies_perk_value < scope:variable_check.var:previous_current_embassies_perk_value - } - set_variable = { - name = current_embassies_perk_value - value = var:previous_current_embassies_perk_value - } - } - } - } -} - -try_remove_perk_alliance_opinion_effect = { - if = { - limit = { - has_opinion_modifier = { - modifier = perk_negotiated_alliance_opinion - target = $TARGET$ - } - } - remove_opinion = { - modifier = perk_negotiated_alliance_opinion - target = $TARGET$ - } - } -} - -# friendly_counsel_skill_gain_effect: Randomly gain a skill point because of your friend -# friendly_counsel_random_removal_effect: Removes a random one of the modifiers added by Friendly Counsel -friendly_counsel_skill_gain_effect = { - if = { - limit = { - has_perk = friendly_counsel_perk - } - if = { - limit = { - NOT = { has_variable = current_friendly_counsel_perk_value } - } - set_variable = { - name = current_friendly_counsel_perk_value - value = 0 - } - } - - every_relation = { - type = friend - add_to_temporary_list = friendly_counsel_friends - } - every_relation = { - type = best_friend - add_to_temporary_list = friendly_counsel_friends - } - - if = { - limit = { - exists = var:current_friendly_counsel_perk_value - save_temporary_scope_as = affected_friend - var:current_friendly_counsel_perk_value < friendly_counsel_max - any_in_list = { - list = friendly_counsel_friends - count > scope:affected_friend.var:current_friendly_counsel_perk_value - } - } - random_list = { - 1 = { - add_character_modifier = { - modifier = friendly_counsel_martial_gain - } - } - 1 = { - add_character_modifier = { - modifier = friendly_counsel_diplomacy_gain - } - } - 1 = { - add_character_modifier = { - modifier = friendly_counsel_intrigue_gain - } - } - 1 = { - add_character_modifier = { - modifier = friendly_counsel_stewardship_gain - } - } - 1 = { - add_character_modifier = { - modifier = friendly_counsel_learning_gain - } - } - } - change_variable = { - name = current_friendly_counsel_perk_value - add = 1 - } - } - } -} - -friendly_counsel_random_removal_effect = { - if = { - limit = { - has_perk = friendly_counsel_perk - } - - every_relation = { - type = friend - add_to_temporary_list = friendly_counsel_friends - } - every_relation = { - type = best_friend - add_to_temporary_list = friendly_counsel_friends - } - - if = { - limit = { - exists = var:current_friendly_counsel_perk_value - save_temporary_scope_as = affected_friend - var:current_friendly_counsel_perk_value <= friendly_counsel_max - var:current_friendly_counsel_perk_value > 0 - any_in_list = { - list = friendly_counsel_friends - count > scope:affected_friend.var:current_friendly_counsel_perk_value - NOT = { has_character_flag = about_to_die_but_not_dead_yet_flag } - } - } - random_list = { - 1 = { - trigger = { - has_character_modifier = friendly_counsel_martial_gain - } - remove_character_modifier = friendly_counsel_martial_gain - } - 1 = { - trigger = { - has_character_modifier = friendly_counsel_diplomacy_gain - } - remove_character_modifier = friendly_counsel_diplomacy_gain - } - 1 = { - trigger = { - has_character_modifier = friendly_counsel_intrigue_gain - } - remove_character_modifier = friendly_counsel_intrigue_gain - } - 1 = { - trigger = { - has_character_modifier = friendly_counsel_stewardship_gain - } - remove_character_modifier = friendly_counsel_stewardship_gain - } - 1 = { - trigger = { - has_character_modifier = friendly_counsel_learning_gain - } - remove_character_modifier = friendly_counsel_learning_gain - } - } - - change_variable = { - name = current_friendly_counsel_perk_value - subtract = 1 - } - } - } -} - -update_confidants_effect = { - if = { - limit = { - has_perk = confidants_perk - } - remove_all_character_modifier_instances = confidants_perk_modifier - save_temporary_scope_as = confidant_scope - - set_variable = { - name = current_confidants_perk_value - value = 0 - } - - if = { - limit = { - exists = var:current_confidants_perk_value - } - every_relation = { - type = friend - add_to_temporary_list = confidant_friend_list - } - every_in_list = { - list = confidant_friend_list - scope:confidant_scope = { - if = { - limit = { - exists = var:current_confidants_perk_value - var:current_confidants_perk_value < confidants_max - } - change_variable = { - name = current_confidants_perk_value - add = 1 - } - add_character_modifier = { - modifier = confidants_perk_modifier - } - } - } - } - remove_variable = current_confidants_perk_value - } - } -} diff --git a/common/scripted_effects/00_education_effects.txt b/common/scripted_effects/00_education_effects.txt index a23b1ef30e..90faa9adde 100644 --- a/common/scripted_effects/00_education_effects.txt +++ b/common/scripted_effects/00_education_effects.txt @@ -2161,6 +2161,75 @@ dynasty_legacy_education_boost_effect = { } cultural_traditions_education_boost_effect = { + # FP3 Beacon of Learning + if = { + limit = { + any_relation = { + type = guardian + culture = { has_cultural_parameter = guardian_education_better_outcomes } + } + } + if = { + limit = { exists = var:education_diplomacy_variable } + change_variable = { + name = education_diplomacy_variable + add = { + value = var:education_diplomacy_variable + divide = 4 + round = yes + max = 3 # This effect shouldn't be better than a good court tutor + } + } + } + else_if = { + limit = { exists = var:education_martial_variable } + change_variable = { + name = education_martial_variable + add = { + value = var:education_martial_variable + divide = 4 + round = yes + max = 3 + } + } + } + else_if = { + limit = { exists = var:education_intrigue_variable } + change_variable = { + name = education_intrigue_variable + add = { + value = var:education_intrigue_variable + divide = 4 + round = yes + max = 3 + } + } + } + else_if = { + limit = { exists = var:education_stewardship_variable } + change_variable = { + name = education_stewardship_variable + add = { + value = var:education_stewardship_variable + divide = 4 + round = yes + max = 3 + } + } + } + else_if = { + limit = { exists = var:education_learning_variable } + change_variable = { + name = education_learning_variable + add = { + value = var:education_learning_variable + divide = 4 + round = yes + max = 3 + } + } + } + } if = { limit = { culture = { @@ -2216,10 +2285,10 @@ court_tutor_education_boost_effect = { court_owner = { random_court_position_holder = { type = court_tutor_court_position - limit = { aptitude:court_tutor_court_position >= 5 } - alternative_limit = { aptitude:court_tutor_court_position >= 4 } + limit = { aptitude:court_tutor_court_position >= 4 } alternative_limit = { aptitude:court_tutor_court_position >= 3 } alternative_limit = { aptitude:court_tutor_court_position >= 2 } + alternative_limit = { aptitude:court_tutor_court_position >= 1 } alternative_limit = { always = yes } save_scope_as = court_tutor } @@ -2229,7 +2298,7 @@ court_tutor_education_boost_effect = { random_list = { 10 = { # Small chance for a GREAT boost trigger = { - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } change_variable = { name = education_diplomacy_variable @@ -2239,11 +2308,11 @@ court_tutor_education_boost_effect = { 40 = { modifier = { add = 20 - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } modifier = { add = 10 - scope:court_tutor.aptitude:court_tutor_court_position = 4 + scope:court_tutor.aptitude:court_tutor_court_position = 3 } change_variable = { name = education_diplomacy_variable @@ -2271,7 +2340,7 @@ court_tutor_education_boost_effect = { random_list = { 10 = { # Small chance for a GREAT boost trigger = { - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } change_variable = { name = education_martial_variable @@ -2281,11 +2350,11 @@ court_tutor_education_boost_effect = { 40 = { modifier = { add = 20 - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } modifier = { add = 10 - scope:court_tutor.aptitude:court_tutor_court_position = 4 + scope:court_tutor.aptitude:court_tutor_court_position = 3 } change_variable = { name = education_martial_variable @@ -2313,7 +2382,7 @@ court_tutor_education_boost_effect = { random_list = { 10 = { # Small chance for a GREAT boost trigger = { - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } change_variable = { name = education_stewardship_variable @@ -2323,11 +2392,11 @@ court_tutor_education_boost_effect = { 40 = { modifier = { add = 20 - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } modifier = { add = 10 - scope:court_tutor.aptitude:court_tutor_court_position = 4 + scope:court_tutor.aptitude:court_tutor_court_position = 3 } change_variable = { name = education_stewardship_variable @@ -2355,7 +2424,7 @@ court_tutor_education_boost_effect = { random_list = { 10 = { # Small chance for a GREAT boost trigger = { - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } change_variable = { name = education_intrigue_variable @@ -2365,11 +2434,11 @@ court_tutor_education_boost_effect = { 40 = { modifier = { add = 20 - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } modifier = { add = 10 - scope:court_tutor.aptitude:court_tutor_court_position = 4 + scope:court_tutor.aptitude:court_tutor_court_position = 3 } change_variable = { name = education_intrigue_variable @@ -2397,7 +2466,7 @@ court_tutor_education_boost_effect = { random_list = { 10 = { # Small chance for a GREAT boost trigger = { - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } change_variable = { name = education_learning_variable @@ -2407,11 +2476,11 @@ court_tutor_education_boost_effect = { 40 = { modifier = { add = 20 - scope:court_tutor.aptitude:court_tutor_court_position = 5 + scope:court_tutor.aptitude:court_tutor_court_position = 4 } modifier = { add = 10 - scope:court_tutor.aptitude:court_tutor_court_position = 4 + scope:court_tutor.aptitude:court_tutor_court_position = 3 } change_variable = { name = education_learning_variable @@ -2828,6 +2897,13 @@ ward_depart_effect = { } } custom_tooltip = guardian_leaves_for_ward_tt + scope:ward = { + set_variable = { + name = ward_waiting_for_guardian + years = 2 + value = scope:guardian + } + } } else = { scope:ward = { @@ -2868,6 +2944,13 @@ ward_depart_effect = { } } custom_tooltip = ward_leaves_for_guardian_tt + scope:guardian = { + set_variable = { + name = guardian_waiting_for_ward + years = 2 + value = scope:ward + } + } } } } diff --git a/common/scripted_effects/00_elope_scheme_effects.txt b/common/scripted_effects/00_elope_scheme_effects.txt deleted file mode 100644 index a2d0420873..0000000000 --- a/common/scripted_effects/00_elope_scheme_effects.txt +++ /dev/null @@ -1,316 +0,0 @@ -#Scripted effects relating to Murder Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#abduct_outcome_roll_effect -#abduct_success_effect -#abduct_failure_effect - -###################################################################### -# EFFECTS -######################################a################################ - -elope_opinion_list_builder_effect = { - $OWNER$ = { - every_spouse = { - limit = { NOT = { this = $TARGET$ } } - add_to_temporary_list = $LIST_NAME$ - } - } - $TARGET$ = { - every_spouse = { - limit = { NOT = { this = $OWNER$ } } - add_to_temporary_list = $LIST_NAME$ - } - liege = { - if = { - limit = { - NOR = { - is_in_list = $LIST_NAME$ - this = $OWNER$ - } - } - add_to_temporary_list = $LIST_NAME$ - } - } - } -} - -elope_success_effect = { - elope_opinion_list_builder_effect = { OWNER = $OWNER$ TARGET = $TARGET$ LIST_NAME = elope_opinion_list } - - #Because this can be used in events or interaction window, we save root_scope here - if = { - limit = { exists = scope:actor } - scope:actor = { save_temporary_scope_as = root_scope } - } - else = { - root = { save_temporary_scope_as = root_scope } - } - - #Target prisoner release - $TARGET$ = { - if = { - limit = { is_imprisoned = yes } - release_from_prison = yes - } - } - - $OWNER$ = { - #Tooltip for marriage - show_as_tooltip = { - if = { - limit = { is_female = yes } - marry_matrilineal = $TARGET$ - } - else = { - marry = $TARGET$ - } - } - - #Owner's personal consequences (hidden or not), divorce happens here - if = { - limit = { - scope:root_scope = $OWNER$ - } - elope_success_personal_consequences_effect = { CHARACTER = $OWNER$ } - } - else = { - hidden_effect = { elope_success_personal_consequences_effect = { CHARACTER = $OWNER$ } } - } - } - - #Opinions - ordered_in_list = { - list = elope_opinion_list - max = 10 #To make sure we include all - check_range_bounds = no - order_by = ai_vengefulness - - #Towards owner - if = { - limit = { - OR = { #Owner wants to see everything, root wants to see their own - scope:root_scope = $OWNER$ - scope:root_scope = this - } - } - elope_success_opinion_rivalry_effect = { CHARACTER = $OWNER$ } - } - else = { - hidden_effect = { elope_success_opinion_rivalry_effect = { CHARACTER = $OWNER$ } } - } - - #Towards target - if = { - limit = { scope:root_scope = this } #Root wants to see their own - elope_success_opinion_rivalry_effect = { CHARACTER = $TARGET$ } - } - else = { - hidden_effect = { elope_success_opinion_rivalry_effect = { CHARACTER = $TARGET$ } } - } - } - - - hidden_effect = { - #Target's personal consequences, divorce happens here - elope_success_personal_consequences_effect = { CHARACTER = $TARGET$ } - - #Marriage - $OWNER$ = { #We do this last so old spouses remain when we run personal consequences effect - if = { - limit = { is_female = yes } - marry_matrilineal = $TARGET$ - } - else = { - marry = $TARGET$ - } - } - } -} - -elope_failure_discovered_effect = { - elope_opinion_list_builder_effect = { OWNER = $OWNER$ TARGET = $TARGET$ LIST_NAME = elope_opinion_list } - - #Expose lover secret - $OWNER$ = { - random_secret = { - limit = { - secret_type = secret_lover - secret_target = $TARGET$ - } - - if = { - limit = { $DISCOVERER$ = { is_ai = yes } } - expose_secret = $DISCOVERER$ - } - else = { - reveal_to = $DISCOVERER$ - } - } - } - - #Opinions - ordered_in_list = { - list = elope_opinion_list - max = 10 #To make sure we include all - check_range_bounds = no - order_by = ai_vengefulness - - #Towards owner - if = { - limit = { - OR = { #Owner wants to see everything, root wants to see their own - root = $OWNER$ - root = this - } - } - elope_failure_discovered_opinion_rivalry_effect = { CHARACTER = $OWNER$ } - } - else = { - hidden_effect = { elope_failure_discovered_opinion_rivalry_effect = { CHARACTER = $OWNER$ } } - } - - #Towards target - if = { - limit = { root = this } #Root wants to see their own - elope_failure_discovered_opinion_rivalry_effect = { CHARACTER = $TARGET$ } - } - else = { - hidden_effect = { elope_failure_discovered_opinion_rivalry_effect = { CHARACTER = $TARGET$ } } - } - } -} - -elope_success_opinion_rivalry_effect = { - #Crime opinion - add_opinion = { - target = $CHARACTER$ - modifier = elopement_opinion - } - - #Rivalry - if = { - limit = { - can_set_relation_rival_trigger = { CHARACTER = $CHARACTER$ } - is_ai = yes - trigger_if = { - limit = { is_spouse_of = $CHARACTER$ } - ai_vengefulness >= low_positive_ai_value - } - trigger_else = { - ai_vengefulness > 0 - } - } - if = { - limit = { - can_set_relation_nemesis_trigger = { CHARACTER = $CHARACTER$ } - ai_vengefulness >= medium_positive_ai_value - } - set_relation_nemesis = { - reason = nemesis_elopement - copy_reason = rival - target = $CHARACTER$ - } - } - else = { - set_relation_rival = { - target = $CHARACTER$ - reason = rival_eloped - } - } - } - else_if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = $CHARACTER$ } - } - hidden_effect = { set_relation_potential_rival = $CHARACTER$ } - } -} - -elope_success_personal_consequences_effect = { - $CHARACTER$ = { - - #Divorce - if = { - limit = { - is_married = yes - } - every_spouse = { - save_temporary_scope_as = eloper_divorcee - - divorce_effect = { - DIVORCER = $CHARACTER$ - DIVORCEE = scope:eloper_divorcee - } - if = { - limit = { has_relation_lover = $CHARACTER$ } - remove_relation_lover = $CHARACTER$ - } - } - - #Divorce consequences - if = { - limit = { faith = { NOT = { has_doctrine = doctrine_divorce_allowed } } } - add_prestige_level = -1 - add_piety_level = -1 - - if = { - limit = { - faith = { has_doctrine = tenet_communion } - NOT = { has_trait = excommunicated } - } - add_trait = excommunicated - } - } - } - - #Break betrothal - if = { - limit = { is_betrothed = yes } - reverse_add_opinion = { - modifier = broke_betrothal_opinion - target = betrothed - } - break_betrothal = betrothed - if = { - limit = { - has_been_promised_grand_wedding = yes - } - break_grand_wedding_betrothal_effect = yes - } - } - - #End concubinage - if = { - limit = { is_concubine = yes } - liege = { - remove_concubine = $CHARACTER$ - - if = { - limit = { has_relation_lover = $CHARACTER$ } - remove_relation_lover = $CHARACTER$ - } - } - add_prestige_level = -1 - } - } -} - -elope_failure_discovered_opinion_rivalry_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = attempted_elopement_opinion - } - - #Rivalry - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = $CHARACTER$ } - } - hidden_effect = { set_relation_potential_rival = $CHARACTER$ } - } -} diff --git a/common/scripted_effects/00_ep1_artifact_creation_effects.txt b/common/scripted_effects/00_ep1_artifact_creation_effects.txt index ffb2a85153..ab4e35b3f5 100644 --- a/common/scripted_effects/00_ep1_artifact_creation_effects.txt +++ b/common/scripted_effects/00_ep1_artifact_creation_effects.txt @@ -23,31 +23,31 @@ get_artifact_quality_effect = { save_scope_value_as = { name = random_quality_bonus value = 4 - } + } } 20 = { save_scope_value_as = { name = random_quality_bonus value = 8 - } + } } 20 = { save_scope_value_as = { name = random_quality_bonus value = 12 - } + } } 20 = { save_scope_value_as = { name = random_quality_bonus value = 16 - } + } } 20 = { save_scope_value_as = { name = random_quality_bonus value = 20 - } + } } } } @@ -60,31 +60,31 @@ get_artifact_quality_effect = { save_scope_value_as = { name = random_inspired_skill_quality_bonus value = 0.5 - } + } } 20 = { save_scope_value_as = { name = random_inspired_skill_quality_bonus value = 1 - } + } } 20 = { save_scope_value_as = { name = random_inspired_skill_quality_bonus value = 2 - } + } } 20 = { save_scope_value_as = { name = random_inspired_skill_quality_bonus value = 2.5 - } + } } 20 = { save_scope_value_as = { name = random_inspired_skill_quality_bonus value = 3 - } + } } } save_scope_value_as = { @@ -134,7 +134,7 @@ get_artifact_quality_effect = { limit = { exists = scope:inspiration_owner } scope:inspiration_owner = { # Bonus quality from high skills, depending on inspiration type. - add = { + add = { if = { limit = { ep1_character_had_or_has_inspiration_type_trigger = { TYPE = armor } } value = armor_inspiration_average_skill_value @@ -213,7 +213,7 @@ get_artifact_quality_effect = { add = 20 } } - + # Bonuses from Buildings if = { #Smiths line limit = { @@ -407,9 +407,9 @@ get_artifact_quality_effect = { } add = 20 } - - # Family Epic base quality + + # Family Epic base quality if = { limit = { exists = scope:owner @@ -492,7 +492,7 @@ get_artifact_wealth_effect = { multiply = 0.50 } } - + if = { limit = { exists = scope:inspiration_owner @@ -595,7 +595,7 @@ get_artifact_wealth_effect = { # Lower wealth for 'local artisans', who should produce lower-quality artifacts. if = { - limit = { + limit = { exists = scope:inspiration_owner scope:inspiration_owner = { has_character_flag = local_artisan @@ -610,7 +610,7 @@ get_artifact_wealth_effect = { } max = 20 } - + # Exotic Arms event if = { limit = { exists = scope:exotic_blade_quality } @@ -634,44 +634,81 @@ change_artifact_quality_effect = { } if = { limit = { - $AMOUNT$ > 3 + scope:inspiration = { has_inspiration_type = research_inspiration } } - custom_tooltip = change_artifact_quality_effect_gain - } - else_if = { - limit = { - $AMOUNT$ > 0 + if = { + limit = { + $AMOUNT$ > 3 + } + custom_tooltip = fp3_scholarship_research_success_gain_effect } - custom_tooltip = change_artifact_quality_effect_slight_gain - } - else_if = { - limit = { - $AMOUNT$ > -3 + else_if = { + limit = { + $AMOUNT$ < -3 + } + custom_tooltip = fp3_scholarship_research_success_loss_effect } - custom_tooltip = change_artifact_quality_effect_slight_loss - } - else_if = { - limit = { - $AMOUNT$ <= -3 + else_if = { + limit = { + $AMOUNT$ > 0 + } + custom_tooltip = fp3_scholarship_research_success_slight_gain_effect + } + else_if = { + limit = { + $AMOUNT$ < 0 + } + custom_tooltip = fp3_scholarship_research_success_slight_loss_effect + } + scope:inspiration_owner = { + change_variable = { + name = research_success_chance + add = $AMOUNT$ + } } - custom_tooltip = change_artifact_quality_effect_loss } - hidden_effect = { + else = { if = { limit = { - NOT = { - exists = var:artifact_quality - } + $AMOUNT$ > 3 } - set_variable = { - name = artifact_quality - value = $AMOUNT$ + custom_tooltip = change_artifact_quality_effect_gain + } + else_if = { + limit = { + $AMOUNT$ > 0 } + custom_tooltip = change_artifact_quality_effect_slight_gain } - else = { - change_variable = { - name = artifact_quality - add = $AMOUNT$ + else_if = { + limit = { + $AMOUNT$ > -3 + } + custom_tooltip = change_artifact_quality_effect_slight_loss + } + else_if = { + limit = { + $AMOUNT$ <= -3 + } + custom_tooltip = change_artifact_quality_effect_loss + } + hidden_effect = { + if = { + limit = { + NOT = { + exists = var:artifact_quality + } + } + set_variable = { + name = artifact_quality + value = $AMOUNT$ + } + } + else = { + change_variable = { + name = artifact_quality + add = $AMOUNT$ + } } } } @@ -739,15 +776,15 @@ get_cloth_type_sturdy_effect = { limit = { NOT = { exists = scope:$SCOPE_NAME$ } } - random_list = { + random_list = { # Wool # - Found literally everywhere - 30 = { # Simple wool fabric, can vary wildly in quality and appearance depending on the yarn used to wave it as well as the weaver's skill. - trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 70 } } + 30 = { # Simple wool fabric, can vary wildly in quality and appearance depending on the yarn used to wave it as well as the weaver's skill. + trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 70 } } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:wool } } 10 = { # Wool from the very first shearing of a sheep. Soft, elastic, and slippery, used in high-grade textiles. - trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 70 MAX = 999 } } + trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 70 MAX = 999 } } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:lambswool } } @@ -757,7 +794,7 @@ get_cloth_type_sturdy_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 30 MAX = 999 } NOT = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_no_silk } } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:silk } } @@ -767,7 +804,7 @@ get_cloth_type_sturdy_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_linen } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:linen } } 30 = { # Twill cotton-linen blend. As it a mixed fabric, practicing Jews are forbidden to wear it. @@ -785,7 +822,7 @@ get_cloth_type_sturdy_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_cotton } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:cotton } } } @@ -798,11 +835,11 @@ get_cloth_type_decorative_thread_effect = { limit = { NOT = { exists = scope:$SCOPE_NAME$ } } - random_list = { + random_list = { # Wool # - Found literally everywhere 10 = { # Wool from the very first shearing of a sheep. Soft, elastic, and slippery, used in high-grade textiles. - trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 } } + trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 } } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:lambswool } } @@ -812,21 +849,21 @@ get_cloth_type_decorative_thread_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 70 } NOT = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_no_silk } } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:silk } } 30 = { # Cloth woven from silk wrapped in silver. Similar to the cloth-of-gold below, but less expensive. trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 40 MAX = 90 } NOT = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_no_silk } } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:cloth_of_silver } } 50 = { # Cloth woven from silk wrapped in gold. In addition to being expensive, it was almost always outlawed for any non-royalty or non-clergy to wear. trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 70 MAX = 999 } NOT = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_no_silk } } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:cloth_of_gold } } @@ -836,7 +873,7 @@ get_cloth_type_decorative_thread_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 60 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_linen } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:linen } } @@ -846,7 +883,7 @@ get_cloth_type_decorative_thread_effect = { trigger = { artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 60 } artifact_region_trigger = { CHARACTER = scope:owner REGION = world_europe_west_britannia } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:cotton } } } @@ -865,50 +902,50 @@ get_hsb_type_effect = { 20 = { # Camel Bone trigger = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_camel_bone } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_camel_bone } } 20 = { # Deer Antler trigger = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_deer_antler } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_deer_antler } } 20 = { # Boar Tusk trigger = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_boar_tusk } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_boar_tusk } } 20 = { # Seashell trigger = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_seashell } - } + } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_seashell } } # Rare, Expensive, or Region-Specifc. Not all regions will have access to these. 80 = { # Tortoiseshell trigger = { - AND = { + AND = { artifact_value_trigger = { VALUE = scope:wealth MIN = 50 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_tortoiseshell } } } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_tortoiseshell } } - 80 = { # Mother of Pearl + 80 = { # Mother of Pearl trigger = { - AND = { + AND = { artifact_value_trigger = { VALUE = scope:wealth MIN = 50 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_mother_of_pearl } } } save_scope_value_as = { name = $SCOPE_NAME$ value = flag:hsb_mother_of_pearl } } - 80 = { # Ivory (Native) + 80 = { # Ivory (Native) trigger = { - AND = { + AND = { artifact_value_trigger = { VALUE = scope:wealth MIN = 50 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_ivory_native } } @@ -917,7 +954,7 @@ get_hsb_type_effect = { } 40 = { # Ivory (Imported) trigger = { - AND = { + AND = { artifact_value_trigger = { VALUE = scope:wealth MIN = 80 MAX = 999 } artifact_region_trigger = { CHARACTER = scope:owner REGION = material_hsb_ivory_imported } } @@ -1139,7 +1176,7 @@ add_scaled_artifact_modifier_combat_effect = { } } } - + modifier = { # More likely if you have any "knightly" cultural traditions factor = 1.5 scope:owner = { @@ -1370,7 +1407,7 @@ add_scaled_artifact_modifier_combat_effect = { } } } - + # zealot_levy_contribution_mult — exclusive to weapons with religious decorations 40 = { trigger = { artifact_has_religious_decorations_trigger = yes } @@ -1391,7 +1428,7 @@ add_scaled_artifact_modifier_combat_effect = { add_artifact_modifier = artifact_zealot_levy_contribution_mult_4_modifier } } - + # glory_hound_levy_contribution_mult 20 = { if = { @@ -2497,7 +2534,7 @@ add_2_scaled_artifact_modifier_combat_effect = { } } } - + modifier = { # More likely if you have any "knightly" cultural traditions factor = 1.5 scope:owner = { @@ -2807,7 +2844,7 @@ add_2_scaled_artifact_modifier_combat_effect = { } } } - + # enemy_hard_casualty_modifier 20 = { trigger = { @@ -2949,7 +2986,7 @@ add_2_scaled_artifact_modifier_combat_effect = { } } } - + # terrain_advantage 20 = { trigger = { @@ -4051,7 +4088,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Opinion 20 = { modifier = { @@ -4104,7 +4141,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Prestige 20 = { modifier = { @@ -4157,7 +4194,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Prestige Mult 20 = { trigger = { @@ -4189,7 +4226,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # Extra Prestige Gain 20 = { modifier = { @@ -4264,7 +4301,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # Tyranny Decay 20 = { modifier = { @@ -4317,7 +4354,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # happy_powerful_vassal_tax_contribution_mult 20 = { if = { @@ -4365,7 +4402,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # courtly_tax_contribution_mult 20 = { if = { @@ -4385,7 +4422,7 @@ add_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_courtly_tax_contribution_mult_4_modifier } } - + # glory_hound_tax_contribution_mult 20 = { if = { @@ -4405,7 +4442,7 @@ add_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_glory_hound_tax_contribution_mult_4_modifier } } - + # mercenary_hire_cost_mult 20 = { trigger = { @@ -4437,7 +4474,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # courtly_opinion 20 = { if = { @@ -4457,7 +4494,7 @@ add_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_courtly_vassal_opinion_4_modifier } } - + # glory_hound_opinion 20 = { if = { @@ -4477,7 +4514,7 @@ add_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_glory_hound_vassal_opinion_4_modifier } } - + # vassal_tax_contribution_mult 20 = { trigger = { @@ -4492,7 +4529,7 @@ add_scaled_artifact_modifier_majesty_effect = { } } } - + # general_opinion 20 = { trigger = { @@ -4500,7 +4537,7 @@ add_scaled_artifact_modifier_majesty_effect = { } add_artifact_modifier = artifact_general_opinion_1_modifier } - + # Diplomacy per Prestige Level 20 = { trigger = { @@ -4580,7 +4617,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Opinion 20 = { modifier = { @@ -4633,7 +4670,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Prestige 20 = { modifier = { @@ -4686,7 +4723,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # Dynasty Prestige Mult 20 = { trigger = { @@ -4718,7 +4755,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # Extra Prestige Gain 20 = { random_list = { @@ -4783,7 +4820,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # Tyranny Decay 20 = { modifier = { @@ -4836,7 +4873,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # happy_powerful_vassal_tax_contribution_mult 20 = { if = { @@ -4884,7 +4921,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # courtly_tax_contribution_mult 20 = { if = { @@ -4904,7 +4941,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_courtly_tax_contribution_mult_4_modifier } } - + # glory_hound_tax_contribution_mult 20 = { if = { @@ -4924,7 +4961,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_glory_hound_tax_contribution_mult_4_modifier } } - + # mercenary_hire_cost_mult 20 = { trigger = { @@ -4956,7 +4993,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # courtly_opinion 20 = { if = { @@ -4976,7 +5013,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_courtly_vassal_opinion_4_modifier } } - + # glory_hound_opinion 20 = { if = { @@ -4996,7 +5033,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { add_artifact_modifier = artifact_glory_hound_vassal_opinion_4_modifier } } - + # vassal_tax_contribution_mult 20 = { trigger = { @@ -5011,7 +5048,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } } } - + # general_opinion 20 = { trigger = { @@ -5019,7 +5056,7 @@ add_2_scaled_artifact_modifier_majesty_effect = { } add_artifact_modifier = artifact_general_opinion_1_modifier } - + # Diplomacy per Prestige Level 20 = { trigger = { @@ -5087,7 +5124,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # Powerful Vassal Opinion 20 = { modifier = { @@ -5140,7 +5177,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # courtly_opinion 20 = { modifier = { @@ -5165,7 +5202,7 @@ add_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_courtly_vassal_opinion_4_modifier } } - + # parochial_opinion 20 = { modifier = { @@ -5190,7 +5227,7 @@ add_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_parochial_vassal_opinion_4_modifier } } - + # Independent Ruler Opinion 20 = { modifier = { @@ -5243,7 +5280,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # Courtier and Guest Opinion 20 = { modifier = { @@ -5296,7 +5333,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # men_at_arms_maintenance 20 = { if = { @@ -5344,7 +5381,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # build_gold_cost 20 = { if = { @@ -5364,7 +5401,7 @@ add_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_build_gold_cost_4_modifier } } - + # domain_tax_mult 20 = { trigger = { @@ -5396,7 +5433,7 @@ add_scaled_artifact_modifier_rulership_effect = { } } } - + # parochial_tax_contribution_mult 20 = { if = { @@ -5416,7 +5453,7 @@ add_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_parochial_tax_contribution_mult_4_modifier } } - + # Stewardship per Stress Level 20 = { trigger = { @@ -5436,7 +5473,7 @@ add_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_stewardship_per_stress_level_1_modifier } } - + # Domain Limit 20 = { trigger = { @@ -5503,7 +5540,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # Powerful Vassal Opinion 20 = { modifier = { @@ -5556,7 +5593,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # courtly_opinion 20 = { modifier = { @@ -5581,7 +5618,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_courtly_vassal_opinion_4_modifier } } - + # parochial_opinion 20 = { modifier = { @@ -5606,7 +5643,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_parochial_vassal_opinion_4_modifier } } - + # Independent Ruler Opinion 20 = { modifier = { @@ -5659,7 +5696,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # Courtier and Guest Opinion 20 = { modifier = { @@ -5712,7 +5749,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # men_at_arms_maintenance 20 = { if = { @@ -5760,7 +5797,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # build_gold_cost 20 = { if = { @@ -5780,7 +5817,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_build_gold_cost_4_modifier } } - + # domain_tax_mult 20 = { trigger = { @@ -5812,7 +5849,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { } } } - + # parochial_tax_contribution_mult 20 = { if = { @@ -5832,7 +5869,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_parochial_tax_contribution_mult_4_modifier } } - + # Stewardship per Stress Level 20 = { trigger = { @@ -5848,7 +5885,7 @@ add_2_scaled_artifact_modifier_rulership_effect = { add_artifact_modifier = artifact_stewardship_per_stress_level_1_modifier } } - + # Domain Limit 20 = { trigger = { @@ -6444,7 +6481,7 @@ add_scaled_artifact_modifier_devotion_effect = { rarity = illustrious } add_artifact_modifier = artifact_learning_per_piety_level_modifier - } + } } } @@ -7035,7 +7072,7 @@ add_2_scaled_artifact_modifier_devotion_effect = { rarity = illustrious } add_artifact_modifier = artifact_learning_per_piety_level_modifier - } + } } } @@ -7376,8 +7413,8 @@ add_scaled_artifact_modifier_intrigue_effect = { } } } - } - + } + # intrigue_per_stress_level 20 = { trigger = { @@ -7398,7 +7435,7 @@ add_scaled_artifact_modifier_intrigue_effect = { } add_artifact_modifier = artifact_intrigue_per_stress_level_2_modifier } - } + } } } @@ -7740,8 +7777,8 @@ add_2_scaled_artifact_modifier_intrigue_effect = { } } } - } - + } + # intrigue_per_stress_level 20 = { trigger = { @@ -7762,7 +7799,7 @@ add_2_scaled_artifact_modifier_intrigue_effect = { } add_artifact_modifier = artifact_intrigue_per_stress_level_2_modifier } - } + } } } @@ -7996,7 +8033,7 @@ add_scaled_artifact_modifier_scholarship_effect = { add_artifact_modifier = artifact_learn_language_scheme_power_add_4_modifier } } - + # Learning per Prestige Level 20 = { trigger = { @@ -8173,7 +8210,7 @@ get_dagger_decoration_effect = { get_sword_decoration_effect = yes # Currently identical, but we may wish to diverge these later. } -# Axes, Hammers, Spears, and Maces +# Axes, Hammers, Spears, and Maces get_axe_decoration_effect = { random_list = { 40 = { @@ -8427,11 +8464,11 @@ create_artifact_weapon_effect = { limit = { scope:weapon_type = flag:artifact_weapon_type_axe } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_axe_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = axe - type = axe + type = axe modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8446,12 +8483,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = artifact_axe_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = axe - type = axe + type = axe modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8466,16 +8503,16 @@ create_artifact_weapon_effect = { tournament_contest_weapon_prize_effect = { VISUALS = axe TYPE = axe } } else = { - create_artifact = { + create_artifact = { name = artifact_axe_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = axe - type = axe + type = axe modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -8488,11 +8525,11 @@ create_artifact_weapon_effect = { limit = { scope:weapon_type = flag:artifact_weapon_type_hammer } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_hammer_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = hammer - type = hammer + type = hammer modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8507,12 +8544,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = artifact_hammer_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = hammer - type = hammer + type = hammer modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8527,16 +8564,16 @@ create_artifact_weapon_effect = { tournament_contest_weapon_prize_effect = { VISUALS = hammer TYPE = hammer } } else = { - create_artifact = { + create_artifact = { name = artifact_hammer_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = hammer - type = hammer + type = hammer modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -8549,11 +8586,11 @@ create_artifact_weapon_effect = { limit = { scope:weapon_type = flag:artifact_weapon_type_spear } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_spear_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = spear - type = spear + type = spear modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8568,12 +8605,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = artifact_spear_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = spear - type = spear + type = spear modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8588,16 +8625,16 @@ create_artifact_weapon_effect = { tournament_contest_weapon_prize_effect = { VISUALS = spear TYPE = spear } } else = { - create_artifact = { + create_artifact = { name = artifact_spear_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = spear - type = spear + type = spear modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -8610,11 +8647,11 @@ create_artifact_weapon_effect = { limit = { scope:weapon_type = flag:artifact_weapon_type_mace } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_mace_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = mace - type = mace + type = mace modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8629,12 +8666,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = artifact_mace_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = mace - type = mace + type = mace modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8649,11 +8686,11 @@ create_artifact_weapon_effect = { tournament_contest_weapon_prize_effect = { VISUALS = mace TYPE = mace } } else = { - create_artifact = { + create_artifact = { name = artifact_mace_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = mace - type = mace + type = mace modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8670,11 +8707,11 @@ create_artifact_weapon_effect = { limit = { scope:weapon_type = flag:artifact_weapon_type_dagger } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_dagger_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = dagger - type = dagger + type = dagger modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8689,12 +8726,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = artifact_dagger_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = dagger - type = dagger + type = dagger modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8709,16 +8746,16 @@ create_artifact_weapon_effect = { tournament_contest_weapon_prize_effect = { VISUALS = dagger TYPE = dagger } } else = { - create_artifact = { + create_artifact = { name = artifact_dagger_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = dagger - type = dagger + type = dagger modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -8730,11 +8767,11 @@ create_artifact_weapon_effect = { else = { if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_sword_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = sword - type = sword + type = sword modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8749,12 +8786,12 @@ create_artifact_weapon_effect = { } else_if = { limit = { exists = scope:bowyer } - create_artifact = { + create_artifact = { name = artifact_sword_name creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = sword - type = sword + type = sword modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality @@ -8778,18 +8815,36 @@ create_artifact_weapon_effect = { } else = { random_list = { + 3 = { + trigger = { + has_fp3_dlc_trigger = yes + scope:smith = { artifact_should_use_gfx_type_trigger = { TYPE = iranian_building } } + } + create_artifact = { + name = artifact_sassanian_replica_sword_name + description = placeholder # Will be re-generated once decorations are added in the post-creation effects. + visuals = sassanian_sword + type = sword + modifier = artifact_prowess_1_modifier + wealth = scope:wealth + quality = scope:quality + save_scope_as = newly_created_artifact + history = { type = created_before_history } + } + scope:newly_created_artifact = { set_variable = replica_sassanian_sword } + } 1 = { trigger = { sword_could_be_longsword_trigger = yes } create_artifact = { name = artifact_longsword_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = longsword - type = sword + type = sword modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } 1 = { @@ -8797,27 +8852,51 @@ create_artifact_weapon_effect = { name = artifact_sword_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = sword - type = sword + type = sword modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } } - scope:newly_created_artifact = { - get_sword_decoration_effect = yes - get_artifact_feature_references_effect = yes - set_artifact_description = artifact_sword_description + if = { + limit = { scope:newly_created_artifact = { has_variable = replica_sassanian_sword } } + if = { + limit = { + scope:newly_created_artifact = { + OR = { + rarity = famed + rarity = illustrious + } + } + } + scope:newly_created_artifact = { set_artifact_description = famed_replica_sassanian_sword_description } + } + else_if = { + limit = { scope:newly_created_artifact = { rarity = masterwork } } + scope:newly_created_artifact = { set_artifact_description = masterwork_replica_sassanian_sword_description } + } + else = { + scope:newly_created_artifact = { set_artifact_description = common_replica_sassanian_sword_description } + } + } + + else = { + scope:newly_created_artifact = { + get_sword_decoration_effect = yes + get_artifact_feature_references_effect = yes + set_artifact_description = artifact_sword_description + } } } scope:newly_created_artifact = { # Prowess from weapon rarity add_scaled_artifact_modifier_prowess_effect = yes - + if = { limit = { OR = { @@ -8898,7 +8977,7 @@ create_artifact_weapon_effect = { add_artifact_modifier = artifact_prowess_no_decorations_modifier } - # Save the quality and wealth of this artifact in case we need to reference it later. + # Save the quality and wealth of this artifact in case we need to reference it later. set_variable = { name = quality value = scope:quality @@ -8917,7 +8996,7 @@ create_artifact_weapon_effect = { # # ################################################# -# Armor +# Armor # If the type of armor hasn't been decided yet we set it here set_armor_artifact_type_effect = { @@ -9077,7 +9156,7 @@ create_artifact_armor_effect = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_plate @@ -9096,7 +9175,7 @@ create_artifact_armor_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = placeholder creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. @@ -9116,7 +9195,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = plate } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_plate @@ -9125,7 +9204,7 @@ create_artifact_armor_effect = { quality = scope:quality modifier = artifact_prowess_1_modifier save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9133,7 +9212,7 @@ create_artifact_armor_effect = { limit = { scope:armor_type = flag:armor_type_scale } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_scale @@ -9152,7 +9231,7 @@ create_artifact_armor_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = placeholder creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. @@ -9172,7 +9251,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = scale } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_scale @@ -9181,7 +9260,7 @@ create_artifact_armor_effect = { visuals = armor modifier = artifact_prowess_1_modifier save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9189,7 +9268,7 @@ create_artifact_armor_effect = { limit = { scope:armor_type = flag:armor_type_lamellar } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_lamellar @@ -9208,7 +9287,7 @@ create_artifact_armor_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = placeholder creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. @@ -9228,7 +9307,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = lamellar } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_lamellar @@ -9237,7 +9316,7 @@ create_artifact_armor_effect = { wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9245,7 +9324,7 @@ create_artifact_armor_effect = { limit = { scope:armor_type = flag:armor_type_laminar } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_laminar @@ -9264,7 +9343,7 @@ create_artifact_armor_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = placeholder creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. @@ -9284,7 +9363,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = laminar } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_laminar @@ -9293,7 +9372,7 @@ create_artifact_armor_effect = { wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9301,7 +9380,7 @@ create_artifact_armor_effect = { limit = { scope:armor_type = flag:armor_type_brigandine } if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_brigandine @@ -9320,7 +9399,7 @@ create_artifact_armor_effect = { } else_if = { limit = { exists = scope:smith } - create_artifact = { + create_artifact = { name = placeholder creator = scope:smith description = placeholder # Will be re-generated once decorations are added in the post-creation effects. @@ -9340,7 +9419,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = brigandine } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_brigandine @@ -9349,7 +9428,7 @@ create_artifact_armor_effect = { quality = scope:quality modifier = artifact_prowess_1_modifier save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9357,7 +9436,7 @@ create_artifact_armor_effect = { # Defaults to mail as a common, ubiquitous type of armor. if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_mail @@ -9396,7 +9475,7 @@ create_artifact_armor_effect = { tournament_contest_armor_prize_effect = { TYPE = mail } } else = { - create_artifact = { + create_artifact = { name = placeholder description = placeholder # Will be re-generated once decorations are added in the post-creation effects. type = armor_mail @@ -9405,7 +9484,7 @@ create_artifact_armor_effect = { quality = scope:quality modifier = artifact_prowess_1_modifier save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } } @@ -9472,7 +9551,7 @@ create_artifact_regalia_effect = { get_artifact_quality_effect = yes get_artifact_wealth_effect = yes - + # Create the artifact if = { limit = { @@ -9575,7 +9654,7 @@ create_artifact_crown_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_crown_name description = placeholder # Will be updated in the post-creation effects visuals = crown @@ -9593,7 +9672,7 @@ create_artifact_crown_effect = { } } else = { - create_artifact = { + create_artifact = { name = artifact_crown_name creator = scope:goldsmith description = placeholder # Will be updated in the post-creation effects @@ -9610,7 +9689,7 @@ create_artifact_crown_effect = { # Get gem type if necessary and update description get_artifact_feature_references_effect = yes set_artifact_description = artifact_crown_description - + # Crowns with high rarity get more modifiers if = { limit = { @@ -9675,7 +9754,7 @@ create_artifact_brooch_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_brooch_name description = placeholder visuals = brooch @@ -9929,7 +10008,7 @@ create_artifact_necklace_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_necklace_name description = placeholder #properly set later visuals = necklace @@ -9969,7 +10048,7 @@ create_artifact_necklace_effect = { } else_if = { limit = { exists = scope:goldsmith } - create_artifact = { + create_artifact = { name = artifact_necklace_name creator = scope:goldsmith description = placeholder #properly set later @@ -9982,7 +10061,7 @@ create_artifact_necklace_effect = { } } else = { - create_artifact = { + create_artifact = { name = artifact_necklace_name description = placeholder #properly set later visuals = necklace @@ -10041,7 +10120,7 @@ create_artifact_necklace_pedestal_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_necklace_name creator = scope:goldsmith description = placeholder #properly set later @@ -10082,7 +10161,7 @@ create_artifact_necklace_pedestal_effect = { } else_if = { limit = { exists = scope:goldsmith } - create_artifact = { + create_artifact = { name = artifact_necklace_name creator = scope:goldsmith description = placeholder #properly set later @@ -10095,7 +10174,7 @@ create_artifact_necklace_pedestal_effect = { } } else = { - create_artifact = { + create_artifact = { name = artifact_necklace_name description = placeholder #properly set later visuals = necklace_pedestal @@ -10177,7 +10256,7 @@ get_pressed_flower_species_effect = { } } 10 = { - # Asia + # Asia modifier = { factor = 0 $LOCATION$ = { @@ -10190,7 +10269,7 @@ get_pressed_flower_species_effect = { } } 10 = { - # Mediterranean sea + arid Asia + # Mediterranean sea + arid Asia modifier = { factor = 0 $LOCATION$ = { @@ -10203,7 +10282,7 @@ get_pressed_flower_species_effect = { } } 10 = { - # Europe, North Africa + parts of Asia + # Europe, North Africa + parts of Asia modifier = { factor = 0 $LOCATION$ = { @@ -10216,7 +10295,7 @@ get_pressed_flower_species_effect = { } } 10 = { - # Africa + parts of Asia + # Africa + parts of Asia modifier = { factor = 0 $LOCATION$ = { @@ -10229,7 +10308,7 @@ get_pressed_flower_species_effect = { } } 10 = { - # parts of Africa + India + # parts of Africa + India modifier = { factor = 0 $LOCATION$ = { @@ -10423,53 +10502,53 @@ create_artifact_pressed_flower_effect = { get_artifact_quality_effect = yes get_artifact_wealth_effect = yes - #Get flower + #Get flower get_animal_hunt_location_effect = yes #not hunting, but need the location in a similar way } - + # Create the artifact - scope:owner = { - if = { - limit = { - exists = scope:flower_picker - } - hidden_effect = { - get_pressed_flower_species_effect = { LOCATION = scope:flower_picker.location } - } - # Create the artifact - create_artifact = { - name = artifact_pressed_flower_name - description = placeholder #properly set later - creator = scope:flower_picker - visuals = flowers - type = miscellaneous - modifier = artifact_placeholder_modifier - wealth = scope:wealth - quality = scope:quality - save_scope_as = newly_created_artifact - } + scope:owner = { + if = { + limit = { + exists = scope:flower_picker + } + hidden_effect = { + get_pressed_flower_species_effect = { LOCATION = scope:flower_picker.location } + } + # Create the artifact + create_artifact = { + name = artifact_pressed_flower_name + description = placeholder #properly set later + creator = scope:flower_picker + visuals = flowers + type = miscellaneous + modifier = artifact_placeholder_modifier + wealth = scope:wealth + quality = scope:quality + save_scope_as = newly_created_artifact + } + } + else = { + hidden_effect = { + get_pressed_flower_species_effect = { LOCATION = scope:owner.location } + } + # Create the artifact + create_artifact = { + name = artifact_pressed_flower_name + description = placeholder #properly set later + creator = scope:owner + visuals = flowers + type = miscellaneous + modifier = artifact_placeholder_modifier + wealth = scope:wealth + quality = scope:quality + save_scope_as = newly_created_artifact } - else = { - hidden_effect = { - get_pressed_flower_species_effect = { LOCATION = scope:owner.location } - } - # Create the artifact - create_artifact = { - name = artifact_pressed_flower_name - description = placeholder #properly set later - creator = scope:owner - visuals = flowers - type = miscellaneous - modifier = artifact_placeholder_modifier - wealth = scope:wealth - quality = scope:quality - save_scope_as = newly_created_artifact - } } } - + hidden_effect_new_object = { scope:newly_created_artifact = { @@ -10480,7 +10559,7 @@ create_artifact_pressed_flower_effect = { add_scaled_artifact_modifier_minor_prestige_effect = yes # If the average wealth/quality of the artifact is above 75, add 2nd tier fertility bonus - + if = { limit = { rarity = illustrious @@ -10498,7 +10577,7 @@ create_artifact_pressed_flower_effect = { rarity = masterwork } add_artifact_modifier = artifact_fertility_gain_2_modifier - } + } else_if = { limit = { rarity = common @@ -10551,7 +10630,7 @@ roll_scientific_apparatus_effect = { #If you _are_ discerning and you want to choose which trinkets you want to be able to generate: # > Set an add_character_flag = { flag = used_in_stewardship_general.2001 } on your TRINKET_RECEIVER-character # > Refer to this flag in the trigger of the trinket below -# > Remember to remove_character_flag = used_in_stewardship_general.2001 in your after = { ... } +# > Remember to remove_character_flag = used_in_stewardship_general.2001 in your after = { ... } #HISTORY_TYPE - pick one that fits the interaction in which you get the trinket #==================================== generate_trinket_effect = { @@ -10569,11 +10648,11 @@ generate_trinket_effect = { ###Gilded Rat's Tail 80 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10629,11 +10708,11 @@ generate_trinket_effect = { ###Quail's Eggshell 'Gem' 80 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10689,11 +10768,11 @@ generate_trinket_effect = { ###Sanctified 'Stained' Glass Shard 80 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10749,11 +10828,11 @@ generate_trinket_effect = { ###Xylospongium 80 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10810,11 +10889,11 @@ generate_trinket_effect = { ###St David's Morsel 45 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10823,7 +10902,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -10832,16 +10911,16 @@ generate_trinket_effect = { ##stewardship_general.2001 ###More likely if we have our chaplain to help and chose the helpful option modifier = { - scope:trinket_receiver = { + scope:trinket_receiver = { has_character_flag = helpful_option_stewardship_general.2001 has_character_flag = has_helpful_chaplain_stewardship_general.2001 } add = 20 } ###Less likely if we already have a morsel - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = st_davids_morsel_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = st_davids_morsel_trinket } } add = -40 } @@ -10869,15 +10948,15 @@ generate_trinket_effect = { ###Platypus Figurine 35 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have a platypus figurine in our inventory - NOT = { - any_character_artifact = { has_variable = platypus_trinket } + NOT = { + any_character_artifact = { has_variable = platypus_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10913,11 +10992,11 @@ generate_trinket_effect = { ###Terracotta Toy Fowl 55 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10926,7 +11005,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##Add more/other trigger flags below } } @@ -10935,16 +11014,16 @@ generate_trinket_effect = { ##stewardship_general.2001 ###Less likely if we have our steward to help and chose the helpful option modifier = { - scope:trinket_receiver = { + scope:trinket_receiver = { has_character_flag = helpful_option_stewardship_general.2001 has_character_flag = has_helpful_steward_stewardship_general.2001 } add = -25 } ###Less likely if we already have a Terracotta Toy Fowl - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = terracotta_toy_fowl_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = terracotta_toy_fowl_trinket } } add = -50 } @@ -10972,11 +11051,11 @@ generate_trinket_effect = { ###Potsherd 65 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -10985,7 +11064,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##Add more/other trigger flags below } } @@ -10994,16 +11073,16 @@ generate_trinket_effect = { ##stewardship_general.2001 ###More likely if we have our chaplain to help and chose the helpful option modifier = { - scope:trinket_receiver = { + scope:trinket_receiver = { has_character_flag = helpful_option_stewardship_general.2001 has_character_flag = has_helpful_chaplain_stewardship_general.2001 } add = 20 } ###Less likely if we already have a Potsherd - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = potsherd_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = potsherd_trinket } } add = -60 } @@ -11034,11 +11113,11 @@ generate_trinket_effect = { ###Small Bell Beaker 45 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11047,7 +11126,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11065,9 +11144,9 @@ generate_trinket_effect = { add = -25 } ###Less likely if we already have a Small Bell Beaker - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = small_bell_beaker_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = small_bell_beaker_trinket } } add = -40 } @@ -11095,11 +11174,11 @@ generate_trinket_effect = { ###Serpentine Budai 45 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11108,7 +11187,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11126,9 +11205,9 @@ generate_trinket_effect = { add = -25 } ###Less likely if we already have a Serpentine Budai - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = serpentine_budai_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = serpentine_budai_trinket } } add = -40 } @@ -11157,11 +11236,11 @@ generate_trinket_effect = { ###'s Horn 40 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11172,7 +11251,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11180,17 +11259,17 @@ generate_trinket_effect = { #MODIFIERS ##stewardship_general.2001 ###More likely if we have our steward to help and chose the helpful option - modifier = { - scope:trinket_receiver = { + modifier = { + scope:trinket_receiver = { has_character_flag = helpful_option_stewardship_general.2001 has_character_flag = has_helpful_steward_stewardship_general.2001 } add = 30 } ###Less likely if we already have a Mythical Horn - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = mythical_horn_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = mythical_horn_trinket } } add = -35 } @@ -11218,11 +11297,11 @@ generate_trinket_effect = { ### Figurine 40 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11233,16 +11312,16 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } } #MODIFIERS ###Less likely if we already have a Mythical Figurine - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = mythical_creature_figurine_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = mythical_creature_figurine_trinket } } add = -35 } @@ -11284,15 +11363,15 @@ generate_trinket_effect = { ###St David's Taper 30 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have a St David's Taper in our inventory - NOT = { - any_character_artifact = { has_variable = st_davids_taper_trinket } + NOT = { + any_character_artifact = { has_variable = st_davids_taper_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11333,15 +11412,15 @@ generate_trinket_effect = { ###Marble Stick of J'Ira 30 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have a Jira poking stick in our inventory - NOT = { - any_character_artifact = { has_variable = jira_stick_trinket } + NOT = { + any_character_artifact = { has_variable = jira_stick_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11352,7 +11431,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11386,11 +11465,11 @@ generate_trinket_effect = { ###Lucky Coin 40 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11401,7 +11480,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11419,17 +11498,17 @@ generate_trinket_effect = { add = 25 } ###More likely if we have our steward to help and chose the helpful option - modifier = { - scope:trinket_receiver = { + modifier = { + scope:trinket_receiver = { has_character_flag = helpful_option_stewardship_general.2001 has_character_flag = has_helpful_steward_stewardship_general.2001 } add = 30 } ###Less likely if we already have a lucky coin - modifier = { - scope:trinket_receiver = { - any_character_artifact = { has_variable = lucky_coin_trinket } + modifier = { + scope:trinket_receiver = { + any_character_artifact = { has_variable = lucky_coin_trinket } } add = -35 } @@ -11465,15 +11544,15 @@ generate_trinket_effect = { ###Lavender Jade Pendant 40 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have a Lavender Jade Pendant in our inventory - NOT = { - any_character_artifact = { has_variable = lavender_jade_pendant_trinket } + NOT = { + any_character_artifact = { has_variable = lavender_jade_pendant_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11484,7 +11563,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11514,15 +11593,15 @@ generate_trinket_effect = { ###Old Signet Ring 20 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have the Ring of Sekhmet in our inventory - NOT = { - any_character_artifact = { has_variable = sekhmet_ring_trinket } + NOT = { + any_character_artifact = { has_variable = sekhmet_ring_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11534,7 +11613,7 @@ generate_trinket_effect = { ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11542,8 +11621,8 @@ generate_trinket_effect = { #MODIFIERS ##stewardship_general.2001 ###Less likely if we took the cheap option - modifier = { - scope:trinket_receiver = { + modifier = { + scope:trinket_receiver = { has_character_flag = cheap_option_stewardship_general.2001 } add = -25 @@ -11574,15 +11653,15 @@ generate_trinket_effect = { ###Ancient Scarab Brooch 20 = { #TRIGGERS - trigger = { + trigger = { scope:trinket_receiver = { ##If we don't already have the Ancient Scarab Brooch in our inventory - NOT = { - any_character_artifact = { has_variable = ancient_scarab_brooch_trinket } + NOT = { + any_character_artifact = { has_variable = ancient_scarab_brooch_trinket } } OR = { ##If we are flagged to grab all trinkets - AND = { + AND = { exists = var:grab_all_trinkets var:grab_all_trinkets = flag:yes } @@ -11596,10 +11675,10 @@ generate_trinket_effect = { } ##feast_default.1016 has_character_flag = used_in_feast_default.1016 - + ###bp1_yearly.1021 has_character_flag = 1021_token - + ##^^Add more/other trigger flags above^^## } } @@ -11628,7 +11707,7 @@ generate_trinket_effect = { } } } - if = { + if = { limit = { exists = scope:new_trinket } scope:new_trinket = { @@ -11688,9 +11767,9 @@ generate_trinket_effect = { } ##Stolen by scope:trinket_receiver (scope:trinket_giver is the right-hand portrait) else_if = { - limit = { + limit = { exists = scope:artifact_history - scope:artifact_history = flag:stolen + scope:artifact_history = flag:stolen } add_artifact_history = { type = stolen @@ -11700,7 +11779,7 @@ generate_trinket_effect = { } ##Created by an unknown benefactor for scope:trinket_receiver at scope:trinket_receiver.location else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:created_unknown } @@ -11712,7 +11791,7 @@ generate_trinket_effect = { } ##Created by scope:trinket_giver for scope:trinket_receiver at scope:trinket_receiver.location else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:created } @@ -11725,7 +11804,7 @@ generate_trinket_effect = { } ##Inherited by scope:trinket_receiver else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:inherited_unknown } @@ -11737,7 +11816,7 @@ generate_trinket_effect = { } #Inherited by scope:trinket_receiver else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:inherited } @@ -11749,7 +11828,7 @@ generate_trinket_effect = { } ##Reforged by scope:trinket_receiver in scope:trinket_receiver.location else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:reforged } @@ -11761,7 +11840,7 @@ generate_trinket_effect = { } ##Conquered by scope:trinket_receiver in a war against scope:trinket_giver else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:conquest } @@ -11773,7 +11852,7 @@ generate_trinket_effect = { } ##Conquered by scope:trinket_receiver after the siege of scope:trinket_giver.location else_if = { - limit = { + limit = { exists = scope:artifact_history scope:artifact_history = flag:taken_in_siege } @@ -11988,7 +12067,7 @@ create_artifact_bow_effect = { wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -12048,7 +12127,7 @@ create_artifact_bow_effect = { wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -12108,7 +12187,7 @@ create_artifact_bow_effect = { wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -12163,12 +12242,12 @@ create_artifact_bow_effect = { name = artifact_bow_name description = placeholder # Will be re-generated once decorations are added in the post-creation effects. visuals = bow - type = bow + type = bow modifier = artifact_prowess_1_modifier wealth = scope:wealth quality = scope:quality save_scope_as = newly_created_artifact - history = { type = created_before_history } + history = { type = created_before_history } } } scope:newly_created_artifact = { @@ -12247,7 +12326,7 @@ create_artifact_bow_effect = { else = { add_2_scaled_artifact_modifier_combat_effect = yes } } else = { add_artifact_modifier = artifact_prowess_no_decorations_modifier } - # Save the quality and wealth of this artifact in case we need to reference it later. + # Save the quality and wealth of this artifact in case we need to reference it later. set_variable = { name = quality value = scope:quality @@ -12280,7 +12359,7 @@ create_artifact_ring_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_ring_name description = placeholder visuals = ring @@ -12421,7 +12500,7 @@ create_artifact_bowl_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_bowl_name description = placeholder visuals = bowl @@ -12535,7 +12614,7 @@ create_artifact_plate_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_plate_name description = placeholder visuals = plate @@ -12648,7 +12727,7 @@ create_artifact_urn_effect = { # Create the artifact if = { limit = { exists = scope:adventurer } - create_artifact = { + create_artifact = { name = artifact_urn_name description = placeholder visuals = urn diff --git a/common/scripted_effects/00_ep1_artifact_effects.txt b/common/scripted_effects/00_ep1_artifact_effects.txt index 4b000387b4..d9506cfc07 100644 --- a/common/scripted_effects/00_ep1_artifact_effects.txt +++ b/common/scripted_effects/00_ep1_artifact_effects.txt @@ -46,8 +46,8 @@ target = scope:SAISE_attacker history = { location = scope:SAISE_location - actor = scope:SAISE_attacker - recipient = scope:SAISE_defender + actor = scope:SAISE_defender + recipient = scope:SAISE_attacker type = taken_in_siege } } diff --git a/common/scripted_effects/00_ep1_court_type_effects.txt b/common/scripted_effects/00_ep1_court_type_effects.txt deleted file mode 100644 index 245f9233f2..0000000000 --- a/common/scripted_effects/00_ep1_court_type_effects.txt +++ /dev/null @@ -1,272 +0,0 @@ - -# EFFECTS RELATONG TO THE DIFFERENT COURT TYPES - -#court_trait_handle_multiple_scopes_effect -#court_trait_save_scopes_and_send_interface_message_effect -#assign_court_type_traits_to_courtiers_effect - - -# Effect to save down the multiple scopes needed to send interface messages about courtiers gaining/leveling court type traits -court_trait_handle_multiple_scopes_effect = { - #Save down two scopes for the gathered message - random_courtier = { - limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - is_of_major_interest_to_root_trigger = yes - } - alternative_limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - is_of_minor_interest_to_root_trigger = yes - } - alternative_limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - } - save_scope_as = courtier_1 - } - random_courtier = { - limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - is_of_major_interest_to_root_trigger = yes - NOT = { this = scope:courtier_1 } - } - alternative_limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - is_of_minor_interest_to_root_trigger = yes - NOT = { this = scope:courtier_1 } - } - alternative_limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - NOT = { this = scope:courtier_1 } - } - save_scope_as = courtier_2 - } - set_variable = { - name = num_other_relevant_courtiers - value = 1 - } - every_courtier = { - limit = { - ep1_courtier_valid_for_court_trait_$TRAIT_LEVEL$_trigger = { TYPE = $COURT_TYPE$ } - } - change_trait_rank = { - trait = $COURT_TYPE$_court - rank = 1 - } - root = { - change_variable = { - name = num_other_relevant_courtiers - add = 1 - } - } - } -} - -# Effect to send interface messages about courtiers gaining/leveling court specific traits -court_trait_save_scopes_and_send_interface_message_effect = { - # Second trait level at CG level 8 - if = { - limit = { - any_courtier = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = $COURT_TYPE$ } - } - } - # If it's more than two we send a gathered message - if = { - limit = { - any_courtier = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = $COURT_TYPE$ } - count > 2 - } - } - court_trait_handle_multiple_scopes_effect = { - COURT_TYPE = $COURT_TYPE$ - TRAIT_LEVEL = 2 - } - send_interface_message = { - type = event_generic_good - title = multiple_courtiers_gained_court_type_trait_title - left_icon = scope:courtier_1 - right_icon = scope:courtier_2 - custom_tooltip = multiple_courtiers_gained_$COURT_TYPE$_2_trait_desc - } - remove_variable = num_other_relevant_courtiers - } - # Else we send one message per courtier - else = { - every_courtier = { - limit = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = $COURT_TYPE$ } - } - save_scope_as = courtier - root = { - send_interface_message = { - type = event_generic_good - title = courtier_gained_court_type_trait_title - right_icon = scope:courtier - scope:courtier = { - change_trait_rank = { - trait = $COURT_TYPE$_court - rank = 1 - } - } - } - } - } - } - } - # First trait level at CG level 5 - if = { - limit = { - any_courtier = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = $COURT_TYPE$ } - } - } - # If it's more than two we send a gathered message - if = { - limit = { - any_courtier = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = $COURT_TYPE$ } - count > 2 - } - } - court_trait_handle_multiple_scopes_effect = { - COURT_TYPE = $COURT_TYPE$ - TRAIT_LEVEL = 1 - } - send_interface_message = { - type = event_generic_good - title = multiple_courtiers_gained_court_type_trait_title - left_icon = scope:courtier_1 - right_icon = scope:courtier_2 - custom_tooltip = multiple_courtiers_gained_$COURT_TYPE$_1_trait_desc - } - } - # Else we send one message per courtier - else = { - every_courtier = { - limit = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = $COURT_TYPE$ } - } - save_scope_as = courtier - root = { - send_interface_message = { - type = event_generic_good - title = courtier_gained_court_type_trait_title - right_icon = scope:courtier - scope:courtier = { - change_trait_rank = { - trait = $COURT_TYPE$_court - rank = 1 - } - } - } - } - } - } - } -} - -# Main effect for handling courtiers gaining/leveling court type traits -assign_court_type_traits_to_courtiers_effect = { - save_scope_value_as = { - name = cgv_value - value = root.court_grandeur_current_level - } - # Diplomatic Court - if = { - limit = { - has_court_type = court_diplomatic - any_courtier = { - days_since_joined_court >= days_to_gain_court_type_trait - OR = { #Either they have no trait, or they have one we can level - AND = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = diplomatic } - } - AND = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = diplomatic } - } - } - } - } - court_trait_save_scopes_and_send_interface_message_effect = { COURT_TYPE = diplomatic } - } - # Warlike Court - if = { - limit = { - OR = { - has_court_type = court_warlike - has_court_type = court_tribal - } - any_courtier = { - days_since_joined_court >= days_to_gain_court_type_trait - OR = { #Either they have no trait, or they have one we can level - AND = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = warlike } - } - AND = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = warlike } - } - } - } - } - court_trait_save_scopes_and_send_interface_message_effect = { COURT_TYPE = warlike } - } - - # Administrative Court - if = { - limit = { - has_court_type = court_administrative - any_courtier = { - days_since_joined_court >= days_to_gain_court_type_trait - OR = { #Either they have no trait, or they have one we can level - AND = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = administrative } - } - AND = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = administrative } - } - } - } - } - court_trait_save_scopes_and_send_interface_message_effect = { COURT_TYPE = administrative } - } - - # Intrigue Court - if = { - limit = { - has_court_type = court_intrigue - any_courtier = { - days_since_joined_court >= days_to_gain_court_type_trait - OR = { #Either they have no trait, or they have one we can level - AND = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = intrigue } - } - AND = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = intrigue } - } - } - } - } - court_trait_save_scopes_and_send_interface_message_effect = { COURT_TYPE = intrigue } - } - - # Scholarly Court - if = { - limit = { - has_court_type = court_scholarly - any_courtier = { - days_since_joined_court >= days_to_gain_court_type_trait - OR = { #Either they have no trait, or they have one we can level - AND = { - ep1_courtier_valid_for_court_trait_1_trigger = { TYPE = scholarly } - } - AND = { - ep1_courtier_valid_for_court_trait_2_trigger = { TYPE = scholarly } - } - } - } - } - court_trait_save_scopes_and_send_interface_message_effect = { COURT_TYPE = scholarly } - } -} - diff --git a/common/scripted_effects/00_ep1_inspiration_effects.txt b/common/scripted_effects/00_ep1_inspiration_effects.txt index 2a1ec9b95d..6faffd2e7d 100644 --- a/common/scripted_effects/00_ep1_inspiration_effects.txt +++ b/common/scripted_effects/00_ep1_inspiration_effects.txt @@ -106,7 +106,7 @@ set_alchemy_inspiration_type_effect = { 10 = { #Panacea: a cure-all for all disease modifier = { add = 10 - has_trait = lifestyle_physician + has_trait = lifestyle_physician } set_variable = { name = artifact_alchemy_type @@ -333,7 +333,7 @@ inspiration_adventure_create_artifact_effect = { BASE_SCOPE = scope:adventurer NO_DESTINATION = no } - get_adventure_inspiration_start_location = { ADVENTURER = scope:adventurer } + get_adventure_inspiration_start_location = { ADVENTURER = scope:adventurer } } else = { #To save the location and make sure materials can access it @@ -396,7 +396,31 @@ inspiration_adventure_create_artifact_effect = { } } } - + 1 = { #FP3 Sassanian Sword + modifier = { + OR = { + scope:adventurer.adventure_inspiration_average_skill_value >= high_inspiration_skill + AND = { + exists = scope:inspiration_owner.var:artifact_quality + scope:inspiration_owner.var:artifact_quality > high_adventurer_epic_quality_level #Cumulative event choices + } + } + add = 5 + } + trigger = { + any_artifact = { + count < 15 + has_variable = sassanian_sword + } + scope:location ?= { + #OR = { + #geographical_region = world_middle_east + geographical_region = world_kalimdor_north + #} + } + } + create_artifact_illustrious_sassanian_sword_effect = { OWNER = ROOT } + } # Warcraft # Frostmourne 1 = { @@ -446,7 +470,7 @@ inspiration_adventure_create_artifact_effect = { } } } - scope:owner = { + scope:owner = { create_artifact_weapon_effect = { OWNER = scope:artifact_origin CREATOR = scope:artifact_origin @@ -511,7 +535,7 @@ inspiration_adventure_create_artifact_effect = { } } } - scope:owner = { + scope:owner = { create_artifact_necklace_effect = { OWNER = scope:artifact_origin SMITH = scope:artifact_origin @@ -551,7 +575,7 @@ inspiration_adventure_create_artifact_effect = { SMITH = scope:artifact_origin } } - scope:owner = { + scope:owner = { save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051 name = regalia_artifact value = yes @@ -714,6 +738,39 @@ inspiration_adventure_create_artifact_effect = { value = yes } } + 10 = { + modifier = { + OR = { + scope:adventurer.adventure_inspiration_average_skill_value >= medium_inspiration_skill + AND = { + exists = scope:inspiration_owner.var:artifact_quality + scope:inspiration_owner.var:artifact_quality > medium_adventurer_epic_quality_level #Cumulative event choices + } + } + add = -2 + } + trigger = { #Persian Drinking Vessel (goblet) + has_fp3_dlc_trigger = yes + trigger_if = { + limit = { exists = var:adventure_type } + OR = { + var:adventure_type = flag:trinket + var:adventure_type = flag:free_reign + } + } + scope:location = { geographical_region = world_middle_east_persia } + } + scope:owner = { + create_artifact_persian_drinking_vessel_effect = { + OWNER = scope:owner + SMITH = scope:inspiration_owner + } + } + save_scope_value_as = { #We save the type here for tooltips in fund_inspiration.1051 + name = goblet + value = yes + } + } } if = { limit = { exists = scope:epic } diff --git a/common/scripted_effects/00_fabricate_hook_scheme_effects.txt b/common/scripted_effects/00_fabricate_hook_scheme_effects.txt deleted file mode 100644 index bc4a2af290..0000000000 --- a/common/scripted_effects/00_fabricate_hook_scheme_effects.txt +++ /dev/null @@ -1,302 +0,0 @@ -#Scripted effects relating to Fabricate Hook Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -# fabricate_hook_assign_appropriate_type_effect - parameters: TYPE - Sets a correct type of Hook, depending on Hook Type and whether the target is a Ruler -# fabricate_hook_discovery_effect - Effect notifying the target Court Owner and blocking further Scheming against them -# fabricate_hook_success_effect - parameters: TYPE - Effect for successful execution (run when the Scheme is Successful AND the cost is paid) -# fabricate_hook_decline_execution_effect - Resets the Scheme with a bonus -###################################################################### -# EFFECTS -###################################################################### - -fabricate_hook_assign_appropriate_type_effect = { - debug_log = "Running Fabricate Hook's Assign Appropriate Hook effect" - assert_if = { - limit = { - scope:owner = { - has_strong_hook = scope:target - } - } - text = "The Fabricate Hook Scheme Owner already has a Strong Hook on the Target! Why is this effect running?" - } - assert_if = { - limit = { - scope:target = { is_ruler = yes } - NOT = { exists = scope:strong_hook_against_ruler } - scope:owner = { has_hook = scope:target } - } - text = "The Owner has a hook against a ruler target, and the strong hook roll failed. Something has gone wrong to get here!" - } - - save_scope_value_as = { - name = hook_type - value = flag:$TYPE$ - } - # Go through the Hook types, and assign the appropriate one - if = { - limit = { - scope:hook_type = flag:loyalty_hook - } - # Check rulers first (to give weaker Hooks) - if = { - limit = { - scope:target = { is_ruler = yes } - NOT = { exists = scope:strong_hook_against_ruler } # Set by on_ready in the Scheme - } - send_interface_toast = { - title = fabricate_hook_gained_indebted_title - left_icon = scope:target - add_hook = { - type = indebted_hook - target = scope:target - } - } - } - else = { - send_interface_toast = { - title = fabricate_hook_gained_loyalty_title - left_icon = scope:target - add_hook = { - type = loyalty_hook - target = scope:target - } - } - } - } - else_if = { - limit = { - scope:hook_type = flag:fabrication_hook - } - # Check rulers first (to give weaker Hooks) - if = { - limit = { - scope:target = { is_ruler = yes } - NOT = { exists = scope:strong_hook_against_ruler } # Set by on_ready in the Scheme - } - send_interface_toast = { - title = fabricate_hook_gained_manipulation_title - left_icon = scope:target - add_hook = { - type = manipulation_hook - target = scope:target - } - } - } - else = { - send_interface_toast = { - title = fabricate_hook_gained_indebted_title - left_icon = scope:target - add_hook = { - type = fabrication_hook - target = scope:target - } - } - } - } - else_if = { - limit = { - scope:hook_type = flag:life_threat_hook - } - debug_log = "Attempting to set life threat hook" - # Check rulers first (to give weaker Hooks) - if = { - limit = { - scope:target = { is_ruler = yes } - NOT = { exists = scope:strong_hook_against_ruler } # Set by on_ready in the Scheme - } - debug_log = "Trying to set regular threat hook against ruler" - send_interface_toast = { - title = fabricate_hook_gained_threat_title - left_icon = scope:target - add_hook = { - type = threat_hook - target = scope:target - } - scope:target = { - add_opinion = { - target = scope:owner - modifier = fabricate_hook_threatened_me - years = 10 - } - } - } - } - else = { - if = { - limit = { exists = scope:strong_hook_against_ruler } - debug_log = "Trying to set life_threat_hook against a ruler" - } - else = { - debug_log = "Setting life_threat_hook against non-ruler" - assert_if = { - limit = { scope:target = { is_ruler = yes } } - text = "There is no ruler strong hook roll, but we're still trying to set a life_threat_hook on them!" - } - } - send_interface_toast = { - title = fabricate_hook_gained_threat_title - left_icon = scope:target - add_hook = { - type = life_threat_hook - target = scope:target - } - scope:target = { - add_opinion = { - target = scope:owner - modifier = fabricate_hook_threatened_me - years = 10 - } - } - } - } - } - # Error catch - else = { - assert_if = { - limit = { always = yes } # It should never get here - text = "Fabricate Hook assignment effect did not have a Hook type set when trying to assign a Hook!" - } - } -} - -fabricate_hook_block_scheme_owner_from_further_schemes_effect = { - add_opinion = { - target = scope:owner - modifier = fabricated_hook_against_court_opinion - years = 5 - } - custom_tooltip = fabricate_hook_i_may_not_fabricate_again -} - -fabricate_hook_discovery_effect = { - show_as_tooltip = { # Target dislikes you - custom_tooltip = fabricate_hook_i_may_not_fabricate_again - scope:target = { - add_opinion = { - target = scope:owner - modifier = fabricated_hook_against_court_opinion - years = 5 - } - } - if = { - limit = { - exists = scope:target.court_owner - NOT = { scope:target = scope:target.court_owner } - } - scope:target.court_owner = { - add_opinion = { - target = scope:owner - modifier = fabricated_hook_against_court_opinion - years = 5 - } - } - } - } - - hidden_effect = { - # Set a blocker for Fabricating further Hooks against Court in question - if = { - limit = { - exists = scope:target.court_owner - } - scope:target.court_owner = { - send_interface_message = { - type = fabricate_hook_bad_message - left_icon = scope:owner - title = hostile_scheme_discovery.3002.t - - if = { - limit = { - NOT = { scope:owner = scope:target.court_owner} - } - fabricate_hook_block_scheme_owner_from_further_schemes_effect = yes - } - } - } - } - if = { - limit = { - OR = { - NOT = { exists = scope:target.court_owner } - NOT = { scope:target.court_owner = scope:target } - } - } - scope:target = { - add_opinion = { - target = scope:owner - modifier = fabricated_hook_against_court_opinion - years = 5 - } - } - } - } -} - - -#Used in event options -fabricate_hook_success_effect = { - fabricate_hook_assign_appropriate_type_effect = { - TYPE = $TYPE$ # Sets the correct hook type to give - } - if = { - limit = { exists = scope:target.court_owner } - scope:target.court_owner = { save_scope_as = court_owner } - } - if = { - limit = { - exists = scope:target.court_owner - scope:target = scope:court_owner - } - if = { - limit = { - exists = scope:scheme_discovered - } - custom_tooltip = fabricate_hook_i_may_not_fabricate_again - scope:target = { - add_opinion = { - target = scope:owner - modifier = fabricated_hook_against_court_opinion - years = 5 - } - } - } - } - else = { - fabricate_hook_discovery_effect = yes - } - - if = { - limit = { exists = scope:scheme } - scope:scheme = { - end_scheme = yes - } - } -} - - -fabricate_hook_decline_execution_effect = { - scope:scheme = { - add_scheme_modifier = { - type = fabricate_hook_building_influence_modifier - } - custom_tooltip = restart_scheme_tt - hidden_effect = { - add_scheme_progress = -10 - } - } -} - -fabricate_hook_success_notification_event_effect = { - custom_tooltip = fabricate_hook_hook_gained_on_you - if = { - limit = { - exists = scope:scheme_discovered - scope:target = scope:target.court_owner - } - fabricate_hook_block_scheme_owner_from_further_schemes_effect = yes - } -} diff --git a/common/scripted_effects/00_feast_scripted_effects.txt b/common/scripted_effects/00_feast_scripted_effects.txt deleted file mode 100644 index c640fe7fe8..0000000000 --- a/common/scripted_effects/00_feast_scripted_effects.txt +++ /dev/null @@ -1,234 +0,0 @@ - -#Effects used in Feasts - -#feast_end_guest_effect - Effect run for all guests when they leave feasts - -feast_fire_correct_default_event_effect = { - if = { - limit = { - this = scope:activity.activity_host - } - trigger_event = { - on_action = feast_default_host_event_selection - days = { min_feast_event_spacing max_feast_event_spacing } - } - } - else = { - trigger_event = { - on_action = feast_default_event_selection - days = { min_feast_event_spacing max_feast_event_spacing } - } - } -} - -feast_end_guest_effect = { - # Only called on the end of a *successful* feast. Feasts which are interrupted due to death, imprisonment, etc., don't get this, so put critical clean-up stuff in the activity itself. - reveler_lifestyle_rank_up_check_effect = yes - stress_impact = { - base = medium_stress_loss - gluttonous = medium_stress_impact_loss - gregarious = medium_stress_impact_loss - shy = medium_stress_impact_gain - } -} - -add_hosted_feast_modifier_towards_character = { - if = { - limit = { - $CHARACTER$ = { - employs_court_position = court_musician_court_position - any_court_position_holder = { - type = court_musician_court_position - is_physically_able = yes - } - } - } - if = { - limit = { # Increase the bonus slightly if musician's culture has Musicical Theorists - $CHARACTER$ = { - any_court_position_holder = { - type = court_musician_court_position - culture = { has_cultural_parameter = characters_are_better_court_musicians } - } - } - } - add_opinion = { - target = $CHARACTER$ - modifier = feast_hosted_successful_feast_with_music - opinion = 35 - } - } - else = { - add_opinion = { - target = $CHARACTER$ - modifier = feast_hosted_successful_feast_with_music - } - } - } - else = { - add_opinion = { - target = $CHARACTER$ - modifier = feast_hosted_successful_feast - } - } -} -# Deprecated. -hosted_successful_feast_effect = { - if = { - limit = { - culture = { - has_cultural_parameter = renown_from_feasts - } - exists = dynasty - } - dynasty = { - add_dynasty_prestige = minor_dynasty_prestige_value - } - } - scope:activity = { - every_attending_character = { - limit = { NOT = { this = root } } - custom = every_guest_scope_tt - add_hosted_feast_modifier_towards_character = { CHARACTER = root } - } - } - reveler_lifestyle_rank_up_check_effect = yes - hidden_effect = { - if = { - limit = { exists = scope:spouse } - add_opinion = { #Your opinion of your Spouse increases, considering they did most of the work - target = scope:spouse - modifier = feast_spouse_hosted_successful_feast_opinion - } - } - } -} - -hosted_successful_feast_new_effect = { - # Renown gain from Tradition. - if = { - limit = { - culture = { has_cultural_parameter = renown_from_feasts } - } - dynasty ?= { add_dynasty_prestige = minor_dynasty_prestige_value } - } - # Piety gain from Tenets. - if = { - limit = { - faith = { - OR = { - has_doctrine_parameter = piety_from_feasts_active - AND = { - has_doctrine_parameter = summer_festivals_active - # Only during 'summer' (May 1st through July 31st). - current_month >= 5 - current_month <= 7 - } - } - } - } - add_piety = { - value = 0 - - if = { - limit = { - faith = { has_doctrine_parameter = summer_festivals_active } - # Only during 'summer' (May 1st through July 31st). - current_month >= 5 - current_month <= 7 - } - add = major_piety_value - } - if = { - limit = { - faith = { has_doctrine = tenet_ritual_celebrations } - } - add = medium_piety_value - } - if = { - limit = { - faith = { has_doctrine = tenet_hedonistic } - } - add = medium_piety_value - } - if = { - limit = { - has_royal_court = yes - amenity_level = { type = court_food_quality value >= 5 } - } - multiply = 2.5 - } - else_if = { - limit = { - has_royal_court = yes - amenity_level = { type = court_food_quality value >= 4 } - } - multiply = 2 - } - else_if = { - limit = { - has_royal_court = yes - amenity_level = { type = court_food_quality value >= 3 } - } - multiply = 1.5 - } - else_if = { - limit = { - has_royal_court = yes - amenity_level = { type = court_food_quality value >= 2 } - } - multiply = 1 - } - else_if = { - limit = { - has_royal_court = yes - amenity_level = { type = court_food_quality value <= 1 } - } - multiply = 0.5 - } - - # Always give some piety, even if you completely cheaped out. - min = medium_piety_value - } - } - # County development - scope:activity_location.county = { - add_county_modifier = { - modifier = feast_recent_fest_modifier - years = 5 - } - } - # Opinion with spouse (various other opinions handled elsewhere). - hidden_effect = { - if = { - limit = { exists = scope:spouse } - add_opinion = { #Your opinion of your Spouse increases, considering they did most of the work - target = scope:spouse - modifier = feast_spouse_hosted_successful_feast_opinion - } - } - } -} - -hosted_successful_feast_interrupted_effect = { - add_prestige = medium_prestige_gain - scope:activity = { - every_attending_character = { - limit = { - NOT = { this = scope:host } - } - custom = every_guest_scope_tt - add_hosted_feast_modifier_towards_character = { CHARACTER = scope:host } - } - } - reveler_lifestyle_rank_up_check_effect = yes - hidden_effect = { - if = { - limit = { exists = scope:spouse } - add_opinion = { #Your opinion of your Spouse increases, considering they did most of the work - target = scope:spouse - modifier = feast_spouse_hosted_successful_feast_opinion - } - } - } -} diff --git a/common/scripted_effects/00_general_scheme_effects.txt b/common/scripted_effects/00_general_scheme_effects.txt deleted file mode 100644 index 880ac0d2d7..0000000000 --- a/common/scripted_effects/00_general_scheme_effects.txt +++ /dev/null @@ -1,198 +0,0 @@ -#Scripted effects relating to Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -# - -###################################################################### -# EFFECTS -###################################################################### - - - -find_agent_in_question_effect = { -# Finds an agent in a scheme, and saves them as the event target agent_in_question - scope:scheme = { - if = { - limit = { - scheme_number_of_agents > 0 - } - random_scheme_agent = { - save_scope_as = agent_in_question - } - } - } -} - -hostile_scheme_discovery_chance_effect = { - if = { - limit = { - scope:target.host = scope:owner - NOT = { - exists = scope:scheme.var:had_self_court_discovery - } - } - #Check if the scheme is happening against someone at owner's court - #If owner's own court, check for discovery - random = { - chance = scope:owner.hostile_scheme_own_court_discovery_chance - - scope:scheme = { - set_variable = { - name = had_self_court_discovery - value = yes - years = 3 - } - } - scope:owner = { #Note that this fires for owner, not target - if = { - limit = { - scope:scheme = { - scheme_type = murder - } - } - trigger_event = hostile_scheme_discovery.4002 - } - else = { - trigger_event = hostile_scheme_discovery.4001 - } - } - save_temporary_scope_value_as = { - name = discovery_event_happening - value = yes - } - } - } - - #Check for targets that have different courts than the scheme owner - else_if = { - limit = { - #Does the target have a Spymaster? - exists = scope:target.host.cp:councillor_spymaster - } - #Save spymaster scope for later reference - scope:target.host.cp:councillor_spymaster = { - save_scope_as = spymaster - } - - if = { - limit = { - is_scheme_exposed = no - #Spymaster won't expose their own Scheme - NOT = { scope:owner = scope:spymaster } - #Spymaster won't expose *your* (liege's) Scheme - NOT = { scope:owner = scope:spymaster.liege } - #Spymaster won't expose a scheme if they are an agent of it - NOT = { scheme_is_character_agent = scope:spymaster } - } - random = { - chance = scope:spymaster.spymaster_scheme_discovery_chance - - save_temporary_scope_value_as = { - name = discover_scheme - value = yes - } - } - } - - #Discover agent or owner? We don't want both to happen at once - random_list = { - 50 = { #AGENT - trigger = { - is_scheme_exposed = yes #Agents should only be exposed if the scheme already is exposed - any_scheme_agent = { - agent_valid_to_be_discovered_by_spymaster = yes - } - } - random = { - chance = scope:spymaster.spymaster_agent_discovery_chance - - save_temporary_scope_value_as = { - name = discover_agent - value = yes - } - } - } - - 50 = { #OWNER - trigger = { - is_scheme_exposed = yes #Owner should only be exposed if the scheme already is exposed - } - random = { - chance = scope:spymaster.spymaster_owner_discovery_chance - - save_temporary_scope_value_as = { - name = discover_owner - value = yes - } - } - } - } - - if = { - #Execution of scheme discovery - limit = { - exists = scope:discover_scheme - } - scope:target.host = { - trigger_event = hostile_scheme_discovery.2001 - } - save_temporary_scope_value_as = { - name = discovery_event_happening - value = yes - } - } - else_if = { - #Execution of agent discovery - limit = { - exists = scope:discover_agent - } - random_scheme_agent = { - limit = { - is_alive = yes - agent_valid_to_be_discovered_by_spymaster = yes - } - weight = { - base = 1 - modifier = { - add = -0.5 - is_consort_of = scope:target - } - } - save_scope_as = agent - } - scope:target.host = { - trigger_event = hostile_scheme_discovery.1001 - } - save_temporary_scope_value_as = { - name = discovery_event_happening - value = yes - } - } - else_if = { - #Execution of owner discovery - limit = { - exists = scope:discover_owner - trigger_if = { - limit = { - exists = scope:spymaster - } - NOT = { - scope:spymaster = scope:owner - } - } - } - scope:target.host = { - trigger_event = hostile_scheme_discovery.1002 - } - save_temporary_scope_value_as = { - name = discovery_event_happening - value = yes - } - } - } -} - diff --git a/common/scripted_effects/00_holy_order_effects.txt b/common/scripted_effects/00_holy_order_effects.txt deleted file mode 100644 index 478a232998..0000000000 --- a/common/scripted_effects/00_holy_order_effects.txt +++ /dev/null @@ -1,184 +0,0 @@ - - -send_child_to_holy_order_tooltip_effect = { - scope:recipient = { - add_trait = order_member - add_piety_level = 1 - custom_tooltip = character_will_leave_court_holy_order - if = { - limit = { - is_married = yes - } - every_spouse = { - divorce = scope:recipient - } - } - if = { - limit = { - exists = betrothed - } - break_betrothal = betrothed - if = { - limit = { - has_been_promised_grand_wedding = yes - } - break_grand_wedding_betrothal_effect = yes - } - } - if = { - limit = { - is_concubine = yes - } - this.concubinist = { - remove_concubine = scope:recipient - } - } - if = { - limit = { - number_of_concubines > 0 - } - every_concubine = { - scope:recipient = { - remove_concubine = prev - } - } - } - } -} - -send_child_to_holy_order_effect = { - scope:recipient = { - add_trait = order_member - add_piety_level = 1 - if = { - limit = { is_ruler = yes } - depose = yes - } - if = { - limit = { - NOT = { faith = scope:$GRANDMASTER$.faith } - } - set_character_faith = scope:$GRANDMASTER$.faith - } - if = { - limit = { - is_married = yes - } - every_spouse = { - divorce = scope:recipient - } - } - if = { - limit = { - exists = betrothed - } - break_betrothal = betrothed - if = { - limit = { - has_been_promised_grand_wedding = yes - } - break_grand_wedding_betrothal_effect = yes - } - } - if = { - limit = { - is_concubine = yes - } - this.concubinist = { - remove_concubine = scope:recipient - } - } - if = { - limit = { - number_of_concubines > 0 - } - every_concubine = { - scope:recipient = { - remove_concubine = prev - } - } - } - } - if = { - limit = { - scope:recipient = { - is_close_family_of = scope:actor - } - } - scope:$GRANDMASTER$ = { - add_courtier = scope:recipient - add_opinion = { - target = scope:actor - modifier = pleased_opinion - opinion = 20 - } - } - } -} - -send_child_to_clergy_effect = { - scope:recipient = { - add_opinion = { - modifier = demanded_taking_vows - target = scope:actor - } - add_trait = devoted - add_piety_level = 1 - if = { - limit = { is_ruler = yes } - depose = yes - } - if = { - limit = { - is_married = yes - } - every_spouse = { - divorce = scope:recipient - } - } - if = { - limit = { - exists = betrothed - } - break_betrothal = betrothed - if = { - limit = { - has_been_promised_grand_wedding = yes - } - break_grand_wedding_betrothal_effect = yes - } - } - if = { - limit = { - is_concubine = yes - } - this.concubinist = { - remove_concubine = scope:recipient - } - } - if = { - limit = { - number_of_concubines > 0 - } - every_concubine = { - scope:recipient = { - remove_concubine = prev - } - } - } - } -} - -release_as_executioner_effect = { - scope:actor = { - appoint_court_position = { - recipient = scope:recipient - court_position = executioner_court_position - } - save_scope_as = liege - } - scope:recipient = { - save_scope_as = employee - executioner_title_accepted_effect = yes - } -} diff --git a/common/scripted_effects/00_interaction_effects.txt b/common/scripted_effects/00_interaction_effects.txt index 2f89665bbb..c53034b5d0 100644 --- a/common/scripted_effects/00_interaction_effects.txt +++ b/common/scripted_effects/00_interaction_effects.txt @@ -1,13 +1,9 @@  -##################################################################### +####################################################################### # EFFECT LIST -##################################################################### +####################################################################### # !!! Remember to add all new effects with a short description here !!! - -##################################################################### -# EFFECTS -##################################################################### - +####################################################################### blackmail_interaction_effect = { scope:actor = { @@ -1421,16 +1417,16 @@ denounce_effect = { add_trait = denounced if = { limit = { - scope:actor = { + $ACTOR$ = { has_hook_of_type = { - target = scope:recipient + target = $RECIPIENT$ type = house_head_hook } } } - scope:actor = { + $ACTOR$ = { remove_hook = { - target = scope:recipient + target = $RECIPIENT$ type = house_head_hook } } @@ -1438,41 +1434,41 @@ denounce_effect = { if = { limit = { has_opinion_modifier = { - target = scope:actor + target = $ACTOR$ modifier = forgave_denounced_opinion } } custom_tooltip = forgiven_changed_to_denounced hidden_effect = { remove_opinion = { - target = scope:actor + target = $ACTOR$ modifier = forgave_denounced_opinion } add_opinion = { modifier = denounced_opinion - target = scope:actor + target = $ACTOR$ } } } else = { add_opinion = { modifier = denounced_opinion - target = scope:actor + target = $ACTOR$ } } if = { limit = { - NOT = { is_close_family_of = scope:actor } + NOT = { is_close_family_of = $ACTOR$ } } house = { every_house_member = { limit = { - NOT = { house = scope:actor.house } + NOT = { house = $ACTOR$.house } } custom = all_house_members add_opinion = { modifier = denounced_house_member_opinion - target = scope:actor + target = $ACTOR$ } } } @@ -1643,6 +1639,7 @@ education_flags_tooltips_effect = { } } } + # Knowledge if = { limit = { @@ -1810,21 +1807,11 @@ offer_vassalization_interaction_effect = { limit = { is_independent_ruler = no } # To avoid errors during tooltip generation (prior to the contract being generated) vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 2 } vassal_contract_set_obligation_level = { type = feudal_government_levies level = 1 } - #if = { - # limit = { scope:actor.faith = { has_doctrine_parameter = unlock_jizya_contract } } - # vassal_contract_set_obligation_level = { type = jizya_special_rights level = 1 } - #} - #else = { - vassal_contract_set_obligation_level = { type = religious_rights level = 1 } - #} + vassal_contract_set_obligation_level = { type = religious_rights level = 1 } } } custom_tooltip = normal_obligations_taxes custom_tooltip = low_obligations_levies - #if = { - # limit = { scope:actor.faith = { has_doctrine_parameter = unlock_jizya_contract } } - # custom_tooltip = jizya_religious_protection_tt - #} custom_tooltip = religious_protection_tt } else = { @@ -1847,16 +1834,9 @@ offer_vassalization_interaction_effect = { hidden_effect = { if = { limit = { is_independent_ruler = no } # To avoid errors during tooltip generation (prior to the contract being generated) - #if = { - # limit = { scope:actor.faith = { has_doctrine_parameter = unlock_jizya_contract } } - # vassal_contract_set_obligation_level = { type = jizya_special_rights level = 1 } - #} - #else = { - vassal_contract_set_obligation_level = { type = religious_rights level = 1 } - #} + vassal_contract_set_obligation_level = { type = religious_rights level = 1 } } } - # Warcraft custom_tooltip = religious_protection_tt } } @@ -1924,13 +1904,7 @@ offer_fealty_interaction_effect = { limit = { is_independent_ruler = no } # To avoid errors during tooltip generation (prior to the contract being generated) vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 3 } vassal_contract_set_obligation_level = { type = feudal_government_levies level = 2 } - #if = { - # limit = { scope:recipient.faith = { has_doctrine_parameter = unlock_jizya_contract } } - # vassal_contract_set_obligation_level = { type = jizya_special_rights level = 1 } - #} - #else = { - vassal_contract_set_obligation_level = { type = religious_rights level = 1 } - #} + vassal_contract_set_obligation_level = { type = religious_rights level = 1 } } } custom_tooltip = high_obligations_taxes @@ -1959,7 +1933,7 @@ offer_fealty_interaction_effect = { if = { limit = { is_independent_ruler = no } # To avoid errors during tooltip generation (prior to the contract being generated) vassal_contract_set_obligation_level = { type = religious_rights level = 1 } - } + } } custom_tooltip = religious_protection_tt } @@ -1995,6 +1969,12 @@ call_ally_interaction_event_effect = { add_attacker = scope:recipient scope:actor = { if = { + limit = { + scope:recipient.primary_title.tier = tier_barony + } + add_prestige = -10 + } + else_if = { limit = { scope:recipient.primary_title.tier = tier_county } @@ -2012,7 +1992,10 @@ call_ally_interaction_event_effect = { } add_prestige = major_prestige_loss } - else = { + else_if = { + limit = { + scope:recipient.primary_title.tier = tier_empire + } add_prestige = massive_prestige_loss } } @@ -2339,6 +2322,57 @@ revoke_title_interaction_effect = { } } } + + # If we're a clan this interaction affects unity + if = { + limit = { + scope:actor = { government_has_flag = government_is_clan } + scope:recipient = { government_has_flag = government_is_clan } + exists = scope:actor.house + exists = scope:recipient.house + scope:actor.house = scope:recipient.house + scope:landed_title.tier >= tier_county + } + scope:actor.house = { + if = { + limit = { + scope:landed_title.tier = tier_county + } + save_scope_value_as = { + name = revoke_title_unity_loss + value = minor_unity_loss + } + } + if = { + limit = { + scope:landed_title.tier = tier_duchy + } + save_scope_value_as = { + name = revoke_title_unity_loss + value = medium_unity_loss + } + } + else = { + limit = { + scope:landed_title.tier = tier_kingdom + } + save_scope_value_as = { + name = revoke_title_unity_loss + value = major_unity_loss + } + } + if = { + limit = { exists = scope:revoke_title_unity_loss } + add_clan_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = scope:revoke_title_unity_loss + DESC = clan_unity_title_revoked.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + } + } } else = { if = { @@ -3054,6 +3088,103 @@ revoke_holy_order_duel_victor_apply_effects_effect = { } } +add_clan_unity_interaction_effect = { + if = { + limit = { # Check if unity is relevant + $CHARACTER$ = { government_has_flag = government_is_clan } + $TARGET$ = { government_has_flag = government_is_clan } + exists = $CHARACTER$.house + exists = $TARGET$.house + $CHARACTER$.house = $TARGET$.house + trigger_if = { + limit = { + exists = scope:actor + exists = scope:recipient + NOT = { scope:actor = scope:recipient } + } + NOT = { $CHARACTER$ = $TARGET$ } # As a safety, let's make sure that we are not interacting with ourselves + } + } + + apply_clan_unity_interaction_effect = { + CHARACTER = $CHARACTER$ + TARGET = $TARGET$ + DESC = $DESC$ + VALUE = $VALUE$ + VALUE_REVERSED = no + } + } + else_if = { + limit = { # Only apply reversed effect for the house head to keep the gauge in check + $REVERSE_NON_HOUSE_TARGET$ = yes + + $CHARACTER$ = { government_has_flag = government_is_clan } + $CHARACTER$.house ?= { + house_head = $CHARACTER$ + } + OR = { + AND = { + exists = $TARGET$.house + NOT = { $CHARACTER$.house = $TARGET$.house } + } + $TARGET$ = { is_lowborn = yes } + } + } + apply_clan_unity_interaction_effect = { + CHARACTER = $CHARACTER$ + TARGET = $TARGET$ + DESC = $DESC$ + VALUE = $VALUE$ + VALUE_REVERSED = yes + } + } +} + +apply_clan_unity_interaction_effect = { + # Save scopes for localisation + $CHARACTER$ = { save_scope_as = unity_character } + $TARGET$ = { save_scope_as = unity_target } + + $CHARACTER$.house = { + save_scope_as = character_house + + add_unity_value = { + value = { + value = $VALUE$ + if = { # House heads have a larger impact on unity + limit = { house_head = $CHARACTER$ } + multiply = unity_house_head_multiplier_value + } + if = { + limit = { $VALUE_REVERSED$ = yes } + multiply = -1 + } + } + character = $CHARACTER$ + desc = $DESC$ + } + } + + # Notify human players if they are not involved! + if = { + limit = { + trigger_if = { + limit = { $VALUE$ >= 0 } + $VALUE$ >= major_unity_value + } + trigger_else = { + $VALUE$ <= major_unity_value + } + } + # Notify human players if they are not involved! + notify_players_about_unity_change_effect = { + CHARACTER = $CHARACTER$ + TARGET = $TARGET$ + DESC = $DESC$ + } + } +} + diarch_declare_recipient_criminal_effect = { scope:actor = { # First we process the diarch. diff --git a/common/scripted_effects/00_intercourse_effects.txt b/common/scripted_effects/00_intercourse_effects.txt deleted file mode 100644 index 4fbc38d4a7..0000000000 --- a/common/scripted_effects/00_intercourse_effects.txt +++ /dev/null @@ -1,30 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - - -#Effects to run in events when intercourse takes place (pregnancy and SDT chance) -#intercourse_with_scope_effect - with a known, existing character -#intercourse_with_dummy_effect - with a dummy character -#intercourse_with_unknown_effect - when the gender(s) of the other character(s) is unclear - -##################################################################### -# EFFECTS -##################################################################### - -#Needs argument intercourse_character -intercourse_with_character_effect = { - $INTERCOURSE_CHARACTER$ = { add_gold = 1 } -} - -intercourse_with_dummy_effect = { - -} - -intercourse_with_unknown_effect = { - -} - - diff --git a/common/scripted_effects/00_intrigue_lifestyle_effects.txt b/common/scripted_effects/00_intrigue_lifestyle_effects.txt deleted file mode 100644 index 31520353f9..0000000000 --- a/common/scripted_effects/00_intrigue_lifestyle_effects.txt +++ /dev/null @@ -1,1004 +0,0 @@ -#Effects used in Lifestyle Focus events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#intrigue_dread_4001_torture_increase_effectiveness_with_trait_effect - Used in event to check torture methods against target's personality. -#intrigue_dread_4001_torture_increase_effectiveness_remove_trait_effect - Used in event to check torture methods against target's personality, then remove those personality traits. -#intrigue_scheming_4050_display_player_response_effect - Used in event to display a special tooltip if the secret buyer is a player. - - - -#Find one personality trigger that the character has, and two that they do not. -decide_what_options_to_present_effect = { - hidden_effect = { - random_list = { - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_malicious_trigger = yes - } - } - ai_value_modifier = { - ai_vengefulness = medium_chance_impact_positive_vengefulness - } - set_variable = { - name = option_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_benevolent_trigger = yes - } - } - ai_value_modifier = { - ai_compassion = medium_chance_impact_positive_compassion - ai_rationality = low_chance_impact_positive_rationality - } - set_variable = { - name = option_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_dominant_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - } - set_variable = { - name = option_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_submissive_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - ai_energy = low_chance_impact_negative_energy - } - set_variable = { - name = option_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_extroverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - ai_compassion = low_chance_impact_positive_boldness - } - set_variable = { - name = option_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_introverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - } - set_variable = { - name = option_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_emotional_trigger = yes - } - } - ai_value_modifier = { - ai_energy = medium_chance_impact_positive_energy - } - set_variable = { - name = option_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_levelheaded_trigger = yes - } - } - ai_value_modifier = { - ai_rationality = medium_chance_impact_positive_rationality - } - set_variable = { - name = option_to_present - value = flag:levelheaded - days = 800 - } - } - } - #Fallback - if = { - limit = { - NOT = { - exists = var:option_to_present - } - } - random_list = { - 1 = { - set_variable = { - name = option_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - set_variable = { - name = option_to_present - value = flag:levelheaded - days = 800 - } - } - } - } - #Bad option 1 - random_list = { - 1 = { - trigger = { - NOT = { var:option_to_present = flag:malicious } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_malicious_trigger = yes - } - } - ai_value_modifier = { - ai_vengefulness = medium_chance_impact_positive_vengefulness - } - set_variable = { - name = option_1_fail_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:benevolent } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_benevolent_trigger = yes - } - } - ai_value_modifier = { - ai_compassion = medium_chance_impact_positive_compassion - ai_rationality = low_chance_impact_positive_rationality - } - set_variable = { - name = option_1_fail_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:dominant } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_dominant_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - } - set_variable = { - name = option_1_fail_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:submissive } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_submissive_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - ai_energy = low_chance_impact_negative_energy - } - set_variable = { - name = option_1_fail_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:extroverted } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_extroverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - ai_compassion = low_chance_impact_positive_boldness - } - set_variable = { - name = option_1_fail_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:introverted } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_introverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - } - set_variable = { - name = option_1_fail_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:emotional } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_emotional_trigger = yes - } - } - ai_value_modifier = { - ai_energy = medium_chance_impact_positive_energy - } - set_variable = { - name = option_1_fail_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:levelheaded } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_levelheaded_trigger = yes - } - } - ai_value_modifier = { - ai_rationality = medium_chance_impact_positive_rationality - } - set_variable = { - name = option_1_fail_to_present - value = flag:levelheaded - days = 800 - } - } - } - #Fallback - if = { - limit = { - NOT = { - exists = var:option_1_fail_to_present - } - } - random_list = { - 1 = { - trigger = { - NOT = { var:option_to_present = flag:malicious } - } - set_variable = { - name = option_1_fail_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:benevolent } - } - set_variable = { - name = option_1_fail_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:dominant } - } - set_variable = { - name = option_1_fail_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:submissive } - } - set_variable = { - name = option_1_fail_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:extroverted } - } - set_variable = { - name = option_1_fail_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:introverted } - } - set_variable = { - name = option_1_fail_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:emotional } - } - set_variable = { - name = option_1_fail_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - trigger = { - NOT = { var:option_to_present = flag:levelheaded } - } - set_variable = { - name = option_1_fail_to_present - value = flag:levelheaded - days = 800 - } - } - } - } - #Bad option 2 - random_list = { - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:malicious - var:option_1_fail_to_present = flag:malicious - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_malicious_trigger = yes - } - } - ai_value_modifier = { - ai_vengefulness = medium_chance_impact_positive_vengefulness - } - set_variable = { - name = option_2_fail_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:benevolent - var:option_1_fail_to_present = flag:benevolent - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_benevolent_trigger = yes - } - } - ai_value_modifier = { - ai_compassion = medium_chance_impact_positive_compassion - ai_rationality = low_chance_impact_positive_rationality - } - set_variable = { - name = option_2_fail_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:dominant - var:option_1_fail_to_present = flag:dominant - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_dominant_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - } - set_variable = { - name = option_2_fail_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:submissive - var:option_1_fail_to_present = flag:submissive - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_submissive_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - ai_energy = low_chance_impact_negative_energy - } - set_variable = { - name = option_2_fail_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:extroverted - var:option_1_fail_to_present = flag:extroverted - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_extroverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_positive_boldness - ai_compassion = low_chance_impact_positive_boldness - } - set_variable = { - name = option_2_fail_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:introverted - var:option_1_fail_to_present = flag:introverted - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_introverted_trigger = yes - } - } - ai_value_modifier = { - ai_boldness = medium_chance_impact_negative_boldness - } - set_variable = { - name = option_2_fail_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:emotional - var:option_1_fail_to_present = flag:emotional - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_emotional_trigger = yes - } - } - ai_value_modifier = { - ai_energy = medium_chance_impact_positive_energy - } - set_variable = { - name = option_2_fail_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:levelheaded - var:option_1_fail_to_present = flag:levelheaded - } - } - modifier = { - add = 2 - scope:courtier_spy = { - has_trait_levelheaded_trigger = yes - } - } - ai_value_modifier = { - ai_rationality = medium_chance_impact_positive_rationality - } - set_variable = { - name = option_2_fail_to_present - value = flag:levelheaded - days = 800 - } - } - } - #Fallback - if = { - limit = { - NOT = { - exists = var:option_2_fail_to_present - } - } - random_list = { - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:malicious - var:option_1_fail_to_present = flag:malicious - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:malicious - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:benevolent - var:option_1_fail_to_present = flag:benevolent - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:benevolent - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:dominant - var:option_1_fail_to_present = flag:dominant - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:dominant - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:submissive - var:option_1_fail_to_present = flag:submissive - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:submissive - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:extroverted - var:option_1_fail_to_present = flag:extroverted - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:extroverted - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:introverted - var:option_1_fail_to_present = flag:introverted - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:introverted - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:emotional - var:option_1_fail_to_present = flag:emotional - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:emotional - days = 800 - } - } - 1 = { - trigger = { - NOR = { - var:option_to_present = flag:levelheaded - var:option_1_fail_to_present = flag:levelheaded - } - } - set_variable = { - name = option_2_fail_to_present - value = flag:levelheaded - days = 800 - } - } - } - } - } -} - - -intrigue_dread_4001_select_prisoner_effect = { - $PRISONER$ = { - custom_tooltip = intrigue_dread.4001.a-c.tt - add_character_flag = intrigue_dread_4001_victim_flag - - if = { - limit = { - is_close_or_extended_family_of = root - } - custom_tooltip = intrigue_dread.4001.kinslayer - } - if = { - limit = { - NOT = { is_in_prison_type = dungeon } - } - change_prison_type = dungeon - } - save_scope_as = victim - } - - trigger_event = { - id = intrigue_dread.4002 - days = { 3 5 } - } -} - -intrigue_dread_4001_torture_increase_effectiveness_with_trait_effect = { - if = { - limit = { - scope:victim = { - has_trait = $TRAIT$ - } - } - change_variable = { - name = break_value - subtract = 1 - } - } -} - -intrigue_dread_4001_torture_increase_effectiveness_remove_trait_effect = { - if = { - limit = { - scope:victim = { - has_trait = $TRAIT$ - } - } - change_variable = { - name = break_value - subtract = 1 - } - scope:victim = { - remove_trait = $TRAIT$ - } - } -} - -intrigue_scheming_4050_display_player_response_effect = { - save_scope_value_as = { - name = payment - value = $PAYMENT$ - } - if = { - limit = { - scope:payment = flag:gold - } - random_list = { - 1 = { - desc = intrigue_scheming.4050.success - show_chance = no - show_as_tooltip = { - scope:buyer = { - pay_short_term_gold = { - target = scope:seller - gold = scope:saved_gold_amount - } - } - scope:secret = { - reveal_to = scope:buyer - } - custom_tooltip = intrigue_scheming_focus_point_clear_gain - hidden_effect = { add_focus_progress = standard_lifestyle_focus_progress } - } - } - 1 = { - desc = intrigue_scheming.4050.failure - show_chance = no - } - } - } - else_if = { - limit = { - scope:payment = flag:secret - } - random_list = { - 1 = { - desc = intrigue_scheming.4050.success - show_chance = no - show_as_tooltip = { - custom_tooltip = intrigue_scheming.4050.b.tt - scope:secret = { - reveal_to = scope:buyer - } - custom_tooltip = intrigue_scheming_focus_point_clear_gain - hidden_effect = { add_focus_progress = standard_lifestyle_focus_progress } - } - } - 1 = { - desc = intrigue_scheming.4050.failure - show_chance = no - } - } - } - else_if = { - limit = { - scope:payment = flag:favor - } - random_list = { - 1 = { - desc = intrigue_scheming.4050.success - show_chance = no - show_as_tooltip = { - scope:seller = { - add_hook = { - target = scope:buyer - type = favor_hook - } - } - scope:secret = { - reveal_to = scope:buyer - } - custom_tooltip = intrigue_scheming_focus_point_clear_gain - hidden_effect = { add_focus_progress = standard_lifestyle_focus_progress } - } - } - 1 = { - desc = intrigue_scheming.4050.failure - show_chance = no - } - } - } - else_if = { - limit = { - scope:payment = flag:reconciliation - } - random_list = { - 1 = { - desc = intrigue_scheming.4050.success - show_chance = no - show_as_tooltip = { - scope:buyer = { - remove_relation_rival = scope:seller - } - scope:secret = { - reveal_to = scope:buyer - } - custom_tooltip = intrigue_scheming_focus_point_clear_gain - hidden_effect = { add_focus_progress = standard_lifestyle_focus_progress } - } - } - 1 = { - desc = intrigue_scheming.4050.failure - show_chance = no - } - } - } - else_if = { - limit = { - scope:payment = flag:opinion - } - random_list = { - 1 = { - desc = intrigue_scheming.4050.success - show_chance = no - show_as_tooltip = { - scope:buyer = { - add_opinion = { - modifier = grateful_opinion - target = scope:seller - opinion = 30 - } - } - scope:secret = { - reveal_to = scope:buyer - } - custom_tooltip = intrigue_scheming_focus_point_clear_gain - hidden_effect = { add_focus_progress = standard_lifestyle_focus_progress } - } - } - 1 = { - desc = intrigue_scheming.4050.failure - show_chance = no - } - } - } - - scope:buyer = { - trigger_event = intrigue_scheming.4051 - } -} - -intrigue_scheming_4050_offer_refused_effect = { - show_as_tooltip = { - scope:buyer = { - add_opinion = { - modifier = insult_opinion - target = scope:seller - opinion = -10 - } - } - } - trigger_event = { - id = intrigue_scheming.4053 - days = { 5 7 } - } -} - -intrigue_temptation_3010_a_success_effect = { - if = { - limit = { - NOT = { has_relation_friend = scope:wingman } - } - set_relation_friend = { reason = friend_seduction_tips target = scope:wingman involved_character = scope:bar_servant } - } - add_intrigue_lifestyle_xp = minor_lifestyle_xp -} - -intrigue_temptation_3010_b_success_effect = { - add_intrigue_lifestyle_xp = major_lifestyle_xp -} - - - - - - - - - - diff --git a/common/scripted_effects/00_intrigue_perk_effects.txt b/common/scripted_effects/00_intrigue_perk_effects.txt deleted file mode 100644 index c4f0960065..0000000000 --- a/common/scripted_effects/00_intrigue_perk_effects.txt +++ /dev/null @@ -1,114 +0,0 @@ - -### Effects for handling Intrigue Lifestyle Perks - -# dark_insights_skill_gain_roll_effect: Randomly rolls for whether the character should get a bonus Intrigue or Prowess point - -dark_insights_skill_gain_roll_effect = { - #Backup check in case something has gone wrong - if = { - limit = { - has_perk = dark_insights_perk - } - - # Backup for the variables - if = { - limit = { - NOT = { has_variable = dark_insights_prowess_increases } - } - set_variable = { - name = dark_insights_prowess_increases - value = 0 - } - } - if = { - limit = { - NOT = { has_variable = dark_insights_intrigue_increases } - } - set_variable = { - name = dark_insights_intrigue_increases - value = 0 - } - } - - # Roll to see if we get a skill increase. - if = { - # For tooltip generation, we need to check if we have the variable yet (the backups above won't create the variables until after the effect is actually run). - limit = { - NOR = { - has_variable = dark_insights_prowess_increases - has_variable = dark_insights_intrigue_increases - } - } - custom_tooltip = dark_insight_gain_stats_tt - } - else_if = { - limit = { - - OR = { - var:dark_insights_prowess_increases < dark_insights_prowess_increase_maximum - var:dark_insights_intrigue_increases < dark_insights_intrigue_increase_maximum - } - } - - custom_tooltip = dark_insight_gain_stats_tt - - hidden_effect = { - random = { - chance = dark_insights_stat_increase_chance - scope:actor = { - - } - random_list = { - 50 = { - trigger = { - var:dark_insights_prowess_increases < dark_insights_prowess_increase_maximum - } - - send_interface_toast = { - title = dark_insights_gain_message - left_icon = scope:actor - right_icon = scope:recipient - - add_character_modifier = { - modifier = dark_insights_prowess_modifier - } - } - - change_variable = { - name = dark_insights_prowess_increases - add = 1 - } - } - 50 = { - trigger = { - var:dark_insights_intrigue_increases < dark_insights_intrigue_increase_maximum - } - - send_interface_toast = { - title = dark_insights_gain_message - left_icon = scope:actor - right_icon = scope:recipient - - add_character_modifier = { - modifier = dark_insights_intrigue_modifier - } - } - - change_variable = { - name = dark_insights_intrigue_increases - add = 1 - } - } - } - } - } - } - else_if = { - limit = { - var:dark_insights_prowess_increases >= dark_insights_prowess_increase_maximum - var:dark_insights_intrigue_increases >= dark_insights_intrigue_increase_maximum - } - custom_tooltip = dark_insights_maximum_insight_tt - } - } -} diff --git a/common/scripted_effects/00_lifestyle_focus_effects.txt b/common/scripted_effects/00_lifestyle_focus_effects.txt deleted file mode 100644 index cf7cb7430b..0000000000 --- a/common/scripted_effects/00_lifestyle_focus_effects.txt +++ /dev/null @@ -1,851 +0,0 @@ -#Effects used in Lifestyle Focus events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#LIFESTYLE FRIEND EFFECTS -# save_potential_lifestyle_friend_effect - - -#SECONDARY LIFESTYLE EFFECTS -# reveler_lifestyle_rank_up_check_effect -# hunter_lifestyle_rank_up_check_effect -# hunter_progress_point_gain_effect -# physician_lifestyle_rank_up_effect -# mystic_lifestyle_rank_up_effect -# ai_mystic_lifestyle_rank_up_effect - -###################################################################### - - -####################### -# LIFESTYLE FRIEND EFFECTS -####################### - -#Needs FOCUS and SCOPE_NAME -potential_lifestyle_friend_saving_effect = { - hidden_effect = { - save_temporary_scope_as = friend_checker - save_temporary_scope_value_as = { - name = friend_saving_focus - value = flag:$FOCUS$ - } - - #PLAYERS - if = { - limit = { is_ai = no } - - #Add major characters to list - get_characters_of_major_interest_effect = { LISTNAME = lifestyle_friend_list } - - #Step 1: Add characters of minor interest - if = { - limit = { - any_in_list = { - list = lifestyle_friend_list - potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } - count = 0 - } - } - - - get_characters_of_minor_interest_effect = { LISTNAME = lifestyle_friend_list } - } - - #Step 2: Randomize if we now have someone suitable - if = { - limit = { - any_in_list = { - list = lifestyle_friend_list - potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } - } - } - #Randomize! - random_in_list = { - list = lifestyle_friend_list - limit = { potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } } - weight = { - base = 1 - modifier = { - add = $FOCUS$_friend_points - } - modifier = { - has_relation_potential_friend = scope:friend_checker - add = 10 - } - opinion_modifier = { - opinion_target = scope:friend_checker - multiplier = 0.2 - } - } - if = { - limit = { is_ruler = yes } - set_focus = $FOCUS$ - } - save_scope_as = $SCOPE_NAME$ - } - } - #Step 3: Ok, there still was none. Try to force someone to switch focus - else = { - random_in_list = { - list = lifestyle_friend_list - limit = { - is_ruler = yes - opinion = { - target = scope:friend_checker - value >= 0 - } - NOT = { this = root } - trigger_if = { - limit = { - scope:friend_saving_focus = flag:diplomacy_foreign_affairs_focus - scope:friend_saving_focus = flag:diplomacy_majesty_focus - scope:friend_saving_focus = flag:diplomacy_family_focus - } - diplomacy >= decent_skill_rating - } - trigger_else_if = { - limit = { - scope:friend_saving_focus = flag:martial_strategy_focus - scope:friend_saving_focus = flag:martial_authority_focus - } - martial >= decent_skill_rating - } - trigger_else_if = { - limit = { - scope:friend_saving_focus = flag:martial_chivalry_focus - } - prowess >= decent_skill_rating - } - trigger_else_if = { - limit = { - scope:friend_saving_focus = flag:stewardship_wealth_focus - scope:friend_saving_focus = flag:stewardship_domain_focus - scope:friend_saving_focus = flag:stewardship_duty_focus - } - stewardship >= decent_skill_rating - } - trigger_else_if = { - limit = { - scope:friend_saving_focus = flag:intrigue_skulduggery_focus - scope:friend_saving_focus = flag:intrigue_temptation_focus - scope:friend_saving_focus = flag:intrigue_intimidation_focus - } - intrigue >= decent_skill_rating - } - trigger_else_if = { - limit = { - scope:friend_saving_focus = flag:learning_medicine_focus - scope:friend_saving_focus = flag:learning_scholarship_focus - scope:friend_saving_focus = flag:learning_theology_focus - } - learning >= decent_skill_rating - } - # making the default behavior explicit if no other trigger_(else_)ifs are valid - trigger_else = { - always = yes - } - } - weight = { - base = 1 - modifier = { - has_relation_potential_friend = scope:friend_checker - add = 10 - } - opinion_modifier = { - opinion_target = scope:friend_checker - multiplier = 0.2 - } - } - set_focus = $FOCUS$ - save_scope_as = $SCOPE_NAME$ - } - } - } - - #AI - else = { - every_vassal = { - limit = { potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } } - add_to_temporary_list = lifestyle_friend_list - } - every_liege_or_above = { - limit = { potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } } - add_to_temporary_list = lifestyle_friend_list - } - every_courtier = { - limit = { potential_lifestyle_friend_availability_trigger = { CHARACTER = scope:friend_checker FOCUS = $FOCUS$ } } - add_to_temporary_list = lifestyle_friend_list - } - random_in_list = { - list = lifestyle_friend_list - save_scope_as = $SCOPE_NAME$ - } - } - - #FALLBACK GENERATION - if = { - limit = { NOT = { exists = scope:$SCOPE_NAME$ } } - - if = { - limit = { exists = scope:friend_checker.capital_province } - create_character = { - location = scope:friend_checker.capital_province - template = $FOCUS$_friend_template - save_scope_as = $SCOPE_NAME$ - } - } - else = { - create_character = { - location = scope:friend_checker.location - template = $FOCUS$_friend_template - save_scope_as = $SCOPE_NAME$ - } - } - scope:$SCOPE_NAME$ = { visit_court_of = scope:friend_checker } - } - } -} - - -######################## -# SECONDARY LIFESTYLE EFFECTS -######################## -#Reveler (gained by feasts) -reveler_points_gain_effect = { - if = { - limit = { NOT = { has_variable = reveler_lifestyle_progress } } - set_variable = { - name = reveler_lifestyle_progress - value = $CHANGE$ - } - } - else = { - change_variable = { - name = reveler_lifestyle_progress - add = $CHANGE$ - } - } - #Random chance of additional increase to increase unpredictability - random = { - chance = 50 - change_variable = { - name = reveler_lifestyle_progress - add = $RANDOM_CHANGE$ - } - } - #Extra Random chance with the Festivities Tradition - if = { - limit = { - culture = { has_cultural_parameter = reveler_traits_more_common } - } - random = { - chance = 75 - change_variable = { - name = reveler_lifestyle_progress - add = 1 - } - } - } -} - -reveler_lifestyle_rank_up_check_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_reveler } - } - random = { - chance = 15 - modifier = { - add = -10 - faith = { trait_is_sin = lifestyle_reveler } - } - modifier = { - add = -10 - has_trait = temperate - } - modifier = { - add = -10 - has_trait = inappetetic - } - modifier = { - add = 10 - culture = { has_cultural_parameter = reveler_traits_more_valued } - } - modifier = { - add = 5 - has_trait = gluttonous - } - modifier = { - add = 5 - has_trait = drunkard - } - modifier = { - add = 5 - has_trait = comfort_eater - } - modifier = { - add = 15 - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_3_threshold - } - modifier = { - add = 15 - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_2_threshold - } - modifier = { - add = 15 - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_1_threshold - } - trigger_event = feast.0050 - show_as_tooltip = { - add_trait = lifestyle_reveler - } - } - } - else = { - if = { - limit = { - NOT = { has_trait = lifestyle_reveler } - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_3_threshold - } - add_trait_xp = { - trait = lifestyle_reveler - value = 10 - } - } - else_if = { - limit = { - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_2_threshold - } - add_trait_xp = { - trait = lifestyle_reveler - value = 5 - } - } - else_if = { - limit = { - exists = var:reveler_lifestyle_progress - var:reveler_lifestyle_progress >= reveler_rank_up_1_threshold - } - add_trait_xp = { - trait = lifestyle_reveler - value = 3 - } - } - else = { - add_trait_xp = { - trait = lifestyle_reveler - value = 1 - } - } - set_variable = { - name = reveler_lifestyle_progress - value = 0 - } - } -} - -#Hunter (gained by hunting) -hunter_progress_point_gain_effect = { - if = { - limit = { is_alive = yes } - if = { - limit = { - NOT = { exists = var:hunter_lifestyle_progress } - } - set_variable = { - name = hunter_lifestyle_progress - value = $CHANGE$ - } - } - else = { - change_variable = { - name = hunter_lifestyle_progress - add = $CHANGE$ - } - } - save_scope_value_as = { - name = hunt_base_increase - value = $CHANGE$ - } - # Tooltips - if = { - limit = { scope:hunt_base_increase <= 1 } - custom_tooltip = hunt_progress_towards_trait_1_tt - } - else_if = { - limit = { scope:hunt_base_increase = 2 } - custom_tooltip = hunt_progress_towards_trait_2_tt - } - else = { custom_tooltip = hunt_progress_towards_trait_3_tt } - #Random chance of additional point to increase unpredictability - hidden_effect = { - random = { - chance = 50 - change_variable = { - name = hunter_lifestyle_progress - add = $RANDOM_CHANGE$ - } - } - } - #Extra Random chance with the Hunters Tradition - if = { - limit = { - culture = { has_cultural_parameter = hunting_traits_more_common } - involved_activity = { - NOT = { - has_activity_option = { category = special_type option = hunt_type_falconry } - } - } - } - random = { - chance = 75 - change_variable = { - name = hunter_lifestyle_progress - add = 1 - } - } - } - else_if = { - limit = { - culture = { has_cultural_parameter = falconer_traits_more_common } - involved_activity = { - has_activity_option = { category = special_type option = hunt_type_falconry } - } - } - random = { - chance = 75 - change_variable = { - name = hunter_lifestyle_progress - add = 1 - } - } - } - } -} - -hunter_lifestyle_rank_up_check_effect = { - save_scope_value_as = { - name = falconry - value = $FALCONRY$ - } - if = { - limit = { - is_alive = yes - NOT = { has_trait = lifestyle_hunter } - exists = var:hunter_lifestyle_progress - } - add_trait = lifestyle_hunter - } - else_if = { # To show host trait gain for guests - limit = { - is_alive = yes - exists = var:hunter_lifestyle_progress - NOT = { has_character_flag = host_existing_hunter } - } - add_trait_force_tooltip = lifestyle_hunter - } - if = { - limit = { - is_alive = yes - exists = var:hunter_lifestyle_progress - has_trait = lifestyle_hunter - scope:falconry = yes - } - send_interface_toast = { - title = hunter_xp_gain_message - if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_3_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = falconer - value = 15 - } - } - else_if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_2_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = falconer - value = 10 - } - } - else_if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_1_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = falconer - value = 5 - } - } - else = { - add_trait_xp = { - trait = lifestyle_hunter - track = falconer - value = 3 - } - } - } - } - else_if = { - limit = { - is_alive = yes - exists = var:hunter_lifestyle_progress - has_trait = lifestyle_hunter - } - send_interface_toast = { - title = hunter_xp_gain_message - if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_3_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = hunter - value = 15 - } - } - else_if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_2_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = hunter - value = 10 - } - } - else_if = { - limit = { var:hunter_lifestyle_progress >= hunter_rank_up_1_threshold } - add_trait_xp = { - trait = lifestyle_hunter - track = hunter - value = 5 - } - } - else = { - add_trait_xp = { - trait = lifestyle_hunter - track = hunter - value = 3 - } - } - } - } - set_variable = { - name = hunter_lifestyle_progress - value = 0 - } -} - -#Physician (for AI, gained through treatment events) -physician_lifestyle_rank_up_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_physician } - } - add_trait = lifestyle_physician - } - else_if = { - limit = { - has_trait_xp = { - trait = lifestyle_physician - value < 100 - } - } - add_trait_xp = { - trait = lifestyle_physician - value = 10 - } - } -} - - -#Blademaster (for AI, gained through knight events) -blademaster_lifestyle_rank_up_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_blademaster } - } - add_trait = lifestyle_blademaster - } - else = { - limit = { - has_trait_xp = { - trait = lifestyle_blademaster - value < 100 - } - } - add_trait_xp = { - trait = lifestyle_blademaster - value = 10 - } - } -} - -# Mystic -mystic_lifestyle_rank_up_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_mystic } - } - add_trait = lifestyle_mystic - } - else = { - add_trait_xp = { - trait = lifestyle_mystic - value = 10 - } - } -} - -mystic_lifestyle_point_gain_effect = { - # Expects VALUE - - # Tooltip stuff first: - show_as_tooltip = { - if = { - limit = { # No further rank ups if you're already at max - NAND = { - has_trait = lifestyle_mystic - has_trait_xp = { - trait = lifestyle_mystic - value >= 100 - } - } - exists = var:mystic_lifestyle_progress # This assumes you can never progress the lifestyle on the first point gain - } - # Show rank-up tooltip if relevant - if = { - limit = { - has_trait = lifestyle_mystic - has_trait_xp = { - trait = lifestyle_mystic - value >= 100 - } - } - set_local_variable = { - name = mystic_check_tooltip_value - value = mystic_second_rank_up_threshold - } - } - else = { - set_local_variable = { - name = mystic_check_tooltip_value - value = mystic_first_rank_up_threshold - } - } - change_local_variable = { - name = mystic_check_tooltip_value - subtract = $VALUE$ - } - if = { - limit = { - trigger_if = { # If Mystic 2, use the higher threshold - limit = { - has_trait = mystic_2 - } - var:mystic_lifestyle_progress >= local_var:mystic_check_tooltip_value - } - trigger_else = { - var:mystic_lifestyle_progress >= mystic_first_rank_up_threshold - } - } - mystic_lifestyle_rank_up_effect = yes - } - } - } - # Actually run the lifestyle experience/rank-up gain effect: - hidden_effect = { - if = { - limit = { # No further rank ups if you're already at max - NAND = { - has_trait = lifestyle_mystic - has_trait_xp = { - trait = lifestyle_mystic - value >= 100 - } - } - } - if = { - limit = { - NOT = { exists = var:mystic_lifestyle_progress } - } - set_variable = { - name = mystic_lifestyle_progress - value = $VALUE$ - } - } - else = { - change_variable = { - name = mystic_lifestyle_progress - add = $VALUE$ - } - } - - # Rank up if relevant - if = { - limit = { - trigger_if = { # If Mystic 2, use the higher threshold - limit = { - has_trait = lifestyle_mystic - has_trait_xp = { - trait = lifestyle_mystic - value >= 50 - } - } - var:mystic_lifestyle_progress >= mystic_second_rank_up_threshold - } - trigger_else = { - var:mystic_lifestyle_progress >= mystic_first_rank_up_threshold - } - } - mystic_lifestyle_rank_up_effect = yes - # Remove the variable if you reach max rank - if = { - limit = { - has_trait = lifestyle_mystic - has_trait_xp = { - trait = lifestyle_mystic - value >= 100 - } - } - remove_variable = mystic_lifestyle_progress - } - # Set the variable back to 0 if you've ranked up - else = { - set_variable = { - name = mystic_lifestyle_progress - value = 0 - } - } - } - } - } -} - -mystical_communion_outcome_effect = { - # Limited to 2 effect lines due to showing up in a toast - add_learning_lifestyle_xp = major_lifestyle_xp - add_character_modifier = { - modifier = divine_guidance_modifier - years = 5 - } -} - -#Mystic (for AI, gained through treatment events) -ai_mystic_lifestyle_rank_up_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_mystic } - } - add_trait = lifestyle_mystic - } - else = { - add_trait_xp = { - trait = lifestyle_mystic - value = 10 - } - } -} - -# Remove all perk-unlocked traits when resetting -remove_all_perk_lifestyle_traits_effect = { - if = { - limit = { - has_trait = diplomat - } - remove_trait = diplomat - } - if = { - limit = { - has_trait = family_first - } - remove_trait = family_first - } - if = { - limit = { - has_trait = august - } - remove_trait = august - } - if = { - limit = { - has_trait = strategist - } - remove_trait = strategist - } - if = { - limit = { - has_trait = overseer - } - remove_trait = overseer - } - if = { - limit = { - has_trait = gallant - } - remove_trait = gallant - } - if = { - limit = { - has_trait = architect - } - remove_trait = architect - } - if = { - limit = { - has_trait = administrator - } - remove_trait = administrator - } - if = { - limit = { - has_trait = avaricious - } - remove_trait = avaricious - } - if = { - limit = { - has_trait = schemer - } - remove_trait = schemer - } - if = { - limit = { - has_trait = seducer - } - remove_trait = seducer - } - if = { - limit = { - has_trait = torturer - } - remove_trait = torturer - } - if = { - limit = { - has_trait = whole_of_body - } - remove_trait = whole_of_body - } - if = { - limit = { - has_trait = scholar - } - remove_trait = scholar - } - if = { - limit = { - has_trait = theologian - } - remove_trait = theologian - } - hidden_effect = { - set_absolute_country_control = no - } -} diff --git a/common/scripted_effects/00_lover_effects.txt b/common/scripted_effects/00_lover_effects.txt deleted file mode 100644 index a105f376e8..0000000000 --- a/common/scripted_effects/00_lover_effects.txt +++ /dev/null @@ -1,148 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - - -##################################################################### -# EFFECTS -##################################################################### - - -lover_breakup_rivalry_chance_effect = { - random = { - chance = 1 - compare_modifier = { - value = ai_vengefulness - multiplier = 0.5 - } - modifier = { - add = 25 - scope:breaker = { - any_secret = { - secret_type = secret_lover - NOT = { secret_target = scope:lover } - is_known_by = scope:lover - } - } - } - modifier = { - add = 20 - has_trait = paranoid - } - modifier = { - add = 15 - has_trait = stubborn - } - - scope:breaker = { - every_consort = { - limit = { - NOT = { this = scope:lover } - NOR = { - has_relation_rival = scope:lover - has_relation_friend = scope:lover - } - } - add_to_list = other_lovers - } - every_relation = { - type = lover - limit = { - NOT = { this = scope:lover } - NOR = { - has_relation_rival = scope:lover - has_relation_friend = scope:lover - } - } - add_to_list = other_lovers - } - } - random_in_list = { - list = other_lovers - weight = { - base = 1 - #More likely to pick another known Lover - modifier = { - add = 3 - has_relation_lover = scope:breaker - save_temporary_scope_as = lover_check - scope:breaker = { - OR = { - NOT = { - any_secret = { - secret_type = secret_lover - secret_target = scope:lover_check - NOT = { is_known_by = scope:lover } - } - } - any_secret = { - secret_type = secret_lover - secret_target = scope:lover_check - is_known_by = scope:lover - } - } - } - } - } - save_scope_as = other_lover - } - } -} - - -remove_lover_or_soulmate_relation_effect = { - if = { - limit = { has_relation_soulmate = $CHARACTER$ } - remove_relation_soulmate = $CHARACTER$ - } - else_if = { - limit = { has_relation_lover = $CHARACTER$ } - remove_relation_lover = $CHARACTER$ - } -} - -lover_breakup_effect = { - $BREAKER$ = { - save_scope_as = breaker - } - $LOVER$ = { - save_scope_as = lover - } - - show_as_tooltip = { - $BREAKER$ = { - remove_lover_or_soulmate_relation_effect = { CHARACTER = $LOVER$ } - } - $LOVER$ = { - add_opinion = { - target = $BREAKER$ - modifier = lover_breakup_opinion - } - } - } - - hidden_effect = { - $LOVER$ = { - if = { - limit = { - is_consort_of = $BREAKER$ - } - trigger_event = lover.0202 #Spouse breakup - } - else_if = { - limit = { - opinion = { - target = $BREAKER$ - value > 0 - } - } - trigger_event = lover.0201 #Normal - } - else = { - trigger_event = lover.0203 #Relieved - } - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_marriage_interaction_effects.txt b/common/scripted_effects/00_marriage_interaction_effects.txt index 54dae9f74c..4eafeefa1b 100644 --- a/common/scripted_effects/00_marriage_interaction_effects.txt +++ b/common/scripted_effects/00_marriage_interaction_effects.txt @@ -251,6 +251,22 @@ trigger_event = lover.0205 } } + + #other stuff + #Khurramites and Mazdakists gain piety from marrying lowborn + if = { + limit = { + scope:secondary_recipient = { + is_lowborn = yes + } + scope:actor.faith = { + has_doctrine = tenet_communal_possessions + } + } + scope:actor = { + add_piety = medium_piety_gain + } + } } concubine_on_accept_effect = { diff --git a/common/scripted_effects/00_murder_effects.txt b/common/scripted_effects/00_murder_effects.txt index 38702e4fa1..3bf642fc1c 100644 --- a/common/scripted_effects/00_murder_effects.txt +++ b/common/scripted_effects/00_murder_effects.txt @@ -20,10 +20,37 @@ murder_consequences_known_or_exposed_effect = { exists = killer killer = $VICTIM$ } - } + AND = { + faith = { has_doctrine = tenet_fp3_fedayeen } #this checks that assassins don't get piety loss for killing unbelievers + NOT = { faith = $VICTIM$.faith } + } + } } add_piety = medium_piety_loss } + + # If we're a clan this affects unity + if = { + limit = { # If the victim is landed + $VICTIM$ = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = medium_unity_loss + DESC = clan_unity_murder.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # For unlanded characters, we don't care as much, but you still lose some unity + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = minor_unity_loss + DESC = clan_unity_murder.desc + REVERSE_NON_HOUSE_TARGET = no + } + } # Family Feud house_feud_murder_effect = { VICTIM = $VICTIM$ MURDERER = $MURDERER$ } @@ -69,6 +96,78 @@ murder_consequences_known_or_exposed_effect = { hurt_scourge_jailor_consequences_effect = { HURT_JAILOR = $VICTIM$ SCOURGE = $MURDERER$ } } +murder_consequences_known_or_exposed_hidden_opinion_effect = { + $MURDERER$ = { + ###ADD TRAITS### + #Force tooltip is used for everyone but POV to make sure expose secret events looks right for everyone, even though the trait can only be added once. Kinslayer works the same way. + add_trait_only_force_tooltip_if_not_pov_effect = { TRAIT = murderer POV = $POV$ } + add_kinslayer_trait_or_nothing_effect = { VICTIM = $VICTIM$ } + + if = { #Add piety penalty if the murder was unjust + limit = { + NOR = { + any_close_family_member = { + even_if_dead = yes + exists = killer + killer = $VICTIM$ + } + any_spouse = { + even_if_dead = yes + exists = killer + killer = $VICTIM$ + } + AND = { + faith = { has_doctrine = tenet_fp3_fedayeen } #this checks that assassins don't get piety loss for killing unbelievers + NOT = { faith = $VICTIM$.faith } + } + } + } + add_piety = medium_piety_loss + } + + # Family Feud + house_feud_murder_effect = { VICTIM = $VICTIM$ MURDERER = $MURDERER$ } + + ###OPINION AND DREAD### + #Hide this from POV if they're not the murderer + if = { + limit = { this = $POV$ } + add_dread = 15 + hidden_effect = { + murder_opinion_effect = { VICTIM = $VICTIM$ MURDERER = $MURDERER$ } + } + } + else = { + hidden_effect = { + add_dread = 15 + murder_opinion_effect = { VICTIM = $VICTIM$ MURDERER = $MURDERER$ } + } + } + # There are some things you just shouldn't do + show_as_tooltip = { + if = { + limit = { $VICTIM$ = { has_character_flag = is_party_baron } } + add_character_modifier = { + modifier = party_baron_murdered_the_joy_of_life_modifier + } + } + } + hidden_effect = { + if = { + limit = { + OR = { + exists = local_var:murdered_party_baron + exists = scope:secret.var:murdered_party_baron + } + } + add_character_modifier = { + modifier = party_baron_murdered_the_joy_of_life_modifier + } + } + } + } +} + unknown_murder_effect = { # Party Baron handling if = { @@ -78,6 +177,28 @@ unknown_murder_effect = { value = yes } } + # If we're a clan this affects unity + if = { + limit = { # If the victim is landed + $VICTIM$ = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = minor_unity_loss + DESC = clan_unity_murder_unknown.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # For unlanded characters, we don't care as much, but you still lose some unity + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = miniscule_unity_loss + DESC = clan_unity_murder_unknown.desc + REVERSE_NON_HOUSE_TARGET = no + } + } $VICTIM$ = { #Killed by murder: set this up first to keep the killer hidden. override_death_killer_effect = { death_reason = $REASON$ killer = $MURDERER$ } @@ -174,29 +295,146 @@ known_murder_effect = { } } } + # If we're a clan this affects unity + if = { + limit = { # If the victim is landed + $VICTIM$ = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = medium_unity_loss + DESC = clan_unity_murder.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # For unlanded characters, we don't care as much, but you still lose some unity + add_clan_unity_interaction_effect = { + CHARACTER = $MURDERER$ + TARGET = $VICTIM$ + VALUE = minor_unity_loss + DESC = clan_unity_murder.desc + REVERSE_NON_HOUSE_TARGET = no + } + } $VICTIM$ = { every_close_family_member = { limit = { - NOT = { this = $MURDERER$ } - trigger_if = { - limit = { exists = scope:scheme } - NOT = { + NOR = { + this = $MURDERER$ + is_scheming_against = { + target = $VICTIM$ + type = murder + } + has_any_bad_relationship_with_character_trigger = { CHARACTER = $VICTIM$ } + trigger_if = { + limit = { exists = scope:scheme } scope:scheme = { scheme_is_character_agent = prev } } } - NOT = { + opinion = { + target = $VICTIM$ + value > -50 + } + } + hidden_effect = { + random = { + chance = 25 + modifier = { + factor = 2 + has_trait = wrathful + } + modifier = { + factor = 2 + has_trait = vengeful + } + modifier = { + factor = 2 + has_any_good_relationship_with_character_trigger = { CHARACTER = $VICTIM$ } + } + modifier = { + factor = 2 + OR = { + is_parent_of = $VICTIM$ + is_child_of = $VICTIM$ + } + } + trigger_event = { + id = bp1_yearly.8050 + days = 15 + } + } + } + } + override_death_killer_effect = { + death_reason = death_murder + killer = $MURDERER$ + } + hidden_effect = { set_killer_public = yes } + } + $MURDERER$ = { + hidden_effect = { + add_secret = { + type = secret_murder + target = $VICTIM$ + } + random_secret = { + limit = { + secret_type = secret_murder + secret_target = $VICTIM$ + } + + set_variable = { + name = known_murder + value = yes + } + + expose_secret = $EXPOSER$ + } + } + } + show_as_tooltip = { + murder_consequences_known_or_exposed_effect = { + MURDERER = $MURDERER$ + VICTIM = $VICTIM$ + POV = root + } + } + # Family Feud + house_feud_murder_effect = { VICTIM = $VICTIM$ MURDERER = $MURDERER$ } +} + +known_murder_hidden_opinion_effect = { + $VICTIM$ = { save_scope_as = victim_scope } + $MURDERER$ = { save_scope_as = murderer_scope } + hidden_effect = { + if = { + limit = { $VICTIM$ = { has_character_flag = is_party_baron } } + set_local_variable = { + name = murdered_party_baron + value = yes + } + } + } + $VICTIM$ = { + every_close_family_member = { + limit = { + NOR = { + this = $MURDERER$ is_scheming_against = { target = $VICTIM$ type = murder } + has_any_bad_relationship_with_character_trigger = { CHARACTER = $VICTIM$ } + trigger_if = { + limit = { exists = scope:scheme } + scope:scheme = { scheme_is_character_agent = prev } + } } opinion = { target = $VICTIM$ value > -50 } - NOT = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = $VICTIM$ } - } } hidden_effect = { random = { @@ -255,7 +493,7 @@ known_murder_effect = { } } show_as_tooltip = { - murder_consequences_known_or_exposed_effect = { + murder_consequences_known_or_exposed_hidden_opinion_effect = { MURDERER = $MURDERER$ VICTIM = $VICTIM$ POV = root diff --git a/common/scripted_effects/00_murder_scheme_effects.txt b/common/scripted_effects/00_murder_scheme_effects.txt index f4ee1dcf71..3293b872c5 100644 --- a/common/scripted_effects/00_murder_scheme_effects.txt +++ b/common/scripted_effects/00_murder_scheme_effects.txt @@ -92,6 +92,8 @@ murder_outcome_roll_effect = { # Used in the immediate of the Scheme Owner's success event murder_success_effect = { play_music_cue = mx_cue_murder + # Achievement Score Keeping + #Check if it is a Rival being murdered if = { limit = { @@ -318,6 +320,28 @@ murder_failure_effect = { limit = { exists = scope:scheme_discovered } + # If we're a clan this affects unity + if = { + limit = { # If the victim is landed + scope:target = { is_landed = yes } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:owner + TARGET = scope:target + VALUE = medium_unity_loss + DESC = clan_unity_murder_attempted.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # For unlanded characters, we don't care as much, but you still lose some unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:owner + TARGET = scope:target + VALUE = minor_unity_loss + DESC = clan_unity_murder_attempted.desc + REVERSE_NON_HOUSE_TARGET = no + } + } scope:owner = { save_scope_as = owner_to_reveal add_dread = minor_dread_gain @@ -344,6 +368,7 @@ murder_failure_effect = { trigger_event = murder_outcome.5002 } } + if = { limit = { scope:owner = { @@ -415,7 +440,7 @@ successful_murder_outcome_event_option_effect = { dread_from_discovered_murder_effect = { VICTIM = scope:target } } - hidden_effect = { #TODO_CD: for debugging reasons. Did this stop the errors in the murder scheme success effect? + hidden_effect = { trigger_event = { id = murder_outcome.9999 days = 1 @@ -495,3 +520,11 @@ murder_entourage_list_effect = { } } } + +# Adds either "Plush and Unremarkable Carpet" modifier if character is Iranian, otherwise adds "Plush and Exotic Carpet" +add_carpet_modifier_effect = { + add_character_modifier = { + modifier = has_plush_carpet_modifier + days = 3650 + } +} diff --git a/common/scripted_effects/00_music_effects.txt b/common/scripted_effects/00_music_effects.txt deleted file mode 100644 index d601821cbc..0000000000 --- a/common/scripted_effects/00_music_effects.txt +++ /dev/null @@ -1,14 +0,0 @@ -# plays a music cue once per player character's lifetime -# example use : play_music_cue_once = { TRACK = "mx_cue_combat_stinger" } -play_music_cue_once = { - if = { - limit = { - is_ai = no - NOT = { - has_character_flag = played_$TRACK$ - } - } - add_character_flag = played_$TRACK$ - play_music_cue = $TRACK$ - } -} diff --git a/common/scripted_effects/00_parent_effects.txt b/common/scripted_effects/00_parent_effects.txt deleted file mode 100644 index ef3bff84d2..0000000000 --- a/common/scripted_effects/00_parent_effects.txt +++ /dev/null @@ -1,84 +0,0 @@ -#Effects used in parent events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! -# - -#increase_parent_meddling_value_effect -#decrease_parent_meddling_value_effect - - -###################################################################### -# EFFECTS -###################################################################### - -#Effects for increasing and decreasing the parent_meddling variable value used in parent_events -increase_parent_meddling_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = parent_meddling - } - change_variable = { - name = parent_meddling - add = 1 - } - } - else = { - set_variable = { - name = parent_meddling - value = 1 - } - } - random = { - chance = 10 - modifier = { - trigger = { has_variable = parent_meddling } - add = { - value = var:parent_meddling - multiply = 10 - } - } - trigger_event = { - on_action = parent_meddling_outcome - days = { 180 365 } - } - } - } -} - -decrease_parent_meddling_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = parent_meddling - var:parent_meddling > 1 - } - change_variable = { - name = parent_meddling - add = -1 - } - } - else_if = { - limit = { has_variable = parent_meddling } - remove_variable = parent_meddling - } - } -} - -remove_parent_meddling_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = parent_meddling - } - remove_variable = parent_meddling - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_personality_trait_effects.txt b/common/scripted_effects/00_personality_trait_effects.txt deleted file mode 100644 index bdadfce7ee..0000000000 --- a/common/scripted_effects/00_personality_trait_effects.txt +++ /dev/null @@ -1,1884 +0,0 @@ -##################################################################### -# -# This file contains various scripted effects for comparing the personalities of different characters, in order to generate more -# believable character interactions (e.g., ensuring a Brave character would prefer to insult their rival for being Craven over -# insulting them for a non-opposing personality trait). -# -# Also see the '00_personality_trait_triggers.txt' file when using these in an event. - -##################################################################### -# -# check_if_chars_have_opposing_traits_effect: -# This scripted effect is for determining if two characters have opposing personality traits. -# If they do, it applies a parameterized flag to the 1st character for future usage in event scripts and localisation. -# -# Parameters: -# CHAR1 - The primary character we want to compare the traits of, and the one who all flags will be applied to -# CHAR2 - The secondary character we are comparing to CHAR1 -# TRAIT1 - The trait we are looking for on CHAR1 -# TRAIT2 - Should always be set to the opposite trait of TRAIT1 -# FLAG_PREFIX - The first half of the name the flag we will apply to CHAR1, i.e. "statecraft_progress_2200" -# FLAG_POSTFIX - The second half of the name the flag we will apply to CHAR1, i.e. "brave" -# SUCCESS_FLAG - A unique flag identifier indicating if this effect has successfully found a valid set of opposing traits on thew characters. -# STRICT - A boolean (yes/no) indicating if we should do the fallback check for only TRAIT1 on CHAR1 if CHAR1 and CHAR2 have no opposing traits at all -# -This is useful if you simply want to ensure the characters do not share the specified trait(i.e., one Brave char insulting another char for being Brave). -# -# By Sean Hughes - -personality_check_if_chars_have_opposing_traits_effect = { - $CHAR1$ = { - if = { - limit = { - number_of_opposing_traits = { - target = $CHAR2$ - value >= 1 - } - } - if = { - #If CHAR1 and CHAR2 have these opposite traits, CHAR1 gets the appropriate flags added to them. - limit = { - has_trait = $TRAIT1$ - $CHAR2$ = { - has_trait = $TRAIT2$ - } - } - save_scope_value_as = { - name = $FLAG_PREFIX$ - value = flag:$FLAG_POSTFIX$ - } - save_scope_value_as = { - name = $FLAG_SUCCESS$ - value = yes - } - } - } - else = { - if = { - #Fallback option if the two characters have no opposing traits at all. - limit = { - #If we are strictly looking for only opposite traits, do not do this step. - $STRICT$ = no - - #Otherwise, simply find a trait that CHAR1 has which CHAR2 does not, then add the appropriate flag to CHAR1. - has_trait = $TRAIT1$ - $CHAR2$ = { - NOT = { has_trait = $TRAIT1$ } - } - } - save_scope_value_as = { - name = $FLAG_PREFIX$ - value = flag:$FLAG_POSTFIX$ - } - save_scope_value_as = { - name = flag:$FLAG_SUCCESS$ - value = yes - } - } - } - } -} - -##################################################################### -# -# check_opposing_bad_ruler_traits_effect: -# This scripted effect uses the above effect to determine which trait a vassal would most dispise in their ruler. -# It was created for statecraft_progress.2200, but should be able to be used in any other event without an issue, -# as long as each event which uses this has NOT = {scope:opposing_trait_flag_applied = yes} in a trigger. -# -# Parameters: -# CHAR1 - The primary character we want to compare the traits of (the ruler/heir/potential ruler) -# CHAR2 - The secondary character we are comparing to CHAR1 (the vassal/potential vassal) -# TRAIT1 - The trait we are looking for on CHAR1 -# TRAIT2 - Should always be set to the opposite trait of TRAIT1 -# STRICT - A boolean (yes/no) indicating if we should do the fallback check for only TRAIT1 on CHAR1 if CHAR1 and CHAR2 have no opposing traits at all -# -This is useful if you simply want to ensure the characters do not share the specified trait(i.e., one Brave char insulting another char for being Brave). -# -# By Sean Hughes - -personality_check_opposing_bad_ruler_traits_effect = { - save_scope_value_as = { - name = opposing_trait_flag_applied - value = no - } - save_scope_value_as = { - name = has_opposing_trait - value = flag:none - } - #The first 11 trait pairings are selected from "Bad Ruler" traits, which vassals either dislike more than other traits or directly hurt diplomacy. - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = arbitrary - TRAIT2 = just - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = arbitrary - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = craven - TRAIT2 = brave - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = craven - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = sadistic - TRAIT2 = compassionate - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = sadistic - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = lazy - TRAIT2 = diligent - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = lazy - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = stubborn - TRAIT2 = fickle - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = stubborn - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = paranoid - TRAIT2 = trusting - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = paranoid - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = vengeful - TRAIT2 = forgiving - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = vengeful - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = callous - TRAIT2 = compassionate - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = callous - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = wrathful - TRAIT2 = calm - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = wrathful - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = arrogant - TRAIT2 = humble - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = arrogant - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = shy - TRAIT2 = gregarious - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = shy - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - # The next 14 traits are neutral traits, which aren't considered "Bad Ruler" traits but an individual CHAR2 may dislike. - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = cynical - TRAIT2 = zealous - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = cynical - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = zealous - TRAIT2 = cynical - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = zealous - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = deceitful - TRAIT2 = honest - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = deceitful - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = honest - TRAIT2 = deceitful - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = honest - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = generous - TRAIT2 = greedy - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = generous - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = greedy - TRAIT2 = generous - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = greedy - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = gluttonous - TRAIT2 = temperate - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = gluttonous - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = temperate - TRAIT2 = gluttonous - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = temperate - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = impatient - TRAIT2 = patient - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = impatient - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = patient - TRAIT2 = impatient - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = patient - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = lustful - TRAIT2 = chaste - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = lustful - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = chaste - TRAIT2 = lustful - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = chaste - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = content - TRAIT2 = ambitious - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = content - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = ambitious - TRAIT2 = content - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = ambitious - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - #The last 11 traits are opposites of the "Bad Ruler" traits, I.E., things the player is unlikely to want tCHAR1 CHAR1 to lose. - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = gregarious - TRAIT2 = shy - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = gregarious - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = diligent - TRAIT2 = lazy - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = diligent - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = humble - TRAIT2 = arrogant - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = humble - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = brave - TRAIT2 = craven - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = brave - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = calm - TRAIT2 = wrathful - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = calm - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = compassionate - TRAIT2 = sadistic - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = compassionate - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = compassionate - TRAIT2 = callous - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = compassionate - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = fickle - TRAIT2 = stubborn - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = fickle - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = forgiving - TRAIT2 = vengeful - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = forgiving - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = trusting - TRAIT2 = paranoid - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = trusting - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:opposing_trait_flag_applied = yes } } - personality_check_if_chars_have_opposing_traits_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = just - TRAIT2 = arbitrary - FLAG_PREFIX = has_opposing_trait - FLAG_POSTFIX = just - FLAG_SUCCESS = opposing_trait_flag_applied - STRICT = $STRICT$ - } - } -} - -##################################################################### -# -# personality_minor_shift_effect: -# Designed to be used in tandem with 'check_opposing_bad_ruler_traits_effect', but can be used with other scripts. -# Checks if a character has the specified flag and, if so, removes the corresponding personality trait. -# -# By Sean Hughes - -personality_shift_effect = { - if = { - limit = { scope:has_opposing_trait = flag:arrogant } - remove_trait = arrogant - add_trait_force_tooltip = humble - } - else_if = { - limit = { scope:has_opposing_trait = flag:humble } - remove_trait = humble - add_trait_force_tooltip = arrogant - } - else_if = { - limit = { scope:has_opposing_trait = flag:lustful } - remove_trait = lustful - add_trait_force_tooltip = chaste - } - else_if = { - limit = { scope:has_opposing_trait = flag:chaste } - remove_trait = chaste - add_trait_force_tooltip = lustful - } - else_if = { - limit = { scope:has_opposing_trait = flag:gregarious } - remove_trait = gregarious - add_trait_force_tooltip = shy - } - else_if = { - limit = { scope:has_opposing_trait = flag:shy } - remove_trait = shy - add_trait_force_tooltip = gregarious - } - else_if = { - limit = { scope:has_opposing_trait = flag:generous } - remove_trait = generous - add_trait_force_tooltip = greedy - } - else_if = { - limit = { scope:has_opposing_trait = flag:greedy } - remove_trait = greedy - add_trait_force_tooltip = generous - } - else_if = { - limit = { scope:has_opposing_trait = flag:ambitious } - remove_trait = ambitious - add_trait_force_tooltip = content - } - else_if = { - limit = { scope:has_opposing_trait = flag:content } - remove_trait = content - add_trait_force_tooltip = ambitious - } - else_if = { - limit = { scope:has_opposing_trait = flag:impatient } - remove_trait = impatient - add_trait_force_tooltip = patient - } - else_if = { - limit = { scope:has_opposing_trait = flag:patient } - remove_trait = patient - add_trait_force_tooltip = impatient - } - else_if = { - limit = { scope:has_opposing_trait = flag:temperate } - remove_trait = temperate - add_trait_force_tooltip = gluttonous - } - else_if = { - limit = { scope:has_opposing_trait = flag:gluttonous } - remove_trait = gluttonous - add_trait_force_tooltip = temperate - } - else_if = { - limit = { scope:has_opposing_trait = flag:diligent } - remove_trait = diligent - add_trait_force_tooltip = lazy - } - else_if = { - limit = { scope:has_opposing_trait = flag:lazy } - remove_trait = lazy - add_trait_force_tooltip = diligent - } - else_if = { - limit = { scope:has_opposing_trait = flag:wrathful } - remove_trait = wrathful - add_trait_force_tooltip = calm - } - else_if = { - limit = { scope:has_opposing_trait = flag:calm } - remove_trait = calm - add_trait_force_tooltip = wrathful - } - else_if = { - limit = { scope:has_opposing_trait = flag:deceitful } - remove_trait = deceitful - add_trait_force_tooltip = honest - } - else_if = { - limit = { scope:has_opposing_trait = flag:honest } - remove_trait = honest - add_trait_force_tooltip = deceitful - } - else_if = { - limit = { scope:has_opposing_trait = flag:craven } - remove_trait = craven - add_trait_force_tooltip = brave - } - else_if = { - limit = { scope:has_opposing_trait = flag:brave } - remove_trait = brave - add_trait_force_tooltip = craven - } - else_if = { - limit = { scope:has_opposing_trait = flag:arbitrary } - remove_trait = arbitrary - add_trait_force_tooltip = just - } - else_if = { - limit = { scope:has_opposing_trait = flag:just } - remove_trait = just - add_trait_force_tooltip = arbitrary - } - else_if = { - limit = { scope:has_opposing_trait = flag:cynical } - remove_trait = cynical - add_trait_force_tooltip = zealous - } - else_if = { - limit = { scope:has_opposing_trait = flag:zealous } - remove_trait = zealous - add_trait_force_tooltip = cynical - } - else_if = { - limit = { scope:has_opposing_trait = flag:paranoid } - remove_trait = paranoid - add_trait_force_tooltip = trusting - } - else_if = { - limit = { scope:has_opposing_trait = flag:trusting } - remove_trait = trusting - add_trait_force_tooltip = paranoid - } - else_if = { - limit = { scope:has_opposing_trait = flag:compassionate } - remove_trait = compassionate - add_trait_force_tooltip = callous - } - else_if = { - limit = { scope:has_opposing_trait = flag:callous } - remove_trait = callous - add_trait_force_tooltip = compassionate - } - else_if = { - limit = { scope:has_opposing_trait = flag:sadistic } - remove_trait = sadistic - add_trait_force_tooltip = compassionate - } - else_if = { - limit = { scope:has_opposing_trait = flag:forgiving } - remove_trait = forgiving - add_trait_force_tooltip = vengeful - } - else_if = { - limit = { scope:has_opposing_trait = flag:vengeful } - remove_trait = vengeful - add_trait_force_tooltip = forgiving - } - else_if = { - limit = { scope:has_opposing_trait = flag:stubborn } - remove_trait = stubborn - add_trait_force_tooltip = fickle - } - else_if = { - limit = { scope:has_opposing_trait = flag:fickle } - remove_trait = fickle - add_trait_force_tooltip = stubborn - } -} - -##################################################################### -# -# personality_check_if_chars_have_shared_trait_effect: -# This scripted effect is for determining if two characters share a personality trait. -# If they do, it applies a parameterized flag to the 1st character for future usage in event scripts and localisation. -# -# Parameters: -# CHAR1 - The primary character we want to compare the traits of, and the one who all flags will be applied to -# CHAR2 - The secondary character we are comparing to CHAR1 -# TRAIT1 - The trait we are looking for on both the characters -# TRAIT2 - The opposite trait of trait 1, in case we need to rely on our fallback. -# FLAG_PREFIX - The first half of the name the flag we will apply to CHAR1, i.e. "statecraft_progress_2200" -# FLAG_POSTFIX - The second half of the name the flag we will apply to CHAR1, i.e. "brave" -# SUCCESS_FLAG - A unique flag identifier indicating if this effect has successfully found a valid set of shared traits on the characters. -# STRICT - A boolean (yes/no) indicating if we should do the fallback check for CHAR2 not having TRAIT2 if there are no shared traits. -# -# By Sean Hughes - -personality_check_if_chars_have_shared_trait_effect = { - $CHAR1$ = { - if = { - limit = { - number_of_personality_traits_in_common = { - target = $CHAR2$ - value >= 1 - } - } - if = { - #If CHAR1 and both have this trait, set the appropriate flag. - limit = { - has_trait = $TRAIT1$ - $CHAR2$ = { - has_trait = $TRAIT1$ } - } - save_scope_value_as = { - name = $FLAG_PREFIX$ - value = flag:$FLAG_POSTFIX$ - } - save_scope_value_as = { - name = $FLAG_SUCCESS$ - value = yes - } - } - } - else = { - if = { - #Fallback option if the two characters have no shared traits at all. - limit = { - #If we are strictly looking for only shared traits, do not do this step. - $STRICT$ = no - - #Otherwise, simply find a trait that CHAR1 has which CHAR2 does not have the opposite trait for, then add the appropriate flag to CHAR1. - has_trait = $TRAIT1$ - $CHAR2$ = { - NOT = { has_trait = $TRAIT2$ } - } - } - save_scope_value_as = { - name = $FLAG_PREFIX$ - value = flag:$FLAG_POSTFIX$ - } - save_scope_value_as = { - name = $FLAG_SUCCESS$ - value = yes - } - } - } - } -} - -##################################################################### -# -# personality_check_shared_good_ruler_traits_effect: -# This scripted effect uses the above effect to determine which trait a vassal would most approve of in their ruler. -# -# Parameters: -# CHAR1 - The primary character we want to compare the traits of (the ruler/heir/potential ruler) -# CHAR2 - The secondary character we are comparing to CHAR1 (the vassal/potential vassal) -# TRAIT1 - The trait we are looking for on CHAR1 -# TRAIT2 - Should always be set to the opposite trait of TRAIT1 -# STRICT - A boolean (yes/no) indicating if we should do the fallback check for only TRAIT1 on CHAR1 if CHAR1 and CHAR2 have no opposing traits at all -# -This is useful if you simply want to ensure the characters do not share the specified trait(i.e., one Brave char insulting another char for being Brave). -# -# By Sean Hughes - -personality_check_shared_good_ruler_traits_effect = { - save_scope_value_as = { - name = shared_trait_flag_applied - value = no - } - - #The first 11 trait pairings are selected from "Good Ruler" traits, which vassals either like more than other traits or directly help diplomacy. - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = just - TRAIT2 = arbitrary - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = just - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = brave - TRAIT2 = craven - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = brave - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = compassionate - TRAIT2 = sadistic - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = compassionate - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = diligent - TRAIT2 = lazy - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = diligent - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = fickle - TRAIT2 = stubborn - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = fickle - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = trusting - TRAIT2 = paranoid - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = trusting - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = forgiving - TRAIT2 = vengeful - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = forgiving - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = compassionate - TRAIT2 = callous - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = compassionate - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = calm - TRAIT2 = wrathful - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = calm - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = humble - TRAIT2 = arrogant - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = humble - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = gregarious - TRAIT2 = shy - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = gregarious - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - # The next 14 traits are neutral traits, which aren't considered "Good Ruler" traits but an individual CHAR2 may dislike. - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = cynical - TRAIT2 = zealous - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = cynical - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = zealous - TRAIT2 = cynical - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = zealous - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = deceitful - TRAIT2 = honest - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = deceitful - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = honest - TRAIT2 = deceitful - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = honest - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = generous - TRAIT2 = greedy - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = generous - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = greedy - TRAIT2 = generous - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = greedy - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = gluttonous - TRAIT2 = temperate - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = gluttonous - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = temperate - TRAIT2 = gluttonous - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = temperate - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = impatient - TRAIT2 = patient - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = impatient - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = patient - TRAIT2 = impatient - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = patient - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = lustful - TRAIT2 = chaste - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = lustful - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = chaste - TRAIT2 = lustful - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = chaste - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = content - TRAIT2 = ambitious - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = content - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = ambitious - TRAIT2 = content - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = ambitious - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - #The last 11 traits are opposites of the "Good Ruler" traits, I.E., things CHAR2 is unlikely to appreciate unless they themselves are that way. - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = shy - TRAIT2 = gregarious - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = shy - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = lazy - TRAIT2 = diligent - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = lazy - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = arrogant - TRAIT2 = humble - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = arrogant - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = craven - TRAIT2 = brave - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = craven - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = wrathful - TRAIT2 = calm - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = wrathful - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = sadistic - TRAIT2 = compassionate - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = sadistic - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = callous - TRAIT2 = compassionate - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = callous - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = stubborn - TRAIT2 = fickle - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = stubborn - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = vengeful - TRAIT2 = forgiving - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = vengeful - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = paranoid - TRAIT2 = trusting - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = paranoid - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } - if = { - limit = { NOT = { scope:shared_trait_flag_applied = yes } } - personality_check_if_chars_have_shared_trait_effect = { - CHAR1 = $CHAR1$ - CHAR2 = $CHAR2$ - TRAIT1 = arbitrary - TRAIT2 = just - FLAG_PREFIX = has_shared_trait - FLAG_POSTFIX = arbitrary - FLAG_SUCCESS = shared_trait_flag_applied - STRICT = $STRICT$ - } - } -} - -flip_sinful_trait_effect = { - if = { - limit = { - has_trait = lustful - faith = { trait_is_sin = lustful } - } - remove_trait = lustful - add_trait_force_tooltip = chaste - } - else_if = { - limit = { - has_trait = chaste - faith = { trait_is_sin = chaste } - } - remove_trait = chaste - add_trait_force_tooltip = lustful - } - else_if = { - limit = { - has_trait = temperate - faith = { trait_is_sin = temperate } - } - remove_trait = temperate - add_trait_force_tooltip = gluttonous - } - else_if = { - limit = { - has_trait = gluttonous - faith = { trait_is_sin = gluttonous } - } - remove_trait = gluttonous - add_trait_force_tooltip = temperate - } - else_if = { - limit = { - has_trait = greedy - faith = { trait_is_sin = greedy } - } - remove_trait = greedy - add_trait_force_tooltip = generous - } - else_if = { - limit = { - has_trait = generous - faith = { trait_is_sin = generous } - } - remove_trait = generous - add_trait_force_tooltip = greedy - } - else_if = { - limit = { - has_trait = lazy - faith = { trait_is_sin = lazy } - } - remove_trait = lazy - add_trait_force_tooltip = diligent - } - else_if = { - limit = { - has_trait = diligent - faith = { trait_is_sin = diligent } - } - remove_trait = diligent - add_trait_force_tooltip = lazy - } - else_if = { - limit = { - has_trait = wrathful - faith = { trait_is_sin = wrathful } - } - remove_trait = wrathful - add_trait_force_tooltip = calm - } - else_if = { - limit = { - has_trait = calm - faith = { trait_is_sin = calm } - } - remove_trait = calm - add_trait_force_tooltip = wrathful - } - else_if = { - limit = { - has_trait = humble - faith = { trait_is_sin = humble } - } - remove_trait = humble - add_trait_force_tooltip = arrogant - } - else_if = { - limit = { - has_trait = arrogant - faith = { trait_is_sin = arrogant } - } - remove_trait = arrogant - add_trait_force_tooltip = humble - } - else_if = { - limit = { - has_trait = impatient - faith = { trait_is_sin = impatient } - } - remove_trait = impatient - add_trait_force_tooltip = patient - } - else_if = { - limit = { - has_trait = patient - faith = { trait_is_sin = patient } - } - remove_trait = patient - add_trait_force_tooltip = impatient - } - else_if = { - limit = { - has_trait = craven - faith = { trait_is_sin = craven } - } - remove_trait = craven - add_trait_force_tooltip = brave - } - else_if = { - limit = { - has_trait = brave - faith = { trait_is_sin = brave } - } - remove_trait = brave - add_trait_force_tooltip = craven - } - else_if = { - limit = { - has_trait = shy - faith = { trait_is_sin = shy } - } - remove_trait = shy - add_trait_force_tooltip = gregarious - } - else_if = { - limit = { - has_trait = gregarious - faith = { trait_is_sin = gregarious } - } - remove_trait = gregarious - add_trait_force_tooltip = shy - } - else_if = { - limit = { - has_trait = ambitious - faith = { trait_is_sin = ambitious } - } - remove_trait = ambitious - add_trait_force_tooltip = content - } - else_if = { - limit = { - has_trait = content - faith = { trait_is_sin = content } - } - remove_trait = content - add_trait_force_tooltip = ambitious - } - else_if = { - limit = { - has_trait = arbitrary - faith = { trait_is_sin = arbitrary } - } - remove_trait = arbitrary - add_trait_force_tooltip = just - } - else_if = { - limit = { - has_trait = just - faith = { trait_is_sin = just } - } - remove_trait = just - add_trait_force_tooltip = arbitrary - } - else_if = { - limit = { - has_trait = zealous - faith = { trait_is_sin = zealous } - } - remove_trait = zealous - add_trait_force_tooltip = cynical - } - else_if = { - limit = { - has_trait = cynical - faith = { trait_is_sin = cynical } - } - remove_trait = cynical - add_trait_force_tooltip = zealous - } - else_if = { - limit = { - has_trait = trusting - faith = { trait_is_sin = trusting } - } - remove_trait = trusting - add_trait_force_tooltip = paranoid - } - else_if = { - limit = { - has_trait = paranoid - faith = { trait_is_sin = paranoid } - } - remove_trait = paranoid - add_trait_force_tooltip = trusting - } - else_if = { - limit = { - has_trait = callous - faith = { trait_is_sin = callous } - } - remove_trait = callous - add_trait_force_tooltip = compassionate - } - else_if = { - limit = { - has_trait = sadistic - faith = { trait_is_sin = sadistic } - } - remove_trait = sadistic - add_trait_force_tooltip = compassionate - } - else_if = { - limit = { - has_trait = compassionate - faith = { trait_is_sin = compassionate } - } - remove_trait = compassionate - add_trait_force_tooltip = callous - } - else_if = { - limit = { - has_trait = stubborn - faith = { trait_is_sin = stubborn } - } - remove_trait = stubborn - add_trait_force_tooltip = fickle - } - else_if = { - limit = { - has_trait = fickle - faith = { trait_is_sin = fickle } - } - remove_trait = fickle - add_trait_force_tooltip = stubborn - } - else_if = { - limit = { - has_trait = vengeful - faith = { trait_is_sin = vengeful } - } - remove_trait = vengeful - add_trait_force_tooltip = forgiving - } - else_if = { - limit = { - has_trait = forgiving - faith = { trait_is_sin = forgiving } - } - remove_trait = forgiving - add_trait_force_tooltip = vengeful - } - else_if = { - limit = { - has_trait = honest - faith = { trait_is_sin = honest } - } - remove_trait = honest - add_trait_force_tooltip = deceitful - } - else_if = { - limit = { - has_trait = deceitful - faith = { trait_is_sin = deceitful } - } - remove_trait = deceitful - add_trait_force_tooltip = honest - } -} - - -# Checks if the scoped character and the target character have any diametrically opposed personality traits. -# Saves a scope with the selected trait held by CHARACTER_1 -# Should use the following trigger number_of_opposing_personality_traits to check that an opposing personality trait exists -get_diametrically_opposed_trait_trigger = { - random_list = { - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = brave } - $CHARACTER_2$ = { has_trait = craven } - } - trait:brave = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = craven } - $CHARACTER_2$ = { has_trait = brave } - } - trait:craven = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = calm } - $CHARACTER_2$ = { has_trait = wrathful } - } - trait:calm = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = wrathful } - $CHARACTER_2$ = { has_trait = calm } - } - trait:wrathful = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = lustful } - $CHARACTER_2$ = { has_trait = chaste } - } - trait:lustful = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = chaste } - $CHARACTER_2$ = { has_trait = lustful } - } - trait:chaste = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = ambitious } - $CHARACTER_2$ = { has_trait = content } - } - trait:ambitious = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = content } - $CHARACTER_2$ = { has_trait = ambitious } - } - trait:content = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = diligent } - $CHARACTER_2$ = { has_trait = lazy } - } - trait:diligent = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = lazy } - $CHARACTER_2$ = { has_trait = diligent } - } - trait:lazy = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = stubborn } - $CHARACTER_2$ = { has_trait = fickle } - } - trait:stubborn = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = fickle } - $CHARACTER_2$ = { has_trait = stubborn } - } - trait:fickle = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = vengeful } - $CHARACTER_2$ = { has_trait = forgiving } - } - trait:vengeful = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = forgiving } - $CHARACTER_2$ = { has_trait = vengeful } - } - trait:forgiving = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = greedy } - $CHARACTER_2$ = { has_trait = generous } - } - trait:greedy = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = generous } - $CHARACTER_2$ = { has_trait = greedy } - } - trait:generous = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = gregarious } - $CHARACTER_2$ = { has_trait = shy } - } - trait:gregarious = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = shy } - $CHARACTER_2$ = { has_trait = gregarious } - } - trait:shy = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = honest } - $CHARACTER_2$ = { has_trait = deceitful } - } - trait:honest = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = deceitful } - $CHARACTER_2$ = { has_trait = honest } - } - trait:deceitful = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = humble } - $CHARACTER_2$ = { has_trait = arrogant } - } - trait:humble = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = arrogant } - $CHARACTER_2$ = { has_trait = humble } - } - trait:arrogant = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = just } - $CHARACTER_2$ = { has_trait = arbitrary } - } - trait:just = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = arbitrary } - $CHARACTER_2$ = { has_trait = just } - } - trait:arbitrary = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = patient } - $CHARACTER_2$ = { has_trait = impatient } - } - trait:patient = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = impatient } - $CHARACTER_2$ = { has_trait = patient } - } - trait:impatient = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = temperate } - $CHARACTER_2$ = { has_trait = gluttonous } - } - trait:temperate = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = gluttonous } - $CHARACTER_2$ = { has_trait = temperate } - } - trait:gluttonous = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = trusting } - $CHARACTER_2$ = { has_trait = paranoid } - } - trait:trusting = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = paranoid } - $CHARACTER_2$ = { has_trait = trusting } - } - trait:paranoid = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = zealous } - $CHARACTER_2$ = { has_trait = cynical } - } - trait:zealous = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = cynical } - $CHARACTER_2$ = { has_trait = zealous } - } - trait:cynical = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = compassionate } - $CHARACTER_2$ = { - OR = { - has_trait = callous - has_trait = sadistic - } - } - } - trait:compassionate = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = callous } - $CHARACTER_2$ = { has_trait = compassionate } - } - trait:callous = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = sadistic } - $CHARACTER_2$ = { has_trait = compassionate } - } - trait:sadistic = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = loyal } - $CHARACTER_2$ = { has_trait = disloyal } - } - trait:loyal = { save_scope_as = opposed_personality_trait } - } - 1 = { - trigger = { - $CHARACTER_1$ = { has_trait = disloyal } - $CHARACTER_2$ = { has_trait = loyal } - } - trait:disloyal = { save_scope_as = opposed_personality_trait } - } - } -} diff --git a/common/scripted_effects/00_petition_liege_effects.txt b/common/scripted_effects/00_petition_liege_effects.txt deleted file mode 100644 index 4df91c5c4c..0000000000 --- a/common/scripted_effects/00_petition_liege_effects.txt +++ /dev/null @@ -1,925 +0,0 @@ - -#Effects used in Petitions - -### Council - -# Save most fitting council seat incumbent -petition_liege_0101_councillor_scope_first_effect = { - if = { - limit = { exists = scope:petition_liege.cp:councillor_$ROLE$ } - scope:petition_liege.cp:councillor_$ROLE$ = { save_scope_as = second_party } - } -} - -# Save 2nd most fitting council seat incumbent -petition_liege_0101_councillor_scope_second_effect = { - if = { - limit = { exists = scope:petition_liege.cp:councillor_$ROLE$ } - scope:petition_liege.cp:councillor_$ROLE$ = { save_scope_as = second_councillor } - } -} - -# Give most fitting council seat -petition_liege_0101_first_seat_effect = { - if = { - limit = { - exists = scope:second_party - scope:second_party = { is_councillor = yes } - } - scope:petition_liege = { fire_councillor = scope:second_party } - scope:second_party = { - progress_towards_rival_effect = { - CHARACTER = scope:petition_vassal - REASON = rival_council_seat - OPINION = 0 - } - add_opinion = { - target = scope:petition_vassal - modifier = annoyed_opinion - opinion = -10 - } - add_opinion = { - target = scope:petition_liege - modifier = annoyed_opinion - opinion = -10 - } - } - } - scope:petition_liege = { - switch = { - trigger = scope:petition_vassal.var:petition_liege_council_first - flag:chancellor = { - assign_councillor_type = { - type = councillor_chancellor - target = scope:petition_vassal - } - } - flag:marshal = { - assign_councillor_type = { - type = councillor_marshal - target = scope:petition_vassal - } - } - flag:steward = { - assign_councillor_type = { - type = councillor_steward - target = scope:petition_vassal - } - } - flag:spymaster = { - assign_councillor_type = { - type = councillor_spymaster - target = scope:petition_vassal - } - } - flag:court_chaplain = { - assign_councillor_type = { - type = councillor_court_chaplain - target = scope:petition_vassal - } - } - } - } - scope:petition_vassal = { - petition_liege_block_firing_councillor_effect = { COURT_OWNER = scope:petition_liege } - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_liege - right_icon = scope:second_party - custom_tooltip = council_appointment_toast_desc_vassal - custom_tooltip = petition_liege_block_firing_councillor_effect_tt - show_as_tooltip = { - reverse_add_opinion = { - target = scope:second_party - modifier = annoyed_opinion - opinion = -10 - } - } - } - } - } - scope:petition_liege = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_vassal - right_icon = scope:second_party - custom_tooltip = council_appointment_toast_desc_liege - custom_tooltip = petition_liege_block_firing_councillor_effect_tt - show_as_tooltip = { - reverse_add_opinion = { - target = scope:second_party - modifier = annoyed_opinion - opinion = -10 - } - } - } - } - } -} - -# Give 2nd most fitting council seat -petition_liege_0101_second_seat_effect = { - if = { - limit = { - exists = scope:second_councillor - scope:second_councillor = { is_councillor = yes } - } - scope:petition_liege = { fire_councillor = scope:second_councillor } - scope:second_councillor = { - progress_towards_rival_effect = { - CHARACTER = scope:petition_vassal - REASON = rival_council_seat - OPINION = 0 - } - add_opinion = { - target = scope:petition_vassal - modifier = annoyed_opinion - opinion = -10 - } - add_opinion = { - target = scope:petition_liege - modifier = annoyed_opinion - opinion = -10 - } - } - } - scope:petition_liege = { - switch = { - trigger = scope:petition_vassal.var:petition_liege_council_second - flag:chancellor = { - assign_councillor_type = { - type = councillor_chancellor - target = scope:petition_vassal - } - } - flag:marshal = { - assign_councillor_type = { - type = councillor_marshal - target = scope:petition_vassal - } - } - flag:steward = { - assign_councillor_type = { - type = councillor_steward - target = scope:petition_vassal - } - } - flag:spymaster = { - assign_councillor_type = { - type = councillor_spymaster - target = scope:petition_vassal - } - } - flag:court_chaplain = { - assign_councillor_type = { - type = councillor_court_chaplain - target = scope:petition_vassal - } - } - } - } - scope:petition_vassal = { - petition_liege_block_firing_councillor_effect = { COURT_OWNER = scope:petition_liege } - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_liege - right_icon = scope:second_councillor - custom_tooltip = council_appointment_toast_desc_vassal - custom_tooltip = petition_liege_block_firing_councillor_effect_tt - show_as_tooltip = { - reverse_add_opinion = { - target = scope:second_councillor - modifier = annoyed_opinion - opinion = -10 - } - } - } - } - } - scope:petition_liege = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_vassal - right_icon = scope:second_councillor - custom_tooltip = council_appointment_toast_desc_liege - custom_tooltip = petition_liege_block_firing_councillor_effect_tt - show_as_tooltip = { - reverse_add_opinion = { - target = scope:second_councillor - modifier = annoyed_opinion - opinion = -10 - } - } - } - } - } -} - -# Grant selected seat and remove incumbent -petition_liege_0101_council_seat_effect = { - scope:petition_liege = { - stress_impact = { - compassionate = minor_stress_impact_gain - } - if = { - limit = { - scope:petition_vassal = { has_variable = petition_liege_council_first } - } - petition_liege_0101_first_seat_effect = yes - } - else = { petition_liege_0101_second_seat_effect = yes } - if = { - limit = { - scope:petition_vassal = { has_variable = petition_liege_council_first } - exists = scope:second_party - } - scope:second_party = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_vassal - right_icon = scope:petition_liege - custom_tooltip = council_appointment_toast_desc_replaced - } - } - } - } - else_if = { - limit = { exists = scope:second_councillor } - scope:second_councillor = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.council_seat - left_icon = scope:petition_vassal - right_icon = scope:petition_liege - custom_tooltip = council_appointment_toast_desc_replaced - } - } - } - } - - } -} - -# Block petitioner from being fired -petition_liege_block_firing_councillor_effect = { - scope:petition_vassal = { - custom_tooltip = petition_liege_block_firing_councillor_effect_tt - set_variable = { - name = block_fire_councillor - value = $COURT_OWNER$ - years = council_position_locked_value - } - } -} - -### Debt -# Pay inverse of gold to petitioner -petition_liege_0101_pay_debt_effect = { - scope:petition_liege = { - stress_impact = { - greedy = minor_stress_impact_gain - profligate = minor_stress_impact_loss - improvident = minor_stress_impact_loss - } - pay_short_term_gold = { - target = scope:petition_vassal - gold = petitioner_debt_positivization_value - } - } -} - -### War Aid -petition_liege_0101_war_aid_effect = { - scope:petition_liege = { - stress_impact = { - craven = minor_stress_impact_gain - shy = minor_stress_impact_gain - } - } - if = { - limit = { - scope:petition_vassal = { has_variable = petition_liege_war_aid_join } - } - if = { - limit = { - scope:petition_vassal = { is_attacker_in_war = scope:petition_war } - } - scope:petition_war = { add_attacker = scope:petition_liege } - } - else = { - scope:petition_war = { add_defender = scope:petition_liege } - } - } - else = { - scope:petition_liege = { remove_short_term_gold = petitioner_war_aid_levies_cost_value } - scope:petition_vassal = { - spawn_army = { - inheritable = no - name = petition_liege_war_aid_troops - levies = petitioner_war_aid_levies_value - location = scope:petition_vassal.capital_province - war = scope:petition_war - } - } - } -} - -### Vassal War -# End all vassal wars -petition_liege_0101_end_all_wars_effect = { - scope:petition_liege = { - stress_impact = { - craven = minor_stress_impact_gain - shy = minor_stress_impact_gain - diplomat = minor_stress_impact_loss - } - } - scope:petition_vassal = { - every_character_war = { - limit = { - OR = { - AND = { - primary_attacker = scope:petition_vassal - primary_defender = { is_vassal_of = scope:petition_liege } - } - AND = { - primary_defender = scope:petition_vassal - primary_attacker = { is_vassal_of = scope:petition_liege } - } - } - } - save_temporary_scope_as = this_war - show_as_tooltip = { end_war = white_peace } - primary_attacker = { - add_truce_both_ways = { - character = scope:this_war.primary_defender - years = 5 - war = scope:this_war - result = white_peace - } - } - hidden_effect = { end_war = white_peace } # For tooltip ordering, so that we can display the addition of a truce after the war ends instead of before. - } - } - scope:second_party = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.end_war - left_icon = scope:petition_vassal - right_icon = scope:petition_liege - custom_tooltip = vassal_war_toast_desc_second_party - } - } - } -} - -### Faction War -petition_liege_0101_faction_dismantle_effect = { - scope:petition_liege = { - stress_impact = { - shy = minor_stress_impact_gain - diplomat = minor_stress_impact_loss - } - } - scope:vassal_faction = { - faction_target = { - add_opinion = { - target = ROOT - modifier = grateful_opinion - opinion = 10 - } - } - if = { - limit = { - exists = special_character - NOT = { - any_faction_member = { THIS = scope:vassal_faction.special_character } - } - } - special_character = { - add_opinion = { - target = scope:petition_liege - modifier = angry_opinion - opinion = -10 - } - } - } - if = { - limit = { faction_is_at_war = no } - every_faction_member = { - custom = hold_court_8260_faction_member_tt - add_faction_cooldown_effect = { YEARS = faction_war_white_peace_cooldown } - add_opinion = { - target = scope:petition_liege - modifier = angry_opinion - opinion = -10 - } - } - destroy_faction = yes - } - else = { - every_faction_member = { - custom = hold_court_8260_faction_member_tt - add_faction_cooldown_effect = { YEARS = faction_war_defeat_cooldown } - add_opinion = { - target = scope:petition_liege - modifier = angry_opinion - opinion = -25 - } - } - faction_war = { end_war = defender } - } - } -} - -### Control -petition_liege_0101_county_control_effect = { - scope:petition_liege = { - stress_impact = { - lazy = minor_stress_impact_gain - greedy = minor_stress_impact_gain - } - remove_short_term_gold = medium_gold_value - } - every_in_list = { - list = petition_liege_county_control_list - limit = { holder = scope:petition_vassal } - custom = petition_liege_0101_county_control_effect_tt - change_county_control = 10 - add_county_modifier = { - modifier = petition_liege_county_control_modifier - years = 5 - } - custom_tooltip = petition_liege_county_control_modifier_tt - } -} - -### Convert -petition_liege_0101_county_convert_effect = { - scope:petition_liege = { - stress_impact = { - cynical = minor_stress_impact_gain - greedy = minor_stress_impact_gain - } - remove_short_term_gold = medium_gold_value - } - every_in_list = { - list = petition_liege_county_convert_list - limit = { - holder = scope:petition_vassal - NOT = { county.faith = ROOT.faith } - } - custom = petition_liege_0101_county_convert_effect_tt - add_county_modifier = { - modifier = petition_liege_county_convert_modifier - years = 5 - } - custom_tooltip = petition_liege_county_convert_modifier_tt - } -} - -### Opinion -petition_liege_0101_county_opinion_effect = { - scope:petition_liege = { - stress_impact = { - base = minor_stress_impact_gain - shy = minor_stress_impact_gain - lazy = minor_stress_impact_gain - craven = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - reclusive = minor_stress_impact_gain - } - } - every_in_list = { - list = petition_liege_county_opinion_list - limit = { - holder = scope:petition_vassal - county_opinion <= -25 - } - custom = petition_liege_0101_county_opinion_effect_tt - add_county_modifier = { - modifier = petition_liege_county_opinion_modifier - years = 5 - } - } -} - -### Fortify -petition_liege_0101_fortify_border_effect = { - scope:petition_liege = { - stress_impact = { - brave = minor_stress_impact_gain - greedy = minor_stress_impact_gain - architect = minor_stress_impact_loss - } - remove_short_term_gold = medium_gold_value - } - every_in_list = { - list = petition_liege_fortify_border_list - limit = { - holder = scope:petition_vassal - } - custom = petition_liege_0101_fortify_border_effect_tt - add_county_modifier = { - modifier = petition_liege_fortify_border_modifier - years = 5 - } - } -} - -### Title Liege -petition_liege_0101_title_liege_effect = { - scope:petition_liege = { - stress_impact = { - greedy = medium_stress_impact_gain - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - scope:petition_claim = { - change_title_holder_include_vassals = { - holder = scope:petition_vassal - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - scope:petition_vassal = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.title_liege - left_icon = scope:petition_liege - show_as_tooltip = { - scope:petition_vassal = { get_title = scope:petition_claim } - } - } - } - } - scope:petition_liege = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.title_liege - left_icon = scope:petition_vassal - show_as_tooltip = { - scope:petition_vassal = { get_title = scope:petition_claim } - } - } - } - } -} - -### Title Vassal -petition_liege_0101_title_vassal_effect = { - scope:petition_liege = { - add_tyranny = minor_tyranny_gain - stress_impact = { - compassionate = minor_stress_impact_gain - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = yes - } - scope:petition_claim = { - change_title_holder = { - holder = scope:petition_vassal - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - scope:second_party = { - progress_towards_rival_effect = { - CHARACTER = scope:petition_vassal - REASON = rival_council_seat - OPINION = 0 - } - add_opinion = { - target = scope:petition_vassal - modifier = angry_opinion - opinion = -20 - } - add_opinion = { - target = scope:petition_liege - modifier = revoked_title - opinion = -20 - } - } - scope:petition_vassal = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.title_vassal - left_icon = scope:petition_liege - right_icon = scope:second_party - show_as_tooltip = { - scope:petition_vassal = { get_title = scope:petition_claim } - } - } - } - } - scope:petition_liege = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.title_vassal - left_icon = scope:petition_vassal - right_icon = scope:second_party - show_as_tooltip = { - scope:petition_vassal = { get_title = scope:petition_claim } - } - } - } - } - scope:second_party = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.title_vassal - left_icon = scope:petition_vassal - right_icon = scope:petition_liege - show_as_tooltip = { - scope:petition_vassal = { get_title = scope:petition_claim } - } - } - } - } - scope:petition_claim = { - set_variable = { - name = petition_title_cooldown - years = 5 - } - } -} - -### Construct City -petition_liege_0101_construct_city_effect = { - scope:petition_liege = { - stress_impact = { - greedy = medium_stress_impact_gain - architect = minor_stress_impact_loss - profligate = minor_stress_impact_loss - improvident = minor_stress_impact_loss - } - remove_short_term_gold = main_building_tier_1_cost - } - scope:petition_construct = { - begin_create_holding = { - type = city_holding - refund_cost = { gold = 0 } - } - } - scope:petition_vassal = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.construct_city - left_icon = scope:petition_liege - show_as_tooltip = { - scope:petition_construct = { - begin_create_holding = { - type = city_holding - refund_cost = { gold = 0 } - } - } - } - } - } - } -} - -### Construct Temple -petition_liege_0101_construct_temple_effect = { - scope:petition_liege = { - stress_impact = { - greedy = medium_stress_impact_gain - architect = minor_stress_impact_loss - profligate = minor_stress_impact_loss - improvident = minor_stress_impact_loss - } - remove_short_term_gold = main_building_tier_1_cost - } - scope:petition_construct = { - begin_create_holding = { - type = church_holding - refund_cost = { gold = 0 } - } - } - scope:petition_vassal = { - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.construct_temple - left_icon = scope:petition_liege - show_as_tooltip = { - scope:petition_construct = { - begin_create_holding = { - type = church_holding - refund_cost = { gold = 0 } - } - } - } - } - } - } -} - -### Development -petition_liege_0101_development_effect = { - scope:petition_liege = { - stress_impact = { - greedy = medium_stress_impact_gain - } - capital_province.county = { change_development_level = -2 } - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.development - left_icon = scope:petition_vassal - show_as_tooltip = { - capital_province.county = { change_development_level = -2 } - } - } - } - } - scope:petition_vassal = { - capital_province.county = { - change_development_level = 2 - add_county_modifier = { - modifier = petition_liege_development_modifier - years = 5 - } - } - hidden_effect = { - send_interface_toast = { - title = petition_liege.0101.t.development - left_icon = scope:petition_liege - show_as_tooltip = { - capital_province.county = { - change_development_level = 2 - add_county_modifier = { - modifier = petition_liege_development_modifier - years = 5 - } - } - } - } - } - } -} - -### Grandeur/Renown -petition_pos_grandeur_renown_effect = { - if = { - limit = { petition_liege_medium_cost_trigger = yes } - scope:petition_liege = { change_current_court_grandeur = minor_court_grandeur_gain } - } - else_if = { - limit = { petition_liege_high_cost_trigger = yes } - scope:petition_liege = { change_current_court_grandeur = medium_court_grandeur_gain } - } - if = { - limit = { scope:petition_liege.dynasty = scope:petition_vassal.dynasty } - scope:petition_liege.dynasty = { add_dynasty_prestige = minor_dynasty_prestige_value } - } - else = { - scope:petition_liege.dynasty = { add_dynasty_prestige = miniscule_dynasty_prestige_gain } - scope:petition_vassal.dynasty = { add_dynasty_prestige = miniscule_dynasty_prestige_gain } - } -} - -petition_neg_grandeur_renown_effect = { - scope:petition_liege = { - change_current_court_grandeur = minor_court_grandeur_loss - dynasty = { add_dynasty_prestige = miniscule_dynasty_prestige_loss } - } -} - -### Run relevant effects for request -petition_type_outcome_effect = { - switch = { - trigger = scope:petition_vassal.var:petition_type - flag:council_seat = { petition_liege_0101_council_seat_effect = yes } - flag:pay_debt = { petition_liege_0101_pay_debt_effect = yes } - flag:war_aid = {petition_liege_0101_war_aid_effect = yes } - flag:vassal_war = { petition_liege_0101_end_all_wars_effect = yes } - flag:faction_war = { petition_liege_0101_faction_dismantle_effect = yes } - flag:county_control = { petition_liege_0101_county_control_effect = yes } - flag:county_convert = { petition_liege_0101_county_convert_effect = yes } - flag:county_opinion = { petition_liege_0101_county_opinion_effect = yes } - flag:fortify_border = { petition_liege_0101_fortify_border_effect = yes } - flag:title_liege = { petition_liege_0101_title_liege_effect = yes } - flag:title_vassal = { - if = { - limit = { - scope:second_party = { is_ai = no } - } - scope:second_party = { trigger_event = petition_liege.0501 } - custom_description_no_bullet = { - text = petition_liege_second_if_tt - object = scope:second_party - } - scope:second_party = { - show_as_tooltip = { petition_liege_0101_title_vassal_effect = yes } - } - } - else = { petition_liege_0101_title_vassal_effect = yes } - } - flag:construct_city = { petition_liege_0101_construct_city_effect = yes } - flag:construct_temple = { petition_liege_0101_construct_temple_effect = yes } - flag:development = { petition_liege_0101_development_effect = yes } - } - petition_pos_grandeur_renown_effect = yes -} - -### Bribes -# Pay gold to liege -petition_liege_0101_petitioner_pays_gold_bribe_effect = { - scope:petition_vassal = { - pay_short_term_gold = { - target = scope:petition_liege - gold = scope:petition_vassal.medium_gold_value - } - } -} - -# Grant favor to liege -petition_liege_0101_petitioner_gives_favor_hook_effect = { - scope:petition_liege = { - add_hook = { - target = scope:petition_vassal - type = favor_hook - years = 10 - } - } -} - -# Remove petitioner from factions -petition_liege_0101_petitioner_blocked_from_factions_effect = { - scope:petition_vassal = { - leave_faction = joined_faction - add_faction_cooldown_effect = { YEARS = 10 } - } -} - -# Increase contractual obligations -petition_liege_0101_petitioner_contract_increase_effect = { - if = { - limit = { - vassal_contract_obligation_level:feudal_government_levies < vassal_contract_obligation_level:feudal_government_taxes - vassal_contract_obligation_level_can_be_increased = feudal_government_levies - } - vassal_contract_increase_obligation_level = feudal_government_levies - } - else_if = { - limit = { - vassal_contract_obligation_level:feudal_government_taxes < vassal_contract_obligation_level:feudal_government_levies - vassal_contract_obligation_level_can_be_increased = feudal_government_taxes - } - vassal_contract_increase_obligation_level = feudal_government_taxes - } - else = { - if = { - limit = { vassal_contract_obligation_level_can_be_increased = feudal_government_taxes } - vassal_contract_increase_obligation_level = feudal_government_levies - } - else = { vassal_contract_increase_obligation_level = feudal_government_taxes } - } - hidden_effect = { set_vassal_contract_modification_blocked = yes } -} - -petition_skill_duel_lose_effect = { - send_interface_toast = { - title = petition_liege.0401.failure - left_icon = scope:petition_liege - #show_as_tooltip = { - # activity = { complete_activity = yes } - #} - } -} - -petition_skill_duel_effect = { - duel = { - skill = $SKILL$ - target = $TARGET$ - 8 = { - desc = petition_liege.0401.success - compare_modifier = { - value = scope:duel_value - multiplier = 0.5 - } - hidden_effect = { petition_type_outcome_effect = yes } - custom_tooltip = petition_liege_accept_tt - reverse_add_opinion = { - target = $TARGET$ - modifier = annoyed_opinion - opinion = -10 - } - } - 12 = { - desc = petition_liege.0401.failure - petition_skill_duel_lose_effect = yes - } - } -} diff --git a/common/scripted_effects/00_pilgrimage_effects.txt b/common/scripted_effects/00_pilgrimage_effects.txt index 4aa1daff56..f8a0a01e49 100644 --- a/common/scripted_effects/00_pilgrimage_effects.txt +++ b/common/scripted_effects/00_pilgrimage_effects.txt @@ -189,7 +189,7 @@ pilgrimage_additional_reward_effect = { else = { add_trait_xp = { trait = lifestyle_mystic - value = 5 #TODO_CD_EP2_FGK standardize TINY + value = 5 } } } diff --git a/common/scripted_effects/00_playdate_scripted_effects.txt b/common/scripted_effects/00_playdate_scripted_effects.txt deleted file mode 100644 index b628df8b8a..0000000000 --- a/common/scripted_effects/00_playdate_scripted_effects.txt +++ /dev/null @@ -1,42 +0,0 @@ - -#Effects used in playdates - -#playdate_end_guest_effect - Effect run for all guests when they leave playdates - -playdate_concluded_my_events_effect = { - save_temporary_scope_as = finished_participant -} - -playdate_fire_correct_default_event_effect = { - trigger_event = { - on_action = playdate_event_selection - days = { min_playdate_event_spacing max_playdate_event_spacing } - } -} - -playdate_end_guest_effect = { - # Only called on the end of a *successful* playdate. Playdates which are interrupted due to death, imprisonment, etc., don't get this, so put critical clean-up stuff in the activity itself. - stress_impact = { - base = medium_stress_loss - gregarious = medium_stress_impact_loss - charming = minor_stress_impact_loss - shy = medium_stress_impact_gain - pensive = minor_stress_impact_gain - } -} - -hosted_successful_playdate_interrupted_effect = { - add_prestige = medium_prestige_gain - scope:activity = { - every_attending_character = { - limit = { - NOT = { this = scope:host } - } - custom = every_guest_scope_tt - add_opinion = { - target = scope:host - modifier = hosted_successful_playdate_opinion - } - } - } -} diff --git a/common/scripted_effects/00_poetry_effects.txt b/common/scripted_effects/00_poetry_effects.txt deleted file mode 100644 index 58e95afc7c..0000000000 --- a/common/scripted_effects/00_poetry_effects.txt +++ /dev/null @@ -1,745 +0,0 @@ -################################################## -# Generation -################################################## - -## Themes -select_poem_theme_romance_effect = { - set_variable = { - name = poetry_theme - value = flag:romance - } - # Set up a scope for gender effect checking. - save_scope_value_as = { - name = poetry_romance_target - value = yes - } -} - -select_poem_theme_mourning_effect = { - set_variable = { - name = poetry_theme - value = flag:mourning - } -} - -select_poem_theme_legacy_effect = { - set_variable = { - name = poetry_theme - value = flag:legacy - } -} - -select_poem_theme_strife_effect = { - set_variable = { - name = poetry_theme - value = flag:strife - } -} - -select_poem_theme_incompetence_effect = { - set_variable = { - name = poetry_theme - value = flag:incompetence - } -} - -select_poem_theme_random_effect = { - hidden_effect = { - random_list = { - # Romance - 100 = { select_poem_theme_romance_effect = yes } - # Mourning - 100 = { select_poem_theme_mourning_effect = yes } - # Legacy - 100 = { select_poem_theme_legacy_effect = yes } - # Strife - 100 = { select_poem_theme_strife_effect = yes } - # Incompetence - 100 = { select_poem_theme_incompetence_effect = yes } - } - } -} - -## Subject -### Used to select subject genders, taking any of the following: -#### flag:specific -#### flag:woman -#### flag:man -#### flag:random -### SUBJECT_TARGET needs to be filled out regardless to prevent errors, but is inert unless you've also set flag:specific. -#### Just stick it to root or whoever if not actively using it. -select_poem_subject_gender_effect = { - save_temporary_scope_value_as = { - name = subject - value = $SUBJECT$ - } - # If we have a $CHARACTER$ designated, select that. - if = { - limit = { scope:subject = flag:specific } - $SUBJECT_TARGET$ = { save_scope_as = subject } - } - # If we have a manually selected gender, grab that. - else_if = { - limit = { scope:subject = flag:woman } - dummy_female = { save_scope_as = subject } - } - else_if = { - limit = { scope:subject = flag:man } - dummy_male = { save_scope_as = subject } - } - # Otherwise, generate a dummy. - else = { - # Is this a romantic poem? - if = { - limit = { exists = scope:poetry_romance_target } - # If so, only target the correct gender for preference. - romance_target_gender_effect = { SCOPE_NAME = subject } - } - # Otherwise, just a random dummy is fine. - else = { - random_dummy_gender_soldier_effect = { SCOPE_NAME = subject } - } - } - # Finally, set this as a variable on root so that custom loc can access it. - set_variable = { - name = poem_subject - value = scope:subject - } -} - -################################################## -# Cleanup -################################################## - -cleanup_poem_effect = { - # Remove the generated theme. - remove_variable = poetry_theme - # And designated subject. - remove_variable = poem_subject -} - -################################################## -# Send Poem Interaction Consequences -################################################## - -@send_poem_rejected_prestige_cost = medium_prestige_loss -@send_poem_rejected_prestige_gain = minor_prestige_gain -@send_poem_accepted_prestige_regain = minor_prestige_gain - -send_poem_romance_duel_actor_victory_effect = { - # Add a good amount of opinion of scope:actor. - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = sent_poem_romance_opinion - } - hidden_effect = { - random = { - chance = 25 - if = { - limit = { can_set_relation_potential_lover_trigger = { CHARACTER = scope:actor } } - set_relation_potential_lover = scope:actor - } - } - } - } -} -send_poem_romance_duel_actor_failure_effect = { - # reduce their opinion of scope:recipient. - hidden_effect = { - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = sent_poem_humiliated_opinion - } - } - } - # & give prestige to scope:recipient - scope:recipient = { - add_opinion = { - opinion = -20 - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 20 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_prestige = @send_poem_rejected_prestige_gain - } -} - -send_poem_mourning_duel_actor_victory_effect = { - # Add a modest amount of opinion of scope:actor & some stress loss. - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = sent_poem_mourning_opinion - } - hidden_effect = { - random = { - chance = 25 - if = { - limit = { can_set_relation_potential_friend_trigger = { CHARACTER = scope:actor } } - set_relation_potential_friend = scope:actor - } - } - } - add_stress = medium_stress_loss - } -} -send_poem_mourning_duel_actor_failure_effect = { - # reduce their opinion of scope:recipient. - hidden_effect = { - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = sent_poem_humiliated_opinion - } - } - } - scope:recipient = { - add_opinion = { - opinion = -20 - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 20 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_prestige = @send_poem_rejected_prestige_gain - } -} - -send_poem_legacy_duel_actor_victory_effect = { - # Add a modest amount of opinion of scope:actor & some piety. - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = sent_poem_grateful_opinion - } - hidden_effect = { - random = { - chance = 25 - if = { - limit = { can_set_relation_potential_friend_trigger = { CHARACTER = scope:actor } } - set_relation_potential_friend = scope:actor - } - } - } - add_piety = minor_piety_gain - } -} -send_poem_legacy_duel_actor_failure_effect = { - # reduce their opinion of scope:recipient. - hidden_effect = { - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = sent_poem_humiliated_opinion - } - } - } - # & give prestige to scope:recipient - scope:recipient = { - add_opinion = { - opinion = -20 - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 20 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_prestige = @send_poem_rejected_prestige_gain - } -} - -send_poem_strife_duel_actor_victory_effect = { - # Add a modest amount of opinion of scope:actor & some prestige. - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = sent_poem_grateful_opinion - } - hidden_effect = { - random = { - chance = 25 - if = { - limit = { can_set_relation_potential_friend_trigger = { CHARACTER = scope:actor } } - set_relation_potential_friend = scope:actor - } - } - } - add_prestige = minor_prestige_gain - } -} -send_poem_strife_duel_actor_failure_effect = { - # reduce their opinion of scope:recipient. - hidden_effect = { - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = sent_poem_humiliated_opinion - } - } - } - # & give prestige to scope:recipient - scope:recipient = { - add_opinion = { - opinion = -20 - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 20 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_prestige = @send_poem_rejected_prestige_gain - } -} - -send_poem_incompetence_duel_actor_victory_effect = { - # Reduce opinion of scope:actor & add stress. - scope:recipient = { - add_opinion = { - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 50 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_stress = major_stress_gain - } -} -send_poem_incompetence_duel_actor_failure_effect = { - # reduce their opinion of scope:recipient. - hidden_effect = { - scope:actor = { - add_opinion = { - target = scope:recipient - modifier = sent_poem_humiliated_opinion - } - } - } - # & give prestige to scope:recipient - scope:recipient = { - add_opinion = { - opinion = -20 - target = scope:actor - modifier = sent_poem_humiliated_opinion - } - hidden_effect = { - random = { - chance = 20 - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = scope:actor } } - set_relation_potential_rival = scope:actor - } - } - } - add_prestige = @send_poem_rejected_prestige_gain - } -} - -################################################## -# Send Poem Interaction Duels -################################################## - -send_poem_romance_duel_victory_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:recipient - show_as_tooltip = { send_poem_romance_duel_actor_victory_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:actor - show_as_tooltip = { send_poem_romance_duel_actor_victory_effect = yes } - } - } - # Calculate the actual effects. - send_poem_romance_duel_actor_victory_effect = yes -} -send_poem_romance_duel_defeat_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:recipient - show_as_tooltip = { send_poem_romance_duel_actor_failure_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:actor - show_as_tooltip = { send_poem_romance_duel_actor_failure_effect = yes } - } - } - # Calculate the actual effects. - send_poem_romance_duel_actor_failure_effect = yes -} -send_poem_romance_duel_effect = { - duel = { - skill = diplomacy - target = $POV_TARGET$ - # Scope:actor's words find their mark. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.success - # Sort notifications & output. - send_poem_romance_duel_victory_notification_effect = yes - } - # Scope:recipient is able to publicly ridicule the poem. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.failure - # Sort notifications & output. - send_poem_romance_duel_defeat_notification_effect = yes - } - } -} - -send_poem_mourning_duel_victory_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:recipient - show_as_tooltip = { send_poem_mourning_duel_actor_victory_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:actor - show_as_tooltip = { send_poem_mourning_duel_actor_victory_effect = yes } - } - } - # Calculate the actual effects. - send_poem_mourning_duel_actor_victory_effect = yes -} -send_poem_mourning_duel_defeat_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:recipient - show_as_tooltip = { send_poem_mourning_duel_actor_failure_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:actor - show_as_tooltip = { send_poem_mourning_duel_actor_failure_effect = yes } - } - } - # Calculate the actual effects. - send_poem_mourning_duel_actor_failure_effect = yes -} -send_poem_mourning_duel_effect = { - duel = { - skill = diplomacy - target = $POV_TARGET$ - # Scope:actor's words find their mark. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.success - # Sort notifications & output. - send_poem_mourning_duel_victory_notification_effect = yes - } - # Scope:recipient is able to publicly ridicule the poem. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.failure - # Sort notifications & output. - send_poem_mourning_duel_defeat_notification_effect = yes - } - } -} - -send_poem_legacy_duel_victory_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:recipient - show_as_tooltip = { send_poem_legacy_duel_actor_victory_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:actor - show_as_tooltip = { send_poem_legacy_duel_actor_victory_effect = yes } - } - } - # Calculate the actual effects. - send_poem_legacy_duel_actor_victory_effect = yes -} - -send_poem_legacy_duel_defeat_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:recipient - show_as_tooltip = { send_poem_legacy_duel_actor_failure_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:actor - show_as_tooltip = { send_poem_legacy_duel_actor_failure_effect = yes } - } - } - # Calculate the actual effects. - send_poem_legacy_duel_actor_failure_effect = yes -} - -send_poem_legacy_duel_effect = { - duel = { - skill = diplomacy - target = $POV_TARGET$ - # Scope:actor's words find their mark. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.success - # Sort notifications & output. - send_poem_legacy_duel_victory_notification_effect = yes - } - # Scope:recipient is able to publicly ridicule the poem. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.failure - # Sort notifications & output. - send_poem_legacy_duel_defeat_notification_effect = yes - } - } -} - -send_poem_strife_duel_victory_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:recipient - show_as_tooltip = { send_poem_strife_duel_actor_victory_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:actor - show_as_tooltip = { send_poem_strife_duel_actor_victory_effect = yes } - } - } - # Calculate the actual effects. - send_poem_strife_duel_actor_victory_effect = yes -} - -send_poem_strife_duel_defeat_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:recipient - show_as_tooltip = { send_poem_strife_duel_actor_failure_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:actor - show_as_tooltip = { send_poem_strife_duel_actor_failure_effect = yes } - } - } - # Calculate the actual effects. - send_poem_strife_duel_actor_failure_effect = yes -} - -send_poem_strife_duel_effect = { - duel = { - skill = diplomacy - target = $POV_TARGET$ - # Scope:actor's words find their mark. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.success - # Sort notifications & output. - send_poem_strife_duel_victory_notification_effect = yes - } - # Scope:recipient is able to publicly ridicule the poem. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.failure - # Sort notifications & output. - send_poem_strife_duel_defeat_notification_effect = yes - } - } -} - -send_poem_incompetence_duel_victory_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:recipient - show_as_tooltip = { send_poem_incompetence_duel_actor_victory_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.success - left_icon = scope:actor - show_as_tooltip = { send_poem_incompetence_duel_actor_victory_effect = yes } - } - } - # Calculate the actual effects. - send_poem_incompetence_duel_actor_victory_effect = yes -} - -send_poem_incompetence_duel_defeat_notification_effect = { - # Send out toasts. - hidden_effect = { - # Send scope:actor-side toast - scope:actor = { - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:recipient - show_as_tooltip = { send_poem_incompetence_duel_actor_failure_effect = yes } - } - } - # Send scope:recipient-side toast. - send_interface_toast = { - title = send_poem_interaction.failure - left_icon = scope:actor - show_as_tooltip = { send_poem_incompetence_duel_actor_failure_effect = yes } - } - } - # Calculate the actual effects. - send_poem_incompetence_duel_actor_failure_effect = yes -} - -send_poem_incompetence_duel_effect = { - duel = { - skill = diplomacy - target = $POV_TARGET$ - # Scope:actor's words find their mark. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.success - # Sort notifications & output. - send_poem_incompetence_duel_victory_notification_effect = yes - } - # Scope:recipient is able to publicly ridicule the poem. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - max = 49 - } - desc = send_poem_interaction.failure - # Sort notifications & output. - send_poem_incompetence_duel_defeat_notification_effect = yes - } - } -} diff --git a/common/scripted_effects/00_prison_effects.txt b/common/scripted_effects/00_prison_effects.txt index f59da0ef63..0a60739508 100644 --- a/common/scripted_effects/00_prison_effects.txt +++ b/common/scripted_effects/00_prison_effects.txt @@ -633,6 +633,43 @@ execute_prisoner_effect = { } } } + + # If we're a clan this affects unity + if = { + limit = { # If the victim is landed and you DON'T have an execution reason, you lose more unity + scope:victim = { is_landed = yes } + NOT = { has_execute_reason = scope:victim } + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:executioner + TARGET = scope:victim + VALUE = medium_unity_loss + DESC = clan_unity_execute.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else_if = { + limit = { # If the victim is landed and you DO have an execution reason, you lose a bit less unity + scope:victim = { is_landed = yes } + has_execute_reason = scope:victim + } + add_clan_unity_interaction_effect = { + CHARACTER = scope:executioner + TARGET = scope:victim + VALUE = minor_unity_loss + DESC = clan_unity_execute.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + else = { # For unlanded characters, we don't care as much, but you still lose some unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:executioner + TARGET = scope:victim + VALUE = miniscule_unity_loss + DESC = clan_unity_execute.desc + REVERSE_NON_HOUSE_TARGET = no + } + } } execute_opinion_effect = { VICTIM = scope:victim EXECUTIONER = scope:executioner } @@ -1884,6 +1921,7 @@ imprison_tyranny_effect = { scope:actor = { has_imprisonment_reason = scope:recipient } } custom_tooltip = IS_ALLOWED_TO_IMPRISON_DESC + } # Is at war or edge-case pondering general imprisonment else_if = { diff --git a/common/scripted_effects/00_relation_effects.txt b/common/scripted_effects/00_relation_effects.txt deleted file mode 100644 index 65de64b476..0000000000 --- a/common/scripted_effects/00_relation_effects.txt +++ /dev/null @@ -1,1146 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#progress_towards_friend_effect - Sets potential friend + opinion or upgrades potential friend to full friend -#progress_towards_rival_effect - Sets potential rival + opinion or upgrades potential rival to full rival -#progress_towards_lover_effect - Sets potential lover + opinion or upgrades potential lover to full lover - -#get_characters_of_major_interest_effect -#get_characters_of_minor_interest_effect -#get_characters_of_interest_effect - -#get_potential_enemies_effect -#get_random_potential_enemy_effect - -#progress_towards_friend_ai_effect - Progresses to friend if the target is an AI -#progress_towards_rival_ai_effect - Progresses to rival if the target is an AI -#progress_towards_lover_ai_effect - Progresses to lover if the target is an AI - -##################################################################### -# EFFECTS -##################################################################### - -### RELATION PROGRESS EFFECTS ### - -# Needs CHARACTER and OPINION value, use 0 for no opinion change and default__opinion script value for the normal amount - -#Sets potential friend + opinion or upgrades potential friend to full friend -progress_towards_friend_effect = { - #If potential friend, set friend! - if = { - limit = { - has_relation_potential_friend = $CHARACTER$ - can_set_relation_friend_trigger = { CHARACTER = $CHARACTER$ } - } - if = { - limit = { - exists = scope:relationship_reason_involved_character - exists = scope:relationship_reason_province - } - set_relation_friend = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - province = scope:relationship_reason_province - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_friend_log - tags = { good } - score = 10 - character = prev - target = $CHARACTER$ - } - } #TODO make all activities use this without creating duplicate entries - } - } - else_if = { - limit = { - exists = scope:relationship_reason_province - } - set_relation_friend = { - reason = $REASON$ - target = $CHARACTER$ - province = scope:relationship_reason_province - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_friend_log - tags = { good } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - else_if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_friend = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_friend_log - tags = { good } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - else = { - set_relation_friend = { - reason = $REASON$ - target = $CHARACTER$ - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_friend_log - tags = { good } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - # Complete activity intent if relevant - if = { - limit = { - exists = involved_activity - has_activity_intent = befriend_attendee_intent - intent_target ?= $CHARACTER$ - intent_target.involved_activity ?= root.involved_activity - } - save_scope_as = intent_completer - send_interface_toast = { - title = activity_intent_complete_toast - left_icon = $CHARACTER$ - complete_activity_intent = yes - } - } - } - # If not... - else = { - # ... set potential relation if we're not already friends! - if = { - limit = { - can_set_relation_potential_friend_trigger = { CHARACTER = $CHARACTER$ } - $CHARACTER$ = { - opinion = { - target = prev - value >= -25 - } - } - } - set_relation_potential_friend = $CHARACTER$ - } - - # ... add opinion if we should! - save_temporary_scope_value_as = { - name = friend_opinion - value = $OPINION$ - } - if = { - limit = { NOT = { scope:friend_opinion = 0 } } - reverse_add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = scope:friend_opinion - } - hidden_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = friendliness_opinion - opinion = scope:friend_opinion - } - } - } - } -} - -#Sets potential rival + opinion or upgrades potential rival to full rival -progress_towards_rival_effect = { - #If potential rival, set rival! - if = { - limit = { - has_relation_potential_rival = $CHARACTER$ - can_set_relation_rival_trigger = { CHARACTER = $CHARACTER$ } - } - if = { - limit = { - exists = scope:relationship_reason_involved_character - exists = scope:relationship_reason_province - } - set_relation_rival = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - province = scope:relationship_reason_province - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_rival_log - tags = { bad } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - else_if = { - limit = { - exists = scope:relationship_reason_province - } - set_relation_rival = { - reason = $REASON$ - target = $CHARACTER$ - province = scope:relationship_reason_province - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_rival_log - tags = { bad } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - else_if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_rival = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_rival_log - tags = { bad } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - else = { - set_relation_rival = { - reason = $REASON$ - target = $CHARACTER$ - } - if = { - limit = { - this.involved_activity ?= { - has_activity_type = activity_playdate - } - } - this.involved_activity ?= { - add_activity_log_entry = { - key = activity_generic_rival_log - tags = { bad } - score = 10 - character = prev - target = $CHARACTER$ - } - } - } - } - } - # If not... - else = { - # ... set potential relation if we're not already rivals! - if = { - limit = { can_set_relation_potential_rival_trigger = { CHARACTER = $CHARACTER$ } } - set_relation_potential_rival = $CHARACTER$ - } - - # ... add opinion if we should! - save_temporary_scope_value_as = { - name = rival_opinion - value = $OPINION$ - } - if = { - limit = { NOT = { scope:rival_opinion = 0 } } - reverse_add_opinion = { - target = $CHARACTER$ - modifier = hate_opinion - opinion = scope:rival_opinion - } - hidden_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = hate_opinion - opinion = scope:rival_opinion - } - } - } - } -} - -#Sets potential lover + opinion or upgrades potential lover to full lover -progress_towards_lover_effect = { - #If potential lover, set lover! - if = { - limit = { - has_relation_potential_lover = $CHARACTER$ - can_set_relation_lover_trigger = { CHARACTER = $CHARACTER$ } - } - if = { - limit = { - exists = scope:relationship_reason_involved_character - exists = scope:relationship_reason_province - } - set_relation_lover = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - province = scope:relationship_reason_province - } - } - else_if = { - limit = { - exists = scope:relationship_reason_province - } - set_relation_lover = { - reason = $REASON$ - target = $CHARACTER$ - province = scope:relationship_reason_province - } - } - else_if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_lover = { - reason = $REASON$ - target = $CHARACTER$ - involved_character = scope:relationship_reason_involved_character - } - } - else = { - set_relation_lover = { - reason = $REASON$ - target = $CHARACTER$ - } - } - # Complete activity intent if relevant - if = { - limit = { - exists = involved_activity - has_activity_intent = woo_attendee_intent - intent_target ?= $CHARACTER$ - intent_target.involved_activity ?= root.involved_activity - } - save_scope_as = intent_completer - send_interface_toast = { - title = activity_intent_complete_toast - left_icon = $CHARACTER$ - complete_activity_intent = yes - } - } - } - # If not... - else = { - # ... set potential relation if we're not already rivals! - if = { - limit = { can_set_relation_potential_lover_trigger = { CHARACTER = $CHARACTER$ } } - set_relation_potential_lover = $CHARACTER$ - } - - # ... add opinion if we should! - save_temporary_scope_value_as = { - name = lover_opinion - value = $OPINION$ - } - if = { - limit = { NOT = { scope:lover_opinion = 0 } } - reverse_add_opinion = { - target = $CHARACTER$ - modifier = romance_opinion - opinion = scope:lover_opinion - } - hidden_effect = { - add_opinion = { - target = $CHARACTER$ - modifier = romance_opinion - opinion = scope:lover_opinion - } - } - } - } -} - -### CHARACTERS OF INTEREST EFFECTS ### - -#Makes a list of every character of major interest - #Parameters: - # LISTNAME - the name of the list - -get_characters_of_major_interest_effect = { - save_temporary_scope_as = major_root - # 1 - Player heir - if = { - limit = { - major_interest_player_heir_trigger = { LISTNAME = $LISTNAME$ } - } - player_heir = { add_to_temporary_list = $LISTNAME$ } - } - # 2 - Liege - if = { - limit = { - major_interest_liege_trigger = { LISTNAME = $LISTNAME$ } - } - liege = { add_to_temporary_list = $LISTNAME$ } - } - # 3 - Realm Priest - if = { - limit = { - major_interest_realm_priest_trigger = { LISTNAME = $LISTNAME$ } - } - cp:councillor_court_chaplain = { add_to_temporary_list = $LISTNAME$ } - } - # 4 - Primary Spouse - if = { - limit = { - major_interest_primary_spouse_trigger = { LISTNAME = $LISTNAME$ } - } - primary_spouse = { add_to_temporary_list = $LISTNAME$ } - } - # 5 - Spymaster & # 11 - Other councillors - every_normal_councillor = { - limit = { - NOT = { is_in_list = $LISTNAME$ } - } - add_to_temporary_list = $LISTNAME$ - } - # 6 - Powerful vassals - every_powerful_vassal = { - limit = { - NOT = { is_in_list = $LISTNAME$ } - } - add_to_temporary_list = $LISTNAME$ - } - # 7 - Religious head (Excluded because they're highly context-specific) - # 8 - Potential heirs (Player only) - if = { - limit = { is_ai = no } - if = { - limit = { exists = dynasty } - dynasty = { - every_dynasty_member = { - limit = { - major_interest_potential_heirs_trigger = { LISTNAME = $LISTNAME$ CHARACTER = scope:major_root } - } - add_to_temporary_list = $LISTNAME$ - } - } - } - # 9 - Allies (Player only, Enemies are only relevant for content about wars) - every_ally = { - limit = { - NOT = { is_in_list = $LISTNAME$ } - } - add_to_temporary_list = $LISTNAME$ - } - } - # 10 - Neighboring rulers (not included in this list, hard to gauge relevance) -} - -#Makes a list of every character of minor interest - #Parameters: - # CHARACTER - the character who the list will be for - # LISTNAME - the name of the list -get_characters_of_minor_interest_effect = { - save_temporary_scope_as = minor_root - # 1 - Concubines & secondary spouses - every_consort = { - limit = { minor_interest_concubines_secondary_spouses_trigger = { CHARACTER = scope:minor_root LISTNAME = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 2 - Direct vassals of high tier - every_vassal = { - limit = { minor_interest_high_tier_vassal_trigger = { LISTNAME = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 3 - Betrothed - if = { - limit = { minor_interest_betrothed_trigger = { LISTNAME = $LISTNAME$ } } - betrothed = { add_to_temporary_list = $LISTNAME$ } - } - # 4 - Lovers - every_relation = { - type = lover - limit = { NOT = { is_in_list = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 5 - Rivals (excluded as they're typically only used in specific contexts) - # 6 - Close relatives - every_close_or_extended_family_member = { - limit = { minor_interest_close_relatives_trigger = { CHARACTER = scope:minor_root LISTNAME = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - if = { #Below is just for players - limit = { is_ai = no } - # 7 - Guardian - every_relation = { - type = guardian - limit = { NOT = { is_in_list = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 8 - Ward - every_relation = { - type = ward - limit = { NOT = { is_in_list = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 9 - Friends - every_relation = { - type = friend - limit = { NOT = { is_in_list = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 10 - Knights - every_knight = { - limit = { NOT = { is_in_list = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - # 11 - Highly skilled courtiers (players only) - if = { - limit = { is_ai = no } - every_courtier = { - limit = { minor_interest_skilled_courtiers_trigger = { LISTNAME = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - } - every_liege_or_above = { - limit = { minor_interest_liege_or_above_trigger = { CHARACTER = scope:minor_root LISTNAME = $LISTNAME$ } } - add_to_temporary_list = $LISTNAME$ - } - } -} - - - -#Makes a list of all characters of interest - #Parameters: - # LISTNAME - the name of the list -get_characters_of_interest_effect = { - get_characters_of_major_interest_effect = { - LISTNAME = $LISTNAME$ - } - get_characters_of_minor_interest_effect = { - LISTNAME = $LISTNAME$ - } -} - - - - - -#Makes a list of characters who are classified as potential enemies - #Parameters - # CHARACTER - The character whose enemies are being found - # LISTNAME - The name of the list -get_potential_enemies_effect = { - $CHARACTER$ = { - every_vassal = { - limit = { - is_powerful = yes - opinion = { - target = $CHARACTER$ - value <= 0 - } - NOT = { is_in_list = $LISTNAME$ } - } - add_to_list = $LISTNAME$ - } - every_relation = { - type = rival - limit = { - NOT = { is_in_list = $LISTNAME$ } - } - add_to_list = $LISTNAME$ - } - if = { - limit = { - is_independent_ruler = no - liege = { - opinion = { - target = $CHARACTER$ - value <= 0 - } - NOT = { - is_in_list = $LISTNAME$ - } - } - } - liege = { - add_to_list = $LISTNAME$ - } - } - if = { - limit = { - is_independent_ruler = yes - } - every_neighboring_top_liege_realm_owner = { - limit = { - NOT = { is_allied_to = $CHARACTER$ } - OR = { - opinion = { - target = $CHARACTER$ - value <= 20 - } - AND = { - opinion = { - target = $CHARACTER$ - value <= 50 - } - has_any_cb_on = $CHARACTER$ - } - } - NOT = { is_in_list = $LISTNAME$ } - } - add_to_list = $LISTNAME$ - } - } - #Potential Heirs that do not like you - } -} - -set_as_oaf_effect = { - if = { - limit = { - NOT = { has_relation_oaf = $CHARACTER$ } - } - set_relation_oaf = $CHARACTER$ - } -} - -remove_friend_or_downgrade_friendship_effect = { - if = { - limit = { has_relation_best_friend = $SCOPE$ } - hidden_effect = { remove_relation_best_friend = $SCOPE$ } - set_relation_friend = { reason = friend_downgrade_best_friends target = $SCOPE$ } - } - else = { remove_relation_friend = $SCOPE$ } -} - -remove_lover_or_downgrade_relationship_effect = { - if = { - limit = { has_relation_soulmate = $SCOPE$ } - hidden_effect = { remove_relation_soulmate = $SCOPE$ } - set_relation_lover = $SCOPE$ - } - else = { remove_relation_lover = $SCOPE$ } -} - -# Immediately upgrade the relationship -upgrade_to_friend_effect = { - #If nemesis, change to rival - if = { - limit = { has_relation_nemesis = $CHARACTER$ } - remove_relation_nemesis = $CHARACTER$ - if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_rival = { - target = $CHARACTER$ - reason = $REASON$ - involved_character = scope:relationship_reason_involved_character - } - } - else = { - set_relation_rival = { - target = $CHARACTER$ - reason = $REASON$ - } - } - } - #If rival, end rivalry. - else_if = { - limit = { has_relation_rival = $CHARACTER$ } - remove_relation_rival = $CHARACTER$ - } - # If not, look at upgrading from friend to best friend - else_if = { - limit = { - has_relation_friend = $CHARACTER$ - } - if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_best_friend = { - target = $CHARACTER$ - reason = $REASON$ - copy_reason = friend - involved_character = scope:relationship_reason_involved_character - } - } - else = { - set_relation_best_friend = { - target = $CHARACTER$ - copy_reason = friend - reason = $REASON$ - } - } - } - # If not, look at upgrading from nothing to friend - else_if = { - limit = { - NOT = { has_relation_friend = $CHARACTER$ } - } - if = { - limit = { - exists = scope:relationship_reason_involved_character - } - set_relation_friend = { - target = $CHARACTER$ - reason = $REASON$ - involved_character = scope:relationship_reason_involved_character - } - } - else = { - set_relation_friend = { - target = $CHARACTER$ - reason = $REASON$ - } - } - } -} - -# Immediately downgrade the relationship -# DO NOT USE AFTER BP1 - hard to implement with relationship reasons -downgrade_to_rival_effect = { - #If best friend, change to friend - if = { - limit = { - has_relation_best_friend = $CHARACTER$ - } - remove_relation_best_friend = $CHARACTER$ - set_relation_friend = { reason = friend_downgrade_best_friends target = $CHARACTER$ } - } - #If friend, end friendship. - else_if = { - limit = { - has_relation_friend = $CHARACTER$ - } - remove_relation_friend = $CHARACTER$ - } - # If not, look at upgrading from rival to nemesis - else_if = { - limit = { - has_relation_rival = $CHARACTER$ - NOT = { has_relation_nemesis = $CHARACTER$ } - } - set_relation_nemesis = { - target = $CHARACTER$ - copy_reason = rival - reason = nemesis_downgrade_from_rival - } - } - # If not, look at upgrading from nothing to rival - else_if = { - limit = { - NOT = { has_relation_nemesis = $CHARACTER$ } - } - set_relation_rival = { - target = $CHARACTER$ - reason = $REASON$ - } - } -} - -set_random_friendship_reason = { # Use for adults, primarily - show_as_tooltip = { - set_relation_friend = $TARGET$ - } - hidden_effect = { - random_list = { - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_friend = { reason = friend_random_1 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_friend = { reason = friend_random_2 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_friend = { reason = friend_random_3 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_friend = { reason = friend_random_4 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_friend = { reason = friend_random_5 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = liege - } - set_relation_friend = { reason = friend_random_6 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - } - set_relation_friend = { reason = friend_random_7 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - } - set_relation_friend = { reason = friend_random_8 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - exists = liege.capital_province - } - set_relation_friend = { reason = friend_random_9 target = $TARGET$ involved_character = liege province = liege.capital_province } - } - 10 = { - trigger = { - exists = liege - exists = liege.capital_province - } - set_relation_friend = { reason = friend_random_10 target = $TARGET$ involved_character = liege province = liege.capital_province } - } - 10 = { - trigger = { - NOR ={ - exists = location - exists = liege - } - } - set_relation_friend = { reason = friend_random_fallback target = $TARGET$ } - } - } - } -} - -set_random_rivalry_reason = { # Use for adults, primarily - show_as_tooltip = { - set_relation_rival = $TARGET$ - } - hidden_effect = { - random_list = { - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_rival = { reason = rival_random_1 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_rival = { reason = rival_random_2 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_rival = { reason = rival_random_3 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_rival = { reason = rival_random_4 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = location - NOT = { exists = liege } - } - set_relation_rival = { reason = rival_random_5 target = $TARGET$ province = location } - } - 10 = { - trigger = { - exists = liege - } - set_relation_rival = { reason = rival_random_6 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - } - set_relation_rival = { reason = rival_random_7 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - } - set_relation_rival = { reason = rival_random_8 target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - exists = liege - exists = liege.capital_province - } - set_relation_rival = { reason = rival_random_9 target = $TARGET$ involved_character = liege province = liege.capital_province } - } - 10 = { - trigger = { - exists = liege - exists = liege.capital_province - } - set_relation_rival = { reason = rival_random_10 target = $TARGET$ involved_character = liege province = liege.capital_province } - } - 10 = { - trigger = { - exists = liege - } - set_relation_rival = { reason = rivalry_at_court target = $TARGET$ involved_character = liege } - } - 10 = { - trigger = { - NOR ={ - exists = location - exists = liege - } - } - set_relation_rival = { reason = rival_random_fallback target = $TARGET$ } - } - } - } -} - -set_random_lover_reason = { - show_as_tooltip = { - set_relation_lover = $TARGET$ - } - hidden_effect = { - random_list = { - 10 = { - trigger = { - $TARGET$ = { - is_female = yes - } - } - set_relation_lover = { reason = lover_random_1 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_2 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_3 target = $TARGET$ } - } - 10 = { - trigger = { - $TARGET$ = { - is_male = yes - } - } - set_relation_lover = { reason = lover_random_4 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_5 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_6 target = $TARGET$ } - } - 10 = { - trigger = { - $TARGET$ = { - is_male = yes - } - } - set_relation_lover = { reason = lover_random_7 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_8 target = $TARGET$ } - } - 10 = { - trigger = { - $TARGET$ = { - is_female = yes - } - } - set_relation_lover = { reason = lover_random_9 target = $TARGET$ } - } - 10 = { - set_relation_lover = { reason = lover_random_10 target = $TARGET$ } - } - } - } -} - -# OWNER = character -# TARGET = character -# RELATION = relation_key -send_set_relation_toast_effect = { - $OWNER$ = { - save_temporary_scope_as = relation_owner - } - $TARGET$ = { - save_temporary_scope_as = relation_target - } - scope:relation_owner = { - send_interface_toast = { - type = msg_set_relation_$RELATION$ - left_icon = this - right_icon = scope:relation_target - } - } - scope:relation_target = { - send_interface_toast = { - type = msg_set_relation_$RELATION$ - left_icon = this - right_icon = scope:relation_owner - } - } -} - -#Sets favor relation, then gives hook -progress_towards_hook_effect = { - #If has potential favor, give hook! - if = { - limit = { - NOT = { - has_hook = $CHARACTER$ - } - has_relation_potential_hook = $CHARACTER$ - } - add_hook = { - type = $HOOK_TYPE$ - target = $CHARACTER$ - } - } - # If not... - else = { - if = { - limit = { - NOT = { has_hook = $CHARACTER$ } - } - set_relation_potential_hook = $CHARACTER$ - } - else = { - reverse_add_opinion = { - target = $CHARACTER$ - modifier = favor_opinion - opinion = 25 - } - } - } -} - -progress_towards_friend_ai_effect = { - if = { - limit = { - $CHARACTER$ = { is_ai = yes } - } - progress_towards_friend_effect = { - CHARACTER = $CHARACTER$ - OPINION = $OPINION$ - REASON = $REASON$ - } - } -} - -progress_towards_lover_ai_effect = { - if = { - limit = { - $CHARACTER$ = { is_ai = yes } - } - progress_towards_lover_effect = { - CHARACTER = $CHARACTER$ - OPINION = $OPINION$ - REASON = $REASON$ - } - } -} - -progress_towards_rival_ai_effect = { - if = { - limit = { - $CHARACTER$ = { is_ai = yes } - } - progress_towards_rival_effect = { - CHARACTER = $CHARACTER$ - OPINION = $OPINION$ - REASON = $REASON$ - } - } -} diff --git a/common/scripted_effects/00_religion_effects.txt b/common/scripted_effects/00_religion_effects.txt index b53f8a4e21..137adecc76 100644 --- a/common/scripted_effects/00_religion_effects.txt +++ b/common/scripted_effects/00_religion_effects.txt @@ -49,11 +49,7 @@ create_head_of_faith_title_effect = { object = scope:faith # Temporal HoF if = { - limit = { - faith = { - has_doctrine_parameter = temporal_head_of_faith - } - } + limit = { faith = { has_doctrine_parameter = temporal_head_of_faith } } if = { limit = { faith = { @@ -62,17 +58,12 @@ create_head_of_faith_title_effect = { } trigger_event = faith_creation.0001 # Creates new dynamic title } - else = { - trigger_event = faith_creation.0011 # Re-uses existing title. - } + else = { trigger_event = faith_creation.0011 } # Re-uses existing title. } + # Spiritual HoF else_if = { - limit = { - faith = { - has_doctrine_parameter = spiritual_head_of_faith - } - } + limit = { faith = { has_doctrine_parameter = spiritual_head_of_faith } } if = { limit = { faith = { @@ -81,9 +72,7 @@ create_head_of_faith_title_effect = { } trigger_event = faith_creation.0002 # Creates new dynamic title } - else = { - trigger_event = faith_creation.0012 # Re-uses existing title. - } + else = { trigger_event = faith_creation.0012 } # Re-uses existing title. } } @@ -99,9 +88,7 @@ create_head_of_faith_title_effect = { } every_ruler = { if = { - limit = { - faith = scope:faith - } + limit = { faith = scope:faith } trigger_event = { id = faith_creation.1010 days = 1 @@ -117,6 +104,26 @@ create_head_of_faith_title_effect = { } } +force_create_head_of_faith_title_Effect = { # Has no cost, should be done manually on a per-case basis + custom_description_no_bullet = { + text = create_temporal_head_of_faith + subject = root + object = scope:faith + + # Temporal HoF + if = { + limit = { faith = { has_doctrine_parameter = temporal_head_of_faith } } + trigger_event = faith_creation.0001 + } + + # Spiritual HoF + else_if = { + limit = { faith = { has_doctrine_parameter = spiritual_head_of_faith } } + trigger_event = faith_creation.0002 + } + } +} + # Dynamic HoF title creation set_up_dynamic_temporal_hof_title_effect = { faith = { save_scope_as = my_faith } @@ -393,3 +400,104 @@ set_up_dynamic_spiritual_hof_title_existing_hof_effect = { } } } + +### SECRET FAITH ### + +# Openly convert +secret_faith_openly_convert_character = { + if = { + limit = { exists = secret_faith } + set_character_faith_with_conversion = secret_faith # Gets vassals too, if they like you enough + remove_character_secret_faith = yes + } +} + +# Openly convert all secret faith counties in your realm +secret_faith_openly_convert_all_in_realm = { + if = { + limit = { any_sub_realm_county = { has_variable = false_convert } } + save_scope_value_as = { # Keeping track how many counties convert + name = num_false_converts_counties + value = 0 + } + + every_sub_realm_county = { + limit = { has_variable = false_convert } + set_county_faith = var:false_convert # Convert them + remove_county_modifier = false_convert_modifier # Remove modifier too + remove_variable = false_convert # No longer mark them as converts + add_county_modifier = { # Everyone likes practicing their faith in the open! + modifier = relieved_cryptos_modifier + years = 25 + } + save_scope_value_as = { # Updating how many counties convert + name = num_false_converts_counties + value = { + value = scope:num_false_converts_counties + add = 1 + } + } + } + if = { # Include counties in the message if there are any + limit = { scope:num_false_converts_counties > 0 } + root = { # There is an edgecase where root has a link to realm, but is not a character themselves! + send_interface_message = { + type = revealed_crypto_faith + title = event_false_converts.t # todo_cd_polish, this loc might not fit the scenario + desc = event_false_converts_plus_counties.desc + } + } + } + } +} + +# Openly convert all secret faith counties of your faith in your realm +secret_faith_openly_convert_all_in_realm_specific = { + if = { + limit = { + any_sub_realm_county = { + has_variable = false_convert + var:false_convert = root.faith + NOT = { faith = root.faith } # Discount them if they've already been switched by the conversion action. + } + } + + save_scope_value_as = { # Keeping track how many counties convert + name = num_false_converts_counties + value = 0 + } + + every_sub_realm_county = { + limit = { + has_variable = false_convert + var:false_convert = root.faith + NOT = { faith = root.faith } # Discount them if they've already been switched by the conversion action. + } + set_county_faith = var:false_convert # Change faith + remove_county_modifier = false_convert_modifier + remove_variable = false_convert # Cleanup + add_county_modifier = { # Everyone likes practicing their faith in the open! + modifier = relieved_cryptos_modifier + years = 25 + } + save_scope_value_as = { # Updating how many counties convert + name = num_false_converts_counties + value = { + value = scope:num_false_converts_counties + add = 1 + } + } + } + + if = { # Include counties in the message if there are any + limit = { scope:num_false_converts_counties > 0 } + root = { + send_interface_message = { + type = revealed_crypto_faith + title = event_false_converts.t + desc = event_false_converts_plus_counties.desc + } + } + } + } +} diff --git a/common/scripted_effects/00_religious_interaction_effects.txt b/common/scripted_effects/00_religious_interaction_effects.txt index 1bc46d5288..37d7ca7a1d 100644 --- a/common/scripted_effects/00_religious_interaction_effects.txt +++ b/common/scripted_effects/00_religious_interaction_effects.txt @@ -947,9 +947,15 @@ undirected_ghw_recipient_selection_on_victory_effect = { #Set in the event of no } } -demand_conversion_interaction_effect = { - # Spouses convert +# SECRET FAITH EFFECTS + +# When someone is demanded to change their faith, find out which of their spouses/family will also convert +grab_spouses_and_family_to_convert_effect = { scope:recipient = { + # Add yourself + add_to_list = spouses_and_family_to_convert + add_character_flag = spouse_or_family_to_convert + # Spouses convert every_spouse = { limit = { OR = { @@ -958,31 +964,16 @@ demand_conversion_interaction_effect = { is_vassal_of = scope:actor is_vassal_of = scope:recipient } + NOT = { has_character_flag = spouse_or_family_to_convert } } - set_character_faith = scope:actor.faith - hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 - } - } + add_to_list = spouses_and_family_to_convert + add_character_flag = spouse_or_family_to_convert } - } - # Family in recipient's court also convert - if = { - limit = { - scope:recipient = { + # Family in recipient's court also convert + if = { + limit = { is_ruler = yes - any_close_or_extended_family_member = { - exists = employer - employer = scope:recipient - faith = scope:recipient.faith - NOT = { faith = scope:actor.faith } - is_ai = yes - } - } - } - scope:recipient = { + } every_close_or_extended_family_member = { custom = all_family_members_at_court limit = { @@ -991,26 +982,108 @@ demand_conversion_interaction_effect = { faith = scope:recipient.faith NOT = { faith = scope:actor.faith } is_ai = yes + NOT = { has_character_flag = spouse_or_family_to_convert } + # Don't add the recipient twice + #NOT = { root = scope:recipient } } - set_character_faith = scope:actor.faith - hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 + add_to_list = spouses_and_family_to_convert + add_character_flag = spouse_or_family_to_convert + } + } + } + every_in_list = { + list = spouses_and_family_to_convert + remove_character_flag = spouse_or_family_to_convert + } +} + +# Default conversion effect; allows the recipient to demure whether to keep a secret faith or not +demand_conversion_interaction_effect = { + grab_spouses_and_family_to_convert_effect = yes + show_as_tooltip = { + convert_family_to_faith_effect = { + FALSE_CONVERSION = no + FORCED = yes + } + } + every_in_list = { + list = spouses_and_family_to_convert + # Don't say that people can convert when you know they can't + if = { + limit = { + faith = scope:recipient.faith + NOT = { has_crypto_religionist_secret_known_by_character_trigger = { CHARACTER = scope:actor } } + NOT = { exists = secret_faith } + } + custom_tooltip = ask_for_conversion_interaction_accept_tooltip + } + } + scope:recipient = { + trigger_event = false_conversion.0900 + } +} + +# Switch a character to the specified faith and keep their old faith as a secret (or not) +# Assumes that spouses and family to convert have already been grabbed +convert_family_to_faith_effect = { + every_in_list = { + list = spouses_and_family_to_convert + # Make crypto-religionists of them, if applicable + if = { + limit = { + $FALSE_CONVERSION$ = yes + faith = scope:recipient.faith + } + scope:recipient.faith = { save_temporary_scope_as = old_faith } + set_character_faith = scope:actor.faith + make_character_crypto_religionist_effect = { CRYPTO_RELIGION = scope:old_faith } + # Grab the character's recently added crypto secret + if = { + limit = { + any_secret = { secret_type = secret_crypto_religionist } + exists = secret_faith + # Ignore the crypto secret if it's not new + # This prevents the edge case of family members finding out about other family's different crypto faiths + secret_faith = scope:old_faith + } + random_secret = { + limit = { + secret_type = secret_crypto_religionist + } + save_scope_as = crypto_religionist_secret + } + } + # Make the secret known to all other family members + every_in_list = { + list = spouses_and_family_to_convert + if = { + limit = { + exists = scope:crypto_religionist_secret + NOT = { prev = this } + } + scope:crypto_religionist_secret = { + reveal_to_without_events_effect = { CHARACTER = prev } } } } } + else = { + set_character_faith = scope:actor.faith + } + if = { + limit = { + $FORCED$ = yes + } + hidden_effect = { + add_character_flag = { + flag = converted_by_forced_conversion_interaction + years = 5 + } + } + } } scope:recipient = { bastard_to_wild_oat_conversion_interaction_effect = yes - set_character_faith = scope:actor.faith - hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 - } - } } # Struggle Catalysts. #if = { @@ -1044,165 +1117,263 @@ demand_conversion_interaction_effect = { #} } -new_faith_created_conversion_effect = { - # Convert Capital (if of same faith as recipient's old faith) +make_character_crypto_religionist_effect = { if = { limit = { - scope:recipient = { - is_landed = yes - highest_held_title_tier > tier_barony - capital_county.faith = scope:recipient.faith + NOR = { + any_secret = { secret_type = secret_crypto_religionist } + exists = secret_faith + $CRYPTO_RELIGION$ = faith } } - scope:recipient.capital_county = { - set_county_faith = scope:actor.faith + hidden_effect = { set_character_secret_faith = $CRYPTO_RELIGION$ } + add_secret = { + type = secret_crypto_religionist } } - # Spouses convert - scope:recipient = { - every_spouse = { +} + +make_county_crypto_religionists_effect = { + set_variable = { + name = false_convert + value = $FAITH$ + days = 18250 + } + add_county_modifier = { + modifier = false_convert_modifier + years = 50 + } +} + +# Makes the target a crypto-religionist of the root's faith and exposes both secrets to one another +# Owner_Crypto_Secret needs to be already scoped before calling this effect +spread_crypto_religion_to_target_effect = { + $TARGET$ = { + if = { limit = { - OR = { - is_courtier_of = scope:actor - is_courtier_of = scope:recipient - is_vassal_of = scope:actor - is_vassal_of = scope:recipient + NOT = { + any_secret = { secret_type = secret_crypto_religionist } } } - set_character_faith = scope:actor.faith - hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 + + make_character_crypto_religionist_effect = { CRYPTO_RELIGION = scope:owner.secret_faith } + random_secret = { + limit = { secret_type = secret_crypto_religionist } + reveal_to_without_events_effect = { CHARACTER = root } + } + if = { + limit = { + NOT = { scope:owner_crypto_secret = { is_known_by = $TARGET$ } } + } + scope:owner_crypto_secret = { + reveal_to_without_events_effect = { CHARACTER = $TARGET$ } } } } } - # Family in recipient's court also convert - if = { - limit = { - scope:recipient = { - is_ruler = yes - any_close_or_extended_family_member = { - exists = court_owner - court_owner = scope:recipient - faith = scope:recipient.faith - NOT = { faith = scope:actor.faith } - is_ai = yes - } - } +} + +child_secret_faith_conversion_success_effect = { + scope:child = { + make_character_crypto_religionist_effect = { + CRYPTO_RELIGION = scope:guardian.secret_faith } - scope:recipient = { - every_close_or_extended_family_member = { - custom = all_family_members_at_court + } + # Notify the actor + scope:guardian = { + send_interface_message = { + type = event_generic_good + title = secret_faith.1001.message + left_icon = scope:child + scope:child = { + random_secret = { + limit = { + NOT = { is_known_by = scope:guardian } + secret_type = secret_crypto_religionist + } + reveal_to = scope:guardian + } + add_opinion = { + target = PREV + modifier = impressed_opinion + opinion = 20 + } + } + random_secret = { limit = { - exists = court_owner - court_owner = scope:recipient - faith = scope:recipient.faith - NOT = { faith = scope:actor.faith } - is_ai = yes + NOT = { is_known_by = scope:child } + secret_type = secret_crypto_religionist + } + reveal_to = scope:child + } + } + } +} + +child_secret_faith_conversion_failure_effect = { + scope:guardian = { + send_interface_toast = { + title = child_secret_faith_conversion_failure_effect.desc + left_icon = scope:child + scope:child = { + add_opinion = { + target = scope:guardian + modifier = suspicion_opinion + opinion = -15 } - set_character_faith = scope:actor.faith + } + } + scope:guardian = { + if = { + limit = { this = root } hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 + add_opinion = { + target = scope:child + modifier = disappointed_opinion + opinion = -15 } } } + else = { + add_opinion = { + target = scope:child + modifier = disappointed_opinion + opinion = -15 + } + } } } - scope:recipient = { - set_character_faith = scope:actor.faith - hidden_effect = { - add_character_flag = { - flag = converted_by_forced_conversion_interaction - years = 5 +} + +child_secret_faith_conversion_critical_failure_effect = { + hidden_effect = { + # Save and reveal secret + scope:guardian = { + random_secret = { + limit = { + secret_type = secret_crypto_religionist + } + save_scope_as = guardian_secret_faith_secret + if = { + limit = { NOT = { is_known_by = scope:child } } + reveal_to = scope:child + } + } + } + scope:child = { + # Inform the child's liege if relevant + if = { + limit = { + is_ruler = yes + NOR = { + liege = this + liege ?= scope:guardian + } + } + liege = { + send_interface_message = { + title = child_secret_faith_conversion_critical_failure_effect.liege.desc + left_icon = scope:child + right_icon = scope:guardian + show_as_tooltip = { + scope:guardian_secret_faith_secret = { expose_secret = scope:child } + scope:child = { + add_opinion = { + target = scope:guardian + modifier = hate_opinion + opinion = -30 + } + } + } + } + } + } + } + } + scope:child = { + # Inform the child + send_interface_toast = { + title = child_secret_faith_conversion_critical_failure_effect.desc + left_icon = scope:child + right_icon = scope:guardian + scope:guardian_secret_faith_secret = { expose_secret = scope:child } + add_opinion = { + target = scope:guardian + modifier = hate_opinion + opinion = -30 + } + } + } + scope:guardian = { + if = { + limit = { this = root } + hidden_effect = { + add_opinion = { + target = scope:child + modifier = hate_opinion + opinion = -30 + } + } + } + else = { + add_opinion = { + target = scope:child + modifier = hate_opinion + opinion = -30 } } } } -adopt_religion_interaction_effect = { +new_faith_created_conversion_effect = { # Convert Capital (if of same faith as recipient's old faith) if = { limit = { - scope:actor = { + scope:recipient = { + is_landed = yes highest_held_title_tier > tier_barony - NOT = { capital_county.faith = scope:recipient.faith } + capital_county.faith = scope:recipient.faith } } - scope:actor.capital_county = { - set_county_faith = scope:recipient.faith + scope:recipient.capital_county = { + set_county_faith = scope:actor.faith } } - # Spouses convert - if = { - limit = { - scope:actor = { - any_spouse = { - NOT = { faith = scope:recipient.faith } - OR = { - is_courtier_of = scope:actor - is_courtier_of = scope:recipient - is_vassal_of = scope:actor - is_vassal_of = scope:recipient - } - } - } - } - scope:actor = { - every_spouse = { - limit = { - NOT = { faith = scope:recipient.faith } - OR = { - is_courtier_of = scope:actor - is_courtier_of = scope:recipient - is_vassal_of = scope:actor - is_vassal_of = scope:recipient - } - } - set_character_faith = scope:recipient.faith - } - } + grab_spouses_and_family_to_convert_effect = yes + convert_family_to_faith_effect = { + FALSE_CONVERSION = no + FORCED = yes } - # Family in actor's court also convert +} + +adopt_religion_interaction_effect = { + # Convert Capital (if of same faith as recipient's old faith) if = { limit = { scope:actor = { - is_ruler = yes - any_close_or_extended_family_member = { - exists = court_owner - court_owner = scope:actor - faith = scope:actor.faith - NOT = { faith = scope:recipient.faith } - is_ai = yes - } - } - } - scope:actor = { - every_close_or_extended_family_member = { - custom = all_family_members_at_court_converison - limit = { - exists = court_owner - court_owner = scope:actor - faith = scope:actor.faith - NOT = { faith = scope:recipient.faith } - is_ai = yes - } - set_character_faith = scope:recipient.faith + highest_held_title_tier > tier_barony + NOT = { capital_county.faith = scope:recipient.faith } } } + scope:actor.capital_county = { + set_county_faith = scope:recipient.faith + } } - scope:actor = { - set_character_faith = scope:recipient.faith + # Spouses and family convert + grab_spouses_and_family_to_convert_effect = yes + convert_family_to_faith_effect = { + FALSE_CONVERSION = no + FORCED = no } } sun_trial_death_effect = { scope:prisoner = { - override_death_killer_effect = { death_reason = death_sun_trial killer = scope:imprisoner } + override_death_killer_effect = { + death_reason = death_sun_trial + killer = scope:imprisoner + } } #Opinion penalties diff --git a/common/scripted_effects/00_scheme_befriend_effects.txt b/common/scripted_effects/00_scheme_befriend_effects.txt deleted file mode 100644 index 525480bc38..0000000000 --- a/common/scripted_effects/00_scheme_befriend_effects.txt +++ /dev/null @@ -1,139 +0,0 @@ -#Scripted effects relating to Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#successful_befriend_opinion_change_effect -#successful_befriend_effect -#successful_befriend_start_friendship_effect - -###################################################################### -# EFFECTS -###################################################################### - -successful_befriend_potential_friend_effect = { - $CHARACTER$ = { - if = { #Always leads to a potential friendship - limit = { - NOR = { - has_relation_potential_friend = root - has_relation_friend = root - } - } - if = { #Remove potential rival relation if you have it - limit = { - has_relation_potential_rival = root - } - remove_relation_potential_rival = root - } - set_relation_potential_friend = root - } - if = { - limit = { - number_of_traits_in_common = { - target = root - value >= 3 - } - } - $CHARACTER$ = { - add_opinion = { - modifier = friendliness_opinion - target = root - opinion = 30 - } - } - } - else = { - $CHARACTER$ = { - add_opinion = { - modifier = friendliness_opinion - target = root - opinion = 20 - } - } - } - } -} - -successful_befriend_critical_change_effect = { - $CHARACTER$ = { - hidden_effect = { - if = { #Remove potential rival relation if you have it - limit = { - has_relation_potential_rival = root - } - remove_relation_potential_rival = root - } - } - if = { #Set friend relation - limit = { - NOT = { has_relation_friend = root } - } - if = { - limit = { - exists = scope:relationship_reason_location - } - set_relation_friend = { reason = $REASON$ target = root province = scope:relationship_reason_location } - } - else = { - set_relation_friend = { reason = $REASON$ target = root } - } - } - else_if = { #Fallback - limit = { - has_relation_friend = root - } - $CHARACTER$ = { - add_opinion = { - modifier = friendliness_opinion - target = root - opinion = 40 - } - } - } - } -} - -failed_befriend_opinion_change_effect = { - $CHARACTER$ = { - add_opinion = { - modifier = refusal_opinion - target = root - opinion = -5 - } - hidden_effect = { - set_relation_potential_friend = root - } - } -} - -failed_befriend_opinion_critical_change_effect = { - $CHARACTER$ = { - add_opinion = { - modifier = disastrous_befriend_attempt_opinion - target = root - } - if = { - limit = { - NOR = { - has_relation_potential_rival = root - has_relation_rival = root - } - } - hidden_effect = { set_relation_potential_rival = root } - } - else_if = { #If you already are potential rivals, you have a chance of becoming Rivals - limit = { - has_relation_potential_rival = root - NOT = { has_relation_rival = root } - } - hidden_effect = { remove_relation_potential_rival = root } - set_relation_rival = { - target = root - reason = rival_disastrous_befriend_attempt - } - } - } -} diff --git a/common/scripted_effects/00_scheme_sway_effects.txt b/common/scripted_effects/00_scheme_sway_effects.txt deleted file mode 100644 index 6c2eda29e3..0000000000 --- a/common/scripted_effects/00_scheme_sway_effects.txt +++ /dev/null @@ -1,216 +0,0 @@ -#Effects used in Sway events - - - -sway_end_effect = { - if = { - limit = { - scope:target = { - NOT = { - has_opinion_modifier = { - target = scope:owner - modifier = scheme_sway_opinion - value >= sway_max_value # 100 by default - } - } - } - } - hidden_effect = { - if = { - limit = { - exists = scope:scheme - } - scope:scheme = { - add_scheme_progress = -10 - } - } - } - if = { - limit = { - exists = scope:scheme_successful - } - custom_tooltip = sway_continue - } - else = { - custom_tooltip = sway_try_again - } - - scope:owner = { # The AI never stops swaying unless we force it to, this makes them use a more even spread of schemes - if = { - limit = { - is_ai = yes - scope:target = { - NAND = { - is_vassal_of = scope:owner - is_a_faction_member = yes - opinion = { - target = scope:owner - value < 100 - } - } - } - } - if = { # Sway your realm priest for a long time - limit = { - scope:target = { - is_theocratic_lessee = yes - opinion = { - target = scope:owner - value <= 50 - } - } - } - random = { - chance = 10 - scope:scheme = { - end_scheme = yes - } - } - } - else_if = { - limit = { - scope:target = { - opinion = { - target = scope:owner - value < -25 - } - } - } - random = { - chance = 10 - scope:scheme = { - end_scheme = yes - } - } - } - else_if = { - limit = { - scope:target = { - opinion = { - target = scope:owner - value < 0 - } - } - } - random = { - chance = 30 - scope:scheme = { - end_scheme = yes - } - } - } - else_if = { - limit = { - scope:target = { - opinion = { - target = scope:owner - value < 35 - } - } - } - random = { - chance = 50 - scope:scheme = { - end_scheme = yes - } - } - } - else = { - scope:scheme = { - end_scheme = yes - } - } - } - } - } - else = { - #hidden_effect = { # What was this ever supposed to achieve? - # remove_opinion = { - # target = scope:owner - # modifier = scheme_sway_opinion - # } - # add_opinion = { - # target = scope:owner - # modifier = scheme_sway_opinion - # opinion = 100 - # } - #} - scope:owner = { - send_interface_toast = { - title = sway_complete - left_icon = scope:target - scope:scheme = { - end_scheme = yes - } - } - } - } -} - - -sway_ongoing_1002_outcome_effect = { - if = { - limit = { - exists = scope:believer - has_relation_friend = scope:believer - } - show_as_tooltip = { theology_3021_a_success_effect = yes } - } - else = { - random_list = { - 1 = { - desc = diplomacy_majesty.0004.success.tt - show_chance = no - show_as_tooltip = { - scope:compliment_receiver = { - add_opinion = { - target = root - modifier = respect_opinion - opinion = 10 - } - } - } - } - 1 = { - desc = diplomacy_majesty.0004.failure.tt - show_chance = no - show_as_tooltip = { - scope:compliment_receiver = { - add_opinion = { - target = root - modifier = respect_opinion - opinion = -5 - } - } - } - } - } - } - - hidden_effect = { - if = { - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:good - } - trigger_event = { id = sway_ongoing.1003 days = { 7 14 } } - } - - else_if = { #Is treated as a good outcome here - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:neutral - } - trigger_event = { id = sway_ongoing.1003 days = { 7 14 } } - } - - else_if = { - limit = { - exists = scope:compliment_outcome - scope:compliment_outcome = flag:bad - } - trigger_event = { id = sway_ongoing.1004 days = { 7 14 } } - } - } -} - diff --git a/common/scripted_effects/00_scripted_effects.txt b/common/scripted_effects/00_scripted_effects.txt deleted file mode 100644 index df1fdda8e1..0000000000 --- a/common/scripted_effects/00_scripted_effects.txt +++ /dev/null @@ -1,128 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#save_var_scope_effect - To check for a variable saved scope and save it as a scope - -##################################################################### -# EFFECTS -##################################################################### - -#To check for a scope saved to a variable and save it as a scope -save_var_scope_effect = { - var:$VAR$ = { - save_scope_as = $VAR$ - } -} - -#To loan money from someone (Remember: you can only have one loan at a time!) -set_up_loan_effect = { - set_variable = { - name = loan_holder - value = $LENDER$ - } - set_variable = { - name = loan_amount_owed - value = $AMOUNT$ - } - $LENDER$ = { #To make the loan inheritable - set_variable = { - name = owes_me_money - value = root - } - hidden_effect = { - set_variable = { - name = loan_amount_lent - value = prev.var:loan_amount_owed - } - if = { - limit = { exists = var:loan_amount_lent } - pay_short_term_gold = { - target = root - gold = var:loan_amount_lent - } - remove_variable = loan_amount_lent - } - } - } -} - -disease_data_save_contraction_effect = { - if = { - limit = { - activate_disease_data_tracking_trigger = yes - has_variable = disease_data_activate_tracking - } - - change_variable = { - name = disease_data_character_$DISEASE$_amount - add = 1 - } - } -} - -#ARTIFACTS -add_character_artifact_claim_to_scope_effect = { - prev = { save_scope_as = artifact } - if = { - limit = { - NOT = { - $SCOPE$ = { has_personal_artifact_claim = scope:artifact } - } - } - $SCOPE$ = { add_personal_artifact_claim = prev } - } -} - -# For setting randomized event locales -get_random_location_effect = { - hidden_effect = { - random_list = { - 1 = { # Library - trigger = { - NOT = { government_has_flag = government_is_tribal } - } - set_variable = { - name = random_location - value = 0 - } - } - 1 = { # Garden - set_variable = { - name = random_location - value = 1 - } - } - 1 = { # Corridor - set_variable = { - name = random_location - value = 2 - } - } - 1 = { # Council Chamber - trigger = { - NOT = { government_has_flag = government_is_tribal } - } - set_variable = { - name = random_location - value = 3 - } - } - 1 = { # Throne Room - set_variable = { - name = random_location - value = 4 - } - } - 1 = { # War Camp - trigger = { is_in_army = yes } - set_variable = { - name = random_location - value = 5 - } - } - } - } -} diff --git a/common/scripted_effects/00_secret_effects.txt b/common/scripted_effects/00_secret_effects.txt index 10aa5be547..3678388f96 100644 --- a/common/scripted_effects/00_secret_effects.txt +++ b/common/scripted_effects/00_secret_effects.txt @@ -694,7 +694,7 @@ secret_exposed_notification_effect = { } #If it's a bastard secret, tell people who cares about child/real_father as well - if = { + else_if = { limit = { scope:secret = { OR = { @@ -707,7 +707,7 @@ secret_exposed_notification_effect = { } #If it's a murder/murder attempt secret, also inform those who care about victim - if = { + else_if = { limit = { scope:secret = { OR = { @@ -720,6 +720,14 @@ secret_exposed_notification_effect = { scope:victim = { save_list_targets_for_secret_exposure_events_effect = { SECRET = scope:secret CHARACTER = scope:victim } } } + #If it's a secret faith, save the faith + else_if = { + limit = { + scope:secret = { secret_type = secret_crypto_religionist } + } + scope:owner.secret_faith = { save_scope_as = crypto_faith } + } + #Send the notification event every_in_list = { list = send_exposed_secret_event_list @@ -850,23 +858,23 @@ secret_exposed_notification_effect = { desc = { first_valid = { triggered_desc = { - trigger = { scope:secret = { secret_type = secret_incest } } + trigger = { scope:secret = { secret_type = secret_incest } } desc = secret_exposed_notification_effect_message_incest } triggered_desc = { - trigger = { scope:secret = { secret_type = secret_witch } } + trigger = { scope:secret = { secret_type = secret_witch } } desc = secret_exposed_notification_effect_message_witch } triggered_desc = { - trigger = { scope:secret = { secret_type = secret_cannibal } } + trigger = { scope:secret = { secret_type = secret_cannibal } } desc = secret_exposed_notification_effect_message_cannibal } triggered_desc = { - trigger = { scope:secret = { secret_type = secret_non_believer } } + trigger = { scope:secret = { secret_type = secret_non_believer } } desc = secret_exposed_notification_effect_message_non_believer } triggered_desc = { - trigger = { scope:secret = { secret_type = secret_homosexual } } + trigger = { scope:secret = { secret_type = secret_homosexual } } desc = secret_exposed_notification_effect_message_homosexual } triggered_desc = { @@ -920,6 +928,12 @@ secret_exposed_notification_effect = { } desc = secret_exposed_notification_effect_message_known_murder } + triggered_desc = { + trigger = { + scope:secret = { secret_type = secret_crypto_religionist } + } + desc = secret_exposed_notification_effect_message_faith + } } } @@ -975,23 +989,23 @@ secret_exposed_notification_effect = { title = secret_exposed_notification_effect_message if = { - limit = { scope:secret = { secret_type = secret_incest } } + limit = { scope:secret = { secret_type = secret_incest } } custom_tooltip = secret_exposed_notification_effect_message_incest.i_exposed } else_if = { - limit = { scope:secret = { secret_type = secret_witch } } + limit = { scope:secret = { secret_type = secret_witch } } custom_tooltip = secret_exposed_notification_effect_message_witch.i_exposed } else_if = { - limit = { scope:secret = { secret_type = secret_cannibal } } + limit = { scope:secret = { secret_type = secret_cannibal } } custom_tooltip = secret_exposed_notification_effect_message_cannibal.i_exposed } else_if = { - limit = { scope:secret = { secret_type = secret_non_believer } } + limit = { scope:secret = { secret_type = secret_non_believer } } custom_tooltip = secret_exposed_notification_effect_message_non_believer.i_exposed } else_if = { - limit = { scope:secret = { secret_type = secret_homosexual } } + limit = { scope:secret = { secret_type = secret_homosexual } } custom_tooltip = secret_exposed_notification_effect_message_homosexual.i_exposed } else_if = { @@ -1016,7 +1030,7 @@ secret_exposed_notification_effect = { limit = { scope:secret = { secret_type = secret_deviant } } custom_tooltip = secret_exposed_notification_effect_message_deviant.i_exposed } - else_if = { #Illegitimate child, singular + else_if = { limit = { scope:secret = { OR = { @@ -1027,14 +1041,18 @@ secret_exposed_notification_effect = { } custom_tooltip = secret_exposed_notification_effect_message_illegitimate_child.i_exposed } - else_if = { #Illegitimate child, singular + else_if = { limit = { scope:secret = { secret_type = secret_murder_attempt } } custom_tooltip = secret_exposed_notification_effect_message_murder_attempt.i_exposed } - else_if = { #Illegitimate child, singular + else_if = { limit = { scope:secret = { secret_type = secret_murder } } custom_tooltip = secret_exposed_notification_effect_message_murder.i_exposed } + else_if = { + limit = { scope:secret = { secret_type = secret_crypto_religionist } } + custom_tooltip = secret_exposed_notification_effect_message_faith.i_exposed + } if = { limit = { has_hook_from_secret = scope:secret } @@ -1894,7 +1912,7 @@ give_random_likely_secret_effect = { } } - set_random_lover_reason = { TARGET = scope:lover } + set_random_lover_reason = { TARGET = scope:lover } } 100 = { #INCESTOUS LOVER trigger = { diff --git a/common/scripted_effects/00_sibling_effects.txt b/common/scripted_effects/00_sibling_effects.txt deleted file mode 100644 index 4ee7d7a6d2..0000000000 --- a/common/scripted_effects/00_sibling_effects.txt +++ /dev/null @@ -1,112 +0,0 @@ - -###EFFECT LIST - -#save_friendly_unlanded_sibling_as_et_effect - -#Effects for increasing and decreasing sibling variable trackers: -#increase_helped_landed_sibling_value_effect -#decrease_helped_landed_sibling_value_effect -#increase_sibling_causing_trouble_value_effect -#decrease_sibling_causing_trouble_value_effect - - -save_friendly_unlanded_sibling_as_et_effect = { - random_sibling = { - limit = { - is_landed = no - is_adult = yes - opinion = { - target = root - value > 30 - } - } - save_scope_as = sibling - } -} - - - - -increase_helped_landed_sibling_value_effect = { - custom_tooltip = accepted_sibling_help_tt - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = helped_landed_sibling - } - change_variable = { - name = helped_landed_sibling - add = 1 - } - } - else = { - set_variable = { - name = helped_landed_sibling - value = 1 - } - } - } -} - - -decrease_helped_landed_sibling_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = helped_landed_sibling - var:helped_landed_sibling > 1 - } - change_variable = { - name = helped_landed_sibling - add = -1 - } - } - else = { - remove_variable = helped_landed_sibling - } - } -} - - -increase_sibling_causing_trouble_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = sibling_causing_trouble - } - change_variable = { - name = sibling_causing_trouble - add = 1 - } - } - else = { - set_variable = { - name = sibling_causing_trouble - value = 1 - } - } - } -} - - -decrease_sibling_causing_trouble_value_effect = { - hidden_effect = { - if = { - limit = { - root = { is_ai = no } - has_variable = sibling_causing_trouble - var:sibling_causing_trouble > 1 - } - change_variable = { - name = sibling_causing_trouble - add = -1 - } - } - else = { - remove_variable = sibling_causing_trouble - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_single_combat_effects.txt b/common/scripted_effects/00_single_combat_effects.txt index db83e53247..44704e4b12 100644 --- a/common/scripted_effects/00_single_combat_effects.txt +++ b/common/scripted_effects/00_single_combat_effects.txt @@ -401,6 +401,7 @@ single_combat_clean_temp_weapon_effect = { $ATTACKER$ = { if = { #check for variables set up in set_temporary_signature_weapon limit = { + is_alive = yes OR = { has_variable = og_signature_weapon has_variable = temporary_signature_weapon @@ -426,6 +427,7 @@ single_combat_clean_temp_weapon_effect = { $DEFENDER$ = { if = { #check for variables set up in set_temporary_signature_weapon limit = { + is_alive = yes OR = { has_variable = og_signature_weapon has_variable = temporary_signature_weapon diff --git a/common/scripted_effects/00_skill_effects.txt b/common/scripted_effects/00_skill_effects.txt deleted file mode 100644 index 23e06f381e..0000000000 --- a/common/scripted_effects/00_skill_effects.txt +++ /dev/null @@ -1,12 +0,0 @@ -#add_random_skill_point_effect - -add_random_skill_point_effect = { - random_list = { - 1 = { add_diplomacy_skill = 1 } - 1 = { add_intrigue_skill = 1 } - 1 = { add_learning_skill = 1 } - 1 = { add_martial_skill = 1 } - 1 = { add_prowess_skill = 1 } - 1 = { add_stewardship_skill = 1 } - } -} diff --git a/common/scripted_effects/00_spouse_effects.txt b/common/scripted_effects/00_spouse_effects.txt deleted file mode 100644 index 3218673273..0000000000 --- a/common/scripted_effects/00_spouse_effects.txt +++ /dev/null @@ -1,179 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#councillor_spouse_lifestyle_rank_up_effect - -##################################################################### -# EFFECTS -##################################################################### - -councillor_spouse_lifestyle_rank_up_effect = { - random = { - chance = var:councillor_spouse_lifestyle_progress - modifier = { - add = $SKILL$ - } - modifier = { - factor = councillor_spouse_lifestyle_progress_factor - } - save_temporary_scope_value_as = { - name = ranked_up - value = yes - } - save_scope_as = councillor - random_spouse = { - limit = { - exists = this.cp:councillor_spouse - this.cp:councillor_spouse = scope:councillor - } - save_scope_as = council_owner - } - save_scope_value_as = { - name = skill_type - value = flag:$SKILL$ - } - if = { - limit = { - has_character_modifier = councillor_spouse_$SKILL$_2_modifier - } - if = { - limit = { - scope:skill_type = flag:diplomacy - } - remove_character_modifier = councillor_spouse_diplomacy_2_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_trait = diplomat - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 3, Diplomat was set" - } - else_if = { - limit = { - scope:skill_type = flag:martial - } - remove_character_modifier = councillor_spouse_martial_2_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_trait = strategist - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 3, Strategist was set" - } - else_if = { - limit = { - scope:skill_type = flag:stewardship - } - remove_character_modifier = councillor_spouse_stewardship_2_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_trait = architect - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 3, Architect was set" - } - else_if = { - limit = { - scope:skill_type = flag:intrigue - } - remove_character_modifier = councillor_spouse_intrigue_2_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_trait = schemer - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 3, Schemer was set" - } - else_if = { - limit = { - scope:skill_type = flag:learning - } - remove_character_modifier = councillor_spouse_learning_2_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_trait = scholar - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 3, Scholar was set" - } - else = { - debug_log = "A Spouse reached Lifestyle Rank 3, but no trait was set" - } - } - else_if = { - limit = { - has_character_modifier = councillor_spouse_$SKILL$_1_modifier - } - remove_character_modifier = councillor_spouse_$SKILL$_1_modifier - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_character_modifier = { - modifier = councillor_spouse_$SKILL$_2_modifier - } - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 2" - } - else = { - scope:council_owner = { - send_interface_message = { - type = event_spouse_task_good - title = councillor_spouse_background.0001.title - desc = councillor_spouse_background.0001.$SKILL$_notification - left_icon = scope:councillor - scope:councillor = { - add_character_modifier = { - modifier = councillor_spouse_$SKILL$_1_modifier - } - } - } - } - debug_log = "A Spouse reached Lifestyle Rank 1" - } - - #Reset the progress once the character has ranked up - set_variable = { - name = councillor_spouse_lifestyle_progress - value = 0 - } - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_steal_back_artifact_scheme_effects.txt b/common/scripted_effects/00_steal_back_artifact_scheme_effects.txt deleted file mode 100644 index 362358ea60..0000000000 --- a/common/scripted_effects/00_steal_back_artifact_scheme_effects.txt +++ /dev/null @@ -1,106 +0,0 @@ -#Scripted effects relating to Stealing Schemes - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - -#steal_back_artifact_success_effect -#steal_back_artifact_failure_effect - -###################################################################### -# EFFECTS -###################################################################### - -#Used in the immediate of the Scheme Owner's success event -steal_back_artifact_success_effect = { - scope:target = { - random_character_artifact = { - limit = { - scope:owner = { has_artifact_claim = prev } - } - save_scope_as = artifact_to_steal - } - add_opinion = { - target = scope:owner - modifier = stole_artifact_from_me - } - # Stolen House score and message effects - if = { - limit = { - scope:target = { - existing_feud_against_target_trigger = { TARGET = scope:owner } - } - } - scope:target.house = { - house_head = { - random_owned_story = { - limit = { story_type = story_cycle_house_feud } - # Decrease score - change_variable = { - name = house_feud_death_counter - add = house_feud_small_counter_value - } - } - } - # Inform House player members of score loss - hidden_effect = { - every_house_member = { - send_interface_message = { - type = house_feud_stole_artifact_us_message - left_icon = scope:target - right_icon = scope:owner - custom_tooltip = house_feud_tipped_scales_neg_small - } - } - } - } - } - # Stealing House score and message effects - if = { - limit = { - scope:owner = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - scope:owner.house = { - house_head = { - random_owned_story = { - limit = { story_type = story_cycle_house_feud } - # Increase score - change_variable = { - name = house_feud_kill_counter - add = house_feud_small_counter_value - } - } - } - # Inform House player members of score gain - hidden_effect = { - every_house_member = { - send_interface_message = { - type = house_feud_stole_artifact_them_message - left_icon = scope:owner - right_icon = scope:target - custom_tooltip = house_feud_tipped_scales_pos_small - } - } - } - } - } - } -} - -steal_back_artifact_failure_effect = { - #Add Watchful Modifier to the target - scope:target = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - - add_opinion = { - target = scope:owner - modifier = attempted_to_steal_artifact_from_me - } - } -} diff --git a/common/scripted_effects/00_stewardship_lifestyle_effects.txt b/common/scripted_effects/00_stewardship_lifestyle_effects.txt index 5f90ff914b..9c6f81dffd 100644 --- a/common/scripted_effects/00_stewardship_lifestyle_effects.txt +++ b/common/scripted_effects/00_stewardship_lifestyle_effects.txt @@ -143,10 +143,6 @@ stewardship_duty_special_1201_conclude_map_painting_effect = { #Scripted effects for the road building event chain: - - -#TODO_CD_P: The road increases/decreases should be replaced with working saved scope value changes, once we have those -#Increase road progress stewardship_domain_special_1301_increase_road_progress_effect = { set_variable = { name = governance_road_progress diff --git a/common/scripted_effects/00_stewardship_perk_effects.txt b/common/scripted_effects/00_stewardship_perk_effects.txt deleted file mode 100644 index 1702fd01b6..0000000000 --- a/common/scripted_effects/00_stewardship_perk_effects.txt +++ /dev/null @@ -1,124 +0,0 @@ - -# Effects used by Perks in the Stewardship Lifestyle - -# extort_subjects_effect: Fires an extortion event for a suitable subject - -extort_subjects_effect = { - random_list = { - 10 = { # A Powerful Vassal - trigger = { - any_powerful_vassal = { - extortion_powerful_vassal_trigger = yes - } - } - save_temporary_scope_value_as = { - name = found_suitable_target - value = yes - } - random_powerful_vassal = { - limit = { - extortion_powerful_vassal_trigger = yes - } - save_scope_as = extortion_target - } - trigger_event = subject_extortion.0001 - } - 5 = { # A County - trigger = { - is_ai = no # So that this doesn't wreak havoc in the player's realm - any_held_title = { - extortion_county_trigger = yes - } - } - save_temporary_scope_value_as = { - name = found_suitable_target - value = yes - } - random_held_title = { - limit = { - extortion_county_trigger = yes - } - save_scope_as = extortion_target - } - trigger_event = subject_extortion.0002 - } - 10 = { # Theocratic Vassals - trigger = { - NOR = { has_character_flag = recently_extorted_theocratic_vassals } - any_vassal = { - extortion_theocratic_vassal_trigger = yes - } - } - save_temporary_scope_value_as = { - name = found_suitable_target - value = yes - } - random_vassal = { - limit = { - extortion_theocratic_vassal_trigger = yes - } - save_scope_as = extortion_target - } - trigger_event = subject_extortion.0003 - } - 5 = { # Vassals at Large - trigger = { - NOT = { has_character_flag = recently_extorted_vassals_at_large } - any_vassal = { - extortion_vassal_at_large_trigger = yes - } - } - save_temporary_scope_value_as = { - name = found_suitable_target - value = yes - } - random_vassal = { - limit = { - is_powerful_vassal = no - extortion_vassal_at_large_trigger = yes - } - alternative_limit = { - extortion_vassal_at_large_trigger = yes - } - save_scope_as = extortion_target - } - trigger_event = subject_extortion.0004 - } - 5 = { # Courtiers - trigger = { - NOT = { has_character_flag = recently_extorted_courtiers } - any_courtier = { - extortion_courtier_representative_trigger = yes - } - } - save_temporary_scope_value_as = { - name = found_suitable_target - value = yes - } - random_courtier = { - limit = { - extortion_courtier_representative_trigger = yes - } - save_scope_as = extortion_target - } - trigger_event = subject_extortion.0005 - } - } - - # Fallback in case no-one could be found - if = { - limit = { - NOT = { exists = scope:found_suitable_target } - } - trigger_event = subject_extortion.9998 - } -} - - -extortion_tracking_effect = { - set_variable = { - name = was_recently_extorted - value = yes - days = 1825 - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_story_cycle_same_gender_pen_pal_effects.txt b/common/scripted_effects/00_story_cycle_same_gender_pen_pal_effects.txt deleted file mode 100644 index ddb7a7db64..0000000000 --- a/common/scripted_effects/00_story_cycle_same_gender_pen_pal_effects.txt +++ /dev/null @@ -1,127 +0,0 @@ - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! - - -##################################################################### -# EFFECTS -##################################################################### - -#Bring up opinion to at least 20 (They can't start out with less than -30) -test_m_1001_opinion_setting_effect = { - if = { #-30 to -16 - limit = { - opinion = { - target = $CHARACTER$ - value < -15 - } - } - add_opinion = { - target = $CHARACTER$ - modifier = respect_opinion - opinion = 50 - } - } - else_if = { # -15 to -1 - limit = { - opinion = { - target = $CHARACTER$ - value < -0 - } - } - add_opinion = { - target = $CHARACTER$ - modifier = respect_opinion - opinion = 35 - } - } - else_if = { #0 to 19 - limit = { - opinion = { - target = $CHARACTER$ - value < 20 - } - } - add_opinion = { - target = $CHARACTER$ - modifier = respect_opinion - opinion = 20 - } - } -} - -test_m_1100_options_effect = { - random_list = { #TODO also add the correct triggers for these - 100 = { - trigger = { NOT = { has_character_flag = test_m_1100_pregnancy_option } } - add_character_flag = test_m_1100_pregnancy_option - } - 1 = { - trigger = { NOT = { has_character_flag = test_m_1100_seduction_option } } - add_character_flag = test_m_1100_seduction_option - } - 1 = { - trigger = { NOT = { has_character_flag = test_m_1100_stress_option } } - add_character_flag = test_m_1100_stress_option - } - 1 = { - trigger = { NOT = { has_character_flag = test_m_1100_unhappy_marriage_option } } - add_character_flag = test_m_1100_unhappy_marriage_option - random_spouse = { - save_scope_as = spouse - } - } - 1 = { - trigger = { NOT = { has_character_flag = test_m_1100_regular_marriage_option } } - add_character_flag = test_m_1100_regular_marriage_option - random_spouse = { - save_scope_as = spouse - } - } - 1 = { - trigger = { - NOT = { has_character_flag = test_m_1100_raising_children_option } - any_child = { is_alive = yes } - } - add_character_flag = test_m_1100_raising_children_option - } - 1 = { - trigger = { - NOT = { has_character_flag = test_m_1100_secret_lover_option } - any_secret = { - secret_type = secret_lover - secret_target = { is_alive = yes } - } - } - add_character_flag = test_m_1100_secret_lover_option - random_secret = { - limit = { - secret_type = secret_lover - secret_target = { is_alive = yes } - } - secret_target = { save_scope_as = secret_lover } - } - } - } -} - -test_m_1100_clear_flags_effect = { - remove_character_flag = test_m_1100_pregnancy_option - remove_character_flag = test_m_1100_seduction_option - remove_character_flag = test_m_1100_stress_option - remove_character_flag = test_m_1100_unhappy_marriage_option - remove_character_flag = test_m_1100_regular_marriage_option - remove_character_flag = test_m_1100_raising_children_option - remove_character_flag = test_m_1100_secret_lover_option -} - -#Things to handle through other events: -# someone you fancy -# birthday gift -# happy new baby -# abortion -# rich friend helps poor friend -# best skill -# recent death support (both?) \ No newline at end of file diff --git a/common/scripted_effects/00_travel_effects.txt b/common/scripted_effects/00_travel_effects.txt deleted file mode 100644 index 3d37b94f48..0000000000 --- a/common/scripted_effects/00_travel_effects.txt +++ /dev/null @@ -1,31 +0,0 @@ -mp_pause_travel_plan = { - hidden_effect = { - current_travel_plan ?= { - pause_travel_plan_mp = yes - } - } -} - -mp_resume_travel_plan = { - hidden_effect = { - if = { - limit = { has_multiple_players = yes } - current_travel_plan ?= { - resume_travel_plan = yes - } - } - } -} - -mp_delay_travel_plan = { - hidden_effect = { - if = { - limit = { has_multiple_players = yes } - current_travel_plan ?= { - delay_travel_plan = { - days = $DAYS$ - } - } - } - } -} diff --git a/common/scripted_effects/00_war_effects.txt b/common/scripted_effects/00_war_effects.txt index fae291ff55..7b2172e942 100644 --- a/common/scripted_effects/00_war_effects.txt +++ b/common/scripted_effects/00_war_effects.txt @@ -316,6 +316,15 @@ on_declared_war = { } } } + + # If we're a clan this interaction affects unity + add_clan_unity_interaction_effect = { + CHARACTER = scope:attacker + TARGET = scope:defender + VALUE = massive_unity_loss + DESC = clan_unity_declared_war.desc + REVERSE_NON_HOUSE_TARGET = no + } } break_alliance_due_to_attack_effect = { @@ -1137,6 +1146,27 @@ add_truce_attacker_victory_effect = { } } } + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:attacker.house + } + } + custom_tooltip = antagonistic_house_approves_war_victory + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:attacker.house + } + add_opinion = { + target = scope:attacker + modifier = antagonistic_house_approves_war_victory_opinion + } + } + } + } } scope:defender = { # Vassal Stance opinion effect if = { @@ -1158,6 +1188,27 @@ add_truce_attacker_victory_effect = { } } } + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:defender.house + } + } + custom_tooltip = antagonistic_house_disapproves_war_defeat_defender + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:defender.house + } + add_opinion = { + target = scope:defender + modifier = antagonistic_house_disapproves_war_defeat_opinion + } + } + } + } } hidden_effect = { scope:attacker = { @@ -1249,6 +1300,27 @@ add_truce_white_peace_effect = { } } } + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:attacker.house + } + } + custom_tooltip = antagonistic_house_disapproves_war_white_peace + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:attacker.house + } + add_opinion = { + target = scope:attacker + modifier = antagonistic_house_disapproves_war_white_peace_opinion + } + } + } + } if = { limit = { any_active_accolade = { @@ -1278,6 +1350,27 @@ add_truce_white_peace_effect = { } } } + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:defender.house + } + } + custom_tooltip = antagonistic_house_disapproves_war_white_peace_defender + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:defender.house + } + add_opinion = { + target = scope:defender + modifier = antagonistic_house_disapproves_war_white_peace_opinion + } + } + } + } } hidden_effect = { scope:attacker = { @@ -1353,6 +1446,27 @@ add_truce_attacker_defeat_effect = { } } } + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:attacker.house + } + } + custom_tooltip = antagonistic_house_disapproves_war_defeat + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:attacker.house + } + add_opinion = { + target = scope:attacker + modifier = antagonistic_house_disapproves_war_defeat_opinion + } + } + } + } } hidden_effect = { scope:attacker = { @@ -1420,6 +1534,28 @@ add_truce_attacker_defeat_effect = { } } } + + if = { + limit = { + government_has_flag = government_is_clan + house ?= { has_house_unity_stage = antagonistic } + any_vassal = { + house ?= scope:defender.house + } + } + custom_tooltip = antagonistic_house_approves_war_victory_defensive + hidden_effect = { + every_vassal = { + limit = { + house ?= scope:defender.house + } + add_opinion = { + target = scope:defender + modifier = antagonistic_house_approves_war_victory_defensive_opinion + } + } + } + } } # Tooltips for hostage exchange, handled here as it's shared between casus belli bp2_hostage_war_end_tooltip_effect = yes diff --git a/common/scripted_effects/00_while_loop_effects.txt b/common/scripted_effects/00_while_loop_effects.txt deleted file mode 100644 index 430448cf68..0000000000 --- a/common/scripted_effects/00_while_loop_effects.txt +++ /dev/null @@ -1,89 +0,0 @@ -#WHILE LOOP EFFECTS - -#3 effects for managing while loops with counter: -#set_while_counter_variable_effect -#increase_while_counter_variable_effect -#remove_while_counter_variable_effect - -#save_target_list_as_separate_scopes_effect - saves up to 6 members of a target_list in alphabetical scopes (can be expanded if needed) - - -#3 effects for managing while loops with counter -set_while_counter_variable_effect = { - set_variable = { - name = while_counter - value = 0 - } -} - -increase_while_counter_variable_effect = { - change_variable = { - name = while_counter - add = 1 - } - -} - -remove_while_counter_variable_effect = { - remove_variable = while_counter -} - -#saves up to 6 members of a target_list in alphabetical scopes (can be expanded if needed) - -#Needs the argument TARGET_LIST with the target_list name -save_target_list_as_separate_scopes_effect = { - random_in_list = { - list = $TARGET_LIST$ - save_scope_as = target_list_member_a - } - random_in_list = { - list = $TARGET_LIST$ - limit = { NOT = { scope:target_list_member_a = this } } - save_scope_as = target_list_member_b - } - random_in_list = { - list = $TARGET_LIST$ - limit = { - NOR = { - scope:target_list_member_a = this - scope:target_list_member_b = this - } - } - save_scope_as = target_list_member_c - } - random_in_list = { - list = $TARGET_LIST$ - limit = { - NOR = { - scope:target_list_member_a = this - scope:target_list_member_b = this - scope:target_list_member_c = this - } - } - save_scope_as = target_list_member_d - } - random_in_list = { - list = $TARGET_LIST$ - limit = { - NOR = { - scope:target_list_member_a = this - scope:target_list_member_b = this - scope:target_list_member_c = this - scope:target_list_member_d = this - } - } - save_scope_as = target_list_member_e - } - random_in_list = { - list = $TARGET_LIST$ - limit = { - NOR = { - scope:target_list_member_a = this - scope:target_list_member_b = this - scope:target_list_member_c = this - scope:target_list_member_d = this - } - } - save_scope_as = target_list_member_f - } -} \ No newline at end of file diff --git a/common/scripted_effects/00_witch_effects.txt b/common/scripted_effects/00_witch_effects.txt deleted file mode 100644 index 064e96bbd8..0000000000 --- a/common/scripted_effects/00_witch_effects.txt +++ /dev/null @@ -1,211 +0,0 @@ -###CHILD CONVERSION EFFECTS### - -child_witch_conversion_success_effect = { - scope:child = { - give_witch_secret_or_trait_effect = yes - house = { - house_head = { - add_to_list = witch_message - } - } - every_parent = { - limit = { - is_ruler = yes - is_witch_trigger = yes - } - add_to_list = witch_message - } - random_relation = { - type = guardian - add_to_list = witch_message - save_scope_as = guardian - } - } - every_in_list = { - list = witch_message - limit = { - NOT = { this = scope:child } - } - save_scope_as = witch_knower - send_interface_message = { - type = event_generic_good - title = witch.1001.message - left_icon = scope:child - scope:child = { - if = { - limit = { has_trait = witch } - show_as_tooltip = { add_trait = witch } - } - else_if = { - limit = { exists = scope:witch_secret } - scope:witch_secret = { reveal_to = scope:witch_knower } - } - add_opinion = { - target = PREV - modifier = impressed_opinion - opinion = 20 - } - } - random_secret = { - limit = { - NOT = { is_known_by = scope:child } - secret_type = secret_witch - } - reveal_to = scope:child - } - } - } -} - -child_witch_conversion_failure_effect = { - scope:guardian = { - send_interface_toast = { - title = child_witch_conversion_failure_effect.desc - left_icon = scope:child - } - scope:child = { - add_opinion = { - target = scope:guardian - modifier = suspicion_opinion - opinion = -15 - } - } - scope:guardian = { - if = { - limit = { this = root } - hidden_effect = { - add_opinion = { - target = scope:child - modifier = disappointed_opinion - opinion = -15 - } - } - } - else = { - add_opinion = { - target = scope:child - modifier = disappointed_opinion - opinion = -15 - } - } - } - } -} - -child_witch_conversion_critical_failure_effect = { - scope:guardian = { - send_interface_toast = { - title = child_witch_conversion_critical_failure_effect.desc - left_icon = scope:child - - scope:child = { - add_opinion = { - target = scope:guardian - modifier = hate_opinion - opinion = -30 - } - } - } - scope:child = { - scope:guardian = { - random_secret = { - limit = { - secret_type = secret_witch - } - save_scope_as = guardian_witch_secret - if = { - limit = { NOT = { is_known_by = scope:child } } - reveal_to = scope:child - } - if = { - limit = { - exists = scope:child.liege - NOR = { - is_known_by = scope:child.liege - scope:child = { is_ruler = yes } - } - } - scope:child.liege = { - send_interface_message = { - title = child_witch_conversion_critical_failure_effect.liege.desc - left_icon = scope:guardian - right_icon = scope:child - scope:guardian_witch_secret = { reveal_to = scope:child.liege } - } - } - } - } - } - } - scope:guardian = { - if = { - limit = { this = root } - hidden_effect = { - add_opinion = { - target = scope:child - modifier = hate_opinion - opinion = -30 - } - } - } - else = { - add_opinion = { - target = scope:child - modifier = hate_opinion - opinion = -30 - } - } - } - } -} - -#Creates a witch and saves it as created_witch -#WHO is character who will interact with the witch and TEMPLATE is the character whose culture should be used -create_witch_effect = { - #Gender - random_list = { - 50 = { #Female - modifier = { - $WHO$ = { is_attracted_to_women = yes } - add = 30 - } - dummy_female = { save_temporary_scope_as = witch_gender } - } - 50 = { #Male - modifier = { - $WHO$ = { is_attracted_to_men = yes } - add = 30 - } - dummy_male = { save_temporary_scope_as = witch_gender } - } - } - - #Create them - create_character = { - location = $WHO$.capital_province - culture = $WHO$.culture - faith = $WHO$.faith - gender = scope:witch_gender - template = witchy_template - random_traits = no - - after_creation = { - give_witch_secret_or_trait_effect = yes - - #Sometimes adjust sexuality to create compatibility with WHO - if = { - limit = { - $WHO$ = { is_attracted_to_gender_of = prev } - NOT = { is_attracted_to_gender_of = $WHO$ } - } - random = { - chance = 65 - set_sexuality = bisexual - } - } - } - - save_scope_as = created_witch - } -} - diff --git a/common/scripted_effects/00_yearly_event_effects.txt b/common/scripted_effects/00_yearly_event_effects.txt deleted file mode 100644 index f36cde5199..0000000000 --- a/common/scripted_effects/00_yearly_event_effects.txt +++ /dev/null @@ -1,433 +0,0 @@ -#Effects used in the random Yearly Events - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! -# - -yearly_0001_set_random_weighted_skill_effect = { - set_variable = { - name = yearly_0001_skill - value = flag:diplomacy - } - random_list = { - 20 = { - #Must be better at the skill we pick than our liege. - trigger = { - $MENTEE$.diplomacy < $MENTOR$.diplomacy - } - - $MENTEE$ = { - set_variable = { - name = yearly_0001_skill - value = flag:diplomacy - } - } - } - 20 = { - #Must be better at the skill we pick than our liege. - trigger = { - $MENTEE$.martial < $MENTOR$.martial - } - - $MENTEE$ = { - set_variable = { - name = yearly_0001_skill - value = flag:martial - } - } - } - 20 = { - #Must be better at the skill we pick than our liege. - trigger = { - $MENTEE$.stewardship < $MENTOR$.stewardship - } - - $MENTEE$ = { - set_variable = { - name = yearly_0001_skill - value = flag:stewardship - } - } - } - 20 = { - #Must be better at the skill we pick than our liege. - trigger = { - $MENTEE$.intrigue < $MENTOR$.intrigue - } - - $MENTEE$ = { - set_variable = { - name = yearly_0001_skill - value = flag:intrigue - } - } - } - 20 = { - # - trigger = { - $MENTEE$.learning < $MENTOR$.learning - } - - $MENTEE$ = { - set_variable = { - name = yearly_0001_skill - value = flag:learning - } - } - } - } -} - -yearly_0001_improve_skill_effect = { - $MENTOR$ = { - save_scope_as = effect_mentor - } - $MENTEE$ = { - save_scope_as = effect_mentee - } - - #First we need to determine how much our mentor can teach us. - #This is based on the skill difference between the two of us. - if = { - limit = { - var:yearly_0001_skill = flag:diplomacy - } - - random_list = { - #Permanently increase Diplomacy by 2 points - 33 = { - desc = yearly.0001.a.success - - #Lower chance of getting this result as Diplomacy increases. - yearly_0001_success_modifier = { - SKILL = diplomacy - } - - #Apply the skill increase - send_interface_toast = { - title = yearly.0001.a.success - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_diplomacy_skill = 2 - } - - } - #Temporarily increase Diplomacy by 3 points - 66 = { - desc = yearly.0001.a.failure - - send_interface_toast = { - title = yearly.0001.a.failure - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_character_modifier = { - modifier = yearly_0001_improved_diplomacy - years = 5 - } - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:martial - } - - random_list = { - #Permanently increase Martial by 2 points - 33 = { - desc = yearly.0001.a.success - - #Lower chance of getting this result as Martial increases. - yearly_0001_success_modifier = { - SKILL = martial - } - - #Apply the skill increase - send_interface_toast = { - title = yearly.0001.a.success - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_martial_skill = 2 - } - } - #Temporarily increase Martial by 3 points - 66 = { - desc = yearly.0001.a.failure - - send_interface_toast = { - title = yearly.0001.a.failure - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_character_modifier = { - modifier = yearly_0001_improved_martial - years = 5 - } - } - } - } - - } - else_if = { - limit = { - var:yearly_0001_skill = flag:stewardship - } - - random_list = { - #Permanently increase Stewardship by 2 points - 33 = { - desc = yearly.0001.a.success - #Lower chance of getting this result as Stewardship increases. - yearly_0001_success_modifier = { - SKILL = stewardship - } - - #Apply the skill increase - send_interface_toast = { - title = yearly.0001.a.success - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_stewardship_skill = 2 - } - } - #Temporarily increase Stewardship by 3 points - 66 = { - desc = yearly.0001.a.failure - - send_interface_toast = { - title = yearly.0001.a.failure - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_character_modifier = { - modifier = yearly_0001_improved_stewardship - years = 5 - } - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:intrigue - } - - random_list = { - #Permanently increase Intrigue by 2 points - 33 = { - desc = yearly.0001.a.success - #Lower chance of getting this result as Intrigue increases. - yearly_0001_success_modifier = { - SKILL = intrigue - } - - #Apply the skill increase - send_interface_toast = { - title = yearly.0001.a.success - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_intrigue_skill = 2 - } - } - #Temporarily increase Intrigue by 3 points - 66 = { - desc = yearly.0001.a.failure - - send_interface_toast = { - title = yearly.0001.a.failure - left_icon = $MENTEE$ - right_icon = $MENTOR$ - - add_character_modifier = { - modifier = yearly_0001_improved_intrigue - years = 5 - } - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:learning - } - - random_list = { - #Permanently increase Learning by 2 points - 33 = { - desc = yearly.0001.a.success - #Lower chance of getting this result as Learning increases. - yearly_0001_success_modifier = { - SKILL = learning - } - - #Apply the skill increase - send_interface_toast = { - title = yearly.0001.a.success - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_learning_skill = 2 - } - } - #Temporarily increase Learning by 3 points - 66 = { - desc = yearly.0001.a.failure - - send_interface_toast = { - title = yearly.0001.a.failure - left_icon = $MENTEE$ - right_icon = $MENTOR$ - add_character_modifier = { - modifier = yearly_0001_improved_learning - years = 5 - } - } - } - } - } -} - -#Tried to come up with a better way to do this other than making a duplicate function for it, but failed. -#Localization makes it nigh impossible to make a scripted effect which can handle all possible use cases effectively. -yearly_0001_improve_vassal_skill_effect = { - - #First we need to determine how much our mentor can teach us. - #This is based on the skill difference between the two of us. - if = { - limit = { - var:yearly_0001_skill = flag:diplomacy - } - - random_list = { - #Permanently increase Diplomacy by 2 points - 33 = { - desc = yearly.0001.b.success - #Lower chance of getting this result as Diplomacy increases. - yearly_0001_success_modifier = { - SKILL = diplomacy - } - - add_diplomacy_skill = 2 - } - #Temporarily increase Diplomacy by 3 points - 66 = { - desc = yearly.0001.b.failure - - add_character_modifier = { - modifier = yearly_0001_improved_diplomacy - years = 5 - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:martial - } - - random_list = { - #Permanently increase Martial by 2 points - 33 = { - desc = yearly.0001.b.success - #Lower chance of getting this result as Martial increases. - yearly_0001_success_modifier = { - SKILL = martial - } - - add_martial_skill = 2 - } - #Temporarily increase Martial by 3 points - 66 = { - desc = yearly.0001.b.failure - - add_character_modifier = { - modifier = yearly_0001_improved_martial - years = 5 - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:stewardship - } - - random_list = { - #Permanently increase Stewardship by 2 points - 33 = { - desc = yearly.0001.b.success - #Lower chance of getting this result as Stewardship increases. - yearly_0001_success_modifier = { - SKILL = stewardship - } - - add_stewardship_skill = 2 - } - #Temporarily increase Stewardship by 3 points - 66 = { - desc = yearly.0001.b.failure - - add_character_modifier = { - modifier = yearly_0001_improved_stewardship - years = 5 - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:intrigue - } - - random_list = { - #Permanently increase Intrigue by 2 points - 33 = { - desc = yearly.0001.b.success - #Lower chance of getting this result as Intrigue increases. - yearly_0001_success_modifier = { - SKILL = intrigue - } - - add_intrigue_skill = 2 - } - #Temporarily increase Intrigue by 3 points - 66 = { - desc = yearly.0001.b.failure - - add_character_modifier = { - modifier = yearly_0001_improved_intrigue - years = 5 - } - } - } - } - else_if = { - limit = { - var:yearly_0001_skill = flag:learning - } - - random_list = { - #Permanently increase Learning by 2 points - 33 = { - desc = yearly.0001.b.success - #Lower chance of getting this result as Learning increases. - yearly_0001_success_modifier = { - SKILL = learning - } - - add_learning_skill = 2 - } - #Temporarily increase Learning by 3 points - 66 = { - desc = yearly.0001.b.failure - - add_character_modifier = { - modifier = yearly_0001_improved_learning - years = 5 - } - } - } - } -} - - diff --git a/common/scripted_effects/01_building_upgrade_effects.txt b/common/scripted_effects/01_building_upgrade_effects.txt deleted file mode 100644 index da11f80e7a..0000000000 --- a/common/scripted_effects/01_building_upgrade_effects.txt +++ /dev/null @@ -1,275 +0,0 @@ -################################################## -# Decisions -################################################## - -# Upgrades a single farm type building -# If such building does not exist, it is built. If building does not exist and there is no slot, it is built and a slot is added. -upgrade_farm_building = { - if = { - limit = { - building_farm_estates_requirement_terrain = yes - } - if = { - limit = { - NOT = { has_building = farm_estates_01 } - free_building_slots = 0 - } - add_province_modifier = extra_building_slot - add_building = farm_estates_01 - } - else_if = { - limit = { - NOT = { has_building = farm_estates_01 } - free_building_slots > 0 - } - add_building = farm_estates_01 - } - else_if = { - limit = { - has_building = farm_estates_01 - } - add_building = farm_estates_02 - } - else_if = { - limit = { - has_building = farm_estates_02 - } - add_building = farm_estates_03 - } - else_if = { - limit = { - has_building = farm_estates_03 - } - add_building = farm_estates_04 - } - else_if = { - limit = { - has_building = farm_estates_04 - } - add_building = farm_estates_05 - } - else_if = { - limit = { - has_building = farm_estates_05 - } - add_building = farm_estates_06 - } - else_if = { - limit = { - has_building = farm_estates_06 - } - add_building = farm_estates_07 - } - else_if = { - limit = { - has_building = farm_estates_07 - } - add_building = farm_estates_08 - } - } - else = { - if = { - limit = { - NOT = { has_building = pastures_01 } - free_building_slots = 0 - } - add_province_modifier = extra_building_slot - add_building = pastures_01 - } - else_if = { - limit = { - NOT = { has_building = pastures_01 } - free_building_slots >= 0 - } - add_building = pastures_01 - } - else_if = { - limit = { - has_building = pastures_01 - } - add_building = pastures_02 - } - else_if = { - limit = { - has_building = pastures_02 - } - add_building = pastures_03 - } - else_if = { - limit = { - has_building = pastures_03 - } - add_building = pastures_04 - } - else_if = { - limit = { - has_building = pastures_04 - } - add_building = pastures_05 - } - else_if = { - limit = { - has_building = pastures_05 - } - add_building = pastures_06 - } - else_if = { - limit = { - has_building = pastures_06 - } - add_building = pastures_07 - } - else_if = { - limit = { - has_building = pastures_07 - } - add_building = pastures_08 - } - } -} - -# Upgrades a single tradeport building -# If such a building does not exist and can be built, it is built. If no slot exists, a slot is added and it is built. -upgrade_tradeport = { - if = { - limit = { - NOR = { - has_building = common_tradeport_01 - has_building = common_tradeport_02 - has_building = common_tradeport_03 - has_building = common_tradeport_04 - has_building = common_tradeport_05 - has_building = common_tradeport_06 - has_building = common_tradeport_07 - has_building = common_tradeport_08 - } - free_building_slots = 0 - } - add_province_modifier = extra_building_slot - add_building = common_tradeport_01 - } - else_if = { - limit = { - NOR = { - has_building = common_tradeport_01 - has_building = common_tradeport_02 - has_building = common_tradeport_03 - has_building = common_tradeport_04 - has_building = common_tradeport_05 - has_building = common_tradeport_06 - has_building = common_tradeport_07 - has_building = common_tradeport_08 - } - free_building_slots > 1 - } - add_building = common_tradeport_01 - } - else_if = { - limit = { - has_building = common_tradeport_01 - } - add_building = common_tradeport_02 - } - else_if = { - limit = { - has_building = common_tradeport_02 - } - add_building = common_tradeport_03 - } - else_if = { - limit = { - has_building = common_tradeport_03 - } - add_building = common_tradeport_04 - } - else_if = { - limit = { - has_building = common_tradeport_04 - } - add_building = common_tradeport_05 - } - else_if = { - limit = { - has_building = common_tradeport_05 - } - add_building = common_tradeport_06 - } - else_if = { - limit = { - has_building = common_tradeport_06 - } - add_building = common_tradeport_07 - } - else_if = { - limit = { - has_building = common_tradeport_07 - } - add_building = common_tradeport_08 - } -} - -# Upgrades a single guidhall building -# If such a building does not exist and can be built, it is built. If no slot exists, a slot is added and it is built. -upgrade_guildhall = { - if = { - limit = { - NOT = { - has_building_or_higher = guild_halls_01 - } - free_building_slots = 0 - } - add_province_modifier = extra_building_slot - add_building = guild_halls_01 - } - else_if = { - limit = { - NOT = { - has_building_or_higher = guild_halls_01 - } - free_building_slots > 1 - } - add_building = guild_halls_01 - } - else_if = { - limit = { - has_building = guild_halls_01 - } - add_building = guild_halls_02 - } - else_if = { - limit = { - has_building = guild_halls_02 - } - add_building = guild_halls_03 - } - else_if = { - limit = { - has_building = guild_halls_03 - } - add_building = guild_halls_04 - } - else_if = { - limit = { - has_building = guild_halls_04 - } - add_building = guild_halls_05 - } - else_if = { - limit = { - has_building = guild_halls_05 - } - add_building = guild_halls_06 - } - else_if = { - limit = { - has_building = guild_halls_06 - } - add_building = guild_halls_07 - } - else_if = { - limit = { - has_building = guild_halls_07 - } - add_building = guild_halls_08 - } -} diff --git a/common/scripted_effects/01_dlc_fp3_scripted_effects.txt b/common/scripted_effects/01_dlc_fp3_scripted_effects.txt new file mode 100644 index 0000000000..80df4395cc --- /dev/null +++ b/common/scripted_effects/01_dlc_fp3_scripted_effects.txt @@ -0,0 +1,135 @@ +restore_badd_fortress_scripted_effect = { +} + +destroy_the_magi_scripted_effect = { + + if = { + limit = { + NOT = { has_trait = heresiarch } + } + add_trait = heresiarch + } + + religion = { save_scope_as = root_religion } + + faith = { + change_fervor = { + value = 50 + desc = fervor_gain_magi_destroyed + } + if = { + limit = { + AND = { + has_doctrine = doctrine_spiritual_head + has_doctrine = doctrine_theocracy_temporal + } + } + custom_tooltip = replace_the_high_priest_effect_tooltip + hidden_effect = { + remove_doctrine = doctrine_spiritual_head + add_doctrine = doctrine_no_head + } + } + } + + custom_tooltip = destroy_the_magi_opinion_tooltip + hidden_effect = { + every_ruler = { + limit = { + faith = { has_doctrine = doctrine_major_branch_behdin } + } + add_opinion = { + target = root + modifier = fp3_abolished_priesthood_opinion + } + } + } +} + +opinion_based_on_sky_burial_viewpoint_scripted_effect = { + if = { + limit = { + OR = { + faith = { has_doctrine_parameter = sky_burials_active } + has_trait = compassionate + has_trait = cynical + has_trait = trusting + has_trait = forgiving + AND = { + NOT = { faith = { has_doctrine_parameter = sky_burials_active } } + ai_compassion >= medium_positive_ai_value + ai_zeal <= medium_positive_ai_value + } + AND = { + NOT = { faith = { has_doctrine_parameter = sky_burials_active } } + faith = { has_doctrine = doctrine_pluralism_pluralistic } + ai_zeal <= medium_positive_ai_value + } + } + } + add_opinion = { + target = root + opinion = 20 + modifier = fp3_loyal_to_dead_spouse_opinion + } + } + else_if = { + limit = { ai_zeal > medium_positive_ai_value } + add_opinion = { + target = root + opinion = -30 + modifier = fp3_blasphemous_practices_opinion + } + } + else = { + add_opinion = { + target = root + opinion = -10 + modifier = fp3_strange_rituals_opinion + } + } +} + +opinion_based_on_sky_burial_viewpoint_for_relatives_scripted_effect = { + if = { + limit = { + OR = { + faith = { has_doctrine_parameter = sky_burials_active } + has_trait = compassionate + has_trait = cynical + has_trait = trusting + has_trait = forgiving + AND = { + NOT = { faith = { has_doctrine_parameter = sky_burials_active } } + ai_compassion >= medium_positive_ai_value + ai_zeal <= medium_positive_ai_value + } + AND = { + NOT = { faith = { has_doctrine_parameter = sky_burials_active } } + faith = { has_doctrine = doctrine_pluralism_pluralistic } + ai_zeal <= medium_positive_ai_value + } + } + } + add_opinion = { + target = root + opinion = 20 + modifier = fp3_benevolent_opinion + } + } + else_if = { + limit = { ai_zeal > medium_positive_ai_value } + add_opinion = { + target = root + opinion = -30 + modifier = fp3_blasphemous_practices_opinion + } + } + else = { + add_opinion = { + target = root + opinion = -10 + modifier = fp3_strange_rituals_opinion + } + } +} diff --git a/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt b/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt index 915187e60e..ca18f0867b 100644 --- a/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt +++ b/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt @@ -70,7 +70,7 @@ create_artifact_cabinet_effect = { scope:carpenter = { artifact_use_indian_building_visuals_trigger = yes } } scope:owner = { - create_artifact = { + create_artifact = { name = artifact_diwan_name creator = scope:carpenter description = placeholder # Will be regenerated in the post-creation effects @@ -90,12 +90,13 @@ create_artifact_cabinet_effect = { scope:carpenter = { OR = { artifact_use_mena_building_visuals_trigger = yes + artifact_use_iranian_building_visuals_trigger = yes artifact_use_steppe_building_visuals_trigger = yes } } } scope:owner = { - create_artifact = { + create_artifact = { name = artifact_table_name creator = scope:carpenter description = placeholder # Will be regenerated in the post-creation effects @@ -111,7 +112,7 @@ create_artifact_cabinet_effect = { } else = { scope:owner = { - create_artifact = { + create_artifact = { name = artifact_cabinet_name creator = scope:carpenter description = placeholder # Will be regenerated in the post-creation effects @@ -152,6 +153,7 @@ create_artifact_cabinet_effect = { scope:carpenter = { OR = { artifact_use_mena_building_visuals_trigger = yes + artifact_use_iranian_building_visuals_trigger = yes artifact_use_steppe_building_visuals_trigger = yes } } @@ -2098,6 +2100,7 @@ create_artifact_sculpture_effect = { scope:sculpter = { OR = { artifact_use_mena_building_visuals_trigger = yes + artifact_use_iranian_building_visuals_trigger = yes artifact_use_steppe_building_visuals_trigger = yes } } @@ -2156,6 +2159,7 @@ create_artifact_sculpture_effect = { scope:sculpter = { OR = { artifact_use_mena_building_visuals_trigger = yes + artifact_use_iranian_building_visuals_trigger = yes artifact_use_steppe_building_visuals_trigger = yes } } diff --git a/common/scripted_effects/01_ep1_interaction_scripted_effects.txt b/common/scripted_effects/01_ep1_interaction_scripted_effects.txt deleted file mode 100644 index f3108e883b..0000000000 --- a/common/scripted_effects/01_ep1_interaction_scripted_effects.txt +++ /dev/null @@ -1,19 +0,0 @@ -################################################## -# Interactions -################################################## - -indebt_guest_interaction_accepted_effect = { - # Scope:actor gets a useable hook... - add_hook = { - type = threat_hook - target = scope:recipient - years = 10 - } - # ... & loses a modest amount of opinion for their evilness. - reverse_add_opinion = { - target = scope:recipient - modifier = blackmailing_me_opinion - } - # Even if you succeed, you burn a little CGV. - change_current_court_grandeur = miniscule_court_grandeur_loss -} diff --git a/common/scripted_effects/02_dlc_ep1_decision_scripted_effects.txt b/common/scripted_effects/02_dlc_ep1_decision_scripted_effects.txt deleted file mode 100644 index d2362d4e89..0000000000 --- a/common/scripted_effects/02_dlc_ep1_decision_scripted_effects.txt +++ /dev/null @@ -1,37 +0,0 @@ -################################################## -# Court Grandeur -################################################## - -order_mass_eviction_decision_guests_only_effect = { - # Give us a neat tooltip. - show_as_tooltip = { - every_pool_guest = { - custom = custom.every_guest - move_to_pool = yes - } - } - # And actually do the moving. - hidden_effect = { - every_pool_guest = { select_and_move_to_pool_effect = yes } - } -} - -order_mass_eviction_decision_courtiers_&_guests_effect = { - # Give us a neat tooltip. - show_as_tooltip = { - every_courtier_or_guest = { - custom = custom.every_guest_and_unimportant_courtier - move_to_pool = yes - } - } - # And actually do the moving. - hidden_effect = { - every_pool_guest = { select_and_move_to_pool_effect = yes } - every_courtier = { - limit = { - order_mass_eviction_decision_evictable_courtier_trigger = yes - } - select_and_move_to_pool_effect = yes - } - } -} diff --git a/common/scripted_effects/02_ep2_artifact_effects.txt b/common/scripted_effects/02_ep2_artifact_effects.txt index 96346d711d..04e16ae5a6 100644 --- a/common/scripted_effects/02_ep2_artifact_effects.txt +++ b/common/scripted_effects/02_ep2_artifact_effects.txt @@ -6,7 +6,7 @@ name = lock_of_hair description = lock_of_hair.desc type = miscellaneous - visuals = medallion #TODO_CD_EP2 replace with proper icon if we receive it + visuals = medallion modifier = artifact_seduce_scheme_power_mult_1_modifier modifier = artifact_spouse_opinion_add_3_modifier save_scope_as = romantic_trinket @@ -21,7 +21,7 @@ name = house_ribbon description = house_ribbon.desc type = miscellaneous - visuals = pocket_fancy_case #TODO_CD_EP2 replace with proper icon if we receive it + visuals = pocket_fancy_case modifier = artifact_monthly_dynasty_prestige_2_modifier modifier = artifact_spouse_opinion_add_1_modifier save_scope_as = romantic_trinket @@ -66,7 +66,7 @@ name = wooden_phallus description = wooden_phallus.desc type = miscellaneous - visuals = small_box #TODO_CD_EP2 replace with proper icon if we receive it + visuals = small_box modifier = artifact_fertility_gain_2_modifier modifier = artifact_spouse_opinion_add_4_modifier save_scope_as = romantic_trinket diff --git a/common/scripted_effects/03_bp1_scripted_effects.txt b/common/scripted_effects/03_bp1_scripted_effects.txt index bf18a42b3d..bbe9a6281d 100644 --- a/common/scripted_effects/03_bp1_scripted_effects.txt +++ b/common/scripted_effects/03_bp1_scripted_effects.txt @@ -522,7 +522,7 @@ transfer_house_feud_story_cycle_to_effect = { # Fire immediately if at least 9 and no pre-existing rivalry exists else_if = { limit = { - NOT = { scope:old_house_head.killer.house = scope:house_feud_rival.house } #TODO_CD JP BP1; is this needed? + NOT = { scope:old_house_head.killer.house = scope:house_feud_rival.house } NOT = { has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:house_feud_rival } } @@ -943,19 +943,21 @@ house_feud_torture_event_effect = { house.house_head = { has_trait = forgiving } } scope:actor = { house_feud_save_head_and_attacker_effect = yes } - save_scope_as = house_feud_victim - scope:recipient.house.house_head = { - if = { - limit = { this = scope:recipient } - trigger_event = { - id = bp1_house_feud.0010 # Version for tortured House Heads - days = { 5 15 } + scope:recipient = { + save_scope_as = house_feud_victim + house.house_head = { + if = { + limit = { this = scope:house_feud_victim } + trigger_event = { + id = bp1_house_feud.0010 # Version for tortured House Heads + days = { 5 15 } + } } - } - else = { - trigger_event = { - id = bp1_house_feud.0011 # Version for tortured close family - days = { 5 15 } + else = { + trigger_event = { + id = bp1_house_feud.0011 # Version for tortured close family + days = { 5 15 } + } } } } diff --git a/common/scripted_effects/03_bp2_scripted_effects.txt b/common/scripted_effects/03_bp2_scripted_effects.txt index 8449661d26..e527173e77 100644 --- a/common/scripted_effects/03_bp2_scripted_effects.txt +++ b/common/scripted_effects/03_bp2_scripted_effects.txt @@ -660,6 +660,62 @@ adopt_cultural_fashion_effect = { custom_tooltip = bp2_yearly.6070.change_clothes } } + if = { + limit = { + root.culture = { + NOT = { has_clothing_gfx = iranian_clothing_gfx } + } + scope:advanced_culture = { + has_clothing_gfx = iranian_clothing_gfx + } + } + add_character_flag = iranian_style + if = { + limit = { + root.primary_heir ?= { + opinion = { + target = root + value >= 50 + } + } + } + root.primary_heir = { + add_character_flag = iranian_style + } + custom_tooltip = bp2_yearly.6070.change_clothes_heir + } + else = { + custom_tooltip = bp2_yearly.6070.change_clothes + } + } + if = { + limit = { + root.culture = { + NOT = { has_clothing_gfx = turkic_clothing_gfx } + } + scope:advanced_culture = { + has_clothing_gfx = turkic_clothing_gfx + } + } + add_character_flag = turkic_style + if = { + limit = { + root.primary_heir ?= { + opinion = { + target = root + value >= 50 + } + } + } + root.primary_heir = { + add_character_flag = turkic_style + } + custom_tooltip = bp2_yearly.6070.change_clothes_heir + } + else = { + custom_tooltip = bp2_yearly.6070.change_clothes + } + } } remove_cultural_fashion_effect = { @@ -675,6 +731,8 @@ remove_cultural_fashion_effect = { remove_character_flag ?= western_style remove_character_flag ?= dde_hre_style remove_character_flag ?= dde_abbasid_style + remove_character_flag ?= turkic_style + remove_character_flag ?= iranian_style } bp2_save_traditions_to_consider_effect = { diff --git a/common/scripted_effects/03_dlc_fp3_scripted_effects.txt b/common/scripted_effects/03_dlc_fp3_scripted_effects.txt new file mode 100644 index 0000000000..a509859007 --- /dev/null +++ b/common/scripted_effects/03_dlc_fp3_scripted_effects.txt @@ -0,0 +1,84 @@ +claim_the_imamate_scripted_effect = { + # Create a HoF title & assign it appropriately. + if = { + limit = { + NOT = { + faith.religious_head = root + } + } + hidden_effect = { + set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:founder } + faith = { set_religious_head_title = scope:new_title } + } + custom_tooltip = appoint_a_righteous_caliph_decision.tt.you_become_caliph + } + dynasty = { + add_dynasty_modifier = { + modifier = fp3_light_of_the_walayah_modifier + years = 100 + } + # Also gain a large amount of dynasty prestige. + add_dynasty_prestige = 5000 + } +} + +avenge_the_battle_of_nahrawan_scripted_effect = { +} + +promote_persian_scripture_scripted_effect = { +} + +read_name_in_friday_prayer_guts_become_supporter_effect = { +} + +read_name_in_friday_prayer_guts_become_detractor_effect = { +} + +read_name_in_friday_prayer_guts_apply_sundry_changes_effect = { + +} + +read_name_in_friday_prayer_guts_apply_house_unity_changes_effect = { + +} + +read_name_in_friday_prayer_scripted_effect = { + +} + +favour_skilled_outsiders_decision_apply_opinions_effect = { + # Courtly vassals. + every_vassal = { + custom = favour_skilled_outsiders_decision.tt.upset_elites.courtly_non_heritage + limit = { favour_skilled_outsiders_decision_grab_courtlies_trigger = yes } + add_opinion = { + target = root + modifier = upset_elites_opinion + opinion = -40 + } + } + # Landless councillors. + every_councillor = { + custom = favour_skilled_outsiders_decision.tt.upset_elites.landless_councillor_non_heritage + limit = { favour_skilled_outsiders_decision_grab_landless_councillors_trigger = yes } + add_opinion = { + target = root + modifier = upset_elites_opinion + opinion = -30 + } + } + # Remaining vassals. + every_vassal = { + custom = favour_skilled_outsiders_decision.tt.upset_elites.non_courtly_non_heritage + limit = { favour_skilled_outsiders_decision_non_courtlies_trigger = yes } + add_opinion = { + target = root + modifier = upset_elites_opinion + opinion = -20 + } + } +} + +fp3_story_cycle_seljuks_invasion_events_grant_seljuks_land_effect = { + +} diff --git a/common/scripted_effects/04_dlc_ep2_tour_effects.txt b/common/scripted_effects/04_dlc_ep2_tour_effects.txt deleted file mode 100644 index 182f819ee6..0000000000 --- a/common/scripted_effects/04_dlc_ep2_tour_effects.txt +++ /dev/null @@ -1,740 +0,0 @@ -#Effects used in hunt events - - -##################################################################### -# EFFECT LIST -##################################################################### -# !!! Remember to add all new effects with a short description here !!! -# - -#select_root_vegetable_effect - scripted loc, gives you the name of a regionally appropriate vegetable -#tour_generic_arrival_effect - Generic effects that happen when you arrive at a vassal's holding, stress impacts -#tour_distribute_control - Decides how much control to give to counties within a stop_host's domain -#tour_monthly_pulse_effect - Fires on the monthly pulse for all phases - -###################################################################### -# EFFECTS -###################################################################### - - -#Used to find a local animal to hunt -#Note: Don't add more here without also revisiting artifact creation for Skulls and hides. -select_root_vegetable_effect = { - hidden_effect = { - if = { - limit = { - NOT = { exists = var:root_vegetable } - } - random_list = { - 10 = { - # they're everywhere - set_variable = { - name = root_vegetable - value = flag:onion - } - } - 20 = { - trigger = { province_has_vegetable_carrot_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:carrot - } - } - 20 = { - trigger = { province_has_vegetable_parsnip_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:parsnip - } - } - 20 = { - trigger = { province_has_vegetable_turnip_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:turnip - } - } - 20 = { - trigger = { province_has_vegetable_yams_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:yam - } - } - 20 = { - trigger = { province_has_vegetable_kokoro_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:kokoro - } - } - 20 = { - trigger = { province_has_vegetable_ginger_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:ginger - } - } - 20 = { - trigger = { province_has_vegetable_taro_trigger = yes } - set_variable = { - name = root_vegetable - value = flag:taro - } - } - } - } - } -} - -traveler_progress_point_gain_effect = { - if = { - limit = { - is_alive = yes - NOT = { exists = var:travel_provinces_traversed } - } - set_variable = { - name = travel_provinces_traversed - value = $CHANGE$ - } - } - else = { - change_variable = { - name = travel_provinces_traversed - add = $CHANGE$ - } - } - save_scope_value_as = { - name = travel_base_increase - value = $CHANGE$ - } - # Tooltips - if = { - limit = { has_trait = lifestyle_traveler } - if = { - limit = { scope:travel_base_increase <= 1 } - custom_tooltip = travel_progress_towards_trait_1_tt - } - else_if = { - limit = { scope:travel_base_increase = 2 } - custom_tooltip = travel_progress_towards_trait_2_tt - } - else = { custom_tooltip = travel_progress_towards_trait_3_tt } - } - else = { custom_tooltip = travel_progress_towards_trait_0_tt } - #Random chance of additional point to increase unpredictability - hidden_effect = { - random = { - chance = 50 - change_variable = { - name = travel_provinces_traversed - add = $RANDOM_CHANGE$ - } - } - } -} - -traveler_lifestyle_rank_up_check_effect = { - if = { - limit = { - NOT = { has_trait = lifestyle_traveler } - } - hidden_effect = { - random_list = { - 15 = { - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_10_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_9_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_8_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_7_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_6_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_5_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_4_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_3_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_2_threshold - } - modifier = { - add = 5 - exists = var:travel_provinces_traversed - var:travel_provinces_traversed >= traveler_rank_up_1_threshold - } - trigger_event = { - id = travel_events.0050 - days = { 5 10 } - } - } - 85 = {} - } - } - } - else = { - send_interface_toast = { - title = travel_xp_gain_message - if = { - limit = { exists = var:travel_provinces_traversed } - if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_10_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 11 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_9_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 10 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_8_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 9 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_7_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 8 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_6_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 7 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_5_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 6 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_4_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 5 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_3_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 4 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_2_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 3 - } - } - else_if = { - limit = { var:travel_provinces_traversed >= traveler_rank_up_1_threshold } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 2 - } - } - else = { - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = 1 - } - } - } - } - } -} - -traveler_danger_xp_effect = { - if = { - limit = { has_trait = lifestyle_traveler } - add_trait_xp = { - trait = lifestyle_traveler - track = danger - value = { - integer_range = { - min = $MIN$ - max = $MAX$ - } - } - } - } -} - -traveler_travel_xp_effect = { - if = { - limit = { has_trait = lifestyle_traveler } - add_trait_xp = { - trait = lifestyle_traveler - track = travel - value = { - integer_range = { - min = $MIN$ - max = $MAX$ - } - } - } - } -} - -increase_tour_success_effect = { - if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_majesty - } - } - } - custom_tooltip = tour_becomes_more_majestic_tt - } - else_if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_taxation - } - } - } - custom_tooltip = tour_becomes_more_avaricious_tt - } - else_if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_intimidation - } - } - } - custom_tooltip = tour_becomes_more_intimidating_tt - } - scope:activity = { - change_variable = { - name = tour_success_var - add = { - value = $POINTS$ - multiply = 5 - } - } - } -} - -decrease_tour_success_effect = { - if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_majesty - } - } - } - custom_tooltip = tour_becomes_less_majestic_tt - } - else_if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_taxation - } - } - } - custom_tooltip = tour_becomes_less_avaricious_tt - } - else_if = { - limit = { - scope:activity = { - has_activity_option = { - category = special_type - option = tour_type_intimidation - } - } - } - custom_tooltip = tour_becomes_less_intimidating_tt - } - scope:activity = { - change_variable = { - name = tour_success_var - subtract = $POINTS$ - } - } -} - -tour_stop_host_effect = { - set_variable = { - name = stop_host - value = scope:host.location.county.holder - } - var:stop_host = { - # Remove character flag which prevents vassals to be visited from starting other activities - if = { - limit = { has_character_flag = being_visited_on_tour } - remove_character_flag = being_visited_on_tour - } - add_to_activity_without_travel = scope:activity - save_scope_as = stop_host_scope - scope:host = { - save_scope_as = visiting_liege - } - } - add_to_variable_list = { - name = tour_visited_vassals - target = var:stop_host - } -} - -tour_generic_arrival_effect = { - add_prestige = minor_prestige_gain - stress_impact = { - base = medium_stress_impact_loss - gregarious = minor_stress_impact_loss - arrogant = minor_stress_impact_loss - } -} - -show_tour_option_start_effect = { - if = { - limit = { - NAND = { - OR = { - involved_activity = { - has_activity_option = { - category = tour_luxuries - option = tour_luxuries_bad - } - } - involved_activity = { - has_activity_option = { - category = tour_luxuries - option = tour_luxuries_normal - } - } - } - involved_activity = { - has_activity_option = { - category = tour_entourage - option = tour_entourage_small - } - } - } - } - custom_tooltip = due_to_activity_options_tt - show_as_tooltip = { - add_prestige = { - value = 0 - if = { - limit = { - involved_activity = { - has_activity_option = { - category = tour_luxuries - option = tour_luxuries_good - } - } - } - add = 30 - } - else_if = { - limit = { - involved_activity = { - has_activity_option = { - category = tour_luxuries - option = tour_furniture_normal - } - } - } - add = medium_prestige_gain - } - else_if = { - limit = { - involved_activity = { - has_activity_option = { - category = tour_luxuries - option = tour_furniture_good - } - } - } - add = major_prestige_gain - } - if = { - limit = { - involved_activity = { - has_activity_option = { - category = tour_entourage - option = tour_entourage_normal - } - } - } - add = medium_prestige_gain - } - else_if = { - limit = { - involved_activity = { - has_activity_option = { - category = tour_entourage - option = tour_entourage_grand - } - } - } - add = major_prestige_gain - } - } - } - } -} - -tour_distribute_control = { - scope:activity = { - add_activity_log_entry = { - key = increased_control_log - tags = { good } - character = scope:visiting_liege - target = scope:stop_host_scope - show_in_conclusion = yes - if = { - limit = { - $CAPITAL$ > 0 - NOR = { # Do not apply if CAPITAL and HELD_COUNTIES are the same - $CAPITAL$ = $HELD_COUNTIES$ - $CAPITAL$ = $HELD_AND_VASSAL_COUNTIES$ - } - } - root.location.county = { change_county_control = $CAPITAL$ } - } - if = { # County titles held by your vassal and their vassals - limit = { - $HELD_AND_VASSAL_COUNTIES$ > 0 - } - if = { - limit = { - $CAPITAL$ = $HELD_AND_VASSAL_COUNTIES$ # Apply to capital if the values are the same - } - root.location.county.holder = { - every_sub_realm_county = { - custom = every_title_held_by_vassal_and_vassals - change_county_control = $HELD_AND_VASSAL_COUNTIES$ - } - } - } - else = { - root.location.county.holder = { - every_sub_realm_county = { - custom = every_title_held_by_vassal_and_vassals - limit = { - NOT = { - this = root.location.county - } - } - change_county_control = $HELD_AND_VASSAL_COUNTIES$ - } - } - } - } - else_if = { # Only apply if HELD_AND_VASSAL_COUNTIES is not applied, prevent double tooltips - limit = { - $HELD_COUNTIES$ > 0 - } - if = { - limit = { - $CAPITAL$ = $HELD_COUNTIES$ # Apply to capital if the values are the same - } - root.location.county.holder = { - every_held_title = { - custom = every_title_held_by_vassal - limit = { - tier = tier_county - } - change_county_control = $HELD_COUNTIES$ - } - } - } - else = { - root.location.county.holder = { - every_held_title = { - custom = every_title_held_by_vassal - limit = { - NOT = { - this = root.location.county - } - } - change_county_control = $HELD_COUNTIES$ - } - } - } - } - } - } -} - -tour_monthly_pulse_effect = { - scope:host = { - save_scope_as = visiting_liege - } - scope:activity.var:stop_host = { - save_scope_as = stop_host_scope - } - if = { - limit = { - scope:host = this - NOT = { - scope:activity = { exists = var:just_had_vassal_event } - } - } - set_variable = { - name = just_had_liege_event - value = yes - days = 3 - } - trigger_event = { - on_action = $ON_ACTION_POOL$_liege - } - } - else_if = { - limit = { - scope:activity.var:stop_host = this - NOT = { - scope:activity = { exists = var:just_had_liege_event } - } - } - set_variable = { - name = just_had_vassal_event - value = yes - days = 3 - } - trigger_event = { - on_action = $ON_ACTION_POOL$_vassal - } - } -} - -tour_progress_effect = { - # Progress the activity - if = { - limit = { - scope:activity = { exists = var:months_of_stop } - scope:activity = { var:months_of_stop >= 2 } - } - scope:host = { - save_scope_as = visiting_liege - } - scope:host.location.province_owner = { - save_scope_as = stop_host_scope - if = { - limit = { has_character_flag = being_visited_on_tour } - remove_character_flag = being_visited_on_tour - } - } - trigger_event = tour_general.0510 - } - if = { - limit = { - scope:activity = { NOT = { exists = var:months_of_stop } } - } - scope:activity = { - set_variable = { - name = months_of_stop - value = 1 - } - } - } - else = { - scope:activity = { - change_variable = { - name = months_of_stop - add = 1 - } - } - } -} - -play_arrival_music_effect = { - if = { - limit = { - involved_activity.activity_location.culture = { has_graphical_india_culture_group_trigger = yes } - } - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_set_india" - } - else_if = { - limit = { - involved_activity.activity_location.culture = { has_graphical_mena_culture_group_trigger = yes } - } - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_set_mena" - } - else = { - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_set_west" - } - if = { - limit = { - $WELCOME_LEVEL$ = welcome - } - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_arrival_welcome" - } - else_if = { - limit = { - $WELCOME_LEVEL$ = neutral - } - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_arrival_neutral" - } - else_if = { - limit = { - $WELCOME_LEVEL$ = suspicious - } - play_sound_effect = "event:/DLC/EP2/SFX/Events/Grand_Activities/Tours/ep2_event_grand_tour_arrival_suspicious" - } -} diff --git a/common/scripted_effects/04_dlc_ep2_wedding_effects.txt b/common/scripted_effects/04_dlc_ep2_wedding_effects.txt deleted file mode 100644 index b05d5c9558..0000000000 --- a/common/scripted_effects/04_dlc_ep2_wedding_effects.txt +++ /dev/null @@ -1,138 +0,0 @@ -# Create the grand wedding variables between the two characters, they must already have been betrothed by the code hook in the marry -# interaction or by manually setting a betrothal. For manual betrothal setting prefer using create_grand_wedding_betrothal. -# SPOUSE_1 = First spouse character -# SPOUSE_2 = Second spouse character -# HOST = Character promising to host the grand wedding -set_grand_wedding_betrothal_variables = { - $SPOUSE_1$ = { - set_variable = { name = promised_grand_wedding_by value = $HOST$ } - save_scope_as = spouse_1 - } - $SPOUSE_2$ = { - set_variable = { name = promised_grand_wedding_by value = $HOST$ } - save_scope_as = spouse_2 - } - $HOST$ = { - set_variable = { - name = promised_grand_wedding_marriage_countdown - value = $SPOUSE_1$ - years = grand_wedding_timeout - } - set_variable = { - name = promised_grand_wedding_to - value = $PROMISEE$ - } - # Notification that the countdown has expired (one day before, to avoid getting the variable deleted before we have used it) - trigger_event = { - id = ep2_wedding.0001 - days = grand_wedding_timeout_notification - } - } -} - -# Recreate the variables setup if the host dies and is replaced -wedding_update_hosting_variable_effect = { - if = { - limit = { - scope:spouse_1 = { has_variable = promised_grand_wedding_by } - } - scope:spouse_1 = { - remove_variable = promised_grand_wedding_by - set_variable = { name = promised_grand_wedding_by value = scope:new_host } - } - } - if = { - limit = { - scope:spouse_2 = { has_variable = promised_grand_wedding_by } - } - scope:spouse_2 = { - remove_variable = promised_grand_wedding_by - set_variable = { name = promised_grand_wedding_by value = scope:new_host } - } - } - #TODO_CD_EP2 Can you import these variables' remaining duration? Most likely it won't be needed, as the wedding is already ongoing, so they will be removed soon anyway - if = { - limit = { - scope:host = { has_variable = promised_grand_wedding_marriage_countdown } - } - scope:new_host = { - set_variable = { - name = promised_grand_wedding_marriage_countdown - value = scope:spouse_1 - years = grand_wedding_timeout - } - } - } -} - -# Crease a betrothal between SPOUSE_1 and SPOUSE_2 with HOST promising to host a grand wedding -# SPOUSE_1 = First spouse character -# SPOUSE_2 = Second spouse character -# HOST = Character promising to host the grand wedding -create_grand_wedding_betrothal = { - $SPOUSE_1$ = { - create_betrothal = $SPOUSE_2$ - } - - set_grand_wedding_betrothal_variables = { - SPOUSE_1 = $SPOUSE_1$ - SPOUSE_2 = $SPOUSE_2$ - HOST = $HOST$ - PROMISEE = $PROMISEE$ - } -} - -# Wedding Options on_start -wedding_normal_option_effect = { - scope:host = { - if = { - limit = { - any_vassal = { - OR = { - has_vassal_stance = parochial - has_vassal_stance = zealot - } - } - } - every_vassal = { - limit = { - OR = { - has_vassal_stance = parochial - has_vassal_stance = zealot - } - } - add_opinion = { - target = scope:host - modifier = wedding_balanced_option_opinion - } - } - } - } -} - -wedding_good_option_effect = { - scope:host = { - if = { - limit = { - any_vassal = { - OR = { - has_vassal_stance = courtly - has_vassal_stance = glory_hound - } - } - } - every_vassal = { - limit = { - OR = { - has_vassal_stance = courtly - has_vassal_stance = glory_hound - } - } - add_opinion = { - target = scope:host - modifier = wedding_good_option_opinion - } - } - } - } -} diff --git a/common/scripted_effects/05_bp2_hostage_effects.txt b/common/scripted_effects/05_bp2_hostage_effects.txt index b010e5ed7a..1667d318a1 100644 --- a/common/scripted_effects/05_bp2_hostage_effects.txt +++ b/common/scripted_effects/05_bp2_hostage_effects.txt @@ -648,11 +648,15 @@ hostage_travel_invalidation_effect = { title = hostage_invalidated_during_travel_title left_icon = scope:hostage right_icon = scope:hostage.var:hostage_travelling_to_warden - show_as_tooltip = { - scope:hostage = { return_hostage = yes } - } scope:hostage = { - current_travel_plan = { cancel_travel_plan = yes } + show_as_tooltip = { return_hostage = yes } + current_travel_plan = { + if = { + limit = { can_cancel = yes } + cancel_travel_plan = yes + } + } + set_location_to_default = yes } } } @@ -675,10 +679,14 @@ ward_travel_invalidation_effect = { is_imprisoned = yes # Ward becomes landed is_landed = yes + # Ward has guardian already + num_of_relation_guardian > 0 var:ward_travelling_to_guardian = { is_alive = no # Guardian is jailed is_imprisoned = yes + # Guardian has wards already + num_of_relation_ward >= 2 } NOT = { exists = var:ward_travelling_to_guardian } NOT = { exists = var:character_making_education_request } @@ -705,10 +713,20 @@ ward_travel_invalidation_effect = { title = ward_invalidated_during_travel_title left_icon = scope:ward right_icon = scope:ward_liege - show_as_tooltip = { - scope:ward = { remove_relation_guardian = scope:guardian } + scope:ward = { + show_as_tooltip = { remove_relation_guardian = scope:guardian } + current_travel_plan = { + if = { + limit = { can_cancel = yes } + cancel_travel_plan = yes + } + } + set_location_to_default = yes } - scope:ward.current_travel_plan = { cancel_travel_plan = yes } + } + if = { + limit = { is_alive = yes } + remove_variable = guardian_waiting_for_ward } } if = { @@ -731,10 +749,14 @@ guardian_travel_invalidation_effect = { is_imprisoned = yes # Guardian becomes landed is_landed = yes + # Guardian has wards already + num_of_relation_ward >= 2 var:guardian_travelling_to_ward = { is_alive = no - # Guardian is jailed + # Ward is jailed is_imprisoned = yes + # Ward has a guardian already + num_of_relation_guardian > 0 } NOT = { exists = var:guardian_travelling_to_ward } } @@ -759,19 +781,21 @@ guardian_travel_invalidation_effect = { send_interface_toast = { title = guardian_invalidated_during_travel_title left_icon = scope:guardian - show_as_tooltip = { - scope:guardian = { remove_relation_ward = scope:ward } - } - scope:guardian.current_travel_plan = { - if = { - limit = { can_cancel = yes } - cancel_travel_plan = yes + scope:guardian = { + show_as_tooltip = { remove_relation_ward = scope:ward } + current_travel_plan = { + if = { + limit = { can_cancel = yes } + cancel_travel_plan = yes + } } + set_location_to_default = yes } } if = { limit = { is_alive = yes } remove_variable = character_making_education_request + remove_variable = ward_waiting_for_guardian } } if = { diff --git a/common/scripted_effects/05_dlc_fp3_scripted_effects.txt b/common/scripted_effects/05_dlc_fp3_scripted_effects.txt new file mode 100644 index 0000000000..4edad65478 --- /dev/null +++ b/common/scripted_effects/05_dlc_fp3_scripted_effects.txt @@ -0,0 +1,82 @@ +################################################## +# Struggle & Struggle Decisions +################################################## + +##### Struggle Ending ##### + + +################################### +# MISC Effects +################################### +remove_any_education_traits_effect = { # Looks ugly but performance is better than with an IF check + remove_trait = education_martial_1 + remove_trait = education_martial_2 + remove_trait = education_martial_3 + remove_trait = education_martial_4 + remove_trait = education_martial_prowess_1 + remove_trait = education_martial_prowess_2 + remove_trait = education_martial_prowess_3 + remove_trait = education_martial_prowess_4 + remove_trait = education_learning_1 + remove_trait = education_learning_2 + remove_trait = education_learning_3 + remove_trait = education_learning_4 + remove_trait = education_intrigue_1 + remove_trait = education_intrigue_2 + remove_trait = education_intrigue_3 + remove_trait = education_intrigue_4 + remove_trait = education_stewardship_1 + remove_trait = education_stewardship_2 + remove_trait = education_stewardship_3 + remove_trait = education_stewardship_4 + remove_trait = education_diplomacy_1 + remove_trait = education_diplomacy_2 + remove_trait = education_diplomacy_3 + remove_trait = education_diplomacy_4 +} + + +fp3_challenge_house_head_duel_challenger_win_prestige_effect = { + scope:house_challenger = { add_prestige = medium_prestige_gain } +} + +fp3_challenge_house_head_duel_challenger_win_house_effect = { + scope:house_challenger.house = { set_house_head = scope:house_challenger } + scope:house_challenger = { + custom_tooltip = { + text = fp3_challenge_house_head_recent_cooldown_tt + add_character_flag = { + flag = fp3_challenge_house_head_recent_flag + years = 3 + } + } + } +} + +fp3_challenge_house_head_duel_challenger_loss_effect = { + scope:house_challenger = { + if = { + limit = { is_alive = yes } + add_prestige = medium_prestige_loss + } + } + scope:house_head = { + add_prestige = medium_piety_value + if = { + limit = { + scope:house_challenger = { is_alive = yes } + } + add_hook_no_toast = { + type = trial_by_combat_hook + target = scope:house_challenger + } + } + custom_tooltip = { + text = fp3_challenge_house_head_recent_cooldown_tt + add_character_flag = { + flag = fp3_challenge_house_head_recent_flag + years = 3 + } + } + } +} diff --git a/common/scripted_effects/20_health_balancing_effects.txt b/common/scripted_effects/20_health_balancing_effects.txt deleted file mode 100644 index ba05da7bee..0000000000 --- a/common/scripted_effects/20_health_balancing_effects.txt +++ /dev/null @@ -1,2 +0,0 @@ -### HEALTH BALANCING EFFECTS ### -# Along with the health balancing triggers, these effects are only used to get data output used for balancing diseases. diff --git a/common/scripted_effects/20_health_effects.txt b/common/scripted_effects/20_health_effects.txt index 92b9cb93f0..23356e41ea 100644 --- a/common/scripted_effects/20_health_effects.txt +++ b/common/scripted_effects/20_health_effects.txt @@ -4037,4 +4037,6 @@ upgrade_infirm_to_incapable_effect = { } # And add in capable. add_trait = incapable + # Logging. + log_harm_event_incapability_as_variable_effect = yes } diff --git a/common/scripted_guis/00_character.txt b/common/scripted_guis/00_character.txt deleted file mode 100644 index a7d04517f5..0000000000 --- a/common/scripted_guis/00_character.txt +++ /dev/null @@ -1,7 +0,0 @@ -rename_character_after_birth = { - scope = character - - effect = { - trigger_event = birth.9004 - } -} diff --git a/common/scripted_guis/00_religion.txt b/common/scripted_guis/00_religion.txt deleted file mode 100644 index 642d13acf8..0000000000 --- a/common/scripted_guis/00_religion.txt +++ /dev/null @@ -1,339 +0,0 @@ -toggle_great_holy_war_pledge = { - scope = character - - is_shown = { - faith = scope:great_holy_war.faith - scope:great_holy_war = { - OR = { - NOT = { has_pledged_attacker = root } - NOT = { exists = ghw_war } - } - is_directed_ghw = no - NOT = { has_pledged_defender = root } - } - #Religious head should never unpledge. - NOT = { this = faith.great_holy_war.ghw_war_declarer } - NOT = { has_character_flag = ghw_unpledging_cooldown } #Safety event. - } - is_valid = { - custom_description = { - text = "pledge_ghw_no_war_after_start" - OR = { #Cannot pledge to an ongoing Crusade if already in a war. - NOT = { exists = scope:great_holy_war.ghw_war } - is_at_war = no - } - } - custom_description = { - text = "pledge_ghw_liege_condition" - NOT = { #Do not pledge against your own liege, or when your top liege belongs to the faith being targeted. - target_is_liege_or_above = scope:great_holy_war.ghw_target_character - } - } - trigger_if = { - limit = { - exists = root.liege - } - custom_description = { - text = "pledge_ghw_indep_or_faith_condition" - subject = root - #Either be independent, or all lieges above you MUST be of the same Faith declaring the war to avoid messy situations of vassals and lieges fighting against each other. - NOT = { any_liege_or_above = { NOT = { this.faith = scope:great_holy_war.faith } } } - } - } - custom_description = { - text = "pledge_ghw_recently_unpledged" - subject = root - NOT = { - #Recently unpledged cooldown. - exists = var:variable_ghw_unpledged_cooldown - } - } - custom_description = { - text = "pledge_ghw_papal_hooked_pledge" - subject = root - NOT = { - #Forced by Papal hook (when already pledged). - has_character_flag = variable_ghw_papal_hooked_pledge #Removed on War start. - } - } - } - - - effect = { - scope:great_holy_war = { - if = { - limit = { has_pledged_attacker = root } - root = { trigger_event = great_holy_war.0017 } #Are you sure? - } - else = { - root = { trigger_event = great_holy_war.0018 } #Join the GHW! - } - } - } -} - -join_great_holy_war_directed = { - scope = character - - is_shown = { - faith = scope:great_holy_war.faith - scope:great_holy_war = { - is_directed_ghw = yes - } - scope:great_holy_war = { - NOR = { - has_pledged_attacker = root - has_pledged_defender = root - } - } - } - - effect = { - scope:great_holy_war = { - hidden_effect = { - pledge_attacker = root - } - pledge_ghw_war_chest_prestige_effect = yes - pledge_ghw_war_chest_piety_effect = yes - } - } -} - -toggle_great_holy_war_pledge_defense = { - scope = character - - is_shown = { - faith = scope:great_holy_war.ghw_target_character.faith - scope:great_holy_war = { is_directed_ghw = no } - } - - is_valid = { - NOT = { - scope:great_holy_war = { - has_forced_defender = root - } - } - custom_description = { - text = "pledge_ghw_recently_unpledged" - subject = root - NOT = { - #Recently unpledged cooldown. - exists = var:variable_ghw_unpledged_cooldown - } - } - } - - effect = { - scope:great_holy_war = { - hidden_effect = { - if = { - limit = { - has_pledged_defender = root - } - unpledge_defender = root - #Set Cooldown - set_variable = { - name = variable_ghw_unpledged_cooldown - value = yes - days = 60 - } - } - else = { - pledge_defender = root - } - } - } - } -} - -join_great_holy_war_directed_defense = { - scope = character - - is_shown = { - faith = scope:great_holy_war.ghw_target_character.faith - scope:great_holy_war = { - is_directed_ghw = yes - NOT = { - has_pledged_defender = root - } - } - } - - effect = { - hidden_effect = { - scope:great_holy_war = { - pledge_defender = root - } - } - } -} - -great_holy_war_give_gold = { - scope = character - - is_shown = { - faith = scope:great_holy_war.faith - scope:great_holy_war = { - is_directed_ghw = no - NOR = { - exists = ghw_war - has_pledged_defender = root - } - } - } - - is_valid = { - gold >= great_holy_war_pledge_amount - custom_description = { - text = "ghw_give_gold_already_giving_gold" - NOT = { has_character_flag = ghw_pledging_gold } - } - custom_description = { - text = "ghw_give_gold_already_given_gold" - NOT = { has_character_flag = ghw_pledged_gold } - } - } - - effect = { - root = { - trigger_event = great_holy_war.0040 - } - } -} - -toggle_great_holy_war_beneficiary_stance = { - scope = character - - is_shown = { - faith = scope:great_holy_war.faith - exists = ghw_beneficiary - scope:great_holy_war = { - is_directed_ghw = no - } - NOT = { this = faith.great_holy_war.ghw_war_declarer } #Not for the Caliph himself. - exists = scope:great_holy_war.ghw_designated_winner #Can only try to override Papal will if there is a Papal Recipient. - scope:great_holy_war.ghw_designated_winner = { is_alive = yes } - } - - effect = { - hidden_effect = { - if = { - limit = { is_overriding_designated_winner = yes } - set_override_designated_winner = no - } - else = { - set_override_designated_winner = yes - } - } - } -} - -not_pledged_not_donated_tooltip = { - scope = character - is_shown = { - scope:great_holy_war = { - NOR = { - has_pledged_attacker = root - root = { has_character_flag = ghw_pledged_gold } - } - is_directed_ghw = no - NOT = { has_pledged_defender = root } - } - } - - is_valid = { - scope:great_holy_war = { - NOR = { - has_pledged_attacker = root - root = { has_character_flag = ghw_pledged_gold } - } - is_directed_ghw = no - } - } -} - -not_pledged_donated_tooltip = { - scope = character - is_shown = { - scope:great_holy_war = { - NOT = { has_pledged_attacker = root } - root = { has_character_flag = ghw_pledged_gold } - is_directed_ghw = no - } - } - - is_valid = { - scope:great_holy_war = { - NOT = { has_pledged_attacker = root } - root = { has_character_flag = ghw_pledged_gold } - is_directed_ghw = no - } - } -} - -change_target = { - scope = character - is_shown = { - scope:great_holy_war = { # Only un-directed great holy wars in the preparation phase can be re-directed - is_directed_ghw = no - NOT = { exists = ghw_war } - has_pledged_attacker = root - } - } - - is_valid = { - scope:great_holy_war = { - has_pledged_attacker = root - } - } -} - -can_pledge_as_attacker = { - scope = character - - is_shown = { - faith = scope:great_holy_war.faith - scope:great_holy_war = { NOT = { has_pledged_attacker = root } } - } -} - -can_pledge_as_defender = { - scope = character - - is_shown = { - faith = scope:great_holy_war.ghw_target_character.faith - scope:great_holy_war = { NOT = { has_pledged_defender = root } } - } -} - -create_head_of_faith = { - scope = character - saved_scopes = { - faith - } - is_shown = { - faith = scope:faith - } - is_valid = { - can_create_head_of_faith_title_trigger = { FAITH = scope:faith } - } - effect = { - create_head_of_faith_title_effect = yes - } -} - -recreate_head_of_faith = { - scope = character - saved_scopes = { - faith - } - is_shown = { - faith = scope:faith - } - is_valid = { - can_create_head_of_faith_title_trigger = { FAITH = scope:faith } - } - effect = { - create_head_of_faith_title_effect = yes - } -} \ No newline at end of file diff --git a/common/scripted_lists/00_scripted_lists.txt b/common/scripted_lists/00_scripted_lists.txt deleted file mode 100644 index e3006785a0..0000000000 --- a/common/scripted_lists/00_scripted_lists.txt +++ /dev/null @@ -1,35 +0,0 @@ -# Vassals -powerful_vassal = { - base = vassal - conditions = { is_powerful_vassal = yes } -} - -# Governments -theocratic_ruler = { - base = ruler - conditions = { government_has_flag = government_is_theocracy } -} -theocratic_vassal = { - base = vassal - conditions = { government_has_flag = government_is_theocracy } -} - -# Council -normal_councillor = { - base = councillor - conditions = { is_normal_councillor = yes } -} - -#Titles -held_county = { - base = held_title - conditions = { - tier = tier_county - } -} - -#Adult house members -adult_house_member = { - base = house_member - conditions = { is_adult = yes } -} \ No newline at end of file diff --git a/common/scripted_modifiers/00_activity_scripted_modifiers.txt b/common/scripted_modifiers/00_activity_scripted_modifiers.txt index 1e7143db46..d492d7f60e 100644 --- a/common/scripted_modifiers/00_activity_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_activity_scripted_modifiers.txt @@ -205,11 +205,7 @@ activity_guest_shared_ai_accept_modifier = { #################### modifier = { is_landed = yes - NOT = { primary_title.tier = scope:host.primary_title.tier } - tier_difference = { - target = scope:host - value < scope:host.primary_title.tier - } + highest_held_title_tier < scope:host.highest_held_title_tier add = { value = scope:host.highest_held_title_tier subtract = highest_held_title_tier @@ -219,15 +215,11 @@ activity_guest_shared_ai_accept_modifier = { } modifier = { is_landed = yes - NOT = { primary_title.tier = scope:host.primary_title.tier } - tier_difference = { - target = scope:host - value > scope:host.primary_title.tier - } + highest_held_title_tier > scope:host.highest_held_title_tier add = { - value = scope:host.highest_held_title_tier - subtract = highest_held_title_tier - multiply = 5 + value = highest_held_title_tier + subtract = scope:host.highest_held_title_tier + multiply = -5 } desc = ACTIVITY_GUEST_HIGHER_RANK_REASON } @@ -1737,7 +1729,7 @@ hunt_activity_master_aptitude_positive_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value <= 2 + value <= 1 } } factor = 0.5 @@ -1747,7 +1739,7 @@ hunt_activity_master_aptitude_positive_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value <= 3 + value <= 2 } } factor = 0.75 @@ -1757,7 +1749,7 @@ hunt_activity_master_aptitude_positive_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value >= 4 + value >= 3 } } factor = 1.25 @@ -1767,7 +1759,7 @@ hunt_activity_master_aptitude_positive_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value >= 5 + value >= 4 } } factor = 1.5 @@ -1780,7 +1772,7 @@ hunt_activity_master_aptitude_negative_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value <= 2 + value <= 1 } } factor = 1.5 @@ -1790,7 +1782,7 @@ hunt_activity_master_aptitude_negative_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value <= 3 + value <= 2 } } factor = 1.25 @@ -1800,7 +1792,7 @@ hunt_activity_master_aptitude_negative_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value >= 4 + value >= 3 } } factor = 0.75 @@ -1810,7 +1802,7 @@ hunt_activity_master_aptitude_negative_modifier = { $LIEGE$.court_position:master_of_hunt_court_position = { aptitude = { court_position = master_of_hunt_court_position - value >= 5 + value >= 4 } } factor = 0.5 @@ -1992,6 +1984,10 @@ hunt_activity_game_building_modifier = { add = 3 $PROVINCE$ = { has_building = royal_forest_03 } } + #modifier = { + # add = 4 + # $PROVINCE$ = { has_building = rainbow_mountains_01 } + #} } hunt_activity_organization_modifier = { diff --git a/common/scripted_modifiers/00_ai_value_modifiers.txt b/common/scripted_modifiers/00_ai_value_modifiers.txt deleted file mode 100644 index 2a889a5164..0000000000 --- a/common/scripted_modifiers/00_ai_value_modifiers.txt +++ /dev/null @@ -1,87 +0,0 @@ -###AI VALUE TARGET MODIFIERS### -#Modifiers based on ai_values weighted by what we consider a high positive value is. If you give the modifier the VALUE argument X, the expected output at a high positive ai value is X. I.e. "ai_boldness_target_modifier = 80" would output 80 at a high positive boldness value. - -#Base -ai_target_modifier = { - modifier = { - add = { - value = $CHARACTER$.$AI_VALUE$ - divide = very_high_positive_ai_value - multiply = $VALUE$ - } - } -} - -#Ai-specific modifiers -ai_boldness_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_boldness - VALUE = $VALUE$ - } -} - -ai_compassion_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_compassion - VALUE = $VALUE$ - } -} - -ai_greed_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_greed - VALUE = $VALUE$ - } -} - -ai_energy_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_energy - VALUE = $VALUE$ - } -} - -ai_honor_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_honor - VALUE = $VALUE$ - } -} - -ai_rationality_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_rationality - VALUE = $VALUE$ - } -} - -ai_sociability_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_sociability - VALUE = $VALUE$ - } -} - -ai_vengefulness_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_vengefulness - VALUE = $VALUE$ - } -} - -ai_zeal_target_modifier = { - ai_target_modifier = { - CHARACTER = this - AI_VALUE = ai_zeal - VALUE = $VALUE$ - } -} - diff --git a/common/scripted_modifiers/00_character_selection_scripted_modifiers.txt b/common/scripted_modifiers/00_character_selection_scripted_modifiers.txt deleted file mode 100644 index c5a0e3fe08..0000000000 --- a/common/scripted_modifiers/00_character_selection_scripted_modifiers.txt +++ /dev/null @@ -1,18 +0,0 @@ -################################################## -# #Standardised weight effects for use in events. - -is_of_minor_interest_to_weight_up_modifier = { - # Weight up for having an appropriate court type. - modifier = { - add = 25 - is_of_minor_interest_trigger = { CHARACTER = $CHARACTER$ } - } -} - -is_of_major_interest_to_weight_up_modifier = { - # Weight up for having an appropriate court type. - modifier = { - add = 50 - is_of_major_interest_trigger = { CHARACTER = $CHARACTER$ } - } -} diff --git a/common/scripted_modifiers/00_councillor_scripted_modifiers.txt b/common/scripted_modifiers/00_councillor_scripted_modifiers.txt deleted file mode 100644 index 84cc4ea785..0000000000 --- a/common/scripted_modifiers/00_councillor_scripted_modifiers.txt +++ /dev/null @@ -1,101 +0,0 @@ -#Scripted Modifiers used for Councillor tasks - -#Parameters: -# SKILL - Which skill is being checked -# SCALE - Any different multiplication scale -councillor_spouse_any_skill_rating_modifier = { - #Twice as likely to occur at 20 skill - compare_modifier = { - target = scope:councillor - skill = $SKILL$ - multiplier = { - value = 0.05 - multiply = $SCALE$ - } - } - opinion_modifier = { - trigger = { - reverse_opinion = { - target = scope:councillor - value > 0 - } - } - target = scope:councillor - who = root - multiplier = { - value = 0.01 - multiply = $SCALE$ - } - } - opinion_modifier = { - trigger = { - reverse_opinion = { - target = scope:councillor - value < 0 - } - } - target = scope:councillor - who = root - multiplier = { - value = 0.05 - multiply = $SCALE$ - } - } -} - - - - -#Parameters: -# SKILL - Which skill is being checked -# SCALE - Any different multiplication scale -# SKILL_RATING - The Skill Rating being used to trigger the event -councillor_spouse_limited_skill_rating_modifier = { - #Twice as likely to occur at extremely_high_skill_rating Skill value - compare_modifier = { - target = scope:councillor - value = $SKILL$ - offset = inverted_$SKILL_RATING$ - #Aim for extremely_high_skill_rating Skill to equal double chance - multiplier = { - value = scope:councillor.$SKILL$ - subtract = $SKILL_RATING$ - divide = { - value = extremely_high_skill_rating - subtract = $SKILL_RATING$ - } - multiply = $SCALE$ - } - min = 0 - max = 2 - } - opinion_modifier = { - trigger = { - reverse_opinion = { - target = scope:councillor - value > 0 - } - } - who = scope:councillor - opinion_target = root - multiplier = { - value = 0.01 - multiply = $SCALE$ - } - } - opinion_modifier = { - trigger = { - reverse_opinion = { - target = scope:councillor - value < 0 - } - } - who = scope:councillor - opinion_target = root - multiplier = { - value = 0.05 - multiply = $SCALE$ - } - } -} - diff --git a/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt b/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt index 1e60285760..653a4f4dd7 100644 --- a/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_elective_successions_scripted_modifiers.txt @@ -3263,6 +3263,440 @@ elector_voting_pattern_circumstances_scandinavian_elective_modifier = { } +elector_voting_pattern_circumstances_tribal_elective_modifier = { + ########################## Elector voting patterns (circumstances) ########################## + #Sexism + modifier = { #Gender weights + desc = tooltip_feudal_elector_vote_agnatic_woman + OR = { + scope:title = { #Title might have different law than realm's. + has_title_law = male_preference_law + } + AND = { #If title has neither the required law nor its opposites, check for realm law. + scope:holder = { has_realm_law = male_preference_law } + scope:title = { + NOR = { + has_title_law = female_preference_law + has_title_law = equal_law + } + } + } + faith = { has_doctrine = doctrine_gender_male_dominated } + } + scope:candidate = { is_female = yes } + add = { + subtract = 100 + if = { #Increase if both. + limit = { + OR = { + scope:title = { #Title might have different law than realm's. + has_title_law = male_preference_law + } + AND = { #If title has neither the required law nor its opposites, check for realm law. + scope:holder = { has_realm_law = male_preference_law } + scope:title = { + NOR = { + has_title_law = female_preference_law + has_title_law = equal_law + } + } + } + } + faith = { has_doctrine = doctrine_gender_male_dominated } + } + multiply = 1.5 + } + if = { #Halve if talking about myself. + limit = { + this = scope:candidate + scope:candidate = scope:holder_candidate + } + multiply = 0.5 + } + } + } + modifier = { #Gender weights + desc = tooltip_feudal_elector_vote_enatic_man + OR = { + scope:title = { #Title might have different law than realm's. + has_title_law = female_preference_law + } + AND = { #If title has neither the required law nor its opposites, check for realm law. + scope:holder = { has_realm_law = female_preference_law } + scope:title = { + NOR = { + has_title_law = male_preference_law + has_title_law = equal_law + } + } + } + faith = { has_doctrine = doctrine_gender_female_dominated } + } + scope:candidate = { + is_female = no + } + add = { + subtract = 100 + if = { #Increase if both. + limit = { + OR = { + scope:title = { #Title might have different law than realm's. + has_title_law = female_preference_law + } + AND = { #If title has neither the required law nor its opposites, check for realm law. + scope:holder = { has_realm_law = female_preference_law } + scope:title = { + NOR = { + has_title_law = male_preference_law + has_title_law = equal_law + } + } + } + } + faith = { has_doctrine = doctrine_gender_female_dominated } + } + multiply = 1.5 + } + if = { #Halve if talking about myself. + limit = { + this = scope:candidate + scope:candidate = scope:holder_candidate + } + multiply = 0.5 + } + } + } + #Ageism + modifier = { + add = -50 + desc = tooltip_feudal_elector_vote_baby + NOT = { this = scope:candidate } + scope:candidate = { + age < 5 + } + } + modifier = { + desc = tooltip_feudal_elector_vote_child + NOT = { this = scope:candidate } + scope:candidate = { + age > 5 + age < 16 + } + add = { + subtract = 20 + if = { + limit = { + age < 10 + } + subtract = 15 + } + } + } + modifier = { #Still too young for older rulers + add = -15 + desc = tooltip_feudal_elector_vote_youngster + NOT = { this = scope:candidate } + age_in_relation_to_humans_more_than_trigger = { age = 40 } + scope:candidate = { + age > 16 + age_in_relation_to_humans_less_than_trigger = { age = 25 } + } + } + modifier = { #but you cannot be too old! + add = 5 + desc = tooltip_tribal_elector_vote_elder + NOT = { this = scope:candidate } + scope:candidate = { + age_in_relation_to_humans_more_than_trigger = { age = 50 } + } + } + #Culturism + modifier = { + add = 30 + desc = tooltip_feudal_elector_vote_fellow_culture + NOT = { this = scope:candidate } + root.culture = scope:candidate.culture + } + modifier = { + add = -30 + desc = tooltip_tribal_elector_vote_stranger #belongs to a different tribe! + scope:holder.culture = root.culture #Only a concern if Elector and current ruler share culture. + NOT = { root.culture = scope:candidate.culture } + culture = { has_same_culture_heritage = scope:candidate.culture } + NOT = { is_close_family_of = scope:candidate } + } + modifier = { + add = -60 + desc = tooltip_feudal_elector_vote_foreigner + scope:holder.culture = root.culture #Only a concern if Elector and current ruler share culture. + NOT = { culture = { has_same_culture_heritage = scope:candidate.culture } } + NOT = { is_close_family_of = scope:candidate } + } + modifier = { #Candidate is a foreigner's pet + add = -25 + desc = tooltip_feudal_elector_vote_strangers_pet + scope:candidate = { + this = scope:holder_candidate + NOT = { this.culture = root.culture } + culture = { has_same_culture_heritage = root.culture } + this.culture = scope:holder.culture + } + NOT = { is_close_family_of = scope:candidate } + } + modifier = { #Candidate is a foreigner's pet + add = -30 + desc = tooltip_feudal_elector_vote_foreigners_pet + scope:candidate = { + this = scope:holder_candidate + NOT = { culture = { has_same_culture_heritage = root.culture } } + this.culture = scope:holder.culture + } + NOT = { is_close_family_of = scope:candidate } + } + modifier = { #If candidate is elected, he will rule from a capital outside this de jure. + add = -30 + desc = tooltip_feudal_elector_vote_political_concerns + is_landed = yes + exists = capital_county + capital_county = { + scope:title = { + is_de_jure_liege_or_above_target = prev + } + } + + OR = { # If the current holder is reigning from within the title, there is no reason to believe a lower tier candidate would not. + scope:holder = { + capital_county = { + scope:title = { + NOT = { is_de_jure_liege_or_above_target = prev } + } + } + } + scope:candidate = { + highest_held_title_tier >= scope:title.tier + } + } + + scope:candidate = { + is_ruler = yes + is_vassal_of = scope:holder + exists = capital_county + NOT = { capital_county = { scope:title = { is_de_jure_liege_or_above_target = prev } } } + } + } + modifier = { #Candidate is a foreign ruler. + desc = tooltip_feudal_elector_vote_encroaching_foreigner + is_landed = yes + exists = capital_county + scope:candidate = { + is_ruler = yes + NOT = { target_is_liege_or_above = scope:holder } + } + add = { + subtract = 100 + if = { #Candidate is a foreign non-dejure ruler. + limit = { + NOT = { capital_county = { scope:title = { is_de_jure_liege_or_above_target = prev } } } + } + subtract = 500 + } + } + } + #Faithism + modifier = { #Accepted but different faith. (Buddhism vs Hinduism) + add = -10 + desc = tooltip_feudal_elector_vote_different_faith + NOT = { root.faith = scope:candidate.faith } + ai_zeal >= 0 #Does not care otherwise. + faith = { + faith_hostility_level = { + target = scope:candidate.faith + value = faith_fully_accepted_level + } + } + } + modifier = { #Astray (Catholic vs Orthodox) + add = -25 + desc = tooltip_feudal_elector_vote_astray + NOT = { root.faith = scope:candidate.faith } + faith = { + faith_hostility_level = { + target = scope:candidate.faith + value = faith_astray_level + } + } + } + modifier = { #Heretic (Catholic vs Cathar) + desc = tooltip_feudal_elector_vote_heretic + add = { + subtract = 50 + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= low_positive_zeal + } + subtract = 25 + } + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= medium_positive_zeal + } + subtract = 25 + } + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= high_positive_zeal + } + subtract = 25 + } + } + NOT = { root.faith = scope:candidate.faith } + faith = { + faith_hostility_level = { + target = scope:candidate.faith + value = faith_hostile_level + } + } + } + modifier = { #Infidel (Catholic vs Ashari) + desc = tooltip_feudal_elector_vote_evil_heathen + add = { + subtract = 100 + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= low_positive_zeal + } + subtract = 50 + } + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= medium_positive_zeal + } + subtract = 50 + } + if = { #Further increased by AI zeal. + limit = { + ai_zeal >= high_positive_zeal + } + subtract = 50 + } + } + NOT = { root.faith = scope:candidate.faith } + faith = { + faith_hostility_level = { + target = scope:candidate.faith + value = faith_evil_level + } + } + } + #Nepotism + modifier = { + add = 5 + desc = tooltip_feudal_elector_vote_dynasty + NOT = { this = scope:candidate } + exists = root.dynasty + exists = scope:candidate.dynasty + root.dynasty = scope:candidate.dynasty + scope:candidate = { + NOT = { is_close_family_of = root } + } + } + modifier = { + add = 10 + desc = tooltip_tribal_elector_vote_relative + NOT = { this = scope:candidate } + scope:candidate = { + is_close_family_of = root + NOT = { is_child_of = root } + } + } + modifier = { + desc = tooltip_feudal_elector_vote_parent + NOT = { this = scope:candidate } + scope:candidate = { is_child_of = root } + add = { + value = 10 + if = { #Current Ruler should tend to often pick one of his own children as potential heirs. + limit = { this = scope:holder } + add = 30 + } + } + } + #Educational preferences + modifier = { # Warrior society prefers warriors + add = 15 + desc = tooltip_feudal_elector_vote_martial_education + NOT = { this = scope:candidate } + this_is_martial_society_trigger = yes + scope:candidate = { + martial >= 10 + OR = { + has_trait = education_martial + has_lifestyle = martial_lifestyle + has_trait = lifestyle_blademaster + has_martial_lifestyle_trait_trigger = yes + has_trait = faith_warrior #This is particular to tribal elective - they really like 'em ghazis + } + } + } + modifier = { # Diplomatic society prefers stewards and diplomats + add = 15 + desc = tooltip_feudal_elector_vote_diplomatic_education + NOT = { this = scope:candidate } + this_is_diplomatic_society_trigger = yes + scope:candidate = { + OR = { + AND = { + diplomacy >= 10 + OR = { + has_trait = education_diplomacy + has_lifestyle = diplomacy_lifestyle + has_diplomacy_lifestyle_trait_trigger = yes + has_trait = lifestyle_reveler + has_trait = gallant + } + } + AND = { + stewardship >= 10 + OR = { + has_trait = education_stewardship + has_lifestyle = stewardship_lifestyle + has_stewardship_lifestyle_trait_trigger = yes + } + } + } + } + } + modifier = { # Spiritual society prefers scholars + add = 15 + desc = tooltip_feudal_elector_vote_spiritual_education + NOT = { this = scope:candidate } + this_is_spiritual_society_trigger = yes + scope:candidate = { + learning >= 10 + OR = { + has_trait = education_learning + has_lifestyle = learning_lifestyle + has_learning_lifestyle_trait_trigger = yes + has_trait = lifestyle_mystic + has_trait = lifestyle_physician + } + } + } + #Claims + modifier = { + add = 15 + desc = tooltip_feudal_elector_vote_strong_claimant + NOT = { this = scope:candidate } + scope:candidate = { has_strong_claim_on = scope:title } + } + modifier = { + add = 5 + desc = tooltip_feudal_elector_vote_weak_claimant + NOT = { this = scope:candidate } + scope:candidate = { has_weak_claim_on = scope:title } + } +} + #scope:actor (ruler taking the action) #scope:recipient (elector being forced) #scope:target (potential candidate being voted) diff --git a/common/scripted_modifiers/00_ep1_artifact_modifiers.txt b/common/scripted_modifiers/00_ep1_artifact_modifiers.txt deleted file mode 100644 index 8ae308655a..0000000000 --- a/common/scripted_modifiers/00_ep1_artifact_modifiers.txt +++ /dev/null @@ -1,35 +0,0 @@ -################################################# -# MODIFIER LIST # -################################################# - -# Modifiers to decide what armor type someone wants to make/is created -artifact_armor_type_mail_modifier = { - modifier = { - add = artifact_armor_type_mail_weight_value - } -} -artifact_armor_type_plate_modifier = { - modifier = { #Full plate armor developed and became more wide-spread (mostly) during the late middle ages - add = artifact_armor_type_plate_weight_value - } -} -artifact_armor_type_scale_modifier = { - modifier = { #Fairly common everywhere, but use in Europe had declined - add = artifact_armor_type_scale_weight_value - } -} -artifact_armor_type_lamellar_modifier = { - modifier = { #More common in the Middle East and Asia - add = artifact_armor_type_lamellar_weight_value - } -} -artifact_armor_type_laminar_modifier = { - modifier = { - add = artifact_armor_type_laminar_weight_value - } -} -artifact_armor_type_brigandine_modifier = { - modifier = { - add = artifact_armor_type_brigandine_weight_value - } -} diff --git a/common/scripted_modifiers/00_ep1_inspiration_modifiers.txt b/common/scripted_modifiers/00_ep1_inspiration_modifiers.txt deleted file mode 100644 index 4132145a64..0000000000 --- a/common/scripted_modifiers/00_ep1_inspiration_modifiers.txt +++ /dev/null @@ -1,144 +0,0 @@ -################################################# -# MODIFIER LIST # -################################################# -# inspiration_royal_court_grandeur_attraction_modifier - Base attraction value of an individual Royal Court. Inspired characters are more likely to choose to visit courts with a higher value -# inspiration_royal_court_oversaturation_penalty_modifier - Substantial penalty to attraction (as above) based on population. Forces inspired characters to spread out instead of all congregating in the 'best' court -# inspiration_region_court_grandeur_attraction_modifier - Sum of the attraction value of all Royal Courts in a given $GEOGRAPHIC_REGION$ -# inspiration_region_oversaturation_penalty_modifier - Substantial penalty similar to the one for specific Royal Courts, but based on all courts in a region -# inspiration_bonus_quality_from_traditions_modifier - Collection of all bonuses characters with certain Traditions get to quality when completing Inspirations - -inspiration_royal_court_grandeur_attraction_modifier = { - modifier = { - add = { - # Base weight equal to current Court Grandeur, scaled to a value between 0 and 10. - value = court_grandeur_current - multiply = 0.1 - - # 50% penalty if current Court Grandeur is under the expected Court Grandeur Minimum. - if = { - limit = { - court_grandeur_current < court_grandeur_minimum_expected - } - multiply = 0.5 - } - } - } - - # Preference for a court with the Scholarly Court Type - modifier = { - factor = { - if = { - limit = { # Slightly higher bonus if you have Grandeur level 6 or higher - has_court_type = court_scholarly - court_grandeur_current_level >= 6 - } - value = 1.2 - } - else = { # Smaller bonus for courts with at least Grandeur level 1, but below 6 - value = 1.1 - } - } - has_court_type = court_scholarly - court_grandeur_current_level >= 1 - } - - # Extra weights for certain Cultural Traditions - To make sure you get the corresponding inspiration type - modifier = { - factor = 1.1 - culture = { has_cultural_parameter = improved_artisan_inspiration } - exists = scope:inspired_character - scope:inspired_character = { - exists = inspiration - inspiration = { has_inspiration_type = artisan_inspiration } - } - } - modifier = { - factor = 1.1 - culture = { has_cultural_parameter = improved_weaver_inspiration } - exists = scope:inspired_character - scope:inspired_character = { - exists = inspiration - inspiration = { has_inspiration_type = weaver_inspiration } - } - } -} - -inspiration_royal_court_oversaturation_penalty_modifier = { - modifier = { - factor = { - value = 1 - divide = { - add = 1 - every_inspired_character = { - limit = { - exists = location - location = { - exists = barony - barony = { - exists = holder - holder = { - top_liege = scope:tmp_royal_court_owner - } - } - } - } - add = 1 - } - } - } - } -} - -inspiration_region_court_grandeur_attraction_modifier = { - modifier = { - add = { - every_character_with_royal_court = { - limit = { - exists = capital_province - capital_province = { - geographical_region = $GEOGRAPHICAL_REGION$ - } - } - # Base weight equal to current Court Grandeur - add = court_grandeur_current - - # 50% penalty if current Court Grandeur is under the expected Court Grandeur Minimum. - if = { - limit = { - court_grandeur_current < court_grandeur_minimum_expected - } - multiply = 0.5 - } - } - } - } -} - -inspiration_region_oversaturation_penalty_modifier = { - modifier = { - factor = { - value = 0 - every_character_with_royal_court = { - limit = { - exists = capital_province - capital_province = { - geographical_region = $GEOGRAPHICAL_REGION$ - } - } - add = 1 - } - divide = { - every_inspired_character = { - limit = { - exists = location - location = { - geographical_region = $GEOGRAPHICAL_REGION$ - } - } - add = 3 - } - min = 1 - } - } - } -} diff --git a/common/scripted_modifiers/00_faction_modifiers.txt b/common/scripted_modifiers/00_faction_modifiers.txt index 5c78b1eb98..8a90685e9f 100644 --- a/common/scripted_modifiers/00_faction_modifiers.txt +++ b/common/scripted_modifiers/00_faction_modifiers.txt @@ -737,6 +737,28 @@ common_faction_modifiers = { POWER = $POWER$ THRESHOLD = $THRESHOLD$ } + + # Unity - House members are less likely to join factions against each other with high levels of unity + modifier = { # Friendly unity level + desc = "FACTION_REASON_unity_significantly_less_likely_claimant_factions" + add = -20 + exists = root.house + exists = $FACTION_TARGET$.house + house = $FACTION_TARGET$.house + house = { + has_house_unity_parameter = unity_less_likely_factions + } + } + modifier = { # Harmonious unity level + desc = "FACTION_REASON_unity_significantly_less_likely_claimant_factions" + add = -40 + exists = root.house + exists = $FACTION_TARGET$.house + house = $FACTION_TARGET$.house + house = { + has_house_unity_parameter = unity_significantly_less_likely_factions + } + } # Debt: +10 to +60 join chance depending on how far in debt the top liege is liege_debt_modifier = { @@ -1887,13 +1909,35 @@ claimant_faction_modifiers = { } } - #More likely to create a claimant faction against a Ruler below their CGLevel + # More likely to create a claimant faction against a Ruler below their CGLevel modifier = { desc = "FACTION_REASON_LOWER_COURT_GRANDEUR" add = 50 $FACTION_TARGET$.court_grandeur_current_level < $FACTION_TARGET$.court_grandeur_minimum_expected_level } + # Unity - House members are more likely to join and create claimant factions with low levels of unity + modifier = { # Competitive unity level + add = 20 + desc = "FACTION_REASON_unity_more_likely_claimant_factions" + exists = root.house + exists = $FACTION_TARGET$.house + house = $FACTION_TARGET$.house + house = { + has_house_unity_parameter = unity_more_likely_claimant_factions + } + } + modifier = { # Antagonistic unity level + add = 40 + desc = "FACTION_REASON_unity_significantly_more_likely_claimant_factions" + exists = root.house + exists = $FACTION_TARGET$.house + house = $FACTION_TARGET$.house + house = { + has_house_unity_parameter = unity_significantly_more_likely_claimant_factions + } + } + #modifier = { # Byzantium has extra trouble with Unpreferred Heirs # desc = "FACTION_REASON_BYZANTINE" # factor = 1.2 diff --git a/common/scripted_modifiers/00_hostile_scheme_scripted_modifiers.txt b/common/scripted_modifiers/00_hostile_scheme_scripted_modifiers.txt index bbfff44e12..94e3762a99 100644 --- a/common/scripted_modifiers/00_hostile_scheme_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_hostile_scheme_scripted_modifiers.txt @@ -50,6 +50,17 @@ hostile_scheme_base_chance_modifier = { } desc = "SCHEME_TARGET_TRAVELLING_INCOGNITO" } + + modifier = { # FP3 legacy track bonus for murdering dynasty members + add = 10 + scope:target = { + exists = dynasty + exists = scope:owner.dynasty + dynasty = scope:owner.dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_2 } + } + desc = "KHVARENAH_LEGACY_DESC" + } first_valid = { # Essentially the Base modifier = { @@ -89,6 +100,11 @@ hostile_scheme_base_chance_modifier = { } desc = "SCHEME_I_AM_GUARDIAN" } + modifier = { + add = 50 + scope:owner = { is_diarch_of_target = scope:target } + desc = "SCHEME_I_AM_DIARCH" + } modifier = { add = 25 scope:target = { @@ -218,7 +234,6 @@ hostile_scheme_base_chance_modifier = { # scope:owner = { # any_character_struggle = { # involvement = involved - # is_struggle_type = iberian_struggle # has_struggle_phase_parameter = struggle_agents_less_likely_to_join_schemes # is_secondary_character_involvement_involved_trigger = { # CHAR = scope:target @@ -384,7 +399,7 @@ hostile_scheme_agent_base_join_chance_modifier = { } desc = BONUS_TO_AGENT_RECRUITMENT_FROM_AMENITIES } - + #if former hostage was rewarded for being an agent for their family modifier = { add = 50 @@ -393,6 +408,17 @@ hostile_scheme_agent_base_join_chance_modifier = { desc = SCHEME_TAUGHT_TO_SCHEME } + # FP3 legacy track bonus + modifier = { # + add = 10 + scope:target = { + is_lowborn = no + dynasty = root.dynasty + dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_2 } + } + desc = "KHVARENAH_LEGACY_DESC" + } + #if family member stressed duty to family modifier = { add = 20 @@ -1137,6 +1163,29 @@ hostile_murder_agent_base_join_chance_modifier = { } desc = SCHEME_TARGET_IS_FEUD_TARGET } + + modifier = { + trigger = { + exists = faith.religious_head + scope:target = faith.religious_head + } + add = { + value = -25 + if = { + limit = { + has_trait = zealous + } + multiply = 2 + } + else_if = { + limit = { + has_trait = arbitrary + } + multiply = 0 + } + } + desc = SCHEME_HEAD_OF_FAITH_REASON + } } hostile_scheme_agent_success_chance_modifier = { @@ -1175,6 +1224,11 @@ hostile_scheme_agent_success_chance_modifier = { has_relation_ward = scope:target desc = "SCHEME_AGENT_IS_GUARDIAN" } + modifier = { + add = 50 + is_diarch_of_target = scope:target + desc = "SCHEME_AGENT_IS_DIARCH" + } modifier = { add = 30 has_relation_friend = scope:target diff --git a/common/scripted_modifiers/00_lifestyle_scripted_modifiers.txt b/common/scripted_modifiers/00_lifestyle_scripted_modifiers.txt deleted file mode 100644 index 599ba787ee..0000000000 --- a/common/scripted_modifiers/00_lifestyle_scripted_modifiers.txt +++ /dev/null @@ -1,36 +0,0 @@ -#Scripted modifiers for lifestyles - -#EVENT WEIGHTING -# upweight_for_focus_modifier - when the event is primarily for one focus, use at the end of the weight_multiplier -# downweight_for_focus_modifier - when the event shouldn't be common for a specific focus, use at the end of the weight_multiplier - -#This modifier should decreased the weight of everything other focus in that lifestyle (despite the upweight name) -upweight_for_focus_modifier = { - modifier = { - factor = { - if = { - limit = { NOT = { has_focus = $FOCUS$ } } - value = 0.2 - } - else = { - value = 1 - } - } - } -} - -#This modifier should decrease the weight if you have a certain focus -downweight_for_focus_modifier = { - modifier = { - factor = { - if = { - limit = { has_focus = $FOCUS$ } - value = 0.2 - } - else = { - value = 1 - } - } - } -} - diff --git a/common/scripted_modifiers/00_marriage_scripted_modifiers.txt b/common/scripted_modifiers/00_marriage_scripted_modifiers.txt index 39d98eb3f3..cf3c4ee0c4 100644 --- a/common/scripted_modifiers/00_marriage_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_marriage_scripted_modifiers.txt @@ -47,6 +47,12 @@ add = glory_legacy_1_marriage_acceptance desc = DYNASTY_LEGACY_GLORY_MARRIAGE_ACCEPTANCE_PERK_MODIFIER } + modifier = { # Dynasty Khvarenah Perk acceptance, checks the secondary recipients dynasty for the perk + exists = scope:secondary_actor.dynasty + scope:secondary_actor.dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_3 } + add = khvarenah_legacy_marriage_acceptance + desc = DYNASTY_LEGACY_KHVARENAH_MARRIAGE_ACCEPTANCE_PERK_MODIFIER + } ########################## # WHO IS GETTING MARRIED # @@ -1597,6 +1603,7 @@ } desc = DIARCHY_ENTRENCHED_REGENT_WEDDING_ACCEPTANCE } + ########### # FEUD # ########### diff --git a/common/scripted_modifiers/00_military_scripted_modifiers.txt b/common/scripted_modifiers/00_military_scripted_modifiers.txt deleted file mode 100644 index da86dbfcf0..0000000000 --- a/common/scripted_modifiers/00_military_scripted_modifiers.txt +++ /dev/null @@ -1,15 +0,0 @@ -################################################## -# #General - -factor_down_for_current_military_strength_modifier = { - modifier = { - factor = $FACTOR$ - OR = { - $CHALLENGER$.current_military_strength >= $CURRENT_SCOPE$.eighty_percent_of_current_military_strength - AND = { - is_at_war = yes - $CHALLENGER$.current_military_strength >= $CURRENT_SCOPE$.fifty_percent_of_current_military_strength - } - } - } -} diff --git a/common/scripted_modifiers/00_perk_modifiers.txt b/common/scripted_modifiers/00_perk_modifiers.txt deleted file mode 100644 index 954158f18a..0000000000 --- a/common/scripted_modifiers/00_perk_modifiers.txt +++ /dev/null @@ -1,13 +0,0 @@ - -### Modifiers relating to Perks - -# mortal_adoration_murder_save_modifier - Modifier applied to murder save weight multipliers to increase the chance of Lovers dying in your place - - -mortal_adoration_murder_save_modifier = { - # Mortal Adoration Perk - modifier = { - add = 2 - scope:target = { has_perk = mortal_adoration_perk } - } -} \ No newline at end of file diff --git a/common/scripted_modifiers/00_portrait_modifiers.txt b/common/scripted_modifiers/00_portrait_modifiers.txt index 76263662c1..7f0e5d25d8 100644 --- a/common/scripted_modifiers/00_portrait_modifiers.txt +++ b/common/scripted_modifiers/00_portrait_modifiers.txt @@ -70,6 +70,22 @@ portrait_fp2_iberian_muslim_clothing_modifier = { } } +### FP3 ### + +portrait_fp3_iranian_clothing_modifier = { + modifier = { + add = 50 + portrait_fp3_iranian_clothing_trigger = yes + } +} + +portrait_fp3_turkic_clothing_modifier = { + modifier = { + add = 50 + portrait_fp3_turkic_clothing_trigger = yes + } +} + # Different likelyhood of a clean shaven look in different cultures portrait_clean_shaven_clothing_modifier = { # Warcraft diff --git a/common/scripted_modifiers/00_religion_scripted_modifiers.txt b/common/scripted_modifiers/00_religion_scripted_modifiers.txt index 6c02eb32cd..96b70174b0 100644 --- a/common/scripted_modifiers/00_religion_scripted_modifiers.txt +++ b/common/scripted_modifiers/00_religion_scripted_modifiers.txt @@ -27,7 +27,8 @@ religion_demand_conversion_default_modifier = { opinion_modifier = { opinion_target = scope:actor who = scope:recipient - multiplier = 1 + multiplier = 0.25 + step = 5 } modifier = { @@ -64,6 +65,20 @@ religion_demand_conversion_default_modifier = { has_trait = divine_blood } } + modifier = { + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_STUBBORN + add = -15 + scope:recipient = { + has_trait = stubborn + } + } + modifier = { + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_FICKLE + add = 10 + scope:recipient = { + has_trait = fickle + } + } modifier = { desc = ASK_FOR_CONVERSION_RECIPIENT_IS_ZEALOUS add = -50 @@ -95,33 +110,33 @@ religion_demand_conversion_default_modifier = { } } - modifier = { - desc = ASK_FOR_CONVERSION_TAQIYA - trigger = { - scope:recipient = { - target_is_liege_or_above = scope:actor - } - scope:recipient.faith = { - like_islam_religion_trigger = yes - has_doctrine_parameter = sanctioned_false_conversion - } - } - add = -20 - } + # modifier = { + # desc = ASK_FOR_CONVERSION_TAQIYA + # trigger = { + # scope:recipient = { + # target_is_liege_or_above = scope:actor + # } + # scope:recipient.faith = { + # religion = religion:islam_religion + # has_doctrine_parameter = sanctioned_false_conversion + # } + # } + # add = -20 + # } - modifier = { - desc = ASK_FOR_CONVERSION_SANCTIONED_FALSE_CONVERSION - trigger = { - scope:recipient = { - target_is_liege_or_above = scope:actor - } - scope:recipient.faith = { - NOT = { like_islam_religion_trigger = yes } - has_doctrine_parameter = sanctioned_false_conversion - } - } - add = -20 - } + # modifier = { + # desc = ASK_FOR_CONVERSION_SANCTIONED_FALSE_CONVERSION + # trigger = { + # scope:recipient = { + # target_is_liege_or_above = scope:actor + # } + # scope:recipient.faith = { + # NOT = { religion = religion:islam_religion } + # has_doctrine_parameter = sanctioned_false_conversion + # } + # } + # add = -20 + # } modifier = { desc = ASK_FOR_CONVERSION_ADAPTIVENESS @@ -152,7 +167,7 @@ religion_demand_conversion_default_modifier = { } modifier = { - add = intimidated_external_reason_value + add = intimidated_halved_reason_value scope:recipient = { has_dread_level_towards = { target = scope:actor @@ -162,7 +177,7 @@ religion_demand_conversion_default_modifier = { desc = INTIMIDATED_REASON } modifier = { - add = cowed_external_reason_value + add = cowed_halved_reason_value scope:recipient = { has_dread_level_towards = { target = scope:actor @@ -190,6 +205,16 @@ religion_demand_conversion_default_modifier = { } desc = CULTURE_HARD_TO_CONVERT_REASON } + modifier = { + add = { + value = scope:recipient.piety_level + multiply = 10 + } + scope:recipient = { + piety_level > 1 + } + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_PIOUS + } # Warcraft modifier = { @@ -199,6 +224,136 @@ religion_demand_conversion_default_modifier = { } } +# If a character is asked to convert, will they practice their old faith in secret? +religion_adopt_secret_faith_modifier = { + # Honest characters are OK with keeping a secret faith if that faith condones false conversions + modifier = { + $TARGET$ = { has_trait = honest } + $FAITH$ = { + NOT = { has_doctrine_parameter = sanctioned_false_conversion } + } + add = -50 + desc = "SCHEME_TRAIT_HONEST" + } + modifier = { + $TARGET$ = { has_trait = craven } + add = -30 + desc = "SCHEME_TRAIT_CRAVEN" + } + modifier = { + $TARGET$ = { has_trait = brave } + $FORCED$ = yes + add = 15 + desc = "SCHEME_TRAIT_BRAVE" + } + modifier = { + $TARGET$ = { has_trait = zealous } + $FORCED$ = yes + desc = "SCHEME_TRAIT_ZEALOUS" + add = 30 + } + modifier = { + $TARGET$ = { has_trait = zealous } + $FORCED$ = no + add = -50 + desc = "SCHEME_TRAIT_ZEALOUS" + } + modifier = { + $TARGET$ = { has_trait = cynical } + $FORCED$ = yes + add = -30 + desc = "SCHEME_TRAIT_CYNICAL" + } + modifier = { + $TARGET$ = { has_trait = cynical } + $FORCED$ = no + add = -10 + desc = "SCHEME_TRAIT_CYNICAL" + } + modifier = { + $TARGET$ = { has_trait = stubborn } + $FORCED$ = yes + add = 10 + desc = "SCHEME_TRAIT_STUBBORN" + } + modifier = { + $TARGET$ = { has_trait = stubborn } + $FORCED$ = no + add = -15 + desc = "SCHEME_TRAIT_STUBBORN" + } + modifier = { + $TARGET$ = { has_trait = fickle } + $FORCED$ = no + add = 10 + desc = "SCHEME_TRAIT_FICKLE" + } + modifier = { + $TARGET$ = { has_trait = fickle } + $FORCED$ = yes + add = -15 + desc = "SCHEME_TRAIT_FICKLE" + } + modifier = { + $TARGET$ = { has_trait = paranoid } + add = -30 + desc = "SCHEME_TRAIT_PARANOID" + } + modifier = { + $TARGET$ = { has_trait = devoted } + $FORCED$ = yes + add = 15 + desc = "SCHEME_TRAIT_DEVOTED" + } + modifier = { + $TARGET$ = { has_trait = devoted } + $FORCED$ = no + add = -30 + desc = "SCHEME_TRAIT_DEVOTED" + } + modifier = { + $TARGET$ = { has_trait = order_member } + $FORCED$ = yes + add = 30 + desc = "SCHEME_TRAIT_ORDER_MEMBER" + } + modifier = { + $TARGET$ = { has_trait = order_member } + $FORCED$ = no + add = -30 + desc = "SCHEME_TRAIT_ORDER_MEMBER" + } + modifier = { + $TARGET$ = { has_intrigue_lifestyle_trait_trigger = yes } + desc = "SCHEME_IS_A_SCHEMER" + add = 10 + } + modifier = { + $FAITH$ = { has_doctrine_parameter = sanctioned_false_conversion } + $TARGET$ = { + NOT = { has_trait = cynical } + } + $FORCED$ = yes + desc = ASK_FOR_CONVERSION_SANCTIONED_FALSE_CONVERSION + add = 50 + } + modifier = { + $FAITH$ = { has_doctrine_parameter = sanctioned_false_conversion } + $TARGET$ = { + NOT = { has_trait = cynical } + } + $FORCED$ = no + desc = ASK_FOR_CONVERSION_SANCTIONED_FALSE_CONVERSION + add = 30 + } + modifier = { + $TARGET$ = { has_trait = trusting } + $FORCED$ = no + desc = "SCHEME_TRAIT_TRUSTING" + add = 10 + } +} + sun_trial_death_modifier = { modifier = { add = { diff --git a/common/scripted_modifiers/00_scheme_scripted_modifiers.txt b/common/scripted_modifiers/00_scheme_scripted_modifiers.txt deleted file mode 100644 index 1bb65a767e..0000000000 --- a/common/scripted_modifiers/00_scheme_scripted_modifiers.txt +++ /dev/null @@ -1,11 +0,0 @@ - -diarch_scheming_within_realm_bonus_modifier = { - modifier = { - add = 20 - desc = "DIARCH_REALM_INFLUENCE" - scope:owner = { is_diarch = yes } - scope:target = { - any_liege_or_above = { this = scope:owner.liege } - } - } -} diff --git a/common/scripted_modifiers/00_scripted_relations_scripted_modifiers.txt b/common/scripted_modifiers/00_scripted_relations_scripted_modifiers.txt deleted file mode 100644 index 42a1ea47d7..0000000000 --- a/common/scripted_modifiers/00_scripted_relations_scripted_modifiers.txt +++ /dev/null @@ -1,186 +0,0 @@ -#Scripted Modifiers used for Scripted Relations (friends, rivals, lovers etc.) - -#Will range from factor 1 (at high positive opinion for both) to factor 2 (at low positive opinion for both) -best_friend_event_weight_modifier = { - #Positive_high or higher - modifier = { - any_relation = { - type = best_friend - opinion = { - target = root - value >= high_positive_opinion - } - } - factor = 1 - } - modifier = { - any_relation = { - type = best_friend - reverse_opinion = { - target = root - value >= high_positive_opinion - } - } - factor = 1 - } - #Between positive_high and positive_medium - modifier = { - any_relation = { - type = best_friend - opinion = { - target = root - value < high_positive_opinion - value >= medium_positive_opinion - } - } - factor = 1.15 - } - modifier = { - any_relation = { - type = best_friend - reverse_opinion = { - target = root - value < high_positive_opinion - value >= medium_positive_opinion - } - } - factor = 1.15 - } - #Between positive_medium and positive_low - modifier = { - any_relation = { - type = best_friend - opinion = { - target = root - value < medium_positive_opinion - value > low_positive_opinion - } - } - factor = 1.3 - } - modifier = { - any_relation = { - type = best_friend - reverse_opinion = { - target = root - value < medium_positive_opinion - value > low_positive_opinion - } - } - factor = 1.3 - } - #positive_low or lower - modifier = { - any_relation = { - type = best_friend - opinion = { - target = root - value <= low_positive_opinion - } - } - factor = 1.4 - } - modifier = { - any_relation = { - type = best_friend - reverse_opinion = { - target = root - value <= low_positive_opinion - } - } - factor = 1.4 - } -} - -nemesis_event_weight_modifier = { - #Negative_high or lower - modifier = { - any_relation = { - type = nemesis - opinion = { - target = root - value <= high_negative_opinion - } - } - factor = 1 - } - modifier = { - any_relation = { - type = nemesis - reverse_opinion = { - target = root - value <= high_negative_opinion - } - } - factor = 1 - } - #Between negative_high and negative_medium - modifier = { - any_relation = { - type = nemesis - opinion = { - target = root - value > high_negative_opinion - value <= medium_negative_opinion - } - } - factor = 1.15 - } - modifier = { - any_relation = { - type = nemesis - reverse_opinion = { - target = root - value > high_negative_opinion - value <= medium_negative_opinion - } - } - factor = 1.15 - } - #Between negative_medium and negative_low - modifier = { - any_relation = { - type = nemesis - opinion = { - target = root - value > medium_negative_opinion - value < low_negative_opinion - } - } - factor = 1.3 - } - modifier = { - any_relation = { - type = nemesis - reverse_opinion = { - target = root - value > medium_negative_opinion - value < low_negative_opinion - } - } - factor = 1.3 - } - #low_negative_opinion or higher - modifier = { - any_relation = { - type = nemesis - opinion = { - target = root - value >= low_negative_opinion - } - } - factor = 1.4 - } - modifier = { - any_relation = { - type = nemesis - reverse_opinion = { - target = root - value >= low_negative_opinion - } - } - factor = 1.4 - } -} - - diff --git a/common/scripted_modifiers/00_single_combat_scripted_modifiers.txt b/common/scripted_modifiers/00_single_combat_scripted_modifiers.txt deleted file mode 100644 index 2074bdbc2b..0000000000 --- a/common/scripted_modifiers/00_single_combat_scripted_modifiers.txt +++ /dev/null @@ -1,59 +0,0 @@ -sce_timid_personality_scripted_modifier = { - ai_value_modifier = { - ai_boldness = -0.25 - ai_vengefulness = -0.25 - } -} - -sce_preferred_timid_personality_scripted_modifier = { - ai_value_modifier = { - ai_boldness = -0.50 - ai_vengefulness = -0.50 - } -} - -sce_rational_personality_scripted_modifier = { - ai_value_modifier = { ai_rationality = 0.5 } -} - -sce_preferred_rational_personality_scripted_modifier = { - ai_value_modifier = { ai_rationality = 1 } -} - -sce_aggressive_personality_scripted_modifier = { - ai_value_modifier = { - ai_boldness = 0.25 - ai_vengefulness = 0.25 - } -} - -sce_preferred_aggressive_personality_scripted_modifier = { - ai_value_modifier = { - ai_boldness = 0.75 - ai_vengefulness = 0.75 - } -} - -sce_enjoys_arrogant_speeches_scripted_modifier = { - ai_value_modifier = { - ai_sociability = 0.25 - ai_vengefulness = 0.25 - ai_rationality = -0.25 - } -} - -sce_shrewd_fighter_scripted_modifier = { - ai_value_modifier = { - ai_rationality = 0.25 - ai_energy = 0.25 - ai_boldness = 0.25 - } -} - -sce_preferred_shrewd_fighter_scripted_modifier = { - ai_value_modifier = { - ai_rationality = 0.5 - ai_energy = 0.5 - ai_boldness = 0.5 - } -} \ No newline at end of file diff --git a/common/scripted_modifiers/00_spouse_scripted_modifiers.txt b/common/scripted_modifiers/00_spouse_scripted_modifiers.txt deleted file mode 100644 index 937b1de2a5..0000000000 --- a/common/scripted_modifiers/00_spouse_scripted_modifiers.txt +++ /dev/null @@ -1 +0,0 @@ -#Scripted modifiers used for Spouse events \ No newline at end of file diff --git a/common/scripted_modifiers/00_statecraft_lifestyle_scripted_modifiers.txt b/common/scripted_modifiers/00_statecraft_lifestyle_scripted_modifiers.txt deleted file mode 100644 index faca683ce9..0000000000 --- a/common/scripted_modifiers/00_statecraft_lifestyle_scripted_modifiers.txt +++ /dev/null @@ -1,14 +0,0 @@ -#Scripted Modifiers used for Statecraft Lifestyle events -governance_ongoing_4082_vassal_weight_modifier = { - compare_modifier = { - factor = this.$AI_PERSONALITY$ - multiplier = 0.1 - } - compare_modifier = { - factor = highest_held_title_tier - } - modifier = { - is_powerful_vassal_of = prev - factor = 2 - } -} \ No newline at end of file diff --git a/common/scripted_modifiers/00_trait_specific_scripted_modifiers.txt b/common/scripted_modifiers/00_trait_specific_scripted_modifiers.txt deleted file mode 100644 index a98dc417b5..0000000000 --- a/common/scripted_modifiers/00_trait_specific_scripted_modifiers.txt +++ /dev/null @@ -1,13 +0,0 @@ -################################################## -# #Poet Scripted Modifiers - -trait_specific_poet_good_relations_modifier = { - # If scope:recipient has a certain amount of positive opinion, make it basically guaranteed they'll pick this option. - modifier = { - add = 10000 - opinion = { - target = scope:actor - value >= high_positive_opinion - } - } -} diff --git a/common/scripted_modifiers/00_weather_modifiers.txt b/common/scripted_modifiers/00_weather_modifiers.txt deleted file mode 100644 index e579acc2b0..0000000000 --- a/common/scripted_modifiers/00_weather_modifiers.txt +++ /dev/null @@ -1,35 +0,0 @@ -################################################## -# Winter Triggers -county_has_snow_suitable_for_activities = { - # Weight down for both the lightest & most extreme winters. - modifier = { - add = -0.25 - title_province = { has_province_modifier = winter_mild_modifier } - } - modifier = { - add = -0.25 - title_province = { has_province_modifier = winter_harsh_modifier } - } - # Weight up a little for winters that are decently snowy without being too cold. - modifier = { - add = 0.5 - title_province = { has_province_modifier = winter_normal_modifier } - } -} - -character_capital_has_snow_suitable_for_activities = { - # Weight down for both the lightest & most extreme winters. - modifier = { - add = -0.25 - $CHARACTER$.capital_county.title_province = { has_province_modifier = winter_mild_modifier } - } - modifier = { - add = -0.25 - $CHARACTER$.capital_county.title_province = { has_province_modifier = winter_harsh_modifier } - } - # Weight up a little for winters that are decently snowy without being too cold. - modifier = { - add = 0.5 - $CHARACTER$.capital_county.title_province = { has_province_modifier = winter_normal_modifier } - } -} diff --git a/common/scripted_modifiers/00_yearly_events_scripted_modifiers.txt b/common/scripted_modifiers/00_yearly_events_scripted_modifiers.txt deleted file mode 100644 index 0e73b709e3..0000000000 --- a/common/scripted_modifiers/00_yearly_events_scripted_modifiers.txt +++ /dev/null @@ -1,38 +0,0 @@ -#Scripted Modifiers used for Statecraft Lifestyle events -yearly_event_0001_skill_differential_modifier = { - modifier = { - $SKILL_RATING$ > $LIEGE_SKILL_RATING$ - add = 10 - } -# compare_modifier = { -# value = $SKILL_RATING$ -# multiplier = 1 -# } -# compare_modifier = { -# value = $LIEGE_SKILL_RATING -# multiplier = -1 -# } -# compare_modifier = { -# factor = $SKILL_RATING -# multiplier = 1 -# } -} - -yearly_0001_success_modifier = { - compare_modifier = { - value = learning - multiplier = 1 - } - modifier = { - factor = 0.5 - $SKILL$ > medium_skill_rating - } - modifier = { - factor = 0.5 - $SKILL$ > decent_skill_rating - } - modifier = { - $SKILL$ > high_skill_rating - factor = 0 - } -} \ No newline at end of file diff --git a/common/scripted_modifiers/01_fp1_scripted_modifiers.txt b/common/scripted_modifiers/01_fp1_scripted_modifiers.txt deleted file mode 100644 index ace957f198..0000000000 --- a/common/scripted_modifiers/01_fp1_scripted_modifiers.txt +++ /dev/null @@ -1,27 +0,0 @@ -################################################## -# #Jomsviking Scripted Modifiers - -fp1_jomsvikings_approve_of_extra_piety_and_prestige_modifier = { - # Weight up for extra piety levels. - modifier = { - add = 0.5 - piety_level >= very_high_piety_level - } - modifier = { - add = 0.25 - piety_level >= max_piety_level - } - # Weight up a little for extra prestige. - modifier = { - add = 0.25 - prestige_level >= high_prestige_level - } - modifier = { - add = 0.25 - prestige_level >= very_high_prestige_level - } - modifier = { - add = 0.25 - prestige_level >= max_prestige_level - } -} diff --git a/common/scripted_modifiers/02_ep1_scripted_modifiers.txt b/common/scripted_modifiers/02_ep1_scripted_modifiers.txt deleted file mode 100644 index 71124b9d14..0000000000 --- a/common/scripted_modifiers/02_ep1_scripted_modifiers.txt +++ /dev/null @@ -1,109 +0,0 @@ -################################################## -# #Event Modifiers - -ep1_weight_up_for_court_type_modifier = { - # Weight up for having an appropriate court type. - modifier = { - add = 1 - has_royal_court = yes - has_court_type = $COURT_TYPE$ - } -} - -# Avoid giving nicknames another vassal has -ep1_pay_homage_nickname_taken_modifier = { - modifier = { - factor = 0 - scope:homage_liege = { - OR = { - any_vassal = { has_nickname = nick_$NICK$ } - any_courtier = { has_nickname = nick_$NICK$ } - } - } - } -} - -ep1_2020_maa_regiment_modifier = { - modifier = { - factor = 20 - number_maa_regiments_of_base_type = { type = $TYPE$ value >= 8 } - } - modifier = { - factor = 5 - number_maa_regiments_of_base_type = { type = $TYPE$ value >= 4 } - } -} - -ep1_make_mendicants_likely_modifier = { - # Virtues attract mendicants. - modifier = { - add = 0.25 - num_virtuous_traits = 1 - } - modifier = { - add = 0.5 - num_virtuous_traits = 2 - } - modifier = { - add = 1 - num_virtuous_traits >= 3 - } - # As does a scholarly or theological disposition. - modifier = { - add = 0.5 - has_trait = scholar - } - modifier = { - add = 0.5 - has_trait = theologian - } - # Plus some court types are a bit more attractive too. - modifier = { - add = 0.25 - has_royal_court = yes - OR = { - has_court_type = court_diplomatic - has_court_type = court_scholarly - } - } - # Aaaaand doubling up makes all this much more frequent. - modifier = { - add = 0.75 - faith = { has_doctrine_parameter = mendicant_preachers_conversion_active } - culture = { has_cultural_parameter = mendicant_mystics_may_appear } - } -} - -################################################## -# #Artefact Modifiers - -ep1_chance_stealing_damaging_artifacts_modifier = { - modifier = { - add = { - value = 0 - # Increases chances based on how many artifacts are stored - $TARGET$ = { - every_character_artifact = { - limit = { - OR = { - is_equipped = no - ep1_artifact_is_court_artifact_trigger = yes - } - } - add = 10 - } - } - # Lower chances based on Antiquarian aptitude - multiply = { - value = 1 - $TARGET$ = { - every_court_position_holder = { - type = antiquarian_court_position - limit = { is_available_ai_adult = yes } - divide = this.aptitude:antiquarian_court_position - } - } - } - } - } -} diff --git a/common/scripted_modifiers/05_fp3_scripted_modifiers.txt b/common/scripted_modifiers/05_fp3_scripted_modifiers.txt new file mode 100644 index 0000000000..28ce15d71f --- /dev/null +++ b/common/scripted_modifiers/05_fp3_scripted_modifiers.txt @@ -0,0 +1,380 @@ +############################################################################## +###### UNITY +############################################################################## + + +evaluate_action_decreasing_house_unity = { + modifier = { + desc = DECREASE_UNITY_DESC + scope:actor = { + government_has_flag = government_is_clan + exists = scope:recipient.house + house ?= scope:recipient.house + } + add = { + value = $VALUE$ # The value is set by the content calling the unity effect; we want it to be alligned with the other modifiers + # Then different parameters apply a factor on the value + + ### Personality + # Warmonger and Ambitious AI wants a low unity to expand while peaceful and economy focused wants Harmonious + if = { + limit = { ai_wants_high_unity = yes } + multiply = 0.8 + } + else_if = { + limit = { ai_wants_low_unity = yes } + multiply = 1.2 + } + + ### House Head related + # Do I want to take the title? + if = { + limit = { + # if you are aboe impassive, you really want to lower unity + house ?= { + OR = { + has_house_unity_stage = harmonious + has_house_unity_stage = friendly + has_house_unity_stage = impassive + + } + } + # only valid for some personnality, and not the heir of the current house head + AND = { + OR = { + has_trait = ambitious + has_trait = deceitful + has_trait = greedy + } + NOT = { is_heir_of = house.house_head } + } + + } + multiply = 1.2 + } + + ### Struggle + + ### Current Unity state + # lower the overall weight if unity is already low: you don't care of lowering unity if you are at 0 + if = { + limit = { + house ?= { + has_house_unity_stage = harmonious + } + } + multiply = 1.2 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = friendly + } + } + multiply = 1.1 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = competitive + } + } + multiply = 0.9 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = antagonistic + } + } + multiply = { + value = 0.8 + if = { + limit = { + house ?= { house_unity_value <= critical_house_unity } + } + multiply = 0.5 + } + } + } + } + } +} + +evaluate_action_increasing_house_unity = { + modifier = { + desc = INCREASE_UNITY_DESC + scope:actor = { + government_has_flag = government_is_clan + house ?= scope:recipient.house + } + add = { + value = $VALUE$ # The value is set by the content calling the unity effect; we want it to be alligned with the other modifiers + # Then different parameters apply a factor on the value + + ### Personality + # Warmonger and Ambitious AI wants a low unity to expand while peaceful and economy focused wants Harmonious + if = { + limit = { ai_wants_high_unity = yes } + multiply = 1.2 + } + else_if = { + limit = { ai_wants_low_unity = yes } + multiply = 0.8 + } + + ### House Head related + # Do I want to be rescued if outside of the realm + if = { + limit = { + # if you are under impassive, you really want to increase unity + house ?= { + OR = { + has_house_unity_stage = antagonistic + has_house_unity_stage = competitive + has_house_unity_stage = impassive + + } + } + # only valid for people outside of their liege realm + NOR ={ + house.house_head = top_liege + house.house_head = liege + } + + } + multiply = 1.2 + } + + ### Struggle + + + ### Current Unity state + # lower the overall weight if unity is already high: you don't care of increasing unity if you are at 100 + if = { + limit = { + house ?= { + has_house_unity_stage = antagonistic + } + } + multiply = 1.2 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = competitive + } + } + multiply = 1.1 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = friendly + } + } + multiply = 0.9 + } + else_if = { + limit = { + house ?= { + has_house_unity_stage = harmonious + } + } + multiply = { + value = { + add = 0.8 + if = { + limit = { + house ?= { house_unity_value >= very_high_house_unity } + } + multiply = 0.5 + } + } + } + } + } + } +} + +fp3_challenge_house_head_negotiation_bargain_modifier = { + ai_value_modifier = { + who = scope:recipient + ai_energy = -0.25 + ai_boldness = -0.25 + ai_greed = 0.25 + ai_rationality = 0.25 + } +} + +fp3_challenge_house_head_negotiation_reject_modifier = { + opinion_modifier = { + who = scope:recipient + opinion_target = scope:actor + multiplier = -0.25 + } + ai_value_modifier = { + who = scope:recipient + ai_energy = 0.5 + ai_boldness = 0.5 + ai_greed = 0.5 + ai_rationality = 0.5 + ai_honor = 0.25 + } +} + +fp3_challenge_house_head_negotiation_strength_modifier = { + # Vassal + modifier = { + $OTHER$ = { is_vassal_or_below_of = $CHARACTER$ } + add = 5 + } + # Tier + modifier = { + add = { + value = $CHARACTER$.highest_held_title_tier + multiply = 2 + } + } + # Military + modifier = { + add = { + value = $CHARACTER$.max_military_strength + divide = 1000 + multiply = 2 + } + } +} + +################################################## +# #Struggle Modifiers + +fp3_struggle_0001_change_sides_weight_modifier = { + # Weight up for dukes. + modifier = { + add = 50 + highest_held_title_tier = tier_duchy + } + # Weight up for kings & emperors. + modifier = { + add = 100 + highest_held_title_tier >= tier_kingdom + } +} + +fp3_struggle_resist_allied_wars_modifier = { + modifier = { # Opposing struggle sides don't want to join. + add = -100 + always = no + desc = WONT_HELP_STRUGGLE_FOE_REASON + } +} + +################################################## +# #Decision Modifiers + +fp3_misc_decisions_0031_preferred_cultrads_modifier = { + # Weight up for some traditions. + ## Always. + modifier = { + add = 2 + culture = { has_cultural_tradition = tradition_xenophilic } + } + modifier = { + add = 2 + culture = { has_cultural_tradition = tradition_loyal_soldiers } + } + modifier = { + add = 2 + culture = { has_cultural_tradition = tradition_parochialism } + } + modifier = { + add = 1 + culture = { has_cultural_tradition = tradition_culture_blending } + } + modifier = { + add = 1 + culture = { has_cultural_tradition = tradition_talent_acquisition } + } + modifier = { + add = 1 + culture = { has_cultural_tradition = tradition_welcoming } + } + ## Circumstantial. + ### Eloquent Captains + modifier = { + add = 1 + scope:outsider_diplomacy_martial = yes + culture = { has_cultural_tradition = tradition_astute_diplomats } + } + modifier = { + add = 1 + scope:outsider_diplomacy_martial = yes + culture = { has_cultural_tradition = tradition_fp2_state_ransoming } + } + ### Career Soldiers + modifier = { + add = 1 + scope:outsider_martial_prowess = yes + culture = { has_cultural_tradition = tradition_fp2_state_ransoming } + } + ### Fringe Nobility + modifier = { + add = 1 + scope:outsider_prowess_learning = yes + culture = { has_cultural_tradition = tradition_astute_diplomats } + } + modifier = { + add = 1 + scope:outsider_prowess_learning = yes + culture = { has_cultural_tradition = tradition_fp2_state_ransoming } + } + ### Dedicated Functionaries + modifier = { + add = 1 + scope:outsider_learning_intrigue = yes + culture = { has_cultural_tradition = tradition_legalistic } + } + modifier = { + add = 1 + scope:outsider_learning_intrigue = yes + culture = { has_cultural_tradition = tradition_monastic_communities } + } + ### Cunning Officials + modifier = { + add = 1 + scope:outsider_intrigue_stewardship = yes + culture = { has_cultural_tradition = tradition_legalistic } + } + modifier = { + add = 1 + scope:outsider_intrigue_stewardship = yes + culture = { has_cultural_tradition = tradition_maritime_mercantilism } + } + modifier = { + add = 1 + scope:outsider_intrigue_stewardship = yes + culture = { has_cultural_tradition = tradition_monastic_communities } + } + ### Skilled Administrators + modifier = { + add = 1 + scope:outsider_stewardship_diplomacy = yes + culture = { has_cultural_tradition = tradition_legalistic } + } + modifier = { + add = 1 + scope:outsider_stewardship_diplomacy = yes + culture = { has_cultural_tradition = tradition_monastic_communities } + } + # And weight down for others. + ## Always. + modifier = { + add = -3 + culture = { has_cultural_tradition = tradition_isolationist } + } + modifier = { + add = -1 + culture = { has_cultural_tradition = tradition_quarrelsome } + } +} diff --git a/common/scripted_relations/00_scripted_relations.txt b/common/scripted_relations/00_scripted_relations.txt index 315a9147cf..6c258e2980 100644 --- a/common/scripted_relations/00_scripted_relations.txt +++ b/common/scripted_relations/00_scripted_relations.txt @@ -14,7 +14,10 @@ } opinion = 60 - flags = { has_been_confided_in } + flags = { + has_been_confided_in + vizierate_relation + } } best_friend = { @@ -35,7 +38,10 @@ best_friend = { relation_aliases = { friend } opinion = 120 - flags = { has_been_confided_in } + flags = { + has_been_confided_in + vizierate_relation + } } rival = { @@ -49,6 +55,8 @@ rival = { } corresponding = rival opinion = -60 + + flags = { vizierate_relation } } nemesis = { @@ -67,6 +75,8 @@ nemesis = { relation_aliases = { rival } corresponding = nemesis opinion = -120 + + flags = { vizierate_relation } } mentor = { @@ -185,11 +195,13 @@ intrigue_student = { potential_friend = { hidden = yes corresponding = potential_friend + flags = { vizierate_relation } } potential_rival = { hidden = yes corresponding = potential_rival + flags = { vizierate_relation } } potential_lover = { diff --git a/common/scripted_triggers/00_activity_triggers.txt b/common/scripted_triggers/00_activity_triggers.txt deleted file mode 100644 index 3e16ff87a7..0000000000 --- a/common/scripted_triggers/00_activity_triggers.txt +++ /dev/null @@ -1,658 +0,0 @@ -is_available_for_activity_trigger = { - NOT = { exists = involved_activity } - is_adult = yes - OR = { - is_ai = no - is_busy_in_events_unlocalised = no - } - is_at_war = no - is_imprisoned = no - is_healthy = yes - NOR = { - exists = var:booked_for_a_party - exists = var:engaged_in_single_combat - } -} - -is_available_for_child_activity_trigger = { - NOT = { exists = involved_activity } - is_adult = no - age >= 4 - OR = { - is_ai = no - is_busy_in_events_unlocalised = no - } - is_at_war = no - is_imprisoned = no - is_hostage = no - is_healthy = yes - NOR = { - exists = var:hostage_travelling_to_warden - exists = var:ward_travelling_to_guardian - } -} - -is_available_in_activity_trigger = { - exists = involved_activity - is_adult = yes - OR = { - is_ai = no - is_busy_in_events_unlocalised = no - } - is_at_war = no - is_imprisoned = no - is_healthy = yes -} - -### Witch Ritual -activity_witch_ritual_valid_trigger = { - exists = house - house = { - has_house_modifier = witch_coven - any_house_member = { - NOT = { this = root } - is_witch_known_by_trigger = { CHARACTER = root } - } - } -} - -### Petition Liege triggers - -# Council Seat -petition_liege_council_seat_trigger = { - liege = { - OR = { - AND = { - exists = cp:councillor_chancellor - cp:councillor_chancellor = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = root.liege } - } - } - } - AND = { - exists = cp:councillor_marshal - cp:councillor_marshal = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = root.liege } - } - } - } - AND = { - exists = cp:councillor_steward - cp:councillor_steward = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = root.liege } - } - } - } - AND = { - exists = cp:councillor_spymaster - cp:councillor_spymaster = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = root.liege } - } - } - } - trigger_if = { - limit = { root.faith = root.liege.faith } - root.faith = { has_doctrine = doctrine_clerical_succession_temporal_appointment } - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = root.liege } - } - } - } - NOT = { exists = cp:councillor_chancellor } - NOT = { exists = cp:councillor_marshal } - NOT = { exists = cp:councillor_steward } - NOT = { exists = cp:councillor_spymaster } - trigger_if = { - limit = { root.faith = root.liege.faith } - root.faith = { has_doctrine = doctrine_clerical_succession_temporal_appointment } - NOT = { exists = cp:councillor_court_chaplain } - } - } - } -} - -petition_liege_council_chaplain_appointable_trigger = { - scope:petition_liege.faith = { has_doctrine = doctrine_clerical_succession_temporal_appointment } - scope:petition_liege.faith = scope:petition_vassal.faith -} - -petition_liege_councillor_second_trigger = { - NOT = { scope:petition_vassal.var:petition_liege_council_first = flag:$ROLE$ } - trigger_if = { - limit = { exists = scope:petition_liege.cp:councillor_$ROLE$ } - OR = { - scope:petition_vassal.$SKILL$ >= scope:petition_liege.cp:councillor_$ROLE$.$SKILL$ - scope:petition_vassal = { has_trait = education_$SKILL$ } - } - } - trigger_else = { scope:petition_vassal.$SKILL$ >= mediocre_skill_rating } -} - -petition_liege_councillor_blocked_trigger = { - scope:petition_vassal = { - can_be_$ROLE$_trigger = { COURT_OWNER = scope:petition_liege } - } - trigger_if = { - limit = { exists = scope:petition_liege.cp:councillor_$ROLE$ } - scope:petition_liege.cp:councillor_$ROLE$ = { - NOT = { - is_blocked_from_being_fired_from_council_trigger = { COURT_OWNER = scope:petition_liege } - } - } - } -} - -# Pay Debt -petition_liege_pay_debt_trigger = { - debt_level > -1 - liege.debt_level = -1 -} - -# War Aid -petition_liege_war_aid_trigger = { - is_at_war = yes - save_temporary_scope_as = vassal - any_character_war = { - scope:vassal = { is_leader_in_war = prev } - trigger_if = { - limit = { - scope:vassal = { is_attacker_in_war = prev } - } - defender_war_score >= petition_war_aid_score_value - } - trigger_else = { attacker_war_score >= petition_war_aid_score_value } - } -} - -petition_liege_war_liege_involvement_trigger = { - liege = { - NOR = { - any_character_war = { - root.liege = { is_leader_in_war = prev } - trigger_if = { - limit = { - root.liege = { is_defender_in_war = prev } - } - OR = { - primary_attacker.primary_title.tier >= root.liege.primary_title.tier - petition_liege_attacker_strength_value > petition_war_aid_liege_ally_advantage_value - } - } - trigger_else = { - OR = { - primary_attacker.primary_title.tier >= root.liege.primary_title.tier - petition_liege_attacker_strength_value > petition_war_aid_liege_ally_advantage_value - } - } - } - is_in_ongoing_great_holy_war = yes - } - } -} - -petition_liege_war_aid_share_trigger = { - NOT = { - any_character_war = { - root = { is_leader_in_war = prev } - any_war_participant = { this = root.liege } - } - } -} - -# Vassal War -petition_liege_vassal_war_trigger = { - any_character_war = { - root = { is_leader_in_war = prev } # root is a war leader - primary_attacker.liege = primary_defender.liege # War is between vassals of the same liege - NOT = { - root.liege = { is_participant_in_war = prev } # Liege is not involved in the war - } - } -} - -# Control -petition_liege_county_control_trigger = { - tier = tier_county - trigger_if = { - limit = { tier = tier_county } - county_control < medium_county_control - } -} - -# Convert -petition_liege_county_convert_trigger = { - tier = tier_county - trigger_if = { - limit = { tier = tier_county } - NOT = { county.faith = holder.faith } - } -} - -# Opinion -petition_liege_county_opinion_trigger = { - tier = tier_county - trigger_if = { - limit = { tier = tier_county } - county_opinion <= petition_county_opinion_value - } -} - -# Fortify -petition_liege_fortify_border_trigger = { - tier = tier_county - trigger_if = { - limit = { tier = tier_county } - county = { - save_temporary_scope_as = county_scope - any_title_to_title_neighboring_county = { - NOT = { holder.top_liege = scope:county_scope.holder.top_liege } # petition_liege - NOT = { - holder.top_liege = { is_allied_to = scope:county_scope.holder.top_liege } # petition_liege - } - } - } - } -} - -# Liege Title -petition_liege_title_liege_trigger = { - holder = prev.liege - NOT = { THIS = prev.liege.primary_title } - tier < prev.liege.primary_title.tier - trigger_if = { - limit = { exists = county } - NOT = { county = holder.capital_county } - } - OR = { - tier > tier_county - holder = { - any_held_title = { - count > 1 - tier = tier_county - } - } - } -} - -# Vassal Title -petition_liege_title_vassal_trigger = { - exists = holder - holder = { save_temporary_scope_as = second_temp } - OR = { - scope:second_temp.liege = prev.liege - scope:second_temp.liege.liege = prev.liege - scope:second_temp.liege.liege.liege = prev.liege - } - NOR = { - scope:second_temp = prev.liege - has_variable = petition_title_cooldown - scope:second_temp = { is_at_war = yes } - prev.liege = { - any_targeting_faction = { - any_faction_member = { this = scope:second_temp } - } - } - } - #trigger_if = { - # limit = { exists = county } - # NOT = { county = holder.capital_county } - #} - scope:second_temp = { - trigger_if = { - limit = { government_has_flag = government_is_feudal } - NOT = { vassal_contract_obligation_level_can_be_decreased = title_revocation_rights } - } - } - OR = { - tier > tier_county - scope:second_temp = { - any_held_title = { - count > 1 - tier = tier_county - } - } - } -} - -# Construct City -petition_liege_construct_city_trigger = { - county_has_empty_province_trigger = yes - OR = { - county_has_no_city_trigger = yes - county_has_all_holding_types = yes - } -} - -# Construct Temple -petition_liege_construct_temple_trigger = { - county_has_empty_province_trigger = yes - OR = { - county_has_no_church_trigger = yes - county_has_all_holding_types = yes - } -} - -# AI weightings -petition_liege_medium_cost_trigger = { - exists = scope:petition_vassal - scope:petition_vassal = { has_variable = petition_type } - OR = { - trigger_if = { - limit = { scope:petition_vassal.var:petition_type = flag:pay_debt } - scope:petition_vassal.debt_level < 3 - } - scope:petition_vassal.var:petition_type = flag:war_aid - scope:petition_vassal.var:petition_type = flag:vassal_war - scope:petition_vassal.var:petition_type = flag:title_vassal - trigger_if = { - limit = { scope:petition_vassal.var:petition_type = flag:war_aid } - petitioner_war_aid_levies_cost_value > scope:petition_liege.medium_gold_value - } - } -} - -petition_liege_high_cost_trigger = { - exists = scope:petition_vassal - scope:petition_vassal = { has_variable = petition_type } - OR = { - trigger_if = { - limit = { scope:petition_vassal.var:petition_type = flag:pay_debt } - scope:petition_vassal.debt_level >= 3 - } - scope:petition_vassal.var:petition_type = flag:title_liege - scope:petition_vassal.var:petition_type = flag:construct_city - scope:petition_vassal.var:petition_type = flag:construct_temple - scope:petition_vassal.var:petition_type = flag:development - trigger_if = { - limit = { scope:petition_vassal.var:petition_type = flag:war_aid } - petitioner_war_aid_levies_cost_value > scope:petition_liege.major_gold_value - } - } -} - -petition_liege_likes_trigger = { - exists = $COMPARE$ - OR = { - has_relation_friend = $COMPARE$ - has_relation_best_friend = $COMPARE$ - has_relation_soulmate = $COMPARE$ - has_relation_lover = $COMPARE$ - is_close_family_of = $COMPARE$ - opinion = { - target = $COMPARE$ - value >= 50 - } - } -} - -petition_liege_dislikes_trigger = { - exists = $COMPARE$ - OR = { - has_relation_rival = $COMPARE$ - has_relation_nemesis = $COMPARE$ - opinion = { - target = $COMPARE$ - value <= -50 - } - } -} - -# Character is not already involved in the event e.g. claim target, incumbent councillor, etc. -petition_liege_skiller_trigger = { - is_available_adult = yes - - trigger_if = { - limit = { exists = scope:second_party } - NOT = { this = scope:second_party } - } - trigger_if = { - limit = { exists = scope:vassal_claimant } - NOT = { this = scope:vassal_claimant } - } - trigger_if = { - limit = { exists = scope:second_councillor } - NOT = { this = scope:second_councillor } - } - trigger_if = { - limit = { exists = scope:diplomacy_check } - NOT = { this = scope:diplomacy_check } - } - trigger_if = { - limit = { exists = scope:martial_check } - NOT = { this = scope:martial_check } - } - trigger_if = { - limit = { exists = scope:stewardship_check } - NOT = { this = scope:stewardship_check } - } - trigger_if = { - limit = { exists = scope:intrigue_check } - NOT = { this = scope:intrigue_check } - } - trigger_if = { - limit = { exists = scope:learning_check } - NOT = { this = scope:learning_check } - } - trigger_if = { - limit = { exists = scope:petition_vassal } - NOT = { this = scope:petition_vassal } - } -} - -# Has a councillor or spouse who is not involved in the event already -petition_liege_has_main_skiller_trigger = { - scope:petition_liege = { - OR = { - trigger_if = { - limit = { exists = cp:councillor_chancellor } - cp:councillor_chancellor = { petition_liege_skiller_trigger = yes } - } - trigger_else = { always = no } - - trigger_if = { - limit = { exists = cp:councillor_marshal } - cp:councillor_marshal = { petition_liege_skiller_trigger = yes } - } - trigger_else = { always = no } - - trigger_if = { - limit = { exists = cp:councillor_steward } - cp:councillor_steward = { petition_liege_skiller_trigger = yes } - } - trigger_else = { always = no } - - trigger_if = { - limit = { exists = cp:councillor_spymaster } - cp:councillor_spymaster = { petition_liege_skiller_trigger = yes } - } - trigger_else = { always = no } - - trigger_if = { - limit = { exists = cp:councillor_court_chaplain } - cp:councillor_court_chaplain = { petition_liege_skiller_trigger = yes } - } - trigger_else = { always = no } - - trigger_if = { - limit = { - is_married = yes - exists = primary_spouse - } - primary_spouse = { - is_landed = no - petition_liege_skiller_trigger = yes - exists = scope:petition_vassal - NOT = { - any_relation = { this = scope:petition_vassal } - } - } - } - trigger_else = { always = no } - } - } -} - -# Character can be a wildcard, due to their existing relationship with petitioner -petition_liege_wildcard_trigger = { - OR = { - has_relation_friend = scope:petition_vassal - has_relation_best_friend = scope:petition_vassal - has_relation_lover = scope:petition_vassal - has_relation_soulmate = scope:petition_vassal - opinion = { - target = scope:petition_vassal - value >= 50 - } - } -} - -# No more than 2 skill check options already exist -petition_liege_skillcheck_limit = { - calc_true_if = { - amount < 2 - exists = scope:diplomacy_check - exists = scope:martial_check - exists = scope:stewardship_check - exists = scope:intrigue_check - exists = scope:learning_check - } -} - -# Character is valid councillor and invalid wildcard -petition_liege_skiller_no_wildcard_trigger = { - petition_liege_skiller_trigger = yes - petition_liege_wildcard_trigger = no -} - -# Character has some way to be placated by liege -petition_liege_relation_favor_trigger = { - can_add_hook = { - type = favor_hook - target = scope:petition_liege - } - OR = { - has_relation_friend = scope:petition_liege - has_relation_best_friend = scope:petition_liege - has_relation_lover = scope:petition_liege - has_relation_soulmate = scope:petition_liege - } -} - -# For picking which council position to offer -petition_liege_councillor_replace_weight_trigger = { - AND = { - scope:petition_vassal = { has_variable = petition_liege_council_first } - scope:petition_vassal.var:petition_liege_council_first = flag:$JOB$ - OR = { - NOT = { has_councillor_for_skill = $SKILL$ } - AND = { - exists = scope:second_party - scope:petition_vassal.$SKILL$ > scope:second_party.$SKILL$ - } - } - } -} - -# Petition is still valid -petition_liege_valid_trigger = { - is_alive = yes - is_imprisoned = no - has_variable = petition_liege_scope - liege = var:petition_liege_scope - var:petition_liege_scope = { - is_imprisoned = no - has_royal_court = yes - } -} - -adventurer_potential_destination_distance_check = { - #This is made to be used inside set_adventure_location_effect - it relies on the scope it is being run in being the adventurer - #Also expects $REGION$ - any_county_in_region = { - region = $REGION$ - trigger_if = { - limit = { - prev.adventure_inspiration_average_skill_value >= high_inspiration_skill - } - NOT = { - prev.location = { - geographical_region = $REGION$ - } - } #Highly skilled adventurers can travel anywhere - and will not pick the region they are already in - } - trigger_else_if = { - limit = { - prev.adventure_inspiration_average_skill_value >= medium_inspiration_skill - } - squared_distance = { - target = prev.location - value <= medium_adventure_max_length - } - } - trigger_else = { - #low_inspiration_skill - squared_distance = { - target = prev.location - value < short_adventure_max_length - } - } - } -} - -activity_invite_rule_trigger = { - is_adult = yes - is_imprisoned = no - in_diplomatic_range = root -} - -considers_social_presence_a_gift_to_other_trigger = { - has_trait = improvident - OR = { - has_trait = gregarious - has_trait = arrogant - } -} - -not_hosting_a_murder_feast = { - trigger_if = { - limit = { - this = scope:host - scope:activity = { - has_activity_type = activity_feast - } - } - scope:activity = { - NOT = { - has_activity_option = { - category = special_type - option = feast_type_murder - } - } - } - } - trigger_else = { - always = yes - } -} - -factor_zero_if_entitled_to_freebie_activity_trigger = { - dynasty ?= { has_dynasty_perk = ep2_activities_legacy_5 } - this = house.house_head - NOT = { has_variable = ep2_activities_legacy_5_had_freebie } -} - -# to be run in activity scope -has_attending_activity_guests = { - # We have more than one attending character - # Host always attends so we ignore them - any_attending_character = { - count > 1 # 1 includes the host who always attends - } -} - diff --git a/common/scripted_triggers/00_adultery_triggers.txt b/common/scripted_triggers/00_adultery_triggers.txt deleted file mode 100644 index 44f96edc50..0000000000 --- a/common/scripted_triggers/00_adultery_triggers.txt +++ /dev/null @@ -1,131 +0,0 @@ -# This character is publicly known for cheating on the SPOUSE -exposed_cheating_on_spouse_trigger = { #Is a publicly known cheater against spouse - OR = { - reverse_has_opinion_modifier = { - modifier = unfaithful_spouse_exposed_opinion - target = $SPOUSE$ - } - AND = { - has_variable = std_from_unfaithfulness_against - var:std_from_unfaithfulness_against = $SPOUSE$ - } - } -} - -would_attempt_to_seduce_trigger = { - is_adult = yes - age <= 50 - # Already interested or not a relation - trigger_if = { - limit = { - any_relation = { this = $CHARACTER$ } - } - OR = { - has_relation_potential_lover = $CHARACTER$ - has_relation_crush = $CHARACTER$ - } - } - # Not married - NOT = { is_consort_of = $CHARACTER$ } - OR = { - # Pre-existing schemes - is_scheming_against = { - target = $CHARACTER$ - type = seduce - } - is_scheming_against = { - target = $CHARACTER$ - type = courting - } - AND = { - # Sexuality - is_attracted_to_gender_of = $CHARACTER$ - NOR = { - # Proactive - has_trait = chaste - # Undevoted - any_relation = { type = soulmate } - } - # Compatible or attractive - OR = { - trait_compatibility = { - target = $CHARACTER$ - value >= low_positive_trait_compatibility - } - $CHARACTER$.attraction >= medium_positive_attraction - } - } - } - # Flouts the laws of decency - would_attempt_to_seduce_incest_trigger = { CHARACTER = $CHARACTER$ } - # Flouts the sanctity of marriage - would_attempt_to_seduce_married_trigger = yes -} - -would_attempt_to_seduce_incest_trigger = { - trigger_if = { - limit = { - save_temporary_scope_as = potential_cheater - OR = { - # Checks for incest - relation_with_character_is_incestuous_in_faith_trigger = { - FAITH = scope:potential_cheater.faith - CHARACTER = $CHARACTER$ - } - # Check celibate clergy too since it's a similar overcoming of norms - AND = { - is_clergy = yes - faith = { has_doctrine = doctrine_clerical_marriage_allowed } - } - } - } - # Isn't god-fearing - NOT = { has_trait = zealous } - # Is randy - has_trait = lustful - # Takes what they want - ai_boldness >= medium_positive_ai_value - # Likes them - opinion = { - target = $CHARACTER$ - value >= 25 - } - # Big attraction or get on very well - OR = { - trait_compatibility = { - target = $CHARACTER$ - value >= medium_positive_trait_compatibility - } - $CHARACTER$.attraction >= medium_positive_attraction - } - } -} - -would_attempt_to_seduce_married_trigger = { - trigger_if = { - limit = { is_married = yes } - OR = { - # Adultery is accepted for their gender in their faith - AND = { - is_female = yes - faith = { has_doctrine_parameter = adultery_female_accepted } - } - AND = { - is_male = yes - faith = { has_doctrine_parameter = adultery_male_accepted } - } - NOR = { - # Isn't god-fearing - has_trait = zealous - save_temporary_scope_as = potential_cheater - # Isn't that fond of partner - opinion = { - target = scope:potential_cheater.primary_spouse - value >= 25 - } - # Isn't honorable - ai_honor >= low_positive_ai_value - } - } - } -} diff --git a/common/scripted_triggers/00_ai_acceptance_triggers.txt b/common/scripted_triggers/00_ai_acceptance_triggers.txt deleted file mode 100644 index 6d0dc1f9a7..0000000000 --- a/common/scripted_triggers/00_ai_acceptance_triggers.txt +++ /dev/null @@ -1,20 +0,0 @@ - -###TRIGGER LIST -#ai_will_give_favor_trigger - -#CHAR1 is the character who will be giving the favor, CHAR2 is the character who will be receiving it(i.e., CHAR2 is the one that gets to call in the favor). -ai_will_give_favor_trigger = { - $CHAR1$ = { - NOR = { - has_relation_rival = $CHAR2$ - opinion = { - value <= -25 - target = $CHAR2$ - } - - #TODO_CD: Ensure that CHAR1 is not a member of a powerful faction with high Discontent. - is_scheming_against = { target = $CHAR2$ type = murder } - } - } -} - diff --git a/common/scripted_triggers/00_ai_value_triggers.txt b/common/scripted_triggers/00_ai_value_triggers.txt index 9c89e6994e..408e0dc7aa 100644 --- a/common/scripted_triggers/00_ai_value_triggers.txt +++ b/common/scripted_triggers/00_ai_value_triggers.txt @@ -17,40 +17,56 @@ opposing_ai_values_trigger = { } ai_has_warlike_personality = { - ai_boldness > 0 - ai_greed >= 0 - OR = { - has_trait = wrathful - has_trait = impatient - has_trait = sadistic - has_trait = ambitious - has_trait = vengeful - has_trait = zealous - has_trait = irritable - AND = { - ai_boldness >= 50 - ai_greed >= 50 - } - AND = { - ai_boldness >= 25 - ai_greed >= 100 + AND = { # The unity decision "Organize House Members for War" forces AI house members to adopt this stance + exists = house + house = { + has_house_modifier = unity_house_organized_for_war_modifier + } } AND = { - ai_boldness >= 100 - ai_greed >= 25 + ai_boldness > 0 + ai_greed >= 0 + + OR = { + has_trait = wrathful + has_trait = impatient + has_trait = sadistic + has_trait = ambitious + has_trait = vengeful + has_trait = zealous + has_trait = irritable + AND = { + ai_boldness >= 50 + ai_greed >= 50 + } + AND = { + ai_boldness >= 25 + ai_greed >= 100 + } + AND = { + ai_boldness >= 100 + ai_greed >= 25 + } + government_has_flag = government_is_tribal + culture = { has_cultural_pillar = ethos_bellicose } + } + + NOR = { + ai_compassion >= 75 + has_trait = compassionate + has_trait = craven + has_trait = calm + faith = { has_doctrine_parameter = pacifist_opinion_active } + culture = { has_cultural_parameter = reduced_cost_for_conversion_to_pacifist_faith } + AND = { + exists = house + house = { + has_house_modifier = unity_house_focused_on_economy_modifier + } + } + } } - government_has_flag = government_is_tribal - culture = { has_cultural_pillar = ethos_bellicose } - } - - NOR = { - ai_compassion >= 75 - has_trait = compassionate - has_trait = craven - has_trait = calm - faith = { has_doctrine_parameter = pacifist_opinion_active } - culture = { has_cultural_parameter = reduced_cost_for_conversion_to_pacifist_faith } } } @@ -74,29 +90,86 @@ ai_has_cautious_personality = { NOR = { has_trait = fickle has_trait = lunatic + AND = { + exists = house + house = { + OR = { + has_house_modifier = unity_house_organized_for_war_modifier + has_house_modifier = unity_house_focused_on_economy_modifier + } + } + } } } ai_has_economical_boom_personality = { - ai_boldness > 0 - OR = { - has_focus = stewardship_domain_focus # Only this focus, which is 33% of all stewardship focused characters in the world - has_trait = calm - has_trait = patient - has_trait = diligent - has_trait = generous - has_trait = stubborn - has_trait = profligate - has_trait = improvident - has_character_modifier = the_city_builder_modifier - has_character_modifier = the_castle_builder_modifier - has_character_modifier = the_temple_builder_modifier + AND = { # The unity decision "Encourage House to Improve the Economy" forces AI house members to adopt this stance + exists = house + house = { + has_house_modifier = unity_house_focused_on_economy_modifier + } + } + AND = { + ai_boldness > 0 + OR = { + has_focus = stewardship_domain_focus # Only this focus, which is 33% of all stewardship focused characters in the world + has_trait = calm + has_trait = patient + has_trait = diligent + has_trait = generous + has_trait = stubborn + has_trait = profligate + has_trait = improvident + has_character_modifier = the_city_builder_modifier + has_character_modifier = the_castle_builder_modifier + has_character_modifier = the_temple_builder_modifier + } + NAND = { + has_trait = greedy + has_trait = impatient + AND = { + exists = house + house = { + has_house_modifier = unity_house_organized_for_war_modifier + } + } + } + ai_has_warlike_personality = no + } + } +} + +ai_wants_low_unity = { + government_has_flag = government_is_clan + # To actively decrease Unity, the AI needs the following personality + OR = { + AND = { + OR = { + has_trait_malicious_trigger = yes + has_trait_dominant_trigger = yes + } + has_trait_submissive_trigger = no + has_trait_benevolent_trigger = no + } + ai_has_warlike_personality = yes } - NAND = { - has_trait = greedy - has_trait = impatient +} + +ai_wants_high_unity = { + government_has_flag = government_is_clan + # We'll make sure that the AI only wants to actively increase Unity if they have a matching personality + OR = { + AND = { + OR = { + has_trait_benevolent_trigger = yes + has_trait_submissive_trigger = yes + } + has_trait_malicious_trigger = no + } + ai_has_economical_boom_personality = yes } - ai_has_warlike_personality = no + # And to make sure the AI doesn't want to increase and decrease Unity at the same time + ai_wants_low_unity = no } diff --git a/common/scripted_triggers/00_artifact_triggers.txt b/common/scripted_triggers/00_artifact_triggers.txt index eb8667d204..ecdc06a7f2 100644 --- a/common/scripted_triggers/00_artifact_triggers.txt +++ b/common/scripted_triggers/00_artifact_triggers.txt @@ -284,6 +284,11 @@ artifact_use_iberian_christian_unit_visuals_trigger = { culture = { has_unit_gfx = iberian_christian_unit_gfx } } +artifact_use_iranian_unit_visuals_trigger = { + exists = culture + culture = { has_unit_gfx = iranian_unit_gfx } +} + # BuildingGFX-based triggers artifact_use_indian_building_visuals_trigger = { exists = culture @@ -320,7 +325,12 @@ artifact_use_steppe_building_visuals_trigger = { culture = { has_building_gfx = steppe_building_gfx } } -# GFX Trigger-picker - only use this in the 'visuals' files! +artifact_use_iranian_building_visuals_trigger = { + exists = culture + culture = { has_building_gfx = iranian_building_gfx } +} + +# GFX Trigger-picker artifact_should_use_gfx_type_trigger = { trigger_if = { @@ -1969,6 +1979,7 @@ axe_unique_gfx_trigger = { has_clothing_gfx = indian_clothing_gfx has_clothing_gfx = african_clothing_gfx has_clothing_gfx = mena_clothing_gfx + has_clothing_gfx = iranian_clothing_gfx has_clothing_gfx = iberian_christian_clothing_gfx has_clothing_gfx = iberian_muslim_clothing_gfx } @@ -1986,6 +1997,7 @@ sword_unique_gfx_trigger = { has_clothing_gfx = mena_clothing_gfx has_clothing_gfx = iberian_christian_clothing_gfx has_clothing_gfx = iberian_muslim_clothing_gfx + has_clothing_gfx = iranian_clothing_gfx } } } @@ -2036,6 +2048,7 @@ spear_unique_gfx_trigger = { has_clothing_gfx = mena_clothing_gfx has_clothing_gfx = iberian_christian_clothing_gfx has_clothing_gfx = iberian_muslim_clothing_gfx + has_clothing_gfx = iranian_clothing_gfx } } } diff --git a/common/scripted_triggers/00_available_for_events_triggers.txt b/common/scripted_triggers/00_available_for_events_triggers.txt index 2d57530bef..a3fbb99894 100644 --- a/common/scripted_triggers/00_available_for_events_triggers.txt +++ b/common/scripted_triggers/00_available_for_events_triggers.txt @@ -112,7 +112,6 @@ is_available_travelling = { has_contagious_deadly_disease_trigger = no is_incapable = no NOT = { has_variable = gone_adventuring } - #TODO_CD_EP2 should this be localized? is_busy_in_events_unlocalised = no is_travelling = yes } diff --git a/common/scripted_triggers/00_bastard_triggers.txt b/common/scripted_triggers/00_bastard_triggers.txt deleted file mode 100644 index 96beac0c0c..0000000000 --- a/common/scripted_triggers/00_bastard_triggers.txt +++ /dev/null @@ -1,220 +0,0 @@ - - -should_mother_give_house_to_bastard_trigger = { - #Also governs the "should_mother_give_house_to_bastard" scripted rule - trigger_if = { - limit = { NOT = { exists = mother } } - always = no - } - trigger_else_if = { - limit = { NOT = { exists = mother.house } } - always = no - } - trigger_else_if = { - limit = { NOT = { exists = father } } - always = yes - } - trigger_else_if = { - limit = { - real_father = { is_ruler = yes } - mother = { is_ruler = no } - exists = real_father.house - } - always = no - } - trigger_else_if = { - limit = { - real_father = { is_ruler = no } - mother = { is_ruler = yes } - exists = mother.house - } - always = yes - } - trigger_else_if = { - limit = { - mother = { NOT = { exists = house } } - exists = real_father.house - } - always = no - } - trigger_else_if = { - limit = { - real_father = { NOT = { exists = house } } - exists = mother.house - } - always = yes - } - # making the default behavior explicit if no other trigger_(else_)ifs are valid - trigger_else = { - always = yes - } -} - -secret_unmarried_illegitimate_child_is_valid_trigger = { - $TARGET$ = { - is_alive = yes - exists = real_father - exists = mother - NOT = { has_trait = child_of_concubine } - save_temporary_scope_as = temp_child - trigger_if = { - limit = { - exists = father - exists = scope:temp_child.real_father - } - NOT = { father = scope:temp_child.real_father } - } - } -} - -secret_disputed_heritage_is_valid_trigger = { - $TARGET$ = { # Child - is_alive = yes - exists = real_father - exists = father - exists = mother - NOT = { real_father = father } - NOR = { - has_trait = bastard - has_trait = wild_oat - has_trait = legitimized_bastard - } - } -} - -bastard_secret_is_criminal = { - $TARGET$ = { save_temporary_scope_as = criminal_bastard } - $PARTICIPANT$ = { save_temporary_scope_as = criminal_participant } - OR = { - #Mother if female adultery is criminal - scope:criminal_participant = { - scope:criminal_bastard = { mother = scope:criminal_participant } - OR = { - faith = { has_doctrine_parameter = adultery_female_crime } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_female_crime } } - } - } - #Real father is male adultery is criminal - scope:criminal_participant = { - scope:criminal_bastard = { real_father = scope:criminal_participant } - OR = { - faith = { has_doctrine_parameter = adultery_male_crime } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_male_crime } } - } - } - } -} - - -bastard_secret_is_shunned = { - # FOR DEBUG PURPOSES -- REMOVE ONCE RESOLVED TODO_CD - assert_if = { - limit = { NOT = { exists = $TARGET$ } } - text = "Empty TARGET was passed to bastard_secret_is_shunned!" - } - assert_if = { - limit = { NOT = { exists = $TARGET$ } } - text = "Empty PARTICIPANT was passed to bastard_secret_is_shunned!" - } - - #Saving bastard & other parent scope - $TARGET$ = { save_temporary_scope_as = bastard } - $PARTICIPANT$ = { save_temporary_scope_as = participant } - - assert_if = { - limit = { NOT = { exists = scope:bastard } } - text = "scope:bastard does not exist in bastard_secret_is_shunned!" - } - assert_if = { - limit = { NOT = { exists = scope:participant } } - text = "scope:participant does not exist in bastard_secret_is_shunned!" - } - assert_if = { - limit = { NOT = { exists = scope:bastard.mother } } - text = "scope:bastard.mother does not exist in bastard_secret_is_shunned!" - } - assert_if = { - limit = { NOT = { exists = scope:bastard.real_father } } - text = "scope:bastard.real_father does not exist in bastard_secret_is_shunned!" - } - - OR = { - #Bastard child: always shunned, never criminal - scope:participant = scope:bastard - #Mother if female adultery is shunned - scope:participant = { - exists = scope:bastard.mother - this = scope:bastard.mother - OR = { - faith = { has_doctrine_parameter = adultery_female_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_female_shunned } } - } - } - #Real father is male adultery is shunned - scope:participant = { - exists = scope:bastard.real_father - this = scope:bastard.real_father - OR = { - faith = { has_doctrine_parameter = adultery_male_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_male_shunned } } - } - } - #Either parent if incest is shunned - AND = { - # Can't have incest with only one parent! - exists = scope:bastard.real_father - exists = scope:bastard.mother - - # Also the secret participant has to be one of the parents - scope:participant = { - OR = { - this = scope:bastard.mother - this = scope:bastard.real_father - } - trigger_if = { - limit = { this = scope:bastard.mother } - scope:bastard.real_father = { save_temporary_scope_as = other_parent } - } - trigger_else = { - scope:bastard.mother = { save_temporary_scope_as = other_parent } - } - - # Check if the relation would be incestuous in my faith or my liege's faith - relation_with_character_is_incestuous_in_faith_trigger = { - CHARACTER = scope:other_parent - FAITH = scope:participant.faith - } - any_liege_or_above = { - save_temporary_scope_as = liege_or_above - scope:participant = { - relation_with_character_is_incestuous_in_faith_trigger = { - CHARACTER = scope:other_parent - FAITH = scope:liege_or_above.faith - } - } - } - } - } - } - NOT = { - bastard_secret_is_criminal = { - TARGET = scope:bastard - PARTICIPANT = scope:participant - } - } -} - -has_any_bastard_trait_trigger = { - OR = { - has_trait = wild_oat - has_any_negative_bastard_trait_trigger = yes - } -} - -has_any_negative_bastard_trait_trigger = { - OR = { - has_trait = bastard - has_trait = legitimized_bastard - has_trait = disputed_heritage - } -} diff --git a/common/scripted_triggers/00_birth_triggers.txt b/common/scripted_triggers/00_birth_triggers.txt deleted file mode 100644 index 8bd2637a95..0000000000 --- a/common/scripted_triggers/00_birth_triggers.txt +++ /dev/null @@ -1,59 +0,0 @@ - -### Birth trigger list - - -birth_will_happen_as_usual_trigger = { - OR = { - has_character_flag = birth_will_go_smoothly - has_character_flag = birth_child_will_become_sickly - has_character_flag = birth_mother_will_become_ill - } -} - -allow_naming_on_birth_of_child_trigger = { - save_temporary_scope_as = naming_parent - exists = $CHILD$ - is_ai = no - is_close_family_of = $CHILD$ - OR = { - #I am the only player parent of child - NOT = { - $CHILD$ = { - any_parent = { - is_ai = no - NOT = { this = scope:naming_parent } - } - } - } - #I am the best player to name this child - AND = { - $CHILD$ = { #There are two player parents - exists = father - exists = mother - NOT = { any_parent = { is_ai = yes } } - } - OR = { - AND = { #They are of my dynasty, not theirs - dynasty = $CHILD$.dynasty - $CHILD$ = { - any_parent = { - NOT = { this = scope:naming_parent } - NOT = { dynasty = $CHILD$.dynasty } - } - } - } - AND = { #I am their mother, and parents are of same dynasty/neither has baby's dynasty - $CHILD$ = { mother = { this = scope:naming_parent } } - OR = { - $CHILD$.mother.dynasty = $CHILD$.father.dynasty - NOR = { - $CHILD$.mother.dynasty = $CHILD$.dynasty - $CHILD$.father.dynasty = $CHILD$.dynasty - } - } - } - } - } - } -} - diff --git a/common/scripted_triggers/00_building_requirement_triggers.txt b/common/scripted_triggers/00_building_requirement_triggers.txt index 4a2f560c74..9d4b1a0e05 100644 --- a/common/scripted_triggers/00_building_requirement_triggers.txt +++ b/common/scripted_triggers/00_building_requirement_triggers.txt @@ -120,6 +120,7 @@ building_orchards_requirement_terrain = { OR = { terrain = floodplains terrain = oasis + has_building_or_higher = qanats_05 } } @@ -188,6 +189,7 @@ building_cereal_fields_requirement_terrain = { county = { has_county_modifier = fertile_desert_mountains_modifier } + has_building_or_higher = qanats_05 } } @@ -388,6 +390,20 @@ building_caravanserai_requirement_terrain = { } } +building_qanat_requirement_terrain = { + county ?= { + any_county_province = { + OR = { + terrain = hills + terrain = mountains + terrain = desert_mountains + terrain = desert + terrain = drylands + } + } + } +} + has_any_special_mine_trigger = { always = no # Warcraft diff --git a/common/scripted_triggers/00_clothing_triggers.txt b/common/scripted_triggers/00_clothing_triggers.txt index 6b24a9da04..cdbd6a1afb 100644 --- a/common/scripted_triggers/00_clothing_triggers.txt +++ b/common/scripted_triggers/00_clothing_triggers.txt @@ -475,6 +475,7 @@ portrait_northern_clothing_contents_trigger = { has_clothing_gfx = northern_clothing_gfx } + ### FP2 - Fate of Iberia ### portrait_fp2_iberian_muslim_clothing_trigger = { @@ -557,6 +558,58 @@ portrait_fp2_iberian_christian_clothing_contents_trigger = { #has_clothing_gfx = iberian_christian_clothing_gfx } +### FP3 - Sands of Time ### +#iranian +portrait_fp3_iranian_clothing_trigger = { + has_fp3_dlc_trigger = yes + OR = { + style_changing_reformer_iranian = yes + scope:culture = { + portrait_fp3_iranian_clothing_contents_trigger = yes + } + } +} + +portrait_fp3_iranian_clothing_spouse_trigger = { + has_fp3_dlc_trigger = yes + OR = { + style_changing_reformer_iranian = yes + culture = { + portrait_fp3_iranian_clothing_contents_trigger = yes + } + } +} + +portrait_fp3_iranian_clothing_contents_trigger = { + has_clothing_gfx = iranian_clothing_gfx +} + +#turkic +portrait_fp3_turkic_clothing_trigger = { + has_fp3_dlc_trigger = yes + OR = { + style_changing_reformer_turkic = yes + scope:culture = { + portrait_fp3_turkic_clothing_contents_trigger = yes + } + } +} + +portrait_fp3_turkic_clothing_spouse_trigger = { + has_fp3_dlc_trigger = yes + OR = { + style_changing_reformer_turkic = yes + culture = { + portrait_fp3_turkic_clothing_contents_trigger = yes + } + } +} + +portrait_fp3_turkic_clothing_contents_trigger = { + has_clothing_gfx = turkic_clothing_gfx +} + + ### FP1 ### portrait_fp1_norse_clothing_trigger = { @@ -997,6 +1050,19 @@ portrait_low_nobles_trigger = { portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes } } + AND = { # Viziers of rulers + OR = { + is_ruler = no + highest_held_title_tier = tier_barony + } + exists = liege + is_diarch = yes + liege = { + has_diarchy_active_parameter = diarchy_is_vizierate + highest_held_title_tier = tier_county + portrait_$CULTURE_INPUT$_clothing_trigger = yes + } + } } } trigger_else = { @@ -1017,7 +1083,7 @@ portrait_high_nobles_trigger = { trigger_if = { limit = { exists = this } # To check if this is an actual character OR = { - AND = { + AND = { # Rulers OR = { highest_held_title_tier >= tier_duchy # Most cultures do not have specific clothes for royalty and imperial tier, so we use the high nobility for anything from duke/duchess and up AND = { @@ -1035,7 +1101,7 @@ portrait_high_nobles_trigger = { } portrait_$CULTURE_INPUT$_clothing_trigger = yes } - AND = { + AND = { # Spouses of rulers exists = primary_spouse OR = { is_ruler = no @@ -1056,9 +1122,22 @@ portrait_high_nobles_trigger = { portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes } } + AND = { # Viziers of rulers + exists = liege + is_diarch = yes + OR = { + is_ruler = no + highest_held_title_tier = tier_barony + } + liege = { + has_diarchy_active_parameter = diarchy_is_vizierate + highest_held_title_tier >= tier_duchy + portrait_$CULTURE_INPUT$_clothing_trigger = yes + } + } } } - trigger_else = { + trigger_else = { # Fallback scope:highest_held_title_tier >= tier_duchy # We use scope in case this is not an actual character (for the Hybrid Culture preview window) portrait_$CULTURE_INPUT$_clothing_trigger = yes } @@ -1075,7 +1154,7 @@ portrait_high_nobles_headgear_trigger = { exists = this portrait_can_use_noble_headgear_trigger = yes OR = { - AND = { + AND = { # Rulers OR = { highest_held_title_tier = tier_duchy AND = { @@ -1093,7 +1172,7 @@ portrait_high_nobles_headgear_trigger = { } portrait_$CULTURE_INPUT$_clothing_trigger = yes } - AND = { + AND = { # Spouses of rulers exists = primary_spouse OR = { is_ruler = no @@ -1111,6 +1190,19 @@ portrait_high_nobles_headgear_trigger = { portrait_$CULTURE_INPUT$_clothing_spouse_trigger = yes } } + AND = { # Viziers of rulers + exists = liege + is_diarch = yes + OR = { + is_ruler = no + highest_held_title_tier = tier_barony + } + liege = { + has_diarchy_active_parameter = diarchy_is_vizierate + highest_held_title_tier >= tier_duchy + portrait_$CULTURE_INPUT$_clothing_trigger = yes + } + } } } diff --git a/common/scripted_triggers/00_coa_triggers.txt b/common/scripted_triggers/00_coa_triggers.txt index 4ad948af93..6080da1dfb 100644 --- a/common/scripted_triggers/00_coa_triggers.txt +++ b/common/scripted_triggers/00_coa_triggers.txt @@ -288,3 +288,7 @@ coa_iberian_trigger = { # } #} } + +coa_iranian_trigger = { + scope:culture = { has_coa_gfx = iranian_group_coa_gfx } +} diff --git a/common/scripted_triggers/00_commander_triggers.txt b/common/scripted_triggers/00_commander_triggers.txt deleted file mode 100644 index 0c46808c66..0000000000 --- a/common/scripted_triggers/00_commander_triggers.txt +++ /dev/null @@ -1,40 +0,0 @@ -#Triggers relating to Commander Characters - -commander_in_terrain_specialisation = { - OR = { - AND = { - has_trait = desert_warrior - location = { - terrain = desert - terrain = desert_mountains - } - } - AND = { - has_trait = jungle_stalker - location = { terrain = jungle } - } - AND = { - has_trait = open_terrain_expert - location = { - terrain = farmlands - terrain = plains - terrain = steppe - } - } - AND = { - has_trait = rough_terrain_expert - location = { - terrain = hills - terrain = mountains - terrain = wetlands - } - } - AND = { - has_trait = forest_fighter - location = { - terrain = forest - terrain = taiga - } - } - } -} diff --git a/common/scripted_triggers/00_compliment_triggers.txt b/common/scripted_triggers/00_compliment_triggers.txt deleted file mode 100644 index 43e861f1b7..0000000000 --- a/common/scripted_triggers/00_compliment_triggers.txt +++ /dev/null @@ -1,22 +0,0 @@ -##################### -# COMPLIMENT SYSTEM # -##################### -#This system evaluates whether a character would accept a certain type of compliment (types listed below) from another character. It will set a compliment_outcome varaible with a flag value of either good, neutral or bad which can be used to trigger follow up events. Read more in the effects file. - -can_receieve_good_available_compliment_trigger = { - OR = { - ai_compassion >= low_positive_ai_value - ai_boldness >= low_positive_ai_value - ai_honor >= low_positive_ai_value - ai_greed >= low_positive_ai_value - ai_rationality >= low_positive_ai_value - ai_zeal >= low_positive_ai_value - ai_energy >= low_positive_ai_value - ai_vengefulness <= low_negative_ai_value - attraction >= 10 - has_trait = strong - has_trait = physique_good - has_personality_extroverted_trigger = yes - has_personality_dominant_trigger = yes - } -} \ No newline at end of file diff --git a/common/scripted_triggers/00_councillor_triggers.txt b/common/scripted_triggers/00_councillor_triggers.txt index 09ab34f85b..ecce9019ce 100644 --- a/common/scripted_triggers/00_councillor_triggers.txt +++ b/common/scripted_triggers/00_councillor_triggers.txt @@ -24,7 +24,19 @@ can_be_councillor_basics_trigger = { can_be_chancellor_trigger = { can_be_councillor_basics_trigger = yes - NOT = { has_council_position = councillor_spouse } + NAND = { + has_council_position = councillor_court_chaplain + faith = { has_doctrine_parameter = clerical_appointment_fixed } + } + NOT = { + OR = { + has_council_position = councillor_spouse + AND = { + this = liege.diarch + liege = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + } + } OR = { is_ruler = yes AND = { @@ -37,13 +49,28 @@ can_be_chancellor_trigger = { } # Exception so Katrana Prestor can be councilor - this = character:58050 + AND = { + exists = character:58050 + this = character:58050 + } } } can_be_steward_trigger = { can_be_councillor_basics_trigger = yes - NOT = { has_council_position = councillor_spouse } + NAND = { + has_council_position = councillor_court_chaplain + faith = { has_doctrine_parameter = clerical_appointment_fixed } + } + NOT = { + OR = { + has_council_position = councillor_spouse + AND = { + this = liege.diarch + liege = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + } + } OR = { is_ruler = yes AND = { @@ -56,14 +83,29 @@ can_be_steward_trigger = { } # Exception so Katrana Prestor can be councilor - this = character:58050 + AND = { + exists = character:58050 + this = character:58050 + } } } can_be_marshal_trigger = { can_be_councillor_basics_trigger = yes - is_hostage = no - NOT = { has_council_position = councillor_spouse } + is_hostage = no + NAND = { + has_council_position = councillor_court_chaplain + faith = { has_doctrine_parameter = clerical_appointment_fixed } + } + NOT = { + OR = { + has_council_position = councillor_spouse + AND = { + this = liege.diarch + liege = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + } + } OR = { is_ruler = yes AND = { @@ -83,14 +125,34 @@ can_be_marshal_trigger = { can_be_spymaster_trigger = { can_be_councillor_basics_trigger = yes - NOT = { has_council_position = councillor_spouse } + NAND = { + has_council_position = councillor_court_chaplain + faith = { has_doctrine_parameter = clerical_appointment_fixed } + } + NOT = { + OR = { + has_council_position = councillor_spouse + AND = { + this = liege.diarch + liege = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + } + } exists = $COURT_OWNER$ #so we can have the argument but get no errors } can_be_court_chaplain_trigger = { save_temporary_scope_as = court_chaplain_check can_be_councillor_basics_trigger = yes - NOT = { has_council_position = councillor_spouse } + NOT = { + OR = { + has_council_position = councillor_spouse + AND = { + this = liege.diarch + liege = { has_diarchy_active_parameter = diarchy_is_vizierate } + } + } + } $COURT_OWNER$.faith = { has_allowed_gender_for_clergy = scope:court_chaplain_check } faith = $COURT_OWNER$.faith trigger_if = { @@ -134,7 +196,6 @@ can_be_spouse_councillor_trigger = { } } - councillor_loyalty_trigger = { weighted_calc_true_if = { amount >= 50 @@ -171,10 +232,10 @@ councillor_loyalty_trigger = { councillor_positive_event_opinion_trigger = { always = yes -# opinion = { -# target = liege -# value >= -20 -# } + # opinion = { + # target = liege + # value >= -20 + # } } ############################ @@ -192,7 +253,7 @@ is_blocked_from_being_fired_from_council_trigger = { text = "is_blocked_from_being_fired_from_council" subject = this object = $COURT_OWNER$ - + OR = { # Check in code if the court owner is prevented from firing the councilor # can_fire_position must take a council task as input, but checks the councilor behind the task. @@ -382,7 +443,7 @@ spouse_diplomacy_tier_2_trigger = { AND = { is_performing_council_task = task_court_politics OR = { - diplomacy >= spouse_skill_rating_2 + diplomacy >= spouse_skill_rating_2 has_character_modifier = councillor_spouse_diplomacy_2_modifier has_character_modifier = councillor_spouse_diplomacy_1_modifier has_trait = diplomat @@ -683,14 +744,14 @@ spymaster_task_find_secrets_court_has_minor_secrets_trigger = { NOT = { this = scope:councillor } any_secret = { spymaster_task_find_secrets_suitable_minor_secret_trigger = yes - } + } } any_courtier_or_guest = { has_any_secrets = yes NOT = { this = scope:councillor_liege } NOT = { this = scope:councillor } any_secret = { - spymaster_task_find_secrets_suitable_minor_secret_trigger = yes + spymaster_task_find_secrets_suitable_minor_secret_trigger = yes } } } @@ -701,7 +762,7 @@ spymaster_task_find_secrets_court_has_major_secrets_trigger = { AND = { has_any_secrets = yes any_secret = { - spymaster_task_find_secrets_suitable_major_secret_trigger = yes + spymaster_task_find_secrets_suitable_major_secret_trigger = yes } } any_vassal = { @@ -710,14 +771,14 @@ spymaster_task_find_secrets_court_has_major_secrets_trigger = { NOT = { this = scope:councillor } any_secret = { spymaster_task_find_secrets_suitable_major_secret_trigger = yes - } + } } any_courtier_or_guest = { has_any_secrets = yes NOT = { this = scope:councillor_liege } NOT = { this = scope:councillor } any_secret = { - spymaster_task_find_secrets_suitable_major_secret_trigger = yes + spymaster_task_find_secrets_suitable_major_secret_trigger = yes } } } @@ -765,7 +826,7 @@ spymaster_find_secrets_secret_target_is_interesting_to_me_trigger = { # Event triggers - # Defined here because they need to be used in event + council task desc +# Defined here because they need to be used in event + council task desc marshal_task_1101_county_trigger = { holder = root @@ -824,6 +885,13 @@ councillor_liege_has_family_business_bonus = { } } +councillor_liege_has_consulted_house_bonus = { + scope:councillor_liege ?= { has_character_flag = fp3_consulted_house } + exists = scope:councillor_liege.house + exists = scope:councillor.house + scope:councillor ?= { house = scope:councillor_liege.house } +} + councillor_is_unskilled_trigger = { trigger_if = { limit = { this = $EMPLOYER$.cp:councillor_chancellor } @@ -864,7 +932,11 @@ councillor_is_skilled_trigger = { trigger_else = { learning > decent_skill_rating } } - +#FP3 Legacy Track: +councillor_liege_has_khvarenah_legacy_perk = { + exists = scope:councillor_liege.dynasty + scope:councillor_liege.dynasty = { has_dynasty_perk = fp3_khvarenah_legacy_4 } +} can_be_knight_now_light_trigger = { is_imprisoned = no diff --git a/common/scripted_triggers/00_county_corruption_triggers.txt b/common/scripted_triggers/00_county_corruption_triggers.txt deleted file mode 100644 index 48d79eb1bc..0000000000 --- a/common/scripted_triggers/00_county_corruption_triggers.txt +++ /dev/null @@ -1,39 +0,0 @@ - -###TRIGGER LIST - -# has_county_corruption_trigger - Does the County have any corruption modifiers -# immune_to_county_corruption_trigger - Is the County immune to corruption for any reason -# is_valid_for_county_corruption_trigger - Can County Corruption be applied in this County - -has_county_corruption_trigger = { - OR = { - has_county_modifier = county_corruption_inefficient_tax_collection_modifier - has_county_modifier = county_corruption_deserting_levies_modifier - has_county_modifier = county_corruption_smuggling_ring_modifier - has_county_modifier = county_corruption_bandits_rampant_modifier - has_county_modifier = county_corruption_inefficient_census_modifier - has_county_modifier = county_corruption_lack_of_sheriffs_modifier - has_county_modifier = county_corruption_lack_of_courts_modifier - has_county_modifier = county_corruption_thieves_guild_modifier - has_county_modifier = county_corruption_unsafe_highways_modifier - has_county_modifier = county_corruption_uncooperative_guilds_modifier - has_county_modifier = county_corruption_lackluster_administration_modifier - } -} - -immune_to_county_corruption_trigger = { - OR = { - has_variable = corruption_event_happening - has_variable = county_corruption_recent_removal - is_target_of_council_task = task_increase_control - has_county_modifier = marshal_task_military_presence_modifier - } - -} - -is_valid_for_county_corruption_trigger = { - NOR = { - county_corruption_modifier_count >= max_county_corruption_modifiers_at_once - immune_to_county_corruption_trigger = yes - } -} diff --git a/common/scripted_triggers/00_court_position_triggers.txt b/common/scripted_triggers/00_court_position_triggers.txt index 89252c013b..f045414622 100644 --- a/common/scripted_triggers/00_court_position_triggers.txt +++ b/common/scripted_triggers/00_court_position_triggers.txt @@ -62,6 +62,7 @@ court_position_does_not_already_have_a_job_trigger = { has_court_position = travel_leader_court_position has_court_position = wet_nurse_court_position is_councillor = yes + is_tax_collector = yes } } } diff --git a/common/scripted_triggers/00_court_scheme_triggers.txt b/common/scripted_triggers/00_court_scheme_triggers.txt deleted file mode 100644 index ad8d90217e..0000000000 --- a/common/scripted_triggers/00_court_scheme_triggers.txt +++ /dev/null @@ -1,6 +0,0 @@ -court_love_is_shunned_or_criminal_trigger = { - OR = { - scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } - } -} \ No newline at end of file diff --git a/common/scripted_triggers/00_courtier_guest_management_triggers.txt b/common/scripted_triggers/00_courtier_guest_management_triggers.txt index 25fc7acc54..fa6b7dd2ee 100644 --- a/common/scripted_triggers/00_courtier_guest_management_triggers.txt +++ b/common/scripted_triggers/00_courtier_guest_management_triggers.txt @@ -95,6 +95,7 @@ courtier_allowed_to_leave_trigger = { } has_relation_lover = scope:liege is_knight_of = scope:liege + is_tax_collector_of = scope:liege any_relation = { type = ward OR = { @@ -367,7 +368,42 @@ can_recruit_character_to_court_trigger = { pressing_claim_of_character_trigger = { CHARACTER = scope:recruitee } } } - + trigger_if = { + limit = { exists = host } + #Are they employed? + is_councillor_of = scope:recruitee.host + is_knight_of = scope:recruitee.host + any_relation = { + type = ward + OR = { + this = scope:recruitee.host + is_close_family_of = scope:recruitee.host + } + } + any_relation = { + type = guardian + OR = { + this = scope:recruitee.host + is_close_family_of = scope:recruitee.host + } + } + any_relation = { + type = mentor + OR = { + this = scope:recruitee.host + is_close_family_of = scope:recruitee.host + } + } + any_relation = { + type = student + OR = { + this = scope:recruitee.host + is_close_family_of = scope:recruitee.host + } + } + any_court_position_employer = { this = scope:recruitee.host } + } + #Do they have the "wrong" marriage type and the spouse is employed? custom_description = { text = is_married_matrilineally_and_spouse_is_dominant_partner @@ -683,7 +719,6 @@ guest_marriage_candidate_trigger = { } } - ###POOL TRIGGERS### is_visitable_relation_trigger = { exists = capital_province diff --git a/common/scripted_triggers/00_crime_triggers.txt b/common/scripted_triggers/00_crime_triggers.txt deleted file mode 100644 index 84c717cded..0000000000 --- a/common/scripted_triggers/00_crime_triggers.txt +++ /dev/null @@ -1,68 +0,0 @@ -#is_witch_trigger -#is_deviant_trigger - - - -is_witch_trigger = { - custom_description = { - text = is_a_witch - subject = this - OR = { - has_trait = witch - any_secret = { secret_type = secret_witch } - } - } -} - -is_witch_known_by_trigger = { - OR = { - has_trait = witch - custom_description = { - text = has_a_witch_secret_known_by_character - subject = this - object = $CHARACTER$ - any_secret = { - secret_type = secret_witch - is_known_by = $CHARACTER$ - } - } - } -} - -is_deviant_trigger = { - OR = { - has_trait = deviant - any_secret = { secret_type = secret_deviant } - } -} - -is_incestuous_trigger = { - OR = { - has_trait = incestuous - any_secret = { - secret_type = secret_incest - } - } -} - -sexual_activity_with_partner_is_criminal_in_faith_trigger = { - save_temporary_scope_as = sexual_legality_check - OR = { - #Incest (currently never illegal so commented out) - #AND = { - # relation_with_character_is_incestuous_in_faith_trigger = { CHARACTER = $PARTNER$ FAITH = $FAITH$ } - # trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = $FAITH$ GENDER_CHARACTER = scope:sexual_legality_check } } - #} - #Sodomy - AND = { - relation_with_character_is_sodomy_in_faith_trigger = { CHARACTER = $PARTNER$ FAITH = $FAITH$ } - trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = $FAITH$ GENDER_CHARACTER = scope:sexual_legality_check } - } - #Adultery/fornication - AND = { - NOT = { is_consort_of = $PARTNER$ } - trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = $FAITH$ GENDER_CHARACTER = scope:sexual_legality_check } - } - } -} - diff --git a/common/scripted_triggers/00_cultural_triggers.txt b/common/scripted_triggers/00_cultural_triggers.txt index 6f75ed7971..56c7ec2185 100644 --- a/common/scripted_triggers/00_cultural_triggers.txt +++ b/common/scripted_triggers/00_cultural_triggers.txt @@ -358,6 +358,7 @@ culture_has_light_cavalry_maa = { has_innovation = innovation_centaur_tactics has_innovation = innovation_night_elf_mounted has_innovation = innovation_wolfrider + has_cultural_parameter = unlock_maa_tawashi } } @@ -377,6 +378,7 @@ culture_has_heavy_cavalry_maa = { has_innovation = innovation_kodo has_innovation = innovation_mushan has_innovation = innovation_tuskarr_tactics + has_cultural_parameter = unlock_maa_tarkhan } } diff --git a/common/scripted_triggers/00_death_management_triggers.txt b/common/scripted_triggers/00_death_management_triggers.txt deleted file mode 100644 index 753264944f..0000000000 --- a/common/scripted_triggers/00_death_management_triggers.txt +++ /dev/null @@ -1,89 +0,0 @@ -block_death_event_trigger = { - OR = { - trigger_if = { - limit = { exists = var:block_death_event_from } - var:block_death_event_from = $DEAD$ - #If we get timed variables in list: - # is_target_in_variable_list = { - # name = block_death_event_from - # target = $DEAD$ - # } - } - has_character_flag = sent_relevant_death_event - } -} - -had_gruesome_death_trigger = { #Used to check if a character's death was gruesome - OR = { - death_reason = death_physician_mistreatment - death_reason = death_murder - death_reason = death_ended_on_feast_table - death_reason = death_mysterious - death_reason = death_plotting - death_reason = death_script_cruelty - death_reason = death_punishment - death_reason = death_dungeon - death_reason = death_head_ripped_off - death_reason = death_cloven_in_half - death_reason = death_viciously_dismembered - death_reason = death_ripped_apart_limb_by_limb - death_reason = death_chopped_to_pieces - death_reason = death_heart_ripped_out - death_reason = death_fear - death_reason = death_skull_cracked_open - death_reason = death_strangled_with_own_intestines - death_reason = death_carp_accident - death_reason = death_whipping - death_reason = death_torture - death_reason = death_execution_blood_eagle - death_reason = death_execution_blot - death_reason = death_execution - death_reason = death_burned - death_reason = death_eaten - death_reason = death_beaten - death_reason = death_sacrificed_to_gods - death_reason = death_crucified - death_reason = death_burned_witch - death_reason = death_feast_accident - death_reason = death_fall - death_reason = death_poison - death_reason = death_crocodile - death_reason = death_dog_attack - death_reason = death_wolves - death_reason = death_bear - death_reason = death_ritually_hung_then_eaten - death_reason = death_ritually_hung - death_reason = death_ritually_eaten - death_reason = death_botched_decapitation - death_reason = death_decapitated - } -} - -death_killer_always_public_trigger = { - OR = { - # Executions - death_reason = death_crucified - death_reason = death_burned_witch - death_reason = death_torture - death_reason = death_execution_blood_eagle - death_reason = death_execution_blot - death_reason = death_execution - death_reason = death_dungeon - death_reason = death_ritually_hung_then_eaten - death_reason = death_ritually_hung - death_reason = death_ritually_eaten - death_reason = death_hostage_execution - death_reason = death_botched_decapitation - death_reason = death_decapitated - death_reason = death_sacrificed_to_gods - death_reason = death_eaten - # Public Fights - death_reason = death_fight - death_reason = death_battle - death_reason = death_duel - death_reason = death_beaten - # Accidents - death_reason = death_carp_accident - death_reason = death_feast_accident - } -} diff --git a/common/scripted_triggers/00_diarchy_scripted_triggers.txt b/common/scripted_triggers/00_diarchy_scripted_triggers.txt deleted file mode 100644 index 5e7ebde3ae..0000000000 --- a/common/scripted_triggers/00_diarchy_scripted_triggers.txt +++ /dev/null @@ -1,532 +0,0 @@ -############# -# Diarchy Scripted Triggers -############# - -################################################## -# General Triggers - -character_hates_scope_due_to_strife_guts_trigger = { - # We've got to share a direct liege for strife to be valid. - exists = liege - exists = $TARGET$.liege - liege = $TARGET$.liege - # And $TARGET$ must have accumulated enough strife to aggravate me (which we modulate up or down a little with some traits). - $TARGET$.strife_opinion >= strife_harm_threshold_value - # Finally, there has to be at least _some_ love lost. - opinion = { - target = $TARGET$ - value < 0 - } -} - -# This is hooked up to the should_invalidate_diarch rule, referenced by Code. -is_diarch_valid_trigger = { - # If you're in an entrenched regency for some reason, you can't manage a regency yourself. - is_alive = yes - NOT = { has_diarchy_parameter = diarchy_type_is_entrenched_regency } - # You need to be mentally & physically sound, to some degree. - regency_for_personal_reasons_trigger = no - #We cannot be at war with our liege - trigger_if = { - limit = { - exists = liege - } - NOT = { - is_at_war_with = liege - } - } - # If you have somehow managed to get invited to/start an activity outside of your realm (e.g., you're the spouse in a grand wedding), then yeah, you forfeit your position. - NAND = { - # Is it redundant to check twice? - ## Yes. - ### Do the machine spirits demand this thoroughness of us? - #### Also yes. - ##### Do not ask why the God-Machine commands it, merely be glad that it commanded it of you. - is_travelling = yes - exists = current_travel_plan - # We check your liege so that you can attend business within the realm easily. - ## Schemes are their own special lil guys so we take care of them separately. - trigger_if = { - limit = { - exists = scope:owner - exists = scope:target - } - travel_would_cause_regency_trigger = { REALM_HOLDER = scope:owner.liege } - } - ## Else, we're an ordinary, gods-fearing root scope, so use that. - trigger_else = { - travel_would_cause_regency_trigger = { REALM_HOLDER = this.liege } - } - } - trigger_if = { - limit = { - is_ai = yes - } - NOT = { - has_character_flag = cannot_be_diarch - } - } -} - -# This is hooked up to the is_diarch_able rule, referenced by Code. -is_diarch_able_trigger = { - # You can't possibly manage someone else's realm from prison. - is_imprisoned = no - # You'd clearly be preoccupied. - trigger_if = { - limit = { exists = involved_activity } - save_temporary_scope_as = diarch_temp - involved_activity.activity_location.county.holder = { - NOR = { - this = scope:diarch_temp.liege - NOT = { - any_liege_or_above = { this = scope:diarch_temp.liege } - } - } - } - } - # If you're in a temporary regency for any other reason, you need to chill. - NOT = { has_diarchy_active_parameter = diarchy_type_is_temporary_regency } -} - -# And *this* needs to be added to guest activity intents to keep diarchs from showing up to the same parties as their liege. -bannable_serving_diarch_trigger = { - OR = { - # Diarchs with official responsibilities can't come out to play. - is_diarch = yes - is_designated_diarch = yes - # Assumed diarchs don't get to either if they're the AI, as the player might be planning around them & the AI may have designated to avoid people after if it'd known they were going to welch. - ## Assumed-diarch players can make an intelligent choice on whether they want to go to events or not. - AND = { - is_ai = yes - is_diarchy_successor = yes - } - } -} - -diarch_has_situational_loyalty_trigger = { - diarch_loyalty > diarch_loyalty_visibly_disloyal_threshold - diarch_loyalty < diarch_loyalty_visibly_loyal_threshold -} - -diarch_callable_in_internal_war_trigger = { - OR = { - # CBs where the liege doesn't (necessarily) control an internal attacker. - using_cb = peasant_war - using_cb = populist_war - # All other internal CBs. - primary_attacker = { - any_liege_or_above = { this = scope:actor } - } - } -} - -################################################## -# Setup Triggers - -basic_eligible_for_diarchy_trigger = { - is_landed = yes - highest_held_title_tier >= tier_county - NOT = { has_active_diarchy = yes } -} - -regency_for_personal_reasons_trigger = { - OR = { - is_adult = no - is_incapable = yes - } -} - -imprisonment_would_cause_regency_trigger = { - custom_tooltip = { - text = imprisonment_would_cause_regency_trigger.tt.imprisoned_abroad - is_imprisoned = yes - # Doesn't count if your gaoler is your vassal. - save_temporary_scope_as = liege_temp - NOT = { - any_vassal_or_below = { this = scope:liege_temp.imprisoner } - } - } -} - -travel_would_cause_regency_trigger = { - OR = { - # Travelling one-way. - AND = { - # Make sure that we _aren't_ going bilaterally. - NOT = { current_travel_plan.final_destination_province = current_travel_plan.departure_location } - # Then check that we're actually going outside of the realm. - current_travel_plan.final_destination_province.county.holder = { - NOR = { - any_liege_or_above = { this = $REALM_HOLDER$ } - this = $REALM_HOLDER$ - } - } - } - # Travelling in a circle. - AND = { - # Make sure that we _are_ going bilaterally. - current_travel_plan.final_destination_province = current_travel_plan.departure_location - # Check the next destination province instead. - ## We put a break in to check if there _is_ a county because you might be travelling through the ocean. - current_travel_plan.next_destination_province.county ?= { - holder = { - NOR = { - any_liege_or_above = { this = $REALM_HOLDER$ } - this = $REALM_HOLDER$ - } - } - } - } - } -} - -can_leave_diarchy_trigger = { - trigger_if = { - limit = { is_imprisoned = yes } - imprisonment_would_cause_regency_trigger = no - } - is_travelling = no - regency_for_personal_reasons_trigger = no -} - -regent_would_remain_loyal_after_death_trigger = { - is_ai = yes - diarch_loyalty_score_type_regency_value >= diarch_loyalty_visibly_loyal_threshold -} - -################################################## -# Character Interactions - -diarch_cannot_be_disabled_trigger = { - custom_description = { - text = diarch_interactions_tt_is_able - subject = $DIARCH$ - $DIARCH$ = { is_diarch_able_trigger = yes } - } -} - -diarch_legal_meddling_claimable_title_trigger = { - custom_description = { - text = "you_must_not_have_a_claim_on_the_title" - NOT = { - any_claimant = { this = $ACTOR$ } - } - } - custom_description = { - text = "character_interactions_not_rel_head_title" - is_head_of_faith = no - } - custom_tooltip = { - text = title_must_be_county_tier.tt - tier = tier_county - } - # This is mostly here to stop people from not claiming titles because they have valid titles that are _outside_ the sub-realm. - custom_tooltip = { - text = title_must_be_same_realm.tt - holder = { - any_liege_or_above = { this = $ACTOR$.liege } - } - } -} - -diarch_syphon_treasury_embezzlement_modifiers_trigger = { - OR = { - has_county_modifier = syphon_treasury_massive_sum_modifier - has_county_modifier = syphon_treasury_large_sum_modifier - has_county_modifier = syphon_treasury_medium_sum_modifier - has_county_modifier = syphon_treasury_small_sum_modifier - } -} - -diarch_shift_privileges_valid_target_title_trigger = { - NOR = { - has_county_modifier = shift_privileges_monopolies_sold_modifier - has_county_modifier = shift_privileges_scutage_exemptions_modifier - has_county_modifier = shift_privileges_conflicting_deeds_modifier - } -} - -diarch_swing_scales_valid_shared_hof_trigger = { - # You must share a HoF to be able to petition one. - custom_tooltip = { - text = swing_scales_currency_interaction.tt.no_shared_hof - exists = scope:actor.faith.religious_head - exists = scope:recipient.faith.religious_head - scope:actor.faith.religious_head = scope:recipient.faith.religious_head - } - # And opinions've gotta line up. - trigger_if = { - limit = { exists = scope:actor.faith.religious_head } - # They must like you. - custom_tooltip = { - text = swing_scales_currency_interaction.tt.hof_needs_to_like_you_more - scope:actor.faith.religious_head = { - opinion = { - target = scope:actor - value >= high_positive_opinion - } - } - } - # And not like scope:recipient too much. - custom_tooltip = { - text = swing_scales_currency_interaction.tt.hof_needs_to_like_them_less - scope:actor.faith.religious_head = { - opinion = { - target = scope:recipient - value <= medium_positive_opinion - } - } - } - # Plus scope:recipient can't have anything over them. - custom_tooltip = { - text = swing_scales_currency_interaction.tt.hof_refuses_to_cross_recipient - NOT = { - scope:recipient = { has_strong_hook = scope:actor.faith.religious_head } - } - } - } -} - -diarch_liege_wants_to_stiff_regent_trigger = { - OR = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:recipient } - opinion = { - target = scope:recipient - value <= very_high_negative_opinion - } - } -} - -cannot_release_former_regent_whilst_old_regent_holds_power_trigger = { - $PRISONER$ = { - trigger_if = { - limit = { - has_variable = imprisoned_by_diarch - exists = $PRISONER$.liege - $REGENT$ = { is_diarch_of_target = $PRISONER$.liege } - } - custom_tooltip = { - text = overthrow_regent_scheme_interaction.tt.cannot_release - NOR = { - var:imprisoned_by_diarch = $PRISONER$.imprisoner - var:imprisoned_by_diarch ?= $PRISONER$.liege.diarch - } - } - } - } -} - -################################################## -# Important Actions - -action_regent_imprison_suitable_char_covassals_trigger = { - opinion = { - target = root - value <= very_high_negative_opinion - } - save_temporary_scope_as = char_temp - # Could you take the interaction? - root = { - is_character_interaction_valid = { - interaction = diarch_imprison_interaction - recipient = scope:char_temp - } - } -} - -action_regent_imprison_suitable_char_rivals_trigger = { - save_temporary_scope_as = char_temp - root = { - is_character_interaction_valid = { - interaction = diarch_imprison_interaction - recipient = scope:char_temp - } - } -} - -action_shift_privileges_suitable_char_trigger = { - save_temporary_scope_as = char_temp - # Make sure we've got equal or higher diplo and so might get away with a cheeky forgery. - diplomacy <= root.diplomacy - # And we don't want to spam with little guys, especially as they're more expensive to use prestige on. - OR = { - highest_held_title_tier >= tier_duchy - # But don't block this out entirely within duchies. - liege.highest_held_title_tier = tier_duchy - } - # Could you take the interaction? - root = { - is_character_interaction_valid = { - interaction = diarch_shift_privileges_interaction - recipient = scope:char_temp - } - } -} - -action_legal_meddling_suitable_char_trigger = { - max_military_strength < root.eighty_percent_of_max_military_strength - NOR = { - has_any_good_relationship_with_character_trigger = { CHARACTER = root } - root = { has_truce = prev } - is_allied_to = root - } -} - -action_legal_meddling_suitable_title_trigger = { - diarch_legal_meddling_claimable_title_trigger = { ACTOR = root } - root = { - # Could you take the interaction? - is_character_interaction_valid = { - interaction = diarch_legal_meddling_interaction - recipient = scope:char_temp - } - } -} - -################################################## -# Decisions - -diarch_coup_valid_conspiracy_culmination_vassals_trigger = { - is_powerful_vassal_of = $LIEGE$ - is_imprisoned = no -} - -diarch_coup_attempt_is_valid_trigger = { - # Diarchy checks. - is_diarch = yes - $LIEGE$ = { has_diarchy_active_parameter = regents_can_try_to_overthrow_present_lieges } - ## Liege must be physically present to overthrow. You can't coup them whilst they're abroad. - $LIEGE$ = { - is_imprisoned = no - is_travelling = no - is_at_war = no - custom_tooltip = { - text = custom.not_attending_activity - NOT = { exists = involved_activity } - } - age >= 5 - } - # Support checks. - ## Have you gathered enough support from the realm's powerful vassals and/or councillors? - custom_tooltip = { - text = diarch_attempt_to_overthrow_liege.tt.majority_powerful_vassal_support - subject = root - has_variable_list = coup_pv_supporters_list - any_in_list = { - variable = coup_pv_supporters_list - count >= pv_overthrow_threshold_value - # Double check they're still valid. - diarch_coup_valid_conspiracy_culmination_vassals_trigger = { LIEGE = $LIEGE$ } - } - } - # As a speed-bump, we check how long this diarchy has been on for. - OR = { - # Either, you've been a diarch for a good long ways. - years_as_diarch >= 8 - # Or, you haven't been but everyone is kinda used to the concept of a diarch. - AND = { - years_as_diarch >= 4 - $LIEGE$ = { years_in_diarchy >= 10 } - } - # OR, you've laid the groundwork for such a coup already - custom_tooltip = { - text = diarch_attempt_to_overthrow_liege_bypass - has_character_flag = laid_coup_groundwork_flag - } - } - # And finally, for ease of sanity, your liege must be of a certain size. - $LIEGE$.sub_realm_size >= minor_realm_size -} - -diarch_coup_attempt_is_valid_showing_failure_only_trigger = { - # Diarch must be able to act. - diarch_cannot_be_disabled_trigger = { DIARCH = $DIARCH$ } - # Plus standard checks. - is_available_adult = yes - # Filter this out in advance, else we risk trying to enter a duel later, only to find we're already engaged in one. - custom_description = { - text = ENGAGED_IN_SINGLE_COMBAT - NOT = { exists = var:engaged_in_single_combat } - } - # Liege must have _something_ at the highest tier that isn't a HoF title. - custom_tooltip = { - text = diarch_attempt_to_overthrow_liege.tt.liege_cant_hold_only_hof_highest_title - liege = { - any_held_title = { - tier = prev.highest_held_title_tier - is_head_of_faith = no - } - } - } -} - -diarch_coup_attempt_grabbable_kingdom_trigger = { - highest_held_title_tier >= tier_empire - any_held_title = { - diarch_coup_attempt_grabbable_kingdom_guts_trigger = { TARGET = $TARGET$ } - } -} - -diarch_coup_attempt_grabbable_kingdom_guts_trigger = { - tier = tier_kingdom - is_head_of_faith = no - any_de_jure_county = { - holder = { - any_liege_or_above = { this = $TARGET$ } - } - } -} - -diarch_coup_attempt_grabbable_capital_and_duchies_trigger = { - is_head_of_faith = no - OR = { - AND = { - tier = tier_county - this.duchy = $TARGET$.primary_title.title_capital_county.duchy - } - this = $TARGET$.primary_title.title_capital_county.duchy - } -} - -################################################## -# Mandates - -#TODO_CD_EP2; rig these up to the actual loyalty value. - -diarch_loyalty_due_to_hook_trigger = { - $LIEGE$ = { - OR = { - has_hook_of_type = { - target = $DIARCH$ - type = loyalty_hook - } - has_hook_of_type = { - target = $DIARCH$ - type = predecessor_loyalty_hook - } - } - } -} - -diarch_wants_to_engage_with_mandates_trigger = { - save_temporary_scope_value_as = { - name = diarch_loyalty - value = $DIARCH$.diarch_loyalty_score_type_regency_value - } - OR = { - scope:diarch_loyalty >= diarch_loyalty_visibly_loyal_threshold - scope:diarch_loyalty <= diarch_loyalty_visibly_disloyal_threshold - } -} - -################################################## -# Events - -character_has_regency_diarchy_trigger = { - exists = diarch - OR = { - has_diarchy_active_parameter = diarchy_type_is_temporary_regency - has_diarchy_active_parameter = diarchy_type_is_entrenched_regency - } -} diff --git a/common/scripted_triggers/00_distance_triggers.txt b/common/scripted_triggers/00_distance_triggers.txt deleted file mode 100644 index c4da132249..0000000000 --- a/common/scripted_triggers/00_distance_triggers.txt +++ /dev/null @@ -1,23 +0,0 @@ -character_realm_neighbors_target_trigger = { - any_character_to_title_neighboring_county = { - holder = { - OR = { - this = $TARGET_CHARACTER$ - target_is_liege_or_above = $TARGET_CHARACTER$ - } - } - } -} - -should_notify_player_about_neighboring_rulers_wars_trigger = { - NOR = { - target_is_liege_or_above = $TARGET_CHARACTER$ # We have separate toasts for this. - target_is_vassal_or_below = $TARGET_CHARACTER$ # We are probably already aware of our vassal's wars (and likely involved in them in some fashion). - } - character_realm_neighbors_target_trigger = { TARGET_CHARACTER = $TARGET_CHARACTER$ } - OR = { - $TARGET_CHARACTER$ = { is_independent_ruler = yes } # Independent rulers are always relevant. - liege = $TARGET_CHARACTER$.liege # Rulers are also relevant if we have the same direct liege (We might be able to DoW them, or at least want to stay informed as to relative power level). - top_liege = $TARGET_CHARACTER$.liege # Alternatively, if their direct liege is our top liege, we can still DoW them (If I am a Duke under a King under an Emperor, I might still want to DoW one of the Emperor's other King or Duke vassals.) - } -} \ No newline at end of file diff --git a/common/scripted_triggers/00_dynasty_triggers.txt b/common/scripted_triggers/00_dynasty_triggers.txt deleted file mode 100644 index c2acacb0ad..0000000000 --- a/common/scripted_triggers/00_dynasty_triggers.txt +++ /dev/null @@ -1,89 +0,0 @@ - - -is_house_head = { - save_temporary_scope_as = house_check - exists = house - house = { - house_head = scope:house_check - } -} - -is_dynast = { - save_temporary_scope_as = dynast_check - custom_description = { - text = is_dynast - subject = scope:dynast_check - - exists = dynasty - dynasty = { - dynast = scope:dynast_check - } - } -} - -can_start_new_legacy_track_trigger = { - exists = dynasty - dynasty = { - OR = { - NOT = { has_dynasty_perk = blood_legacy_1 } - has_dynasty_perk = blood_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = warfare_legacy_1 } - has_dynasty_perk = warfare_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = law_legacy_1 } - has_dynasty_perk = law_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = guile_legacy_1 } - has_dynasty_perk = guile_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = erudition_legacy_1 } - has_dynasty_perk = erudition_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = glory_legacy_1 } - has_dynasty_perk = glory_legacy_5 - } - OR = { - NOT = { has_dynasty_perk = kin_legacy_1 } - has_dynasty_perk = kin_legacy_5 - } - OR = { - NOT = { has_fp1_dlc_trigger = yes } - NOT = { has_dynasty_perk = fp1_adventure_legacy_1 } - has_dynasty_perk = fp1_adventure_legacy_5 - } - OR = { - NOT = { has_fp1_dlc_trigger = yes } - NOT = { has_dynasty_perk = fp1_pillage_legacy_1 } - has_dynasty_perk = fp1_pillage_legacy_5 - } - OR = { - NOT = { has_dlc_feature = hybridize_culture } - NOT = { has_dynasty_perk = ep1_culture_legacy_1 } - has_dynasty_perk = ep1_culture_legacy_5 - } - OR = { - NOT = { has_dlc_feature = the_fate_of_iberia } - NOT = { has_dynasty_perk = fp2_urbanism_legacy_1 } - has_dynasty_perk = fp2_urbanism_legacy_5 - } - OR = { - NOT = { has_dlc_feature = the_fate_of_iberia } - NOT = { has_dynasty_perk = fp2_coterie_legacy_1 } - has_dynasty_perk = fp2_coterie_legacy_5 - } - } -} - -dynasty_head_prefers_activities_trigger = { - has_trait = diligent - OR = { - has_trait = gregarious - has_trait = lifestyle_reveler - } -} diff --git a/common/scripted_triggers/00_elective_triggers.txt b/common/scripted_triggers/00_elective_triggers.txt index 06a8be4c0d..794ea83ce8 100644 --- a/common/scripted_triggers/00_elective_triggers.txt +++ b/common/scripted_triggers/00_elective_triggers.txt @@ -144,7 +144,7 @@ parent_for_elective_succession_trigger = { #This trigger is used to prevent gran scope:holder = { NAND = { exists = faith.religious_head - this = faith.religious_head #TODO_CD:It might need to be changed to check only for the title rather than the holder. (controlled_faith = cope:title.holder.faith) + this = faith.religious_head } } faith = scope:holder.faith @@ -179,7 +179,7 @@ feudal_elective_potential_landed_candidate_trigger = { scope:holder = { NAND = { exists = faith.religious_head - this = faith.religious_head #TODO_CD:It might need to be changed to check only for the title rather than the holder. (controlled_faith = scope:holder.faith) + this = faith.religious_head } } this.faith = scope:holder.faith @@ -222,7 +222,7 @@ feudal_elective_potential_landless_claimant_candidate_trigger = { scope:holder = { NAND = { exists = faith.religious_head - this = scope:holder.faith.religious_head #TODO_CD:It might need to be changed to check only for the title rather than the holder. (controlled_faith = scope:holder.faith) + this = scope:holder.faith.religious_head } } faith = scope:holder.faith @@ -265,7 +265,7 @@ feudal_elective_potential_landless_dynastic_candidate_trigger = { scope:holder = { NAND = { exists = faith.religious_head - this = scope:holder.faith.religious_head #TODO_CD:It might need to be changed to check only for the title rather than the holder. (controlled_faith = scope:holder.faith) + this = scope:holder.faith.religious_head } } faith = scope:holder.faith diff --git a/common/scripted_triggers/00_faction_triggers.txt b/common/scripted_triggers/00_faction_triggers.txt index e193c99e0a..dbd72f7966 100644 --- a/common/scripted_triggers/00_faction_triggers.txt +++ b/common/scripted_triggers/00_faction_triggers.txt @@ -92,6 +92,24 @@ common_can_character_create_trigger = { } } +base_faction_trigger = { + NOT = { has_truce = scope:target } + can_join_or_create_faction_against = { + who = scope:target + faction = $FACTION_TYPE$ + } + scope:target = { NOT = { has_strong_hook = root } } + trigger_if = { + limit = { + exists = scope:recipient + } + scope:recipient = { + NOT = { is_at_war_with = scope:actor } + is_incapable_trigger = no + } + } +} + ############################ # Popular Faction Triggers # diff --git a/common/scripted_triggers/00_family_triggers.txt b/common/scripted_triggers/00_family_triggers.txt deleted file mode 100644 index acb622e8cc..0000000000 --- a/common/scripted_triggers/00_family_triggers.txt +++ /dev/null @@ -1,336 +0,0 @@ - -###TRIGGER LIST - -# is_close_family_of_root_trigger -# is_sibling_child_of_root_trigger -# is_parent_sibling_of_root_trigger -# is_cousin_of_root_trigger -# is_sibling_in_law_of_root_trigger -# is_mother_of_compare_character_trigger -# is_father_of_compare_character_trigger -# is_sibling_of_compare_character_trigger -# is_child_of_compare_character_trigger -# is_close_family_of_compare_character_trigger -# is_allowed_to_legitimize_children_trigger - - -is_close_family_of_root_trigger = { - OR = { - any_parent = { this = root } - any_sibling = { this = root } - any_child = { this = root } - } -} - -is_close_family_or_spouse_of_root_trigger = { - OR = { - any_parent = { this = root } - any_sibling = { this = root } - any_child = { this = root } - any_spouse = { this = root } - } -} - -is_sibling_child_of_root_trigger = { - any_parent = { - even_if_dead = yes - any_sibling = { - this = root - } - } -} - -is_parent_sibling_of_root_trigger = { - any_sibling = { - even_if_dead = yes - any_child = { - this = root - } - } -} - -is_cousin_of_root_trigger = { - any_parent = { - even_if_dead = yes - any_sibling = { - even_if_dead = yes - any_child = { - this = root - } - } - } -} - -is_sibling_in_law_of_root_trigger = { - NOT = { - any_sibling = { - this = root - } - } - any_spouse = { - any_sibling = { - this = root - } - } -} - -is_cousin_in_law_of_root_trigger = { - any_spouse = { - is_cousin_of = root - NOT = { this = root } - } -} - -is_auntuncle_in_law_of_root_trigger = { - any_spouse = { - is_uncle_or_aunt_of = root - NOT = { this = root } - } -} - -is_grandmotherfather_in_law_of_root_trigger = { - any_spouse = { - is_grandparent_of = root - NOT = { this = root } - } -} - -is_great_grandmotherfather_in_law_of_root_trigger = { - any_spouse = { - is_great_grandparent_of = root - NOT = { this = root } - } -} - -is_granddaughterson_in_law_of_root_trigger = { - any_spouse = { - is_grandchild_of = root - NOT = { this = root } - } -} - -is_great_granddaughterson_in_law_of_root_trigger = { - any_spouse = { - is_great_grandchild_of = root - NOT = { this = root } - } -} - -is_nibling_in_law_of_root_trigger = { - any_spouse = { - is_nibling_of = root - NOT = { this = root } - } -} - -is_any_family_relation_or_spouse_of_root_trigger = { - OR = { - any_parent = { this = root } - any_sibling = { this = root } - any_child = { this = root } - any_spouse = { this = root } - any_parent = { - even_if_dead = yes - any_sibling = { - this = root - } - } - any_sibling = { - even_if_dead = yes - any_child = { - this = root - } - } - AND = { - NOT = { - any_sibling = { - this = root - } - } - any_parent = { - even_if_dead = yes - any_child = { - this = root - } - } - } - } -} - -is_mother_of_compare_character_trigger = { - this = scope:compare_character.mother -} - -is_father_of_compare_character_trigger = { - this = scope:compare_character.father -} - -is_sibling_of_compare_character_trigger = { - scope:compare_character = { - any_sibling = { - this = prev - } - } -} - -is_child_of_compare_character_trigger = { - scope:compare_character = { - any_child = { - this = prev - } - } -} - -is_close_family_of_compare_character_trigger = { - OR = { - this = scope:compare_character.mother - this = scope:compare_character.father - any_sibling = { - this = scope:compare_character - } - father = scope:compare_character - mother = scope:compare_character - } -} - -is_allowed_to_legitimize_children_trigger = { - is_lowborn = no - is_concubine = no - is_ruler = yes - custom_description = { - text = faith_allows_legitimization_of_bastards - faith = { - has_doctrine_parameter = bastards_legitimize - } - } -} - - - -############################################### -# Triggers that take an argument and NOT root -############################################## -is_close_family_trigger = { - OR = { - any_parent = { this = $CHARACTER$ } - any_sibling = { this = $CHARACTER$ } - any_child = { this = $CHARACTER$ } - } -} - -is_close_family_or_spouse_trigger = { - OR = { - any_parent = { this = $CHARACTER$ } - any_sibling = { this = $CHARACTER$ } - any_child = { this = $CHARACTER$ } - any_spouse = { this = $CHARACTER$ } - } -} - -is_any_family_relation_or_spouse_trigger = { - save_temporary_scope_as = root_character - OR = { - any_parent = { this = $CHARACTER$ } - any_sibling = { this = $CHARACTER$ } - any_child = { this = $CHARACTER$ } - any_spouse = { this = $CHARACTER$ } - any_parent = { - even_if_dead = yes - any_sibling = { - this = $CHARACTER$ - } - } - any_parent = { - even_if_dead = yes - any_sibling = { - even_if_dead = yes - any_child = { - this = $CHARACTER$ - } - } - } - any_sibling = { - even_if_dead = yes - any_child = { - this = $CHARACTER$ - } - } - AND = { - NOT = { - any_sibling = { - this = $CHARACTER$ - } - } - any_parent = { - even_if_dead = yes - any_child = { - this = $CHARACTER$ - } - } - } - - #child/parent/sibling/nephew/grandchild/grandparent/uncle/aunt/niece/nephew is married to the other - any_spouse = { - OR = { - is_close_family_of = $CHARACTER$ - is_nibling_of = $CHARACTER$ - is_uncle_or_aunt_of = $CHARACTER$ - } - } - $CHARACTER$ = { - any_spouse = { - OR = { - is_close_family_of = scope:root_character - is_nibling_of = scope:root_character - is_uncle_or_aunt_of = scope:root_character - } - } - } - #child/parent/sibling is married to other's child/parent/sibling - any_close_family_member = { - OR = { - is_parent_of = scope:root_character - is_child_of = scope:root_character - is_sibling_of = scope:root_character - } - any_spouse = { - OR = { - is_parent_of = $CHARACTER$ - is_child_of = $CHARACTER$ - is_sibling_of = $CHARACTER$ - } - } - } - } -} - - -house_head_would_approve_legitimization_trigger = { - $LEGITIMIZER$ = { - save_temporary_scope_as = the_legitimizer - } - $BASTARD$ = { - save_temporary_scope_as = the_bastard - } - trigger_if = { - limit = { - exists = scope:legitimizer.house - } - scope:legitimizer.house.house_head = { - save_temporary_scope_as = the_house_head - } - - house_head_legitimize_approval_rating > 0 - } -} - -is_allowed_to_legitimize_child_trigger = { - is_allowed_to_legitimize_children_trigger = yes - OR = { - this = house.house_head - house_head_would_approve_legitimization_trigger = { - LEGITIMIZER = $LEGITIMIZER$ - BASTARD = $BASTARD$ - } - } -} diff --git a/common/scripted_triggers/00_feast_activity_triggers.txt b/common/scripted_triggers/00_feast_activity_triggers.txt deleted file mode 100644 index b0122f4768..0000000000 --- a/common/scripted_triggers/00_feast_activity_triggers.txt +++ /dev/null @@ -1,56 +0,0 @@ - -###TRIGGER LIST - -# has_strong_religious_conviction_trigger - -#Check whether any special conditions are true. -#Make sure conditions for new special Main Events are added to this! -has_special_main_event_potential = { - scope:activity = { - has_variable = potential_friend - } -} - -is_murder_feast = { - scope:activity = { - has_activity_option = { - category = special_type - option = feast_type_murder - } - } -} - -feast_default_participant_including_player_trigger = { - is_ai = yes - NOT = { this = root } - is_alive = yes - is_imprisoned = no -} - -feast_default_participant_trigger = { - is_ai = yes - NOT = { this = root } - is_alive = yes - is_imprisoned = no -} - -feast_default_adult_participant_trigger = { - is_ai = yes - NOT = { this = root } - is_adult = yes - is_alive = yes - is_imprisoned = no -} - -has_hosted_feast_opinion_targeting_character = { - OR = { - has_opinion_modifier = { - modifier = feast_hosted_successful_feast - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = feast_hosted_successful_feast_with_music - target = $CHARACTER$ - } - } -} diff --git a/common/scripted_triggers/00_general_trait_triggers.txt b/common/scripted_triggers/00_general_trait_triggers.txt deleted file mode 100644 index 946e7205a7..0000000000 --- a/common/scripted_triggers/00_general_trait_triggers.txt +++ /dev/null @@ -1,1224 +0,0 @@ - -###TRIGGER LIST - -# has_same_education_as_compare_character_trigger -# has_same_education_as_root_trigger -# has_same_lifestyle_as_compare_character_trigger -# has_same_lifestyle_as_root_trigger -# has_same_fame_as_compare_character_trigger -# has_same_fame_as_root_trigger -# has_a_personality_trait_in_common_with_root_trigger -# has_a_personality_trait_opposite_to_root_trigger -# has_a_personality_trait_in_common_with_compare_character_trigger -# has_a_personality_trait_opposite_to_compare_character_trigger -# has_same_education_trait_as_root_trigger - -# has_diplomacy_lifestyle_trait_trigger = yes -# has_martial_lifestyle_trait_trigger = yes -# has_stewardship_lifestyle_trait_trigger = yes -# has_intrigue_lifestyle_trait_trigger = yes -# has_learning_lifestyle_trait_trigger = yes - -#has_any_high_skill_rating = yes - - - - - - -#Checks whether scope character and compare_character has the same type of education. -has_same_education_as_compare_character_trigger = { - OR = { - AND = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - scope:compare_character = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - } - } - AND = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - scope:compare_character = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - } - } - AND = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - scope:compare_character = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - } - } - AND = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - scope:compare_character = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - } - } - AND = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - scope:compare_character = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - } - } - } -} - - -has_same_education_as_root_trigger = { - OR = { - AND = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - root = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - has_trait = education_intrigue_5 - } - } - } - AND = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - root = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - } - } - AND = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - root = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } - } - } - AND = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - root = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - has_trait = education_martial_5 - } - } - } - AND = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - root = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - has_trait = education_learning_5 - } - } - } - } -} - -has_same_lifestyle_as_compare_character_trigger = { - OR = { - AND = { - has_trait = diplomat - scope:compare_character = { has_trait = diplomat } - } - AND = { - has_trait = lifestyle_reveler - scope:compare_character = { has_trait = lifestyle_reveler } - } - AND = { - has_trait = lifestyle_blademaster - scope:compare_character = { has_trait = lifestyle_blademaster } - } - AND = { - has_trait = lifestyle_hunter - scope:compare_character = { has_trait = lifestyle_hunter } - } - AND = { - has_trait = strategist - scope:compare_character = { has_trait = strategist } - } - AND = { - has_trait = architect - scope:compare_character = { has_trait = architect } - } - AND = { - has_intrigue_lifestyle_trait_trigger = yes - scope:compare_character = { has_intrigue_lifestyle_trait_trigger = yes } - } - AND = { - has_trait = seducer - scope:compare_character = { has_trait = seducer } - } - AND = { - has_trait = celibate - scope:compare_character = { has_trait = celibate } - } - AND = { - has_learning_lifestyle_trait_trigger = yes - scope:compare_character = { has_learning_lifestyle_trait_trigger = yes } - } - AND = { - has_trait = family_first - scope:compare_character = { has_trait = family_first } - } - AND = { - has_trait = sadistic - scope:compare_character = { has_trait = sadistic } - } - AND = { - has_trait = lunatic - scope:compare_character = { has_trait = lunatic } - } - } -} - -has_same_lifestyle_as_root_trigger = { - OR = { - AND = { - has_trait = diplomat - root = { has_trait = diplomat } - } - AND = { - has_trait = lifestyle_reveler - root = { has_trait = lifestyle_reveler } - } - AND = { - has_trait = lifestyle_blademaster - root = { has_trait = lifestyle_blademaster } - } - AND = { - has_trait = lifestyle_hunter - root = { has_trait = lifestyle_hunter } - } - AND = { - has_trait = strategist - root = { has_trait = strategist } - } - AND = { - has_trait = architect - root = { has_trait = architect } - } - AND = { - has_intrigue_lifestyle_trait_trigger = yes - root = { has_intrigue_lifestyle_trait_trigger = yes } - } - AND = { - has_trait = seducer - root = { has_trait = seducer } - } - AND = { - has_trait = celibate - root = { has_trait = celibate } - } - AND = { - has_learning_lifestyle_trait_trigger = yes - root = { has_learning_lifestyle_trait_trigger = yes } - } - AND = { - has_trait = family_first - root = { has_trait = family_first } - } - AND = { - has_trait = sadistic - root = { has_trait = sadistic } - } - AND = { - has_trait = lunatic - root = { has_trait = lunatic } - } - } -} - -has_same_fame_as_compare_character_trigger = { - OR = { - AND = { - has_trait = berserker - scope:compare_character = { has_trait = berserker } - } - AND = { - OR = { - has_trait = bastard - has_trait = legitimized_bastard - } - scope:compare_character = { - has_trait = bastard - has_trait = legitimized_bastard - } - } - AND = { - has_trait = kinslayer - scope:compare_character = { has_trait = kinslayer } - } - AND = { - has_trait = sodomite - scope:compare_character = { has_trait = sodomite } - OR = { - AND = { - is_female = yes - scope:compare_character = { is_female = yes } - } - AND = { - is_female = no - scope:compare_character = { is_female = no } - } - } - } - AND = { - has_trait = deviant - scope:compare_character = { has_trait = deviant } - } - AND = { - has_trait = viking - scope:compare_character = { has_trait = viking } - } - AND = { - has_trait = adventurer - scope:compare_character = { has_trait = adventurer } - } - AND = { - has_trait = lunatic - scope:compare_character = { has_trait = lunatic } - } - AND = { - has_trait = incestuous - scope:compare_character = { has_trait = incestuous } - } - } -} - -has_same_fame_as_root_trigger = { - OR = { - AND = { - has_trait = berserker - root = { has_trait = berserker } - } - AND = { - OR = { - has_trait = bastard - has_trait = legitimized_bastard - } - root = { - has_trait = bastard - has_trait = legitimized_bastard - } - } - AND = { - has_trait = kinslayer - root = { has_trait = kinslayer } - } - AND = { - has_sexuality = homosexual - root = { has_sexuality = homosexual } - OR = { - AND = { - is_female = yes - root = { is_female = yes } - } - AND = { - is_female = no - root = { is_female = no } - } - } - } - AND = { - has_trait = deviant - root = { has_trait = deviant } - } - AND = { - has_trait = viking - root = { has_trait = viking } - } - AND = { - has_trait = adventurer - root = { has_trait = adventurer } - } - AND = { - has_trait = lunatic - root = { has_trait = lunatic } - } - } -} - -has_a_personality_trait_in_common_with_root_trigger = { - OR = { - AND = { - has_trait = chaste - root = { has_trait = chaste } - } - AND = { - has_trait = lustful - root = { has_trait = lustful } - } - AND = { - has_trait = temperate - root = { has_trait = temperate } - } - AND = { - has_trait = gluttonous - root = { has_trait = gluttonous } - } - AND = { - has_trait = generous - root = { has_trait = generous } - } - AND = { - has_trait = greedy - root = { has_trait = greedy } - } - AND = { - has_trait = diligent - root = { has_trait = diligent } - } - AND = { - has_trait = lazy - root = { has_trait = lazy } - } - AND = { - has_trait = wrathful - root = { has_trait = wrathful } - } - AND = { - has_trait = calm - root = { has_trait = calm } - } - AND = { - has_trait = impatient - root = { has_trait = impatient } - } - AND = { - has_trait = patient - root = { has_trait = patient } - } - AND = { - has_trait = stubborn - root = { has_trait = stubborn } - } - AND = { - has_trait = fickle - root = { has_trait = fickle } - } - AND = { - has_trait = humble - root = { has_trait = humble } - } - AND = { - has_trait = arrogant - root = { has_trait = arrogant } - } - AND = { - has_trait = deceitful - root = { has_trait = deceitful } - } - AND = { - has_trait = honest - root = { has_trait = honest } - } - AND = { - has_trait = craven - root = { has_trait = craven } - } - AND = { - has_trait = brave - root = { has_trait = brave } - } - AND = { - has_trait = shy - root = { has_trait = shy } - } - AND = { - has_trait = gregarious - root = { has_trait = gregarious } - } - AND = { - has_trait = ambitious - root = { has_trait = ambitious } - } - AND = { - has_trait = content - root = { has_trait = content } - } - AND = { - has_trait = arbitrary - root = { has_trait = arbitrary } - } - AND = { - has_trait = just - root = { has_trait = just } - } - AND = { - has_trait = cynical - root = { has_trait = cynical } - } - AND = { - has_trait = zealous - root = { has_trait = zealous } - } - AND = { - has_trait = paranoid - root = { has_trait = paranoid } - } - AND = { - has_trait = trusting - root = { has_trait = trusting } - } - AND = { - has_trait = compassionate - root = { has_trait = compassionate } - } - AND = { - has_trait = callous - root = { has_trait = callous } - } - AND = { - has_trait = sadistic - root = { has_trait = sadistic } - } - AND = { - has_trait = vengeful - root = { has_trait = vengeful } - } - AND = { - has_trait = forgiving - root = { has_trait = forgiving } - } - } -} - -has_a_personality_trait_opposite_to_root_trigger = { - OR = { - AND = { - has_trait = chaste - root = { has_trait = lustful } - } - AND = { - has_trait = lustful - root = { has_trait = chaste } - } - AND = { - has_trait = temperate - root = { has_trait = gluttonous } - } - AND = { - has_trait = gluttonous - root = { has_trait = temperate } - } - AND = { - has_trait = generous - root = { has_trait = greedy } - } - AND = { - has_trait = greedy - root = { has_trait = generous } - } - AND = { - has_trait = diligent - root = { has_trait = lazy } - } - AND = { - has_trait = lazy - root = { has_trait = diligent } - } - AND = { - has_trait = wrathful - root = { has_trait = calm } - } - AND = { - has_trait = calm - root = { has_trait = wrathful } - } - AND = { - has_trait = impatient - root = { has_trait = patient } - } - AND = { - has_trait = patient - root = { has_trait = impatient } - } - AND = { - has_trait = stubborn - root = { has_trait = fickle } - } - AND = { - has_trait = fickle - root = { has_trait = stubborn } - } - AND = { - has_trait = humble - root = { has_trait = arrogant } - } - AND = { - has_trait = arrogant - root = { has_trait = humble } - } - AND = { - has_trait = deceitful - root = { has_trait = honest } - } - AND = { - has_trait = honest - root = { has_trait = deceitful } - } - AND = { - has_trait = craven - root = { has_trait = brave } - } - AND = { - has_trait = brave - root = { has_trait = craven } - } - AND = { - has_trait = shy - root = { has_trait = gregarious } - } - AND = { - has_trait = gregarious - root = { has_trait = shy } - } - AND = { - has_trait = ambitious - root = { has_trait = content } - } - AND = { - has_trait = content - root = { has_trait = ambitious } - } - AND = { - has_trait = arbitrary - root = { has_trait = just } - } - AND = { - has_trait = just - root = { has_trait = arbitrary } - } - AND = { - has_trait = cynical - root = { has_trait = zealous } - } - AND = { - has_trait = zealous - root = { has_trait = cynical } - } - AND = { - has_trait = paranoid - root = { has_trait = trusting } - } - AND = { - has_trait = trusting - root = { has_trait = paranoid } - } - AND = { - has_trait = compassionate - root = { - OR = { - has_trait = callous - has_trait = sadistic - } - } - } - AND = { - has_trait = callous - root = { has_trait = compassionate } - } - AND = { - has_trait = sadistic - root = { has_trait = compassionate } - } - AND = { - has_trait = vengeful - root = { has_trait = forgiving } - } - AND = { - has_trait = forgiving - root = { has_trait = vengeful } - } - } -} - -has_a_personality_trait_in_common_with_compare_character_trigger = { - OR = { - AND = { - has_trait = chaste - scope:compare_character = { has_trait = chaste } - } - AND = { - has_trait = lustful - scope:compare_character = { has_trait = lustful } - } - AND = { - has_trait = temperate - scope:compare_character = { has_trait = temperate } - } - AND = { - has_trait = gluttonous - scope:compare_character = { has_trait = gluttonous } - } - AND = { - has_trait = generous - scope:compare_character = { has_trait = generous } - } - AND = { - has_trait = greedy - scope:compare_character = { has_trait = greedy } - } - AND = { - has_trait = diligent - scope:compare_character = { has_trait = diligent } - } - AND = { - has_trait = lazy - scope:compare_character = { has_trait = lazy } - } - AND = { - has_trait = wrathful - scope:compare_character = { has_trait = wrathful } - } - AND = { - has_trait = calm - scope:compare_character = { has_trait = calm } - } - AND = { - has_trait = impatient - scope:compare_character = { has_trait = impatient } - } - AND = { - has_trait = patient - scope:compare_character = { has_trait = patient } - } - AND = { - has_trait = stubborn - scope:compare_character = { has_trait = stubborn } - } - AND = { - has_trait = fickle - scope:compare_character = { has_trait = fickle } - } - AND = { - has_trait = humble - scope:compare_character = { has_trait = humble } - } - AND = { - has_trait = arrogant - scope:compare_character = { has_trait = arrogant } - } - AND = { - has_trait = deceitful - scope:compare_character = { has_trait = deceitful } - } - AND = { - has_trait = honest - scope:compare_character = { has_trait = honest } - } - AND = { - has_trait = craven - scope:compare_character = { has_trait = craven } - } - AND = { - has_trait = brave - scope:compare_character = { has_trait = brave } - } - AND = { - has_trait = shy - scope:compare_character = { has_trait = shy } - } - AND = { - has_trait = gregarious - scope:compare_character = { has_trait = gregarious } - } - AND = { - has_trait = ambitious - scope:compare_character = { has_trait = ambitious } - } - AND = { - has_trait = content - scope:compare_character = { has_trait = content } - } - AND = { - has_trait = arbitrary - scope:compare_character = { has_trait = arbitrary } - } - AND = { - has_trait = just - scope:compare_character = { has_trait = just } - } - AND = { - has_trait = cynical - scope:compare_character = { has_trait = cynical } - } - AND = { - has_trait = zealous - scope:compare_character = { has_trait = zealous } - } - AND = { - has_trait = paranoid - scope:compare_character = { has_trait = paranoid } - } - AND = { - has_trait = trusting - scope:compare_character = { has_trait = trusting } - } - AND = { - has_trait = compassionate - scope:compare_character = { has_trait = compassionate } - } - AND = { - has_trait = callous - scope:compare_character = { has_trait = callous } - } - AND = { - has_trait = sadistic - scope:compare_character = { has_trait = sadistic } - } - AND = { - has_trait = vengeful - scope:compare_character = { has_trait = vengeful } - } - AND = { - has_trait = forgiving - scope:compare_character = { has_trait = forgiving } - } - } -} - -has_a_personality_trait_opposite_to_compare_character_trigger = { - OR = { - AND = { - has_trait = chaste - scope:compare_character = { has_trait = lustful } - } - AND = { - has_trait = lustful - scope:compare_character = { has_trait = chaste } - } - AND = { - has_trait = temperate - scope:compare_character = { has_trait = gluttonous } - } - AND = { - has_trait = gluttonous - scope:compare_character = { has_trait = temperate } - } - AND = { - has_trait = generous - scope:compare_character = { has_trait = greedy } - } - AND = { - has_trait = greedy - scope:compare_character = { has_trait = generous } - } - AND = { - has_trait = diligent - scope:compare_character = { has_trait = lazy } - } - AND = { - has_trait = lazy - scope:compare_character = { has_trait = diligent } - } - AND = { - has_trait = wrathful - scope:compare_character = { has_trait = calm } - } - AND = { - has_trait = calm - scope:compare_character = { has_trait = wrathful } - } - AND = { - has_trait = impatient - scope:compare_character = { has_trait = patient } - } - AND = { - has_trait = patient - scope:compare_character = { has_trait = impatient } - } - AND = { - has_trait = stubborn - scope:compare_character = { has_trait = fickle } - } - AND = { - has_trait = fickle - scope:compare_character = { has_trait = stubborn } - } - AND = { - has_trait = humble - scope:compare_character = { has_trait = arrogant } - } - AND = { - has_trait = arrogant - scope:compare_character = { has_trait = humble } - } - AND = { - has_trait = deceitful - scope:compare_character = { has_trait = honest } - } - AND = { - has_trait = honest - scope:compare_character = { has_trait = deceitful } - } - AND = { - has_trait = craven - scope:compare_character = { has_trait = brave } - } - AND = { - has_trait = brave - scope:compare_character = { has_trait = craven } - } - AND = { - has_trait = shy - scope:compare_character = { has_trait = gregarious } - } - AND = { - has_trait = gregarious - scope:compare_character = { has_trait = shy } - } - AND = { - has_trait = ambitious - scope:compare_character = { has_trait = content } - } - AND = { - has_trait = content - scope:compare_character = { has_trait = ambitious } - } - AND = { - has_trait = arbitrary - scope:compare_character = { has_trait = just } - } - AND = { - has_trait = just - scope:compare_character = { has_trait = arbitrary } - } - AND = { - has_trait = cynical - scope:compare_character = { has_trait = zealous } - } - AND = { - has_trait = zealous - scope:compare_character = { has_trait = cynical } - } - AND = { - has_trait = paranoid - scope:compare_character = { has_trait = trusting } - } - AND = { - has_trait = trusting - scope:compare_character = { has_trait = paranoid } - } - AND = { - has_trait = compassionate - scope:compare_character = { - OR = { - has_trait = callous - has_trait = sadistic - } - } - } - AND = { - has_trait = callous - scope:compare_character = { has_trait = compassionate } - } - AND = { - has_trait = sadistic - scope:compare_character = { has_trait = compassionate } - } - AND = { - has_trait = vengeful - scope:compare_character = { has_trait = forgiving } - } - AND = { - has_trait = forgiving - scope:compare_character = { has_trait = vengeful } - } - } -} - -has_same_education_trait_as_root_trigger = { - OR = { - AND = { - has_trait = education_diplomacy - root = { has_trait = education_diplomacy } - } - AND = { - has_trait = education_martial - root = { has_trait = education_martial } - } - AND = { - has_trait = education_stewardship - root = { has_trait = education_stewardship } - } - AND = { - has_trait = education_intrigue - root = { has_trait = education_intrigue } - } - AND = { - has_trait = education_learning - root = { has_trait = education_learning } - } - } -} - -has_same_education_trait_as_character_trigger = { - OR = { - AND = { - has_trait = education_diplomacy - $CHARACTER$ = { has_trait = education_diplomacy } - } - AND = { - has_trait = education_martial - $CHARACTER$ = { has_trait = education_martial } - } - AND = { - has_trait = education_stewardship - $CHARACTER$ = { has_trait = education_stewardship } - } - AND = { - has_trait = education_intrigue - $CHARACTER$ = { has_trait = education_intrigue } - } - AND = { - has_trait = education_learning - $CHARACTER$ = { has_trait = education_learning } - } - } -} - - -has_diplomacy_lifestyle_trait_trigger = { - OR = { - has_trait = diplomat - has_trait = august - has_trait = family_first - } -} - -has_martial_lifestyle_trait_trigger = { - OR = { - has_trait = strategist - has_trait = overseer - has_trait = gallant - } -} - -has_stewardship_lifestyle_trait_trigger = { - OR = { - has_trait = architect - has_trait = administrator - has_trait = avaricious - } -} - -has_intrigue_lifestyle_trait_trigger = { - OR = { - has_trait = schemer - has_trait = seducer - has_trait = torturer - } -} - -has_learning_lifestyle_trait_trigger = { - OR = { - has_trait = scholar - has_trait = whole_of_body - has_trait = theologian - } -} - -has_special_content_trait = { - OR = { - is_cannibal_trigger = yes - is_witch_trigger = yes - is_deviant_trigger = yes - is_incestuous_trigger = yes - has_trait = lifestyle_reveler - has_trait = lifestyle_blademaster - has_trait = lifestyle_hunter - has_trait = lifestyle_mystic - has_trait = lifestyle_herbalist - has_trait = drunkard - has_trait = lunatic - has_trait = depressed - has_trait = possessed - } -} - -has_lifestyle_trait = { - OR = { - has_trait = lifestyle_reveler - has_trait = lifestyle_blademaster - has_trait = lifestyle_hunter - has_trait = lifestyle_mystic - has_trait = lifestyle_herbalist - has_trait = lifestyle_physician - } -} - -has_ward_guardian_education_match_compare_character_trigger = { - OR = { - AND = { - has_focus = education_diplomacy - scope:compare_character = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - } - } - } - AND = { - has_focus = education_martial - scope:compare_character = { - OR = { - has_trait = education_martial_1 - has_trait = education_martial_2 - has_trait = education_martial_3 - has_trait = education_martial_4 - } - } - } - AND = { - has_focus = education_stewardship - scope:compare_character = { - OR = { - has_trait = education_stewardship_1 - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - } - } - } - AND = { - has_focus = education_intrigue - scope:compare_character = { - OR = { - has_trait = education_intrigue_1 - has_trait = education_intrigue_2 - has_trait = education_intrigue_3 - has_trait = education_intrigue_4 - } - } - } - AND = { - has_focus = education_learning - scope:compare_character = { - OR = { - has_trait = education_learning_1 - has_trait = education_learning_2 - has_trait = education_learning_3 - has_trait = education_learning_4 - } - } - } - } -} - -has_any_high_skill_rating = { - OR = { - diplomacy >= high_skill_rating - intrigue >= high_skill_rating - prowess >= high_skill_rating - learning >= high_skill_rating - martial >= high_skill_rating - stewardship >= high_skill_rating - } -} diff --git a/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt b/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt index 6a3149cf6e..8c1d53542e 100644 --- a/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt +++ b/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt @@ -71,6 +71,24 @@ is_diff_faith_or_culture_trigger = { always = no } +is_same_faith_or_culture_trigger = { + OR = { + culture = $CHAR$.culture + faith = $CHAR$.faith + } + always = no +} + +is_same_culture_trigger = { + culture = $CHAR$.culture + always = no +} + +is_same_faith_trigger = { + culture = $CHAR$.culture + always = no +} + ################################################## # Catalyst Phase Triggers ## Should a catalyst be activating in this phase? @@ -150,6 +168,23 @@ activate_struggle_catalyst_secondary_character_involvement_neither_trigger = { } } +activate_struggle_catalyst_secondary_character_involvement_interloper_or_uninvolved_trigger = { + phase_has_catalyst = $CATALYST$ + save_temporary_scope_as = struggle_temp + $CHAR$ = { + always = no + } +} + +activate_struggle_catalyst_warfare_check_attacker_involvement_trigger = { + phase_has_catalyst = $CATALYST$ + save_temporary_scope_as = struggle_temp + $VAR_SCOPE$ = { + always = no + flag:$INVOLVEMENT$ = flag:$INVOLVEMENT$ + } +} + ################################################## # Parameter Triggers ## If a parameter is triggered in multiple places, we use a scripted trigger to keep things unified. diff --git a/common/scripted_triggers/00_has_dlc_scripted_triggers.txt b/common/scripted_triggers/00_has_dlc_scripted_triggers.txt deleted file mode 100644 index 2803d62ed3..0000000000 --- a/common/scripted_triggers/00_has_dlc_scripted_triggers.txt +++ /dev/null @@ -1,41 +0,0 @@ - -################################################## -# Expansion Pack Triggers - -has_bp1_dlc_trigger = { - has_dlc_feature = friends_and_foes -} - -has_bp2_dlc_trigger = { - has_dlc_feature = wards_and_wardens -} - -################################################## -# Flavour Pack Triggers - -has_fp1_dlc_trigger = { - # Does the host have the appropriate DLC? - has_dlc_feature = the_northern_lords -} - -has_fp2_dlc_trigger = { - # Does the host have the appropriate DLC? - has_dlc_feature = the_fate_of_iberia -} - - -################################################## -# Expansion Pack Triggers - -has_ep1_dlc_trigger = { - has_dlc = "The Royal Court" -} - -has_ep1_court_positions_dlc_trigger = { - # trigger for positions that are part of paid content - has_dlc = "The Royal Court" -} - -has_ep2_dlc_trigger = { - has_dlc_feature = tours_and_tournaments -} diff --git a/common/scripted_triggers/00_illustration_triggers.txt b/common/scripted_triggers/00_illustration_triggers.txt index c0a837f1cb..37cd794bf6 100644 --- a/common/scripted_triggers/00_illustration_triggers.txt +++ b/common/scripted_triggers/00_illustration_triggers.txt @@ -40,6 +40,10 @@ has_graphical_iberian_culture_group_trigger = { has_building_gfx = iberian_building_gfx } +has_graphical_iranian_culture_group_trigger = { + has_building_gfx = iranian_building_gfx +} + graphical_wilderness_desert_trigger = { OR = { @@ -392,42 +396,9 @@ has_graphical_western_region_trigger = { #Has graphical region Iberia trigger has_graphical_iberia_region_trigger = { always = no - #trigger_if = { - # limit = { - # exists = capital_province - # } - # capital_province = { - # geographical_region = world_europe_west_iberia - # } - #} - #trigger_else_if = { - # limit = { - # NOT = { exists = capital_province } - # } - # trigger_if = { - # limit = { exists = host.capital_province } - # host.capital_province = { - # geographical_region = world_europe_west_iberia - # } - # } - # trigger_else_if = { - # limit = { - # exists = liege.capital_province - # } - # liege.capital_province = { - # geographical_region = world_europe_west_iberia - # } - # } - # trigger_else_if = { - # limit = { - # exists = location.province_owner.capital_province - # } - # location.province_owner.capital_province = { - # geographical_region = world_europe_west_iberia - # } - # } - # trigger_else = { always = yes } - #} - #trigger_else = { always = yes } } +#Has graphical region Iran trigger +has_graphical_iran_region_trigger = { + always = no +} diff --git a/common/scripted_triggers/00_law_triggers.txt b/common/scripted_triggers/00_law_triggers.txt index b226e0a267..5eea5cd3a0 100644 --- a/common/scripted_triggers/00_law_triggers.txt +++ b/common/scripted_triggers/00_law_triggers.txt @@ -53,9 +53,14 @@ has_partition_succession_realm_law_trigger = { has_realm_law = confederate_partition_succession_law has_realm_law = partition_succession_law has_realm_law = high_partition_succession_law + has_realm_law = clan_antagonistic_partition_succession_law + has_realm_law = clan_competitive_partition_succession_law + has_realm_law = clan_impassive_partition_succession_law + has_realm_law = clan_friendly_partition_succession_law + has_realm_law = clan_harmonious_partition_succession_law # Warcraft - has_realm_law = dark_succession_law + has_realm_law = dark_succession_law } } @@ -73,7 +78,7 @@ can_have_confederate_partition_succession_law_trigger = { OR = { # Warcraft has_monarchy_government_trigger = yes - + NOT = { government_has_flag = government_is_clan } government_has_flag = government_is_tribal } } @@ -90,6 +95,7 @@ can_keep_partition_succession_law_trigger = { # Warcraft } } + NOT = { government_has_flag = government_is_clan } } can_have_partition_succession_law_trigger = { @@ -104,6 +110,7 @@ can_have_partition_succession_law_trigger = { # Warcraft has_monarchy_government_trigger = yes + NOT = { government_has_flag = government_is_clan } } } @@ -119,6 +126,7 @@ can_keep_high_partition_succession_law_trigger = { # Warcraft } } + NOT = { government_has_flag = government_is_clan} } can_have_high_partition_succession_law_trigger = { @@ -138,6 +146,7 @@ can_have_high_partition_succession_law_trigger = { # Warcraft has_monarchy_government_trigger = yes + NOT = { government_has_flag = government_is_clan } } } diff --git a/common/scripted_triggers/00_lifestyle_perk_triggers.txt b/common/scripted_triggers/00_lifestyle_perk_triggers.txt deleted file mode 100644 index 9f9bdb41d9..0000000000 --- a/common/scripted_triggers/00_lifestyle_perk_triggers.txt +++ /dev/null @@ -1,86 +0,0 @@ - -# Triggers used in events and actions caused by Lifestyle Perks - - -# extortion_powerful_vassal_trigger: Is this powerful vassal available for extortion? -# extortion_county_trigger: Is this County available for extortion? -# extortion_theocratic_vassal_trigger: Is this Theocratic Vassal available for extortion? - -extortion_powerful_vassal_trigger = { - is_available_ai_adult = yes - NOR = { - has_variable = was_recently_extorted - has_opinion_modifier = { - target = root - modifier = extorted_me_opinion - } - } -} - - -extortion_county_trigger = { - tier = tier_county - NOT = { this = root.capital_county } - county_control >= medium_county_control - NOR = { - has_county_modifier = county_extorted_modifier - has_variable = was_recently_extorted - } -} - -extortion_theocratic_vassal_trigger = { - is_available_ai_adult = yes - government_has_flag = government_is_theocracy - NOR = { - has_variable = was_recently_extorted - has_opinion_modifier = { - target = root - modifier = extorted_me_opinion - } - } -} - -extortion_vassal_at_large_trigger = { - is_available_ai_adult = yes - NOR = { - has_variable = was_recently_extorted - has_opinion_modifier = { - target = root - modifier = extorted_me_opinion - } - } -} - -extortion_courtier_representative_trigger = { - is_available_ai_adult = yes - NOR = { - is_close_family_of = root - has_variable = was_recently_extorted - has_opinion_modifier = { - target = root - modifier = extorted_me_opinion - } - } -} - -# We use a trigger so this can be enabled elsewhere easily. -can_challenge_rival_to_single_combat_trigger = { - # Enabling perks. - OR = { - has_perk = stalwart_leader_perk - culture = { has_cultural_parameter = can_duel_rivals } - } -} - -rival_single_combat_shown_and_not_invalid_trigger = { - # Scope:actor must be able to fight personally. - scope:actor = { can_start_single_combat_trigger = yes } - # Scope:actor cannot challenge someone they have a ceasefire against. - scope:actor = { - NOT = { has_truce = scope:recipient } - } - # Scope:actor *definitely* cannot challenge someone they're at war with. - scope:actor = { - NOT = { is_at_war_with = scope:recipient } - } -} diff --git a/common/scripted_triggers/00_lifestyle_triggers.txt b/common/scripted_triggers/00_lifestyle_triggers.txt deleted file mode 100644 index 643c265ded..0000000000 --- a/common/scripted_triggers/00_lifestyle_triggers.txt +++ /dev/null @@ -1,249 +0,0 @@ -# can_start_new_lifestyle_tree_trigger -# lifestyle_friend_trigger - - -can_start_new_lifestyle_tree_trigger = { - OR = { - NOR = { - has_perk = benevolent_intent_perk - has_perk = firm_hand_perk - } - has_perk = august_perk - } - OR = { - NOR = { - has_perk = befriend_perk - has_perk = groomed_to_rule_perk - } - has_perk = family_man_perk - } - OR = { - NOT = { has_perk = thoughtful_perk } - has_perk = diplomat_perk - } - OR = { - NOR = { - has_perk = dark_insights_perk - has_perk = dreadful_perk - } - has_perk = torturer_perk - } - OR = { - NOT = { has_perk = truth_is_relative_perk } - has_perk = schemer_perk - } - OR = { - NOR = { - has_perk = like_weed_in_a_garden_perk - has_perk = enticing_opportunity_perk - } - has_perk = seducer_perk - } - OR = { - NOT = { has_perk = anatomical_studies_perk } - has_perk = whole_of_body_perk - } - OR = { - NOR = { - has_perk = pedagogy_perk - has_perk = scientific_perk - } - has_perk = scholar_perk - } - OR = { - NOT = { has_perk = faithful_perk } - has_perk = theologian_perk - } - OR = { - NOT = { has_perk = stalwart_leader_perk } - has_perk = gallant_perk - } - OR = { - NOT = { has_perk = serve_the_crown_perk } - has_perk = overseer_perk - } - OR = { - NOT = { has_perk = bellum_justum_perk } - has_perk = strategist_perk - } - OR = { - NOR = { - has_perk = tax_man_perk - has_perk = cutting_corners_perk - } - has_perk = architect_perk - } - OR = { - NOT = { has_perk = meritocracy_perk } - has_perk = administrator_perk - } - OR = { - NOT = { has_perk = golden_obligations_perk } - has_perk = avaricious_perk - } -} - - - -############################## -# LIFESTYLE FRIEND TRIGGERS -############################## - -#Trigger to check if a friend is a lifestyle friend -lifestyle_friend_trigger = { - trigger_if = { - limit = { $CHARACTER$ = { is_ai = yes } } - OR = { - has_focus = $FOCUS$ - is_ruler = no - } - } - #If a player, check the friend points - trigger_else = { - $FOCUS$_friend_points > 0 - } -} - -#Is the character available as a potential lifestyle friend for CHARACTER -potential_lifestyle_friend_availability_trigger = { - lifestyle_friend_trigger = { CHARACTER = $CHARACTER$ FOCUS = $FOCUS$ } - basic_is_available_ai = yes - NOR = { - has_relation_friend = $CHARACTER$ - has_relation_rival = $CHARACTER$ - is_at_war_with = $CHARACTER$ - } - is_adult = yes - opinion = { - target = $CHARACTER$ - value >= low_negative_opinion - } - save_temporary_scope_value_as = { - name = trigger_focus - value = flag:$FOCUS$ - } - trigger_if = { - limit = { scope:trigger_focus = flag:intrigue_temptation_focus } - NOT = { - dislikes_partner_cheating_trigger = { PARTNER = $CHARACTER$ } - } - } -} - -has_focus_martial = { - OR = { - has_focus = martial_chivalry_focus - has_focus = martial_authority_focus - has_focus = martial_strategy_focus - } -} - -has_focus_learning = { - OR = { - has_focus = learning_theology_focus - has_focus = learning_scholarship_focus - has_focus = learning_medicine_focus - } -} - -has_focus_intrigue = { - OR = { - has_focus = intrigue_intimidation_focus - has_focus = intrigue_temptation_focus - has_focus = intrigue_skulduggery_focus - } -} - -has_focus_diplomacy = { - OR = { - has_focus = diplomacy_family_focus - has_focus = diplomacy_majesty_focus - has_focus = diplomacy_foreign_affairs_focus - } -} - -has_focus_stewardship = { - OR = { - has_focus = stewardship_domain_focus - has_focus = stewardship_wealth_focus - has_focus = stewardship_duty_focus - } -} - - -####################### -# misc -####################### - -has_focus_or_focus_trait_trigger = { - save_temporary_scope_value_as = { - name = trigger_focus - value = flag:$FOCUS$ - } - OR = { - has_focus = $FOCUS$ - trigger_if = { - limit = { scope:trigger_focus = flag:diplomacy_foreign_affairs_focus } - has_trait = diplomat - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:diplomacy_majesty_focus } - has_trait = august - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:diplomacy_family_focus } - has_trait = family_first - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:martial_strategy_focus } - has_trait = strategist - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:martial_authority_focus } - has_trait = overseer - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:martial_chivalry_focus } - has_trait = gallant - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:stewardship_wealth_focus } - has_trait = avaricious - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:stewardship_domain_focus } - has_trait = architect - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:stewardship_duty_focus } - has_trait = administrator - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:intrigue_skulduggery_focus } - has_trait = schemer - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:intrigue_temptation_focus } - has_trait = seducer - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:intrigue_intimidation_focus } - has_trait = torturer - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:learning_medicine_focus } - has_trait = whole_of_body - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:learning_scholarship_focus } - has_trait = scholar - } - trigger_else_if = { - limit = { scope:trigger_focus = flag:learning_theology_focus } - has_trait = theologian - } - trigger_else = { - always = no - } - } -} diff --git a/common/scripted_triggers/00_marriage_triggers.txt b/common/scripted_triggers/00_marriage_triggers.txt index bc2b64d032..8762b816e4 100644 --- a/common/scripted_triggers/00_marriage_triggers.txt +++ b/common/scripted_triggers/00_marriage_triggers.txt @@ -158,6 +158,26 @@ could_marry_character_trigger = { #} } } + trigger_if = { + limit = { + any_close_or_extended_family_member = { + any_spouse = { this = $CHARACTER$ } + } + } + faith = { has_doctrine = doctrine_consanguinity_unrestricted } + $CHARACTER$ = { + faith = { has_doctrine = doctrine_consanguinity_unrestricted } + NOT = { + any_spouse = { + is_close_or_extended_family_of = scope:can_marry_check + NOT = { + faith = { has_doctrine = doctrine_consanguinity_unrestricted } + } + } + } + } + } + # Cannot marry self NOT = { scope:can_marry_check = { is_spouse_of = $CHARACTER$ } } diff --git a/common/scripted_triggers/00_military_triggers.txt b/common/scripted_triggers/00_military_triggers.txt deleted file mode 100644 index fb593f7f3b..0000000000 --- a/common/scripted_triggers/00_military_triggers.txt +++ /dev/null @@ -1,15 +0,0 @@ -#Triggers handling questions of military and warfare - -#Checks whether scope character has greater military strength than the ratio specified -military_strength_greater_than_ratio_trigger = { - save_temporary_scope_value_as = { - name = ratio - - value = { - value = max_military_strength - divide = $TARGET$.max_military_strength - } - } - - scope:ratio > $RATIO$ -} diff --git a/common/scripted_triggers/00_opinion_scripted_triggers.txt b/common/scripted_triggers/00_opinion_scripted_triggers.txt deleted file mode 100644 index 905ae8d3b6..0000000000 --- a/common/scripted_triggers/00_opinion_scripted_triggers.txt +++ /dev/null @@ -1,281 +0,0 @@ - -################################################## -# Negative Opinion Triggers - -# Do I have any prior quarrel with this character? -has_any_major_negative_opinion_against_character_trigger = { - OR = { - has_any_war_opinion_against_character_trigger = { CHARACTER = $CHARACTER$ } - has_any_major_revenge_opinion_against_character_trigger = { CHARACTER = $CHARACTER$ } - } -} - -# Has this character declared war on me close enough that I remember it? -has_any_war_opinion_against_character_trigger = { - OR = { - has_opinion_modifier = { - modifier = declared_war - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = declared_war_on_son_daughter - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = vassal_lost_faction_revolt_war - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = vassal_wp_faction_revolt_war - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = peasant_revolt_opinion - target = $CHARACTER$ - } - } -} - -# Did this character do something awful to me or my family? -has_any_major_revenge_opinion_against_character_trigger = { - OR = { - has_opinion_modifier = { - modifier = imprisoned_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = banished_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = demanded_taking_vows - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = killed_my_child - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = treachery_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = treasonous_revoke_refusal - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = treasonous_imprison_refusal - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = treasonous_disobeyed_diarch - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = abductor_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_murder_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = botched_my_treatment_crime_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = botched_treatment_of_kin_crime_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = failed_to_treat_me_crime_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = failed_to_treat_kin_crime_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = theft_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = embezzled_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_arrest_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_imprisonment_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = rebellious_vassal_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = plotting_against_liege_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = spying_on_liege_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = abducted_me_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_abduction_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = elopement_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_elopement_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = murdered_close_family_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_murder_close_family_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_murder_me_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = murdered_close_relation_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = murdered_someone_close_to_me_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = hurt_someone_close_to_me_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = murdered_my_vassal_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_close_family - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_close_family_crime - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_dynasty_member - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_close_relation_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_family_sun_trial_modifier - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = executed_my_countryman_modifier - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = tortured_family_member - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = tortured_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = blinded_family_member - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = blinded_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = castrated_family_member - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = castrated_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = attempted_to_steal_artifact_from_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = stole_artifact_from_me - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = slept_with_spouse_discovered_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = slept_with_spouse_exposed_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = unfaithful_spouse_discovered_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = unfaithful_spouse_exposed_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = refused_to_renounce_lover_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = betrayed_our_promise - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = loved_one_dungeon_death - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = reason_child_died - target = $CHARACTER$ - } - } -} - -# Did this character do something irksome to me or my family? -has_any_petty_revenge_opinion_against_character_trigger = { - OR = { - has_opinion_modifier = { - modifier = insulted_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = smeared_opinion - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = mocked_me_in_time_of_need - target = $CHARACTER$ - } - has_opinion_modifier = { - modifier = abandoned_me_opinion - target = $CHARACTER$ - } - } -} diff --git a/common/scripted_triggers/00_personality_trait_triggers.txt b/common/scripted_triggers/00_personality_trait_triggers.txt deleted file mode 100644 index cf862749a8..0000000000 --- a/common/scripted_triggers/00_personality_trait_triggers.txt +++ /dev/null @@ -1,192 +0,0 @@ -########################################################################################################################## -# -# These triggers all check for character flags which can be applied by the effects in '00_personality_trait_effects.txt' -# Used to determine if those effects successfully ran, and if they are still valid. - -personality_has_any_trait_flag_trigger = { - OR = { - scope:has_opposing_trait = flag:arrogant - scope:has_opposing_trait = flag:humble - scope:has_opposing_trait = flag:lustful - scope:has_opposing_trait = flag:chaste - scope:has_opposing_trait = flag:gregarious - scope:has_opposing_trait = flag:shy - scope:has_opposing_trait = flag:generous - scope:has_opposing_trait = flag:greedy - scope:has_opposing_trait = flag:ambitious - scope:has_opposing_trait = flag:content - scope:has_opposing_trait = flag:impatient - scope:has_opposing_trait = flag:patient - scope:has_opposing_trait = flag:temperate - scope:has_opposing_trait = flag:gluttonous - scope:has_opposing_trait = flag:diligent - scope:has_opposing_trait = flag:lazy - scope:has_opposing_trait = flag:wrathful - scope:has_opposing_trait = flag:calm - scope:has_opposing_trait = flag:deceitful - scope:has_opposing_trait = flag:honest - scope:has_opposing_trait = flag:craven - scope:has_opposing_trait = flag:brave - scope:has_opposing_trait = flag:arbitrary - scope:has_opposing_trait = flag:just - scope:has_opposing_trait = flag:cynical - scope:has_opposing_trait = flag:zealous - scope:has_opposing_trait = flag:paranoid - scope:has_opposing_trait = flag:trusting - scope:has_opposing_trait = flag:compassionate - scope:has_opposing_trait = flag:callous - scope:has_opposing_trait = flag:sadistic - scope:has_opposing_trait = flag:forgiving - scope:has_opposing_trait = flag:vengeful - scope:has_opposing_trait = flag:stubborn - scope:has_opposing_trait = flag:fickle - } -} - - - -#Checks if we can safely run the -personality_can_trait_shift = { - OR = { - AND = { - scope:has_opposing_trait = flag:arrogant - has_trait = arrogant - } - AND = { - scope:has_opposing_trait = flag:humble - has_trait = humble - } - AND = { - scope:has_opposing_trait = flag:lustful - has_trait = lustful - } - AND = { - scope:has_opposing_trait = flag:chaste - has_trait = chaste - } - AND = { - scope:has_opposing_trait = flag:gregarious - has_trait = gregarious - } - AND = { - scope:has_opposing_trait = flag:shy - has_trait = shy - } - AND = { - scope:has_opposing_trait = flag:generous - has_trait = generous - } - AND = { - scope:has_opposing_trait = flag:greedy - has_trait = greedy - } - AND = { - scope:has_opposing_trait = flag:ambitious - has_trait = ambitious - } - AND = { - scope:has_opposing_trait = flag:content - has_trait = content - } - AND = { - scope:has_opposing_trait = flag:impatient - has_trait = impatient - } - AND = { - scope:has_opposing_trait = flag:patient - has_trait = patient - } - AND = { - scope:has_opposing_trait = flag:temperate - has_trait = temperate - } - AND = { - scope:has_opposing_trait = flag:gluttonous - has_trait = gluttonous - } - AND = { - scope:has_opposing_trait = flag:diligent - has_trait = diligent - } - AND = { - scope:has_opposing_trait = flag:lazy - has_trait = lazy - } - AND = { - scope:has_opposing_trait = flag:wrathful - has_trait = wrathful - } - AND = { - scope:has_opposing_trait = flag:calm - has_trait = calm - } - AND = { - scope:has_opposing_trait = flag:deceitful - has_trait = deceitful - } - AND = { - scope:has_opposing_trait = flag:honest - has_trait = honest - } - AND = { - scope:has_opposing_trait = flag:craven - has_trait = craven - } - AND = { - scope:has_opposing_trait = flag:brave - has_trait = brave - } - AND = { - scope:has_opposing_trait = flag:arbitrary - has_trait = arbitrary - } - AND = { - scope:has_opposing_trait = flag:just - has_trait = just - } - AND = { - scope:has_opposing_trait = flag:cynical - has_trait = cynical - } - AND = { - scope:has_opposing_trait = flag:zealous - has_trait = zealous - } - AND = { - scope:has_opposing_trait = flag:paranoid - has_trait = paranoid - } - AND = { - scope:has_opposing_trait = flag:trusting - has_trait = trusting - } - AND = { - scope:has_opposing_trait = flag:compassionate - has_trait = compassionate - } - AND = { - scope:has_opposing_trait = flag:callous - has_trait = callous - } - AND = { - scope:has_opposing_trait = flag:sadistic - has_trait = sadistic - } - AND = { - scope:has_opposing_trait = flag:forgiving - has_trait = forgiving - } - AND = { - scope:has_opposing_trait = flag:vengeful - has_trait = vengeful - } - AND = { - scope:has_opposing_trait = flag:stubborn - has_trait = stubborn - } - AND = { - scope:has_opposing_trait = flag:fickle - has_trait = fickle - } - } -} diff --git a/common/scripted_triggers/00_personality_triggers.txt b/common/scripted_triggers/00_personality_triggers.txt deleted file mode 100644 index 26e7863ed3..0000000000 --- a/common/scripted_triggers/00_personality_triggers.txt +++ /dev/null @@ -1,210 +0,0 @@ - -###PERSONALITY TRIGGER LIST - -# has_personality_malicious_trigger - someone who is deceitful/uncaring/selfish/doesn't mind hurting others -# has_personality_benevolent_trigger - a kind soul who is likely to be helpful -# has_personality_dominant_trigger - someone with high confidence who is in control (or wants to be) -# has_personality_submissive_trigger - someone with low confidence or who is fine with obeying others -# has_personality_extroverted_trigger - someone who likes to interact with others -# has_personality_introverted_trigger - someone who is shy/chaste/scared -# has_personality_emotional_trigger - someone whose actions are easily swayed by their emotions -# has_personality_levelheaded_trigger - someone who is always in control or is indifferent -# has_personality_annoying_trigger - someone who gossips, meddles, disturbs etc. -# probably_intelligent_trigger -# probably_unintelligent_trigger - - -############################# -#SUPPORTING TRAITS TRIGGERS -############################ - -has_trait_malicious_trigger = { - OR = { - has_trait = deceitful - has_trait = arbitrary - has_trait = callous - has_trait = sadistic - has_trait = vengeful - has_trait = rowdy - } -} - -has_trait_benevolent_trigger = { - OR = { - has_trait = generous - has_trait = just - has_trait = compassionate - has_trait = forgiving - } -} - -has_trait_dominant_trigger = { - OR = { - has_trait = arrogant - has_trait = brave - has_trait = ambitious - has_trait = stubborn - has_trait = bossy - has_trait = rowdy - } -} - -has_trait_submissive_trigger = { - OR = { - has_trait = craven - has_trait = humble - has_trait = content - has_trait = fickle - } -} - -has_trait_extroverted_trigger = { - OR = { - has_diplomacy_lifestyle_trait_trigger = yes - has_trait = seducer - has_trait = lustful - has_trait = gregarious - has_trait = curious - has_trait = charming - } -} - -has_trait_introverted_trigger = { - OR = { - has_trait = celibate - has_trait = chaste - has_trait = craven - has_trait = shy - has_trait = pensive - } -} - -has_trait_emotional_trigger = { - OR = { - has_trait = wrathful - has_trait = impatient - has_trait = paranoid - has_trait = compassionate - has_trait = vengeful - has_trait = drunkard - has_trait = depressed - has_trait = lunatic - has_trait = possessed - } -} - -has_trait_levelheaded_trigger = { - OR = { - has_trait = temperate - has_trait = calm - has_trait = patient - has_trait = callous - has_trait = pensive - } -} - - -######################### -#PERSONALITY TRIGGERS -########################## - -has_personality_malicious_trigger = { - has_trait_malicious_trigger = yes - has_trait_benevolent_trigger = no -} - - -has_personality_benevolent_trigger = { - has_trait_benevolent_trigger = yes - has_trait_malicious_trigger = no -} - -has_personality_dominant_trigger = { - has_trait_dominant_trigger = yes - has_trait_submissive_trigger = no -} - -has_personality_submissive_trigger = { - has_trait_submissive_trigger = yes - has_trait_dominant_trigger = no -} - -has_personality_extroverted_trigger = { - has_trait_extroverted_trigger = yes - has_trait_introverted_trigger = no -} - -has_personality_introverted_trigger = { - has_trait_introverted_trigger = yes - has_trait_extroverted_trigger = no -} - -has_personality_emotional_trigger = { - has_trait_emotional_trigger = yes - has_trait_levelheaded_trigger = no -} - -has_personality_levelheaded_trigger = { - has_trait_levelheaded_trigger = yes - has_trait_emotional_trigger = no -} - -has_personality_annoying_trigger = { - OR = { - has_trait = gluttonous - has_trait = lazy - has_trait = arrogant - has_trait = drunkard - has_trait = stubborn - has_trait = paranoid - has_trait = lunatic - has_trait = possessed - has_trait = curious - has_trait = rowdy - } -} - -#Intelligence estimations -probably_intelligent_trigger = { - OR = { - has_trait_rank = { - trait = intellect_good - rank > 0 - } - has_trait = shrewd - } -} - -probably_unintelligent_trigger = { - OR = { - has_trait_rank = { - trait = intellect_bad - rank > 0 - } - has_trait = dull - has_trait = inbred - } -} - -# Other personality checks -untrustworthy_trigger = { - OR = { - has_trait = deceitful - has_trait = arbitrary - has_trait = disloyal - } -} - -loves_food_trigger = { - NOR = { - has_trait = inappetetic - has_trait = temperate - } - OR = { - has_trait = comfort_eater - has_trait = gluttonous - has_court_position = food_taster_court_position - } -} - - diff --git a/common/scripted_triggers/00_pet_triggers.txt b/common/scripted_triggers/00_pet_triggers.txt deleted file mode 100644 index 7c29ed3fe0..0000000000 --- a/common/scripted_triggers/00_pet_triggers.txt +++ /dev/null @@ -1,62 +0,0 @@ - -#Triggers revolving around pets - -has_cat_or_dog_trigger = { - OR = { - has_cat_trigger = yes - has_dog_trigger = yes - } -} - -has_named_cat_or_dog_trigger = { - OR = { - has_named_cat_trigger = yes - has_named_dog_trigger = yes - } -} - -has_cat_trigger = { - any_owned_story = { - story_type = story_cycle_pet_cat - } -} - -has_named_cat_trigger = { - any_owned_story = { - story_type = story_cycle_pet_cat - } - exists = var:story_cycle_cat_name -} - -has_dog_trigger = { - any_owned_story = { - story_type = story_cycle_pet_dog - } -} - -has_named_dog_trigger = { - any_owned_story = { - story_type = story_cycle_pet_dog - } - exists = var:story_cycle_dog_name -} - -has_alive_pet_trigger = { - OR = { - has_named_cat_trigger = yes - has_named_dog_trigger = yes - has_character_modifier = exotic_pet_wolf - has_character_modifier = exotic_pet_bear - has_character_modifier = exotic_pet_lion - has_character_modifier = exotic_pet_tiger - } -} - -has_exotic_pet_trigger = { - OR = { - has_character_modifier = exotic_pet_wolf - has_character_modifier = exotic_pet_bear - has_character_modifier = exotic_pet_lion - has_character_modifier = exotic_pet_tiger - } -} diff --git a/common/scripted_triggers/00_physical_appearance_triggers.txt b/common/scripted_triggers/00_physical_appearance_triggers.txt deleted file mode 100644 index ae1b072c14..0000000000 --- a/common/scripted_triggers/00_physical_appearance_triggers.txt +++ /dev/null @@ -1,30 +0,0 @@ - -##TRIGGER LIST -# has_conventionally_attractive_trigger -# has_conventionally_ugly_trigger -# -# - -has_conventionally_attractive_trigger = { - OR = { - has_trait = beauty_good - AND = { - has_trait = strong - NOT = { has_trait = beauty_bad } - } - } -} - -has_conventionally_ugly_trigger = { - OR = { - has_trait = beauty_bad - has_trait = hunchbacked - has_trait = one_legged - has_trait = scarred - has_trait = one_eyed - has_trait = scaly - has_trait = great_pox - has_trait = dwarf - has_trait = albino - } -} \ No newline at end of file diff --git a/common/scripted_triggers/00_playdate_activity_triggers.txt b/common/scripted_triggers/00_playdate_activity_triggers.txt deleted file mode 100644 index 38cbd03198..0000000000 --- a/common/scripted_triggers/00_playdate_activity_triggers.txt +++ /dev/null @@ -1,16 +0,0 @@ - - -playdate_default_participant_trigger = { - is_ai = yes - NOT = { this = root } - is_alive = yes - is_imprisoned = no - is_incapable = no -} - - -playdate_potential_guest_check_trigger = { - NOT = { this = scope:activity.activity_host } - is_available_for_child_activity_trigger = yes - NOT = { is_in_list = potential_guests } -} diff --git a/common/scripted_triggers/00_province_triggers.txt b/common/scripted_triggers/00_province_triggers.txt deleted file mode 100644 index fce5aee1ce..0000000000 --- a/common/scripted_triggers/00_province_triggers.txt +++ /dev/null @@ -1,3 +0,0 @@ -has_province_owner = { - exists = province_owner -} diff --git a/common/scripted_triggers/00_relation_triggers.txt b/common/scripted_triggers/00_relation_triggers.txt index 9ffdf8bd7a..20f3548214 100644 --- a/common/scripted_triggers/00_relation_triggers.txt +++ b/common/scripted_triggers/00_relation_triggers.txt @@ -680,25 +680,28 @@ has_no_real_status_trigger = { } has_no_particular_noble_roots_trigger = { - OR = { - is_lowborn = yes - AND = { - exists = dynasty - dynasty = { - any_dynasty_member = { - count <= 2 + custom_tooltip = { + text = has_no_particular_noble_roots_trigger + OR = { + is_lowborn = yes + AND = { + exists = dynasty + dynasty = { + any_dynasty_member = { + count <= 2 + } } } + highest_held_title_tier <= tier_barony } - highest_held_title_tier <= tier_barony - } - NOR = { - any_close_or_extended_family_member = { - highest_held_title_tier > tier_barony - } - AND = { - exists = dynasty - dynasty.dynasty_prestige_level >= 2 + NOR = { + any_close_or_extended_family_member = { + highest_held_title_tier > tier_barony + } + AND = { + exists = dynasty + dynasty.dynasty_prestige_level >= 2 + } } } } diff --git a/common/scripted_triggers/00_religious_triggers.txt b/common/scripted_triggers/00_religious_triggers.txt index 573c89f3c6..29a4db7aa4 100644 --- a/common/scripted_triggers/00_religious_triggers.txt +++ b/common/scripted_triggers/00_religious_triggers.txt @@ -999,6 +999,13 @@ religion_has_angels_trigger = { like_christianity_religion_trigger = yes } +religion_has_circumcision_trigger = { + OR = { + like_islam_religion_trigger = yes + like_judaism_religion_trigger = yes + } +} + is_heretic_trigger = { $WHO$.faith.religion = $TARGET$.faith.religion $WHO$.faith = { @@ -1044,6 +1051,9 @@ valid_demand_conversion_conditions_trigger = { scope:recipient = { NOT = { is_imprisoned_by = scope:actor } } + scope:recipient = { + NOT = { is_at_war_with = scope:actor } + } custom_description = { text = "is_head_of_religion" @@ -1063,6 +1073,27 @@ valid_demand_conversion_conditions_trigger = { } } } + + #trigger_if = { + # limit = { + # scope:recipient = { + # AND = { + # has_variable = cannot_be_converted_by_value + # var:cannot_be_converted_by_value = scope:actor + # } + # } + # } + # custom_tooltip = { + # text = promised_to_not_convert_character + # scope:recipient = { + # NOR = { + # has_variable = cannot_be_converted_by_value + # var:cannot_be_converted_by_value = scope:actor + # } + # } + # } + #} + custom_tooltip = { text = cannot_take_overt_hostile_actions_against_diarch.tt NOT = { scope:recipient ?= scope:actor.diarch } @@ -1531,6 +1562,12 @@ unreformed_or_syncretic_with_unreformed_trigger = { } } +zoroastrian_or_syncretic_with_eastern_trigger = { + $CHARACTER$ = { + always = no + } +} + #Used on faiths is_dharmic_faith_trigger = { OR = { @@ -1539,3 +1576,4 @@ is_dharmic_faith_trigger = { like_jainism_religion_trigger = yes } } + diff --git a/common/scripted_triggers/00_rich_presence_triggers.txt b/common/scripted_triggers/00_rich_presence_triggers.txt deleted file mode 100644 index b9313cc0f9..0000000000 --- a/common/scripted_triggers/00_rich_presence_triggers.txt +++ /dev/null @@ -1,18 +0,0 @@ -is_murder_activity_trigger = { - OR = { - AND = { - has_activity_type = activity_wedding - has_activity_option = { - category = special_type - option = wedding_type_bloody - } - } - AND = { - has_activity_type = activity_feast - has_activity_option = { - category = special_type - option = feast_type_murder - } - } - } -} diff --git a/common/scripted_triggers/00_scheme_befriend_triggers.txt b/common/scripted_triggers/00_scheme_befriend_triggers.txt deleted file mode 100644 index d4c09b55a3..0000000000 --- a/common/scripted_triggers/00_scheme_befriend_triggers.txt +++ /dev/null @@ -1,52 +0,0 @@ -#Scripted triggers relating to the Befriend Scheme - -##################################################################### -# TRIGGER LIST -##################################################################### -# !!! Remember to add all new triggers with a short description here !!! - -#befriend_target_is_close_to_owner_trigger <-Indicates someone is close to you already - -###################################################################### -# TRIGGERS -###################################################################### - -befriend_target_is_close_to_owner_trigger = { - OR = { - is_close_or_extended_family_of = scope:target - is_consort_of = scope:target - is_employer_of = scope:target - } -} - -befriend_owner_is_close_to_target_trigger = { - OR = { - is_close_or_extended_family_of = scope:owner - is_consort_of = scope:owner - court_owner = scope:owner - } -} - -befriend_scope_is_close_to_target_trigger = { - OR = { - is_close_or_extended_family_of = scope:target - is_consort_of = scope:target - has_relation_friend = scope:target - AND = { - OR = { - court_owner = scope:target - AND = { - exists = liege - liege = scope:target - } - any_vassal = { - this = scope:target - } - } - reverse_opinion = { - target = scope:target - value > 30 - } - } - } -} diff --git a/common/scripted_triggers/00_scheme_triggers.txt b/common/scripted_triggers/00_scheme_triggers.txt index 70443794a6..f0ff74a2ca 100644 --- a/common/scripted_triggers/00_scheme_triggers.txt +++ b/common/scripted_triggers/00_scheme_triggers.txt @@ -254,6 +254,43 @@ build_murder_targets_trigger = { } } } + trigger_if = { # Greedy people want to murder their liege's high aptitude tax collector... + limit = { + ai_greed >= low_positive_ai_value + is_independent_ruler = no + exists = liege + liege = { + any_tax_collector = { + any_tax_collector_vassal = { + this = root + } + check_tax_collector_aptitude = { + CHARACTER = this + VALUE >= 4 + } + add_to_temporary_list = murder_targets + } + } + } + } + trigger_if = { # Some Clan members want to murder Extolled people out of pure spite and malice + limit = { + ai_greed >= 0 + ai_vengefulness >= 0 + ai_compassion <= medium_negative_ai_value + house.house_head ?= { + is_ruler = yes + government_has_flag = government_is_clan + } + ai_wants_low_unity = yes + } + house = { + any_house_member = { + has_trait = extolled + add_to_temporary_list = murder_targets + } + } + } any_consort = { # Unfaithful spouses trigger_if = { limit = { @@ -360,9 +397,13 @@ can_use_befriend_scheme_trigger = { culture = { has_cultural_parameter = automatic_befriend_access } #any_character_struggle = { # involvement = involved - # is_struggle_type = iberian_struggle # has_struggle_phase_parameter = struggle_unlocks_befriend_schemes_for_everyone #} + AND = { + government_has_flag = government_is_clan + is_in_same_clan_as_trigger = { CHARACTER = $TARGET$ } + house = { has_house_unity_stage = harmonious } + } } } diff --git a/common/scripted_triggers/00_secret_triggers.txt b/common/scripted_triggers/00_secret_triggers.txt deleted file mode 100644 index 8e5b5af984..0000000000 --- a/common/scripted_triggers/00_secret_triggers.txt +++ /dev/null @@ -1,529 +0,0 @@ - -#Triggers revolving around secrets - -#has_secret_unknown_by_root_trigger -#Being_blackmailed_by_root_trigger -#is_blackmailable_secret_trigger -#secret_is_always_interesting_trigger - - - - - -has_secret_unknown_by_root_trigger = { - any_secret = { - NOT = { - is_known_by = root - } - } -} - -being_blackmailed_by_root_trigger = { - root = { - OR = { - has_hook_of_type = { - target = prev - type = weak_blackmail_hook - } - has_hook_of_type = { - target = prev - type = strong_blackmail_hook - } - } - } -} - -is_blackmailable_secret_trigger = { #Should not include is known - $PARTICIPANT$ = { save_temporary_scope_as = is_blackmailable_secret_participant } - $BLACKMAILER$ = { save_temporary_scope_as = is_blackmailable_secret_blackmailer } - is_shunned_or_criminal_for = scope:is_blackmailable_secret_participant - can_be_exposed_by = scope:is_blackmailable_secret_blackmailer - #Can we actually add a hook of the correct type - trigger_if = { - limit = { is_shunned_for = scope:is_blackmailable_secret_participant } - custom_description = { - text = "already_has_a_superior_hook" - subject = scope:is_blackmailable_secret_blackmailer - object = scope:is_blackmailable_secret_participant - scope:is_blackmailable_secret_blackmailer = { - can_add_hook = { - type = weak_blackmail_hook - target = scope:is_blackmailable_secret_participant - } - } - } - } - trigger_if = { - limit = { is_criminal_for = scope:is_blackmailable_secret_participant } - custom_description = { - text = "already_has_a_superior_hook" - subject = scope:is_blackmailable_secret_blackmailer - object = scope:is_blackmailable_secret_participant - scope:is_blackmailable_secret_blackmailer = { - can_add_hook = { - type = strong_blackmail_hook - target = scope:is_blackmailable_secret_participant - } - } - } - } - #If an AI promised not to reveal a secret they have to be very dishonest to do it - trigger_if = { - limit = { exists = var:promised_not_to_reveal} - custom_description = { - text = "promised_not_to_reveal_secret" - var:promised_not_to_reveal = scope:is_blackmailable_secret_blackmailer - scope:is_blackmailable_secret_blackmailer = { - is_ai = yes - ai_honor <= medium_negative_ai_value - } - } - } - - #Some things you can't blackmail others about - custom_description = { - text = "cant_blackmail_another_witch" - subject = scope:is_blackmailable_secret_blackmailer - NAND = { - secret_type = secret_witch - scope:is_blackmailable_secret_blackmailer = { is_witch_trigger = yes } - } - } - trigger_if = { - limit = { secret_type = secret_lover } - custom_description = { - text = cannot_blackmail_own_lover_secret - NOT = { secret_target = scope:is_blackmailable_secret_blackmailer } - } - } - trigger_if = { - limit = { - secret_type = secret_unmarried_illegitimate_child - } - custom_description = { - text = cannot_blackmail_over_own_bastard - secret_target = { - NOR = { - mother = scope:is_blackmailable_secret_blackmailer - real_father = scope:is_blackmailable_secret_blackmailer - } - } - } - } - trigger_if = { - limit = { - secret_type = secret_disputed_heritage - } - custom_description = { - text = cannot_blackmail_over_own_bastard - NOT = { - secret_target = { - OR = { - mother = scope:is_blackmailable_secret_blackmailer - real_father = scope:is_blackmailable_secret_blackmailer - } - } - } - } - } -} - - -secret_is_always_interesting_trigger = { #Even if they can't be used for blackmail - OR = { - secret_type = secret_lover - secret_type = secret_murder - secret_type = secret_murder_attempt - secret_type = secret_disputed_heritage - secret_type = secret_unmarried_illegitimate_child - } -} - - -#Checks whether a secret would incriminate its secret target if known - #Parameters: - # TARGET -secret_is_incriminating_trigger = { - OR = { - exists = secret_target - any_secret_participant = { - count >= 1 - } - } - OR = { - AND = { - secret_type = secret_lover - secret_target = $TARGET$ - } - AND = { - secret_type = secret_disputed_heritage - OR = { - secret_target = $TARGET$ - secret_target.mother = $TARGET$ - any_secret_participant = { - this = $TARGET$ - } - } - } - AND = { - secret_type = secret_unmarried_illegitimate_child - OR = { - secret_target = $TARGET$ - secret_target.mother = $TARGET$ - any_secret_participant = { - this = $TARGET$ - } - } - } - } -} - - - -###Expose secret triggers### - -block_exposed_secret_general_notifications = { #Because you're already getting your own, special event - OR = { - #Is one of the involved parties - this = scope:secret_exposer - this = scope:exposed_secret_character - this = scope:exposed_secret_owner - AND = { - exists = scope:exposed_secret_target - this = scope:exposed_secret_target - } - #For lover secret: No events for spouses or lovers, they get infidelity_confrontation.1000 instead - trigger_if = { - limit = { scope:secret = { secret_type = secret_lover } } - OR = { - is_spouse_of = scope:exposed_secret_owner - has_relation_lover = scope:exposed_secret_owner - is_spouse_of = scope:exposed_secret_target - has_relation_lover = scope:exposed_secret_target - } - } - #For bastard secrets: No events for child mother and real father - trigger_else_if = { - limit = { - scope:secret = { - OR = { - secret_type = secret_disputed_heritage - secret_type = secret_unmarried_illegitimate_child - } - } - } - OR = { - scope:exposed_secret_target.mother = scope:show_me #mother - scope:exposed_secret_target.real_father = scope:show_me #real father - } - } - trigger_else = { } #Just to avoid errors - } -} - - -show_me_exposed_secret_event_trigger = { - expose_secret_scope_saving_trigger = { SECRET = $SECRET$ CHARACTER = $CHARACTER$ } #Saves show_me, exposed_secret_character, exposed_secret_owner & exposed_secret_target - block_exposed_secret_general_notifications = no #Isn't the owner/target/exposer or other involved character - #Is someone who cares - OR = { - is_spouse_of_even_if_dead = scope:exposed_secret_character - is_close_family_of = scope:exposed_secret_character - AND = { - exists = scope:exposed_secret_character.player_heir - scope:exposed_secret_character = { player_heir = scope:show_me } - } - AND = { - scope:exposed_secret_character = { exists = liege } - scope:exposed_secret_character = { liege = scope:show_me } - } - AND = { #For bastards, fathers also care - $SECRET$ = { secret_type = secret_disputed_heritage } - exists = scope:father - this = scope:father - } - } -} - -show_me_exposed_secret_feed_message_trigger = { - expose_secret_scope_saving_trigger = { SECRET = $SECRET$ CHARACTER = $CHARACTER$ } #Saves show_me, exposed_secret_character, exposed_secret_owner & exposed_secret_target - block_exposed_secret_general_notifications = no #Isn't the owner/target/exposer or other involved character - NOT = { show_me_exposed_secret_event_trigger = { SECRET = $SECRET$ CHARACTER = $CHARACTER$ } } #I.e. hasn't already been notified -} - -expose_secret_scope_saving_trigger = { #Because we save the same scopes in two triggers that need to be the same - save_temporary_scope_as = show_me - $CHARACTER$ = { - save_temporary_scope_as = exposed_secret_character #Most of the time this is owner, but for secrets with targets/other involved parties it can also be them - } - $SECRET$ = { - secret_owner = { save_temporary_scope_as = exposed_secret_owner } - trigger_if = { - limit = { exists = secret_target } - secret_target = { save_temporary_scope_as = exposed_secret_target } - } - } -} - -###Triggers for give_random_likely_secret_effect - -give_random_likely_secret_murder_attempt_victim_trigger = { - is_ai = yes - save_temporary_scope_as = victim - scope:murderer = { - NOT = { - any_secret = { - secret_type = secret_murder_attempt - secret_target = scope:victim - } - } - } -} - -give_random_likely_secret_lover_trigger = { - is_adult = yes - is_ai = yes - NOT = { any_relation = { type = lover this = scope:lover_1 } } - NOT = { is_spouse_of = scope:lover_1 } - NOT = { has_trait = celibate } - opinion = { - target = scope:lover_1 - value >= 20 - } - reverse_opinion = { - target = scope:lover_1 - value >= 20 - } - save_temporary_scope_as = lover_2 - possible_mutual_interest_trigger = { CHARACTER_1 = scope:lover_1 CHARACTER_2 = scope:lover_2 } -} - -give_random_likely_secret_incestous_lover_trigger = { - is_adult = yes - is_ai = yes - NOT = { any_relation = { type = lover this = scope:lover_1 } } - NOT = { is_spouse_of = scope:lover_1 } - OR = { - save_temporary_scope_as = lover_2 - possible_mutual_interest_trigger = { CHARACTER_1 = scope:lover_1 CHARACTER_2 = scope:lover_2 } - AND = { - matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:lover_1 CHARACTER_2 = scope:lover_2 } - opinion = { - target = scope:lover_1 - value >= 40 - } - reverse_opinion = { - target = scope:lover_1 - value >= 40 - } - } - } -} - - -#Simple Check if a given Secret Type is blackmailable - # NOTE THAT THIS CAN ONLY EVER CORRECTLY EVALUATE SECRETS THAT THE TARGET DOES NOT ALREADY HAVE - # ALSO NOTE THAT IT WILL ONLY EVER RETURN TRUE FOR SECRETS THAT ARE NOT RELIANT ON HAVING A VALID TARGET -secret_type_is_blackmailable_simple_trigger = { - # TYPE - # TARGET - - save_temporary_scope_value_as = { - name = type_flag - value = flag:$TYPE$ - } - - trigger_if = { - limit = { - scope:type_flag = flag:secret_deviant - } - secret_deviant_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_deviant_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_deviant_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - } - trigger_else_if = { - limit = { - scope:type_flag = flag:secret_homosexual - } - secret_homosexual_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_homosexual_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_homosexual_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - } - trigger_else_if = { - limit = { - scope:type_flag = flag:secret_cannibal - } - secret_cannibal_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_cannibal_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_cannibal_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - } - trigger_else_if = { - limit = { - scope:type_flag = flag:secret_non_believer - } - secret_non_believer_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_non_believer_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_non_believer_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - } - trigger_else_if = { - limit = { - scope:type_flag = flag:secret_incest - } - secret_incest_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_incest_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_incest_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - } - trigger_else_if = { - limit = { - scope:type_flag = flag:secret_witch - } - secret_witch_is_valid_trigger = { - OWNER = $TARGET$ - } - OR = { - secret_witch_is_shunned_trigger = { - OWNER = $TARGET$ - } - secret_witch_is_criminal_trigger = { - OWNER = $TARGET$ - } - } - NOT = { - $BLACKMAILER$ = { is_witch_trigger = yes } - } - } - trigger_else = { #Murder stuff, Bastard secrets, etc. - always = no - } -} - - -random_blackmailable_secret_can_be_added_simple_trigger = { - $TARGET$ = { save_temporary_scope_as = target } - OR = { - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_deviant - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_deviant - } - } - } - } - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_homosexual - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_homosexual - } - } - } - } - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_cannibal - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_cannibal - } - } - } - } - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_non_believer - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_non_believer - } - } - } - } - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_incest - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_incest - } - } - } - } - AND = { - secret_type_is_blackmailable_simple_trigger = { - TYPE = secret_witch - TARGET = scope:target - BLACKMAILER = $BLACKMAILER$ - } - scope:target = { - NOT = { - any_secret = { - secret_type = secret_witch - } - } - } - } - } -} diff --git a/common/scripted_triggers/00_secret_type_triggers.txt b/common/scripted_triggers/00_secret_type_triggers.txt deleted file mode 100644 index 9441a5c771..0000000000 --- a/common/scripted_triggers/00_secret_type_triggers.txt +++ /dev/null @@ -1,399 +0,0 @@ - -#Triggers for Shunned and Criminal Secret Types - - -# SECRET DEVIANT -secret_deviant_is_valid_trigger = { - $OWNER$ = { - NOT = { - has_trait = deviant - } - } -} - -secret_deviant_is_shunned_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = deviancy_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = deviancy_shunned } } - } - } -} - -secret_deviant_is_criminal_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = deviancy_illegal } - any_liege_or_above = { faith = { has_doctrine_parameter = deviancy_illegal } } - } - } -} -# SECRET DEVIANT - END - -# SECRET HOMOSEXUAL -secret_homosexual_is_valid_trigger = { - $OWNER$ = { - NOT = { - has_trait = sodomite - } - is_male = yes #Only for men since it is localized as Sodomite and also because female homosexuality historically hasn't been "a big deal" in most cultures - } -} - -secret_homosexual_is_shunned_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = homosexuality_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = homosexuality_shunned } } - } - } -} - -secret_homosexual_is_criminal_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = homosexuality_illegal } - any_liege_or_above = { faith = { has_doctrine_parameter = homosexuality_illegal } } - } - } -} -# SECRET HOMOSEXUAL - END - -# SECRET MURDER ATTEMPT -secret_murder_attempt_is_valid_trigger = { - NOT = { $OWNER$ = $TARGET$ } # Murder requires two people - - trigger_if = { # If the target is dead, check that the killer isn't the owner since then the attempt isn't really an attempt... - limit = { - $TARGET$ = { is_alive = no } - exists = $TARGET$.killer - } - NOT = { - $TARGET$.killer = $OWNER$ - } - } -} - -secret_murder_attempt_is_shunned_trigger = { - $TARGET$ = { - save_temporary_scope_as = attempted_murder_target - } - $OWNER$ = { - OR = { - NOT = { exists = liege } - any_liege_or_above = { - NOR = { - this = scope:attempted_murder_target - is_spouse_of = scope:attempted_murder_target - is_close_family_of = scope:attempted_murder_target - } - } - #You are your own liege (independent) or have no liege (pool) - liege = this - } - } -} - -secret_murder_attempt_is_criminal_trigger = { - $TARGET$ = { - save_temporary_scope_as = attempted_murder_target - } - $OWNER$ = { - any_liege_or_above = { - NOR = { - this = scope:attempted_murder_target - is_spouse_of = scope:attempted_murder_target - is_close_family_of = scope:attempted_murder_target - } - } - } -} -#SECRET MURDER ATTEMPT - END - -# SECRET CANNIBAL -secret_cannibal_is_valid_trigger = { - $OWNER$ = { - NOT = { has_trait = cannibal } - } -} - -secret_cannibal_is_shunned_trigger = { - $OWNER$ = { always = no } -} - -secret_cannibal_is_criminal_trigger = { - $OWNER$ = { - OR = { - faith = { - NOT = { has_doctrine_parameter = cannibalism_legal } - } - any_liege_or_above = { - faith = { - NOT = { has_doctrine_parameter = cannibalism_legal } - } - } - } - } -} -# SECRET CANNIBAL - END - -# SECRET LOVER -secret_lover_is_valid_trigger = { - $TARGET$ = { - save_temporary_scope_as = target - } - $OWNER$ = { - has_relation_lover = scope:target - NOT = { is_consort_of = scope:target } - } -} - -#Placed ahead of the Shunned trigger, so that the shunned trigger can refer back to this -secret_lover_is_criminal_trigger = { - $TARGET$ = { save_temporary_scope_as = criminal_partner } #Different name to the scope in the shunned trigger, to prevent issues - $OWNER$ = { - OR = { - #Female adultery criminal - AND = { - is_female = yes - OR = { - faith = { has_doctrine_parameter = adultery_female_crime } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_female_crime } } - } - } - #Male adultery criminal - AND = { - is_male = yes - OR = { - faith = { has_doctrine_parameter = adultery_male_crime } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_male_crime } } - } - } - #Sodomy criminal - AND = { - is_male = yes - scope:criminal_partner = { is_male = yes } - OR = { - faith = { has_doctrine_parameter = homosexuality_illegal } - any_liege_or_above = { faith = { has_doctrine_parameter = homosexuality_illegal } } - } - } - } - } -} - -secret_lover_is_shunned_trigger = { - $TARGET$ = { save_temporary_scope_as = partner } - $OWNER$ = { - save_temporary_scope_as = lover_owner - OR = { - #Female adultery shunned - AND = { - is_female = yes - OR = { - faith = { has_doctrine_parameter = adultery_female_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_female_shunned } } - } - } - #Male adultery shunned - AND = { - is_male = yes - OR = { - faith = { has_doctrine_parameter = adultery_male_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = adultery_male_shunned } } - } - } - #Sodomy shunned - AND = { - is_male = yes - scope:partner = { is_male = yes } - OR = { - faith = { has_doctrine_parameter = homosexuality_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = homosexuality_shunned } } - } - } - #Incest is shunned - relation_with_character_is_incestuous_in_faith_trigger = { CHARACTER = scope:partner FAITH = scope:lover_owner.faith } - any_liege_or_above = { - save_temporary_scope_as = liege_or_above - scope:lover_owner = { - relation_with_character_is_incestuous_in_faith_trigger = { CHARACTER = scope:partner FAITH = scope:liege_or_above.faith } - } - } - } - #And it doesn't fulfill the criminal conditions - NOT = { - secret_lover_is_criminal_trigger = { - OWNER = scope:lover_owner - TARGET = scope:partner - } - } - } -} -# SECRET LOVER - END - -# SECRET MURDER -secret_murder_is_trivial_trigger = { - #Is the murderer important enough to get away with it? - $OWNER$ = { highest_held_title_tier >= tier_county } - #Is it a murder that people might care about? - OR = { - #Independent rulers have little fear in terms of legal consequences for their actions. - $OWNER$ = { is_independent_ruler = yes } - #Otherwise, certain victims are just not worth a strong hook. - $TARGET$ = { - NOR = { - #If landless or a baron, must have no important landed family. - AND = { - OR = { - is_ruler = no - highest_held_title_tier = tier_barony - } - any_close_or_extended_family_member = { highest_held_title_tier >= $OWNER$.primary_title.tier } - } - #Otherwise, characters who are two tiers lower than you arguably aren't nearly as much of a concern (again, providing they lack important family). - AND = { - tier_difference = { - target = $OWNER$ - value >= -1 - } - #Be a bit harsher with this, as these characters are the most likely to be relatives of the $OWNER$'s piers. - any_close_or_extended_family_member = { - tier_difference = { - target = $OWNER$ - value >= -1 - } - } - } - } - } - } -} - -secret_murder_is_valid_trigger = { - $TARGET$ = { - is_alive = no - killer = $OWNER$ - } -} - -#Murder attempts again unimportant characters are considered less serious. -secret_murder_is_shunned_trigger = { - $OWNER$ = { - secret_murder_is_trivial_trigger = { - OWNER = $OWNER$ - TARGET = $TARGET$ - } - } -} - -#If any of the get-out-if-imprisonment free clauses don't apply, then the murder is criminal -secret_murder_is_criminal_trigger = { - $OWNER$ = { - NOT = { - $OWNER$ = { - secret_murder_is_trivial_trigger = { - OWNER = $OWNER$ - TARGET = $TARGET$ - } - } - } - } -} -# SECRET MURDER - END - -# SECRET NON-BELIEVER -secret_non_believer_is_valid_trigger = { - $OWNER$ = { - NOT = { - has_character_modifier = known_non_believer - } - } -} - -secret_non_believer_is_shunned_trigger = { - $OWNER$ = { is_clergy = no } -} - -secret_non_believer_is_criminal_trigger = { - $OWNER$ = { is_clergy = yes } -} -# SECRET NON-BELIEVER - END - -# SECRET INCEST -secret_incest_is_valid_trigger = { - $OWNER$ = { - NOT = { - has_trait = incestuous - } - } -} - -secret_incest_is_shunned_trigger = { - $OWNER$ = { - OR = { - faith = { NOT = { has_doctrine_parameter = allows_unrestricted_marriage } } - any_liege_or_above = { faith = { NOT = { has_doctrine_parameter = allows_unrestricted_marriage } } } - } - } -} - -secret_incest_is_criminal_trigger = { - $OWNER$ = { always = no } -} -# SECRET INCEST - END - -# SECRET WITCH -secret_witch_is_valid_trigger = { - $OWNER$ = { - NOT = { - has_trait = witch - } - } -} - -secret_witch_is_shunned_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = witchcraft_shunned } - any_liege_or_above = { faith = { has_doctrine_parameter = witchcraft_shunned } } - } - } -} - -secret_witch_is_criminal_trigger = { - $OWNER$ = { - OR = { - faith = { has_doctrine_parameter = witchcraft_illegal } - any_liege_or_above = { faith = { has_doctrine_parameter = witchcraft_illegal } } - } - } -} -# SECRET WITCH - END - -# SECRET EMBEZZLER -secret_embezzler_is_valid_trigger = { - # Can't embezzle from yourself. - ## Well, you can. - ### That's honestly even a fairly common white collar crime. - #### You just can't in-game. - ##### One rule for the wealthy, another for the rest of us [sigh]. - NOT = { $OWNER$ = $TARGET$ } -} - -# Embezzler is only criminal if the target is your liege _and_ the amount is very high. - -secret_embezzler_is_criminal_trigger = { - $OWNER$ = { - any_secret = { - secret_type = secret_embezzler - secret_target ?= $OWNER$.liege - var:embezzlement_stake >= { - value = $OWNER$.monumental_gold_value - multiply = 1.5 - } - } - } - -} -# SECRET EMBEZZLER - END diff --git a/common/scripted_triggers/00_sibling_triggers.txt b/common/scripted_triggers/00_sibling_triggers.txt deleted file mode 100644 index 387d40613e..0000000000 --- a/common/scripted_triggers/00_sibling_triggers.txt +++ /dev/null @@ -1,18 +0,0 @@ - -###TRIGGER LIST - -# has_adult_friendly_unlanded_sibling_trigger - - -has_adult_friendly_unlanded_sibling_trigger = { - any_sibling = { - is_landed = no - is_adult = yes - opinion = { - target = root - value > 30 - } - } -} - - diff --git a/common/scripted_triggers/00_statecraft_lifestyle_triggers.txt b/common/scripted_triggers/00_statecraft_lifestyle_triggers.txt deleted file mode 100644 index 09e304a4db..0000000000 --- a/common/scripted_triggers/00_statecraft_lifestyle_triggers.txt +++ /dev/null @@ -1,11 +0,0 @@ - -respected_liege_0002_bad_traits_trigger = { - OR = { - has_trait = arbitrary - has_trait = shy - has_trait = greedy - has_trait = sadistic - has_trait = callous - } -} - diff --git a/common/scripted_triggers/00_stress_triggers.txt b/common/scripted_triggers/00_stress_triggers.txt index 4e23389b20..c675863549 100644 --- a/common/scripted_triggers/00_stress_triggers.txt +++ b/common/scripted_triggers/00_stress_triggers.txt @@ -287,6 +287,7 @@ can_do_lustful_stress_conversion = { trait_is_sin = lustful } } + NOT = { this = faith.religious_head } } can_inflict_torture = { diff --git a/common/scripted_triggers/00_succession_triggers.txt b/common/scripted_triggers/00_succession_triggers.txt index 7636ca50ca..c67a4d783a 100644 --- a/common/scripted_triggers/00_succession_triggers.txt +++ b/common/scripted_triggers/00_succession_triggers.txt @@ -15,6 +15,10 @@ special_succession_tanistry_trigger = { always = no } +special_succession_jirga_trigger = { + culture = { has_cultural_parameter = tribal_elective_enabled } +} + historical_succession_access_single_heir_succession_law_trigger = { # Warcraft always = no @@ -28,4 +32,4 @@ historical_succession_access_single_heir_succession_law_youngest_trigger = { historical_succession_access_single_heir_dynasty_house_trigger = { # Warcraft always = no -} \ No newline at end of file +} diff --git a/common/scripted_triggers/00_terrain_triggers.txt b/common/scripted_triggers/00_terrain_triggers.txt deleted file mode 100644 index 5b058175b2..0000000000 --- a/common/scripted_triggers/00_terrain_triggers.txt +++ /dev/null @@ -1,76 +0,0 @@ - -######################### -# Triggers for Province Terrain -######################### -is_wooded_trigger = { - OR = { - terrain = forest - terrain = jungle - terrain = taiga - } -} - -is_mountainous_trigger = { - OR = { - terrain = mountains - terrain = desert_mountains - } -} - -is_mountainous_or_hilly_trigger = { - OR = { - terrain = mountains - terrain = desert_mountains - terrain = hills - } -} - -is_drylands_trigger = { - OR = { - terrain = drylands - terrain = steppe - } -} - -is_desert_trigger = { - OR = { - terrain = desert - terrain = desert_mountains - terrain = oasis - } -} - -is_drylands_or_desert_trigger = { - OR = { - terrain = drylands - terrain = steppe - terrain = desert - terrain = desert_mountains - terrain = oasis - } -} - -is_wetland_trigger = { - OR = { - terrain = wetlands - terrain = floodplains - terrain = oasis - } -} - -is_flatlands_trigger = { - OR = { - terrain = steppe - terrain = plains - terrain = farmlands - } -} - -is_likely_to_contain_trees_trigger = { - OR = { - is_wooded_trigger = yes - is_wetland_trigger = yes - is_flatlands_trigger = yes - terrain = hills - } -} diff --git a/common/scripted_triggers/00_travel_triggers.txt b/common/scripted_triggers/00_travel_triggers.txt deleted file mode 100644 index 149480cf98..0000000000 --- a/common/scripted_triggers/00_travel_triggers.txt +++ /dev/null @@ -1,216 +0,0 @@ -is_location_valid_for_travel_event_on_land = { - location = { - exists = county #This will exclude sea provinces, impassable provinces, river provinces, etc - } -} - -is_guard_type_character_trigger = { - OR = { - has_court_position = bodyguard_court_position - is_knight_of = root - has_council_position = councillor_marshal - save_temporary_scope_as = guard_check - AND = { - root.current_travel_plan = { - scope:guard_check = { is_travel_entourage_character = yes } - } - is_available_travelling_adult = yes - is_healthy = yes - prowess > low_skill_rating - can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } - } - } -} - -is_character_not_specialized_in_terrain = { #Used in character scope - save_temporary_scope_as = character_in_terrain - is_location_valid_for_travel_event_on_land = yes - location = { #Is it reasonable for us to get lost, etc in this type of terrain? - switch = { - trigger = terrain - jungle = { - scope:character_in_terrain = { - NOT = { has_trait = jungle_stalker } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = jungle_stalker } - } - } - } - desert = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - drylands = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - desert_mountains = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - oasis = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - mountains = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - wetlands = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - hills = { - scope:character_in_terrain = { - NOT = { has_trait = desert_warrior } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = desert_warrior } - } - } - } - farmlands = { - scope:character_in_terrain = { - NOT = { has_trait = open_terrain_expert } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = open_terrain_expert } - } - } - } - plains = { - scope:character_in_terrain = { - NOT = { has_trait = open_terrain_expert } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = open_terrain_expert } - } - } - } - steppe = { - scope:character_in_terrain = { - NOT = { has_trait = open_terrain_expert } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = open_terrain_expert } - } - } - } - forest = { - scope:character_in_terrain = { - NOT = { has_trait = forest_fighter } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = forest_fighter } - } - } - } - taiga = { - scope:character_in_terrain = { - NOT = { has_trait = forest_fighter } - current_travel_plan.travel_leader ?= { - NOT = { has_trait = forest_fighter } - } - } - } - } - } -} - -has_sea_danger_type = { - is_sea_province = yes - OR = { - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = sea - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = coastal_sea - } - } -} - -has_terrain_danger_type = { - OR = { - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = hills - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = forest - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = mountains - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = desert_mountains - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = wetlands - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = floodplains - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = drylands - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = desert - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = jungle - } - travel_danger_type = { - travel_plan = $TRAVEL$ - terrain = steppe - } - } -} - -### EP2 BACKGROUND TRIGGERS - -# Checks that a character is traveling to or from an activity and is not currently participating in an activity -is_travelling_not_at_activity = { - is_travelling = yes - trigger_if = { - limit = { exists = involved_activity } - has_activity_state = travel - } -} - -# Checks that a character is traveling, but currently at an activity and not actually moving around the map -is_travelling_at_activity = { - is_travelling = yes - trigger_if = { - limit = { exists = involved_activity } - NOT = { has_activity_state = travel } - } -} diff --git a/common/scripted_triggers/00_tutorial_triggers.txt b/common/scripted_triggers/00_tutorial_triggers.txt deleted file mode 100644 index 5cc057704e..0000000000 --- a/common/scripted_triggers/00_tutorial_triggers.txt +++ /dev/null @@ -1,16 +0,0 @@ -should_show_tutorial_alert = { - OR= { - can_start_tutorial_lesson = $LESSON$ - is_tutorial_lesson_active = $LESSON$ - } -} - -valid_raid_target_trigger = { - NOR = { - has_raid_immunity_against = root - is_allied_to = root - has_truce = root - target_is_vassal_or_below = root - top_liege = root.top_liege - } -} diff --git a/common/scripted_triggers/00_war_and_peace_triggers.txt b/common/scripted_triggers/00_war_and_peace_triggers.txt index 0603584ad2..b37de92d44 100644 --- a/common/scripted_triggers/00_war_and_peace_triggers.txt +++ b/common/scripted_triggers/00_war_and_peace_triggers.txt @@ -296,12 +296,14 @@ can_be_knight_trigger = { prowess >= 10 } has_trait = order_member # Order Members will fight for their faith even if their faith says no - NOT = { + NOR = { has_trait = blind + has_court_position = master_assassin_court_position #FP3 addition } } NOT = { has_character_flag = wc_cannot_serve_in_army } is_ai = yes + } can_be_commander_basic_trigger = { @@ -456,6 +458,20 @@ using_hierarchical_cb_trigger = { } } +# In case is_civil_war is causing issues. +using_civil_war_cb_trigger = { + OR = { + using_cb = independence_faction_war + using_cb = liberty_faction_war + using_cb = populist_war + using_cb = claimant_faction_war + using_cb = depose_war + using_cb = refused_liege_demand_war + using_cb = nation_fracturing_faction_war + using_cb = peasant_war + } +} + special_invasion_cb_seize_land_in_region_trigger = { OR = { AND = { # For Duchies diff --git a/common/scripted_triggers/00_witch_triggers.txt b/common/scripted_triggers/00_witch_triggers.txt deleted file mode 100644 index 049a5c5718..0000000000 --- a/common/scripted_triggers/00_witch_triggers.txt +++ /dev/null @@ -1,24 +0,0 @@ -use_convert_to_witchcraft_secrecy_trigger = { - scope:owner = { - any_secret = { secret_type = secret_witch } - save_temporary_scope_as = witchract_secrecy_check - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = witch GENDER_CHARACTER = scope:witchract_secrecy_check } - } -} - -knows_about_character_being_witch_trigger = { - OR = { - $CHARACTER$ = { has_trait = witch } - any_known_secret = { - secret_owner = $CHARACTER$ - secret_type = secret_witch - } - } -} - -potential_witch_friend_trigger = { - faith = $CHARACTER$.faith - knows_about_character_being_witch_trigger = { CHARACTER = $CHARACTER$ } - save_temporary_scope_as = trigger_witch_friend - $CHARACTER$ = { knows_about_character_being_witch_trigger = { CHARACTER = scope:trigger_witch_friend } } -} diff --git a/common/scripted_triggers/01_bp1_filippa_scripted_triggers.txt b/common/scripted_triggers/01_bp1_filippa_scripted_triggers.txt deleted file mode 100644 index 32f1cc5fd7..0000000000 --- a/common/scripted_triggers/01_bp1_filippa_scripted_triggers.txt +++ /dev/null @@ -1,41 +0,0 @@ - -has_weak_hook_on_trigger = { - OR = { - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = weak_blackmail_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = favor_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = obligation_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = indebted_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = threat_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = manipulation_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = house_head_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = trial_by_combat_hook - } - has_hook_of_type = { - target = $TARGET_CHARACTER$ - type = sumptuary_crime_hook - } - } -} \ No newline at end of file diff --git a/common/scripted_triggers/01_building_upgrade_triggers.txt b/common/scripted_triggers/01_building_upgrade_triggers.txt deleted file mode 100644 index 184ae4d8e2..0000000000 --- a/common/scripted_triggers/01_building_upgrade_triggers.txt +++ /dev/null @@ -1,26 +0,0 @@ -has_existing_farming_building_trigger = { - trigger_if = { - limit = { building_farm_estates_requirement_terrain = yes } - OR = { - has_building = farm_estates_01 - has_building = farm_estates_02 - has_building = farm_estates_03 - has_building = farm_estates_04 - has_building = farm_estates_05 - has_building = farm_estates_06 - has_building = farm_estates_07 - } - } - trigger_if = { - limit = { building_farm_estates_requirement_terrain = yes } - OR = { - has_building = pastures_01 - has_building = pastures_02 - has_building = pastures_03 - has_building = pastures_04 - has_building = pastures_05 - has_building = pastures_06 - has_building = pastures_07 - } - } -} diff --git a/common/scripted_triggers/01_fp1_scripted_triggers.txt b/common/scripted_triggers/01_fp1_scripted_triggers.txt index 708c3698a9..0c35b9607d 100644 --- a/common/scripted_triggers/01_fp1_scripted_triggers.txt +++ b/common/scripted_triggers/01_fp1_scripted_triggers.txt @@ -147,12 +147,10 @@ fp1_va_eligible_for_scandinavian_troops_trigger = { # Illustration Triggers fp1_should_use_norse_graphics_trigger = { - has_fp1_dlc_trigger = yes culture = { has_building_gfx = norse_building_gfx } } fp1_should_use_extra_tribal_graphics_trigger = { - has_fp1_dlc_trigger = yes should_use_tribal_realm_palace_graphics_trigger = yes } diff --git a/common/scripted_triggers/03_bp2_scripted_triggers.txt b/common/scripted_triggers/03_bp2_scripted_triggers.txt index 58939ecb4b..4ff6e2b4b8 100644 --- a/common/scripted_triggers/03_bp2_scripted_triggers.txt +++ b/common/scripted_triggers/03_bp2_scripted_triggers.txt @@ -118,7 +118,18 @@ style_changing_reformer_dde_abbasid = { has_character_flag = dde_abbasid_style } } - +style_changing_reformer_iranian = { + exists = root.top_liege + root.top_liege = { + has_character_flag = iranian_style + } +} +style_changing_reformer_turkic = { + exists = root.top_liege + root.top_liege = { + has_character_flag = turkic_style + } +} style_changing_reformer_warcraft = { exists = root.top_liege root.top_liege = { diff --git a/common/scripted_triggers/03_fp2_scripted_triggers.txt b/common/scripted_triggers/03_fp2_scripted_triggers.txt index b92bdfe6de..b3b47dd6ff 100644 --- a/common/scripted_triggers/03_fp2_scripted_triggers.txt +++ b/common/scripted_triggers/03_fp2_scripted_triggers.txt @@ -3,8 +3,7 @@ # General Triggers fp2_should_use_iberian_graphics_trigger = { - has_fp2_dlc_trigger = yes - always = no + culture = { has_building_gfx = iberian_building_gfx } } fp2_character_any_involvement_iberian_struggle_trigger = { @@ -29,9 +28,6 @@ eligible_for_fp2_dynasty_legacies_trigger = { #OR = { dynast = { # OR = { - # any_character_struggle = { - # involvement = involved - # } culture = { OR = { has_cultural_pillar = heritage_arathi @@ -343,6 +339,12 @@ fp2_bargain_fealty_war_losing_trigger = { attacker_war_score >= fp2_bargain_fealty_interaction_already_losing_value } +# We use a hard trigger so that this can be easily adjusted without overwriting the rest of the fp2_interactions file by modders. +struggle_can_access_unlocks_bargain_fealty_interaction_trigger = { + # Just uhh, use an OR if you add something else. + always = no +} + ################################################## # Multi-File Event Triggers @@ -388,3 +390,7 @@ fp2_lyonese_monk_0000_out_of_faith_trigger = { fp2_does_this_player_care_about_the_fate_of_iberia = { always = no } + +fp2_eligible_for_yearly_events_trigger = { + always = no +} diff --git a/common/scripted_triggers/04_ep2_accolade_triggers.txt b/common/scripted_triggers/04_ep2_accolade_triggers.txt deleted file mode 100644 index 4541da184f..0000000000 --- a/common/scripted_triggers/04_ep2_accolade_triggers.txt +++ /dev/null @@ -1,9 +0,0 @@ -# Triggers related to knights and accolades - -ep2_can_be_accolade_successor_base_trigger = { - is_acclaimed = no - is_accolade_successor = no - highest_held_title_tier <= tier_barony - is_alive = yes - is_adult = yes -} diff --git a/common/scripted_triggers/05_bp2_scripted_triggers.txt b/common/scripted_triggers/05_bp2_scripted_triggers.txt deleted file mode 100644 index 186eae8a9f..0000000000 --- a/common/scripted_triggers/05_bp2_scripted_triggers.txt +++ /dev/null @@ -1,55 +0,0 @@ -################################################# -# TRIGGER LIST # -################################################# -# has_same_wet_nurse_trigger - Check 2 characters if they have the same wet nurse, uses SCOPE and OTHER_SCOPE as the 2 character you want to check for having the same nurse - -has_same_wet_nurse_trigger = { - $SCOPE$ = { - any_relation = { - type = wet_nurse - even_if_dead = yes - save_temporary_scope_as = wet_nurse_temp - } - } - $OTHER_SCOPE$ = { - any_relation = { - type = wet_nurse - even_if_dead = yes - save_temporary_scope_as = other_wet_nurse_temp - } - } - - trigger_if = { - limit = { - AND = { - exists = scope:wet_nurse_temp - exists = scope:other_wet_nurse_temp - } - } - scope:wet_nurse_temp = scope:other_wet_nurse_temp - } - trigger_else = { - always = no - } -} - -character_can_rites_of_passage_trigger = { - OR = { - AND = { - is_adult = no - age >= 12 - custom_description = { - text = rites_of_passage_trigger_not_proven - NOT = { - any_memory = { - has_memory_type = completed_rites_of_passage - } - } - } - } - custom_description = { - text = rites_of_passage_trigger_delayed - has_character_flag = unproven_adult_flag - } - } -} \ No newline at end of file diff --git a/common/scripted_triggers/05_bp2_triggers.txt b/common/scripted_triggers/05_bp2_triggers.txt index 19e390e9f1..6d3feb526a 100644 --- a/common/scripted_triggers/05_bp2_triggers.txt +++ b/common/scripted_triggers/05_bp2_triggers.txt @@ -13,6 +13,7 @@ is_religious_studies_location = { has_building_or_higher = holy_site_pagan_grand_temple_01 has_building_or_higher = holy_site_indian_grand_temple_01 has_building_or_higher = holy_site_other_grand_temple_01 + has_building_or_higher = holy_site_fire_temple_01 has_building_or_higher = sunwell_01 has_building_or_higher = nightwell_01 #has_building_or_higher = holy_site_mahabodhi_temple_01 @@ -35,6 +36,7 @@ is_religious_studies_location = { #has_building_or_higher = hagia_sophia_01 #has_building_or_higher = temple_in_jerusalem_01 #has_building_or_higher = holy_site_basilica_santiago_01 + #has_building_or_higher = imam_reza_shrine_01 } } diff --git a/common/scripted_triggers/06_fp3_scripted_triggers.txt b/common/scripted_triggers/06_fp3_scripted_triggers.txt new file mode 100644 index 0000000000..27c2a72ff1 --- /dev/null +++ b/common/scripted_triggers/06_fp3_scripted_triggers.txt @@ -0,0 +1,325 @@ +fp3_should_use_iranian_graphics_trigger = { + culture = { has_building_gfx = iranian_building_gfx } +} + +eligible_for_fp3_khvarenah_legacy_trigger = { + has_fp3_dlc_trigger = yes + dynasty = { + OR = { + AND = { + dynast = { + is_ruler = yes + government_has_flag = government_is_clan + } + } + has_dynasty_perk = fp3_khvarenah_legacy_1 + } + } +} + +#fp3_warrior_culture_trigger = { +# AND = { +# OR = { +# has_cultural_pillar = ethos_bellicose +# has_cultural_tradition = tradition_swords_for_hire +# } +# OR = { +# has_cultural_pillar = heritage_iranian +# has_cultural_pillar = heritage_arabic +# has_cultural_pillar = heritage_turkic +# has_cultural_pillar = heritage_tocharian +# } +# } +#} + +fp3_custom_divinity_for_zoroastrianism_faiths = { + always = no +} + +fp3_sufism_enthusiast_trigger = { + always = no +} + +# Used for speeding-up debug. Has little to no impact on performance, does not cause errors, or affect player experience. +is_developer_testing_trigger = { + is_ai = no + debug_only = yes + has_multiple_players = no +} + +fp3_will_remain_in_caliphate_regardless_of_takeover = { + always = no +} + +fp3_eligible_for_yearly_events_trigger = { + always = no +} + +fp3_is_valid_futuwaa_member = { + $SPONSOR$.capital_province ?= { this = prev.location } # Prevents error log errors from dumbo AI + is_ai = yes # TODO_CD_EREN: Allow players to benefit too (requires sending them interface messages that their skills have increased) + age > 12 + age < 25 + is_married = no + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $SPONSOR$ } +} + +fp3_is_valid_madrasa_pupil = { + $SPONSOR$.capital_province ?= { this = prev.location } # Prevents error log errors from dumbo AI + is_ai = yes # TODO_CD_EREN: Allow players to benefit too (see above) + age > 8 + age < 16 + NOT = { has_character_flag = studying_at_university } + #Gender rules + OR = { + $SPONSOR$ = { has_realm_law = equal_law } + AND = { + $SPONSOR$ = { + OR = { + has_realm_law = female_only_law + has_realm_law = female_preference_law + } + } + is_female = yes + } + AND = { + $SPONSOR$ = { + OR = { + has_realm_law = male_only_law + has_realm_law = male_preference_law + } + } + is_male = yes + } + } +} + +fp3_valid_shia_head = { + always = no +} + +fp3_valid_muhakkima_head = { + always = no +} + +fp3_does_this_player_care_about_the_persian_struggle = { + always = no +} + +fp3_reward_from_vassalization_ending = { + always = no +} + +fp3_struggle_involves_one_supporter_and_one_detractor = { + always = no +} + +fp3_struggle_scoped_is_the_arabian_caliph_trigger = { + always = no +} + +fp3_fortress_of_faith_county_trigger = { + faith = { save_temporary_scope_as = compare_faith } + root.faith = { + faith_hostility_level = { + target = scope:compare_faith + value < faith_evil_level + } + } +} + +fp3_is_valid_loyal_puppet = { # Install a suitable lackey to do your bidding + always = no +} + +fp3_proper_gender_for_dynastic_ambition_trigger = { + OR = { #checking for appropriate gender + AND = { + root = { + OR = { + has_realm_law = male_preference_law + has_realm_law = male_only_law + } + } + is_male = yes + } + AND = { + root = { + OR = { + has_realm_law = female_preference_law + has_realm_law = female_only_law + } + } + is_female = yes + } + AND = { + root = { has_realm_law = equal_law } + OR = { + is_female = yes + is_male = yes + } + } + } +} + +fp3_character_any_involvement_persian_struggle_trigger = { + always = no +} + +fp3_character_involved_in_struggle_trigger = { + always = no +} + +fp3_character_interloper_in_struggle_trigger = { + always = no +} + +fp3_character_uninvolved_in_struggle_trigger = { + always = no +} + +fp3_struggle_is_the_caliph = { + always = no +} + +fp3_embellish_capital_decision_character_trigger = { + is_capable_adult_ai = yes + is_imprisoned = no + is_healthy = yes + NOR = { + has_relation_rival = root + is_vassal_of = root + } +} + +fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = { + OR = { + is_independent_ruler = yes + custom_description = { + text = name_read_in_friday_prayer_crown_authority + is_independent_ruler = no + liege ?= { has_realm_law = crown_authority_0 } + } + # We have to trigger_if this for tooltip reasons. + trigger_if = { + limit = { is_independent_ruler = no } + liege = { government_has_flag = government_is_tribal } + } + } +} + +favour_skilled_outsiders_decision_valid_character_to_take_trigger = { + OR = { + has_perk = meritocracy_perk + government_has_flag = government_is_clan + culture = { has_cultural_pillar = ethos_egalitarian } + calc_true_if = { + amount >= 2 + has_trait = calm + has_trait = humble + has_trait = ambitious + } + } +} + +favour_skilled_outsiders_decision_valid_county_to_generate_trigger = { + culture = { + # We don't technically need a custom tooltip for this, but the formatting looks much nicer. + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_your_heritage + NOT = { has_same_culture_heritage = root.culture } + } + trigger_if = { + limit = { exists = root.cp:councillor_chancellor } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_chancellor_heritage + NOT = { has_same_culture_heritage = root.cp:councillor_chancellor.culture } + } + } + trigger_if = { + limit = { exists = root.cp:councillor_marshal } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_marshal_heritage + NOT = { has_same_culture_heritage = root.cp:councillor_marshal.culture } + } + } + trigger_if = { + limit = { exists = root.cp:councillor_steward } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_steward_heritage + NOT = { has_same_culture_heritage = root.cp:councillor_steward.culture } + } + } + trigger_if = { + limit = { exists = root.cp:councillor_spymaster } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_spymaster_heritage + NOT = { has_same_culture_heritage = root.cp:councillor_spymaster.culture } + } + } + trigger_if = { + limit = { exists = root.cp:councillor_court_chaplain } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_court_chaplain_heritage + NOT = { has_same_culture_heritage = root.cp:councillor_court_chaplain.culture } + } + } + trigger_if = { + limit = { + root = { is_independent_ruler = no } + } + custom_tooltip = { + text = favour_skilled_outsiders_decision.tt.not_share_liege_heritage + save_temporary_scope_as = culture_temp + NOT = { + root = { + any_liege_or_above = { + culture = { has_same_culture_heritage = scope:culture_temp } + } + } + } + } + } + } +} + +favour_skilled_outsiders_decision_grab_courtlies_trigger = { + OR = { + NOT = { exists = scope:outsider_select } + NOT = { + culture = { has_same_culture_heritage = scope:outsider_select.culture } + } + } + has_vassal_stance = courtly +} + +favour_skilled_outsiders_decision_grab_landless_councillors_trigger = { + OR = { + NOT = { exists = scope:outsider_select } + NOT = { + culture = { has_same_culture_heritage = scope:outsider_select.culture } + } + } + is_landed = no +} + +favour_skilled_outsiders_decision_non_courtlies_trigger = { + OR = { + NOT = { exists = scope:outsider_select } + NOT = { + culture = { has_same_culture_heritage = scope:outsider_select.culture } + } + } + NOT = { has_vassal_stance = courtly } +} + +has_clan_succession_law = { + is_ruler = yes + OR = { + has_realm_law = clan_antagonistic_partition_succession_law + has_realm_law = clan_competitive_partition_succession_law + has_realm_law = clan_impassive_partition_succession_law + has_realm_law = clan_friendly_partition_succession_law + has_realm_law = clan_harmonious_partition_succession_law + } +} diff --git a/common/scripted_triggers/20_health_balancing_triggers.txt b/common/scripted_triggers/20_health_balancing_triggers.txt deleted file mode 100644 index a2773db346..0000000000 --- a/common/scripted_triggers/20_health_balancing_triggers.txt +++ /dev/null @@ -1,16 +0,0 @@ -### HEALTH BALANCING TRIGGERS ### -# Along with the health balancing effects, these triggers are only used to get data output used for balancing diseases. - - -# For activating data output on the number of victims (total, dead and surviving) for contagious disease outbreaks. Combine with a run file like this to quickly collect data: - -#every_independent_ruler = { -# random_courtier = { -# trigger_event = health.1011 #1011 is plague, 1010 is smallpox -# } -#} - - -debug_activate_contagious_disease_outbreak_data_trigger = { - always = no -} diff --git a/common/secret_types/00_bastard_secrets.txt b/common/secret_types/00_bastard_secrets.txt deleted file mode 100644 index 822111aafd..0000000000 --- a/common/secret_types/00_bastard_secrets.txt +++ /dev/null @@ -1,451 +0,0 @@ - -secret_disputed_heritage = { - category = adultery - - is_valid = { - secret_disputed_heritage_is_valid_trigger = { - TARGET = scope:secret_target - } - } - - is_shunned = { - bastard_secret_is_shunned = { - TARGET = scope:secret_target - PARTICIPANT = scope:target - } - } - - is_criminal = { - bastard_secret_is_criminal = { - TARGET = scope:secret_target - PARTICIPANT = scope:target - } - } - - on_owner_death = { - save_scope_as = secret - scope:secret_target = { - save_scope_as = child - } - - ###SET NEW OWNERSHIP### - #Should we set new secret owner(s)? - if = { - limit = { - #Child knows about the secret - is_known_by = scope:child - scope:child = { is_alive = yes } - } - set_secret_owner = scope:child - } - } - - on_discover = { - save_scope_as = secret - scope:secret_target = { - save_scope_as = child - real_father = { - save_scope_as = real_father - } - mother = { - save_scope_as = mother - } - if = { - limit = { - exists = father - } - father = { - save_scope_as = father - } - } - else = { - debug_log = "secret_disputed_heritage was discovered for a child without a father!" - debug_log_scopes = yes - } - } - - scope:child = { remove_inherited_descendent_traits_effect = yes } - - ###Sends events### - scope:discoverer = { - if = { - limit = { NOT = { has_character_flag = block_secret_disputed_heritage_discovery_event } } #Set by reveal_to_without_events_effect - - if = { - limit = { is_ai = no } #Don't send any events to AI, they have no effect - - #CHILD# - if = { - limit = { this = scope:child } - trigger_event = secrets.0501 - } - #REAL FATHER# - else_if = { - limit = { this = scope:real_father } - trigger_event = secrets.0502 - } - #FATHER# - else_if = { - limit = { this = scope:father } - trigger_event = secrets.0500 - } - #CONSORT/LOVER OF CHILD (if we're now siblings!) - else_if = { - limit = { - any_sibling = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - save_my_known_father_effect = yes #Saves known_father for this character - if = { - limit = { - scope:known_father = scope:real_father - any_sibling = { - father = scope:known_father - OR = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - } - - random_sibling = { - limit = { - father = scope:known_father - OR = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - save_scope_as = sibling_partner - } - trigger_event = secrets.0503 - } - } - } - } - else = { - remove_character_flag = block_secret_disputed_heritage_discovery_event - } - } - - #Set participants for this secret - if = { - limit = { - OR = { - scope:discoverer = { this = scope:real_father } - scope:discoverer = { this = scope:child } - } - } - add_secret_participant = scope:discoverer - } - } - - on_expose = { - # Save scopes and set "knows"-flags for reference in events later on. - save_scope_as = secret - scope:secret_owner = { save_scope_as = owner } - scope:secret_target = { - #Child - save_scope_as = child - if = { - limit = { - scope:secret = { - is_known_by = scope:child - } - } - scope:child = { - add_character_flag = child_knows - } - } - - #Mother - mother = { - save_scope_as = mother - } - - #Real_father - scope:child.real_father = { - save_scope_as = real_father - if = { - limit = { - scope:secret = { - is_known_by = scope:real_father - } - } - add_character_flag = real_father_knows - } - } - - #Father - if = { - limit = { exists = father } - father = { save_scope_as = father } - if = { - limit = { - scope:secret = { - is_known_by = scope:father - } - } - add_character_flag = father_knows - } - } - } - - # Actual effects of exposing the secret - hidden_effect = { - secret_exposed_owner_effects_effect = { SECRET = scope:secret POV = scope:secret_exposer } - } - - ############################## - # EXPOSURE EVENTS - # These events exist for notification purposes — they only describe what has already happened, and do not trigger any actual gameplay effects - ############################## - - ##Every secret knower & those who care about the child, mother and real_father (spouses/father are handled here) - secret_exposed_notification_effect = yes - - #"Unique" targets - scope:child = { - remove_inherited_descendent_traits_effect = yes - trigger_event = secret_bastard.2003 - } - scope:mother = { - trigger_event = { - id = secret_bastard.2000 - } - } - scope:real_father = { - trigger_event = { - id = secret_bastard.2002 - } - } - - if = { - limit = { - exists = scope:father - scope:father = scope:secret_exposer - } - scope:father = { - trigger_event = secret_bastard.2001 - } - } - } -} - - -secret_unmarried_illegitimate_child = { - category = adultery - - is_valid = { - secret_unmarried_illegitimate_child_is_valid_trigger = { - TARGET = scope:secret_target - } - } - - is_shunned = { - bastard_secret_is_shunned = { - TARGET = scope:secret_target - PARTICIPANT = scope:target - } - } - - is_criminal = { - bastard_secret_is_criminal = { - TARGET = scope:secret_target - PARTICIPANT = scope:target - } - } - - on_owner_death = { - save_scope_as = secret - scope:secret_target = { - save_scope_as = child - } - - ###SET NEW OWNERSHIP### - #Should we set new secret owner? - if = { - limit = { - #Child knows about the secret - scope:secret = { is_known_by = scope:child } - scope:child = { is_alive = yes } - } - set_secret_owner = scope:child - } - } - - on_discover = { - save_scope_as = secret - scope:secret_target = { - save_scope_as = child - real_father = { - save_scope_as = real_father - } - mother = { - save_scope_as = mother - } - } - - ###Sends events### - scope:discoverer = { - if = { - limit = { NOT = { has_character_flag = block_secret_unmarried_illegitimate_child_discovery_event } } #Set by reveal_to_without_events_effect - - if = { - limit = { is_ai = no } #Do not send any events to AI, they have no script effects (they exist for informational purposes only). - - #CHILD# - if = { - limit = { this = scope:child } - trigger_event = secrets.0501 - } - #REAL FATHER# - else_if = { - limit = { this = scope:real_father } - trigger_event = secrets.0502 - } - #CONSORT/LOVER OF CHILD (if we're now siblings!) - else_if = { - limit = { - any_sibling = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - save_my_known_father_effect = yes #Saves known_father for this character - if = { - limit = { - scope:known_father = scope:real_father - any_sibling = { - father = scope:known_father - OR = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - } - - random_sibling = { - limit = { - father = scope:known_father - OR = { - is_consort_of = scope:child - has_relation_lover = scope:child - } - } - save_scope_as = sibling_partner - } - trigger_event = secrets.0503 - } - } - } - } - else = { - remove_character_flag = block_secret_unmarried_illegitimate_child_discovery_event - } - } - - #Set participants for this secret - if = { - limit = { - OR = { - scope:discoverer = { this = scope:real_father } - scope:discoverer = { this = scope:child } - } - } - add_secret_participant = scope:discoverer - } - } - - on_expose = { - #Save scopes and set "knows"-flags for reference in events later on. - save_scope_as = secret - scope:secret_owner = { save_scope_as = owner } - scope:secret_target = { - #Child - save_scope_as = child - if = { - limit = { - scope:secret = { - is_known_by = scope:child - } - } - scope:child = { - add_character_flag = child_knows - } - } - - #Mother - mother = { - save_scope_as = mother - } - - #Real_father - scope:child.real_father = { - save_scope_as = real_father - if = { - limit = { - scope:secret = { - is_known_by = scope:real_father - } - } - add_character_flag = real_father_knows - } - } - } - - - # Actual effects of exposing the secret - hidden_effect = { - secret_exposed_owner_effects_effect = { SECRET = scope:secret POV = scope:secret_exposer } - } - scope:child = { - set_father = scope:real_father - set_parent_house_effect = yes - remove_inherited_descendent_traits_effect = yes - } - - - ############################## - # EXPOSURE EVENTS - # These events exist for notification purposes — they only describe what has already happened, and do not trigger any actual gameplay effects - ############################## - - #Every secret knower & those who care about child(ren), mother and real_father (spouses are handled here) - secret_exposed_notification_effect = yes - - #"Unique" targets - scope:child = { - if = { - limit = { - is_hostage = yes - dynasty = warden.dynasty - } - save_scope_as = unhostaged_child - warden = { save_scope_as = warden } - } - trigger_event = secret_bastard.3001 - } - scope:mother = { - trigger_event = secret_bastard.2000 - } - scope:real_father = { - if = { - limit = { - is_alive = yes - NOT = { has_variable = do_not_notify_me_of_bastard_secret_reveal } - } - trigger_event = secret_bastard.3000 - } - } - scope:child = { - if = { - limit = { exists = scope:unhostaged_child } - return_hostage = yes - scope:warden = { add_courtier = root } - } - } - } -} diff --git a/common/secret_types/00_secret_types.txt b/common/secret_types/00_secret_types.txt index 1cb6f102e2..df055b3db3 100644 --- a/common/secret_types/00_secret_types.txt +++ b/common/secret_types/00_secret_types.txt @@ -587,6 +587,37 @@ secret_witch = { } } +secret_crypto_religionist = { + category = religious + + is_valid = { + secret_crypto_religionist_is_valid_trigger = { + OWNER = scope:secret_owner + } + } + + is_shunned = { # if not clergy + secret_crypto_religionist_is_shunned_trigger = { + OWNER = scope:secret_owner + } + } + + is_criminal = { # for clergy + secret_crypto_religionist_is_criminal_trigger = { + OWNER = scope:secret_owner + } + } + + on_expose = { + save_scope_as = secret + secret_exposed_notification_effect = yes + + scope:secret_owner = { + trigger_event = false_conversion.8000 + } + } +} + # The associated effect for adding this secret is give_or_update_embezzler_secret_effect. secret_embezzler = { category = civil diff --git a/common/story_cycles/book_translation_story_cycle.txt b/common/story_cycles/book_translation_story_cycle.txt deleted file mode 100644 index 50586b747b..0000000000 --- a/common/story_cycles/book_translation_story_cycle.txt +++ /dev/null @@ -1,130 +0,0 @@ -book_translation_story = { #Used for the Scholarship progress event - - on_setup = { - set_variable = { - name = translation_book - value = story_owner.var:book_to_translate - } - set_variable = { - name = translation_quality - value = 0 - } - set_variable = { - name = duration_left - value = 5 - } - story_owner = { - add_character_flag = had_book_translation_story - remove_variable = book_to_translate - } - } - - on_end = { - story_owner = { - remove_character_modifier = book_translation_ongoing_modifier - } - } - - on_owner_death = { - end_story = yes - } - - effect_group = { - days = { 30 90 } - - first_valid = { - triggered_effect = { - trigger = { - var:duration_left < 1 - } - effect = { - #Story resolution - if = { - limit = { - var:translation_quality >= 5 - } - story_owner = { - trigger_event = learning_scholarship_special.2097 - } - } - else_if = { - limit = { - var:translation_quality < 2 - } - story_owner = { - trigger_event = learning_scholarship_special.2098 - } - } - else = { - random_list = { - 1 = { - compare_modifier = { - value = var:translation_quality - } - story_owner = { - trigger_event = learning_scholarship_special.2097 - } - } - 3 = { - compare_modifier = { - value = var:translation_quality - multiplier = -1 - min = -2 - } - story_owner = { - trigger_event = learning_scholarship_special.2097 - } - } - } - } - } - } - - triggered_effect = { - trigger = { always = yes } - effect = { - if = { - limit = { - NOT = { exists = var:had_first_event } - } - change_variable = { - name = duration_left - add = -1 - } - set_variable = { - name = had_first_event - value = yes - } - story_owner = { - trigger_event = { - on_action = book_translation_story_events - } - } - } - else = { - random_list = { - 1 = { - change_variable = { - name = duration_left - add = -1 - } - } - 3 = { - trigger = { var:translation_quality < 5 } - change_variable = { - name = duration_left - add = -1 - } - story_owner = { - trigger_event = { - on_action = book_translation_story_events - } - } - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/common/story_cycles/commission_epic_story_cycle.txt b/common/story_cycles/commission_epic_story_cycle.txt deleted file mode 100644 index 56a3667e16..0000000000 --- a/common/story_cycles/commission_epic_story_cycle.txt +++ /dev/null @@ -1,236 +0,0 @@ -commission_epic_story = { #Used for the Perk event chain - - on_setup = { - if = { - limit = { - exists = story_owner.var:composer - } - set_variable = { - name = composer - value = story_owner.var:composer - } - } - story_owner = { - remove_variable = composer - } - set_variable = { - name = epic_approach - value = story_owner.var:epic_approach - } - story_owner = { - remove_variable = epic_approach - } - set_variable = { - name = num_of_events - value = 0 - } - - set_variable = { - name = composition_type - value = story_owner.var:composition_type - } - story_owner = { - remove_variable = composition_type - } - - # Set weird detail - random_list = { - 2 = { - set_variable = { - name = composition_detail - value = flag:horse - } - } - 2 = { - set_variable = { - name = composition_detail - value = flag:ox - } - } - 1 = { - set_variable = { - name = composition_detail - value = flag:witch - } - } - 1 = { - set_variable = { - name = composition_detail - value = flag:magical_sword - } - } - 1 = { - set_variable = { - name = composition_detail - value = flag:dragon - } - } - 2 = { - set_variable = { - name = composition_detail - value = flag:emperor - } - } - 2 = { - set_variable = { - name = composition_detail - value = flag:river - } - } - 2 = { - set_variable = { - name = composition_detail - value = flag:mountain - } - } - 2 = { - set_variable = { - name = composition_detail - value = flag:hermit - } - } - } - - if = { - limit = { - var:epic_approach = flag:writer - } - set_variable = { - name = final_outcome_chance - value = 80 - } - } - else_if = { - limit = { - var:epic_approach = flag:scribes - } - set_variable = { - name = final_outcome_chance - value = 50 - } - } - else_if = { - limit = { - var:epic_approach = flag:servant - } - set_variable = { - name = final_outcome_chance - value = 30 - } - } - else = { - debug_log = "No final success chance set in Commission Epic story!" - debug_log_scopes = yes - } - } - - on_end = { - } - - on_owner_death = { - end_story = yes - } - - effect_group = { - days = { 40 60 } - - first_valid = { - # Composer has become unavailable - triggered_effect = { - trigger = { - exists = var:composer - var:composer = { - is_alive = yes - OR = { - is_imprisoned = yes - has_contagious_deadly_disease_trigger = yes - has_trait = incapable - NOR = { - is_courtier_of = scope:story.story_owner - is_foreign_court_or_pool_guest_of = scope:story.story_owner - } - } - } - } - effect = { - save_commission_epic_loc_variables = yes - story_owner = { - trigger_event = commission_epic.9998 # Composer has left - } - } - } - # Composer has died - triggered_effect = { - trigger = { - exists = var:composer - var:composer = { - is_alive = no - } - } - effect = { - save_commission_epic_loc_variables = yes - story_owner = { - trigger_event = commission_epic.9999 # Composer has died - } - } - } - - # Conclusion - triggered_effect = { - trigger = { - var:num_of_events >= 3 - } - effect = { - save_commission_epic_loc_variables = yes - random = { - chance = { - value = var:final_outcome_chance - min = 10 - max = 90 - } - save_temporary_scope_value_as = { - name = great_outcome - value = yes - } - } - if = { - limit = { - exists = scope:great_outcome - } - story_owner = { - trigger_event = commission_epic.9002 # Great End - } - } - else = { - story_owner = { - trigger_event = commission_epic.9001 # Regular End - } - } - } - } - - # Ongoing events - triggered_effect = { - trigger = { - story_owner = { - NOT = { - exists = var:propaganda_path - } - } - } - effect = { - save_commission_epic_loc_variables = yes - change_variable = { - name = num_of_events - add = 1 - } - story_owner = { - trigger_event = { - on_action = commission_epic_ongoing - } - } - } - } - } - } -} diff --git a/common/story_cycles/ep2_story_cycle_mysterious_journal.txt b/common/story_cycles/ep2_story_cycle_mysterious_journal.txt deleted file mode 100644 index a638143398..0000000000 --- a/common/story_cycles/ep2_story_cycle_mysterious_journal.txt +++ /dev/null @@ -1,73 +0,0 @@ -story_cycle_mysterious_journal = { - # by James Beaumont - - on_setup = { - story_owner = { - # Remove cooldowns on the other journal events if they exist - if = { - limit = { - exists = var:had_event_host_dinner_3130 - } - remove_variable = had_event_host_dinner_3130 - } - if = { - limit = { - exists = var:had_event_cultural_festival_9000 - } - remove_variable = had_event_cultural_festival_9000 - } - } - } - - on_end = { - debug_log = "Mysterious Journal story ended on:" - debug_log_date = yes - } - - on_owner_death = { - if = { - limit = { - exists = var:mysterious_journal - var:mysterious_journal = { - NAND = { - exists = var:secret_journal - exists = var:secret_puzzle - exists = var:secret_cipher - } - } - } - story_owner = { save_scope_as = previous_story_owner } - make_story_owner = var:mysterious_journal.artifact_owner - destroy_artifact = var:mysterious_journal - story_owner = { trigger_event = tour_general.5010 } - } - } - - # You don't have the mysterious journal anymore, end the story - effect_group = { - days = { 40 60 } - - first_valid = { - triggered_effect = { - trigger = { - OR = { - NOT = { exists = var:mysterious_journal } - AND = { - exists = var:mysterious_journal - NOT = { var:mysterious_journal.artifact_owner = story_owner } - } - } - } - effect = { - if = { - limit = { - exists = var:mysterious_journal - } - destroy_artifact = var:mysterious_journal - } - end_story = yes - } - } - } - } -} diff --git a/common/story_cycles/fp3_story_cycle_turkic_tribe.txt b/common/story_cycles/fp3_story_cycle_turkic_tribe.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/story_cycles/fp3_story_cycle_turkic_tribe.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/story_cycles/fp3_story_cycle_zanj_rebellion.txt b/common/story_cycles/fp3_story_cycle_zanj_rebellion.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/story_cycles/fp3_story_cycle_zanj_rebellion.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/story_cycles/story_cycle_contagious_disease_outbreak.txt b/common/story_cycles/story_cycle_contagious_disease_outbreak.txt deleted file mode 100644 index 12c3ddaa7a..0000000000 --- a/common/story_cycles/story_cycle_contagious_disease_outbreak.txt +++ /dev/null @@ -1,85 +0,0 @@ -story_contagious_disease_outbreak = { - - on_setup = { - #All handled through activate_outbreak_story_effect - } - - on_end = { - #All handled in health.2102 - } - - on_owner_death = { - if = { - limit = { exists = story_owner.player_heir } - make_story_owner = story_owner.player_heir - } - else = { - debug_log = "Had smallpox or bubonic plague outbreak" - end_story = yes - } - } - - #If no one is sick anymore, send the outbreak end event which kills the story - effect_group = { - days = 30 - chance = 5 - - triggered_effect = { - trigger = { - story_owner = { - NOR = { - trigger_if = { - limit = { scope:story = { var:disease = flag:smallpox } } - has_trait = smallpox - } - trigger_else_if = { - limit = { scope:story = { var:disease = flag:bubonic_plague } } - has_trait = bubonic_plague - } - trigger_else = { - always = no - } - any_courtier_or_guest = { - trigger_if = { - limit = { scope:story = { var:disease = flag:smallpox } } - has_trait = smallpox - } - trigger_else_if = { - limit = { scope:story = { var:disease = flag:bubonic_plague } } - has_trait = bubonic_plague - } - trigger_else = { - always = no - } - } - any_prisoner = { - trigger_if = { - limit = { scope:story = { var:disease = flag:smallpox } } - has_trait = smallpox - } - trigger_else_if = { - limit = { scope:story = { var:disease = flag:bubonic_plague } } - has_trait = bubonic_plague - } - trigger_else = { - always = no - } - } - } - - } - } - effect = { - save_scope_as = ending_outbreak_story - story_owner = { - trigger_event = health.2102 - } - } - } - } -} - - - - - diff --git a/common/story_cycles/story_cycle_hunt_mystical_animal.txt b/common/story_cycles/story_cycle_hunt_mystical_animal.txt deleted file mode 100644 index 8b878a4d6e..0000000000 --- a/common/story_cycles/story_cycle_hunt_mystical_animal.txt +++ /dev/null @@ -1,76 +0,0 @@ -#Story cycle for chasing after a mystical white animal. -#Should only be started for players, the start_hunt_mystical_animal_story_cycle_effect will fake it for ai. - -story_cycle_hunt_mystical_animal = { - - on_setup = { - #The animal will be set based on the variable "animal_type". Use this variable in the event where you start the cycle to get consistency! - story_owner = { - if = { - limit = { - NOT = { exists = var:animal_type } - } - random_list = { - 2 = { - trigger = { - location = { hunt_animal_deer_antelope_trigger = yes } - } - hunt_activity_deer_game_effect = { PROVINCE = story_owner.location } - } - 2 = { - hunt_activity_dangerous_game_effect = { PROVINCE = story_owner.location } - } - } - } - } - set_variable = { - name = animal_type - value = story_owner.var:animal_type - } - set_variable = { - name = legendary_county - value = story_owner.location.county - } - story_owner = { - remove_variable = animal_type - add_character_flag = had_mystical_animal_story - } - #How long have you been looking? - set_variable = { - name = encounters - value = 0 - } - } - - on_end = { - - } - - on_owner_death = { - end_story = yes - } - - # Something happens - random events - effect_group = { - months = { 12 48 } - chance = 100 - - trigger = { - exists = var:animal_type - NOT = { exists = var:killing_animal } - } - - first_valid = { - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = { - on_action = ongoing_hunt_mystical_animal_events - } - } - } - } - } - } -} diff --git a/common/story_cycles/story_cycle_infidelity_confrontation.txt b/common/story_cycles/story_cycle_infidelity_confrontation.txt deleted file mode 100644 index ae1704833a..0000000000 --- a/common/story_cycles/story_cycle_infidelity_confrontation.txt +++ /dev/null @@ -1,198 +0,0 @@ -# This story cycle send the event a character should see when they discover a lover's/spouse's lover secret, or when a lover's/spouse's lover secret is exposed. - -# It should be started by the secret_lover secret with these scripted effects: -# - start_infidelity_confrontation_story_discovery_effect -# - start_infidelity_confrontation_story_exposure_effect - -# To get some special texts in the first event infidelity_confrontation.1000, you can save a variable on the secret before revealing/exposing it, and use the scripted effects to apply that variable to the story. Current special texts: -# - revealed_through_investigation_by_desc -# - revealed_through_confession_to_desc - -story_cycle_infidelty_confronter = { - - on_setup = { - set_variable = { - name = ongoing_confrontation - value = no - } - } - - on_end = { - - } - - on_owner_death = { - end_story = yes - } - - # Send the next confrontation chain - effect_group = { - days = { 2 3 } - chance = 100 - - triggered_effect = { - trigger = { - var:ongoing_confrontation = no - has_variable_list = confronting_partners - } - effect = { - #Save some scopes - save_scope_as = story - var:lover_1 = { save_scope_as = lover_1 } - var:lover_2 = { save_scope_as = lover_2 } - - #Make sure there is no one in the list that shouldn't be there anymore - every_in_list = { - variable = confronting_partners - limit = { - OR = { - NOR = { - has_relation_soulmate = scope:lover_1 - has_relation_soulmate = scope:lover_2 - is_consort_of = scope:lover_1 - is_consort_of = scope:lover_2 - has_relation_lover = scope:lover_1 - has_relation_lover = scope:lover_2 - } - } - } - save_temporary_scope_as = remove_from_list - scope:story = { - remove_list_variable = { - name = confronting_partners - target = scope:remove_from_list - } - } - } - - #In order of importance, each partner of the two lovers will get to make their choice/demand - random_in_list = { - variable = confronting_partners - limit = { - is_ai = no - } - alternative_limit = { - OR = { - has_relation_soulmate = scope:lover_1 - has_relation_soulmate = scope:lover_2 - } - } - alternative_limit = { - OR = { - is_consort_of = scope:lover_1 - is_consort_of = scope:lover_2 - } - } - alternative_limit = { - OR = { - has_relation_lover = scope:lover_1 - has_relation_lover = scope:lover_2 - } - } - save_scope_as = confronting_partner - } - - #Did we find someone? We might have removed the last character from the list above - if = { - limit = { exists = scope:confronting_partner } - - #Who is confronting_partner confronting? If involved with both, pick the "most important" one - random_in_list = { - variable = infidelity_lovers - limit = { has_relation_soulmate = scope:confronting_partner } - alternative_limit = { is_consort_of = scope:confronting_partner } - alternative_limit = { has_relation_lover = scope:confronting_partner } - save_scope_as = infidelity_partner - } - random_in_list = { - variable = infidelity_lovers - limit = { - NOT = { this = scope:infidelity_partner } - } - save_scope_as = infidelity_partners_lover - } - - #Did confronting_partner know? (exposed secrets only) - if = { - limit = { - has_variable_list = knowing_confronting_partners - is_target_in_variable_list = { - name = knowing_confronting_partners - target = scope:confronting_partner - } - } - save_scope_value_as = { - name = confronting_partner_knew - value = yes - } - } - else_if = { - limit = { - has_variable_list = knowing_confronting_partners - } - save_scope_value_as = { - name = confronting_partner_knew - value = no - } - } - - #Save exposer (if exposed) - if = { - limit = { exists = var:exposer } - var:exposer = { save_scope_as = exposer } - } - - #Save the secret (if discovery) - scope:infidelity_partner = { - random_secret = { - limit = { - secret_type = secret_lover - secret_target = scope:infidelity_partners_lover - } - save_scope_as = secret - } - } - - #Remove current confronting_partner from list - remove_list_variable = { - name = confronting_partners - target = scope:confronting_partner - } - - #Block other choices while the current one is evaluating - set_variable = { - name = ongoing_confrontation - value = yes - } - - #Send event! - scope:confronting_partner = { trigger_event = infidelity_confrontation.1000 } - } - } - } - - triggered_effect = { - trigger = { - NOT = { has_variable_list = confronting_partners } - var:ongoing_confrontation = no #If it's yes, we still have an unresolved confrontation going on - } - - effect = { - end_story = yes - } - } - } - - #100 days self destruct - effect_group = { - days = 100 - chance = 100 - - triggered_effect = { - trigger = { always = yes } - effect = { - end_story = yes - } - } - } -} diff --git a/common/story_cycles/story_cycle_murders_at_court.txt b/common/story_cycles/story_cycle_murders_at_court.txt deleted file mode 100644 index cc9f7e2690..0000000000 --- a/common/story_cycles/story_cycle_murders_at_court.txt +++ /dev/null @@ -1,267 +0,0 @@ -story_cycle_murders_at_court = { - - on_setup = { - set_variable = { - name = murderer - value = story_owner.var:murderer_to_save - } - story_owner = { - add_character_flag = had_murderer_at_court_story_cycle - remove_variable = murderer_to_save - } - if = { - limit = { - story_owner = { has_character_flag = child_as_murderer } - } - set_variable = { - name = story_state - value = flag:murderer_is_a_child - } - story_owner = { remove_character_flag = child_as_murderer } - } - else = { - set_variable = { - name = story_state - value = flag:murder_as_usual - } - } - set_variable = { - name = escalation - value = 0 - } - } - - on_end = { - - } - - on_owner_death = { - if = { #The owner has died. Was either killed by the murderer, or the new owner is the murderer! - limit = { - story_owner.player_heir = { - OR = { - has_character_flag = murders_at_court_story_cycle_killed_predecessor - this = scope:story.var:murderer - } - } - } - story_owner = { - save_scope_as = story_owner - } - #To clear out old variables that blocks options - if = { - limit = { - exists = var:movement_restricted - } - remove_variable = movement_restricted - } - if = { - limit = { - exists = var:guards_doubled - } - remove_variable = guards_doubled - } - if = { - limit = { - exists = var:asked_for_help - } - remove_variable = asked_for_help - } - if = { - limit = { - story_owner.player_heir = { - NOT = { this = scope:story.var:murderer } - } - } - story_owner.player_heir = { - add_character_flag = { - flag = just_inherited_story - days = 31 - } - trigger_event = { - id = murders_at_court.8001 - days = { 4 8 } - } - } - } - else = { - story_owner.player_heir = { - add_character_flag = { - flag = just_inherited_story - days = 31 - } - trigger_event = { - id = murders_at_court.8002 - days = { 4 8 } - } - } - } - } - else_if = { #The owner has died. The death had nothing to do with the story. - limit = { - story_owner.player_heir = { - is_alive = yes - is_imprisoned = no - } - } - story_owner = { - save_scope_as = predecessor - } - story_owner.player_heir = { - add_character_flag = { - flag = just_inherited_story - days = 31 - } - trigger_event = { - id = murders_at_court.8003 - days = { 14 30 } - } - } - make_story_owner = story_owner.player_heir - } - else = { - end_story = yes - } - } - - - - #Maintenance - effect_group = { - days = { 15 20 } - - first_valid = { - triggered_effect = { #Check for the murderer's death - trigger = { - var:murderer = { - is_alive = no - } - } - effect = { - story_owner = { - trigger_event = { - id = murders_at_court.9999 - days = { 3 7 } - } - } - } - } - - triggered_effect = { #Check for the murderer's death - trigger = { - var:murderer = { - NOT = { is_courtier_of = scope:story.story_owner } - } - } - effect = { - story_owner = { - trigger_event = { - id = murders_at_court.9989 - days = { 3 7 } - } - } - } - } - - triggered_effect = { #Is the murderer an adult now? - trigger = { - var:story_state = flag:murderer_is_a_child - var:murderer = { - is_adult = yes - is_imprisoned = no - is_courtier_of = scope:story.story_owner - } - } - effect = { - set_variable = { - name = story_state - value = flag:murder_as_usual - } - story_owner = { - if = { - limit = { - NOT = { has_character_flag = had_event_yearly_4031 } - } - trigger_event = { - id = yearly.4031 - days = { 30 90 } - } - } - } - } - } - } - } - - - #Will the resolution start? - effect_group = { - days = { 70 90 } #Duration between checks of this effect group - chance = 50 #Chance of the group firing on a given check - - first_valid = { - triggered_effect = { - trigger = { - story_owner = { - NOR = { - has_character_flag = has_started_resolution - has_character_flag = just_inherited_story - } - } - var:escalation >= 4 - var:murderer = { - is_alive = yes - is_imprisoned = no - is_courtier_of = scope:story.story_owner - } - } - effect = { - story_owner = { - add_character_flag = { - flag = has_started_resolution - years = 5 - } - trigger_event = { - on_action = murders_at_court_confrontation - } - } - } - } - } - } - - - #Murder as usual - effect_group = { - days = { 300 365 } #Duration between checks of this effect group - chance = 80 #Chance of the group firing on a given check - - trigger = { - var:story_state = flag:murder_as_usual - var:murderer = { - is_alive = yes - is_imprisoned = no - is_courtier_of = scope:story.story_owner - } - story_owner = { #Not currently confrontation the murderer or just inherited the story - NOR = { - has_character_flag = has_started_resolution - has_character_flag = just_inherited_story - } - } - } - - first_valid = { - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = { - on_action = murders_at_court_events - } - } - } - } - } - } -} diff --git a/common/story_cycles/story_cycle_party_baron.txt b/common/story_cycles/story_cycle_party_baron.txt deleted file mode 100644 index f86d6fac4f..0000000000 --- a/common/story_cycles/story_cycle_party_baron.txt +++ /dev/null @@ -1,217 +0,0 @@ - -# Everyone Loves the Party Baron -# by Petter Vilberg - -story_party_baron = { - - on_setup = { - set_global_variable = { - name = had_party_baron_story - value = yes - } - set_variable = { - name = event_counter - value = 0 - } - set_variable = { - name = attitude_change_buildup - value = 0 - } - set_variable = { - name = party_baron_kind_acts - value = 0 - } - set_variable = { - name = negative_actions_counter - value = 0 - } - story_owner = { # End the story on its own after a while - trigger_event = { - id = party_baron.9999 - years = 13 - } - } - } - - on_end = { - if = { - limit = { var:party_baron = { is_alive = yes } } - var:party_baron = { - remove_character_flag = is_party_baron - remove_character_flag = immune_to_disease - hidden_effect = { - if = { - limit = { has_character_modifier = party_baron_beloved_by_all_modifier } - remove_character_modifier = party_baron_beloved_by_all_modifier - add_character_modifier = { - modifier = party_baron_beloved_by_all_modifier - years = 20 - } - } - if = { - limit = { has_character_modifier = party_baron_beloved_by_all_except_modifier } - remove_character_modifier = party_baron_beloved_by_all_except_modifier - add_character_modifier = { - modifier = party_baron_beloved_by_all_except_modifier - years = 20 - } - } - } - } - } - debug_log = "Party Baron story ended on:" - debug_log_date = yes - } - - on_owner_death = { - story_owner = { - if = { - limit = { - has_relation_friend = scope:story.var:party_baron - exists = player_heir - } - save_scope_as = previous_character - scope:story.var:party_baron = { - save_scope_as = party_baron - } - player_heir = { - trigger_event = { - id = party_baron.4001 - days = 30 - } - } - } - } - end_story = yes - } - - # Maintenance group - effect_group = { - days = 30 - trigger = { - always = yes - } - - triggered_effect = { - trigger = { - NOT = { - exists = var:party_baron - } - } - effect = { - # Party Baron variable is missing! Ending story prematurely. - end_story = yes - } - } - - triggered_effect = { - trigger = { - var:event_counter >= 2 # Only fire if the player has seen the Party Baron several times - var:party_baron = { - is_alive = no - NOT = { - killer = scope:story.story_owner - } - } - } - effect = { - set_variable = { - name = had_party_baron_maintenance - value = yes - days = 100 - } - var:party_baron = { - save_scope_as = party_baron - } - story_owner = { - trigger_event = party_baron.9001 - } - } - } - - # Restock Party Baron friends - triggered_effect = { - trigger = { - var:party_baron = { - is_alive = yes - num_of_relation_friend < 1 - num_of_relation_best_friend < 1 - } - } - - effect = { - var:party_baron = { - save_scope_as = party_baron - } - story_owner = { - trigger_event = party_baron.9002 - } - } - } - - # Married the Party Baron - triggered_effect = { - trigger = { - var:party_baron = { - is_alive = yes - is_married = yes - any_spouse = { - this = scope:story.story_owner - } - } - } - - effect = { - set_variable = { - name = had_party_baron_maintenance - value = yes - days = 100 - } - var:party_baron = { - save_scope_as = party_baron - } - if = { - limit = { var:event_counter > 1 } - story_owner = { - trigger_event = party_baron.9003 - } - } - else = { # It's not really interesting if you immediately marry the Party Baron - end_story = yes - } - } - } - } - - #Party Baron events - effect_group = { - days = { 200 400 } - trigger = { - story_owner = { - is_available = yes - } - var:party_baron = { - is_alive = yes - is_available = yes - } - NOT = { exists = var:had_party_baron_maintenance } - NOT = { exists = var:enough_is_enough } - } - - triggered_effect = { - trigger = { - always = yes - } - effect = { - var:party_baron = { - save_scope_as = party_baron - } - story_owner = { - trigger_event = { - on_action = party_baron_events - } - } - } - } - } -} diff --git a/common/story_cycles/story_cycle_peasant_affair.txt b/common/story_cycles/story_cycle_peasant_affair.txt deleted file mode 100644 index a0d338d657..0000000000 --- a/common/story_cycles/story_cycle_peasant_affair.txt +++ /dev/null @@ -1,274 +0,0 @@ -story_peasant_affair = { - - on_setup = { - set_variable = { - name = peasant_character - value = story_owner.var:story_peasant_affair_target - } - if = { - limit = { - exists = story_owner.var:rakish_night - } - set_variable = { - name = rakish_night - value = 0 - } - story_owner = { - remove_variable = rakish_night - } - } - story_owner = { - add_character_flag = had_story_cycle_peasant_affair - remove_variable = story_peasant_affair_target - } - } - - on_end = { - story_owner = { - if = { - limit = { - has_character_flag = peasant_appeared_at_court - } - remove_character_flag = peasant_appeared_at_court - } - else_if = { - limit = { - has_character_flag = is_looking_for_peasant - } - remove_character_flag = is_looking_for_peasant - } - } - } - - on_owner_death = { - end_story = yes - } - - #Chance that the cycle ends if nothing has happened (less likely if you really like them/don't like spouse) - effect_group = { - days = { 300 400 } - chance = 5 - - triggered_effect = { - trigger = { - story_owner = { - NOR = { - has_character_flag = is_looking_for_peasant - has_character_flag = peasant_appeared_at_court - } - OR = { - AND = { - is_married = no - opinion = { - target = scope:story.var:peasant_character - value >= 40 - } - } - AND = { - is_married = yes - opinion = { - target = scope:story.var:peasant_character - value >= 30 - } - any_spouse = { - reverse_opinion = { - target = scope:story.story_owner - value <= 0 - } - } - } - } - } - } - effect = { - story_owner = { remove_character_flag = had_story_cycle_peasant_affair } # Reenable it to possible fire later - end_story = yes - } - } - } - - #Make sure a child is "born" at approximately the right time - effect_group = { - days = 548 - - trigger = { - exists = var:peasant_character - var:peasant_character = { - is_alive = yes - has_character_flag = peasant_is_pregnant - } - NOT = { exists = var:child_age_variable } - } - - triggered_effect = { - trigger = { always = yes } - effect = { - var:peasant_character = { - remove_character_flag = peasant_is_pregnant - } - set_variable = { - name = child_age_variable - value = 0 - } - } - } - } - - #Age child if female peasant is pregnant - effect_group = { - days = 365 - - trigger = { - exists = var:child_age_variable - } - - triggered_effect = { - trigger = { always = yes } - effect = { - change_variable = { - name = child_age_variable - add = 1 - } - } - } - } - - #Something happens! - effect_group = { - days = { 550 600 } - chance = 50 - - trigger = { - story_owner = { - NOR = { - has_character_flag = is_looking_for_peasant - has_character_flag = peasant_appeared_at_court - scope:story.var:peasant_character = { - is_courtier_of = scope:story.story_owner - } - } - } - } - - random_valid = { - triggered_effect = { #They show up at court - trigger = { var:peasant_character = { is_alive = yes } } - effect = { - story_owner = { - trigger_event = peasant_affair.0001 #to save and/or create child - add_character_flag = peasant_appeared_at_court - trigger_event = { - on_action = peasant_affair_shows_up_at_court - days = 2 - } - } - } - } - - triggered_effect = { #You start looking for them - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = peasant_affair.0001 #to save and/or create child - add_character_flag = is_looking_for_peasant - trigger_event = { - on_action = peasant_affair_looking_for_peasant - days = 2 - } - } - } - } - } - } - - #You start looking for the peasant from another event (ex. pregnancy.2001) - effect_group = { - days = { 490 540 } - chance = 70 - - trigger = { - exists = var:peasant_character - var:peasant_character = { - NOT = { is_courtier_of = scope:story.story_owner } - } - story_owner = { - has_character_flag = is_looking_for_peasant - } - } - - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = peasant_affair.0001 #to save and/or create child - trigger_event = { - on_action = peasant_affair_looking_for_peasant - days = 2 - } - } - } - } - } - - #The peasant is at court - effect_group = { - days = 180 - chance = 100 - - trigger = { - story_owner = { - is_ruler = yes - has_character_flag = peasant_appeared_at_court - } - exists = var:peasant_character - var:peasant_character = { - OR = { - is_alive = no - is_foreign_court_or_pool_guest_of = scope:story.story_owner - is_courtier_of = scope:story.story_owner - } - } - } - - triggered_effect = { - trigger = { - var:peasant_character = { is_alive = yes } - } - effect = { - story_owner = { - trigger_event = { - on_action = peasant_affair_peasant_at_court - } - } - } - } - } - - effect_group = { - days = 60 - chance = 100 - - triggered_effect = { - trigger = { - OR = { - NOT = { exists = var:peasant_character } - story_owner = { - is_ruler = no - } - AND = { - exists = var:peasant_character - story_owner = { - any_scheme = { - scheme_target = root.var:peasant_character - } - } - } - } - } - - effect = { - end_story = yes - } - } - } -} diff --git a/common/story_cycles/story_cycle_pet_cat.txt b/common/story_cycles/story_cycle_pet_cat.txt deleted file mode 100644 index 53cc482ca8..0000000000 --- a/common/story_cycles/story_cycle_pet_cat.txt +++ /dev/null @@ -1,190 +0,0 @@ -story_cycle_pet_cat = { - - on_setup = { - assign_cat_gender_effect = { GENDER = random } - assign_cat_fur_color_effect = { COLOR = random } - if = { #Has the eye-color already been specified? - limit = { - story_owner = { exists = var:cat_eye_color } - } - if = { - limit = { - story_owner = { var:cat_eye_color = flag:blue } - } - assign_cat_eye_color_effect = { COLOR = blue } - } - else_if = { - limit = { - story_owner = { var:cat_eye_color = flag:yellow } - } - assign_cat_eye_color_effect = { COLOR = yellow } - } - else_if = { - limit = { - story_owner = { var:cat_eye_color = flag:green } - } - assign_cat_eye_color_effect = { COLOR = green } - } - else_if = { - limit = { - story_owner = { var:cat_eye_color = flag:amber } - } - assign_cat_eye_color_effect = { COLOR = amber } - } - else_if = { - limit = { - story_owner = { var:cat_eye_color = flag:copper } - } - assign_cat_eye_color_effect = { COLOR = copper } - } - else_if = { - limit = { - story_owner = { var:cat_eye_color = flag:emerald } - } - assign_cat_eye_color_effect = { COLOR = emerald } - } - } - else = { - assign_cat_eye_color_effect = { COLOR = random } - } - set_variable = { - name = cat_age_variable - value = 0 - } - - story_owner = { - add_character_modifier = { - modifier = cat_story_modifier - } - add_character_flag = had_cat_story - #Are you already allergic to the cat? - if = { - limit = { - has_character_modifier = cat_story_allergy_modifier - } - remove_character_modifier = cat_story_allergy_modifier - add_character_modifier = { - modifier = cat_story_allergy_modifier - } - } - } - - } - - on_end = { - story_owner = { - remove_cat_story_modifiers_effect = yes - remove_cat_name_effect = yes - } - } - - on_owner_death = { - scope:story = { end_story = yes } - } - - # Give the cat a name! - effect_group = { - days = { 2 4 } - chance = 100 - - triggered_effect = { - trigger = { - story_owner = { - NOT = { has_character_flag = is_naming_cat } - } - NOT = { exists = story_owner.var:story_cycle_cat_name } - } - effect = { - story_owner = { - add_character_flag = is_naming_cat - trigger_event = pet_animal.0001 - } - } - } - } - - #To save the name in the story's scope (can for some reason not be done in the naming event itself) - effect_group = { - days = 5 - chance = 100 - - triggered_effect = { - trigger = { - exists = story_owner.var:story_cycle_cat_name - } - effect = { - set_variable = { - name = story_cycle_cat_name - value = scope:story.story_owner.var:story_cycle_cat_name - } - } - } - } - - #Age the cat - effect_group = { - days = 365 - - trigger = { - exists = var:cat_age_variable - } - - triggered_effect = { - trigger = { always = yes } - effect = { - change_variable = { - name = cat_age_variable - add = 1 - } - } - } - } - - # The cat dies :( - effect_group = { - days = { 5000 7000 } - chance = 100 - - triggered_effect = { - trigger = { - exists = story_owner.var:story_cycle_cat_name - } - effect = { - story_owner = { - add_character_flag = { - flag = cat_is_dying - } - trigger_event = pet_animal.0199 - } - } - } - } - - # Something happens - random events - effect_group = { - days = { 365 600 } - chance = 50 - - trigger = { - exists = story_owner.var:story_cycle_cat_name - story_owner = { - NOT = { - has_character_flag = cat_is_dying - } - } - } - - first_valid = { - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = { - on_action = ongoing_cat_events - } - } - } - } - } - } -} diff --git a/common/story_cycles/story_cycle_pet_dog.txt b/common/story_cycles/story_cycle_pet_dog.txt deleted file mode 100644 index 3fdc6511f2..0000000000 --- a/common/story_cycles/story_cycle_pet_dog.txt +++ /dev/null @@ -1,137 +0,0 @@ -story_cycle_pet_dog = { - - on_setup = { - assign_dog_gender_effect = { GENDER = random } - assign_dog_fur_color_effect = { COLOR = random } - assign_dog_eye_color_effect = { COLOR = random } - set_variable = { - name = dog_age_variable - value = 0 - } - - - story_owner = { - add_character_modifier = { - modifier = dog_story_modifier - } - add_character_flag = had_dog_story - } - } - - on_end = { - story_owner = { - remove_dog_story_modifiers_effect = yes - remove_dog_name_effect = yes - } - } - - on_owner_death = { - scope:story = { end_story = yes } - } - - # Give the dog a name! - effect_group = { - days = { 2 4 } - chance = 100 - - triggered_effect = { - trigger = { - story_owner = { - NOT = { has_character_flag = is_naming_dog } - } - NOT = { exists = story_owner.var:story_cycle_dog_name } - } - effect = { - story_owner = { - add_character_flag = is_naming_dog - trigger_event = pet_animal.1001 - } - } - } - } - - #To save the name in the story's scope (can for some reason not be done in the naming event itself) - effect_group = { - days = 5 - chance = 100 - - triggered_effect = { - trigger = { - exists = story_owner.var:story_cycle_dog_name - } - effect = { - set_variable = { - name = story_cycle_dog_name - value = scope:story.story_owner.var:story_cycle_dog_name - } - } - } - } - - #Age the dog - effect_group = { - days = 365 - - trigger = { - exists = var:dog_age_variable - } - - triggered_effect = { - trigger = { always = yes } - effect = { - change_variable = { - name = dog_age_variable - add = 1 - } - } - } - } - - # The dog dies :( - effect_group = { - days = { 5000 7000 } - chance = 100 - - triggered_effect = { - trigger = { - exists = story_owner.var:story_cycle_dog_name - } - effect = { - story_owner = { - add_character_flag = { - flag = dog_is_dying - } - trigger_event = pet_animal.1199 - } - } - } - } - - # Something happens - random events - effect_group = { - days = { 365 600 } - chance = 50 - - trigger = { - exists = story_owner.var:story_cycle_dog_name - story_owner = { - NOT = { - has_character_flag = dog_is_dying - } - } - } - - first_valid = { - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - trigger_event = { - on_action = ongoing_dog_events - } - } - } - } - } - } -} diff --git a/common/story_cycles/story_cycle_seljuk_invasion.txt b/common/story_cycles/story_cycle_seljuk_invasion.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/story_cycles/story_cycle_seljuk_invasion.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/story_cycles/story_cycle_statecraft_lifestyle_respected_liege.txt b/common/story_cycles/story_cycle_statecraft_lifestyle_respected_liege.txt deleted file mode 100644 index 7a6b283975..0000000000 --- a/common/story_cycles/story_cycle_statecraft_lifestyle_respected_liege.txt +++ /dev/null @@ -1,199 +0,0 @@ -#READ ME -#This is commented out because there are no ongoing events in this story. I have taken the first event and made it a standalone event, but it could be fixed to be start event for this story if we want to add it back. - - -#story_cycle_diplomacy_lifestyle_respected_liege = { -# -# on_setup = { -# -# -# #Create points -# set_variable = { -# name = respected_liege_points -# value = 0 -# } -# -# #Create stage variable -# set_variable = { -# name = respected_liege_stage -# value = 1 -# } -# -# #Create stage variable -# set_variable = { -# name = respected_liege_duration -# value = 0 -# } -# -# #Dread option var -# set_variable = { -# name = respected_liege_dread_options -# value = 0 -# } -# -# trigger_event = { -# on_action = ongoing_respected_liege_events -# days = 10 -# } -# } -# -# on_end = { -# story_owner = { - # -# } -# -# } -# -# on_owner_death = { -# end_story = yes -# } -# -# -# #Duration tracking (years) -# effect_group = { -# days = 365 -# chance = 100 -# -# triggered_effect = { -# trigger = { always = yes } -# effect = { -# change_variable = { -# name = respected_liege_duration -# add = 1 -# } - # -# } -# } -# } - # -# -# #Stage 1 end -# effect_group = { -# days = 60 -# chance = 100 -# trigger = { -# story_owner = { is_available = yes } -# var:respected_liege_points >= 5 -# var:respected_liege_stage = 1 -# } -# -# triggered_effect = { -# trigger = { always = yes } -# effect = { -# change_variable = { -# name = respected_liege_stage -# add = 1 -# } -# if = { -# limit = { respected_liege_0002_bad_traits_trigger = yes } -# story_owner = { trigger_event = respected_liege.0002 } #Lose a bad trait -# } -# else = { -# story_owner = { trigger_event = respected_liege.0003 } #Gain a loyal vassal -# } -# } -# } -# } -# -# #Stage 2 end -# effect_group = { -# days = 60 -# chance = 100 -# trigger = { -# story_owner = { is_available = yes } -# var:respected_liege_points >= 10 -# var:respected_liege_stage = 2 -# } -# -# triggered_effect = { -# trigger = { always = yes } -# effect = { -# change_variable = { -# name = respected_liege_stage -# add = 1 -# } -# story_owner = { trigger_event = respected_liege.0004 } #Gain a good trait -# } -# } -# } -# -# #Stage 3 end (story ends) -# effect_group = { -# days = 60 -# chance = 100 -# trigger = { -# story_owner = { is_available = yes } -# OR = { -# AND = { #Great ending -# var:respected_liege_points >= 15 -# var:respected_liege_stage = 3 -# } -# var:respected_liege_duration >= 20 #Good and poor ending -# story_owner = { NOT = { has_focus = diplomacy_lifestyle } } -# AND = { #Dread ending -# var:respected_liege_dread_options >= 2 -# story_owner = { dread >= 60 } -# } -# } - # -# var:respected_liege_stage = 1 -# } -# -# first_valid = { -# triggered_effect = { #GREAT -# trigger = { -# var:respected_liege_points >= 15 -# var:respected_liege_stage = 3 -# } -# effect = { -# } -# } -# triggered_effect = { #DREAD -# trigger = { -# var:respected_liege_dread_options >= 2 -# story_owner = { dread >= 60 } -# } -# effect = { -# } -# } -# triggered_effect = { #GOOD -# trigger = { -# OR = { -# var:respected_liege_duration >= 20 -# story_owner = { NOT = { has_focus = diplomacy_lifestyle } } -# } -# var:respected_liege_stage = 3 -# } -# effect = { -# } -# } -# triggered_effect = { #POOR -# trigger = { -# OR = { -# var:respected_liege_duration >= 20 -# story_owner = { NOT = { has_focus = diplomacy_lifestyle } } -# } -# var:respected_liege_stage < 3 -# } -# effect = { -# } -# } -# } -# } -# -# #Ongoing event for respected liege -# effect_group = { -# days = { 20 40 } #todo 200-400? 20-40 is for-test values -# -# triggered_effect = { -# trigger = { -# story_owner = { is_available = yes } -# } -# effect = { -# trigger_event = { -# on_action = ongoing_respected_liege_events -# } -# } -# } -# } -#} diff --git a/common/story_cycles/story_cycle_stewardship_duty_mediation.txt b/common/story_cycles/story_cycle_stewardship_duty_mediation.txt deleted file mode 100644 index 31c8261144..0000000000 --- a/common/story_cycles/story_cycle_stewardship_duty_mediation.txt +++ /dev/null @@ -1,212 +0,0 @@ -story_diplomacy_lifestyle_mediation = { - - on_setup = { - set_variable = { - name = vassal_1 - value = story_owner.var:stewardship_duty_special_mediation_vassal_1_setup - } - set_variable = { - name = vassal_2 - value = story_owner.var:stewardship_duty_special_mediation_vassal_2_setup - } - set_variable = { - name = story_stage - value = 1 - } - set_variable = { - name = favor_1 - value = 0 - } - set_variable = { - name = favor_2 - value = 0 - } - set_variable = { - name = perceived_fairness - value = 0 - } - set_variable = { - name = num_of_stage_1_events - value = 0 - } - set_variable = { - name = num_of_stage_2_events - value = 0 - } - set_variable = { - name = death_by_murder - value = no - } - story_owner = { - remove_variable = stewardship_duty_special_mediation_vassal_1_setup - remove_variable = stewardship_duty_special_mediation_vassal_2_setup - } - } - - on_end = { - story_owner = { - remove_character_flag = is_in_stewardship_duty_special_event - } - } - - on_owner_death = { - end_story = yes - } - - #What if one of the vassals dies - effect_group = { - days = 5 - chance = 100 - - triggered_effect = { - trigger = { - OR = { - var:vassal_1 = { is_alive = no } - var:vassal_2 = { is_alive = no } - } - var:death_by_murder = no - } - effect = { - story_owner = { - trigger_event = stewardship_duty_special.2081 - } - } - } - - triggered_effect = { - trigger = { - OR = { - var:vassal_1 = { - is_imprisoned = yes - } - var:vassal_2 = { - is_imprisoned = yes - } - } - } - effect = { - story_owner = { - trigger_event = stewardship_duty_special.2082 - } - } - } - } - - - effect_group = { # Stage 1 - days = { 10 20 } - chance = 100 - - trigger = { - var:story_stage = 1 - } - - triggered_effect = { - effect = { - story_owner = { - trigger_event = { - on_action = stewardship_duty_special_2000_mediation_stage_1 - } - } - } - } - } - - effect_group = { # Stage 2 - days = { 10 20 } - chance = 100 - - trigger = { - var:story_stage = 2 - } - - triggered_effect = { - effect = { - story_owner = { - trigger_event = { - on_action = stewardship_duty_special_2000_mediation_stage_2 - } - } - } - } - } - - effect_group = { #Change story stage - days = 20 - - triggered_effect = { - trigger = { - var:num_of_stage_1_events > 0 - var:story_stage = 1 - } - effect = { - set_variable = { - name = story_stage - value = 2 - } - } - } - - triggered_effect = { - trigger = { - var:num_of_stage_2_events > 0 - var:story_stage = 2 - } - effect = { - set_variable = { - name = story_stage - value = 3 - } - } - } - } - - effect_group = { #Background events - days = 20 - chance = 30 - - trigger = { - NOT = { - var:story_stage = 3 - } - } - - triggered_effect = { - effect = { - story_owner = { - trigger_event = { - on_action = stewardship_duty_special_2000_mediation_background_events - } - } - } - } - } - - effect_group = { # Conclusion - days = { 10 20 } - chance = 100 - - trigger = { - var:story_stage = 3 - } - - triggered_effect = { - effect = { - story_owner = { - trigger_event = stewardship_duty_special.2070 - } - } - } - } - - effect_group = { # End after a while to prevent infinite rank up - days = 400 - chance = 100 - - triggered_effect = { - effect = { - end_story = yes - } - } - } -} \ No newline at end of file diff --git a/common/story_cycles/story_cycle_unity_decisions.txt b/common/story_cycles/story_cycle_unity_decisions.txt new file mode 100644 index 0000000000..8dbbcc6e9e --- /dev/null +++ b/common/story_cycles/story_cycle_unity_decisions.txt @@ -0,0 +1,25 @@ +# Warcraft + +# Another simple story cycle; merely has a % chance of firing 1 of 2 events every 300 - 600 days +story_cycle_madrasas = { + + on_setup = { + + } + + on_owner_death = { end_story = yes } + + effect_group = { + days = { 300 600 } + # End the story if the decision has expired + triggered_effect = { + trigger = { story_owner = { NOT = { has_character_flag = fp3_educated_youth_in_madrasas } } } + effect = { end_story = yes } + } + # Otherwise, audit every madrasa member and trigger ongoing_madrasas_events if at least one member exists + triggered_effect = { + trigger = { story_owner = { has_character_flag = fp3_educated_youth_in_madrasas } } + effect = { story_owner = { trigger_event = fp3_yearly.2060 } } + } + } +} diff --git a/common/story_cycles/story_cycle_warfare_lifestyle_soldier_friend.txt b/common/story_cycles/story_cycle_warfare_lifestyle_soldier_friend.txt deleted file mode 100644 index 8e87cbece8..0000000000 --- a/common/story_cycles/story_cycle_warfare_lifestyle_soldier_friend.txt +++ /dev/null @@ -1,32 +0,0 @@ -story_cycle_martial_lifestyle_soldier_friend = { - - on_setup = { - story_owner = { - #add_character_flag = had_soldier_friend_story - } - } - - on_end = { - - } - - on_owner_death = { - end_story = yes - } - - #effect_group = { # Give the horse a name! - # days = { 10 20 } - # chance = 100 - # - # triggered_effect = { - # trigger = { - # NOT = { exists = var:story_cycle_horse_name } - # } - # effect = { - # story_owner = { - # trigger_event = warhorse.0001 - # } - # } - # } - #} -} diff --git a/common/story_cycles/story_cycle_warfare_lifestyle_warhorse.txt b/common/story_cycles/story_cycle_warfare_lifestyle_warhorse.txt deleted file mode 100644 index b0616857fb..0000000000 --- a/common/story_cycles/story_cycle_warfare_lifestyle_warhorse.txt +++ /dev/null @@ -1,100 +0,0 @@ -story_cycle_martial_lifestyle_warhorse = { - - on_setup = { - assign_horse_gender_effect = { GENDER = random } - story_owner = { - add_character_modifier = { - modifier = horse_story_modifier - } - add_character_flag = had_warhorse_story - set_variable = { # Set up the variable so we can check its value in the modifier event - name = warhorse_modifier_level - value = 0 - } - } - } - - on_end = { - story_owner = { - remove_horse_story_modifiers_effect = yes - } - } - - on_owner_death = { - end_story = yes - } - - effect_group = { # Give the horse a name! - days = { 3 7 } - chance = 100 - - triggered_effect = { - trigger = { - NOR = { - exists = var:story_cycle_horse_name - story_owner = { - has_character_flag = is_in_naming_event - } - } - } - effect = { - story_owner = { - add_character_flag = is_in_naming_event - trigger_event = warhorse.0001 - } - } - } - } - - effect_group = { # Something happens - random events - days = { 275 400 } - chance = 75 - - trigger = { - exists = var:story_cycle_horse_name - story_owner = { - is_available = yes - NOT = { - has_character_flag = is_breeding_warhorse - } - } - } - - triggered_effect = { - trigger = { exists = var:story_cycle_horse_name } - effect = { - story_owner = { - trigger_event = { - on_action = ongoing_warhorse_events - } - } - } - } - } - - effect_group = { # You trusted steed is getting old, you should consider breeding! - days = { 5000 7000 } - chance = 100 - - trigger = { - story_owner = { - is_available = yes - } - } - - triggered_effect = { - trigger = { always = yes } - effect = { - story_owner = { - add_character_flag = { - flag = is_breeding_warhorse - days = 200 - } - trigger_event = { - on_action = breed_warhorse - } - } - } - } - } -} diff --git a/common/struggle/struggles/iberian_struggle_script.txt b/common/struggle/struggles/iberian_struggle_script.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/struggle/struggles/iberian_struggle_script.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/struggle/struggles/persian_struggle_script.txt b/common/struggle/struggles/persian_struggle_script.txt new file mode 100644 index 0000000000..dd7e3cac6b --- /dev/null +++ b/common/struggle/struggles/persian_struggle_script.txt @@ -0,0 +1 @@ +# Warcraft \ No newline at end of file diff --git a/common/succession_election/00_feudal_elective.txt b/common/succession_election/00_feudal_elective.txt index cebc2c894e..b2b5b182e4 100644 --- a/common/succession_election/00_feudal_elective.txt +++ b/common/succession_election/00_feudal_elective.txt @@ -60,7 +60,6 @@ feudal_elective = { } faith = scope:holder.faith faith = { has_doctrine = doctrine_theocracy_lay_clergy } - #TODO_CD:Possible trigger checking for investiture succession? } modifier = { #Regent Influence desc = tooltip_feudal_vote_strength_is_diarch diff --git a/common/succession_election/02_gaelic_elective.txt b/common/succession_election/02_gaelic_elective.txt deleted file mode 100644 index 37038f5e0c..0000000000 --- a/common/succession_election/02_gaelic_elective.txt +++ /dev/null @@ -1,110 +0,0 @@ -# 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 - } - - #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 - } - } - } -} diff --git a/common/succession_election/04_saxon_elective.txt b/common/succession_election/04_saxon_elective.txt index 6ba4508fd6..3eda37864d 100644 --- a/common/succession_election/04_saxon_elective.txt +++ b/common/succession_election/04_saxon_elective.txt @@ -101,8 +101,6 @@ saxon_elective = { #Witenagemot } } } - - #TODO_CD:If landless electors become supported by Code, add the ruler's close family members (adults only) to the list of viable Electors. } candidate_score = { diff --git a/common/succession_election/05_scandinavian_elective.txt b/common/succession_election/05_scandinavian_elective.txt deleted file mode 100644 index 34b705a064..0000000000 --- a/common/succession_election/05_scandinavian_elective.txt +++ /dev/null @@ -1,120 +0,0 @@ -# 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 = 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 = 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 = 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 - } - - #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 - } - } - } -} \ No newline at end of file diff --git a/common/terrain_types/00_terrains.txt b/common/terrain_types/00_terrains.txt deleted file mode 100644 index d8c34d7a0f..0000000000 --- a/common/terrain_types/00_terrains.txt +++ /dev/null @@ -1,293 +0,0 @@ -plains = { - color = hsv { 0.1 0.5 0.8 } - travel_danger_color = hsv { 0.1 0.5 0.8 } - travel_danger_score = 10 - - province_modifier = { - supply_limit_mult = 0 - travel_danger = 10 - } - - audio_parameter = 1.0 -} - -sea = { - color = hsv { 0.0 0.0 0.1 0 } - travel_danger_color = hsv { 0.00 0.00 1.00 0.00 } - travel_danger_score = 20 - - province_modifier = { - travel_danger = 75 - } -} - -coastal_sea = { - color = hsv { 0.0 0.0 0.1 0 } - travel_danger_color = hsv { 0.00 0.00 1.00 0.00 } - travel_danger_score = 20 - - province_modifier = { - travel_danger = 50 - } -} - -farmlands = { - color = hsv { 0 1 1 } - - province_modifier = { - supply_limit_mult = 0.5 - development_growth_factor = 0.2 - } - - audio_parameter = 1.0 -} - -hills = { - color = hsv { 29 0.867 0.353 } - travel_danger_color = hsv { 29 0.6 0.353 } - travel_danger_score = hills_danger_value - - province_modifier = { - supply_limit_mult = -0.1 - development_growth_factor = -0.1 - travel_danger = hills_danger_value - } - - defender_combat_effects = { - name = combat_hills - image = combat_hills - advantage = 5 - } - - movement_speed = 0.8 - combat_width = 0.8 - - audio_parameter = 1.0 -} - -mountains = { - color = hsv { 0 0 0.392 } - travel_danger_color = hsv { 0 0 0.392 } - travel_danger_score = mountains_danger_value - - province_modifier = { - supply_limit_mult = -0.5 - development_growth_factor = -0.25 - travel_danger = mountains_danger_value - } - - defender_combat_effects = { - name = combat_mountain - image = combat_mountain - advantage = 12 - } - - movement_speed = 0.5 - combat_width = 0.5 - - audio_parameter = 6.0 -} - -desert = { - color = hsv { 0.15 1 1 } #{ 225 255 0 } - travel_danger_color = hsv { 0.16 0.7 0.8 } - travel_danger_score = desert_danger_value - - province_modifier = { - supply_limit_mult = -0.3 - development_growth_factor = -0.5 - travel_danger = desert_danger_value - } - - movement_speed = 0.7 - - audio_parameter = 2.0 -} - -desert_mountains = { - color = hsv { 0.7 0.5 0.15 } - travel_danger_color = hsv { 0 0 0.392 } - travel_danger_score = desert_mountains_danger_value - - province_modifier = { - supply_limit_mult = -0.6 - development_growth_factor = -0.5 - travel_danger = desert_mountains_danger_value - } - - defender_combat_effects = { - name = combat_desert_mountains - image = defender_desert_mountains - advantage = 12 - } - - defender_modifier = { - retreat_losses = -0.3 - } - - movement_speed = 0.5 - combat_width = 0.5 - - audio_parameter = 7.0 -} - -oasis = { - color = hsv { 0.7 0.3 0.8 } - travel_danger_color = hsv { 0.16 0.7 0.8 } - travel_danger_score = 10 - - province_modifier = { - supply_limit_mult = 0.1 - development_growth_factor = 0.1 - travel_danger = 10 - } - - movement_speed = 1 - - audio_parameter = 10.0 -} - -jungle = { - color = { 10 60 35 } - travel_danger_color = { 10 60 35 } - travel_danger_score = jungle_danger_value - - province_modifier = { - supply_limit_mult = -0.25 - development_growth_factor = -0.4 - travel_danger = jungle_danger_value - } - - defender_combat_effects = { - name = combat_jungle - image = defender_jungle - advantage = 6 - } - - movement_speed = 0.5 - combat_width = 0.7 - - audio_parameter = 8.0 -} - -forest = { - color = hsv { 0.3 0.75 0.7 } #50 255 25 - travel_danger_color = hsv { 0.37 0.8 0.5 } - travel_danger_score = forest_danger_value - - province_modifier = { - supply_limit_mult = -0.1 - travel_danger = forest_danger_value - } - - defender_combat_effects = { - name = combat_forest - image = defender_forest - advantage = 3 - } - - movement_speed = 0.8 - combat_width = 0.9 - - audio_parameter = 4.0 -} - -taiga = { - color = hsv { 0.4 0.7 0.6 } #0 90 0 - travel_danger_color = hsv { 0.37 0.8 0.5 } - travel_danger_score = taiga_danger_value - - province_modifier = { - supply_limit_mult = -0.2 - development_growth_factor = -0.05 - travel_danger = taiga_danger_value - } - - defender_combat_effects = { - name = combat_taiga - image = defender_taiga - advantage = 4 - } - - movement_speed = 0.8 - combat_width = 0.8 - - audio_parameter = 9.0 -} - -wetlands = { - color = hsv { 0.5 0.5 0.6 } #75 200 200 - travel_danger_color = { 47 128 97 } - travel_danger_score = wetlands_danger_value - - province_modifier = { - supply_limit_mult = -0.25 - development_growth_factor = -0.25 - travel_danger = wetlands_danger_value - } - - attacker_modifier = { - hard_casualty_modifier = 0.2 - retreat_losses = 0.25 - } - - defender_modifier = { - hard_casualty_modifier = 0.2 - retreat_losses = 0.25 - } - - defender_combat_effects = { - name = combat_wetlands - image = defender_wetlands - advantage = 5 - } - - movement_speed = 0.7 - combat_width = 0.6 - - audio_parameter = 3.0 -} - -steppe = { - color = { 200 100 25 } - travel_danger_color = hsv { 0.16 0.7 0.8 } - travel_danger_score = steppe_danger_value - - province_modifier = { - supply_limit_mult = 0 - development_growth_factor = -0.5 - travel_danger = steppe_danger_value - } - - audio_parameter = 5.0 -} - -floodplains = { - color = hsv { 0.7 0.8 0.6 } #200 50 100 - travel_danger_color = { 47 128 97 } - travel_danger_score = floodplains_danger_value - - province_modifier = { - supply_limit_mult = 0.35 - development_growth_factor = 0.2 - travel_danger = floodplains_danger_value - } - - combat_width = 0.75 - - audio_parameter = 2.0 -} - -drylands = { - color = { 220 45 120 } - travel_danger_color = hsv { 0.16 0.7 0.8 } - travel_danger_score = drylands_danger_value - - province_modifier = { - supply_limit_mult = 0 - development_growth_factor = -0.05 - travel_danger = drylands_danger_value - } - - audio_parameter = 1.0 -} diff --git a/common/terrain_types/_terrains.info b/common/terrain_types/_terrains.info deleted file mode 100644 index 1acc1a8ba0..0000000000 --- a/common/terrain_types/_terrains.info +++ /dev/null @@ -1,46 +0,0 @@ -key = { - movement_speed = 1 # Speed on this type of terrain - attacker_modifier = {} # Modifiers for the attackers in a combat. See note on allowed modifiers below. - defender_modifier = {} # Modifiers for the defender in a combat. See note on allowed modifiers below. - attacker_combat_effects = {} # Combat effect for the attackers. Look for common/combat_effects/_combat_effects.info for more information on how script this one. - defender_combat_effects = {} # Combat effect for the attackers. Look for common/combat_effects/_combat_effects.info for more information on how script this one. - color = { r g b } # Terrain color for the terrain type map mode - combat_width = 1 # Multiplier onthe combat width - is_desert = no # is the terrain type a desert - is_jungle = no # is the terrain type a jungle - audio_parameter = 0 # Used to check the audio to play - province_modifier = {} # Modifier applied to the province. See note on allowed modifiers below. - travel_danger = 0 # The amount of danger this terrain provides when travelling over it. -} - -Allowed Modifiers -================= - -Modifiers referenced by a terrain object can be only generic (hardcoded) modifiers, or modifiers generated from the following databases: -- schemes -- holdings -- lifestyles -- regions - -Other generated modifiers are _not_ allowed, such as those from other terrains, men_at_arms_types, cultures, or governments. - -Generated Modifiers -=================== - -Each terrain type adds this modifiers automatically: - -KEY + _attrition_mult = 0 # Multiplier applied to attition of the terrain terrain type -KEY + _cancel_negative_supply = yes # Discards supply penalties from the terrain type -KEY + _advantage = 0 # Advantage during the combat -KEY + _development_growth = 0.2 # Development growth if capital of a county is this terrain -KEY + _development_growth_factor = 0.2 # Development growth factor if capital of a county is this terrain -KEY + _construction_gold_cost = 0.2 -KEY + _holding_construction_gold_cost = 0.2 -KEY + _construction_piety_cost = 0.2 -KEY + _holding_construction_piety_cost = 0.2 -KEY + _construction_prestige_cost = 0.2 -KEY + _holding_construction_prestige_cost = 0.2 -KEY + _supply_limit = 200 -KEY + _supply_limit_mult = 0.2 -KEY + _tax_mult = 0.2 -KEY + _levy_size = 0.2 diff --git a/common/traits/00_traits.txt b/common/traits/00_traits.txt index 1df247bddd..7ede7dbcec 100644 --- a/common/traits/00_traits.txt +++ b/common/traits/00_traits.txt @@ -1678,6 +1678,13 @@ scholar = { church_holding_holding_build_gold_cost = -0.05 } + culture_modifier = { #for FP3's "Irrigation Expert" tradition + parameter = innovative_traits_more_valued + drylands_tax_mult = 0.1 + desert_tax_mult = 0.1 + desert_mountains_tax_mult = 0.1 + } + ai_rationality = 30 compatibility = { @@ -2024,6 +2031,13 @@ lifestyle_gardener = { stewardship = 2 stress_gain_mult = -0.2 courtier_and_guest_opinion = 10 + + culture_modifier = { #for FP3's "Irrigation Expert" tradition + parameter = innovative_traits_more_valued + drylands_tax_mult = 0.1 + desert_tax_mult = 0.1 + desert_mountains_tax_mult = 0.1 + } ruler_designer_cost = 50 @@ -2410,6 +2424,11 @@ diligent = { farmlands_tax_mult = 0.2 floodplains_tax_mult = 0.2 } + + culture_modifier = { + parameter = pragmatic_traits_county_opinion_modifiers + county_opinion_add = 10 + } same_opinion = 10 opposite_opinion = -10 @@ -2658,6 +2677,13 @@ patient = { farmlands_tax_mult = 0.2 floodplains_tax_mult = 0.2 } + + culture_modifier = { #for FP3's "Irrigation Expert" tradition + parameter = innovative_traits_more_valued + drylands_tax_mult = 0.1 + desert_tax_mult = 0.1 + desert_mountains_tax_mult = 0.1 + } opposite_opinion = -15 @@ -6959,6 +6985,11 @@ shrewd = { physical = yes ruler_designer_cost = 50 + + culture_modifier = { + parameter = pragmatic_traits_county_opinion_modifiers + county_opinion_add = 10 + } desc = { first_valid = { @@ -7805,9 +7836,6 @@ excommunicated = { # Monk for christian male, Nun for christian female. Devoted for others. devoted = { category = fame - # potential = { - # is_ruler = no - # } monthly_piety = 0.3 same_faith_opinion = 5 @@ -8038,6 +8066,11 @@ faith_warrior = { category = fame martial = 2 prowess = 3 + + culture_modifier = { + parameter = faith_warrior_traits_more_valued + monthly_prestige = 1 + } clergy_opinion = 15 same_faith_opinion = 5 @@ -8113,6 +8146,11 @@ order_member = { martial = 1 prowess = 4 + culture_modifier = { + parameter = faith_warrior_traits_more_valued + monthly_prestige = 2 + } + same_opinion_if_same_faith = 15 shown_in_ruler_designer = no @@ -8136,12 +8174,6 @@ order_member = { ########### FAME ########## berserker = { - #potential = { - #OR = { - #religion = norse_pagan - #religion = norse_pagan_reformed - #} - #} category = fame diplomacy = -2 @@ -8242,6 +8274,7 @@ varangian = { } poet = { + category = fame diplomacy_per_prestige_level = 1 stress_loss_mult = 0.1 @@ -9187,11 +9220,6 @@ disinherited = { denounced = { category = fame - - potential = { - exists = dynasty.dynast - faith = dynasty.dynast.faith - } diplomacy = -1 monthly_prestige = -1 @@ -9217,6 +9245,59 @@ denounced = { } } +decadent = { + category = fame + opposites = { + extolled + } + + dynasty_house_opinion = -15 + same_opinion = 25 + monthly_piety = -1 + stress_gain_mult = 0.25 + owned_hostile_scheme_success_chance_add = 10 + owned_scheme_secrecy_add = 10 + + shown_in_ruler_designer = no + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_decadent_desc + } + desc = trait_decadent_character_desc + } + } +} + +extolled = { + category = fame + opposites = { + decadent + } + + dynasty_house_opinion = 15 + monthly_piety = 1 + enemy_hostile_scheme_success_chance_add = 25 + + shown_in_ruler_designer = no + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_extolled_desc + } + desc = trait_extolled_character_desc + } + } +} + loyal = { category = fame opposites = { @@ -10167,6 +10248,14 @@ greatest_of_khans = { archer_cavalry_siege_value_add = 0.5 light_cavalry_siege_value_add = 0.5 + archer_cavalry_toughness_mult = 1 + light_cavalry_toughness_mult = 1 + heavy_cavalry_toughness_mult = 1 + + archer_cavalry_damage_mult = 1 + light_cavalry_damage_mult = 1 + heavy_cavalry_damage_mult = 1 + shown_in_ruler_designer = no desc = { @@ -11233,3 +11322,59 @@ lifestyle_traveler = { } } +fp3_struggle_detractor = { + icon = "fp3_struggle_detractor.dds" + opposites = { + fp3_struggle_supporter + } + + shown_in_ruler_designer = no + + same_opinion = 10 + opposite_opinion = -30 + + ai_war_cooldown = -0.5 + ai_war_chance = 5 + + flag = can_foment_revolt_interaction + flag = can_request_incursion_interaction + flag = can_change_to_iranian_faith_decision + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_detractor_desc + } + desc = trait_fp3_struggle_detractor_non_orthodox_sunni_character_desc + } + } +} + +fp3_struggle_supporter = { + icon = "fp3_struggle_supporter.dds" + opposites = { + fp3_struggle_detractor + } + + shown_in_ruler_designer = no + + flag = can_use_install_loyalist_cb + + same_opinion = 10 + opposite_opinion = -30 + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_supporter_desc + } + desc = trait_fp3_struggle_supporter_character_desc + } + } +} \ No newline at end of file diff --git a/common/traits/_traits.info b/common/traits/_traits.info index b035a0cd83..b6ab4fab39 100644 --- a/common/traits/_traits.info +++ b/common/traits/_traits.info @@ -57,7 +57,7 @@ valid_sex = all/male/female # Defaults to all, trait can only be had by characte minimum_age = int # Min age required to have this trait maximum_age = int # Max age allowed to have this trait -potential = { # Triggers that must be met to be allowed to have this trait +potential = { # Triggers that must be met for this trait to be givento a character. This is not checked during runtime. } diff --git a/common/traits/old_trait_indexes.lookup b/common/traits/old_trait_indexes.lookup deleted file mode 100644 index 53e3b5d20b..0000000000 --- a/common/traits/old_trait_indexes.lookup +++ /dev/null @@ -1,285 +0,0 @@ -# The nulls are important since they represent locations that did not have a manual index before, the old manual indexes started at 1 as well hence the first item being null - -null -education_intrigue_1 -education_intrigue_2 -education_intrigue_3 -education_intrigue_4 -education_diplomacy_1 -education_diplomacy_2 -education_diplomacy_3 -education_diplomacy_4 -education_stewardship_1 -education_stewardship_2 -education_stewardship_3 -education_stewardship_4 -education_martial_1 -education_martial_2 -education_martial_3 -education_martial_4 -education_learning_1 -education_learning_2 -education_learning_3 -education_learning_4 -diplomat -family_first -august -reveler_1 -reveler_2 -reveler_3 -blademaster_1 -blademaster_2 -blademaster_3 -hunter_1 -hunter_2 -hunter_3 -strategist -overseer -gallant -architect -administrator -avaricious -schemer -seducer -torturer -null -null -null -whole_of_body -scholar -theologian -null -null -depressed_genetic -lunatic_genetic -possessed_genetic -null -null -null -null -lustful -chaste -gluttonous -temperate -greedy -generous -lazy -diligent -wrathful -calm -patient -impatient -arrogant -humble -deceitful -honest -craven -brave -shy -gregarious -ambitious -content -arbitrary -just -cynical -zealous -paranoid -trusting -compassionate -callous -sadistic -stubborn -fickle -vengeful -forgiving -rowdy -charming -curious -pensive -bossy -pregnant -depressed_1 -lunatic_1 -possessed_1 -ill -pneumonic -great_pox -lovers_pox -leper -wounded_1 -maimed -one_eyed -one_legged -disfigured -null -infirm -incapable -drunkard -gout_ridden -consumption -cancer -typhus -bubonic_plague -null -smallpox -sickly -scarred -eunuch -blind -beauty_bad_1 -beauty_bad_2 -beauty_bad_3 -beauty_good_1 -beauty_good_2 -beauty_good_3 -intellect_bad_1 -intellect_bad_2 -intellect_bad_3 -intellect_good_1 -intellect_good_2 -intellect_good_3 -physique_bad_1 -physique_bad_2 -physique_bad_3 -physique_good_1 -physique_good_2 -physique_good_3 -pure_blooded -fecund -strong -shrewd -clubfooted -hunchbacked -lisping -stuttering -dwarf -inbred -weak -dull -spindly -scaly -albino -wheezing -bleeder -null -infertile -celibate -pilgrim -null -excommunicated -devoted -null -null -sayyid -null -saoshyant -saoshyant_descendant -savior -divine_blood -blood_of_prophet -null -faith_warrior -saint -berserker -varangian -bastard -legitimized_bastard -child_of_concubine_female -twin -kinslayer_3 -null -deviant -cannibal -born_in_the_purple -viking -reincarnation -adventurer -null -peasant_leader -null -null -null -null -logistician -military_engineer -aggressive_attacker -unyielding_defender -forder -flexible_leader -desert_warrior -jungle_stalker -null -reaver -null -reckless -holy_warrior -null -wounded_2 -wounded_3 -giant -kinslayer_1 -kinslayer_2 -early_great_pox -mystic_1 -mystic_2 -mystic_3 -physician_1 -physician_2 -physician_3 -witch -null -null -null -incestuous -disinherited -denounced -crusader_king -sodomite -wild_oat -augustus -heresiarch -order_member -null -adulterer -fornicator -null -null -null -murderer -chakravarti -greatest_of_khans -paragon -consecrated_blood -open_terrain_expert -rough_terrain_expert -forest_fighter -cautious_leader -organizer -winter_soldier -lifestyle_herbalist -null -hashishiyah -null -null -rakish -reclusive -irritable -flagellant -profligate -improvident -contrite -comfort_eater -inappetetic -journaller -confider -athletic -bastard_founder -education_martial_prowess_1 -education_martial_prowess_2 -education_martial_prowess_3 -education_martial_prowess_4 -disputed_heritage -impotent -child_of_concubine_male -shieldmaiden -poet diff --git a/common/travel/point_of_interest_types/travel_point_of_interest_types.txt b/common/travel/point_of_interest_types/travel_point_of_interest_types.txt index edb1359860..b9a0384bc3 100644 --- a/common/travel/point_of_interest_types/travel_point_of_interest_types.txt +++ b/common/travel/point_of_interest_types/travel_point_of_interest_types.txt @@ -252,6 +252,15 @@ poi_special_buildings_religious = { } add_piety = medium_piety_gain } + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } traveler_travel_xp_effect = { MIN = 3 @@ -353,6 +362,15 @@ poi_special_buildings_wonder = { add_stewardship_lifestyle_xp = travel_medium_xp add_prestige = medium_prestige_gain + if = { + limit = { + has_trait = lifestyle_mystic + } + add_trait_xp = { + trait = lifestyle_mystic + value = lifestyle_mystic_xp_gain_minor_value + } + } traveler_travel_xp_effect = { MIN = 3 MAX = 5 @@ -386,41 +404,52 @@ poi_special_buildings_economic = { } } -#poi_mausoleum_at_halicarnassus = { -# on_visit = { -# send_interface_toast = { -# title = poi_mausoleum_at_halicarnassus.visit -# left_icon = root -# -# add_stewardship_lifestyle_xp = travel_medium_xp -# add_prestige = medium_prestige_gain -# traveler_travel_xp_effect = { -# MIN = 3 -# MAX = 5 -# } -# } -# } -#} -# -#poi_lighthouse_of_alexandria = { -# build_province_list = { -# province:6053 = { -# add_to_list = provinces -# } -# } -# -# on_visit = { -# send_interface_toast = { -# title = poi_lighthouse_of_alexandria.visit -# left_icon = root -# -# add_stewardship_lifestyle_xp = travel_medium_xp -# add_prestige = medium_prestige_gain -# traveler_travel_xp_effect = { -# MIN = 3 -# MAX = 5 -# } -# } -# } -#} +#poi_mausoleum_at_halicarnassus +#poi_lighthouse_of_alexandria + +# Natural features, e.g. Mount X, Lake X +poi_natural_feature = { + build_province_list = { + every_special_building_province = { + limit = { + has_building_with_flag = { flag = travel_point_of_interest_natural_feature } + } + add_to_list = provinces + } + } + + on_visit = { + send_interface_toast = { + title = poi_natural_feature.visit + left_icon = root + stress_impact = { base = minor_stress_impact_loss } + if = { + limit = { + NOT = { + has_trait = lifestyle_traveler + } + } + send_interface_toast = { + title = poi_grand_city.visit + left_icon = root + add_trait = lifestyle_traveler + traveler_travel_xp_effect = { + MIN = 1 + MAX = 3 + } + } + } + else = { + send_interface_toast = { + title = poi_grand_city.visit + left_icon = root + traveler_travel_xp_effect = { + MIN = 3 + MAX = 5 + } + } + } + } + } +} diff --git a/common/travel/travel_options/_travel_options.info b/common/travel/travel_options/_travel_options.info deleted file mode 100644 index 1b629aeb87..0000000000 --- a/common/travel/travel_options/_travel_options.info +++ /dev/null @@ -1,61 +0,0 @@ -Structure: - -# Travel Option -key = { - # Trigger which has to be true to be shown while planning travel. Scope is the travel owner. - is_shown = {} - - # Trigger which has to be true to be able to be picked while planning travel. Scope is the travel owner. - is_valid = {} - - # Scripted cost which will be applied to the travel owner once the travel start, if the option is picked. Scope is the travel owner character. - # We have chosen to remove the gold cost and have the player choose what options they want to apply for a limited number of slots. Still maintaining it for special options. - cost = {} - - # Travel modifier which gets applied to the travels safety/speed if the option is picked. - travel_modifier = { - travel_speed = number - travel_safety = number - } - - # Character modifier that gets applied to the travel owner character - owner_modifier = {} - - # Effect that gets triggered once the travel starts, or once the option is gained mid-travel. - # Root - Travel Owner. - # scope:travel_speed - Travel Speed (percentage points above 100%) - # scope:travel_safety - Travel Safety - on_applied_effect = {} - - # Effect that gets triggered once the travel ends. - # Root - Travel Owner. - # scope:travel_speed - Travel Speed (percentage points above 100%) - # scope:travel_safety - Travel Safety - on_travel_end_effect = {} - - ### Brief: ai_will_do (scripted value int32) - # How likely is the AI to pick this option if valid? Options will be selected using weighted random. - # Options will be re-evaluated after each option is added. - # - # Root - Travel Plan. - # Extra scopes: - # scope:highest_future_danger_value - highest danger value on route; to compare with `travel_safety` - ai_will_do = {} - - # Select which court characters are added to the travel entourage when this option is added. - # Weighted list is evaluated until all values are negative, or `max` is reached. - travel_entourage_selection = { - # List is all court characters. - # root = character in the travel plan owners' court - # scope:owner = character owning the travel plan - weight = { - value = 10 - } - - # Up to how many characters to select for a player - max = 2 - - # Up to how many characters to select for an AI - ai_max = 2 - } -} diff --git a/common/travel/travel_options/travel_options.txt b/common/travel/travel_options/travel_options.txt deleted file mode 100644 index 8ef984526f..0000000000 --- a/common/travel/travel_options/travel_options.txt +++ /dev/null @@ -1,1197 +0,0 @@ -experienced_captains_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = medium_travel_option_cost - desc = experienced_captains_option - } - } - } - - owner_modifier = { - coastal_sea_travel_danger = medium_sea_danger_reduction - sea_travel_danger = medium_sea_danger_reduction #Still a bit more dangerous since sea travel is more dangerous than coastal sea - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to character bloat for every AI - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - # Try to find a pool character with the Forder trait - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forder - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forder - } - save_scope_as = new_guide - } - } - # If we don't have one, we pull a random pool character and add the trait - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = forder - } - } - add_trait = forder - } - save_scope_as = new_guide - } - } - # Fallback scenario, we just create a character - else = { - create_character = { - location = root.location - template = sea_captain - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.medium_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = captain_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = captain_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - is_sea_province = yes - } - } - add = { - value = 100 - } - } - } -} - -hire_experienced_mercenaries_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - custom_tooltip = { - text = available_mercenary.tt - any_mercenary_company = { - is_mercenary_in_hire_range = root - mercenary_company_leader = { - is_travelling = no - is_at_war = no - is_in_army = no - NOT = { - any_courtier = { - is_in_army = yes - } - } - } - } - } - } - - cost = { - gold = { - add = { - value = high_travel_option_cost - desc = hire_experienced_mercenaries_option - } - } - } - - travel_modifier = { - travel_speed = 10 - travel_safety = 20 - } - - on_applied_effect = { - hidden_effect = { - random_mercenary_company = { - limit = { - is_mercenary_in_hire_range = root - mercenary_company_leader = { - is_travelling = no - is_at_war = no - is_in_army = no - NOT = { - any_courtier = { - is_in_army = yes - } - } - } - } - mercenary_company_leader = { - save_scope_as = mercenary_leader - } - } - - scope:mercenary_leader = { - add_gold = root.high_travel_option_cost - } - - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - send_interface_toast = { - title = mercenary_leader.t - left_icon = scope:mercenary_leader - root.current_travel_plan ?= { - add_companion = scope:mercenary_leader - } - } - } - } - custom_tooltip = mercenary_leader_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 50 - } - } - add = { - value = 100 - } - } - if = { - limit = { - travel_plan_owner.gold <= travel_plan_owner.minor_gold_value - } - add = { - value = -500 - } - } - } -} - -hire_jungle_expert_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = low_travel_option_cost - desc = hire_jungle_expert_option - } - } - } - - owner_modifier = { - jungle_travel_danger = jungle_medium_danger_reduction - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - # Try to find a pool character the Jungle Stalker trait - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = jungle_stalker - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = jungle_stalker - } - save_scope_as = new_guide - } - } - # Otherwise, just give the trait to a pool character - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = jungle_stalker - } - } - add_trait = jungle_stalker - } - save_scope_as = new_guide - } - } - # else create a character - else = { - create_character = { - location = root.location - template = jungle_guide - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.low_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = jungle_stalker_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = jungle_stalker_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - terrain = jungle - } - } - add = { - value = 100 - } - } - } -} - -hire_mountaineer_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = low_travel_option_cost - desc = hire_mountaineer_option - } - } - } - - owner_modifier = { - mountains_travel_danger = mountains_medium_danger_reduction - desert_mountains_travel_danger = desert_mountains_medium_danger_reduction - hills_travel_danger = hills_medium_danger_reduction - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = rough_terrain_expert - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = rough_terrain_expert - } - save_scope_as = new_guide - } - } - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = rough_terrain_expert - } - } - add_trait = rough_terrain_expert - } - save_scope_as = new_guide - } - } - else = { - create_character = { - location = root.location - template = mountaineer_guide - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.low_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = mountaineer_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = mountaineer_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - OR = { - terrain = mountains - terrain = desert_mountains - terrain = hills - } - } - } - add = { - value = 100 - } - } - } -} - -hire_forder_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - is_landed = yes - } - - cost = { - gold = { - add = { - value = low_travel_option_cost - desc = hire_forder_option - } - } - } - - owner_modifier = { - wetlands_travel_danger = wetlands_medium_danger_reduction - floodplains_travel_danger = floodplains_medium_danger_reduction - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forder - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forder - } - save_scope_as = new_guide - } - } - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = forder - } - } - add_trait = forder - } - save_scope_as = new_guide - } - } - else = { - create_character = { - location = root.location - template = forder_guide - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.low_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = forder_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = forder_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - OR = { - terrain = wetlands - terrain = floodplains - } - } - } - add = { - value = 100 - } - } - } -} - -hire_desert_warrior_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = low_travel_option_cost - desc = hire_desert_warrior_option - } - } - } - - owner_modifier = { - desert_travel_danger = desert_medium_danger_reduction - steppe_travel_danger = steppe_medium_danger_reduction - drylands_travel_danger = drylands_medium_danger_reduction - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = desert_warrior - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = desert_warrior - } - save_scope_as = new_guide - } - } - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = desert_warrior - } - } - add_trait = desert_warrior - } - save_scope_as = new_guide - } - } - else = { - create_character = { - location = root.location - template = desert_warrior_guide - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.low_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = desert_warrior_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = desert_warrior_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - OR = { - terrain = desert - terrain = steppe - terrain = drylands - } - } - } - add = { - value = 100 - } - } - } -} - -hire_rough_terrain_expert_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = low_travel_option_cost - desc = hire_rough_terrain_expert_option - } - } - } - - owner_modifier = { - forest_travel_danger = forest_medium_danger_reduction - taiga_travel_danger = taiga_medium_danger_reduction - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forest_fighter - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - has_trait = forest_fighter - } - save_scope_as = new_guide - } - } - else_if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - } - if = { - limit = { - NOT = { - has_trait = forest_fighter - } - } - add_trait = forest_fighter - } - save_scope_as = new_guide - } - } - else = { - create_character = { - location = root.location - template = rough_terrain_guide - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.low_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = rough_terrain_expert_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - } - } - } - custom_tooltip = rough_terrain_expert_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - OR = { - terrain = forest - terrain = taiga - } - } - } - add = { - value = 100 - } - } - } -} - -cultural_ambassador_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - } - - cost = { - gold = { - add = { - value = medium_travel_option_cost - desc = cultural_ambassador_option - } - } - } - - on_applied_effect = { - hidden_effect = { - if = { # No reason to steal too many Mercenaries away for travels; players and AI kings+ only - limit = { - OR = { - is_ai = no - highest_held_title_tier >= tier_kingdom - } - } - if = { - limit = { - exists = root.capital_province - any_pool_character = { - province = root.capital_province - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - diplomacy > 8 - } - } - random_pool_character = { - province = root.capital_province - limit = { - is_available_ai_adult = yes - has_no_particular_noble_roots_trigger = yes - age >= 30 - age <= 55 - is_married = no - diplomacy > 10 - } - save_scope_as = new_guide - } - } - else = { - create_character = { - location = root.location - template = cultural_ambassador - save_scope_as = new_guide - } - } - if = { - limit = { - exists = scope:new_guide - } - scope:new_guide = { - add_gold = root.medium_travel_option_cost - move_to_pool = yes - add_character_flag = travel_option_added_character #to send it back to pool when the travel is done - } - send_interface_toast = { - title = cultural_ambassador_recruited.t - left_icon = scope:new_guide - root.current_travel_plan ?= { - add_companion = scope:new_guide - } - } - root.current_travel_plan ?= { - set_variable = { - name = cultural_ambassador_scope - value = scope:new_guide - } - } - } - } - } - custom_tooltip = cultural_ambassador_recruited.tt - } - - ai_will_do = { - value = 0 - if = { - limit = { - any_future_path_location = { - count >= 3 - exists = county - NOT = { culture = root.travel_plan_owner.culture } - } - } - add = { - value = 50 - } - } - if = { - limit = { - travel_plan_owner.gold <= travel_plan_owner.minor_gold_value - } - add = { - value = -500 - } - } - } -} - -fancy_mounts_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - any_directly_owned_province = { - OR = { - has_building_or_higher = stables_04 - has_building_or_higher = camel_farms_04 - } - } - } - - travel_modifier = { - travel_speed = 20 - } - - ai_will_do = { - value = 100 - } -} - -military_recruits_option = { - is_shown = { - primary_title.tier >= tier_duchy - } - - is_valid = { - any_directly_owned_province = { - has_building_or_higher = military_academy_01 - } - } - - travel_modifier = { - travel_safety = 10 - } - - on_applied_effect = { - ordered_knight = { - limit = { - is_available_ai_adult = yes - age < 50 - } - order_by = { - value = 0 - subtract = prowess - } - max = 3 - check_range_bounds = no - save_temporary_scope_as = knight_to_add - root = { - send_interface_message = { - type = event_marshal_task_good - title = military_recruits_option.t - desc = military_recruits_option.desc - left_icon = scope:knight_to_add - current_travel_plan ?= { - add_to_variable_list = { - name = knights_to_train - target = scope:knight_to_add - } - add_companion = scope:knight_to_add - } - } - } - } - # trigger hidden recursive event - trigger_event = { - id = travel_events.0060 - days = { 5 10 } - } - } - - ai_will_do = { - value = 100 - } -} - -superior_armaments_option = { - is_shown = { - primary_title.tier >= tier_duchy - } - - is_valid = { - any_directly_owned_province = { - has_building_or_higher = blacksmiths_01 - } - } - - travel_modifier = { - travel_safety = 10 - } - - owner_modifier = { - artifact_decay_reduction_mult = -0.2 - } - - ai_will_do = { - value = 90 - } -} - -anxious_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - # Putting these here so the player knows why this option is available to them - OR = { - has_trait = impatient - has_trait = craven - has_trait = reckless - } - } - - travel_modifier = { - travel_speed = 20 - travel_safety = -10 - } - - ai_will_do = { - value = 50 - } -} - -circumspect_option = { - is_shown = { - is_ruler = yes - } - - is_valid = { - # Putting these here so the player knows why this option is available to them - OR = { - has_trait = fickle - has_trait = arbitrary - has_trait = paranoid - } - } - - travel_modifier = { - travel_speed = -10 - } - - owner_modifier = { - hostile_scheme_resistance_mult = 0.5 - enemy_hostile_scheme_success_chance_add = -50 - } - - ai_will_do = { - value = 50 - } -} diff --git a/common/travel/travel_options/travel_options_modifiers.txt b/common/travel/travel_options/travel_options_modifiers.txt deleted file mode 100644 index bd4b25307a..0000000000 --- a/common/travel/travel_options/travel_options_modifiers.txt +++ /dev/null @@ -1,5 +0,0 @@ -################################################## -# #General travel options - - - diff --git a/common/trigger_localization/00_debug_triggers.txt b/common/trigger_localization/00_debug_triggers.txt index 7ea6a7104e..14aaed459a 100644 --- a/common/trigger_localization/00_debug_triggers.txt +++ b/common/trigger_localization/00_debug_triggers.txt @@ -314,6 +314,10 @@ witchcraft_scheme_blocked = { global = witchcraft_scheme_blocked_trigger } +crypto_religion_scheme_blocked = { + global = crypto_religion_scheme_blocked_trigger +} + has_game_rule = { global = has_game_rule_trigger } diff --git a/common/trigger_localization/00_landed_title_triggers.txt b/common/trigger_localization/00_landed_title_triggers.txt index 00ceb56929..46c2188ef8 100644 --- a/common/trigger_localization/00_landed_title_triggers.txt +++ b/common/trigger_localization/00_landed_title_triggers.txt @@ -131,6 +131,7 @@ is_titular = { title_held_years = { global = TITLE_HELD_YEARS + first = TITLE_HELD_YEARS third = TITLE_HELD_YEARS global_not = TITLE_NOT_HELD_YEARS } diff --git a/common/trigger_localization/01_decision_triggers.txt b/common/trigger_localization/01_decision_triggers.txt index 16fc748930..b43b670bef 100644 --- a/common/trigger_localization/01_decision_triggers.txt +++ b/common/trigger_localization/01_decision_triggers.txt @@ -260,3 +260,13 @@ at_least_10_jewish_counties_tt = { first = at_least_10_jewish_counties_tt first_not = at_least_10_jewish_counties_tt } + +lackluster_diet_hindrance_desc = { + first = lackluster_diet_hindrance_desc + first_not = lackluster_diet_hindrance_desc +} + +create_cadet_branch_decision_in_another_realm = { + first = I_NOT_CREATE_CADET_BRANCH_DECISION_IN_ANOTHER_REALM + first_not = I_CREATE_CADET_BRANCH_DECISION_IN_ANOTHER_REALM +} diff --git a/common/tutorial_lessons/00_tutorial_lessons_reactive.txt b/common/tutorial_lessons/00_tutorial_lessons_reactive.txt deleted file mode 100644 index 33e74a2705..0000000000 --- a/common/tutorial_lessons/00_tutorial_lessons_reactive.txt +++ /dev/null @@ -1,2444 +0,0 @@ -### This file contains reactive advice - -reactive_advice_mercenaries = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_mercenaries } - # NOT = { any_hired_mercenary = { always = yes } } - # OR = { - # any_character_war = { - # defender_war_score < -25 - # casus_belli = { - # primary_defender = root - # } - # } - # any_character_war = { - # attacker_war_score < -25 - # casus_belli = { - # primary_attacker = root - # } - # } - # } - #} - - reactive_advice_mercenaries_step_1 = { - text = "reactive_advice_mercenaries_desc" - animation = left - - highlight_widget = "tab_military" - highlight_widget = "tutorial_highlight_hire_troops_button" - highlight_widget = "tutorial_highlight_mercenary_list_item" - highlight_widget = "hire_button" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - enabled = { - custom_description = { - text = "reactive_advice_mercenaries_task" - is_widget_open = hired_troop_detail_view - } - } - } - } -} - -reactive_advice_succession = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_succession } - # has_character_flag = tutorial_reactive_advice_succession - #} - - reactive_advice_succession_step_1 = { - text = "reactive_advice_succession_desc" - animation = center - - highlight_widget = "tutorial_highlight_bottom_left_portrait_button" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_domain_limit = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # domain_limit_available < 0 - #} - - reactive_advice_domain_limit_step_1 = { - text = "reactive_advice_domain_limit_desc" - animation = center - - highlight_widget = "tab_my_realm" - highlight_widget = "tutorial_highlight_domain_tab" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_vassal_limit = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # vassal_limit_available < 0 - #} - - reactive_advice_vassal_limit_step_1 = { - text = "reactive_advice_vassal_limit_desc" - animation = left - - #highlight_widget = "tab_my_realm" - highlight_widget = "tutorial_highlight_vassal_limit" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_megaduke_penalty = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # primary_title.tier = tier_duchy - # 30 <= { # Needs to match MAX_COUNTIES_IN_REALM_AS_DUKE - # every_sub_realm_county = { add = 1 } - # } - #} - - reactive_advice_megaduke_penalty_step_1 = { - text = "reactive_advice_megaduke_penalty_desc" - animation = right - - highlight_widget = "actions_button" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_bastards = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_bastards } - # has_character_flag = tutorial_reactive_advice_bastards - #} - - reactive_advice_bastards_step_1 = { - text = "reactive_advice_bastards_desc" - animation = right - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_protecting_against_hostile_schemes = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_protecting_against_hostile_schemes } - # OR = { - # any_targeting_scheme = { - # is_hostile = yes - # } - # AND = { - # exists = cp:councillor_spymaster - # cp:councillor_spymaster = { - # opinion = { - # target = root - # value < -20 - # } - # } - # } - # NOT = { exists = cp:councillor_spymaster } - # } - #} - - reactive_advice_protecting_against_hostile_schemes_step_1 = { - text = "reactive_advice_protecting_against_hostile_schemes_desc" - header_info = "lesson_step_1_of_2" - animation = left - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = reactive_advice_protecting_against_hostile_schemes_step_2 - } - } - - reactive_advice_protecting_against_hostile_schemes_step_2 = { - text = "reactive_advice_protecting_against_hostile_schemes_2_desc" - header_info = "lesson_step_2_of_2" - animation = left - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { #Back button - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = reactive_advice_protecting_against_hostile_schemes_step_1 - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_protect_against_factions = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_protect_against_factions } - # any_targeting_faction = { - # always = yes - # } - #} - - reactive_advice_protect_against_factions_step_1 = { - text = "reactive_advice_protect_against_factions_desc" - header_info = "lesson_step_1_of_2" - animation = center - - highlight_widget = "tab_factions" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = reactive_advice_protect_against_factions_step_2 - } - } - - reactive_advice_protect_against_factions_step_2 = { - text = "reactive_advice_protect_against_factions_2_desc" - header_info = "lesson_step_2_of_2" - animation = center - - highlight_widget = "tab_factions" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { #Back button - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = reactive_advice_protect_against_factions_step_1 - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_imprisoned = { - chain = reactive_advice - delay = 0 - start_automatically = no - - #trigger = { - # NOT = { is_tutorial_lesson_completed = reactive_advice_imprisoned } - # is_imprisoned = yes - #} - - reactive_advice_imprisoned_step_1 = { - text = "reactive_advice_imprisoned_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_county_control = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_county_control_step_1 = { - text = "reactive_advice_county_control_desc" - animation = left - - #highlight_widget = "tab_my_realm" - #highlight_widget = "tutorial_highlight_domain_tab" - #highlight_widget = "tutorial_highlight_control" - highlight_widget = "tab_council" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_looming_game_over = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_looming_game_over_step_1 = { - text = "reactive_advice_looming_game_over_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_bankruptcy = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_bankruptcy_step_1 = { - text = "reactive_advice_bankruptcy_desc" - animation = center - - highlight_widget = "gold" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_rightful_liege = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_rightful_liege_step_1 = { - text = "reactive_advice_rightful_liege_desc" - header_info = "lesson_step_1_of_2" - animation = center - - highlight_widget = "actions_button" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = reactive_advice_rightful_liege_step_2 - } - } - - reactive_advice_rightful_liege_step_2 = { - text = "reactive_advice_rightful_liege_2_desc" - header_info = "lesson_step_2_of_2" - animation = center - - highlight_widget = "map_mode_duchies_button" - - highlight_widget = "map_mode_kingdoms_button" - - highlight_widget = "map_mode_empires_button" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { #Back button - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = reactive_advice_rightful_liege_step_1 - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_bishop_endorsement = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_bishop_endorsement_step_1 = { - text = "reactive_advice_bishop_endorsement_desc" - animation = center - - highlight_widget = "tab_council" - highlight_widget = "church_approval_icon" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_encyclopedia = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_encyclopedia_step_1 = { - text = "reactive_advice_encyclopedia_desc" - - highlight_widget = "encyclopedia_button_extended_menu" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_dynamic_culture = { - delay = 0 - chain = reactive_advice - start_automatically = no - - - lesson_basics_culture_open_view = { - text = "lesson_basics_culture_open_view_desc" - highlight_widget = "player_culture_button_tutorial_uses_this" - animation = center - header_info = "lesson_step_1_of_6" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_culture_elements - trigger = { - custom_description = { - text = "lesson_basics_culture_open_view_trigger" - is_widget_open = culture_window - } - } - } - } - - lesson_basics_culture_elements = { - text = "lesson_basics_culture_elements_desc" - animation = center - highlight_widget = "traditions_and_pillars_tab_tutorial_uses_this" - header_info = "lesson_step_2_of_6" - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_culture_culture_head - } - - trigger_transition = { - target = lesson_basics_culture_open_view - trigger = { - NOT = { is_widget_open = culture_window } - } - } - - } - - lesson_basics_culture_culture_head = { - text = "lesson_basics_culture_culture_head_desc" - animation = center - highlight_widget = "culture_head_tutorial_uses_this" - header_info = "lesson_step_3_of_6" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_culture_elements - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_culture_innovations_open - } - - trigger_transition = { - target = lesson_basics_culture_open_view - trigger = { - NOT = { is_widget_open = culture_window } - } - } - - } - - lesson_basics_culture_innovations_open = { - text = "lesson_basics_culture_innovations_open_desc" - animation = center - highlight_widget = "innovations_tab_tutorial_uses_this" - header_info = "lesson_step_4_of_6" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_culture_culture_head - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_culture_innovations - trigger = { - custom_description = { - text = "lesson_basics_culture_open_innovations_tab_trigger" - is_widget_open = innovations_area_tutorial_uses_this - } - } - } - - trigger_transition = { - target = lesson_basics_culture_open_view - trigger = { - NOT = { is_widget_open = culture_window } - } - } - - } - - lesson_basics_culture_innovations = { - text = "lesson_basics_culture_innovations_desc" - animation = center - highlight_widget = "innovations_area_tutorial_uses_this" - header_info = "lesson_step_5_of_6" - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_culture_innovations_spread - } - - trigger_transition = { - target = lesson_basics_culture_innovations_open - trigger = { - NOT = { is_widget_open = innovations_area_tutorial_uses_this } - } - } - - } - - lesson_basics_culture_innovations_spread = { - text = "lesson_basics_culture_innovations_spread_desc" - animation = center - highlight_widget = "fascination_info_tutorial_uses_this" - header_info = "lesson_step_6_of_6" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_culture_innovations - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - - trigger_transition = { - target = lesson_basics_culture_innovations_open - trigger = { - NOT = { is_widget_open = innovations_area_tutorial_uses_this } - } - } - - } - -} - -reactive_advice_religion = { - delay = 0 - chain = reactive_advice - start_automatically = no - - # Your religion... - lesson_basics_religion_1 = { - text = "lesson_basics_religion_1_desc" - header_info = "lesson_step_1_of_4" - highlight_widget = "faith_button" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_religion_2 - } - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_religion_2 - trigger = { - custom_description = { - text = "lesson_basics_religion_click_religion_tt" - is_widget_open = faith_window - } - } - } - - } - - # Doctrines... - lesson_basics_religion_2 = { - text = "lesson_basics_religion_2_desc" - header_info = "lesson_step_2_of_4" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_religion_1 - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_religion_3 - } - } - # Fervor... - lesson_basics_religion_3 = { - text = "lesson_basics_religion_3_desc" - header_info = "lesson_step_3_of_4" - highlight_widget = "fervor_container" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_religion_2 - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lesson_basics_religion_4 - } - } - # Founding your own religion... - lesson_basics_religion_4 = { - text = "lesson_basics_religion_4_desc" - header_info = "lesson_step_4_of_4" - highlight_widget = "create_faith" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_religion_3 - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_basics_religion_4_no_GUI_highlight - } - trigger_transition = { # Next - target = lesson_basics_religion_4_no_GUI_highlight - trigger = { - is_widget_open = faith_creation_window - } - } - } - # Founding your own religion... - lesson_basics_religion_4_no_GUI_highlight = { - text = "lesson_basics_religion_4_desc" - header_info = "lesson_step_4_of_4" - shown_in_encyclopedia = no - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lesson_basics_religion_3 - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - - - -reactive_advice_fabricate_claim = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_fabricate_claim_step_1 = { - text = "reactive_advice_fabricate_claim_desc" - animation = left - - highlight_widget = "tab_council" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_education = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_education_step_1 = { - text = "reactive_advice_education_desc" - animation = center - - highlight_widget = "tutorial_highlight_bottom_left_portrait_button" - highlight_widget = "heir" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_tooltip_modes = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_tooltip_modes_step_1 = { - text = "reactive_advice_tooltip_modes_desc" - header_info = "lesson_step_1_of_2" - animation = center - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = reactive_advice_tooltip_modes_step_2 - } - } - - reactive_advice_tooltip_modes_step_2 = { - text = "reactive_advice_tooltip_modes_2_desc" - header_info = "lesson_step_2_of_2" - animation = center - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { #Back button - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = reactive_advice_tooltip_modes_step_1 - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_perk_bonus_cap = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_perk_bonus_cap_step_1 = { - text = "reactive_advice_perk_bonus_cap_desc" - animation = center - - highlight_widget = "tutorial_highlight_lifestyle_HUD_button" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_varangian_adventure = { - chain = reactive_advice - delay = 0 - start_automatically = no - - reactive_advice_varangian_adventure_step_1 = { - text = "reactive_advice_varangian_adventure_desc" - animation = left - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_court_positions = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_court_pos_open_view = { - text = "ra_court_pos_open_view_desc" - highlight_widget = "tab_court_tutorial_uses_this" - highlight_widget = "court_positions_tab_button_tutorial_uses_this" - animation = center - header_info = "lesson_step_1_of_3" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_court_pos_appointing - trigger = { - custom_description = { - text = "ra_court_pos_open_view_trigger" - is_widget_open = court_positions_subtab_tutorial_uses_this - } - } - } - } - - ra_court_pos_appointing = { - text = "ra_court_pos_appointing_desc" - animation = center - header_info = "lesson_step_2_of_3" - highlight_widget = "position_portrait_tutorial_uses_this" - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_court_pos_salary - } - - trigger_transition = { - target = ra_court_pos_open_view - trigger = { - NOT = { is_widget_open = court_positions_subtab_tutorial_uses_this } - } - } - } - - ra_court_pos_salary = { - text = "ra_court_pos_salary_desc" - animation = center - highlight_widget = "salaries_tutorial_uses_this" - header_info = "lesson_step_3_of_3" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_court_pos_appointing - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - - trigger_transition = { - target = ra_court_pos_open_view - trigger = { - NOT = { is_widget_open = court_positions_subtab_tutorial_uses_this } - } - } - } - - -} - - -reactive_advice_artifact_inventory = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_artifact_inventory_general = { - text = ra_artifact_inventory_general_desc - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_artifact_inventory_open_step - } - - } - - ra_artifact_inventory_open_step = { - text = ra_artifact_inventory_open_step_desc - highlight_widget = "open_inventory_tutorial_uses_this" - - interface_effect = { - close_all_views = yes - } - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_artifact_inventory_general - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_artifact_inventory_welcome - trigger = { - custom_tooltip = { - text = "ra_artifact_inventory_open_step_open" - is_widget_open = inventory_view - } - } - } - - } - - ra_artifact_inventory_welcome = { - text = ra_artifact_inventory_welcome_desc - highlight_widget = "inventory_slot_tutorial_highlight_locator" - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_artifact_inventory_open_step - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - - - # Go back if view was closed - trigger_transition = { - target = ra_artifact_inventory_open_step - trigger = { - NOT = { is_widget_open = inventory_view } - } - } - - - } - -} - - -reactive_advice_station_maa = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_maa_stationing_open_card_step = { - text = ra_maa_stationing_open_card_step_desc - animation = center - highlight_widget = "tab_military" - highlight_widget = "maa_tiles" - header_info = "lesson_step_1_of_4" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_maa_stationing_click_station_button - trigger = { - custom_description = { - text = "ra_maa_stationing_open_card_step_tt" - is_widget_open = menatarms_view - } - } - } - } - - ra_maa_stationing_click_station_button = { - text = ra_maa_stationing_click_station_button_desc - animation = left - highlight_widget = "maa_no_location" - highlight_widget = "maa_current_location" - header_info = "lesson_step_2_of_4" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_maa_stationing_select_station - trigger = { - custom_description = { - text = "ra_maa_stationing_click_station_button_tt" - is_widget_open = select_men_at_arms_origin_window - } - } - } - - # Go back if view was closed - trigger_transition = { - target = ra_maa_stationing_open_card_step - trigger = { - NOT = { is_widget_open = menatarms_view } - } - } - } - - ra_maa_stationing_select_station = { - text = ra_maa_stationing_select_station_desc - animation = far_left - highlight_widget = "men_at_arms_origin_widget" - header_info = "lesson_step_3_of_4" - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_maa_stationing_finished - trigger = { - custom_description = { - text = "ra_maa_stationing_select_station_tt" - is_widget_open = military_view - } - } - } - } - - ra_maa_stationing_finished = { - text = ra_maa_stationing_finished_desc - animation = left - highlight_widget = "maa_current_location" - header_info = "lesson_step_4_of_4" - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_tours_picking_vassals = { - chain = reactive_advice - start_automatically = no - - # Player left this step :( - trigger_transition = { - target = lesson_abort - trigger = { - NOT = { - is_widget_open = "multi_destination_selection" - } - } - } - - ra_tours_picking_vassals_intro = { - text = "ra_tours_picking_vassals_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_tours_picking_vassals_add - } - - } - - ra_tours_picking_vassals_add = { - text = "ra_tours_picking_vassals_add_desc" - animation = far_bottom_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_tours_picking_vassals_intro - } - - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_tours_picking_vassals_stops - - enabled = { - custom_description = { - text = "ra_tours_picking_vassals_add_prompt" - is_widget_open = tour_has_vassals_tutorial_uses_this - } - } - } - } - - ra_tours_picking_vassals_stops = { - text = "ra_tours_picking_vassals_stops_desc" - animation = center - highlight_widget = "pickable_phases_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_tours_picking_vassals_add - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_tours_picking_vassals_conclusion - } - - #Player removed a Vassal, go back so they can add one - - trigger_transition = { - target = ra_tours_picking_vassals_add - trigger = { - NOT = { is_widget_open = tour_has_vassals_tutorial_uses_this } - } - } - } - - ra_tours_picking_vassals_conclusion = { - text = "ra_tours_picking_vassals_conclusion_desc" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_tours_picking_vassals_stops - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_regency_for_liege = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_regency_liege_intro = { - text = "ra_regency_liege_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_effects - } - } - - ra_regency_liege_effects = { - text = "ra_regency_liege_effects_desc" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_intro - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_open_UI - } - } - - ra_regency_liege_open_UI = { - text = "ra_regency_liege_open_UI_desc" - - interface_effect = { - close_all_views = yes - } - - highlight_widget = "open_diarchy_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_effects - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_open_tab - trigger = { - custom_tooltip = { - text = "ra_regency_liege_open_UI_prompt" - is_widget_open = diarchy_window - } - } - } - - } - - ra_regency_liege_open_tab = { - text = "ra_regency_liege_open_tab_desc" - - animation = far_left - - highlight_widget = your_regent_tab_tutorial_uses_this - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_open_UI - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_scales_of_power - trigger = { - custom_tooltip = { - text = "ra_regency_liege_open_tab_prompt" - is_widget_open = tutorial_tab_visible_your_regent - } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_liege_scales_of_power = { - text = "ra_regency_liege_scales_of_power_desc" - - highlight_widget = "scales_of_power_area_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_open_tab - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_mandate - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - - } - - ra_regency_liege_mandate = { - text = "ra_regency_liege_mandate_desc" - - highlight_widget = "mandates_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_scales_of_power - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_ending - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_liege_ending = { - text = "ra_regency_liege_ending_desc" - - highlight_widget = "end_diarchy_tutorial_uses_this" - - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_mandate - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_liege_conclusion - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_liege_conclusion = { - text = "ra_regency_liege_conclusion_desc" - - highlight_widget = "scales_of_power_area_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_liege_ending - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_liege_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } -} - -reactive_advice_regency_for_regent = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_regency_regent_intro = { - text = "ra_regency_regent_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_powers - } - } - - ra_regency_regent_powers = { - text = "ra_regency_regent_powers_desc" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_intro - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_open_UI - } - } - - ra_regency_regent_open_UI = { - text = "ra_regency_regent_open_UI_desc" - - interface_effect = { - close_all_views = yes - } - - highlight_widget = "open_diarchy_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_powers - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_open_tab - trigger = { - custom_tooltip = { - text = "ra_regency_regent_open_UI_prompt" - is_widget_open = diarchy_window - } - } - } - - } - - ra_regency_regent_open_tab = { - text = "ra_regency_regent_open_tab_desc" - - animation = far_left - - highlight_widget = liege_tab_tutorial_uses_this - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_open_UI - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_scales_of_power - trigger = { - custom_tooltip = { - text = "ra_regency_regent_open_tab_prompt" - is_widget_open = tutorial_tab_visible_your_liege - } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_regent_scales_of_power = { - text = "ra_regency_regent_scales_of_power_desc" - - highlight_widget = "scales_of_power_area_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_open_tab - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_mandate - } - - # Player left Liege Tab, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_liege } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - - } - - ra_regency_regent_mandate = { - text = "ra_regency_regent_mandate_desc" - - highlight_widget = "mandates_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_scales_of_power - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_ending - } - - # Player left Liege Tab, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_liege } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_regent_ending = { - text = "ra_regency_regent_ending_desc" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_mandate - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_regent_conclusion - } - - # Player left Liege Tab, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_liege } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - - } - - - ra_regency_regent_conclusion = { - text = "ra_regency_regent_conclusion_desc" - - animation = center - interface_effect = { - close_all_views = yes - } - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_regent_ending - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - - - -reactive_advice_set_future_regent = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_regency_future_regent_intro = { - text = "ra_regency_future_regent_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_open_UI - } - } - - ra_regency_future_regent_open_realm_panel = { - text = "ra_regency_future_regent_open_realm_panel_desc" - - highlight_widget = "tab_my_realm_tutorial_uses_this" - - interface_effect = { - close_all_views = yes - } - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_intro - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_open_UI - trigger = { - custom_tooltip = { - text = "ra_regency_future_regent_open_realm_panel_prompt" - is_widget_open = open_future_diarchy_tutorial_uses_this - } - } - } - - } - - ra_regency_future_regent_open_UI = { - text = "ra_regency_future_regent_open_UI_desc" - - highlight_widget = "open_future_diarchy_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_open_realm_panel - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_open_tab - trigger = { - custom_tooltip = { - text = "ra_regency_future_regent_open_UI_prompt" - is_widget_open = diarchy_window - } - } - } - - # Player closed Realm Panel, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_realm_panel - trigger = { - NOT = { is_widget_open = open_future_diarchy_tutorial_uses_this } - } - } - - } - - ra_regency_future_regent_open_tab = { - text = "ra_regency_future_regent_open_tab_desc" - - animation = far_left - - highlight_widget = your_regent_tab_tutorial_uses_this - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_open_UI - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_current_regent - trigger = { - custom_tooltip = { - text = "ra_regency_future_regent_open_tab_prompt" - is_widget_open = tutorial_tab_visible_your_regent - } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_future_regent_current_regent = { - text = "ra_regency_future_regent_current_regent_desc" - - highlight_widget = "regency_portrait_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_open_tab - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_swap_regent - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_future_regent_swap_regent = { - text = "ra_regency_future_regent_swap_regent_desc" - - highlight_widget = "view_available_diarchs_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_current_regent - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_succession - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_future_regent_succession = { - text = "ra_regency_future_regent_succession_desc" - - highlight_widget = "regent_succession_tutorial_uses_this" - - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_swap_regent - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_regency_future_regent_conclusion - } - - # Player left Regent Tab, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_tab - trigger = { - NOT = { is_widget_open = tutorial_tab_visible_your_regent } - } - } - - # Player closed Regency Window, they have to reopen - trigger_transition = { - target = ra_regency_future_regent_open_UI - trigger = { - NOT = { is_widget_open = diarchy_window } - } - } - } - - ra_regency_future_regent_conclusion = { - text = "ra_regency_future_regent_conclusion_desc" - - animation = far_left - - highlight_widget = "view_available_diarchs_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_regency_future_regent_succession - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_travel_planning = { - chain = reactive_advice - start_automatically = no - - # Player closed Travel Window, they have to reopen - trigger_transition = { - target = lesson_abort - trigger = { - NOT = { - OR = { - is_widget_open = activity_planner - is_widget_open = travel_planner_window - } - } - } - } - - ra_travel_planning_intro = { - text = "ra_travel_planning_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_entourage - } - } - - ra_travel_planning_entourage = { - text = "ra_travel_planning_entourage_desc" - animation = top_left - - highlight_widget = "entourage_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_intro - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_speed_safety - } - } - - ra_travel_planning_speed_safety = { - text = "ra_travel_planning_speed_safety_desc" - animation = top_left - - highlight_widget = "speed_safety_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_entourage - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_caravan_master - } - } - - ra_travel_planning_caravan_master = { - text = "ra_travel_planning_caravan_master_desc" - animation = top_left - - highlight_widget = "caravan_master_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_speed_safety - } - - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_travel_options - } - } - - ra_travel_planning_travel_options = { - text = "ra_travel_planning_travel_options_desc" - animation = top_left - - highlight_widget = "travel_options_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_caravan_master - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_custom_route - } - } - - ra_travel_planning_custom_route = { - text = "ra_travel_planning_custom_route_desc" - animation = top_left - - highlight_widget = "edit_route_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_travel_options - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_travel_planning_conclusion - } - } - - ra_travel_planning_conclusion = { - text = "ra_travel_planning_conclusion_desc" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_travel_planning_custom_route - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } - -} - - -reactive_advice_create_accolade = { - chain = reactive_advice - start_automatically = no - - - ra_create_accolade_knights_panel = { - text = "ra_create_accolade_knights_panel_desc" - animation = left - - highlight_widget = available_accolade_tutorial_uses_this - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_create_accolade_candidates - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_create_accolade_candidates - trigger = { - custom_tooltip = { - text = "ra_create_accolade_knights_panel_prompt" - is_widget_open = create_accolade_tutorial_uses_this - } - } - } - - } - - ra_create_accolade_candidates = { - text = "ra_create_accolade_candidates_desc" - animation = left - - highlight_widget = accolade_candidate_list_tutorial_uses_this - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_create_accolade_knights_panel - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_create_accolade_attributes - trigger = { - custom_tooltip = { - text = "ra_create_accolade_candidates_prompt" - is_widget_open = candidate_attributes_tutorial_uses_this - } - } - } - - # Player left creation, have to reopen - trigger_transition = { - target = ra_create_accolade_knights_panel - trigger = { - NOT = { is_widget_open = create_accolade_tutorial_uses_this } - } - } - } - - ra_create_accolade_attributes = { - text = "ra_create_accolade_attributes_desc" - animation = left - - highlight_widget = candidate_attributes_tutorial_uses_this - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_create_accolade_candidates - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_create_accolade_conclusion - } - - # Player left creation, have to reopen - trigger_transition = { - target = ra_create_accolade_knights_panel - trigger = { - NOT = { is_widget_open = create_accolade_tutorial_uses_this } - } - } - - # Player left candidate preview, have to reopen - trigger_transition = { - target = ra_create_accolade_candidates - trigger = { - NOT = { is_widget_open = candidate_attributes_tutorial_uses_this } - } - } - } - - ra_create_accolade_conclusion = { - text = "ra_create_accolade_conclusion_desc" - animation = left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_create_accolade_attributes - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - - # Player left creation, have to reopen - trigger_transition = { - target = ra_create_accolade_knights_panel - trigger = { - NOT = { is_widget_open = create_accolade_tutorial_uses_this } - } - } - - # Player left candidate preview, have to reopen - trigger_transition = { - target = ra_create_accolade_candidates - trigger = { - NOT = { is_widget_open = candidate_attributes_tutorial_uses_this } - } - } - } -} \ No newline at end of file diff --git a/common/tutorial_lessons/01_ep1_tutorial_lessons_reactive.txt b/common/tutorial_lessons/01_ep1_tutorial_lessons_reactive.txt deleted file mode 100644 index f2a2143bf1..0000000000 --- a/common/tutorial_lessons/01_ep1_tutorial_lessons_reactive.txt +++ /dev/null @@ -1,540 +0,0 @@ -reactive_advice_form_hybrid_culture = { - chain = reactive_advice - delay = 0 - start_automatically = no - highlight_widget = hybridize_tutorial_uses_this - - lessons_ep1_form_hybrid_culture = { - text = "lessons_ep1_form_hybrid_culture_desc" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - -reactive_advice_should_form_hybrid_culture = { - chain = reactive_advice - delay = 0 - start_automatically = no - - lessons_ep1_form_hybrid_culture = { - text = "lessons_ep1_should_form_hybrid_culture_desc" - header_info = "lesson_step_1_of_2" - animation = center - highlight_widget = hybridize_tutorial_uses_this - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_ep1_hybrid_culture_benefits - } - } - - lessons_ep1_hybrid_culture_benefits = { - text = "lessons_ep1_hybrid_culture_benefits_desc" - header_info = "lesson_step_2_of_2" - animation = center - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { #Back button - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_ep1_form_hybrid_culture - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} - - -reactive_advice_royal_court = { - delay = 0 - chain = reactive_advice - start_automatically = no - - ra_rc_intro = { - text = "ra_rc_intro_desc" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_open - } - } - - ra_rc_open = { - text = "ra_rc_open_desc" - highlight_widget = "royal_court_button_tutorial_uses_this" - animation = center - - interface_effect = { - close_all_views = yes - } - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_intro - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_throne_room - trigger = { - custom_tooltip = { - text = "ra_rc_open_prompt" - is_widget_open = "royal_court_window_tutorial_uses_this" - } - } - } - } - - ### This step is normally skipped since you enter into this tab, but if you leave it we need to get you back on track - - ra_rc_throne_room_open = { - text = "ra_rc_throne_room_open_desc" - - highlight_widget = "tab_throne_tutorial_uses_this" - animation = left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_open - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_throne_room - trigger = { - custom_tooltip = { - text = "ra_rc_throne_room_open_prompt" - is_widget_open = "throne_room_tab_tutorial_uses_this" - } - } - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - } - - - - ra_rc_throne_room = { - text = "ra_rc_throne_room_desc" - animation = right - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_open - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_hold_court - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_throne_room_open - trigger = { - NOT = { is_widget_open = throne_room_tab_tutorial_uses_this } - } - } - - } - - ra_rc_hold_court = { - text = "ra_rc_hold_court_desc" - animation = center - - highlight_widget = "button_hold_court_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_throne_room - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_grandeur_open - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_throne_room_open - trigger = { - NOT = { is_widget_open = throne_room_tab_tutorial_uses_this } - } - } - - } - - ra_rc_grandeur_open = { - text = "ra_rc_grandeur_open_desc" - animation = left - - highlight_widget = "tab_grandeur_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_throne_room - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_grandeur - trigger = { - custom_tooltip = { - text = "ra_rc_grandeur_open_prompt" - is_widget_open = royal_court_grandeur_view_tutorial_uses_this - } - } - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - } - - - ra_rc_grandeur = { - text = "ra_rc_grandeur_desc" - animation = top_right - - highlight_widget = "grandeur_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_grandeur_open - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_amenities - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_grandeur_open - trigger = { - NOT = { is_widget_open = royal_court_grandeur_view_tutorial_uses_this } - } - } - - } - - ra_rc_amenities = { - text = "ra_rc_amenities_desc" - animation = center - - highlight_widget = "amenities_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_grandeur - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_court_types_and_language - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_grandeur_open - trigger = { - NOT = { is_widget_open = royal_court_grandeur_view_tutorial_uses_this } - } - } - - } - - ra_rc_court_types_and_language = { - text = "ra_rc_court_types_and_language_desc" - animation = left - - highlight_widget = "type_and_language_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_amenities - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_artifacts_open - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_grandeur_open - trigger = { - NOT = { is_widget_open = royal_court_grandeur_view_tutorial_uses_this } - } - } - - } - - ra_rc_artifacts_open = { - text = "ra_rc_artifacts_open_desc" - animation = left - - highlight_widget = "tab_artifact_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_grandeur - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_artifacts - trigger = { - custom_tooltip = { - text = "ra_rc_artifacts_open_prompt" - is_widget_open = "court_artifact_tab_open_tutorial_uses_this" - } - } - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - } - - ra_rc_artifacts = { - text = "ra_rc_artifacts_desc" - animation = right - - highlight_widget = "tab_throne_tutorial_uses_this" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_artifacts_open - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_rc_conclusion - trigger = { - custom_tooltip = { - text = "ra_rc_throne_room_open_prompt" - is_widget_open = "throne_room_tab_tutorial_uses_this" - } - } - } - - # Player closed Court Window, they have to reopen - trigger_transition = { - target = ra_rc_open - trigger = { - NOT = { is_widget_open = royal_court_window_tutorial_uses_this } - } - } - - # Player left the tab, please reopen - trigger_transition = { - target = ra_rc_artifacts_open - trigger = { - NOT = { is_widget_open = court_artifact_tab_open_tutorial_uses_this } - } - } - - - } - - - ra_rc_conclusion = { - text = "ra_rc_conclusion_desc" - animation = right - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_rc_artifacts - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } - -} - -reactive_advice_fund_inspiration = { - chain = reactive_advice - delay = 0 - start_automatically = no - - ra_inspiration_open = { - text = "ra_inspiration_open_desc" - animation = center - header_info = "lesson_step_1_of_3" - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_inspiration_court_view - } - } - - ra_inspiration_court_view = { - text = "ra_inspiration_court_view_desc" - highlight_widget = inspirations_tutorial_uses_this - animation = center - header_info = "lesson_step_2_of_3" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_inspiration_open - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = ra_inspiration_funding - trigger = { - custom_tooltip = { - text = "ra_inspiration_court_view_prompt" - is_widget_open = "sponsor_inspiration_tutorial_uses_this" - } - } - } - } - - ra_inspiration_funding = { - text = "ra_inspiration_funding_desc" - animation = center - header_info = "lesson_step_3_of_3" - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = ra_inspiration_court_view - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } -} diff --git a/common/tutorial_lessons/03_fp2_tutorial_lessons_reactive.txt b/common/tutorial_lessons/03_fp2_tutorial_lessons_reactive.txt deleted file mode 100644 index 5554df6f5e..0000000000 --- a/common/tutorial_lessons/03_fp2_tutorial_lessons_reactive.txt +++ /dev/null @@ -1,218 +0,0 @@ -reactive_advice_struggle_introduction = { - chain = reactive_advice - delay = 0 - start_automatically = no - - lessons_struggle_introduction = { - text = "lessons_struggle_introduction_desc" - header_info = "lesson_step_1_of_10" - animation = center - - gui_transition = { - button_id = "skip" - button_text = "tutorial_lesson_button_skip" - target = lesson_finish - } - - gui_transition = { - button_id = "read_later" - button_text = "tutorial_lesson_button_read_later" - target = lesson_abort - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_region_open - } - } - - lessons_struggle_region_open = { - text = "lessons_struggle_region_open_desc" - highlight_widget = "struggle_banner_tutorial_uses_this" - header_info = "lesson_step_2_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_struggle_introduction - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_view_open - } - } - - lessons_struggle_view_open = { - text = "lessons_struggle_view_open_desc" - highlight_widget = "struggle_banner_tutorial_uses_this" - header_info = "lesson_step_3_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_struggle_introduction - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_view - trigger = { - custom_tooltip = { - text = "lessons_struggle_view_open_prompt" - is_widget_open = "struggle_involvement_button_tutorial_uses_this" - } - } - } - } - - lessons_struggle_view = { - text = "lessons_struggle_view_desc" - header_info = "lesson_step_4_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_struggle_region_open - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_current_phases_and_effects - } - } - - lessons_struggle_current_phases_and_effects = { - text = "lessons_struggle_current_phases_and_effects_desc" - highlight_widget = "current_phase_effects" - header_info = "lesson_step_5_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_struggle_view - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_next_struggle_phases - } - } - - lessons_next_struggle_phases = { - text = "lessons_next_struggle_phases_desc" - highlight_widget = "next_phase_area_tutorial_uses_this" - header_info = "lesson_step_6_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_struggle_current_phases_and_effects - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_ending_struggle_open - } - } - - lessons_ending_struggle_open = { - text = "lessons_ending_struggle_open_desc" - highlight_widget = "ending_decision_button_tutorial_uses_this" - header_info = "lesson_step_7_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_next_struggle_phases - } - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_ending_struggle - trigger = { - custom_tooltip = { - text = "lessons_ending_struggle_open_prompt" - is_widget_open = "ending_decision_area_tutorial_uses_this" - } - } - } - } - - lessons_ending_struggle = { - text = "lessons_ending_struggle_desc" - header_info = "lesson_step_8_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_next_struggle_phases - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_involvement_view_open - } - } - - lessons_struggle_involvement_view_open = { - text = "lessons_struggle_involvement_view_open_desc" - highlight_widget = "struggle_involvement_button_tutorial_uses_this" - header_info = "lesson_step_9_of_10" - animation = center - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_ending_struggle - } - - - trigger_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_next" - target = lessons_struggle_involvement_view - trigger = { - custom_tooltip = { - text = "lessons_struggle_involvement_view_open_prompt" - is_widget_open = "struggle_involvement_window" - } - } - } - } - - lessons_struggle_involvement_view = { - text = "lessons_struggle_involvement_view_desc" - highlight_widget = "struggle_involvement_button_tutorial_uses_this" - header_info = "lesson_step_10_of_10" - animation = far_left - - gui_transition = { - button_id = "back" - button_text = "tutorial_lesson_button_back" - target = lessons_ending_struggle - } - - gui_transition = { - button_id = "next" - button_text = "tutorial_lesson_button_complete" - target = lesson_finish - } - } - -} diff --git a/common/vassal_contracts/_vassal_contracts.info b/common/vassal_contracts/_vassal_contracts.info deleted file mode 100644 index 314e74fa32..0000000000 --- a/common/vassal_contracts/_vassal_contracts.info +++ /dev/null @@ -1,69 +0,0 @@ -# Vassal obligations - how much does the vassal give to their liege. The vassal's government type determines which contract type is used. -# Note that the values can be changed with the vassal_tax_contribution_add and vassal_levy_contribution_add modifiers. - -vassal_contract = { - uses_opinion_of_liege = yes/no # if set to yes, scope:opinion_of_liege can be used in the levies and tax script math (it's a value that's updated daily for player contracts, for AI it uses NVassalContract::OPINION_OF_LIEGE_UPDATE_INTERVAL. No by default for performance reasons. - - - display_mode = tree/list/radiobutton # How are the obligations displayed in the negotiate contract UI, defualt is radiobutton - - # Or: Modifiable contract with multiple levels: - obligation_levels = { - vassal_obligation_low = { # choose a key for the level, it will be used for localization - levies = 0.5 # % of levies (0..1), default 0; can also use script math (scope:liege and scope:vassal are defined, scope:opinion_of_liege is defined if uses_opinion_of_liege = yes) - tax = 0.2 # % of gold income (0..1), default 0; can also use script math (scope:liege and scope:vassal are defined, scope:opinion_of_liege is defined if uses_opinion_of_liege = yes) - min_levies = 0.1 # optional min cap on tax, can alsu use script math as levies and tax - min_tax = 0.0 # optional min cap on levies, can alsu use script math as levies and tax - - contribution_desc = { ... } # optional dynamic description used for the breakdown of the tax & levies contribution (scope:liege and scope:vassal are defined) - - tax_contribution_postfix = "..." # Optional postfix added to the tax contribution breakdown - levies_contribution_postfix = "..." # Optional postfix added to the levies contribution breakdown - - unclamped_contribution_label = "..." # Breakdown label for the unclamped tax/levies contribution - min_contribution_label = "..." # Breakdown label for the minimum tax/levies contribution the value is clamped to - - vassal_opinion = 0 # value for opinion of liege that's added to vassal's opinion of the liege if they have this contract - - flag = token # Arbitrary flag, can be checked in script to see if any obligation level in the current vassal contract has a flag - - score = int # Positive means it is better for the vassal to have, 0 means neutral, negative is better for liege - # When changing obligations the current score and new score are compared to see if it is in favour of the vassal or liege - # and by how much. - # Defaults to order the contracts are defined - - ai_liege_desire =