From d758b987c9ca2083d5b06623dc956ffdbf05f4ab Mon Sep 17 00:00:00 2001 From: Fishedotjpg Date: Thu, 3 Dec 2026 19:01:47 +0000 Subject: [PATCH] ALL THE WAY TO DECISIONS DONE --- .../buildings/00_duchy_capital_buildings.txt | 160 +- .../00_military_district_buildings.txt | 117 +- .../buildings/regular_primary_buildings.txt | 476 +- .../alum_district_buildings.txt | 10 +- .../amber_district_buildings.txt | 13 +- .../cattle_district_buildings.txt | 67 +- .../ceramics_district_buildings.txt | 36 +- .../copper_district_buildings.txt | 30 +- .../cotton_district_buildings.txt | 206 +- .../dyes_district_buildings.txt | 30 +- .../fish_district_buildings.txt | 46 +- .../flax_district_buildings.txt | 159 +- .../fruit_district_buildings.txt | 41 +- .../furs_district_buildings.txt | 285 +- .../grain_district_buildings.txt | 36 +- .../hemp_district_buildings.txt | 162 +- .../honey_district_buildings.txt | 53 +- .../horse_district_buildings.txt | 40 +- .../incense_district_buildings.txt | 25 +- .../iron_district_buildings.txt | 289 +- .../ivory_district_buildings.txt | 28 +- .../medicaments_district_buildings.txt | 41 +- .../millet_district_buildings.txt | 29 +- .../mine_district_buildings.txt | 10 +- .../oil_district_buildings.txt | 36 +- .../rice_district_buildings.txt | 227 +- .../salt_district_buildings.txt | 27 +- .../shared_resource_district_buildings.txt | 1549 ++++- .../silk_district_buildings.txt | 294 +- .../spices_district_buildings.txt | 23 +- .../stone_district_buildings.txt | 28 +- .../sugar_district_buildings.txt | 20 +- .../tea_district_buildings.txt | 15 +- .../wine_district_buildings.txt | 259 +- .../wood_district_buildings.txt | 49 +- .../wool_district_buildings.txt | 171 +- common/casus_belli_types/00_claim.txt | 21 + .../casus_belli_types/10_tgp_japan_wars.txt | 2 +- .../00_artifact_interactions.txt | 22 +- .../00_character_interactions.txt | 70 +- .../00_diarch_interactions.txt | 138 +- .../00_dynast_interactions.txt | 412 +- .../00_fp3_interactions.txt | 5093 ++++++++--------- common/character_interactions/00_gift.txt | 397 +- .../00_prison_interactions.txt | 1737 +++--- .../00_puppet_interactions.txt | 146 +- .../00_religious_interactions.txt | 328 +- .../06_ep3_interactions.txt | 3 + .../06_ep3_laamp_interactions.txt | 7 +- .../pam_interactions.txt | 1725 +++--- .../00_council_positions.txt | 82 +- .../council_tasks/00_court_chaplain_tasks.txt | 9 + common/council_tasks/00_spymaster_tasks.txt | 30 - common/council_tasks/00_steward_tasks.txt | 6 +- common/council_tasks/01_ministry_tasks.txt | 5 + common/council_tasks/_council_tasks.info | 6 +- common/culture/cultures/00_bantu.txt | 12 +- common/culture/cultures/00_berber.txt | 15 + .../culture/cultures/00_central_african.txt | 12 +- common/culture/cultures/00_sahelian.txt | 21 +- common/culture/cultures/00_sahelian_ibl.txt | 12 +- common/culture/cultures/00_senegambian.txt | 9 +- common/culture/cultures/00_somalian.txt | 7 +- common/culture/cultures/00_west_african.txt | 18 +- common/culture/eras/_culture_eras.info | 1 + .../innovations/00_tribal_innovations.txt | 24 + .../culture/innovations/tgp_innovations.txt | 2 + common/culture/name_equivalency/_info.info | 3 +- common/culture/name_lists/00_east_slavic.txt | 161 +- common/culture/name_lists/00_frankish.txt | 381 +- common/culture/name_lists/00_goidelic.txt | 4 +- common/culture/name_lists/00_iberian.txt | 4 +- common/culture/name_lists/00_israelite.txt | 42 + common/culture/name_lists/00_latin.txt | 4 +- common/culture/name_lists/_name_lists.info | 13 + .../culture/traditions/00_maa_traditions.txt | 28 + .../traditions/00_realm_traditions.txt | 177 +- .../traditions/00_societal_traditions.txt | 14 + common/culture/traditions/_traditions.info | 63 +- .../00_government_custom_loc.txt | 6 + common/decisions/00_diarchy_decisions.txt | 1 + common/decisions/00_lifestyle_decisions.txt | 17 +- common/decisions/00_unity_decisions.txt | 16 +- common/decisions/06_ce1_decisions.txt | 16 +- common/decisions/10_ach_oath_decisions.txt | 52 +- .../10_culture_conversion_decisions.txt | 15 +- .../10_nomad_culture_and_faith_decisions.txt | 53 +- common/decisions/10_nomad_other_decisions.txt | 4 +- common/decisions/10_religious_decisions.txt | 1707 +++--- common/decisions/30_activity_decisions.txt | 4 + common/decisions/30_court_decisions.txt | 1 + common/decisions/40_japan_decisions.txt | 7 + common/decisions/80_major_decisions.txt | 304 +- .../80_major_decisions_central_asia.txt | 1078 ++-- .../80_major_decisions_east_asia.txt | 1365 ++--- .../80_major_decisions_middle_east.txt | 2001 +++---- .../80_major_decisions_middle_europe.txt | 3312 ++++++----- common/decisions/80_major_decisions_roman.txt | 3017 +++++----- .../80_major_decisions_south_asia.txt | 1396 ++--- .../bp3/00_bp3_other_decisions.txt | 1 + .../ce_1/ce1_legendary_decisions.txt | 2 + .../decisions/dlc_decisions/ep3_decisions.txt | 278 +- .../decisions/dlc_decisions/fp3_decisions.txt | 13 +- .../fp_3/fp3_dynasty_decisions.txt | 1 + .../gdp/gdp_hanseatic_decisions.txt | 200 +- .../gdp/gdp_republic_decisions.txt | 22 +- .../dlc_decisions/tgp/tgp_china_decisions.txt | 108 +- .../tgp/tgp_dynastic_cycle_decisions.txt | 5 +- .../tgp/tgp_east_asia_decisions.txt | 5 +- .../dlc_decisions/tgp/tgp_japan_decisions.txt | 3781 ++++++------ .../tgp/tgp_steppe_decisions.txt | 13 + common/decisions/test_decision.txt | 6 +- 112 files changed, 20676 insertions(+), 14484 deletions(-) diff --git a/common/buildings/00_duchy_capital_buildings.txt b/common/buildings/00_duchy_capital_buildings.txt index b75aeb22f..b4b3d0eed 100644 --- a/common/buildings/00_duchy_capital_buildings.txt +++ b/common/buildings/00_duchy_capital_buildings.txt @@ -13,7 +13,7 @@ ################### dragon_kiln_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = { desc = unlocks_building_desc desc = dragon_kiln_effect_desc @@ -60,7 +60,7 @@ dragon_kiln_01 = { } dragon_kiln_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months effect_desc = { desc = unlocks_building_desc desc = dragon_kiln_effect_desc @@ -109,7 +109,7 @@ dragon_kiln_02 = { } dragon_kiln_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = { desc = unlocks_building_desc desc = dragon_kiln_effect_desc @@ -158,7 +158,7 @@ dragon_kiln_03 = { } dragon_kiln_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = { desc = unlocks_building_desc desc = dragon_kiln_effect_desc @@ -207,7 +207,7 @@ dragon_kiln_04 = { } dragon_kiln_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = { desc = unlocks_building_desc desc = dragon_kiln_effect_desc @@ -259,7 +259,7 @@ dragon_kiln_05 = { ##################### examination_hall_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = examination_hall_effects_desc can_construct_potential = { @@ -318,7 +318,7 @@ examination_hall_01 = { } examination_hall_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = examination_hall_effects_desc @@ -368,7 +368,7 @@ examination_hall_02 = { } examination_hall_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = examination_hall_effects_desc district_level_requirement = 3 @@ -418,7 +418,7 @@ examination_hall_03 = { } examination_hall_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = examination_hall_effects_desc district_level_requirement = 4 @@ -468,7 +468,7 @@ examination_hall_04 = { } examination_hall_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = examination_hall_effects_desc district_level_requirement = 4 @@ -521,7 +521,7 @@ examination_hall_05 = { ################## tower_of_silence_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months can_construct_potential = { building_requirement_tribal = no @@ -594,7 +594,7 @@ tower_of_silence_01 = { ################### charnel_grounds_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months can_construct_potential = { building_requirement_castle_city_church = { LEVEL = 01 } @@ -649,7 +649,7 @@ charnel_grounds_01 = { } charnel_grounds_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 can_construct_potential = { @@ -703,7 +703,7 @@ charnel_grounds_02 = { } charnel_grounds_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year district_level_requirement = 3 can_construct_potential = { @@ -757,7 +757,7 @@ charnel_grounds_03 = { } charnel_grounds_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years district_level_requirement = 4 can_construct_potential = { @@ -811,7 +811,7 @@ charnel_grounds_04 = { } charnel_grounds_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years district_level_requirement = 4 can_construct_potential = { @@ -868,7 +868,7 @@ charnel_grounds_05 = { ############### burial_site_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months can_construct_potential = { building_requirement_castle_city_church = { LEVEL = 01 } @@ -919,7 +919,7 @@ burial_site_01 = { } burial_site_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 can_construct_potential = { @@ -969,7 +969,7 @@ burial_site_02 = { } burial_site_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year district_level_requirement = 3 can_construct_potential = { @@ -1019,7 +1019,7 @@ burial_site_03 = { } burial_site_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years district_level_requirement = 4 can_construct_potential = { @@ -1069,7 +1069,7 @@ burial_site_04 = { } burial_site_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years district_level_requirement = 4 can_construct_potential = { @@ -1122,7 +1122,7 @@ burial_site_05 = { ################# royal_garden_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = royal_garden_effect_desc can_construct_potential = { @@ -1171,7 +1171,7 @@ royal_garden_01 = { } royal_garden_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = royal_garden_effect_desc @@ -1219,7 +1219,7 @@ royal_garden_02 = { } royal_garden_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = royal_garden_effect_desc district_level_requirement = 3 @@ -1267,7 +1267,7 @@ royal_garden_03 = { } royal_garden_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = royal_garden_effect_desc district_level_requirement = 4 @@ -1315,7 +1315,7 @@ royal_garden_04 = { } royal_garden_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = royal_garden_effect_desc district_level_requirement = 4 @@ -1366,7 +1366,7 @@ royal_garden_05 = { ################### leisure_palace_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = leisure_palace_effect_desc triggered_name = { trigger = { culture = { has_cultural_pillar = heritage_frankish } } @@ -1420,7 +1420,7 @@ leisure_palace_01 = { } leisure_palace_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = leisure_palace_effect_desc triggered_name = { @@ -1459,7 +1459,7 @@ leisure_palace_02 = { } leisure_palace_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = leisure_palace_effect_desc triggered_name = { trigger = { culture = { has_cultural_pillar = heritage_frankish } } @@ -1498,7 +1498,7 @@ leisure_palace_03 = { } leisure_palace_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = leisure_palace_effect_desc triggered_name = { trigger = { culture = { has_cultural_pillar = heritage_frankish } } @@ -1537,7 +1537,7 @@ leisure_palace_04 = { } leisure_palace_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = leisure_palace_effect_desc triggered_name = { trigger = { culture = { has_cultural_pillar = heritage_frankish } } @@ -1579,7 +1579,7 @@ leisure_palace_05 = { ################ royal_forest_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = royal_reserves_desc can_construct_potential = { @@ -1618,7 +1618,7 @@ royal_forest_01 = { } royal_forest_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = royal_reserves_desc @@ -1656,7 +1656,7 @@ royal_forest_02 = { } royal_forest_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = royal_reserves_desc district_level_requirement = 3 @@ -1694,7 +1694,7 @@ royal_forest_03 = { } royal_forest_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = royal_reserves_desc district_level_requirement = 4 @@ -1732,7 +1732,7 @@ royal_forest_04 = { } royal_forest_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = royal_reserves_desc district_level_requirement = 4 @@ -1773,7 +1773,7 @@ royal_forest_05 = { ################### reception_rooms_1 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months can_construct_potential = { building_requirement_castle_city_church = { LEVEL = 01 } @@ -1834,7 +1834,7 @@ reception_rooms_1 = { } reception_rooms_2 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 can_construct_potential = { @@ -1900,7 +1900,7 @@ reception_rooms_2 = { } reception_rooms_3 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year district_level_requirement = 3 can_construct_potential = { @@ -1966,7 +1966,7 @@ reception_rooms_3 = { } reception_rooms_4 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years district_level_requirement = 4 can_construct_potential = { @@ -2032,7 +2032,7 @@ reception_rooms_4 = { } reception_rooms_5 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years district_level_requirement = 4 can_construct_potential = { @@ -2204,6 +2204,8 @@ military_duchy_building_01 = { ai_value = { base = 10 directive_to_fortify_modifier = yes + ai_military_context_modifier = yes + ai_duchy_military_modifier = yes ai_capital_preference_modifier = yes ai_duchy_new_district_modifier = yes } @@ -2246,6 +2248,8 @@ military_duchy_building_02 = { ai_value = { base = 10 directive_to_fortify_modifier = yes + ai_military_context_modifier = yes + ai_duchy_military_modifier = yes ai_capital_preference_modifier = yes ai_duchy_district_upgrade_modifier = { LEVEL = 2 } } @@ -2288,6 +2292,8 @@ military_duchy_building_03 = { ai_value = { base = 10 directive_to_fortify_modifier = yes + ai_military_context_modifier = yes + ai_duchy_military_modifier = yes ai_capital_preference_modifier = yes ai_duchy_district_upgrade_modifier = { LEVEL = 3 } } @@ -2329,6 +2335,8 @@ military_duchy_building_04 = { ai_value = { base = 10 directive_to_fortify_modifier = yes + ai_military_context_modifier = yes + ai_duchy_military_modifier = yes ai_capital_preference_modifier = yes ai_duchy_district_upgrade_modifier = { LEVEL = 4 } } @@ -2339,7 +2347,7 @@ military_duchy_building_04 = { ################### archery_ranges_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -2409,7 +2417,7 @@ archery_ranges_01 = { } archery_ranges_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = { triggered_desc = { @@ -2478,7 +2486,7 @@ archery_ranges_02 = { } archery_ranges_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -2547,7 +2555,7 @@ archery_ranges_03 = { } archery_ranges_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -2616,7 +2624,7 @@ archery_ranges_04 = { } archery_ranges_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -2688,7 +2696,7 @@ archery_ranges_05 = { ################## blacksmiths_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = { desc = unlocks_building_desc triggered_desc = { @@ -2773,7 +2781,7 @@ blacksmiths_01 = { } blacksmiths_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = { desc = unlocks_building_desc @@ -2859,7 +2867,7 @@ blacksmiths_02 = { } blacksmiths_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = { desc = unlocks_building_desc triggered_desc = { @@ -2945,7 +2953,7 @@ blacksmiths_03 = { } blacksmiths_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = { desc = unlocks_building_desc triggered_desc = { @@ -3031,7 +3039,7 @@ blacksmiths_04 = { } blacksmiths_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = { desc = unlocks_building_desc triggered_desc = { @@ -3120,7 +3128,7 @@ blacksmiths_05 = { ################### jousting_lists_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -3202,7 +3210,7 @@ jousting_lists_01 = { } jousting_lists_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = { triggered_desc = { @@ -3283,7 +3291,7 @@ jousting_lists_02 = { } jousting_lists_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -3364,7 +3372,7 @@ jousting_lists_03 = { } jousting_lists_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -3445,7 +3453,7 @@ jousting_lists_04 = { } jousting_lists_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -3529,7 +3537,7 @@ jousting_lists_05 = { ########### march_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = marches_effect_desc can_construct_potential = { @@ -3573,7 +3581,7 @@ march_01 = { } march_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = marches_effect_desc @@ -3616,7 +3624,7 @@ march_02 = { } march_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = marches_effect_2_desc district_level_requirement = 3 @@ -3659,7 +3667,7 @@ march_03 = { } march_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = marches_effect_2_desc district_level_requirement = 4 @@ -3702,7 +3710,7 @@ march_04 = { } march_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = marches_effect_2_desc district_level_requirement = 4 @@ -3748,7 +3756,7 @@ march_05 = { ###################### military_academy_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = academies_effect_desc can_construct_potential = { @@ -3788,7 +3796,7 @@ military_academy_01 = { } military_academy_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = academies_effect_desc @@ -3827,7 +3835,7 @@ military_academy_02 = { } military_academy_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = academies_effect_desc district_level_requirement = 3 @@ -3866,7 +3874,7 @@ military_academy_03 = { } military_academy_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = academies_effect_desc district_level_requirement = 4 @@ -3905,7 +3913,7 @@ military_academy_04 = { } military_academy_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = academies_effect_desc district_level_requirement = 4 @@ -3947,7 +3955,7 @@ military_academy_05 = { ################## royal_armory_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -4001,7 +4009,7 @@ royal_armory_01 = { } royal_armory_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 effect_desc = { triggered_desc = { @@ -4054,7 +4062,7 @@ royal_armory_02 = { } royal_armory_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -4107,7 +4115,7 @@ royal_armory_03 = { } royal_armory_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -4160,7 +4168,7 @@ royal_armory_04 = { } royal_armory_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years effect_desc = { triggered_desc = { trigger = { has_dlc_feature = tours_and_tournaments } @@ -4216,7 +4224,7 @@ royal_armory_05 = { ############### siege_works_01 = { - construction_time = slow_construction_time + construction_time = construction_time_6_months can_construct_potential = { building_requirement_castle_city_church = { LEVEL = 01 } @@ -4256,7 +4264,7 @@ siege_works_01 = { } siege_works_02 = { - construction_time = slow_construction_time + construction_time = construction_time_9_months district_level_requirement = 2 can_construct_potential = { @@ -4295,7 +4303,7 @@ siege_works_02 = { } siege_works_03 = { - construction_time = slow_construction_time + construction_time = construction_time_1_year district_level_requirement = 3 can_construct_potential = { @@ -4334,7 +4342,7 @@ siege_works_03 = { } siege_works_04 = { - construction_time = slow_construction_time + construction_time = construction_time_3_years district_level_requirement = 4 can_construct_potential = { @@ -4373,7 +4381,7 @@ siege_works_04 = { } siege_works_05 = { - construction_time = slow_construction_time + construction_time = construction_time_5_years district_level_requirement = 4 can_construct_potential = { diff --git a/common/buildings/regular_district_buildings/00_military_district_buildings.txt b/common/buildings/regular_district_buildings/00_military_district_buildings.txt index 9d9d65f86..584a571eb 100644 --- a/common/buildings/regular_district_buildings/00_military_district_buildings.txt +++ b/common/buildings/regular_district_buildings/00_military_district_buildings.txt @@ -109,6 +109,7 @@ mustering_grounds_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -169,6 +170,7 @@ mustering_grounds_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -229,6 +231,7 @@ mustering_grounds_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -289,6 +292,7 @@ mustering_grounds_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -348,6 +352,7 @@ mustering_grounds_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -408,6 +413,7 @@ militia_camps_1 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -472,6 +478,7 @@ militia_camps_2 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -537,6 +544,7 @@ militia_camps_3 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -602,6 +610,7 @@ militia_camps_4 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -666,6 +675,7 @@ militia_camps_5 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_skirmisher_modifier = yes ai_general_building_modifier = yes @@ -745,6 +755,7 @@ archery_ranges_1 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_archer_modifier = yes ai_general_building_modifier = yes @@ -832,6 +843,7 @@ archery_ranges_2 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_archer_modifier = yes ai_general_building_modifier = yes @@ -924,6 +936,7 @@ archery_ranges_3 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_archer_modifier = yes ai_general_building_modifier = yes @@ -1016,6 +1029,7 @@ archery_ranges_4 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_archer_modifier = yes ai_general_building_modifier = yes @@ -1107,6 +1121,7 @@ archery_ranges_5 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 1 } ai_military_context_modifier = yes ai_archer_modifier = yes ai_general_building_modifier = yes @@ -1188,6 +1203,7 @@ cavalry_stables_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_light_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1277,6 +1293,7 @@ cavalry_stables_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_light_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1368,6 +1385,7 @@ cavalry_stables_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_light_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1459,6 +1477,7 @@ cavalry_stables_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_light_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1549,6 +1568,7 @@ cavalry_stables_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_light_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1641,6 +1661,7 @@ horse_archer_paddocks_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_archer_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1740,6 +1761,7 @@ horse_archer_paddocks_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_archer_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1840,6 +1862,7 @@ horse_archer_paddocks_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_archer_cavalry_modifier = yes ai_general_building_modifier = yes @@ -1940,6 +1963,7 @@ horse_archer_paddocks_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_archer_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2039,6 +2063,7 @@ horse_archer_paddocks_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 1 } ai_military_context_modifier = yes ai_archer_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2106,6 +2131,8 @@ armorer_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_infantry_modifier = yes ai_general_building_modifier = yes @@ -2175,6 +2202,8 @@ armorer_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_infantry_modifier = yes ai_general_building_modifier = yes @@ -2245,6 +2274,8 @@ armorer_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_infantry_modifier = yes ai_general_building_modifier = yes @@ -2315,6 +2346,8 @@ armorer_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_infantry_modifier = yes ai_general_building_modifier = yes @@ -2384,6 +2417,8 @@ armorer_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_infantry_modifier = yes ai_general_building_modifier = yes @@ -2450,6 +2485,8 @@ heavy_cavalry_compound_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2519,6 +2556,8 @@ heavy_cavalry_compound_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2589,6 +2628,8 @@ heavy_cavalry_compound_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2659,6 +2700,8 @@ heavy_cavalry_compound_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2728,6 +2771,8 @@ heavy_cavalry_compound_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_iron INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_horses INPUTS = 2 } ai_military_context_modifier = yes ai_heavy_cavalry_modifier = yes ai_general_building_modifier = yes @@ -2793,6 +2838,7 @@ military_infirmaries_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_medicaments INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -2858,6 +2904,7 @@ military_infirmaries_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_medicaments INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -2923,6 +2970,7 @@ military_infirmaries_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_medicaments INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -2988,6 +3036,7 @@ military_infirmaries_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_medicaments INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3052,6 +3101,7 @@ military_infirmaries_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_medicaments INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3111,6 +3161,8 @@ regimental_fort_1 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_precious_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3173,6 +3225,8 @@ regimental_fort_2 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_precious_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3235,6 +3289,8 @@ regimental_fort_3 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_precious_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3297,6 +3353,8 @@ regimental_fort_4 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_precious_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3358,6 +3416,8 @@ regimental_fort_5 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_precious_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3408,6 +3468,7 @@ gunsmiths_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_copper INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3459,6 +3520,7 @@ gunsmiths_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_copper INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3511,6 +3573,7 @@ gunsmiths_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_copper INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3563,6 +3626,7 @@ gunsmiths_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_copper INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3614,6 +3678,7 @@ gunsmiths_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_copper INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3685,6 +3750,7 @@ elephantry_barracks_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_ivory INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3760,6 +3826,7 @@ elephantry_barracks_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_ivory INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3836,6 +3903,7 @@ elephantry_barracks_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_ivory INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3912,6 +3980,7 @@ elephantry_barracks_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_ivory INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -3987,6 +4056,7 @@ elephantry_barracks_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_ivory INPUTS = 1 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4368,6 +4438,8 @@ jungle_fort_1 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4428,6 +4500,8 @@ jungle_fort_2 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4488,6 +4562,8 @@ jungle_fort_3 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4548,6 +4624,8 @@ jungle_fort_4 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4607,6 +4685,8 @@ jungle_fort_5 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_base_metals INPUTS = 2 } + ai_urban_input_modifier = { GOOD = trade_good_stone INPUTS = 2 } ai_military_context_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes @@ -4988,6 +5068,7 @@ siegecraft_academies_1 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_carpentry_supplies INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5040,6 +5121,7 @@ siegecraft_academies_2 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_carpentry_supplies INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5092,6 +5174,7 @@ siegecraft_academies_3 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_carpentry_supplies INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5144,6 +5227,7 @@ siegecraft_academies_4 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_carpentry_supplies INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5195,6 +5279,7 @@ siegecraft_academies_5 = { ai_value = { base = 10 + ai_urban_input_category_modifier = { CATEGORY = trade_category_carpentry_supplies INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5250,6 +5335,7 @@ powder_mills_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_wood INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5306,6 +5392,7 @@ powder_mills_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_wood INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5362,6 +5449,7 @@ powder_mills_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_wood INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5418,6 +5506,7 @@ powder_mills_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_wood INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5473,6 +5562,7 @@ powder_mills_5 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_wood INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5524,6 +5614,7 @@ surveyors_hall_1 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_books_paper INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5576,6 +5667,7 @@ surveyors_hall_2 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_books_paper INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5613,6 +5705,17 @@ surveyors_hall_3 = { market_modifier = { trade_good_books_paper_sell_price_mult = price_basic_building_1 } + + + ai_value = { + base = 10 + ai_military_context_modifier = yes + directive_to_build_military_modifier = yes + ai_general_building_modifier = yes + ai_capital_preference_modifier = yes + ai_regular_building_upgrade_modifier = { LEVEL = 4 } + } + trade_good_need = { trade_good = trade_good_books_paper amount = basic_resource_need @@ -5628,6 +5731,7 @@ surveyors_hall_3 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_books_paper INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5680,6 +5784,7 @@ surveyors_hall_4 = { ai_value = { base = 10 + ai_urban_input_modifier = { GOOD = trade_good_books_paper INPUTS = 1 } ai_military_context_modifier = yes directive_to_build_military_modifier = yes ai_general_building_modifier = yes @@ -5716,17 +5821,6 @@ surveyors_hall_5 = { market_modifier = { trade_good_books_paper_sell_price_mult = price_basic_building_1 } - - - ai_value = { - base = 10 - ai_military_context_modifier = yes - directive_to_build_military_modifier = yes - ai_general_building_modifier = yes - ai_capital_preference_modifier = yes - ai_regular_building_upgrade_modifier = { LEVEL = 4 } - } - trade_good_need = { trade_good = trade_good_books_paper amount = basic_resource_need @@ -6117,4 +6211,3 @@ air_dock_04 = { } } } -########## diff --git a/common/buildings/regular_primary_buildings.txt b/common/buildings/regular_primary_buildings.txt index 743c46617..20e731487 100644 --- a/common/buildings/regular_primary_buildings.txt +++ b/common/buildings/regular_primary_buildings.txt @@ -1,5 +1,5 @@ # Need Types Used In This File -# - trade_good: trade_good_books_paper, trade_good_incense, trade_good_silk, trade_good_stone, trade_good_wine +# - trade_good: trade_good_books_paper, trade_good_horses, trade_good_incense, trade_good_silk, trade_good_stone, trade_good_wine # - trade_good_category: trade_category_carpentry_supplies, trade_category_clothes # # Modifier Types Used In This File @@ -23,6 +23,10 @@ # - popular_opinion_add # - monthly_province_size_change_when_below_baseline_add # - monthly_province_size_change_when_below_baseline_mult +# - stationed_heavy_cavalry_maintenance_high_modifier +# - stationed_heavy_cavalry_maintenance_low_modifier +# - stationed_light_cavalry_maintenance_high_modifier +# - stationed_light_cavalry_maintenance_low_modifier # - stationed_maa_damage_mult # - stationed_maa_siege_value_add # - stationed_maa_toughness_mult @@ -287,7 +291,7 @@ pb_market_01 = { building_slots_for_host_district = 1 province_size_baseline_add = market_primary_province_size_baseline_tier_1 monthly_commerce_tax = 0.5 - prosperity_per_province_size_level = 0.005 + prosperity_per_province_size_level = 0.0125 } type_icon = "district_buildings/market_district.dds" @@ -318,7 +322,7 @@ pb_market_02 = { building_slots_for_host_district = 2 province_size_baseline_add = urban_regular_size_tier_2 monthly_commerce_tax = 0.75 - prosperity_per_province_size_level = 0.01 + prosperity_per_province_size_level = 0.025 } can_construct_showing_failures_only = { @@ -353,7 +357,7 @@ pb_market_03 = { building_slots_for_host_district = 3 province_size_baseline_add = urban_regular_size_tier_3 monthly_commerce_tax = 1 - prosperity_per_province_size_level = 0.015 + prosperity_per_province_size_level = 0.0375 } can_construct_showing_failures_only = { @@ -388,7 +392,7 @@ pb_market_04 = { building_slots_for_host_district = 4 province_size_baseline_add = market_primary_province_size_baseline_tier_4 monthly_commerce_tax = 1.25 - prosperity_per_province_size_level = 0.02 + prosperity_per_province_size_level = 0.05 } can_construct_showing_failures_only = { @@ -680,7 +684,7 @@ pb_border_forts_01 = { ai_value = { base = 9.7 - ai_defensive_need_modifier = yes + ai_border_threat_modifier = yes culture_likely_to_fortify_modifier = yes directive_to_fortify_modifier = yes ai_general_building_modifier = yes @@ -711,7 +715,7 @@ pb_border_forts_02 = { ai_value = { base = 9.7 - ai_defensive_need_modifier = yes + ai_border_threat_modifier = yes culture_likely_to_fortify_modifier = yes directive_to_fortify_modifier = yes ai_general_building_modifier = yes @@ -742,7 +746,7 @@ pb_border_forts_03 = { ai_value = { base = 9.7 - ai_defensive_need_modifier = yes + ai_border_threat_modifier = yes culture_likely_to_fortify_modifier = yes directive_to_fortify_modifier = yes ai_general_building_modifier = yes @@ -771,7 +775,7 @@ pb_border_forts_04 = { ai_value = { base = 9.7 - ai_defensive_need_modifier = yes + ai_border_threat_modifier = yes culture_likely_to_fortify_modifier = yes directive_to_fortify_modifier = yes ai_general_building_modifier = yes @@ -789,6 +793,7 @@ pb_walls_01 = { } cost_gold = district_tier_1_cost levy = poor_building_levy_tier_1 + max_garrison = poor_building_max_garrison_tier_1 province_modifier = { building_slots_for_host_district = 1 @@ -844,6 +849,7 @@ pb_walls_02 = { construction_time = district_tier_2_construction_time cost_gold = district_tier_2_cost levy = poor_building_levy_tier_2 + max_garrison = poor_building_max_garrison_tier_2 province_modifier = { building_slots_for_host_district = 2 @@ -894,6 +900,7 @@ pb_walls_03 = { construction_time = district_tier_3_construction_time cost_gold = district_tier_3_cost levy = poor_building_levy_tier_3 + max_garrison = poor_building_max_garrison_tier_3 province_modifier = { building_slots_for_host_district = 3 @@ -944,6 +951,7 @@ pb_walls_04 = { construction_time = district_tier_4_construction_time cost_gold = district_tier_4_cost levy = poor_building_levy_tier_4 + max_garrison = poor_building_max_garrison_tier_4 province_modifier = { building_slots_for_host_district = 4 @@ -1583,6 +1591,7 @@ pb_royal_palace_01 = { amount = luxury_resource_need culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -1760,6 +1769,7 @@ pb_royal_palace_02 = { can_be_filled_multiple_times = 2 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -1934,6 +1944,7 @@ pb_royal_palace_03 = { can_be_filled_multiple_times = 3 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -2108,6 +2119,7 @@ pb_royal_palace_04 = { can_be_filled_multiple_times = 4 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -2285,6 +2297,10 @@ pb_mandala_02 = { directive_to_build_economy_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes + modifier = { + add = ai_building_priority_strong + scope:holder = { government_has_flag = government_is_mandala } + } ai_regular_district_upgrade_modifier = { LEVEL = 2 } } } @@ -2322,6 +2338,10 @@ pb_mandala_03 = { directive_to_build_economy_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes + modifier = { + add = ai_building_priority_strong + scope:holder = { government_has_flag = government_is_mandala } + } ai_regular_district_upgrade_modifier = { LEVEL = 3 } } } @@ -2358,6 +2378,10 @@ pb_mandala_04 = { directive_to_build_economy_modifier = yes ai_general_building_modifier = yes ai_capital_preference_modifier = yes + modifier = { + add = ai_building_priority_strong + scope:holder = { government_has_flag = government_is_mandala } + } ai_regular_district_upgrade_modifier = { LEVEL = 4 } } } @@ -2745,7 +2769,7 @@ pb_temple_01 = { base = 10 ai_pious_building_preference_modifier = yes ai_opinion_baseline_building_modifier = { VALUE = 5 } - ai_urban_input_modifier = { GOOD = trade_good_incense } + ai_urban_input_modifier = { GOOD = trade_good_incense INPUTS = 1 } ai_urban_identity_building_modifier = { WEIGHT = ai_building_priority_soft } ai_general_building_modifier = yes @@ -2785,7 +2809,7 @@ pb_temple_01 = { } } modifier = { - add = ai_building_priority_strong + add = ai_building_priority_medium scope:holder = { government_has_flag = government_is_mandala } } ai_regular_new_district_modifier = yes @@ -3173,7 +3197,7 @@ pb_temple_02 = { base = 10 ai_pious_building_preference_modifier = yes ai_opinion_baseline_building_modifier = { VALUE = 6 } - ai_urban_input_modifier = { GOOD = trade_good_incense } + ai_urban_input_modifier = { GOOD = trade_good_incense INPUTS = 1 } ai_urban_identity_building_modifier = { WEIGHT = ai_building_priority_soft } ai_general_building_modifier = yes @@ -3567,7 +3591,7 @@ pb_temple_03 = { base = 10 ai_pious_building_preference_modifier = yes ai_opinion_baseline_building_modifier = { VALUE = 7 } - ai_urban_input_modifier = { GOOD = trade_good_incense } + ai_urban_input_modifier = { GOOD = trade_good_incense INPUTS = 1 } ai_urban_identity_building_modifier = { WEIGHT = ai_building_priority_soft } ai_general_building_modifier = yes @@ -3960,7 +3984,7 @@ pb_temple_04 = { base = 10 ai_pious_building_preference_modifier = yes ai_opinion_baseline_building_modifier = { VALUE = 8 } - ai_urban_input_modifier = { GOOD = trade_good_incense } + ai_urban_input_modifier = { GOOD = trade_good_incense INPUTS = 1 } ai_urban_identity_building_modifier = { WEIGHT = ai_building_priority_soft } ai_general_building_modifier = yes @@ -4122,6 +4146,7 @@ pb_patrician_01 = { trade_good = trade_good_furs amount = luxury_resource_need culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -4209,6 +4234,7 @@ pb_patrician_02 = { amount = luxury_resource_need can_be_filled_multiple_times = 2 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -4292,6 +4318,7 @@ pb_patrician_03 = { amount = luxury_resource_need can_be_filled_multiple_times = 3 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -4376,6 +4403,7 @@ pb_patrician_04 = { amount = luxury_resource_need can_be_filled_multiple_times = 4 culture_parameter = court_finery_furs_demand + not_rite_parameter = leather_forbidden modifiers = { province_modifier = { @@ -5122,6 +5150,42 @@ pb_manor_houses_01 = { } } } + market_government_modifier = { + parameter = government_is_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } + market_government_modifier = { + parameter = government_is_japan_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_japan_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } next_building = pb_manor_houses_02 ai_value = { base = 10 @@ -5260,6 +5324,42 @@ pb_manor_houses_02 = { } } } + market_government_modifier = { + parameter = government_is_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } + market_government_modifier = { + parameter = government_is_japan_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_japan_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } next_building = pb_manor_houses_03 ai_value = { base = 10 @@ -5383,6 +5483,42 @@ pb_manor_houses_03 = { } } } + market_government_modifier = { + parameter = government_is_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } + market_government_modifier = { + parameter = government_is_japan_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_japan_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } next_building = pb_manor_houses_04 ai_value = { base = 10 @@ -5506,6 +5642,42 @@ pb_manor_houses_04 = { } } } + market_government_modifier = { + parameter = government_is_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } + market_government_modifier = { + parameter = government_is_japan_feudal + trade_good_horses_sell_price_mult = price_basic_building_1 + } + trade_good_need = { + trade_good = trade_good_horses + amount = rural_resource_need + government_flag = government_is_japan_feudal + can_be_filled_multiple_times = 1 + modifiers = { + province_modifier = { + stationed_light_cavalry_maintenance_low_modifier = -0.1 + stationed_light_cavalry_maintenance_high_modifier = -0.1 + stationed_heavy_cavalry_maintenance_low_modifier = -0.1 + stationed_heavy_cavalry_maintenance_high_modifier = -0.1 + } + } + } ai_value = { base = 10 directive_to_build_economy_modifier = yes @@ -5686,12 +5858,11 @@ pb_religious_community_01 = { } modifier = { add = ai_building_priority_strong - scope:holder = { - OR = { - government_has_flag = government_is_theocracy - government_has_flag = government_is_mandala - } - } + scope:holder = { government_has_flag = government_is_theocracy } + } + modifier = { + add = ai_building_priority_medium + scope:holder = { government_has_flag = government_is_mandala } } ai_regular_new_district_modifier = yes } @@ -5823,7 +5994,7 @@ pb_religious_community_02 = { can_be_filled_multiple_times = 2 modifiers = { character_modifier = { - monthly_piety = 0.02 + monthly_piety = 0.01 } } } @@ -5973,7 +6144,7 @@ pb_religious_community_03 = { can_be_filled_multiple_times = 3 modifiers = { character_modifier = { - monthly_piety = 0.03 + monthly_piety = 0.01 } } } @@ -6123,7 +6294,7 @@ pb_religious_community_04 = { can_be_filled_multiple_times = 4 modifiers = { character_modifier = { - monthly_piety = 0.04 + monthly_piety = 0.01 } } } @@ -6175,6 +6346,25 @@ pb_villages_01 = { } province_terrain_modifier = { parameter = polders_coastal_villages_building_slot + terrain = plains + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = farmlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = wetlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = floodplains is_coastal = yes building_slots_for_host_district = 1 } @@ -6311,6 +6501,12 @@ pb_villages_01 = { } AND = { is_coastal = yes + OR = { + terrain = plains + terrain = farmlands + terrain = wetlands + terrain = floodplains + } culture ?= { has_cultural_parameter = polders_coastal_villages_building_slot } } AND = { @@ -6401,6 +6597,25 @@ pb_villages_02 = { } province_terrain_modifier = { parameter = polders_coastal_villages_building_slot + terrain = plains + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = farmlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = wetlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = floodplains is_coastal = yes building_slots_for_host_district = 1 } @@ -6567,6 +6782,25 @@ pb_villages_03 = { } province_terrain_modifier = { parameter = polders_coastal_villages_building_slot + terrain = plains + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = farmlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = wetlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = floodplains is_coastal = yes building_slots_for_host_district = 1 } @@ -6734,6 +6968,25 @@ pb_villages_04 = { } province_terrain_modifier = { parameter = polders_coastal_villages_building_slot + terrain = plains + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = farmlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = wetlands + is_coastal = yes + building_slots_for_host_district = 1 + } + province_terrain_modifier = { + parameter = polders_coastal_villages_building_slot + terrain = floodplains is_coastal = yes building_slots_for_host_district = 1 } @@ -6905,6 +7158,20 @@ pb_tribal_economy_prestige_01 = { } } } + market_culture_modifier = { + parameter = dyed_finery_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = dyed_finery_need + culture_parameter = dyed_finery_demand + modifiers = { + character_modifier = { + monthly_prestige = dyed_finery_prestige + } + } + } market_culture_modifier = { parameter = saharan_salt_reliance trade_good_salt_sell_price_mult = regional_demand_price_mult @@ -6985,6 +7252,21 @@ pb_tribal_economy_prestige_02 = { } } } + market_culture_modifier = { + parameter = dyed_finery_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = dyed_finery_need + culture_parameter = dyed_finery_demand + can_be_filled_multiple_times = 2 + modifiers = { + character_modifier = { + monthly_prestige = dyed_finery_prestige + } + } + } market_culture_modifier = { parameter = saharan_salt_reliance trade_good_salt_sell_price_mult = regional_demand_price_mult @@ -7063,6 +7345,21 @@ pb_tribal_economy_prestige_03 = { } } } + market_culture_modifier = { + parameter = dyed_finery_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = dyed_finery_need + culture_parameter = dyed_finery_demand + can_be_filled_multiple_times = 3 + modifiers = { + character_modifier = { + monthly_prestige = dyed_finery_prestige + } + } + } market_culture_modifier = { parameter = saharan_salt_reliance trade_good_salt_sell_price_mult = regional_demand_price_mult @@ -7140,6 +7437,21 @@ pb_tribal_economy_prestige_04 = { } } } + market_culture_modifier = { + parameter = dyed_finery_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = dyed_finery_need + culture_parameter = dyed_finery_demand + can_be_filled_multiple_times = 4 + modifiers = { + character_modifier = { + monthly_prestige = dyed_finery_prestige + } + } + } market_culture_modifier = { parameter = saharan_salt_reliance trade_good_salt_sell_price_mult = regional_demand_price_mult @@ -7200,6 +7512,20 @@ pb_tribal_military_01 = { next_building = pb_tribal_military_02 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 ai_tribal_context_modifier = yes @@ -7228,6 +7554,21 @@ pb_tribal_military_02 = { next_building = pb_tribal_military_03 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 ai_tribal_context_modifier = yes @@ -7257,6 +7598,21 @@ pb_tribal_military_03 = { next_building = pb_tribal_military_04 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 ai_tribal_context_modifier = yes @@ -7285,6 +7641,21 @@ pb_tribal_military_04 = { holding_district_level_4_trigger = yes } + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 ai_tribal_context_modifier = yes @@ -7311,6 +7682,20 @@ pb_tribal_wanua_01 = { next_building = pb_tribal_wanua_02 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 modifier = { @@ -7346,6 +7731,21 @@ pb_tribal_wanua_02 = { next_building = pb_tribal_wanua_03 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 modifier = { @@ -7387,6 +7787,21 @@ pb_tribal_wanua_03 = { next_building = pb_tribal_wanua_04 + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 modifier = { @@ -7427,6 +7842,21 @@ pb_tribal_wanua_04 = { holding_district_level_4_trigger = yes } + market_culture_modifier = { + parameter = war_paint_dyes_demand + trade_good_dyes_sell_price_mult = regional_demand_price_mult + } + trade_good_need = { + trade_good = trade_good_dyes + amount = war_paint_dyes_need + culture_parameter = war_paint_dyes_demand + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_maa_damage_mult = war_paint_maa_damage_mult + } + } + } ai_value = { base = 9.7 modifier = { diff --git a/common/buildings/resource_district_buildings/alum_district_buildings.txt b/common/buildings/resource_district_buildings/alum_district_buildings.txt index 173b25ba3..560b32ec8 100644 --- a/common/buildings/resource_district_buildings/alum_district_buildings.txt +++ b/common/buildings/resource_district_buildings/alum_district_buildings.txt @@ -170,7 +170,7 @@ alum_apothecary_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -228,7 +228,7 @@ alum_apothecary_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -286,7 +286,7 @@ alum_apothecary_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -344,7 +344,7 @@ alum_apothecary_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -401,7 +401,7 @@ alum_apothecary_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/amber_district_buildings.txt b/common/buildings/resource_district_buildings/amber_district_buildings.txt index c460b6772..892509b51 100644 --- a/common/buildings/resource_district_buildings/amber_district_buildings.txt +++ b/common/buildings/resource_district_buildings/amber_district_buildings.txt @@ -1047,6 +1047,7 @@ bead_turner_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1105,6 +1106,7 @@ bead_turner_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1163,6 +1165,7 @@ bead_turner_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1221,6 +1224,7 @@ bead_turner_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1278,12 +1282,14 @@ bead_turner_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } amber_oil_maker_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1340,7 +1346,7 @@ amber_oil_maker_1 = { amber_oil_maker_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1615,6 +1621,7 @@ amber_carver_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1669,6 +1676,7 @@ amber_carver_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1723,6 +1731,7 @@ amber_carver_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1777,6 +1786,7 @@ amber_carver_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1830,6 +1840,7 @@ amber_carver_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_amber } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } diff --git a/common/buildings/resource_district_buildings/cattle_district_buildings.txt b/common/buildings/resource_district_buildings/cattle_district_buildings.txt index 7a6d0b51a..1b5c1f123 100644 --- a/common/buildings/resource_district_buildings/cattle_district_buildings.txt +++ b/common/buildings/resource_district_buildings/cattle_district_buildings.txt @@ -113,7 +113,7 @@ cattle_resource_building_2 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -131,7 +131,7 @@ cattle_resource_building_2 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need modifiers = { province_modifier = { @@ -211,7 +211,7 @@ cattle_resource_building_3 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -229,7 +229,7 @@ cattle_resource_building_3 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need modifiers = { province_modifier = { @@ -314,7 +314,7 @@ cattle_resource_building_4 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -332,7 +332,7 @@ cattle_resource_building_4 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need modifiers = { province_modifier = { @@ -413,7 +413,7 @@ cattle_resource_building_5 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -431,7 +431,7 @@ cattle_resource_building_5 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need modifiers = { province_modifier = { @@ -512,7 +512,7 @@ cattle_resource_building_6 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -530,7 +530,7 @@ cattle_resource_building_6 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need can_be_filled_multiple_times = 2 @@ -613,7 +613,7 @@ cattle_resource_building_7 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -631,7 +631,7 @@ cattle_resource_building_7 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need can_be_filled_multiple_times = 2 @@ -714,7 +714,7 @@ cattle_resource_building_8 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -732,7 +732,7 @@ cattle_resource_building_8 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need can_be_filled_multiple_times = 3 @@ -815,7 +815,7 @@ cattle_resource_building_9 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -833,7 +833,7 @@ cattle_resource_building_9 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need can_be_filled_multiple_times = 3 @@ -916,7 +916,7 @@ cattle_resource_building_10 = { trade_good_cattle_production_mult = 0.25 } market_modifier = { - trade_good_grain_sell_price_mult = price_basic_building_1 + trade_category_cereals_sell_price_mult = price_basic_building_1 } province_culture_modifier = { @@ -934,7 +934,7 @@ cattle_resource_building_10 = { } trade_good_need = { #Food for the winter, during droughts, etc - trade_good = trade_good_grain + trade_good_category = trade_category_cereals amount = basic_resource_need can_be_filled_multiple_times = 3 @@ -1047,7 +1047,7 @@ butchery_1 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_medium } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_new_building_modifier = yes @@ -1126,7 +1126,7 @@ butchery_2 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_medium } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 2 } @@ -1205,7 +1205,7 @@ butchery_3 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_medium } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 3 } @@ -1284,7 +1284,7 @@ butchery_4 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_medium } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 4 } @@ -1362,7 +1362,7 @@ butchery_5 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_medium } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 5 } @@ -1423,7 +1423,7 @@ cheesemaker_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_new_building_modifier = yes } @@ -1483,7 +1483,7 @@ cheesemaker_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1543,7 +1543,7 @@ cheesemaker_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1603,7 +1603,7 @@ cheesemaker_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1662,7 +1662,7 @@ cheesemaker_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1801,6 +1801,7 @@ minor_grazing_3 = { tallow_rendering_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1836,6 +1837,7 @@ tallow_rendering_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1844,7 +1846,7 @@ tallow_rendering_1 = { tallow_rendering_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1881,6 +1883,7 @@ tallow_rendering_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1926,6 +1929,7 @@ tallow_rendering_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1971,6 +1975,7 @@ tallow_rendering_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2015,6 +2020,7 @@ tallow_rendering_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2023,6 +2029,7 @@ tallow_rendering_5 = { manure_piles_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2056,7 +2063,7 @@ manure_piles_1 = { manure_piles_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } diff --git a/common/buildings/resource_district_buildings/ceramics_district_buildings.txt b/common/buildings/resource_district_buildings/ceramics_district_buildings.txt index 8ad5b58ac..7d4b42389 100644 --- a/common/buildings/resource_district_buildings/ceramics_district_buildings.txt +++ b/common/buildings/resource_district_buildings/ceramics_district_buildings.txt @@ -789,6 +789,7 @@ fuel_charcoal_burners_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_new_building_modifier = yes } @@ -850,6 +851,7 @@ fuel_charcoal_burners_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -911,6 +913,7 @@ fuel_charcoal_burners_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -972,6 +975,7 @@ fuel_charcoal_burners_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1031,6 +1035,7 @@ fuel_charcoal_burners_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1097,7 +1102,7 @@ ceramics_glazeworks_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_new_building_modifier = yes } @@ -1167,7 +1172,7 @@ ceramics_glazeworks_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1237,7 +1242,7 @@ ceramics_glazeworks_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1307,7 +1312,7 @@ ceramics_glazeworks_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1375,7 +1380,7 @@ ceramics_glazeworks_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1664,6 +1669,7 @@ luxury_ceramics_workshops_5 = { ceramics_dragon_kiln_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1714,6 +1720,7 @@ ceramics_dragon_kiln_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_new_building_modifier = yes } @@ -1722,7 +1729,7 @@ ceramics_dragon_kiln_1 = { ceramics_dragon_kiln_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes culture = { has_cultural_parameter = unlock_dragon_kiln_buildings } @@ -1773,6 +1780,7 @@ ceramics_dragon_kiln_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1832,6 +1840,7 @@ ceramics_dragon_kiln_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1891,6 +1900,7 @@ ceramics_dragon_kiln_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1948,6 +1958,7 @@ ceramics_dragon_kiln_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_ceramics } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_ceramics } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2283,7 +2294,7 @@ fritware_workshops_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_new_building_modifier = yes } @@ -2350,7 +2361,7 @@ fritware_workshops_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2417,7 +2428,7 @@ fritware_workshops_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2484,7 +2495,7 @@ fritware_workshops_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2549,7 +2560,7 @@ fritware_workshops_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2558,6 +2569,7 @@ fritware_workshops_5 = { # Uses lower-grade clay to turn one spare building slot into modest tax without adding market needs. pipe_making_shops_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes @@ -2597,7 +2609,7 @@ pipe_making_shops_1 = { pipe_making_shops_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } diff --git a/common/buildings/resource_district_buildings/copper_district_buildings.txt b/common/buildings/resource_district_buildings/copper_district_buildings.txt index 1738f3400..957284d30 100644 --- a/common/buildings/resource_district_buildings/copper_district_buildings.txt +++ b/common/buildings/resource_district_buildings/copper_district_buildings.txt @@ -175,7 +175,7 @@ bronze_artisan_workshop_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -233,7 +233,7 @@ bronze_artisan_workshop_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -291,7 +291,7 @@ bronze_artisan_workshop_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -349,7 +349,7 @@ bronze_artisan_workshop_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -406,7 +406,7 @@ bronze_artisan_workshop_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -415,7 +415,7 @@ bronze_artisan_workshop_5 = { bell_foundry_1 = { construction_time = construction_time_6_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes production_of_trade_good_type = { @@ -463,7 +463,7 @@ bell_foundry_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -519,7 +519,7 @@ bell_foundry_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -574,7 +574,7 @@ bell_foundry_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_copper } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -656,9 +656,10 @@ artillery_works_2 = { trade_good_need = { trade_good = trade_good_copper amount = massive_metal_need + can_be_filled_multiple_times = 2 modifiers = { province_modifier = { - stationed_siege_weapon_siege_value_mult = very_high_maa_siege_value_tier_2 + stationed_siege_weapon_siege_value_mult = very_high_maa_siege_value_tier_1 } } } @@ -701,10 +702,10 @@ artillery_works_3 = { trade_good = trade_good_copper amount = massive_metal_need - can_be_filled_multiple_times = 2 + can_be_filled_multiple_times = 3 modifiers = { province_modifier = { - stationed_siege_weapon_siege_value_mult = very_high_maa_siege_value_tier_3 + stationed_siege_weapon_siege_value_mult = very_high_maa_siege_value_tier_1 } } } @@ -811,6 +812,7 @@ mint_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } ai_resource_building_consumer_modifier = { GOOD = trade_good_gold } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -891,6 +893,7 @@ mint_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } ai_resource_building_consumer_modifier = { GOOD = trade_good_gold } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -969,6 +972,7 @@ mint_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } ai_resource_building_consumer_modifier = { GOOD = trade_good_gold } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1049,6 +1053,7 @@ mint_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } ai_resource_building_consumer_modifier = { GOOD = trade_good_gold } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1128,6 +1133,7 @@ mint_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } ai_resource_building_consumer_modifier = { GOOD = trade_good_gold } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/cotton_district_buildings.txt b/common/buildings/resource_district_buildings/cotton_district_buildings.txt index d83a326ed..062b9f931 100644 --- a/common/buildings/resource_district_buildings/cotton_district_buildings.txt +++ b/common/buildings/resource_district_buildings/cotton_district_buildings.txt @@ -953,6 +953,8 @@ textiles_cotton_building_1 = { market_modifier = { trade_good_cotton_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_cotton @@ -971,6 +973,26 @@ textiles_cotton_building_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -985,7 +1007,7 @@ textiles_cotton_building_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1020,6 +1042,8 @@ textiles_cotton_building_2 = { market_modifier = { trade_good_cotton_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_cotton @@ -1040,6 +1064,30 @@ textiles_cotton_building_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1053,7 +1101,7 @@ textiles_cotton_building_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1088,6 +1136,8 @@ textiles_cotton_building_3 = { market_modifier = { trade_good_cotton_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_cotton @@ -1108,6 +1158,30 @@ textiles_cotton_building_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1121,7 +1195,7 @@ textiles_cotton_building_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1156,6 +1230,8 @@ textiles_cotton_building_4 = { market_modifier = { trade_good_cotton_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_cotton @@ -1176,6 +1252,30 @@ textiles_cotton_building_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1189,7 +1289,7 @@ textiles_cotton_building_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1224,6 +1324,8 @@ textiles_cotton_building_5 = { market_modifier = { trade_good_cotton_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_cotton @@ -1244,6 +1346,30 @@ textiles_cotton_building_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1256,7 +1382,7 @@ textiles_cotton_building_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1305,7 +1431,7 @@ wickmaker_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1355,7 +1481,7 @@ wickmaker_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1405,7 +1531,7 @@ wickmaker_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1455,7 +1581,7 @@ wickmaker_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1504,7 +1630,7 @@ wickmaker_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1531,12 +1657,12 @@ quilting_workshop_1 = { monthly_artisan_tax = quilting_workshop_income_tier_1_tribal } trade_good_need = { - trade_good = trade_good_cotton + trade_good_category = trade_category_fabrics amount = basic_resource_need modifiers = { province_modifier = { - stationed_maa_maintenance_low_modifier = quilting_workshop_maa_maintenance_per_cotton_need - stationed_maa_maintenance_high_modifier = quilting_workshop_maa_maintenance_per_cotton_need + stationed_pikemen_toughness_mult = low_maa_toughness_tier_1 + stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1546,7 +1672,7 @@ quilting_workshop_1 = { type_icon = "resource_buildings/quilting_workshop.dds" ai_value = { base = 10 - ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_new_building_modifier = yes @@ -1576,14 +1702,14 @@ quilting_workshop_2 = { monthly_artisan_tax = quilting_workshop_income_tier_2_tribal } trade_good_need = { - trade_good = trade_good_cotton + trade_good_category = trade_category_fabrics amount = basic_resource_need can_be_filled_multiple_times = 2 modifiers = { province_modifier = { - stationed_maa_maintenance_low_modifier = quilting_workshop_maa_maintenance_per_cotton_need - stationed_maa_maintenance_high_modifier = quilting_workshop_maa_maintenance_per_cotton_need + stationed_pikemen_toughness_mult = low_maa_toughness_tier_1 + stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1592,7 +1718,7 @@ quilting_workshop_2 = { next_building = quilting_workshop_3 ai_value = { base = 10 - ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } @@ -1622,14 +1748,14 @@ quilting_workshop_3 = { monthly_artisan_tax = quilting_workshop_income_tier_3_tribal } trade_good_need = { - trade_good = trade_good_cotton + trade_good_category = trade_category_fabrics amount = basic_resource_need can_be_filled_multiple_times = 3 modifiers = { province_modifier = { - stationed_maa_maintenance_low_modifier = quilting_workshop_maa_maintenance_per_cotton_need - stationed_maa_maintenance_high_modifier = quilting_workshop_maa_maintenance_per_cotton_need + stationed_pikemen_toughness_mult = low_maa_toughness_tier_1 + stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1638,7 +1764,7 @@ quilting_workshop_3 = { next_building = quilting_workshop_4 ai_value = { base = 10 - ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } @@ -1668,14 +1794,14 @@ quilting_workshop_4 = { monthly_artisan_tax = quilting_workshop_income_tier_4_tribal } trade_good_need = { - trade_good = trade_good_cotton + trade_good_category = trade_category_fabrics amount = basic_resource_need can_be_filled_multiple_times = 4 modifiers = { province_modifier = { - stationed_maa_maintenance_low_modifier = quilting_workshop_maa_maintenance_per_cotton_need - stationed_maa_maintenance_high_modifier = quilting_workshop_maa_maintenance_per_cotton_need + stationed_pikemen_toughness_mult = low_maa_toughness_tier_1 + stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1684,7 +1810,7 @@ quilting_workshop_4 = { next_building = quilting_workshop_5 ai_value = { base = 10 - ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } @@ -1714,14 +1840,14 @@ quilting_workshop_5 = { monthly_artisan_tax = quilting_workshop_income_tier_5_tribal } trade_good_need = { - trade_good = trade_good_cotton + trade_good_category = trade_category_fabrics amount = basic_resource_need can_be_filled_multiple_times = 5 modifiers = { province_modifier = { - stationed_maa_maintenance_low_modifier = quilting_workshop_maa_maintenance_per_cotton_need - stationed_maa_maintenance_high_modifier = quilting_workshop_maa_maintenance_per_cotton_need + stationed_pikemen_toughness_mult = low_maa_toughness_tier_1 + stationed_skirmishers_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1729,7 +1855,7 @@ quilting_workshop_5 = { } ai_value = { base = 10 - ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } @@ -1783,7 +1909,7 @@ cottonseed_mill_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_cotton } ai_resource_new_building_modifier = yes } @@ -1838,7 +1964,7 @@ cottonseed_mill_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_cotton } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1893,7 +2019,7 @@ cottonseed_mill_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_cotton } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1948,7 +2074,7 @@ cottonseed_mill_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_cotton } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2002,7 +2128,7 @@ cottonseed_mill_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_cotton } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_cotton } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_cotton } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2081,7 +2207,7 @@ mixed_fabric_weaver_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -2165,7 +2291,7 @@ mixed_fabric_weaver_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2249,7 +2375,7 @@ mixed_fabric_weaver_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2333,7 +2459,7 @@ mixed_fabric_weaver_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2416,7 +2542,7 @@ mixed_fabric_weaver_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/dyes_district_buildings.txt b/common/buildings/resource_district_buildings/dyes_district_buildings.txt index aee59e43c..df43ec276 100644 --- a/common/buildings/resource_district_buildings/dyes_district_buildings.txt +++ b/common/buildings/resource_district_buildings/dyes_district_buildings.txt @@ -720,6 +720,7 @@ lake_pigment_workshop_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -779,6 +780,7 @@ lake_pigment_workshop_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -838,6 +840,7 @@ lake_pigment_workshop_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -897,6 +900,7 @@ lake_pigment_workshop_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -955,6 +959,7 @@ lake_pigment_workshop_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1038,7 +1043,7 @@ dyeing_pits_1 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_dyes CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1129,7 +1134,7 @@ dyeing_pits_2 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_dyes CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1220,7 +1225,7 @@ dyeing_pits_3 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_dyes CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1311,7 +1316,7 @@ dyeing_pits_4 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_dyes CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1401,7 +1406,7 @@ dyeing_pits_5 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_dyes CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1457,7 +1462,7 @@ dyes_packing_warehouse_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_dyes } ai_resource_new_building_modifier = yes } @@ -1515,7 +1520,7 @@ dyes_packing_warehouse_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_dyes } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1573,7 +1578,7 @@ dyes_packing_warehouse_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_dyes } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1631,7 +1636,7 @@ dyes_packing_warehouse_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_dyes } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1688,7 +1693,7 @@ dyes_packing_warehouse_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_dyes } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_dyes } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1737,6 +1742,7 @@ illumination_workshop_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_new_building_modifier = yes } @@ -1786,6 +1792,7 @@ illumination_workshop_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1835,6 +1842,7 @@ illumination_workshop_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1884,6 +1892,7 @@ illumination_workshop_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1932,6 +1941,7 @@ illumination_workshop_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/fish_district_buildings.txt b/common/buildings/resource_district_buildings/fish_district_buildings.txt index 338291816..54755471c 100644 --- a/common/buildings/resource_district_buildings/fish_district_buildings.txt +++ b/common/buildings/resource_district_buildings/fish_district_buildings.txt @@ -1170,7 +1170,7 @@ fish_saltery_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_new_building_modifier = yes } @@ -1221,7 +1221,7 @@ fish_saltery_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1272,7 +1272,7 @@ fish_saltery_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1323,7 +1323,7 @@ fish_saltery_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1373,7 +1373,7 @@ fish_saltery_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1383,6 +1383,7 @@ fish_saltery_5 = { netmakers_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1429,7 +1430,7 @@ netmakers_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_new_building_modifier = yes } @@ -1439,7 +1440,7 @@ netmakers_1 = { netmakers_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1485,7 +1486,7 @@ netmakers_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1541,7 +1542,7 @@ netmakers_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1597,7 +1598,7 @@ netmakers_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1652,7 +1653,7 @@ netmakers_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_fish CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1697,6 +1698,7 @@ fish_oil_vats_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1741,6 +1743,7 @@ fish_oil_vats_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1785,6 +1788,7 @@ fish_oil_vats_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1829,6 +1833,7 @@ fish_oil_vats_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1872,6 +1877,7 @@ fish_oil_vats_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1923,7 +1929,7 @@ glue_cauldrons_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1977,7 +1983,7 @@ glue_cauldrons_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2031,7 +2037,7 @@ glue_cauldrons_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2085,7 +2091,7 @@ glue_cauldrons_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2138,7 +2144,7 @@ glue_cauldrons_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2183,6 +2189,7 @@ garum_vats_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2228,6 +2235,7 @@ garum_vats_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2273,6 +2281,7 @@ garum_vats_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2318,6 +2327,7 @@ garum_vats_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2362,6 +2372,7 @@ garum_vats_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2370,6 +2381,7 @@ garum_vats_5 = { pearl_fishery_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes county = { pearl_fishing_banks_county_trigger = yes } @@ -2409,7 +2421,7 @@ pearl_fishery_1 = { pearl_fishery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes county = { pearl_fishing_banks_county_trigger = yes } diff --git a/common/buildings/resource_district_buildings/flax_district_buildings.txt b/common/buildings/resource_district_buildings/flax_district_buildings.txt index b73a2024b..2d7bd220b 100644 --- a/common/buildings/resource_district_buildings/flax_district_buildings.txt +++ b/common/buildings/resource_district_buildings/flax_district_buildings.txt @@ -953,6 +953,8 @@ textiles_flax_building_1 = { market_modifier = { trade_good_flax_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_flax @@ -971,6 +973,26 @@ textiles_flax_building_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -985,7 +1007,7 @@ textiles_flax_building_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1020,6 +1042,8 @@ textiles_flax_building_2 = { market_modifier = { trade_good_flax_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_flax @@ -1040,6 +1064,30 @@ textiles_flax_building_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1053,7 +1101,7 @@ textiles_flax_building_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1088,6 +1136,8 @@ textiles_flax_building_3 = { market_modifier = { trade_good_flax_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_flax @@ -1108,6 +1158,30 @@ textiles_flax_building_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1121,7 +1195,7 @@ textiles_flax_building_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1156,6 +1230,8 @@ textiles_flax_building_4 = { market_modifier = { trade_good_flax_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_flax @@ -1176,6 +1252,30 @@ textiles_flax_building_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1189,7 +1289,7 @@ textiles_flax_building_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1224,6 +1324,8 @@ textiles_flax_building_5 = { market_modifier = { trade_good_flax_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_flax @@ -1244,6 +1346,30 @@ textiles_flax_building_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1256,7 +1382,7 @@ textiles_flax_building_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1265,7 +1391,6 @@ textiles_flax_building_5 = { linseed_oil_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1318,7 +1443,7 @@ linseed_oil_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_need_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } ai_resource_new_building_modifier = yes } @@ -1326,7 +1451,7 @@ linseed_oil_1 = { linseed_oil_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1381,7 +1506,7 @@ linseed_oil_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_need_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1444,7 +1569,7 @@ linseed_oil_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_need_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1507,7 +1632,7 @@ linseed_oil_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_need_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1569,7 +1694,7 @@ linseed_oil_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_flax } ai_resource_building_need_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1633,7 +1758,7 @@ varnishing_workshop_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_flax CATEGORY = trade_category_carpentry_supplies } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1700,7 +1825,7 @@ varnishing_workshop_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_flax CATEGORY = trade_category_carpentry_supplies } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1767,7 +1892,7 @@ varnishing_workshop_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_flax CATEGORY = trade_category_carpentry_supplies } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1834,7 +1959,7 @@ varnishing_workshop_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_flax CATEGORY = trade_category_carpentry_supplies } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1900,7 +2025,7 @@ varnishing_workshop_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_flax CATEGORY = trade_category_carpentry_supplies } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/fruit_district_buildings.txt b/common/buildings/resource_district_buildings/fruit_district_buildings.txt index cfd9186c8..7729a1bfa 100644 --- a/common/buildings/resource_district_buildings/fruit_district_buildings.txt +++ b/common/buildings/resource_district_buildings/fruit_district_buildings.txt @@ -97,7 +97,7 @@ fruit_distillery_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -152,7 +152,7 @@ fruit_distillery_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -207,7 +207,7 @@ fruit_distillery_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -262,7 +262,7 @@ fruit_distillery_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -316,7 +316,7 @@ fruit_distillery_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -938,6 +938,7 @@ fruit_resource_building_10 = { cider_brewery_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } @@ -992,7 +993,7 @@ cider_brewery_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_new_building_modifier = yes } @@ -1002,7 +1003,7 @@ cider_brewery_1 = { cider_brewery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } @@ -1058,7 +1059,7 @@ cider_brewery_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1124,7 +1125,7 @@ cider_brewery_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1190,7 +1191,7 @@ cider_brewery_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1255,7 +1256,7 @@ cider_brewery_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1469,7 +1470,6 @@ drying_terraces_5 = { preserved_fruit_workshops_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1512,7 +1512,7 @@ preserved_fruit_workshops_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1521,7 +1521,7 @@ preserved_fruit_workshops_1 = { preserved_fruit_workshops_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1565,7 +1565,7 @@ preserved_fruit_workshops_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1635,7 +1635,7 @@ preserved_fruit_workshops_3 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1705,7 +1705,7 @@ preserved_fruit_workshops_4 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1774,7 +1774,7 @@ preserved_fruit_workshops_5 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1840,6 +1840,7 @@ syrup_boiling_vats_1 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1908,6 +1909,7 @@ syrup_boiling_vats_2 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1976,6 +1978,7 @@ syrup_boiling_vats_3 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2044,6 +2047,7 @@ syrup_boiling_vats_4 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2111,6 +2115,7 @@ syrup_boiling_vats_5 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_fruit CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/furs_district_buildings.txt b/common/buildings/resource_district_buildings/furs_district_buildings.txt index 8f20a89e4..5be2f8014 100644 --- a/common/buildings/resource_district_buildings/furs_district_buildings.txt +++ b/common/buildings/resource_district_buildings/furs_district_buildings.txt @@ -637,6 +637,7 @@ furs_resource_building_10 = { furriers_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -679,7 +680,7 @@ furriers_1 = { furriers_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -918,7 +919,7 @@ furs_trade_post_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_furs } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_furs } ai_resource_new_building_modifier = yes } @@ -992,7 +993,7 @@ furs_trade_post_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_furs } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_furs } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1086,7 +1087,7 @@ furs_trade_post_3 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_furs } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1180,7 +1181,7 @@ furs_trade_post_4 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_furs } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1273,7 +1274,7 @@ furs_trade_post_5 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_fabrics } ai_resource_building_consumer_modifier = { GOOD = trade_good_silver } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_furs } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1327,7 +1328,7 @@ musk_processing_shop_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_incense } ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_new_building_modifier = yes } @@ -1382,7 +1383,7 @@ musk_processing_shop_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_incense } ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1437,7 +1438,7 @@ musk_processing_shop_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_incense } ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1492,7 +1493,7 @@ musk_processing_shop_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_incense } ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1546,7 +1547,7 @@ musk_processing_shop_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_incense } ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1556,6 +1557,7 @@ musk_processing_shop_5 = { smokehouse_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1618,7 +1620,7 @@ smokehouse_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_new_building_modifier = yes @@ -1629,7 +1631,7 @@ smokehouse_1 = { smokehouse_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1695,7 +1697,7 @@ smokehouse_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 2 } @@ -1772,7 +1774,7 @@ smokehouse_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 3 } @@ -1849,7 +1851,7 @@ smokehouse_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 4 } @@ -1925,7 +1927,7 @@ smokehouse_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 5 } @@ -1949,6 +1951,9 @@ noble_hunting_lodges_1 = { character_modifier = { monthly_prestige = noble_hunting_lodges_prestige_tier_1 } + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + } trade_good_need = { trade_good = trade_good_furs amount = basic_resource_need @@ -1987,6 +1992,9 @@ noble_hunting_lodges_2 = { character_modifier = { monthly_prestige = noble_hunting_lodges_prestige_tier_2 } + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_2 + } trade_good_need = { trade_good = trade_good_furs amount = basic_resource_need @@ -2026,6 +2034,9 @@ noble_hunting_lodges_3 = { character_modifier = { monthly_prestige = noble_hunting_lodges_prestige_tier_3 } + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_3 + } trade_good_need = { trade_good = trade_good_furs amount = basic_resource_need @@ -2065,6 +2076,9 @@ noble_hunting_lodges_4 = { character_modifier = { monthly_prestige = noble_hunting_lodges_prestige_tier_4 } + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_4 + } trade_good_need = { trade_good = trade_good_furs amount = basic_resource_need @@ -2104,6 +2118,9 @@ noble_hunting_lodges_5 = { character_modifier = { monthly_prestige = noble_hunting_lodges_prestige_tier_5 } + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_5 + } trade_good_need = { trade_good = trade_good_furs amount = basic_resource_need @@ -2125,3 +2142,237 @@ noble_hunting_lodges_5 = { } } + +trackers_lodge_1 = { + + construction_time = construction_time_6_months + district_level_requirement = 3 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_1 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_1_tribal + } + province_modifier = { + stationed_skirmishers_damage_mult = low_maa_damage_tier_1 + } + trade_good_need = { + trade_good = trade_good_furs + amount = basic_resource_need + modifiers = { + province_modifier = { + stationed_skirmishers_pursuit_mult = low_maa_pursuit_tier_1 + stationed_skirmishers_screen_mult = low_maa_screen_tier_1 + } + } + } + on_complete = { + } + next_building = trackers_lodge_2 + type_icon = "regular_buildings/scout_camps.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +trackers_lodge_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 3 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_2 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_2_tribal + } + province_modifier = { + stationed_skirmishers_damage_mult = low_maa_damage_tier_2 + } + trade_good_need = { + trade_good = trade_good_furs + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_skirmishers_pursuit_mult = low_maa_pursuit_tier_1 + stationed_skirmishers_screen_mult = low_maa_screen_tier_1 + } + } + } + on_complete = { + } + next_building = trackers_lodge_3 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +trackers_lodge_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_3 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_3_tribal + } + province_modifier = { + stationed_skirmishers_damage_mult = low_maa_damage_tier_3 + } + trade_good_need = { + trade_good = trade_good_furs + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_skirmishers_pursuit_mult = low_maa_pursuit_tier_1 + stationed_skirmishers_screen_mult = low_maa_screen_tier_1 + } + } + } + on_complete = { + } + next_building = trackers_lodge_4 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +trackers_lodge_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_4 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_4_tribal + } + province_modifier = { + stationed_skirmishers_damage_mult = low_maa_damage_tier_4 + } + trade_good_need = { + trade_good = trade_good_furs + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_skirmishers_pursuit_mult = low_maa_pursuit_tier_1 + stationed_skirmishers_screen_mult = low_maa_screen_tier_1 + } + } + } + on_complete = { + } + next_building = trackers_lodge_5 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +trackers_lodge_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_5 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = trackers_lodge_income_tier_5_tribal + } + province_modifier = { + stationed_skirmishers_damage_mult = low_maa_damage_tier_5 + } + trade_good_need = { + trade_good = trade_good_furs + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + stationed_skirmishers_pursuit_mult = low_maa_pursuit_tier_1 + stationed_skirmishers_screen_mult = low_maa_screen_tier_1 + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} diff --git a/common/buildings/resource_district_buildings/grain_district_buildings.txt b/common/buildings/resource_district_buildings/grain_district_buildings.txt index 25cfe3d7f..aed76bcd7 100644 --- a/common/buildings/resource_district_buildings/grain_district_buildings.txt +++ b/common/buildings/resource_district_buildings/grain_district_buildings.txt @@ -223,6 +223,7 @@ grain_resource_building_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_new_building_modifier = yes } @@ -317,6 +318,7 @@ grain_resource_building_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 2 } } @@ -415,6 +417,7 @@ grain_resource_building_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 3 } } @@ -508,6 +511,7 @@ grain_resource_building_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 4 } } @@ -601,6 +605,7 @@ grain_resource_building_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 5 } } @@ -694,6 +699,7 @@ grain_resource_building_6 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 6 } } @@ -787,6 +793,7 @@ grain_resource_building_7 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 7 } } @@ -880,6 +887,7 @@ grain_resource_building_8 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 8 } } @@ -973,6 +981,7 @@ grain_resource_building_9 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 9 } } @@ -1065,6 +1074,7 @@ grain_resource_building_10 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } ai_resource_district_upgrade_modifier = { LEVEL = 10 } } @@ -1074,6 +1084,7 @@ grain_resource_building_10 = { beer_brewery_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } @@ -1128,7 +1139,7 @@ beer_brewery_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_new_building_modifier = yes } @@ -1138,7 +1149,7 @@ beer_brewery_1 = { beer_brewery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } @@ -1194,7 +1205,7 @@ beer_brewery_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1260,7 +1271,7 @@ beer_brewery_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1326,7 +1337,7 @@ beer_brewery_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1391,7 +1402,7 @@ beer_brewery_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1445,7 +1456,7 @@ grain_distillery_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1500,7 +1511,7 @@ grain_distillery_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1555,7 +1566,7 @@ grain_distillery_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1610,7 +1621,7 @@ grain_distillery_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1664,7 +1675,7 @@ grain_distillery_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1871,6 +1882,7 @@ biscuit_bakery_5 = { straw_weavery_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1916,7 +1928,7 @@ straw_weavery_1 = { straw_weavery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } diff --git a/common/buildings/resource_district_buildings/hemp_district_buildings.txt b/common/buildings/resource_district_buildings/hemp_district_buildings.txt index 26ada4d60..a6c620421 100644 --- a/common/buildings/resource_district_buildings/hemp_district_buildings.txt +++ b/common/buildings/resource_district_buildings/hemp_district_buildings.txt @@ -995,7 +995,7 @@ ropeworks_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1057,7 +1057,7 @@ ropeworks_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1119,7 +1119,7 @@ ropeworks_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1181,7 +1181,7 @@ ropeworks_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1242,13 +1242,14 @@ ropeworks_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } hemp_weaving_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1263,6 +1264,10 @@ hemp_weaving_1 = { cost_gold = resource_district_normal_tier_1_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_hemp amount = basic_resource_need @@ -1280,6 +1285,26 @@ hemp_weaving_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } @@ -1292,6 +1317,7 @@ hemp_weaving_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1300,7 +1326,7 @@ hemp_weaving_1 = { hemp_weaving_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1315,6 +1341,10 @@ hemp_weaving_2 = { cost_gold = resource_district_normal_tier_2_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_hemp amount = basic_resource_need @@ -1334,6 +1364,30 @@ hemp_weaving_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } @@ -1345,6 +1399,7 @@ hemp_weaving_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1368,6 +1423,10 @@ hemp_weaving_3 = { cost_gold = resource_district_normal_tier_3_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_hemp amount = basic_resource_need @@ -1387,6 +1446,30 @@ hemp_weaving_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } @@ -1398,6 +1481,7 @@ hemp_weaving_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1421,6 +1505,10 @@ hemp_weaving_4 = { cost_gold = resource_district_normal_tier_4_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_hemp amount = basic_resource_need @@ -1440,6 +1528,30 @@ hemp_weaving_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } @@ -1451,6 +1563,7 @@ hemp_weaving_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1474,6 +1587,10 @@ hemp_weaving_5 = { cost_gold = resource_district_normal_tier_5_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_hemp amount = basic_resource_need @@ -1493,6 +1610,30 @@ hemp_weaving_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } @@ -1503,6 +1644,7 @@ hemp_weaving_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1510,6 +1652,7 @@ hemp_weaving_5 = { hemp_naval_supplies_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1544,6 +1687,7 @@ hemp_naval_supplies_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1551,7 +1695,7 @@ hemp_naval_supplies_1 = { hemp_naval_supplies_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1587,6 +1731,7 @@ hemp_naval_supplies_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1630,6 +1775,7 @@ hemp_naval_supplies_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1673,6 +1819,7 @@ hemp_naval_supplies_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1715,6 +1862,7 @@ hemp_naval_supplies_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_hemp } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } diff --git a/common/buildings/resource_district_buildings/honey_district_buildings.txt b/common/buildings/resource_district_buildings/honey_district_buildings.txt index 97b728325..b2ba4d6a0 100644 --- a/common/buildings/resource_district_buildings/honey_district_buildings.txt +++ b/common/buildings/resource_district_buildings/honey_district_buildings.txt @@ -668,6 +668,7 @@ honey_resource_building_10 = { #Turns Honey into Medicaments honey_apothecary_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -722,7 +723,7 @@ honey_apothecary_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -731,7 +732,7 @@ honey_apothecary_1 = { honey_apothecary_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -787,7 +788,7 @@ honey_apothecary_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -852,7 +853,7 @@ honey_apothecary_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -917,7 +918,7 @@ honey_apothecary_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -980,7 +981,7 @@ honey_apothecary_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1032,6 +1033,7 @@ honey_waxworks_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1085,6 +1087,7 @@ honey_waxworks_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1138,6 +1141,7 @@ honey_waxworks_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1191,6 +1195,7 @@ honey_waxworks_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1243,6 +1248,7 @@ honey_waxworks_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1254,7 +1260,10 @@ mead_brewery_1 = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { - culture = { has_cultural_parameter = unlocks_mead_brewery } + custom_tooltip = { + text = unlocks_mead_brewery_tt + culture = { has_cultural_parameter = unlocks_mead_brewery } + } } show_disabled = yes can_construct = { @@ -1305,7 +1314,7 @@ mead_brewery_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_new_building_modifier = yes } @@ -1320,7 +1329,10 @@ mead_brewery_2 = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { - culture = { has_cultural_parameter = unlocks_mead_brewery } + custom_tooltip = { + text = unlocks_mead_brewery_tt + culture = { has_cultural_parameter = unlocks_mead_brewery } + } } show_disabled = yes can_construct = { @@ -1372,7 +1384,7 @@ mead_brewery_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1387,7 +1399,10 @@ mead_brewery_3 = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { - culture = { has_cultural_parameter = unlocks_mead_brewery } + custom_tooltip = { + text = unlocks_mead_brewery_tt + culture = { has_cultural_parameter = unlocks_mead_brewery } + } } show_disabled = yes can_construct = { @@ -1439,7 +1454,7 @@ mead_brewery_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1454,7 +1469,10 @@ mead_brewery_4 = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { - culture = { has_cultural_parameter = unlocks_mead_brewery } + custom_tooltip = { + text = unlocks_mead_brewery_tt + culture = { has_cultural_parameter = unlocks_mead_brewery } + } } show_disabled = yes can_construct = { @@ -1506,7 +1524,7 @@ mead_brewery_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1521,7 +1539,10 @@ mead_brewery_5 = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { - culture = { has_cultural_parameter = unlocks_mead_brewery } + custom_tooltip = { + text = unlocks_mead_brewery_tt + culture = { has_cultural_parameter = unlocks_mead_brewery } + } } show_disabled = yes can_construct = { @@ -1572,7 +1593,7 @@ mead_brewery_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_honey CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/horse_district_buildings.txt b/common/buildings/resource_district_buildings/horse_district_buildings.txt index 463dbb58c..6bb9cdd56 100644 --- a/common/buildings/resource_district_buildings/horse_district_buildings.txt +++ b/common/buildings/resource_district_buildings/horse_district_buildings.txt @@ -839,6 +839,12 @@ warhorse_training_1 = { stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1 } } } @@ -897,6 +903,12 @@ warhorse_training_2 = { stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1 } } } @@ -954,6 +966,12 @@ warhorse_training_3 = { stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1 } } } @@ -1011,6 +1029,12 @@ warhorse_training_4 = { stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1 } } } @@ -1068,6 +1092,12 @@ warhorse_training_5 = { stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_cavalry_damage_mult = low_maa_damage_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_damage_mult = low_maa_damage_tier_1 } } } @@ -1133,7 +1163,7 @@ horse_studfarm_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_new_building_modifier = yes } @@ -1189,7 +1219,7 @@ horse_studfarm_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1245,7 +1275,7 @@ horse_studfarm_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1301,7 +1331,7 @@ horse_studfarm_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1356,7 +1386,7 @@ horse_studfarm_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_grain CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_horses CATEGORY = trade_category_beasts_of_burden } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/incense_district_buildings.txt b/common/buildings/resource_district_buildings/incense_district_buildings.txt index b5b84af4e..d634aa633 100644 --- a/common/buildings/resource_district_buildings/incense_district_buildings.txt +++ b/common/buildings/resource_district_buildings/incense_district_buildings.txt @@ -966,7 +966,7 @@ compound_perfumery_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1016,7 +1016,7 @@ compound_perfumery_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1066,7 +1066,7 @@ compound_perfumery_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1116,7 +1116,7 @@ compound_perfumery_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1165,7 +1165,7 @@ compound_perfumery_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1422,7 +1422,7 @@ incense_distillation_workshop_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } ai_resource_building_consumer_modifier = { GOOD = trade_good_glass } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_new_building_modifier = yes } @@ -1494,7 +1494,7 @@ incense_distillation_workshop_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } ai_resource_building_consumer_modifier = { GOOD = trade_good_glass } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1566,7 +1566,7 @@ incense_distillation_workshop_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } ai_resource_building_consumer_modifier = { GOOD = trade_good_glass } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1638,7 +1638,7 @@ incense_distillation_workshop_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } ai_resource_building_consumer_modifier = { GOOD = trade_good_glass } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1709,7 +1709,7 @@ incense_distillation_workshop_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } ai_resource_building_consumer_modifier = { GOOD = trade_good_glass } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1754,6 +1754,7 @@ cosmetic_shop_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1798,6 +1799,7 @@ cosmetic_shop_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1842,6 +1844,7 @@ cosmetic_shop_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1886,6 +1889,7 @@ cosmetic_shop_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1929,6 +1933,7 @@ cosmetic_shop_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/iron_district_buildings.txt b/common/buildings/resource_district_buildings/iron_district_buildings.txt index 1803beda1..296f73a0d 100644 --- a/common/buildings/resource_district_buildings/iron_district_buildings.txt +++ b/common/buildings/resource_district_buildings/iron_district_buildings.txt @@ -330,7 +330,7 @@ blast_furnace_5 = { wind_furnace_1 = { construction_time = construction_time_6_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes county = { has_potential_for_trade_good = trade_good_type:trade_good_iron } @@ -588,7 +588,7 @@ tool_smith_1 = { base = 10 directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -655,7 +655,7 @@ tool_smith_2 = { base = 10 directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -722,7 +722,7 @@ tool_smith_3 = { base = 10 directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -789,7 +789,7 @@ tool_smith_4 = { base = 10 directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -855,7 +855,7 @@ tool_smith_5 = { base = 10 directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -916,7 +916,7 @@ weapon_armor_smith_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -976,7 +976,7 @@ weapon_armor_smith_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1036,7 +1036,7 @@ weapon_armor_smith_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1096,7 +1096,7 @@ weapon_armor_smith_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1155,6 +1155,275 @@ weapon_armor_smith_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes + ai_income_production_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +harness_forge_1 = { + + construction_time = construction_time_6_months + district_level_requirement = 3 + can_construct_potential = { + OR = { + production_of_trade_good_type = { + target = trade_good_type:trade_good_iron + value > 0 + } + production_of_trade_good_type = { + target = trade_good_type:trade_good_copper + value > 0 + } + } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_1 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_1_tribal + } + trade_good_need = { + trade_good_category = trade_category_base_metals + amount = metal_resource_need + modifiers = { + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1 + } + } + } + on_complete = { + } + next_building = harness_forge_2 + type_icon = "duchy_buildings/royal_armory.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +harness_forge_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 3 + can_construct_potential = { + OR = { + production_of_trade_good_type = { + target = trade_good_type:trade_good_iron + value > 0 + } + production_of_trade_good_type = { + target = trade_good_type:trade_good_copper + value > 0 + } + } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_2 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_2_tribal + } + trade_good_need = { + trade_good_category = trade_category_base_metals + amount = metal_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1 + } + } + } + on_complete = { + } + next_building = harness_forge_3 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +harness_forge_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + OR = { + production_of_trade_good_type = { + target = trade_good_type:trade_good_iron + value > 0 + } + production_of_trade_good_type = { + target = trade_good_type:trade_good_copper + value > 0 + } + } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_3 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_3_tribal + } + trade_good_need = { + trade_good_category = trade_category_base_metals + amount = metal_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1 + } + } + } + on_complete = { + } + next_building = harness_forge_4 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +harness_forge_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + OR = { + production_of_trade_good_type = { + target = trade_good_type:trade_good_iron + value > 0 + } + production_of_trade_good_type = { + target = trade_good_type:trade_good_copper + value > 0 + } + } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_4 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_4_tribal + } + trade_good_need = { + trade_good_category = trade_category_base_metals + amount = metal_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1 + } + } + } + on_complete = { + } + next_building = harness_forge_5 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +harness_forge_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + OR = { + production_of_trade_good_type = { + target = trade_good_type:trade_good_iron + value > 0 + } + production_of_trade_good_type = { + target = trade_good_type:trade_good_copper + value > 0 + } + } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_5 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = harness_forge_income_tier_5_tribal + } + trade_good_need = { + trade_good_category = trade_category_base_metals + amount = metal_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + stationed_heavy_infantry_damage_mult = low_maa_damage_tier_1 + stationed_heavy_infantry_toughness_mult = low_maa_toughness_tier_1 + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals } + directive_to_build_economy_modifier = yes ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/ivory_district_buildings.txt b/common/buildings/resource_district_buildings/ivory_district_buildings.txt index ffd4965b1..e9f66d17b 100644 --- a/common/buildings/resource_district_buildings/ivory_district_buildings.txt +++ b/common/buildings/resource_district_buildings/ivory_district_buildings.txt @@ -651,6 +651,7 @@ ivory_resource_building_10 = { #Uses Ivory to produce monthly piety sacred_elephant_compound_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -717,7 +718,7 @@ sacred_elephant_compound_1 = { sacred_elephant_compound_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes OR = { @@ -982,9 +983,10 @@ sacred_elephant_compound_5 = { } #Military Elephant Compound -#Uses Ivory to reduce stationed elephant cavalry maintenance +#Uses Ivory to increase stationed elephant cavalry damage and toughness military_elephant_compound_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1013,8 +1015,8 @@ military_elephant_compound_1 = { amount = basic_resource_need modifiers = { province_modifier = { - stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_elephant_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_elephant_cavalry_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1038,7 +1040,7 @@ military_elephant_compound_1 = { military_elephant_compound_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1069,8 +1071,8 @@ military_elephant_compound_2 = { can_be_filled_multiple_times = 2 modifiers = { province_modifier = { - stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_elephant_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_elephant_cavalry_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1124,8 +1126,8 @@ military_elephant_compound_3 = { can_be_filled_multiple_times = 3 modifiers = { province_modifier = { - stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_elephant_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_elephant_cavalry_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1179,8 +1181,8 @@ military_elephant_compound_4 = { can_be_filled_multiple_times = 4 modifiers = { province_modifier = { - stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_elephant_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_elephant_cavalry_toughness_mult = low_maa_toughness_tier_1 } } } @@ -1234,8 +1236,8 @@ military_elephant_compound_5 = { can_be_filled_multiple_times = 5 modifiers = { province_modifier = { - stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_elephant_cavalry_damage_mult = low_maa_damage_tier_1 + stationed_elephant_cavalry_toughness_mult = low_maa_toughness_tier_1 } } } diff --git a/common/buildings/resource_district_buildings/medicaments_district_buildings.txt b/common/buildings/resource_district_buildings/medicaments_district_buildings.txt index 72f46f0a2..66f76977c 100644 --- a/common/buildings/resource_district_buildings/medicaments_district_buildings.txt +++ b/common/buildings/resource_district_buildings/medicaments_district_buildings.txt @@ -1069,6 +1069,7 @@ medicaments_resource_building_10 = { local_hospital_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1095,6 +1096,7 @@ local_hospital_1 = { modifiers = { province_modifier = { province_size_baseline_add = local_hospital_province_size_per_medicaments_need + stationed_maa_reinforcement_rate = 0.025 } } } @@ -1116,7 +1118,7 @@ local_hospital_1 = { local_hospital_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1145,6 +1147,7 @@ local_hospital_2 = { modifiers = { province_modifier = { province_size_baseline_add = local_hospital_province_size_per_medicaments_need + stationed_maa_reinforcement_rate = 0.025 } } } @@ -1194,6 +1197,7 @@ local_hospital_3 = { modifiers = { province_modifier = { province_size_baseline_add = local_hospital_province_size_per_medicaments_need + stationed_maa_reinforcement_rate = 0.025 } } } @@ -1243,6 +1247,7 @@ local_hospital_4 = { modifiers = { province_modifier = { province_size_baseline_add = local_hospital_province_size_per_medicaments_need + stationed_maa_reinforcement_rate = 0.025 } } } @@ -1292,6 +1297,7 @@ local_hospital_5 = { modifiers = { province_modifier = { province_size_baseline_add = local_hospital_province_size_per_medicaments_need + stationed_maa_reinforcement_rate = 0.025 } } } @@ -1355,6 +1361,7 @@ apothecary_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1409,6 +1416,7 @@ apothecary_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1463,6 +1471,7 @@ apothecary_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1517,6 +1526,7 @@ apothecary_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1570,6 +1580,7 @@ apothecary_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1637,6 +1648,7 @@ theriac_workshop_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_honey } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -1709,6 +1721,7 @@ theriac_workshop_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_honey } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1781,6 +1794,7 @@ theriac_workshop_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_honey } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1853,6 +1867,7 @@ theriac_workshop_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_honey } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1924,6 +1939,7 @@ theriac_workshop_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_honey } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1933,7 +1949,6 @@ theriac_workshop_5 = { perfumery_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1977,7 +1992,7 @@ perfumery_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } ai_resource_building_need_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_new_building_modifier = yes } @@ -1987,7 +2002,7 @@ perfumery_1 = { perfumery_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2032,7 +2047,7 @@ perfumery_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } ai_resource_building_need_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2087,7 +2102,7 @@ perfumery_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } ai_resource_building_need_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2142,7 +2157,7 @@ perfumery_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } ai_resource_building_need_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2196,7 +2211,7 @@ perfumery_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } ai_resource_building_need_modifier = { GOOD = trade_good_incense } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_incense } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2249,7 +2264,7 @@ stupefactives_apothecary_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2302,7 +2317,7 @@ stupefactives_apothecary_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2355,7 +2370,7 @@ stupefactives_apothecary_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2408,7 +2423,7 @@ stupefactives_apothecary_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2460,7 +2475,7 @@ stupefactives_apothecary_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_medicaments } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/millet_district_buildings.txt b/common/buildings/resource_district_buildings/millet_district_buildings.txt index 5430b84d1..63f76f92b 100644 --- a/common/buildings/resource_district_buildings/millet_district_buildings.txt +++ b/common/buildings/resource_district_buildings/millet_district_buildings.txt @@ -707,6 +707,7 @@ millet_resource_building_10 = { double_cropping_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes @@ -758,7 +759,7 @@ double_cropping_1 = { double_cropping_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1299,7 +1300,7 @@ millet_distillery_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1360,7 +1361,7 @@ millet_distillery_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1421,7 +1422,7 @@ millet_distillery_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1482,7 +1483,7 @@ millet_distillery_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1542,7 +1543,7 @@ millet_distillery_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1836,6 +1837,7 @@ fodder_stores_5 = { millet_brewery_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 triggered_name = { trigger = { geographical_region = world_middle_east @@ -1897,7 +1899,7 @@ millet_brewery_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_new_building_modifier = yes } @@ -1925,7 +1927,7 @@ millet_brewery_2 = { } reference = "jiu_brewery_2" } - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } @@ -1970,7 +1972,7 @@ millet_brewery_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2043,7 +2045,7 @@ millet_brewery_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2116,7 +2118,7 @@ millet_brewery_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2188,7 +2190,7 @@ millet_brewery_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_millet CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2198,6 +2200,7 @@ millet_brewery_5 = { millet_granaries_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2236,7 +2239,7 @@ millet_granaries_1 = { millet_granaries_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } diff --git a/common/buildings/resource_district_buildings/mine_district_buildings.txt b/common/buildings/resource_district_buildings/mine_district_buildings.txt index 0213331ca..03e97ee2b 100644 --- a/common/buildings/resource_district_buildings/mine_district_buildings.txt +++ b/common/buildings/resource_district_buildings/mine_district_buildings.txt @@ -1095,7 +1095,7 @@ jewellers_workshop_1 = { directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_jewelry_materials } ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_precious_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_jewelry } ai_resource_new_building_modifier = yes } @@ -1182,7 +1182,7 @@ jewellers_workshop_2 = { directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_jewelry_materials } ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_precious_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_jewelry } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1269,7 +1269,7 @@ jewellers_workshop_3 = { directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_jewelry_materials } ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_precious_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_jewelry } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1356,7 +1356,7 @@ jewellers_workshop_4 = { directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_jewelry_materials } ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_precious_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_jewelry } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1441,7 +1441,7 @@ jewellers_workshop_5 = { directive_to_build_economy_modifier = yes ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_jewelry_materials } ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_precious_metals } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_jewelry } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/oil_district_buildings.txt b/common/buildings/resource_district_buildings/oil_district_buildings.txt index 7ca5da725..f61d5694b 100644 --- a/common/buildings/resource_district_buildings/oil_district_buildings.txt +++ b/common/buildings/resource_district_buildings/oil_district_buildings.txt @@ -628,6 +628,7 @@ oil_soapworks_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -672,6 +673,7 @@ oil_soapworks_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -716,6 +718,7 @@ oil_soapworks_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -760,6 +763,7 @@ oil_soapworks_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -803,6 +807,7 @@ oil_soapworks_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -845,7 +850,7 @@ olive_mill_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_new_building_modifier = yes } @@ -891,7 +896,7 @@ olive_mill_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -937,7 +942,7 @@ olive_mill_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -983,7 +988,7 @@ olive_mill_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1028,7 +1033,7 @@ olive_mill_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1038,6 +1043,7 @@ olive_mill_5 = { oil_apothecary_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1081,7 +1087,7 @@ oil_apothecary_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -1091,7 +1097,7 @@ oil_apothecary_1 = { oil_apothecary_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1136,7 +1142,7 @@ oil_apothecary_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1191,7 +1197,7 @@ oil_apothecary_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1246,7 +1252,7 @@ oil_apothecary_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1300,7 +1306,7 @@ oil_apothecary_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1310,6 +1316,7 @@ oil_apothecary_5 = { oil_waxworks_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1344,6 +1351,7 @@ oil_waxworks_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1352,7 +1360,7 @@ oil_waxworks_1 = { oil_waxworks_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1388,6 +1396,7 @@ oil_waxworks_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1432,6 +1441,7 @@ oil_waxworks_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1476,6 +1486,7 @@ oil_waxworks_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1519,6 +1530,7 @@ oil_waxworks_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/rice_district_buildings.txt b/common/buildings/resource_district_buildings/rice_district_buildings.txt index f25f1817a..fe220c000 100644 --- a/common/buildings/resource_district_buildings/rice_district_buildings.txt +++ b/common/buildings/resource_district_buildings/rice_district_buildings.txt @@ -896,12 +896,17 @@ rice_resource_building_10 = { #Turns Rice into Wine rice_winery_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { + custom_tooltip = { + text = unlocks_rice_winery_tt + culture = { has_cultural_parameter = unlocks_rice_winery } + } } show_disabled = yes @@ -929,7 +934,7 @@ rice_winery_1 = { amount = basic_resource_need modifiers = { province_modifier = { - trade_good_beer_production_add = rice_winery_output_per_level + trade_good_wine_production_add = rice_winery_output_per_level } province_government_modifier = { not_parameter = government_is_tribal @@ -962,24 +967,28 @@ rice_winery_1 = { ai_value = { base = 10 - ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_resource_building_need_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } - ai_income_building_modifier = yes - ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_income_production_building_modifier = yes + ai_market_category_shortage_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_new_building_modifier = yes } } rice_winery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } } can_construct_showing_failures_only = { + custom_tooltip = { + text = unlocks_rice_winery_tt + culture = { has_cultural_parameter = unlocks_rice_winery } + } } is_enabled = { @@ -1012,7 +1021,7 @@ rice_winery_2 = { can_be_filled_multiple_times = 2 modifiers = { province_modifier = { - trade_good_beer_production_add = rice_winery_output_per_level + trade_good_wine_production_add = rice_winery_output_per_level } province_government_modifier = { not_parameter = government_is_tribal @@ -1044,12 +1053,12 @@ rice_winery_2 = { ai_value = { base = 10 - ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_resource_building_need_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } - ai_income_building_modifier = yes - ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_income_production_building_modifier = yes + ai_market_category_shortage_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1062,6 +1071,10 @@ rice_winery_3 = { } can_construct_showing_failures_only = { + custom_tooltip = { + text = unlocks_rice_winery_tt + culture = { has_cultural_parameter = unlocks_rice_winery } + } } is_enabled = { @@ -1094,7 +1107,7 @@ rice_winery_3 = { can_be_filled_multiple_times = 3 modifiers = { province_modifier = { - trade_good_beer_production_add = rice_winery_output_per_level + trade_good_wine_production_add = rice_winery_output_per_level } province_government_modifier = { not_parameter = government_is_tribal @@ -1128,12 +1141,12 @@ rice_winery_3 = { ai_value = { base = 10 - ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_resource_building_need_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } - ai_income_building_modifier = yes - ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_income_production_building_modifier = yes + ai_market_category_shortage_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1144,10 +1157,13 @@ rice_winery_4 = { district_level_requirement = 5 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } - has_building_or_higher = grain_resource_building_1 } can_construct_showing_failures_only = { + custom_tooltip = { + text = unlocks_rice_winery_tt + culture = { has_cultural_parameter = unlocks_rice_winery } + } } is_enabled = { @@ -1180,7 +1196,7 @@ rice_winery_4 = { can_be_filled_multiple_times = 5 modifiers = { province_modifier = { - trade_good_beer_production_add = rice_winery_output_per_level + trade_good_wine_production_add = rice_winery_output_per_level } province_government_modifier = { not_parameter = government_is_tribal @@ -1214,12 +1230,12 @@ rice_winery_4 = { ai_value = { base = 10 - ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_resource_building_need_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } - ai_income_building_modifier = yes - ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_income_production_building_modifier = yes + ai_market_category_shortage_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1230,10 +1246,13 @@ rice_winery_5 = { district_level_requirement = 9 can_construct_potential = { NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } - has_building_or_higher = grain_resource_building_1 } can_construct_showing_failures_only = { + custom_tooltip = { + text = unlocks_rice_winery_tt + culture = { has_cultural_parameter = unlocks_rice_winery } + } } is_enabled = { @@ -1268,7 +1287,7 @@ rice_winery_5 = { can_be_filled_multiple_times = 5 modifiers = { province_modifier = { - trade_good_beer_production_add = rice_winery_output_per_level + trade_good_wine_production_add = rice_winery_output_per_level } province_government_modifier = { not_parameter = government_is_tribal @@ -1300,12 +1319,12 @@ rice_winery_5 = { ai_value = { base = 10 - ai_resource_building_need_category_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_resource_building_need_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } - ai_income_building_modifier = yes - ai_market_category_shortage_modifier = { GOOD = trade_good_beer CATEGORY = trade_category_alcohol } + ai_income_production_building_modifier = yes + ai_market_category_shortage_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1328,6 +1347,10 @@ rice_straw_weaving_1 = { cost_gold = resource_district_normal_tier_1_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_rice amount = basic_resource_need @@ -1345,6 +1368,26 @@ rice_straw_weaving_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1358,6 +1401,7 @@ rice_straw_weaving_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1381,6 +1425,10 @@ rice_straw_weaving_2 = { cost_gold = resource_district_normal_tier_2_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_rice amount = basic_resource_need @@ -1400,6 +1448,30 @@ rice_straw_weaving_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1412,6 +1484,7 @@ rice_straw_weaving_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1435,6 +1508,10 @@ rice_straw_weaving_3 = { cost_gold = resource_district_normal_tier_3_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_rice amount = basic_resource_need @@ -1454,6 +1531,30 @@ rice_straw_weaving_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1466,6 +1567,7 @@ rice_straw_weaving_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1489,6 +1591,10 @@ rice_straw_weaving_4 = { cost_gold = resource_district_normal_tier_4_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_rice amount = basic_resource_need @@ -1508,6 +1614,30 @@ rice_straw_weaving_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1520,6 +1650,7 @@ rice_straw_weaving_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1543,6 +1674,10 @@ rice_straw_weaving_5 = { cost_gold = resource_district_normal_tier_5_cost + market_modifier = { + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 + } trade_good_need = { trade_good = trade_good_rice amount = basic_resource_need @@ -1562,6 +1697,30 @@ rice_straw_weaving_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1573,6 +1732,7 @@ rice_straw_weaving_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1582,6 +1742,7 @@ rice_straw_weaving_5 = { #Uses Rice Straw to reduce rural district construction cost rice_thatching_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes @@ -1626,7 +1787,7 @@ rice_thatching_1 = { rice_thatching_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2014,6 +2175,7 @@ rice_bran_mill_5 = { husk_warehouse_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2052,7 +2214,7 @@ husk_warehouse_1 = { husk_warehouse_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2238,6 +2400,7 @@ fine_flour_mills_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2282,6 +2445,7 @@ fine_flour_mills_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2326,6 +2490,7 @@ fine_flour_mills_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2370,6 +2535,7 @@ fine_flour_mills_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2413,6 +2579,7 @@ fine_flour_mills_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2461,7 +2628,7 @@ rice_confectionary_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2511,7 +2678,7 @@ rice_confectionary_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2561,7 +2728,7 @@ rice_confectionary_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2611,7 +2778,7 @@ rice_confectionary_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2660,7 +2827,7 @@ rice_confectionary_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_rice CATEGORY = trade_category_cereals } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/salt_district_buildings.txt b/common/buildings/resource_district_buildings/salt_district_buildings.txt index 250ef57b7..368c7836a 100644 --- a/common/buildings/resource_district_buildings/salt_district_buildings.txt +++ b/common/buildings/resource_district_buildings/salt_district_buildings.txt @@ -56,7 +56,7 @@ salt_collectors_2 = { construction_time = construction_time_9_months can_construct_showing_failures_only = { - has_building_or_higher = salt_resource_building_5 + building_mineral_early_medieval_trigger = yes } is_enabled = { @@ -101,7 +101,7 @@ salt_collectors_3 = { construction_time = construction_time_1_year can_construct_showing_failures_only = { - has_building_or_higher = salt_resource_building_9 + building_mineral_high_medieval_trigger = yes } is_enabled = { @@ -874,7 +874,7 @@ pan_smith_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_new_building_modifier = yes } @@ -920,7 +920,7 @@ pan_smith_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -966,7 +966,7 @@ pan_smith_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1012,7 +1012,7 @@ pan_smith_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1057,7 +1057,7 @@ pan_smith_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_iron } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1263,6 +1263,7 @@ sack_basket_weavers_5 = { # Salt Taxation Office salt_taxation_office_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 triggered_name = { trigger = { culture = { has_cultural_pillar = heritage_frankish } } reference = "salt_taxation_office_gabelle" @@ -1315,7 +1316,7 @@ salt_taxation_office_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1334,7 +1335,7 @@ salt_taxation_office_2 = { reference = "salt_taxation_office_afolies" } - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1375,7 +1376,7 @@ salt_taxation_office_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1435,7 +1436,7 @@ salt_taxation_office_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1495,7 +1496,7 @@ salt_taxation_office_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1554,7 +1555,7 @@ salt_taxation_office_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } diff --git a/common/buildings/resource_district_buildings/shared_resource_district_buildings.txt b/common/buildings/resource_district_buildings/shared_resource_district_buildings.txt index 3cdfa99aa..70eb895d3 100644 --- a/common/buildings/resource_district_buildings/shared_resource_district_buildings.txt +++ b/common/buildings/resource_district_buildings/shared_resource_district_buildings.txt @@ -864,6 +864,7 @@ cooper_workshop_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -917,6 +918,7 @@ cooper_workshop_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -970,6 +972,7 @@ cooper_workshop_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1023,6 +1026,7 @@ cooper_workshop_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1075,6 +1079,7 @@ cooper_workshop_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1091,7 +1096,6 @@ cooper_workshop_5 = { cattle_tannery_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = leather_forbidden } } @@ -1155,7 +1159,7 @@ cattle_tannery_1 = { ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_new_building_modifier = yes } @@ -1165,7 +1169,7 @@ cattle_tannery_1 = { cattle_tannery_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = leather_forbidden } } @@ -1267,7 +1271,7 @@ cattle_tannery_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1378,7 +1382,7 @@ cattle_tannery_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1489,7 +1493,7 @@ cattle_tannery_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1599,7 +1603,7 @@ cattle_tannery_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1611,6 +1615,7 @@ cattle_tannery_5 = { wool_tannery_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = leather_forbidden } } @@ -1674,7 +1679,7 @@ wool_tannery_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_new_building_modifier = yes } @@ -1684,7 +1689,7 @@ wool_tannery_1 = { wool_tannery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = leather_forbidden } } @@ -1786,7 +1791,7 @@ wool_tannery_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1897,7 +1902,7 @@ wool_tannery_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2008,7 +2013,7 @@ wool_tannery_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2118,7 +2123,7 @@ wool_tannery_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2193,7 +2198,7 @@ furs_tannery_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_furs } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_new_building_modifier = yes } @@ -2305,7 +2310,7 @@ furs_tannery_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2416,7 +2421,7 @@ furs_tannery_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2527,7 +2532,7 @@ furs_tannery_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2637,7 +2642,7 @@ furs_tannery_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_salt } ai_resource_building_consumer_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_leather } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2701,6 +2706,7 @@ paper_workshop_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_new_building_modifier = yes } @@ -2760,6 +2766,7 @@ paper_workshop_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2819,6 +2826,7 @@ paper_workshop_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2878,6 +2886,7 @@ paper_workshop_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2936,6 +2945,7 @@ paper_workshop_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2995,6 +3005,7 @@ dyehouse_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -3073,6 +3084,7 @@ dyehouse_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -3171,6 +3183,7 @@ dyehouse_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -3289,6 +3302,7 @@ dyehouse_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -3426,6 +3440,7 @@ dyehouse_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -3434,6 +3449,7 @@ dyehouse_5 = { seasonal_labor_shared_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -3444,17 +3460,7 @@ seasonal_labor_shared_1 = { } cost_gold = resource_district_normal_tier_1_cost province_modifier = { - trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_1 - trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_1 + trade_category_seasonal_goods_production_mult = seasonal_labor_shared_agri_mult_tier_1 monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_1 agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_1 } @@ -3473,7 +3479,7 @@ seasonal_labor_shared_1 = { seasonal_labor_shared_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -3484,17 +3490,7 @@ seasonal_labor_shared_2 = { } cost_gold = resource_district_normal_tier_2_cost province_modifier = { - trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_2 - trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_2 + trade_category_seasonal_goods_production_mult = seasonal_labor_shared_agri_mult_tier_2 monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_2 agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_2 } @@ -3523,17 +3519,7 @@ seasonal_labor_shared_3 = { } cost_gold = resource_district_normal_tier_3_cost province_modifier = { - trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_3 - trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_3 + trade_category_seasonal_goods_production_mult = seasonal_labor_shared_agri_mult_tier_3 monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_3 agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_3 } @@ -3562,17 +3548,7 @@ seasonal_labor_shared_4 = { } cost_gold = resource_district_normal_tier_4_cost province_modifier = { - trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_4 - trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_4 + trade_category_seasonal_goods_production_mult = seasonal_labor_shared_agri_mult_tier_4 monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_4 agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_4 } @@ -3601,17 +3577,7 @@ seasonal_labor_shared_5 = { } cost_gold = resource_district_normal_tier_5_cost province_modifier = { - trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_5 - trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_5 + trade_category_seasonal_goods_production_mult = seasonal_labor_shared_agri_mult_tier_5 monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_5 agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_5 } @@ -3846,10 +3812,12 @@ saddlers_1 = { not_rite_parameter = leather_forbidden modifiers = { province_modifier = { - stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1 + stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -3869,6 +3837,7 @@ saddlers_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_leather } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -3910,10 +3879,12 @@ saddlers_2 = { modifiers = { province_modifier = { - stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1 + stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -3932,6 +3903,7 @@ saddlers_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_leather } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -3973,10 +3945,12 @@ saddlers_3 = { modifiers = { province_modifier = { - stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1 + stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -3995,6 +3969,7 @@ saddlers_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_leather } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -4036,10 +4011,12 @@ saddlers_4 = { modifiers = { province_modifier = { - stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1 + stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -4058,6 +4035,7 @@ saddlers_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_leather } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -4099,10 +4077,12 @@ saddlers_5 = { modifiers = { province_modifier = { - stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction - stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction + stationed_light_cavalry_toughness_mult = low_maa_toughness_tier_1 + stationed_heavy_cavalry_toughness_mult = low_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = unlock_maa_horse_archers + stationed_archer_cavalry_toughness_mult = low_maa_toughness_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -4120,6 +4100,7 @@ saddlers_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_leather } directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -4151,9 +4132,9 @@ small_mining_pit_1 = { type_icon = "resource_buildings/mines.dds" ai_value = { base = 10 - ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone } + ai_general_building_modifier = yes directive_to_build_economy_modifier = yes - ai_market_staple_shortage_modifier = { GOOD = trade_good_stone } + ai_economical_building_preference_modifier = yes ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines } ai_resource_new_building_modifier = yes } @@ -4190,9 +4171,9 @@ small_mining_pit_2 = { type_icon = "resource_buildings/mines.dds" ai_value = { base = 10 - ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone } + ai_general_building_modifier = yes directive_to_build_economy_modifier = yes - ai_market_staple_shortage_modifier = { GOOD = trade_good_stone } + ai_economical_building_preference_modifier = yes ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -4228,9 +4209,9 @@ small_mining_pit_3 = { type_icon = "resource_buildings/mines.dds" ai_value = { base = 10 - ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone } + ai_general_building_modifier = yes directive_to_build_economy_modifier = yes - ai_market_staple_shortage_modifier = { GOOD = trade_good_stone } + ai_economical_building_preference_modifier = yes ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -4654,6 +4635,7 @@ naphta_pit_1 = { cost_gold = resource_district_normal_tier_1_cost province_modifier = { trade_good_medicaments_production_add = naphta_pit_medicaments_tier_1 + stationed_maa_siege_value_mult = low_maa_siege_value_tier_1 } province_government_modifier = { not_parameter = government_is_tribal @@ -4693,6 +4675,7 @@ naphta_pit_2 = { cost_gold = resource_district_normal_tier_2_cost province_modifier = { trade_good_medicaments_production_add = naphta_pit_medicaments_tier_2 + stationed_maa_siege_value_mult = low_maa_siege_value_tier_2 } province_government_modifier = { not_parameter = government_is_tribal @@ -4731,6 +4714,7 @@ naphta_pit_3 = { cost_gold = resource_district_normal_tier_3_cost province_modifier = { trade_good_medicaments_production_add = naphta_pit_medicaments_tier_3 + stationed_maa_siege_value_mult = low_maa_siege_value_tier_3 } province_government_modifier = { not_parameter = government_is_tribal @@ -4769,6 +4753,7 @@ naphta_pit_4 = { cost_gold = resource_district_normal_tier_4_cost province_modifier = { trade_good_medicaments_production_add = naphta_pit_medicaments_tier_4 + stationed_maa_siege_value_mult = low_maa_siege_value_tier_4 } province_government_modifier = { not_parameter = government_is_tribal @@ -4807,6 +4792,7 @@ naphta_pit_5 = { cost_gold = resource_district_normal_tier_5_cost province_modifier = { trade_good_medicaments_production_add = naphta_pit_medicaments_tier_5 + stationed_maa_siege_value_mult = low_maa_siege_value_tier_5 } province_government_modifier = { not_parameter = government_is_tribal @@ -4827,3 +4813,1366 @@ naphta_pit_5 = { } } + +tunnelers_guild_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + building_requirement_non_tribal = yes + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_1 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_1_tribal + } + trade_good_need = { + trade_good = trade_good_wood + amount = basic_resource_need + modifiers = { + province_modifier = { + stationed_siege_weapon_siege_value_mult = low_maa_siege_value_tier_1 + } + } + } + on_complete = { + } + next_building = tunnelers_guild_2 + type_icon = "regular_buildings/siege_works.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +tunnelers_guild_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + building_requirement_non_tribal = yes + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_2 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_2_tribal + } + trade_good_need = { + trade_good = trade_good_wood + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_siege_weapon_siege_value_mult = low_maa_siege_value_tier_1 + } + } + } + on_complete = { + } + next_building = tunnelers_guild_3 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +tunnelers_guild_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + building_requirement_non_tribal = yes + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_3 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_3_tribal + } + trade_good_need = { + trade_good = trade_good_wood + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_siege_weapon_siege_value_mult = low_maa_siege_value_tier_1 + } + } + } + on_complete = { + } + next_building = tunnelers_guild_4 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +tunnelers_guild_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + building_requirement_non_tribal = yes + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_4 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_4_tribal + } + trade_good_need = { + trade_good = trade_good_wood + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_siege_weapon_siege_value_mult = low_maa_siege_value_tier_1 + } + } + } + on_complete = { + } + next_building = tunnelers_guild_5 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +tunnelers_guild_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + building_requirement_non_tribal = yes + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_5 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_mining_tax = tunnelers_guild_income_tier_5_tribal + } + trade_good_need = { + trade_good = trade_good_wood + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + stationed_siege_weapon_siege_value_mult = low_maa_siege_value_tier_1 + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +bowyers_workshop_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_1 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_1_tribal + } + trade_good_need = { + trade_good_category = trade_category_carpentry_supplies + amount = basic_resource_need + modifiers = { + province_modifier = { + stationed_archers_damage_mult = low_maa_damage_tier_1 + } + } + } + on_complete = { + } + next_building = bowyers_workshop_2 + type_icon = "regular_buildings/archery_ranges.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_carpentry_supplies } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +bowyers_workshop_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_2 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_2_tribal + } + trade_good_need = { + trade_good_category = trade_category_carpentry_supplies + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + stationed_archers_damage_mult = low_maa_damage_tier_1 + } + } + } + on_complete = { + } + next_building = bowyers_workshop_3 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_carpentry_supplies } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +bowyers_workshop_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_3 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_3_tribal + } + trade_good_need = { + trade_good_category = trade_category_carpentry_supplies + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + stationed_archers_damage_mult = low_maa_damage_tier_1 + } + } + } + on_complete = { + } + next_building = bowyers_workshop_4 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_carpentry_supplies } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +bowyers_workshop_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_4 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_4_tribal + } + trade_good_need = { + trade_good_category = trade_category_carpentry_supplies + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + stationed_archers_damage_mult = low_maa_damage_tier_1 + } + } + } + on_complete = { + } + next_building = bowyers_workshop_5 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_carpentry_supplies } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +bowyers_workshop_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + province_government_modifier = { + not_parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_5 + } + province_government_modifier = { + parameter = government_is_tribal + monthly_woodland_tax = bowyers_workshop_income_tier_5_tribal + } + trade_good_need = { + trade_good_category = trade_category_carpentry_supplies + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + stationed_archers_damage_mult = low_maa_damage_tier_1 + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_carpentry_supplies } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +harvest_levy_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + levy = small_building_levy_tier_1 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_1 + } + trade_good_need = { + trade_good_category = trade_category_cereals + amount = basic_resource_need + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need_tribal + } + } + } + on_complete = { + } + next_building = harvest_levy_2 + type_icon = "regular_buildings/militia_musterhouses.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_cereals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +harvest_levy_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + levy = small_building_levy_tier_2 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_2 + } + trade_good_need = { + trade_good_category = trade_category_cereals + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need_tribal + } + } + } + on_complete = { + } + next_building = harvest_levy_3 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_cereals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +harvest_levy_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + levy = small_building_levy_tier_3 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_3 + } + trade_good_need = { + trade_good_category = trade_category_cereals + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need_tribal + } + } + } + on_complete = { + } + next_building = harvest_levy_4 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_cereals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +harvest_levy_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + levy = small_building_levy_tier_4 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_4 + } + trade_good_need = { + trade_good_category = trade_category_cereals + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need_tribal + } + } + } + on_complete = { + } + next_building = harvest_levy_5 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_cereals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +harvest_levy_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + levy = small_building_levy_tier_5 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_5 + } + trade_good_need = { + trade_good_category = trade_category_cereals + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = harvest_levy_agricultural_tax_per_cereals_need_tribal + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_cereals } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +growers_levy_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + levy = small_building_levy_tier_1 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_1 + } + trade_good_need = { + trade_good_category = trade_category_comforts + amount = basic_resource_need + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need_tribal + } + } + } + on_complete = { + } + next_building = growers_levy_2 + type_icon = "regular_buildings/militia_musterhouses.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_comforts } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +growers_levy_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + levy = small_building_levy_tier_2 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_2 + } + trade_good_need = { + trade_good_category = trade_category_comforts + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need_tribal + } + } + } + on_complete = { + } + next_building = growers_levy_3 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_comforts } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +growers_levy_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + levy = small_building_levy_tier_3 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_3 + } + trade_good_need = { + trade_good_category = trade_category_comforts + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need_tribal + } + } + } + on_complete = { + } + next_building = growers_levy_4 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_comforts } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +growers_levy_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + levy = small_building_levy_tier_4 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_4 + } + trade_good_need = { + trade_good_category = trade_category_comforts + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need_tribal + } + } + } + on_complete = { + } + next_building = growers_levy_5 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_comforts } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +growers_levy_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + levy = small_building_levy_tier_5 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_5 + } + trade_good_need = { + trade_good_category = trade_category_comforts + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = growers_levy_agricultural_tax_per_comforts_need_tribal + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_comforts } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +fishermans_levy_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + levy = small_building_levy_tier_1 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_1 + } + trade_good_need = { + trade_good = trade_good_fish + amount = basic_resource_need + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need_tribal + } + } + } + on_complete = { + } + next_building = fishermans_levy_2 + type_icon = "regular_buildings/militia_musterhouses.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +fishermans_levy_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + levy = small_building_levy_tier_2 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_2 + } + trade_good_need = { + trade_good = trade_good_fish + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need_tribal + } + } + } + on_complete = { + } + next_building = fishermans_levy_3 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +fishermans_levy_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + levy = small_building_levy_tier_3 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_3 + } + trade_good_need = { + trade_good = trade_good_fish + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need_tribal + } + } + } + on_complete = { + } + next_building = fishermans_levy_4 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +fishermans_levy_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + levy = small_building_levy_tier_4 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_4 + } + trade_good_need = { + trade_good = trade_good_fish + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need_tribal + } + } + } + on_complete = { + } + next_building = fishermans_levy_5 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +fishermans_levy_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + levy = small_building_levy_tier_5 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_5 + } + trade_good_need = { + trade_good = trade_good_fish + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_maritime_tax = fishermans_levy_maritime_tax_per_fish_need_tribal + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_fish } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} + +plantation_levy_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + levy = small_building_levy_tier_1 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_1 + } + trade_good_need = { + trade_good_category = trade_category_luxury_consumption + amount = basic_resource_need + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need_tribal + } + } + } + on_complete = { + } + next_building = plantation_levy_2 + type_icon = "regular_buildings/militia_musterhouses.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_luxury_consumption } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +plantation_levy_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + levy = small_building_levy_tier_2 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_2 + } + trade_good_need = { + trade_good_category = trade_category_luxury_consumption + amount = basic_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need_tribal + } + } + } + on_complete = { + } + next_building = plantation_levy_3 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_luxury_consumption } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +plantation_levy_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + levy = small_building_levy_tier_3 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_3 + } + trade_good_need = { + trade_good_category = trade_category_luxury_consumption + amount = basic_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need_tribal + } + } + } + on_complete = { + } + next_building = plantation_levy_4 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_luxury_consumption } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +plantation_levy_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + levy = small_building_levy_tier_4 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_4 + } + trade_good_need = { + trade_good_category = trade_category_luxury_consumption + amount = basic_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need_tribal + } + } + } + on_complete = { + } + next_building = plantation_levy_5 + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_luxury_consumption } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +plantation_levy_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + levy = small_building_levy_tier_5 + province_modifier = { + supply_limit = poor_building_supply_limit_tier_5 + } + trade_good_need = { + trade_good_category = trade_category_luxury_consumption + amount = basic_resource_need + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + levy_reinforcement_rate = 0.05 + } + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = plantation_levy_agricultural_tax_per_luxury_consumption_need_tribal + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_luxury_consumption } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} diff --git a/common/buildings/resource_district_buildings/silk_district_buildings.txt b/common/buildings/resource_district_buildings/silk_district_buildings.txt index ae042167e..9de38a2a7 100644 --- a/common/buildings/resource_district_buildings/silk_district_buildings.txt +++ b/common/buildings/resource_district_buildings/silk_district_buildings.txt @@ -951,6 +951,8 @@ textiles_silk_building_1 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -969,6 +971,26 @@ textiles_silk_building_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -983,7 +1005,7 @@ textiles_silk_building_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1018,6 +1040,8 @@ textiles_silk_building_2 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1038,6 +1062,30 @@ textiles_silk_building_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1051,7 +1099,7 @@ textiles_silk_building_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1086,6 +1134,8 @@ textiles_silk_building_3 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1106,6 +1156,30 @@ textiles_silk_building_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1119,7 +1193,7 @@ textiles_silk_building_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1154,6 +1228,8 @@ textiles_silk_building_4 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1174,6 +1250,30 @@ textiles_silk_building_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1187,7 +1287,7 @@ textiles_silk_building_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1222,6 +1322,8 @@ textiles_silk_building_5 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1242,6 +1344,30 @@ textiles_silk_building_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1255,7 +1381,7 @@ textiles_silk_building_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1290,6 +1416,8 @@ textiles_silk_building_6 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1310,6 +1438,30 @@ textiles_silk_building_6 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 6 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 6 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1323,7 +1475,7 @@ textiles_silk_building_6 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 6 } } @@ -1358,6 +1510,8 @@ textiles_silk_building_7 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1378,6 +1532,30 @@ textiles_silk_building_7 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 7 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 7 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1391,7 +1569,7 @@ textiles_silk_building_7 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 7 } } @@ -1426,6 +1604,8 @@ textiles_silk_building_8 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1446,6 +1626,30 @@ textiles_silk_building_8 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 8 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 8 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1459,7 +1663,7 @@ textiles_silk_building_8 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 8 } } @@ -1494,6 +1698,8 @@ textiles_silk_building_9 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1514,6 +1720,30 @@ textiles_silk_building_9 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 9 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 9 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1527,7 +1757,7 @@ textiles_silk_building_9 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 9 } } @@ -1562,6 +1792,8 @@ textiles_silk_building_10 = { market_modifier = { trade_good_silk_sell_price_mult = price_textiles_silk_building + trade_good_alum_sell_price_mult = price_textiles_silk_building + trade_good_dyes_sell_price_mult = price_textiles_silk_building } trade_good_need = { trade_good = trade_good_silk @@ -1582,6 +1814,30 @@ textiles_silk_building_10 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 10 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 10 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { @@ -1593,7 +1849,7 @@ textiles_silk_building_10 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 10 } } @@ -1646,7 +1902,7 @@ mulberry_paper_mill_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_new_building_modifier = yes } @@ -1701,7 +1957,7 @@ mulberry_paper_mill_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1756,7 +2012,7 @@ mulberry_paper_mill_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1811,7 +2067,7 @@ mulberry_paper_mill_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1865,7 +2121,7 @@ mulberry_paper_mill_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_books_paper } ai_resource_building_consumer_modifier = { GOOD = trade_good_silk } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_books_paper } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1875,6 +2131,7 @@ mulberry_paper_mill_5 = { floss_spinnery_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1910,7 +2167,7 @@ floss_spinnery_1 = { floss_spinnery_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -2247,6 +2504,7 @@ half_silk_weavery_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_silk CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2302,6 +2560,7 @@ half_silk_weavery_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_silk CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2357,6 +2616,7 @@ half_silk_weavery_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_silk CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2412,6 +2672,7 @@ half_silk_weavery_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_silk CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2466,6 +2727,7 @@ half_silk_weavery_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_silk CATEGORY = trade_category_fabrics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/spices_district_buildings.txt b/common/buildings/resource_district_buildings/spices_district_buildings.txt index 42c09464d..f03ce8510 100644 --- a/common/buildings/resource_district_buildings/spices_district_buildings.txt +++ b/common/buildings/resource_district_buildings/spices_district_buildings.txt @@ -734,7 +734,7 @@ spice_apothecary_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -799,7 +799,7 @@ spice_apothecary_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -864,7 +864,7 @@ spice_apothecary_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -929,7 +929,7 @@ spice_apothecary_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -992,7 +992,7 @@ spice_apothecary_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1414,7 +1414,6 @@ comfit_maker_5 = { garbler_office_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1457,7 +1456,7 @@ garbler_office_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1466,7 +1465,7 @@ garbler_office_1 = { garbler_office_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1510,7 +1509,7 @@ garbler_office_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1563,7 +1562,7 @@ garbler_office_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1616,7 +1615,7 @@ garbler_office_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1668,7 +1667,7 @@ garbler_office_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_spices } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/stone_district_buildings.txt b/common/buildings/resource_district_buildings/stone_district_buildings.txt index ef6209523..e9d815b64 100644 --- a/common/buildings/resource_district_buildings/stone_district_buildings.txt +++ b/common/buildings/resource_district_buildings/stone_district_buildings.txt @@ -1508,7 +1508,7 @@ millstone_workshop_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1553,7 +1553,7 @@ millstone_workshop_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1598,7 +1598,7 @@ millstone_workshop_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1643,7 +1643,7 @@ millstone_workshop_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1687,7 +1687,7 @@ millstone_workshop_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1731,6 +1731,7 @@ whetstone_workshop_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1775,6 +1776,7 @@ whetstone_workshop_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1819,6 +1821,7 @@ whetstone_workshop_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1863,6 +1866,7 @@ whetstone_workshop_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1906,6 +1910,7 @@ whetstone_workshop_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -2112,6 +2117,7 @@ mortar_workshop_5 = { quarry_port_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes county = { is_coastal_county = yes } @@ -2146,7 +2152,7 @@ quarry_port_1 = { quarry_port_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes county = { is_coastal_county = yes } @@ -2316,7 +2322,7 @@ grindstone_maker_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -2361,7 +2367,7 @@ grindstone_maker_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2406,7 +2412,7 @@ grindstone_maker_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2451,7 +2457,7 @@ grindstone_maker_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2495,7 +2501,7 @@ grindstone_maker_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_stone } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/sugar_district_buildings.txt b/common/buildings/resource_district_buildings/sugar_district_buildings.txt index 04cd8d42b..631403c03 100644 --- a/common/buildings/resource_district_buildings/sugar_district_buildings.txt +++ b/common/buildings/resource_district_buildings/sugar_district_buildings.txt @@ -99,7 +99,7 @@ sugar_distillery_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -154,7 +154,7 @@ sugar_distillery_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -209,7 +209,7 @@ sugar_distillery_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -264,7 +264,7 @@ sugar_distillery_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -318,7 +318,7 @@ sugar_distillery_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1250,7 +1250,7 @@ confectionary_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1308,7 +1308,7 @@ confectionary_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1366,7 +1366,7 @@ confectionary_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1424,7 +1424,7 @@ confectionary_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1481,7 +1481,7 @@ confectionary_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } diff --git a/common/buildings/resource_district_buildings/tea_district_buildings.txt b/common/buildings/resource_district_buildings/tea_district_buildings.txt index fb7839b80..8fe0e64e2 100644 --- a/common/buildings/resource_district_buildings/tea_district_buildings.txt +++ b/common/buildings/resource_district_buildings/tea_district_buildings.txt @@ -844,7 +844,7 @@ tea_charcoal_burners_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -898,7 +898,7 @@ tea_charcoal_burners_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -952,7 +952,7 @@ tea_charcoal_burners_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1006,7 +1006,7 @@ tea_charcoal_burners_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1059,7 +1059,7 @@ tea_charcoal_burners_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1332,6 +1332,7 @@ jar_packing_workshops_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -1380,6 +1381,7 @@ jar_packing_workshops_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -1428,6 +1430,7 @@ jar_packing_workshops_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -1476,6 +1479,7 @@ jar_packing_workshops_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1523,6 +1527,7 @@ jar_packing_workshops_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_ceramics } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } diff --git a/common/buildings/resource_district_buildings/wine_district_buildings.txt b/common/buildings/resource_district_buildings/wine_district_buildings.txt index c1d778a99..13f393051 100644 --- a/common/buildings/resource_district_buildings/wine_district_buildings.txt +++ b/common/buildings/resource_district_buildings/wine_district_buildings.txt @@ -935,6 +935,7 @@ beam_press_5 = { long_term_wine_storage_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } @@ -984,7 +985,7 @@ long_term_wine_storage_1 = { long_term_wine_storage_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } @@ -1187,7 +1188,6 @@ long_term_wine_storage_5 = { vinegar_stores_1 = { construction_time = construction_time_6_months - district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1227,7 +1227,7 @@ vinegar_stores_1 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } @@ -1236,7 +1236,7 @@ vinegar_stores_1 = { vinegar_stores_2 = { construction_time = construction_time_9_months - district_level_requirement = 3 + district_level_requirement = 2 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1277,7 +1277,7 @@ vinegar_stores_2 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1327,7 +1327,7 @@ vinegar_stores_3 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1377,7 +1377,7 @@ vinegar_stores_4 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1426,7 +1426,7 @@ vinegar_stores_5 = { base = 10 ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1480,7 +1480,7 @@ wine_distillery_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -1536,7 +1536,7 @@ wine_distillery_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1592,7 +1592,7 @@ wine_distillery_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1648,7 +1648,7 @@ wine_distillery_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1703,7 +1703,7 @@ wine_distillery_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1757,7 +1757,7 @@ tartar_collector_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_alum } ai_resource_new_building_modifier = yes } @@ -1812,7 +1812,7 @@ tartar_collector_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_alum } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1867,7 +1867,7 @@ tartar_collector_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_alum } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1922,7 +1922,7 @@ tartar_collector_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_alum } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1976,9 +1976,232 @@ tartar_collector_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_alum } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_wine CATEGORY = trade_category_alcohol } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_alum } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } + +soldiers_feast_hall_1 = { + + construction_time = construction_time_6_months + can_construct_potential = { + NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_1_cost + province_modifier = { + stationed_maa_damage_mult = low_maa_damage_tier_1 + } + trade_good_need = { + trade_good = trade_good_wine + amount = basic_resource_need + not_rite_parameter = alcohol_forbidden + modifiers = { + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need_tribal + } + } + } + on_complete = { + } + next_building = soldiers_feast_hall_2 + type_icon = "regular_buildings/guild_feast_hall.dds" + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wine } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_new_building_modifier = yes + } + +} + +soldiers_feast_hall_2 = { + + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_2_cost + province_modifier = { + stationed_maa_damage_mult = low_maa_damage_tier_2 + } + trade_good_need = { + trade_good = trade_good_wine + amount = basic_resource_need + not_rite_parameter = alcohol_forbidden + can_be_filled_multiple_times = 2 + modifiers = { + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need_tribal + } + } + } + on_complete = { + } + next_building = soldiers_feast_hall_3 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wine } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 2 } + } + +} + +soldiers_feast_hall_3 = { + + construction_time = construction_time_1_year + district_level_requirement = 5 + can_construct_potential = { + NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_3_cost + province_modifier = { + stationed_maa_damage_mult = low_maa_damage_tier_3 + } + trade_good_need = { + trade_good = trade_good_wine + amount = basic_resource_need + not_rite_parameter = alcohol_forbidden + can_be_filled_multiple_times = 3 + modifiers = { + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need_tribal + } + } + } + on_complete = { + } + next_building = soldiers_feast_hall_4 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wine } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 3 } + } + +} + +soldiers_feast_hall_4 = { + + construction_time = construction_time_2_years + district_level_requirement = 5 + can_construct_potential = { + NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_4_cost + province_modifier = { + stationed_maa_damage_mult = low_maa_damage_tier_4 + } + trade_good_need = { + trade_good = trade_good_wine + amount = basic_resource_need + not_rite_parameter = alcohol_forbidden + can_be_filled_multiple_times = 4 + modifiers = { + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need_tribal + } + } + } + on_complete = { + } + next_building = soldiers_feast_hall_5 + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wine } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 4 } + } + +} + +soldiers_feast_hall_5 = { + + construction_time = construction_time_3_years + district_level_requirement = 9 + can_construct_potential = { + NOT = { rite = { rite_has_parameter = alcohol_forbidden_strict } } + } + can_construct_showing_failures_only = { + } + show_disabled = yes + can_construct = { + } + cost_gold = resource_district_normal_tier_5_cost + province_modifier = { + stationed_maa_damage_mult = low_maa_damage_tier_5 + } + trade_good_need = { + trade_good = trade_good_wine + amount = basic_resource_need + not_rite_parameter = alcohol_forbidden + can_be_filled_multiple_times = 5 + modifiers = { + province_government_modifier = { + not_parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need + } + province_government_modifier = { + parameter = government_is_tribal + monthly_agricultural_tax = soldiers_feast_hall_agricultural_tax_per_wine_need_tribal + } + } + } + on_complete = { + } + ai_value = { + base = 10 + ai_resource_building_consumer_modifier = { GOOD = trade_good_wine } + directive_to_build_economy_modifier = yes + ai_income_building_modifier = yes + ai_resource_building_upgrade_modifier = { LEVEL = 5 } + } + +} diff --git a/common/buildings/resource_district_buildings/wood_district_buildings.txt b/common/buildings/resource_district_buildings/wood_district_buildings.txt index 04a3bccc4..b1fb1913d 100644 --- a/common/buildings/resource_district_buildings/wood_district_buildings.txt +++ b/common/buildings/resource_district_buildings/wood_district_buildings.txt @@ -819,7 +819,7 @@ charcoal_production_1 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_new_building_modifier = yes } } @@ -869,7 +869,7 @@ charcoal_production_2 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 2 } } } @@ -919,7 +919,7 @@ charcoal_production_3 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 3 } } } @@ -969,7 +969,7 @@ charcoal_production_4 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 4 } } } @@ -1018,7 +1018,7 @@ charcoal_production_5 = { base = 10 ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_resource_building_upgrade_modifier = { LEVEL = 5 } } } @@ -1075,7 +1075,7 @@ forest_glass_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_new_building_modifier = yes } @@ -1132,7 +1132,7 @@ forest_glass_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1189,7 +1189,7 @@ forest_glass_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1246,7 +1246,7 @@ forest_glass_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1302,7 +1302,7 @@ forest_glass_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_glass } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_glass } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1316,6 +1316,7 @@ forest_glass_5 = { #Turns Wood into Meat hunting_lodges_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1361,7 +1362,7 @@ hunting_lodges_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_new_building_modifier = yes @@ -1370,7 +1371,7 @@ hunting_lodges_1 = { hunting_lodges_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes building_requirement_meat_allowed = yes @@ -1417,7 +1418,7 @@ hunting_lodges_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 2 } @@ -1473,7 +1474,7 @@ hunting_lodges_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 3 } @@ -1529,7 +1530,7 @@ hunting_lodges_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 4 } @@ -1584,7 +1585,7 @@ hunting_lodges_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_cured_meat_producer_modifier = { VALUE = ai_building_priority_soft } ai_market_category_shortage_modifier = { GOOD = trade_good_meat CATEGORY = trade_category_meat } ai_resource_building_upgrade_modifier = { LEVEL = 5 } @@ -1594,6 +1595,7 @@ hunting_lodges_5 = { firewood_collection_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1637,7 +1639,7 @@ firewood_collection_1 = { firewood_collection_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1816,6 +1818,7 @@ firewood_collection_5 = { lacquerware_workshop_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes culture = { has_cultural_parameter = unlock_lacquerware_buildings } @@ -1876,7 +1879,7 @@ lacquerware_workshop_1 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_lacquerware } ai_resource_new_building_modifier = yes } @@ -1884,7 +1887,7 @@ lacquerware_workshop_1 = { lacquerware_workshop_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes culture = { has_cultural_parameter = unlock_lacquerware_buildings } @@ -1957,7 +1960,7 @@ lacquerware_workshop_2 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_lacquerware } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -2049,7 +2052,7 @@ lacquerware_workshop_3 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_lacquerware } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2152,7 +2155,7 @@ lacquerware_workshop_4 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_lacquerware } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2265,7 +2268,7 @@ lacquerware_workshop_5 = { ai_resource_building_consumer_modifier = { GOOD = trade_good_wood } directive_to_build_economy_modifier = yes ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes } - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_lacquerware } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/buildings/resource_district_buildings/wool_district_buildings.txt b/common/buildings/resource_district_buildings/wool_district_buildings.txt index 7a56c804a..d2dc54c83 100644 --- a/common/buildings/resource_district_buildings/wool_district_buildings.txt +++ b/common/buildings/resource_district_buildings/wool_district_buildings.txt @@ -907,7 +907,7 @@ ointment_maker_1 = { #Requires lvl 5 of main Building (Scouring House) ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_new_building_modifier = yes } @@ -960,7 +960,7 @@ ointment_maker_2 = { # ai_resource_building_need_modifier = { GOOD = trade_good_medicaments } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_medicaments } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -987,6 +987,8 @@ textiles_wool_building_1 = { } market_modifier = { trade_good_wool_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_wool @@ -1005,6 +1007,26 @@ textiles_wool_building_1 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } next_building = textiles_wool_building_2 @@ -1014,7 +1036,7 @@ textiles_wool_building_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1042,6 +1064,8 @@ textiles_wool_building_2 = { } market_modifier = { trade_good_wool_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_wool @@ -1062,6 +1086,30 @@ textiles_wool_building_2 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } next_building = textiles_wool_building_3 @@ -1070,7 +1118,7 @@ textiles_wool_building_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1098,6 +1146,8 @@ textiles_wool_building_3 = { } market_modifier = { trade_good_wool_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_wool @@ -1118,6 +1168,30 @@ textiles_wool_building_3 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } next_building = textiles_wool_building_4 @@ -1126,7 +1200,7 @@ textiles_wool_building_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1154,6 +1228,8 @@ textiles_wool_building_4 = { } market_modifier = { trade_good_wool_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_wool @@ -1174,6 +1250,30 @@ textiles_wool_building_4 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } next_building = textiles_wool_building_5 @@ -1182,7 +1282,7 @@ textiles_wool_building_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1210,6 +1310,8 @@ textiles_wool_building_5 = { } market_modifier = { trade_good_wool_sell_price_mult = price_textiles_building_1 + trade_good_alum_sell_price_mult = price_textiles_building_1 + trade_good_dyes_sell_price_mult = price_textiles_building_1 } trade_good_need = { trade_good = trade_good_wool @@ -1230,6 +1332,30 @@ textiles_wool_building_5 = { } } } + trade_good_need = { + trade_good = trade_good_alum + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } + trade_good_need = { + trade_good = trade_good_dyes + amount = textiles_alum_dyes_need + + can_be_filled_multiple_times = 5 + modifiers = { + province_modifier = { + trade_good_textiles_production_mult = textiles_mult_per_alum_dyes_need + prosperity_growth = textiles_prosperity_per_alum_dyes_need + } + } + } on_complete = { } ai_value = { @@ -1237,7 +1363,7 @@ textiles_wool_building_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_modifier = { GOOD = trade_good_wool } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1248,6 +1374,7 @@ textiles_wool_building_5 = { # Needs: trade_good_wool x1 -> province: inverted_prosperity_per_province_size_level rug_weaving_1 = { construction_time = construction_time_6_months + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1266,7 +1393,7 @@ rug_weaving_1 = { amount = basic_resource_need modifiers = { province_modifier = { - inverted_prosperity_per_province_size_level = 0.001 + inverted_prosperity_per_province_size_level = 0.0025 } } } @@ -1288,7 +1415,7 @@ rug_weaving_1 = { # Needs: trade_good_wool x2 -> province: inverted_prosperity_per_province_size_level rug_weaving_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 3 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1310,7 +1437,7 @@ rug_weaving_2 = { modifiers = { province_modifier = { - inverted_prosperity_per_province_size_level = 0.001 + inverted_prosperity_per_province_size_level = 0.0025 } } } @@ -1353,7 +1480,7 @@ rug_weaving_3 = { modifiers = { province_modifier = { - inverted_prosperity_per_province_size_level = 0.001 + inverted_prosperity_per_province_size_level = 0.0025 } } } @@ -1396,7 +1523,7 @@ rug_weaving_4 = { modifiers = { province_modifier = { - inverted_prosperity_per_province_size_level = 0.001 + inverted_prosperity_per_province_size_level = 0.0025 } } } @@ -1439,7 +1566,7 @@ rug_weaving_5 = { modifiers = { province_modifier = { - inverted_prosperity_per_province_size_level = 0.001 + inverted_prosperity_per_province_size_level = 0.0025 } } } @@ -1456,6 +1583,7 @@ rug_weaving_5 = { wool_oil_finishing_1 = { construction_time = construction_time_6_months + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1494,6 +1622,7 @@ wool_oil_finishing_1 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_new_building_modifier = yes } @@ -1501,7 +1630,7 @@ wool_oil_finishing_1 = { wool_oil_finishing_2 = { construction_time = construction_time_9_months - district_level_requirement = 2 + district_level_requirement = 5 can_construct_potential = { building_requirement_non_tribal = yes } @@ -1541,6 +1670,7 @@ wool_oil_finishing_2 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1588,6 +1718,7 @@ wool_oil_finishing_3 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -1635,6 +1766,7 @@ wool_oil_finishing_4 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -1681,6 +1813,7 @@ wool_oil_finishing_5 = { ai_resource_building_need_modifier = { GOOD = trade_good_textiles } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_oil CATEGORY = trade_category_comforts } directive_to_build_economy_modifier = yes + ai_income_from_input_building_modifier = yes ai_market_shortage_modifier = { GOOD = trade_good_textiles } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } @@ -1885,7 +2018,7 @@ wool_cheesemaker_1 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_new_building_modifier = yes } @@ -1941,7 +2074,7 @@ wool_cheesemaker_2 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 2 } } @@ -1997,7 +2130,7 @@ wool_cheesemaker_3 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 3 } } @@ -2053,7 +2186,7 @@ wool_cheesemaker_4 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 4 } } @@ -2108,7 +2241,7 @@ wool_cheesemaker_5 = { ai_resource_building_need_category_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_consumer_category_modifier = { GOOD = trade_good_salt CATEGORY = trade_category_salt } directive_to_build_economy_modifier = yes - ai_income_building_modifier = yes + ai_income_production_building_modifier = yes ai_market_category_shortage_modifier = { GOOD = trade_good_cheese CATEGORY = trade_category_comforts } ai_resource_building_upgrade_modifier = { LEVEL = 5 } } diff --git a/common/casus_belli_types/00_claim.txt b/common/casus_belli_types/00_claim.txt index b76dfa054..bb523f218 100644 --- a/common/casus_belli_types/00_claim.txt +++ b/common/casus_belli_types/00_claim.txt @@ -194,6 +194,19 @@ has_realm_law = camp_purpose_legitimists } } + trigger_if = { + limit = { + scope:attacker = { + government_has_flag = government_is_republic + } + } + scope:attacker = { + custom_description = { + text = "republic_cannot_declare_claim_wars" + has_realm_law = republican_despot_succession_law + } + } + } tgp_japan_offensive_wars_ban_trigger = yes } @@ -269,6 +282,14 @@ } desc = msg_claim_war_invalidated_claimant_unavailable_dead_message } + triggered_desc = { + trigger = { + scope:claimant = { + tgp_is_any_minister = yes + } + } + desc = msg_claim_war_invalidated_claimant_is_now_a_minister_message + } triggered_desc = { trigger = { scope:claimant = { diff --git a/common/casus_belli_types/10_tgp_japan_wars.txt b/common/casus_belli_types/10_tgp_japan_wars.txt index 180776e24..cd442812c 100644 --- a/common/casus_belli_types/10_tgp_japan_wars.txt +++ b/common/casus_belli_types/10_tgp_japan_wars.txt @@ -84,7 +84,7 @@ japan_install_bloc_member_cb = { scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } scope:attacker.house.house_confederation = { - leading_house.house_head = { + leading_house.house_head ?= { if = { limit = { is_ai = yes diff --git a/common/character_interactions/00_artifact_interactions.txt b/common/character_interactions/00_artifact_interactions.txt index f08b15d1f..1da094e67 100644 --- a/common/character_interactions/00_artifact_interactions.txt +++ b/common/character_interactions/00_artifact_interactions.txt @@ -1207,7 +1207,27 @@ sell_artifact_interaction = { } trigger_if = { limit = { exists = scope:target } - scope:recipient = { gold >= gdp_merchant_sell_artifact_value } + scope:recipient.gold >= gdp_merchant_sell_artifact_value + } + trigger_else = { + trigger_if = { + limit = { NOT = { exists = scope:haggle } } + save_temporary_scope_value_as = { + name = haggle + value = yes + } + } + custom_description = { + text = "sell_artifact_cannot_afford_any_tt" + scope:puppet_or_actor = { + any_character_artifact = { + is_equipped = no + artifact_can_be_gift_to_trigger = { RECIPIENT = scope:recipient } + save_temporary_scope_as = target + scope:recipient.gold >= gdp_merchant_sell_artifact_value + } + } + } } } diff --git a/common/character_interactions/00_character_interactions.txt b/common/character_interactions/00_character_interactions.txt index 489ba174a..81ba2e9ec 100644 --- a/common/character_interactions/00_character_interactions.txt +++ b/common/character_interactions/00_character_interactions.txt @@ -58,6 +58,28 @@ offer_vassalization_interaction = { government_has_flag = government_is_herder } } + scope:actor = { + trigger_if = { + limit = { is_confederation_member = yes } + confederation ?= { + OR = { + is_title_based = yes + is_house_based = yes + } + } + } + } + scope:recipient = { + trigger_if = { + limit = { is_confederation_member = yes } + confederation ?= { + OR = { + is_title_based = yes + is_house_based = yes + } + } + } + } # Temujin cannot make Jamukha his subject once he leaves him NOT = { scope:actor = { @@ -69,10 +91,6 @@ offer_vassalization_interaction = { is_valid_showing_failures_only = { scope:actor = { - trigger_if = { - limit = { is_confederation_member = yes } - exists = house.house_confederation - } trigger_if = { limit = { has_title = title:h_china @@ -97,7 +115,6 @@ offer_vassalization_interaction = { } scope:recipient = { is_at_war = no - is_confederation_member = no custom_description = { text = was_recently_granted_independence @@ -459,6 +476,12 @@ offer_vassalization_interaction = { # Religious exemption, for clans send_option = { is_shown = { + scope:actor = { + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } + } + } scope:recipient = { government_has_flag = government_is_clan } @@ -473,6 +496,12 @@ offer_vassalization_interaction = { # Nothing, for clans send_option = { is_shown = { + scope:actor = { + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } + } + } scope:recipient = { government_has_flag = government_is_clan } @@ -516,6 +545,10 @@ offer_vassalization_interaction = { on_accept = { offer_vassalization_interaction_effect = yes + consume_all_criminal_reasons_effect = { + LIEGE = scope:puppet_or_actor + CRIMINAL = scope:recipient + } scope:actor = { trigger_event = char_interaction.0001 @@ -582,11 +615,21 @@ offer_fealty_interaction = { is_available = { is_landed = yes top_liege ?= this # You have to be independent - This check exists to prevent a lot of edge-cases where you can change liege - is_confederation_member = no NOT = { government_has_flag = cannot_be_vassal_or_liege } } is_shown = { + scope:actor = { + trigger_if = { + limit = { is_confederation_member = yes } + confederation ?= { + OR = { + is_title_based = yes + is_house_based = yes + } + } + } + } scope:recipient = { this != scope:actor is_landed = yes @@ -979,6 +1022,10 @@ offer_fealty_interaction = { is_shown = { scope:actor = { government_has_flag = government_is_clan + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } + } } } is_valid = { @@ -993,6 +1040,10 @@ offer_fealty_interaction = { is_shown = { scope:actor = { government_has_flag = government_is_clan + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } + } } } is_valid = { @@ -1427,7 +1478,12 @@ grant_independence_interaction = { scope:puppet_or_actor ?= { trigger_if = { limit = { is_confederation_member = yes } - exists = house.house_confederation + confederation ?= { + OR = { + is_title_based = yes + is_house_based = yes + } + } } } scope:recipient = { diff --git a/common/character_interactions/00_diarch_interactions.txt b/common/character_interactions/00_diarch_interactions.txt index 5b03d2e32..10c8c7a66 100644 --- a/common/character_interactions/00_diarch_interactions.txt +++ b/common/character_interactions/00_diarch_interactions.txt @@ -2058,75 +2058,75 @@ 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 } -# } -# modifier = { -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } -# } -# } -# add = -100 -# } -# } -# any_character_struggle = { involvement = involved } -# } -# modifier = { -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } -# has_trait = fp3_struggle_detractor -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } -# } -# } -# add = -100 -# } -# } -# any_character_struggle = { involvement = involved } -# } + 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 } + } + modifier = { + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } + } + } + add = -100 + } + } + any_character_struggle = { involvement = involved } + } + modifier = { + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } + has_trait = fp3_struggle_detractor + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } + } + } + add = -100 + } + } + any_character_struggle = { involvement = involved } + } # Factors. ## Relationships. ### + Do pick on people we hate. diff --git a/common/character_interactions/00_dynast_interactions.txt b/common/character_interactions/00_dynast_interactions.txt index ab964c5cf..b4f3b963d 100644 --- a/common/character_interactions/00_dynast_interactions.txt +++ b/common/character_interactions/00_dynast_interactions.txt @@ -1944,221 +1944,221 @@ dynast_legitimize_bastard_interaction = { } } -#send_to_varangian_guard_interaction = { -# category = interaction_category_friendly -# interface_priority = 60 -# icon = send_to_varangian_guard_interaction +send_to_varangian_guard_interaction = { + category = interaction_category_friendly + interface_priority = 60 + icon = send_to_varangian_guard_interaction -# desc = send_to_varangian_guard_interaction_desc -# use_diplomatic_range = no -# common_interaction = yes -# -# is_available = { -# trigger_if = { -# limit = { is_ai = yes } -# is_dynast = yes -# dynasty ?= { -# has_dynasty_perk = fp1_adventure_legacy_1 -# } + desc = send_to_varangian_guard_interaction_desc + use_diplomatic_range = no + common_interaction = yes + + is_available = { + trigger_if = { + limit = { is_ai = yes } + is_dynast = yes + dynasty ?= { + has_dynasty_perk = fp1_adventure_legacy_1 + } -# NOR = { -# faith ?= { -# has_doctrine_parameter = pacifist -# } -# this = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# } + NOR = { + faith ?= { + has_doctrine_parameter = pacifist + } + this = title:e_byzantium.holder + is_at_war_with = title:e_byzantium.holder + has_truce = title:e_byzantium.holder + } -# exists = title:e_byzantium.holder -# is_at_war = no -# } -# } + exists = title:e_byzantium.holder + is_at_war = no + } + } -# is_shown = { -# scope:recipient != scope:puppet_or_actor + is_shown = { + scope:recipient != scope:puppet_or_actor -# scope:puppet_or_actor ?= { -# is_dynast = yes -# dynasty ?= scope:recipient.dynasty -# -# dynasty ?= { -# has_dynasty_perk = fp1_adventure_legacy_1 -# } -# -# exists = title:e_byzantium.holder -# NOR = { -# faith ?= { -# has_doctrine_parameter = pacifist -# } -# this = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# } -# } -# } -# -# cooldown = { years = 2 } + scope:puppet_or_actor ?= { + is_dynast = yes + dynasty ?= scope:recipient.dynasty + + dynasty ?= { + has_dynasty_perk = fp1_adventure_legacy_1 + } + + exists = title:e_byzantium.holder + NOR = { + faith ?= { + has_doctrine_parameter = pacifist + } + this = title:e_byzantium.holder + is_at_war_with = title:e_byzantium.holder + has_truce = title:e_byzantium.holder + } + } + } + + cooldown = { years = 2 } -# is_valid_showing_failures_only = { -# scope:puppet_or_actor = { -# is_at_war = no -# NOT = { -# has_relation_rival = title:e_byzantium.holder -# } -# } -# scope:recipient = { -# is_ruler = no -# is_adult = yes -# is_married = no -# NOR = { -# has_trait = varangian -# has_trait = order_member -# } -# } -# trigger_if = { -# limit = { -# scope:recipient = { -# is_adult = yes -# NOT = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# } -# } -# } -# custom_description = { -# scope:recipient = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# } -# text = "not_allowed_in_varangian_guard" -# } -# } -# trigger_if = { -# limit = { -# scope:recipient = { -# NOR = { -# is_child_of = scope:puppet_or_actor -# is_grandchild_of = scope:puppet_or_actor -# is_great_grandchild_of = scope:puppet_or_actor -# } -# } -# } -# custom_description = { -# scope:recipient.top_liege = scope:puppet_or_actor.top_liege -# subject = scope:puppet_or_actor -# text = "same_realm_as" -# } -# } -# } -# -# on_accept = { -# title:e_byzantium.holder = { -# save_scope_as = emperor -# if = { -# limit = { capital_county = title:c_byzantion } -# set_local_variable = { -# name = to_miklagard -# value = yes -# } -# } -# } -# -# scope:puppet_or_actor = { -# stress_and_fulfillment_impact = { -# paranoid = minor_stress_impact_gain -# } -# hidden_effect = { -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = send_to_varangian_guard_interaction_toast + is_valid_showing_failures_only = { + scope:puppet_or_actor = { + is_at_war = no + NOT = { + has_relation_rival = title:e_byzantium.holder + } + } + scope:recipient = { + is_ruler = no + is_adult = yes + is_married = no + NOR = { + has_trait = varangian + has_trait = order_member + } + } + trigger_if = { + limit = { + scope:recipient = { + is_adult = yes + NOT = { + can_be_knight_trigger = { + ARMY_OWNER = title:e_byzantium.holder + } + } + } + } + custom_description = { + scope:recipient = { + can_be_knight_trigger = { + ARMY_OWNER = title:e_byzantium.holder + } + } + text = "not_allowed_in_varangian_guard" + } + } + trigger_if = { + limit = { + scope:recipient = { + NOR = { + is_child_of = scope:puppet_or_actor + is_grandchild_of = scope:puppet_or_actor + is_great_grandchild_of = scope:puppet_or_actor + } + } + } + custom_description = { + scope:recipient.top_liege = scope:puppet_or_actor.top_liege + subject = scope:puppet_or_actor + text = "same_realm_as" + } + } + } + + on_accept = { + title:e_byzantium.holder = { + save_scope_as = emperor + if = { + limit = { capital_county = title:c_byzantion } + set_local_variable = { + name = to_miklagard + value = yes + } + } + } + + scope:puppet_or_actor = { + stress_and_fulfillment_impact = { + paranoid = minor_stress_impact_gain + } + hidden_effect = { + send_interface_toast = { + type = event_toast_effect_neutral + title = send_to_varangian_guard_interaction_toast -# left_icon = scope:recipient -# right_icon = scope:emperor -# -# custom_tooltip = send_to_varangian_guard_interaction_toast_desc -# } -# } -# } -# hidden_effect = { -# if = { -# limit = { -# scope:is_puppet_action ?= yes -# } -# scope:actor = { -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = send_to_varangian_guard_interaction_toast + left_icon = scope:recipient + right_icon = scope:emperor + + custom_tooltip = send_to_varangian_guard_interaction_toast_desc + } + } + } + hidden_effect = { + if = { + limit = { + scope:is_puppet_action ?= yes + } + scope:actor = { + send_interface_toast = { + type = event_toast_effect_neutral + title = send_to_varangian_guard_interaction_toast -# left_icon = scope:recipient -# right_icon = scope:emperor + left_icon = scope:recipient + right_icon = scope:emperor -# custom_tooltip = send_to_varangian_guard_interaction_toast_desc -# } -# } -# } -# } + custom_tooltip = send_to_varangian_guard_interaction_toast_desc + } + } + } + } -# scope:recipient = { -# save_scope_as = varangian_candidate -# -# } -# -# show_as_tooltip = { -# scope:varangian_candidate = { -# visit_court_of = scope:emperor -# add_trait = varangian -# custom_description_no_bullet = { -# text = send_to_varangian_guard_interaction_effect -# } -# } -# } -# hidden_effect = { -# scope:emperor = { -# trigger_event = varangian.0003 -# } -# } -# -# # If we're a clan this interaction affects unity -# add_house_unity_interaction_effect = { -# CHARACTER = scope:puppet_or_actor -# TARGET = scope:recipient -# VALUE = miniscule_unity_loss -# DESC = clan_unity_vaering.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# } -# -# cost = { -# prestige = { -# value = 350 -# if = { -# limit = { scope:is_puppet_action ?= yes } -# multiply = 0 -# } -# } -# } -# -# auto_accept = yes + scope:recipient = { + save_scope_as = varangian_candidate + + } + + show_as_tooltip = { + scope:varangian_candidate = { + visit_court_of = scope:emperor + add_trait = varangian + custom_description_no_bullet = { + text = send_to_varangian_guard_interaction_effect + } + } + } + hidden_effect = { + scope:emperor = { + trigger_event = varangian.0003 + } + } + + # If we're a clan this interaction affects unity + add_house_unity_interaction_effect = { + CHARACTER = scope:puppet_or_actor + TARGET = scope:recipient + VALUE = miniscule_unity_loss + DESC = clan_unity_vaering.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + cost = { + prestige = { + value = 350 + if = { + limit = { scope:is_puppet_action ?= yes } + multiply = 0 + } + } + } + + auto_accept = yes -# ai_targets = { -# ai_recipients = children -# max = 10 -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 120 -# duchy = 60 -# kingdom = 24 -# empire = 24 -# hegemony = 24 -# } -# -# ai_will_do = { -# base = 100 -# } -#} + ai_targets = { + ai_recipients = children + max = 10 + } + + ai_frequency_by_tier = { + barony = 0 + county = 120 + duchy = 60 + kingdom = 24 + empire = 24 + hegemony = 24 + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/character_interactions/00_fp3_interactions.txt b/common/character_interactions/00_fp3_interactions.txt index 997cecd60..ae2392ead 100644 --- a/common/character_interactions/00_fp3_interactions.txt +++ b/common/character_interactions/00_fp3_interactions.txt @@ -1,2549 +1,2548 @@ # As a Supporter, demand that a Muslim ruler recognize your authority # Success makes the Strengthen the Caliphate struggle decision easier to take -#fp3_demand_submission_interaction = { -# icon = demand_submission -# category = interaction_category_religion -# popup_on_receive = yes -# pause_on_receive = yes -# can_send_despite_rejection = yes -# ai_maybe = yes -# desc = fp3_demand_submission_interaction_desc -# -# greeting = positive -# notification_text = DEMAND_SUBMISSION_NOTIFICATION -# -# is_available = { -# trigger_if = { -# limit = { is_ai = yes } -# is_physically_able = yes -# } -# } -# -# is_shown = { -# scope:actor != scope:recipient -# struggle:persian_struggle ?= { has_struggle_phase_parameter = demand_submission_interaction_unlocked } -# scope:actor = { has_title = title:d_sunni } -# scope:recipient = { -# faith.religious_head ?= scope:actor -# has_trait = fp3_struggle_supporter -# any_character_struggle = { this = struggle:persian_struggle } -# } -# } -# -# cooldown_against_recipient = { years = 10 } -# -# ai_min_reply_days = 2 -# ai_max_reply_days = 7 -# -# ai_accept = { -# base = 0 -# # This is more flavorful than "base acceptance" -# modifier = { -# desc = DEMAND_SUBMISSION_I_AM_HEAD_OF_FAITH -# add = 50 -# } -# ## Piety -# # How pious are you? -# modifier = { -# # (Stolen shamelessly from piety_level_affects_vassalage_acceptance) -# add = { -# value = { -# value = -1 -# add = scope:actor.piety_level -# } -# multiply = 10 -# } -# desc = I_AM_PIOUS -# # Only matters if they aren't cynical -# NOT = { scope:recipient = { has_trait = cynical } } -# } -# # Are they cynical/zealous? -# modifier = { -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_CYNICAL -# add = -30 -# scope:recipient = { -# has_trait = cynical -# } -# } -# modifier = { -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_ZEALOUS -# add = 20 -# scope:recipient = { has_trait = zealous } -# } -# # Are you giving them extra piety? -# modifier = { -# add = 30 -# desc = STRUGGLE_MARRIAGE_ACCEPTANCE_USING_PIETY_AS_CURRENCY -# scope:piety_cost_reduction ?= yes -# } -# ## Opinion -# # Do they like you? -# opinion_modifier = { -# who = scope:recipient -# opinion_target = scope:actor -# multiplier = 0.25 -# desc = AI_OPINION_REASON -# } -# ## Personality -# # Are they ambitious? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_AMBITIOUS -# add = -30 -# scope:recipient = { has_trait = ambitious } -# } -# # Are they content? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_CONTENT -# add = 10 -# scope:recipient = { has_trait = content } -# } -# # Are they stubborn? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_STUBBORN -# add = -10 -# scope:recipient = { has_trait = stubborn } -# } -# # Are they arrogant? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_ARROGANT -# add = -10 -# scope:recipient = { has_trait = arrogant } -# } -# # Are they humble? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_HUMBLE -# add = 10 -# scope:recipient = { has_trait = humble } -# } -# # Are they trusting? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_TRUSTING -# add = 10 -# scope:recipient = { has_trait = trusting } -# } -# # Are they paranoid? -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_PARANOID -# add = -20 -# scope:recipient = { has_trait = paranoid } -# } -# # Are they loyal? -# # Independent rulers should rarely have this trait, but if your predecessor installed a puppet and died, then this makes it easier to demand submission from the puppet -# modifier = { -# desc = DEMAND_SUBMISSION_RECIPIENT_IS_LOYAL -# add = 20 -# scope:recipient = { has_trait = loyal } -# } -# ## Realm -# # Are you stronger/weaker than them? -# modifier = { -# add = { -# value = 1 -# subtract = { -# value = scope:recipient.max_military_strength # For foreign diplomacy, consider recipients max -# divide = { value = scope:actor.current_military_strength min = 1 } -# } -# multiply = 10 -# } -# desc = offer_vassalization_interaction_aibehavior_power_tt -# } -# # Reign duration -# modifier = { -# add = { -# value = scope:actor.primary_title.title_held_years -# subtract = 21 -# max = 20 -# } -# desc = DEMAND_SUBMISSION_SHORT_REIGN -# } -# ## Dread -# modifier = { -# add = intimidated_halved_reason_value -# scope:recipient = { -# has_dread_level_towards = { -# target = scope:actor -# level = 1 -# } -# } -# desc = INTIMIDATED_REASON -# } -# modifier = { -# add = cowed_halved_reason_value -# scope:recipient = { -# has_dread_level_towards = { -# target = scope:actor -# level = 2 -# } -# } -# desc = COWED_REASON -# } -# } -# -# on_accept = { -# scope:actor = { -# if = { -# limit = { scope:piety_cost_reduction ?= yes } -# add_piety = massive_piety_loss -# } -# add_hook = { -# target = scope:recipient -# type = caliphal_submission_hook -# } -# if = { -# limit = { has_variable = last_explicit_defied_caliph } -# remove_variable = last_explicit_defied_caliph -# } -# trigger_event = fp3_misc_decisions.0010 # Letter event informing player of success -# } -# scope:recipient = { -# if = { -# limit = { scope:piety_cost_reduction ?= yes } -# add_piety = massive_piety_gain -# } -# } -# -# # If we're a clan this interaction affects unity -# add_house_unity_interaction_effect = { -# CHARACTER = scope:actor -# TARGET = scope:recipient -# VALUE = medium_unity_gain -# DESC = clan_unity_forment_revolt.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# } -# -# on_decline = { -# scope:recipient = { -# custom_tooltip = DEMAND_SUBMISSION_INSTALL_LOYALIST_WARNING -# add_piety = medium_piety_loss -# remove_trait = fp3_struggle_supporter -# add_trait_force_tooltip = fp3_struggle_detractor -# # This is for the install loyalist CB discount -# set_variable = { -# name = last_explicit_defied_caliph -# value = scope:actor -# years = 30 -# } -# } -# scope:actor = { -# trigger_event = fp3_misc_decisions.0011 # Letter event informing player of failure -# } -# -# # If we're a clan this interaction affects unity -# add_house_unity_interaction_effect = { -# CHARACTER = scope:actor -# TARGET = scope:recipient -# VALUE = medium_unity_loss -# DESC = clan_unity_forment_revolt.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# } -# -# # Use piety to increase acceptance -# send_option = { -# flag = piety_cost_reduction -# localization = TRADE_PIETY_FOR_BETTER_AI_ACCEPTANCE -# } -# send_options_exclusive = no -# -# ai_targets = { -# ai_recipients = neighboring_rulers -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# -# # Very similar to ai_accept, but ignores effects that are < 10 in value for brevity's sake -# ai_will_do = { -# # The caliph generally _wants_ to be chucking these out all over the place. -# ## Basically, the more rulers submit to their authority, the better. -# ### Subs over drubs, as it were. -# base = 100 -# # Will demand rulers who were installed via the puppet CB -# modifier = { -# add = 200 -# scope:recipient = { -# has_trait = loyal -# scope:actor = { has_hook = prev } -# } -# } -# modifier = { -# add = { -# value = { -# value = -1 -# add = scope:actor.piety_level -# } -# multiply = 10 -# } -# NOT = { scope:recipient = { has_trait = cynical } } -# } -# modifier = { -# add = -30 -# scope:recipient = { -# has_trait = cynical -# } -# } -# modifier = { -# add = 20 -# scope:recipient = { has_trait = zealous } -# } -# opinion_modifier = { -# who = scope:recipient -# opinion_target = scope:actor -# multiplier = 0.25 -# } -# modifier = { -# add = -30 -# scope:recipient = { has_trait = ambitious } -# } -# modifier = { -# add = { -# value = 1 -# subtract = { -# value = scope:recipient.max_military_strength -# divide = { value = scope:actor.current_military_strength min = 1 } -# } -# multiply = 10 -# } -# } -# # Reign duration -# modifier = { -# add = { -# value = scope:actor.primary_title.title_held_years -# subtract = 21 -# max = 20 -# } -# } -# ## Dread -# modifier = { -# add = intimidated_halved_reason_value -# scope:recipient = { -# has_dread_level_towards = { -# target = scope:actor -# level = 1 -# } -# } -# } -# modifier = { -# add = cowed_halved_reason_value -# scope:recipient = { -# has_dread_level_towards = { -# target = scope:actor -# level = 2 -# } -# } -# } -# } -#} -# -#################################### -## Request Turkic invasion (can_request_incursion_interaction) -## By Hugo Cortell -#################################### -#fp3_request_turkic_invasion_interaction = { -# interface_priority = 100 -# common_interaction = yes -# category = interaction_category_hostile -# cooldown_against_recipient = { years = 2 } -# -# icon = request_mercenary -# desc = fp3_request_turkic_invasion_interaction_desc -# -# is_available = { -# OR = { -# AND = { -# has_trait = fp3_struggle_detractor -# any_character_struggle = { is_struggle_type = persian_struggle } -# } -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# trigger_if = { -# limit = { is_ai = yes } -# ai_greed <= 25 -# OR = { -# has_trait = fp3_struggle_detractor -# AND = { -# vassal_contract_has_flag = celestial_military_appointment -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# } -# NOT = { culture = { has_cultural_pillar = heritage_turkic } } -# ai_has_builder_or_pious_builder_personality = no -# is_at_war = no -# } -# } -# -# is_shown = { -# scope:recipient = { -# is_playable_character = yes -# is_landed = yes -# trigger_if = { -# limit = { -# scope:actor = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# } -# top_liege = scope:actor.top_liege -# } -# trigger_else = { -# OR = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# title:d_sunni.holder ?= this -# } -# top_liege ?= this -# -# } -# is_ai = yes -# } -# scope:actor != scope:recipient -# } -# -# is_valid_showing_failures_only = { -# } -# -# populate_recipient_list = { -# scope:actor.top_liege = { -# every_independent_ruler = { -# limit = { -# is_ai = yes -# is_landed = yes -# is_physically_able = yes -# has_raised_armies = no -# is_at_war = no -# in_diplomatic_range = scope:actor -# highest_held_title_tier >= tier_county -# NOR = { -# is_allied_to = scope:recipient -# has_truce = scope:recipient -# this = scope:actor -# this = scope:recipient -# is_tributary_of = scope:recipient.top_liege -# } -# OR = { -# trigger_if = { -# limit = { -# NOT = { -# scope:actor = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# } -# } -# government_has_flag = government_is_clan -# } -# government_has_flag = government_is_tribal -# government_has_flag = government_is_nomadic -# government_has_flag = government_is_wanua -# government_has_flag = government_is_landless_adventurer -# } -# trigger_if = { -# limit = { -# scope:actor = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# } -# any_neighboring_top_liege_realm = { -# OR = { -# title:h_china ?= this -# any_title_to_title_neighboring_empire = { -# title:h_china ?= hegemony -# } -# } -# } -# } -# trigger_else = { -# culture = { -# OR = { -# has_cultural_pillar = heritage_turkic -# has_cultural_pillar = heritage_mongolic -# } -# } -# } -# } -# add_to_list = characters -# } -# } -# } -# -# send_options_exclusive = no -# -# send_option = { -# flag = war_support -# localization = fp3_request_turkic_invasion_interaction_option_join_war -# current_description = fp3_request_turkic_invasion_interaction_option_join_war_desc -# is_shown = { exists = scope:secondary_recipient } -# is_valid = { -# scope:actor = { -# NOR = { -# is_at_war_with = scope:recipient -# is_allied_to = scope:recipient -# has_truce = scope:recipient -# } -# tgp_is_hegemon_or_below_in_dynastic_cycle_trigger = no -# } -# } -# } -# -# send_option = { -# flag = financial_support -# localization = fp3_request_turkic_invasion_interaction_option_more_gold -# current_description = fp3_request_turkic_invasion_interaction_option_more_gold_desc -# is_shown = { exists = scope:secondary_recipient } -# is_valid = { -# custom_description = { -# text = fp3_please_dont_give_me_negative_gold -# fp3_request_invasion_troop_value_estimate > 0 -# } -# } -# } -# -# cost = { -# gold = { -# value = { -# value = scope:secondary_recipient.max_military_strength -# divide = 20 -# round = yes -# } -# add = { -# if = { -# limit = { scope:financial_support = yes } -# add = fp3_request_invasion_troop_value_estimate -# } -# } -# if = { -# limit = { -# scope:recipient = { has_title = title:d_sunni } -# struggle:persian_struggle = { has_struggle_phase_parameter = cheaper_incursions_vs_caliph } -# } -# divide = 2 -# } -# } -# } -# -# on_accept = { -# if = { -# limit = { exists = scope:secondary_recipient } -# -# scope:recipient = { -# if = { -# limit = { -# scope:actor = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# } -# capital_county = { -# save_scope_as = invasion_target_title -# } -# } -# else = { -# if = { -# limit = { -# any_realm_county = { -# this != scope:recipient.capital_county -# any_neighboring_county = { holder.top_liege = scope:secondary_recipient.top_liege } -# any_county_province = { geographical_region = world_persian_empire } -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# } -# random_realm_county = { -# limit = { -# this != scope:recipient.capital_county -# any_neighboring_county = { holder.top_liege = scope:secondary_recipient.top_liege } -# any_county_province = { geographical_region = world_persian_empire } -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# save_scope_as = invasion_target_title -# } -# } -# else_if = { -# limit = { -# any_realm_county = { -# this != scope:recipient.capital_county -# any_neighboring_county = { -# any_county_province = { geographical_region = world_persian_empire } -# holder.top_liege != prev.holder.top_liege -# } -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# } -# random_realm_county = { -# limit = { -# this != scope:recipient.capital_county -# any_neighboring_county = { -# any_county_province = { geographical_region = world_persian_empire } -# holder.top_liege != prev.holder.top_liege -# } -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# save_scope_as = invasion_target_title -# } -# } -# else_if = { -# limit = { -# any_realm_county = { -# this != scope:recipient.capital_county -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# } -# random_realm_county = { -# limit = { -# this != scope:recipient.capital_county -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# save_scope_as = invasion_target_title -# } -# } -# else_if = { -# limit = { -# any_realm_county = { -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# } -# random_realm_county = { -# limit = { -# NOR = { -# holder = scope:actor -# holder = { is_vassal_or_below_of = scope:actor } -# } -# } -# save_scope_as = invasion_target_title -# } -# } -# else = { -# random_realm_county = { save_scope_as = invasion_target_title } -# } -# } -# -# scope:invasion_target_title.duchy = { save_scope_as = text_title } -# -# hidden_effect = { # Not worth cluttering the UI with -# add_opinion = { -# modifier = fp3_incited_conflict -# target = scope:actor -# } -# add_opinion = { -# modifier = declared_war -# target = scope:secondary_recipient -# } -# } -# } -# -# scope:secondary_recipient = { -# add_gold = { -# value = { -# value = scope:secondary_recipient.max_military_strength -# divide = 20 -# round = yes -# } -# add = { -# if = { -# limit = { scope:financial_support = yes } -# add = fp3_request_invasion_troop_value_estimate -# } -# } -# if = { -# limit = { -# scope:recipient = { has_title = title:d_sunni } -# struggle:persian_struggle = { has_struggle_phase_parameter = cheaper_incursions_vs_caliph } -# } -# divide = 2 -# } -# } -# start_war = { -# casus_belli = fp3_turkic_invasion_cb -# target = scope:recipient -# target_title = scope:invasion_target_title.duchy -# } -# custom_tooltip = fp3_turkic_invasion_cb_result_tt -# if = { -# limit = { -# scope:financial_support = yes -# } -# trigger_event = fp3_misc_decisions.0006 -# if = { -# limit = { -# has_mpo_dlc_trigger = yes -# } -# show_as_tooltip = { -# spawn_army = { -# men_at_arms = { -# type = horse_archers -# stacks = fp3_request_invasion_troop_value_bonus_troops -# } -# men_at_arms = { -# type = steppe_raiders -# stacks = fp3_request_invasion_troop_value_bonus_troops -# } -# men_at_arms = { -# type = light_horsemen -# stacks = fp3_request_invasion_troop_value_bonus_troops -# } -# men_at_arms = { -# type = nomadic_riders -# stacks = fp3_request_invasion_troop_value_bonus_levy_nomads -# } -# location = capital_province -# uses_supply = yes -# inheritable = no -# name = turkic_tribal_event_troops -# } -# } -# } -# else = { -# show_as_tooltip = { -# spawn_army = { -# men_at_arms = { -# type = horse_archers -# stacks = fp3_request_invasion_troop_value_bonus_troops -# } -# men_at_arms = { -# type = light_horsemen -# stacks = fp3_request_invasion_troop_value_bonus_troops -# } -# levies = fp3_request_invasion_troop_value_bonus_levy_troops -# location = capital_province -# uses_supply = yes -# inheritable = no -# name = turkic_tribal_event_troops -# } -# } -# } -# } -# if = { -# limit = { scope:war_support = yes } -# custom_tooltip = fp3_request_turkic_invasion_interaction_option_join_war_outcome_tooltip -# trigger_event = fp3_misc_decisions.0005 -# } -# } -# -# scope:actor = { -# hidden_effect = { -# send_interface_toast = { -# type = event_toast_effect_good -# title = fp3_request_turkic_invasion_interaction_accept_notification.t -# left_icon = scope:secondary_recipient -# right_icon = scope:recipient -# -# show_as_tooltip = { -# custom_tooltip = fp3_request_turkic_invasion_interaction_accept_notification.desc -# } -# } -# } -# if = { -# limit = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = expansion_movement -# } -# } -# add_secret = { -# target = scope:recipient -# type = secret_request_incursion -# } -# scope:secondary_recipient = { -# add_secret = { -# target = scope:recipient -# type = secret_request_incursion -# } -# } -# } -# } -# -# scope:recipient = { -# add_character_flag = { -# flag = incursion_ai_pacing -# years = 5 -# } -# hidden_effect = { -# send_interface_toast = { -# type = event_toast_effect_bad -# title = fp3_request_turkic_invasion_interaction_accept_notification.t -# left_icon = scope:secondary_recipient -# right_icon = scope:actor -# -# show_as_tooltip = { -# custom_tooltip = fp3_request_turkic_invasion_interaction_accept_target_notification.desc -# } -# } -# } -# } -# } -# } -# -# use_diplomatic_range = yes -# -# ai_accept = { -# base = 0 -# -# # Relationships: actor -> recipient / We avoid more relationship checks for balance reasons (and because important decisions tend to care little for relationships) -# modifier = { # Rivalry modifier. -# desc = offer_vassalization_interaction_aibehavior_rival_tt_2 -# trigger = { -# scope:secondary_recipient = { -# has_relation_rival = scope:actor -# NOT = { has_relation_nemesis = scope:actor } -# } -# } -# add = -10 -# } -# modifier = { # Nemesis modifier. -# desc = offer_vassalization_interaction_aibehavior_nemesis_tt_2 -# trigger = { -# scope:secondary_recipient = { -# has_relation_nemesis = scope:actor -# } -# } -# add = -100 -# } -# modifier = { # Same Dynasty modifier. -# desc = offer_vassalization_interaction_aibehavior_dynasty_tt_2 -# trigger = { -# scope:secondary_recipient = { -# dynasty = scope:actor.dynasty -# } -# } -# add = 10 -# } -# -# # Compare Opinion modifier -# opinion_modifier = { -# who = scope:secondary_recipient -# opinion_target = scope:actor -# multiplier = 0.25 -# } -# -# # Pledged to help in invasion -# modifier = { -# add = { -# value = scope:actor.max_military_strength -# divide = 70 -# round = yes -# } -# desc = HAS_YOUR_SUPPORT_REASON -# scope:war_support = yes -# } -# -# # Relative power (taken from PT interaction) -# modifier = { # A lot less levies than scope:secondary_recipient -# add = -100 -# scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_far_weaker_value -# desc = fp3_RTI_AI_RECIPIENT_IS_MUCH_WEAKER -# } -# modifier = { # Few less levies than scope:secondary_recipient -# add = -75 -# scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_far_weaker_value -# scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_somewhat_weaker_value -# desc = fp3_RTI_AI_RECIPIENT_IS_SOMEWHAT_WEAKER -# } -# modifier = { # Roughly equal levies with scope:secondary_recipient -# add = 10 -# scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_somewhat_weaker_value -# scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_somewhat_stronger_value -# desc = fp3_RTI_AI_RECIPIENT_IS_ROUGHLY_EQUAL -# } -# modifier = { # More levies than scope:secondary_recipient -# add = 50 -# scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_somewhat_stronger_value -# scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_far_stronger_value -# desc = fp3_RTI_AI_RECIPIENT_IS_SOMEWHAT_STRONGER -# } -# modifier = { # Many more levies than scope:secondary_recipient -# add = 75 -# scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_far_stronger_value -# desc = fp3_RTI_AI_RECIPIENT_IS_MUCH_STRONGER -# } -# -# # AI who are in debt will take whatever windfalls they can. -# modifier = { -# add = { -# value = scope:secondary_recipient.debt_level -# add = 1 # Our first level is 0, so we add one to always get a positive number. -# multiply = 10 -# } -# debt_level >= 0 -# desc = PT_AI_IS_IN_DEBT -# } -# -# # Pacifist AI don't like raiding -# modifier = { -# add = -25 -# scope:secondary_recipient.faith = { has_doctrine_parameter = pacifist } -# desc = PT_AI_IS_PACIFIST_FAITH_2 -# } -# modifier = { -# add = -25 -# scope:secondary_recipient.culture = { has_cultural_parameter = reduced_cost_for_conversion_to_pacifist_faith } -# desc = PT_AI_IS_PACIFIST_CULTURE_2 -# } -# # Distance -# modifier = { -# add = -25 -# "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_medium -# "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" < squared_distance_almost_massive -# desc = PT_AI_IS_FAR_AWAY -# } -# modifier = { -# add = -75 -# "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_almost_massive -# desc = PT_AI_IS_VERY_FAR_AWAY -# } -# modifier = { -# add = 20 -# exists = scope:actor.var:movement_power -# scope:actor.var:movement_power >= very_high_movement_power_value -# desc = ACTOR_HIGH_MOVEMENT_POWER -# } -# -# # Offered proportional gold -# modifier = { -# add = 85 -# scope:financial_support = yes -# desc = GOLD_REASON -# } -# -# # AI value mod -# ai_value_modifier = { -# ai_greed = 0.5 -# ai_boldness = 0.25 -# min = 0 -# max = 25 -# } -# } -# can_send_despite_rejection = no -# ai_frequency_by_tier = { -# barony = 0 -# county = 72 -# duchy = 72 -# kingdom = 36 -# empire = 24 -# hegemony = 24 -# } -# ai_frequency_by_tier_government_override = { -# government = merchant_government -# barony = 0 -# county = 216 -# duchy = 0 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# ai_targets = { -# ai_recipients = neighboring_rulers -# ai_recipients = liege -# } -# ai_will_do = { -# base = 0 -# -# modifier = { -# add = 50 -# scope:recipient = { -# has_trait = fp3_struggle_supporter -# scope:recipient.max_military_strength >= scope:actor.max_military_strength -# } -# } -# -# modifier = { -# add = 50 -# title:d_sunni.holder ?= scope:recipient -# } -# -# modifier = { -# add = 100 -# scope:recipient = { -# has_relation_rival = scope:actor -# } -# } -# -# modifier = { -# factor = 0.1 -# scope:actor.liege ?= scope:recipient -# } -# -# modifier = { -# factor = 0 -# scope:recipient = { -# has_character_flag = incursion_ai_pacing -# } -# } -# -# modifier = { -# factor = 0 -# scope:recipient = { -# is_at_war = yes -# is_ai = no -# } -# } -# -# modifier = { -# factor = 0 -# scope:recipient = { -# is_ai = no -# is_liege_or_above_of = scope:actor -# } -# } -# -# modifier = { -# factor = 0 -# scope:recipient = { -# OR = { -# has_relation_friend = scope:actor -# has_relation_lover = scope:actor -# opinion = { -# target = scope:actor -# value >= 45 -# } -# } -# } -# } -# } -#} -# -#################################### -## 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 -# can_send_despite_rejection = yes -# 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_available = { -# OR = { -# government_has_flag = government_is_clan -# government_is_japanese_trigger = yes -# } -# trigger_if = { -# limit = { is_ai = yes } -# is_house_head = no -# is_physically_able = yes -# } -# } -# -# is_shown = { -# scope:actor = { -# this != scope:recipient -# house ?= { -# house_head ?= scope:recipient -# OR = { -# OR = { -# has_house_unity_parameter = unity_can_challenge_house_head -# has_house_unity_parameter = unity_much_more_likely_to_challenge_house_head -# has_house_unity_parameter = unity_more_likely_to_challenge_house_head -# } -# scope:actor = { -# any_character_struggle = { has_struggle_phase_parameter = unlocks_challenge_house_head_for_clans } -# } -# AND = { -# scope:actor = { government_is_japanese_trigger = yes } -# house_head = { government_is_japanese_trigger = yes } -# } -# } -# } -# } -# } -# -# 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 -# trigger_if = { -# limit = { -# scope:actor = { is_landed = 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 } -# } -# tgp_is_ceremonial_liege_trigger = no -# } -# } -# -# 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:recipient = { is_vassal_or_below_of = scope:actor } -# } -# scope:recipient = { is_vassal_or_below_of = scope:actor } -# } -# 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 = { -# OR = { -# scope:recipient = { is_vassal_or_below_of = scope:actor } -# 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_house_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_house_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_house_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 -# } -# } -# } -# # Admin Japanese can duel, but it is frowned upon -# scope:actor = { -# custom_description_no_bullet = { -# text = challenge_house_head_japanese_admin -# } -# if = { -# limit = { -# government_is_japanese_trigger = yes -# tgp_soryo_or_bushido_trigger = no -# } -# if = { -# limit = { scope:lethal = no } -# add_prestige = medium_prestige_loss -# } -# else = { -# add_prestige = major_prestige_loss -# add_prestige_level = -1 -# } -# } -# } -# 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 -# starts_enabled = { -# scope:actor = { tgp_soryo_or_bushido_trigger = no } -# } -# 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 -# trigger_if = { -# limit = { government_is_japanese_trigger = yes } -# tgp_soryo_or_bushido_trigger = yes -# scope:recipient = { tgp_soryo_or_bushido_trigger = yes } -# } -# } -# 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 } -# } -# factor = 0.5 -# desc = AI_AVOID_LETHAL_DUEL_WITH_FAMILY -# } -# modifier = { -# NOT = { scope:diplomacy = yes } -# scope:recipient = { -# government_is_japanese_trigger = yes -# tgp_soryo_or_bushido_trigger = no -# } -# factor = 0.5 -# desc = AI_NOT_SORYO_OR_BUSHIDO -# } -# opinion_modifier = { -# opinion_target = scope:actor -# multiplier = 0.5 -# } -# modifier = { -# add = -150 -# scope:actor = { is_ruler = no } -# scope:recipient = { is_ruler = yes } -# desc = AI_NOT_A_RULER -# } -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 36 -# duchy = 24 -# kingdom = 6 -# empire = 1 -# hegemony = 1 -# } -# -# ai_target_quick_trigger = { -# adult = 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 -# AND = { -# NOT = { -# scope:recipient = { is_vassal_or_below_of = scope:actor } -# } -# OR = { -# AND = { -# top_liege = this -# 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 -# } -# } -# } -# } -# # 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 -# } -# # Higher in stature -# modifier = { -# is_independent_ruler = yes -# scope:recipient = { is_independent_ruler = no } -# add = 1000 -# } -# modifier = { -# highest_held_title_tier > scope:recipient.highest_held_title_tier -# scope:recipient = { is_independent_ruler = no } -# add = { -# value = highest_held_title_tier -# add = scope:recipient.highest_held_title_tier -# multiply = 10 -# } -# } -# modifier = { -# scope:recipient = { is_vassal_or_below_of = scope:actor } -# add = 500 -# } -# # Remove non dominant gender -# modifier = { -# scope:actor = { is_faith_dominant_gender = yes } -# scope:recipient = { is_faith_dominant_gender = no } -# factor = 2 -# } -# # Low Unity -# modifier = { -# scope:actor.house = { has_house_unity_parameter = unity_more_likely_to_challenge_house_head } -# factor = 1.5 -# } -# modifier = { -# scope:actor.house = { has_house_unity_parameter = unity_much_more_likely_to_challenge_house_head } -# factor = 2 -# } -# # Stop AI constantly challenging players -# modifier = { -# scope:recipient = { has_character_flag = ai_cooldown_house_head_challenge_flag } -# factor = 0 -# } -# # Stop AI game-overing players -# modifier = { -# scope:recipient = { -# trigger_if = { -# limit = { is_ai = no } -# is_landed = no -# any_held_title = { is_noble_family_title = yes } -# } -# } -# factor = 0 -# } -# } -#} -# -# -#################################### -## Change struggle allegiance -#################################### -#fp3_change_allegiance = { -# interface_priority = 30 -# category = interaction_category_diplomacy -# common_interaction = yes -# desc = { -# first_valid = { -# # Become a supporter. -# triggered_desc = { -# trigger = { -# scope:actor = { has_trait = fp3_struggle_supporter } -# } -# desc = fp3_change_allegiance.desc.actor_is_supporter -# } -# # Become a detractor. -# triggered_desc = { -# trigger = { -# scope:actor = { has_trait = fp3_struggle_detractor } -# } -# desc = fp3_change_allegiance.desc.actor_is_detractor -# } -# desc = fp3_change_allegiance.desc.fallback -# } -# } -# icon = change_allegiance -# -# greeting = positive -# notification_text = fp3_change_allegiance_notification -# -# 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_maybe = yes -# -# is_available = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# trigger_if = { -# limit = { is_ai = yes } -# OR = { -# has_trait = fp3_struggle_detractor -# has_trait = fp3_struggle_supporter -# } -# primary_title.tier >= tier_duchy -# } -# } -# -# is_shown = { -# has_fp3_dlc_trigger = yes -# # There has to be a caliph around to sway on. -# ## Arguably narratively not, but mechanically, everything will break if we don't. -# exists = title:d_sunni.holder -# scope:recipient != scope:actor -# scope:actor = { -# OR = { -# # Detractors are made from supporters. -# AND = { -# has_trait = fp3_struggle_detractor -# scope:recipient = { has_trait = fp3_struggle_supporter } -# } -# # Supporters are made from detractors. -# AND = { -# has_trait = fp3_struggle_supporter -# scope:recipient = { has_trait = fp3_struggle_detractor } -# } -# # Neutrals can be asked either way, should they exist. -# AND = { -# OR = { -# has_trait = fp3_struggle_detractor -# has_trait = fp3_struggle_supporter -# } -# scope:recipient = { -# NOR = { -# has_trait = fp3_struggle_detractor -# has_trait = fp3_struggle_supporter -# } -# } -# } -# } -# } -# scope:recipient = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# # You cannot ask the Caliph! -# NOT = { this = title:d_sunni.holder } -# } -# } -# -# is_valid_showing_failures_only = { -# scope:recipient = { -# # We want to disable some stuff for supporters who can't be persuaded away from the caliph. -# trigger_if = { -# limit = { has_trait = fp3_struggle_supporter } -# # Can't be allied to the caliph. -# NOT = { is_allied_to = title:d_sunni.holder } -# # Can't be strong hooked _by_ the caliph. -# NOT = { -# title:d_sunni.holder = { has_strong_hook = prev } -# } -# # Can't have only recently changed to become a supporter. -# custom_tooltip = { -# text = fp3_change_allegiance.tt.recently_voluntarily_became_supporter -# OR = { -# NOT = { has_variable = last_explicit_friday_prayer_caliph } -# NOT = { var:last_explicit_friday_prayer_caliph = title:d_sunni.holder } -# } -# } -# } -# # Likewise, some circumstances can force them to stay as a detractor. -# trigger_if = { -# limit = { has_trait = fp3_struggle_detractor } -# # Can't have only recently changed to become a detractor. -# custom_tooltip = { -# text = fp3_change_allegiance.tt.recently_voluntarily_became_detractor -# OR = { -# NOT = { has_variable = last_explicit_friday_prayer_caliph } -# NOT = { var:last_explicit_friday_prayer_caliph = title:d_sunni.holder } -# } -# } -# # Can't have been forced into becoming a detractor by the caliph overstepping. -# custom_tooltip = { -# text = fp3_change_allegiance.tt.recently_forced_to_detractor -# OR = { -# NOT = { has_variable = last_explicit_defied_caliph } -# NOT = { var:last_explicit_defied_caliph = title:d_sunni.holder } -# } -# } -# } -# # Plus some general stuff. -# is_at_war = no -# # Can't have recently been convinced to change their minds. -# custom_tooltip = { -# text = fp3_change_allegiance.tt.recently_changed_mind -# NOT = { has_character_flag = fp3_change_allegiance_recipient_cooldown } -# } -# custom_tooltip = { -# text = fp3_change_allegiance.tt.recently_refused -# NOT = { has_character_flag = fp3_change_allegiance_refused_cooldown } -# } -# # They must be an orthodox Sunni. -# custom_tooltip = { -# text = fp3_change_allegiance.tt.hof_is_d_sunni -# faith.religious_head ?= title:d_sunni.holder -# } -# } -# scope:actor = { is_available_adult = yes } -# } -# -# auto_accept = { -# custom_description = { -# text = "spending_hook" -# subject = scope:actor -# object = scope:recipient -# scope:hook = yes -# } -# } -# -# ai_accept = { -# base = 0 -# -# # Those who already have a stance are more set in their ways. -# ## Detractors -# modifier = { -# add = -25 -# scope:actor = { has_trait = fp3_struggle_supporter } -# scope:recipient = { has_trait = fp3_struggle_detractor } -# desc = INTERACTION_DETRACTOR -# } -# ## Supporters -# modifier = { -# add = -25 -# scope:actor = { has_trait = fp3_struggle_detractor } -# scope:recipient = { has_trait = fp3_struggle_supporter } -# desc = INTERACTION_SUPPORTER -# } -# -# # Opinions -# ## Opinion of you -# opinion_modifier = { -# who = scope:recipient -# opinion_target = scope:actor -# multiplier = { -# value = 1 -# # Despawn this if you're not the caliph. -# if = { -# limit = { scope:actor = title:d_sunni.holder } -# multiply = 0 -# } -# } -# } -# ## Opinion of the caliph -# opinion_modifier = { -# who = scope:recipient -# opinion_target = title:d_sunni.holder -# multiplier = { -# value = 0.5 -# # If you're the caliph, you can take the full amount. -# if = { -# limit = { scope:actor = title:d_sunni.holder } -# add = 0.5 -# } -# } -# } -# # Traits. -# ## Become supporter. -# ### ++ Zealous. -# modifier = { -# add = 25 -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_ZEALOUS -# scope:actor = { has_trait = fp3_struggle_supporter } -# scope:recipient = { has_trait = zealous } -# } -# ## Become detractor. -# ### -- Cynical. -# modifier = { -# add = 25 -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_CYNICAL -# scope:actor = { has_trait = fp3_struggle_detractor } -# scope:recipient = { has_trait = cynical } -# } -# ## Neutral. -# ### ++ Fickle. -# modifier = { -# add = 25 -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_FICKLE -# scope:recipient = { has_trait = fickle } -# } -# ### + Disloyal. -# modifier = { -# add = 15 -# desc = HAS_LOYAL_TRAIT -# scope:recipient = { has_trait = disloyal } -# } -# ### - Loyal. -# modifier = { -# add = 15 -# desc = HAS_DISLOYAL_TRAIT -# scope:recipient = { has_trait = loyal } -# } -# ### -- Stubborn. -# modifier = { -# add = 25 -# desc = ASK_FOR_CONVERSION_RECIPIENT_IS_STUBBORN -# scope:recipient = { has_trait = stubborn } -# } -# # Diplomacy -# ## Scope:actor's for convincing -# modifier = { -# add = { -# value = scope:actor.diplomacy -# multiply = 5 -# } -# desc = INTERACTION_DIPLOMACY_ACTOR -# } -# ## Scope:recipient's for resisting -# modifier = { -# add = { -# value = scope:recipient.diplomacy -# multiply = -3 -# } -# desc = INTERACTION_DIPLOMACY_RECIPIENT -# } -# } -# -# cost = { -# prestige = medium_prestige_value -# } -# -# # Use hook -# send_option = { -# flag = hook -# is_valid = { -# scope:actor = { -# has_usable_hook = scope:recipient -# } -# } -# localization = GENERIC_SPEND_A_HOOK -# } -# -# on_accept = { -# # Use our hook if we have to. -# if = { -# limit = { always = scope:hook } -# scope:actor = { -# use_hook = scope:recipient -# } -# } -# # If we're a clan this interaction affects unity -# add_house_unity_interaction_effect = { -# CHARACTER = scope:actor -# TARGET = scope:recipient -# VALUE = medium_unity_gain -# DESC = clan_unity_changed_alignment.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# # Run the actual effects. -# scope:actor = { -# send_interface_toast = { -# type = event_toast_effect_good -# title = recipient_joined_your_side_title -# left_icon = scope:recipient -# -# scope:recipient = { -# if = { -# limit = { scope:actor = { has_trait = fp3_struggle_detractor } } -# if = { -# limit = { has_trait = fp3_struggle_supporter } -# remove_trait = fp3_struggle_supporter -# } -# add_trait_force_tooltip = fp3_struggle_detractor -# -# # Catalyst -# hidden_effect = { -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_turn_supporter_into_detractor -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_turn_supporter_into_detractor -# character = scope:actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_turn_supporter_into_detractor } -# } -# } -# } -# } -# else = { -# if = { -# limit = { has_trait = fp3_struggle_detractor } -# remove_trait = fp3_struggle_detractor -# } -# add_trait_force_tooltip = fp3_struggle_supporter -# -# # Catalyst -# hidden_effect = { -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_turn_detractor_into_supporter -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_turn_detractor_into_supporter -# character = scope:actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_turn_detractor_into_supporter } -# } -# } -# } -# } -# } -# } -# } -# # Aaaaand flag scope:recipient as on cooldown for a while. -# scope:recipient = { -# set_variable = { -# name = fp3_change_allegiance_recipient_cooldown -# years = 20 -# } -# } -# } -# -# on_decline = { -# add_house_unity_interaction_effect = { -# CHARACTER = scope:actor -# TARGET = scope:recipient -# VALUE = medium_unity_loss -# DESC = clan_unity_refused_alignment.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# scope:actor = { -# if = { -# limit = { -# scope:actor = { has_trait = fp3_struggle_detractor } -# } -# send_interface_toast = { -# type = event_toast_effect_bad -# title = recipient_refused_to_join_your_side_title -# left_icon = scope:recipient -# progress_towards_rival_effect = { -# REASON = rival_rejected_switching_to_struggle_detractor -# CHARACTER = scope:recipient -# OPINION = default_rival_opinion -# } -# } -# } -# else = { -# send_interface_toast = { -# type = event_toast_effect_bad -# title = recipient_refused_to_join_your_side_title -# left_icon = scope:recipient -# progress_towards_rival_effect = { -# REASON = rival_rejected_switching_to_struggle_supporter -# CHARACTER = scope:recipient -# OPINION = default_rival_opinion -# } -# } -# } -# } -# scope:recipient = { -# set_variable = { -# name = fp3_change_allegiance_refused_cooldown -# years = 20 -# } -# } -# } -# ai_frequency_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# ai_targets = { -# ai_recipients = liege -# ai_recipients = neighboring_rulers -# ai_recipients = peer_vassals -# ai_recipients = vassals -# ai_recipients = top_realm_domicile_owners -# max = 10 -# } -# -# ai_will_do = { -# base = -50 # Let's limit it to specific character to avoid pure chaos -# -# ############### -# ## BASE -# ############### -# -# # AI Values -# ## Detractors run off of lacking zeal -# modifier = { -# add = { -# value = ai_zeal -# multiply = -2 -# } -# has_trait = fp3_struggle_detractor -# ai_zeal <= -1 -# } -# ## Supporters run off of turbo-charged zeal -# modifier = { -# add = { -# value = ai_zeal -# multiply = 2 -# } -# has_trait = fp3_struggle_supporter -# ai_zeal >= 1 -# } -# -# # The caliph wants to use this all the time. -# modifier = { -# has_title = title:d_sunni -# add = 200 -# } -# -# ############### -# ## TRAITS -# ############### -# -# # schemer -# modifier = { -# add = 15 -# has_trait = schemer -# } -# -# # theologian -# modifier = { -# add = 25 -# has_trait = theologian -# } -# -# # intrigue education -# modifier = { -# add = 15 -# has_trait = education_intrigue -# } -# -# # learning education -# modifier = { -# add = 25 -# has_trait = education_learning -# } -# -# ################ -# ## RELATIONSHIP -# ################ -# -# # more likely to do it against friend and lover -# modifier = { -# add = 50 -# scope:recipient = { -# OR = { -# has_relation_friend = scope:actor -# has_relation_lover = scope:actor -# } -# } -# } -# -# # boost against liege for Ambitious -# modifier = { -# add = 50 -# scope:actor = { -# has_trait = ambitious -# is_vassal_of = scope:recipient -# } -# } -# -# # never target your rivals -# modifier = { -# add = -1000 -# scope:recipient = { -# has_relation_rival = scope:actor -# } -# } -# -# ################ -# ## STRUGGLE -# ################ -# -# modifier = { -# add = 100 -# OR = { -# AND = { -# scope:recipient = { has_trait = fp3_struggle_supporter } -# scope:actor = { -# has_trait = fp3_struggle_detractor -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_turn_supporter_into_detractor -# } -# } -# } -# AND = { -# scope:recipient = { has_trait = fp3_struggle_detractor } -# scope:actor = { -# has_trait = fp3_struggle_supporter -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_turn_detractor_into_supporter -# } -# } -# } -# } -# } -# } -#} -# -# -#################################### -## Request honorary titles -#################################### -#fp3_request_honorary_titles_interaction = { -# interface_priority = 30 -# category = interaction_category_religion -# common_interaction = yes -# desc = fp3_request_honorary_titles_interaction_desc -# icon = honorary_titles -# -# greeting = positive -# -# auto_accept = yes -# -# cooldown = { years = 10 } -# -# cost = { -# piety = { -# value = major_piety_value -# if = { -# limit = { # cheaper for the actual liege -# scope:actor = { -# any_vassal = { -# any_held_title = { -# this = title:d_sunni -# } -# } -# } -# } -# subtract = medium_piety_value -# } -# } -# } -# -# is_available = { -# trigger_if = { -# limit = { is_ai = yes } -# any_vassal = { -# any_held_title = { -# this = title:d_sunni -# } -# } -# } -# } -# -# is_shown = { -# fp3_reward_from_vassalization_ending = yes -# } -# -# is_valid = { -# # honorary titles should be unique -# custom_tooltip = { -# text = one_of_the_title_is_available_tt -# scope:actor = { -# house ?= { -# NAND = { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_intrigue_modifier -# } -# any_house_member = { -# has_character_modifier = fp3_honorary_title_scholarship_modifier -# } -# -# any_house_member = { -# has_character_modifier = fp3_honorary_title_stewardship_modifier -# } -# any_house_member = { -# has_character_modifier = fp3_honorary_title_diplomacy_modifier -# } -# any_house_member = { -# has_character_modifier = fp3_honorary_title_piety_modifier -# } -# any_house_member = { -# has_character_modifier = fp3_honorary_title_prestige_modifier -# } -# any_house_member = { -# has_character_modifier = fp3_honorary_title_martial_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = intrigue_option -# localization = fp3_honorary_title_intrigue_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_intrigue_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = scholarship_option -# localization = fp3_honorary_title_scholarship_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_scholarship_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = stewardship_option -# localization = fp3_honorary_title_stewardship_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_stewardship_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = diplomacy_option -# localization = fp3_honorary_title_diplomacy_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_diplomacy_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = piety_option -# localization = fp3_honorary_title_piety_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_piety_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = prestige_option -# localization = fp3_honorary_title_prestige_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_prestige_modifier -# } -# } -# } -# } -# } -# } -# -# send_option = { -# flag = martial_option -# localization = fp3_honorary_title_martial_modifier -# is_valid = { -# NOT = { -# scope:actor = { -# house ?= { -# any_house_member = { -# has_character_modifier = fp3_honorary_title_martial_modifier -# } -# } -# } -# } -# } -# } -# -# on_accept = { -# scope:actor = { -# send_interface_toast = { -# type = event_toast_effect_good -# title = new_honorary_title_acquired_title -# left_icon = scope:recipient -# -# switch = { -# trigger = yes -# scope:intrigue_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_intrigue_modifier -# } -# } -# scope:scholarship_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_scholarship_modifier -# } -# } -# scope:stewardship_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_stewardship_modifier -# } -# } -# scope:diplomacy_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_diplomacy_modifier -# } -# } -# scope:piety_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_piety_modifier -# } -# } -# scope:prestige_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_prestige_modifier -# } -# } -# scope:martial_option = { -# add_character_modifier = { -# modifier = fp3_honorary_title_martial_modifier -# } -# } -# } -# } -# } -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# ai_targets = { -# ai_recipients = vassals -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -# -#################################### -## Request house unity interference -#################################### -#fp3_request_house_unity_change_interaction = { -# interface_priority = 30 -# category = interaction_category_religion -# common_interaction = yes -# desc = fp3_request_house_unity_change_interaction_desc -# icon = unity_harmonious -# -# greeting = positive -# -# -# auto_accept = yes -# -# cooldown = { years = 10 } -# -# cost = { -# piety = medium_piety_value -# } -# -# is_available = { -# government_has_flag = government_is_clan -# trigger_if = { -# limit = { is_ai = yes } -# any_vassal = { -# any_held_title = { -# this = title:d_sunni -# } -# } -# } -# } -# -# is_shown = { -# fp3_reward_from_vassalization_ending = yes -# } -# -# is_valid = { -# # only valid for the actual liege -# custom_tooltip = { -# text = you_are_the_liege_of_the_caliph_tt -# scope:actor = { -# is_liege_or_above_of = scope:recipient -# } -# scope:recipient = { -# any_held_title = { -# this = title:d_sunni -# } -# } -# } -# } -# -# send_option = { -# flag = unity_gain -# localization = INCREASE_HOUSE_UNITY -# starts_enabled = { always = yes } -# } -# -# send_option = { -# flag = unity_loss -# localization = DECREASE_HOUSE_UNITY -# } -# -# on_accept = { -# scope:recipient = { save_scope_as = unity_target } -# scope:actor = { -# save_scope_as = unity_character -# house = { -# add_unity_value = { -# value = { -# if = { -# limit = { scope:unity_gain = yes } -# add = medium_unity_gain -# } -# else_if = { -# limit = { scope:unity_loss = yes } -# add = medium_unity_loss -# } -# } -# character = scope:actor -# desc = clan_unity_caliph_interfered_with_unity.desc -# } -# } -# } -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# ai_targets = { -# # For the AI, we limit it to neighboring_rulers -# ai_recipients = vassals -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file +fp3_demand_submission_interaction = { + icon = demand_submission + category = interaction_category_religion + popup_on_receive = yes + pause_on_receive = yes + can_send_despite_rejection = yes + ai_maybe = yes + desc = fp3_demand_submission_interaction_desc + + greeting = positive + notification_text = DEMAND_SUBMISSION_NOTIFICATION + + is_available = { + trigger_if = { + limit = { is_ai = yes } + is_physically_able = yes + } + } + + is_shown = { + scope:actor != scope:recipient + struggle:persian_struggle ?= { has_struggle_phase_parameter = demand_submission_interaction_unlocked } + scope:actor = { has_title = title:d_sunni } + scope:recipient = { + faith.religious_head ?= scope:actor + has_trait = fp3_struggle_supporter + any_character_struggle = { this = struggle:persian_struggle } + } + } + + cooldown_against_recipient = { years = 10 } + + ai_min_reply_days = 2 + ai_max_reply_days = 7 + + ai_accept = { + base = 0 + # This is more flavorful than "base acceptance" + modifier = { + desc = DEMAND_SUBMISSION_I_AM_HEAD_OF_FAITH + add = 50 + } + ## Piety + # How pious are you? + modifier = { + # (Stolen shamelessly from piety_level_affects_vassalage_acceptance) + add = { + value = { + value = -1 + add = scope:actor.piety_level + } + multiply = 10 + } + desc = I_AM_PIOUS + # Only matters if they aren't cynical + NOT = { scope:recipient = { has_trait = cynical } } + } + # Are they cynical/zealous? + modifier = { + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_CYNICAL + add = -30 + scope:recipient = { + has_trait = cynical + } + } + modifier = { + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_ZEALOUS + add = 20 + scope:recipient = { has_trait = zealous } + } + # Are you giving them extra piety? + modifier = { + add = 30 + desc = STRUGGLE_MARRIAGE_ACCEPTANCE_USING_PIETY_AS_CURRENCY + scope:piety_cost_reduction ?= yes + } + ## Opinion + # Do they like you? + opinion_modifier = { + who = scope:recipient + opinion_target = scope:actor + multiplier = 0.25 + desc = AI_OPINION_REASON + } + ## Personality + # Are they ambitious? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_AMBITIOUS + add = -30 + scope:recipient = { has_trait = ambitious } + } + # Are they content? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_CONTENT + add = 10 + scope:recipient = { has_trait = content } + } + # Are they stubborn? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_STUBBORN + add = -10 + scope:recipient = { has_trait = stubborn } + } + # Are they arrogant? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_ARROGANT + add = -10 + scope:recipient = { has_trait = arrogant } + } + # Are they humble? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_HUMBLE + add = 10 + scope:recipient = { has_trait = humble } + } + # Are they trusting? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_TRUSTING + add = 10 + scope:recipient = { has_trait = trusting } + } + # Are they paranoid? + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_PARANOID + add = -20 + scope:recipient = { has_trait = paranoid } + } + # Are they loyal? + # Independent rulers should rarely have this trait, but if your predecessor installed a puppet and died, then this makes it easier to demand submission from the puppet + modifier = { + desc = DEMAND_SUBMISSION_RECIPIENT_IS_LOYAL + add = 20 + scope:recipient = { has_trait = loyal } + } + ## Realm + # Are you stronger/weaker than them? + modifier = { + add = { + value = 1 + subtract = { + value = scope:recipient.max_military_strength # For foreign diplomacy, consider recipients max + divide = { value = scope:actor.current_military_strength min = 1 } + } + multiply = 10 + } + desc = offer_vassalization_interaction_aibehavior_power_tt + } + # Reign duration + modifier = { + add = { + value = scope:actor.primary_title.title_held_years + subtract = 21 + max = 20 + } + desc = DEMAND_SUBMISSION_SHORT_REIGN + } + ## Dread + modifier = { + add = intimidated_halved_reason_value + scope:recipient = { + has_dread_level_towards = { + target = scope:actor + level = 1 + } + } + desc = INTIMIDATED_REASON + } + modifier = { + add = cowed_halved_reason_value + scope:recipient = { + has_dread_level_towards = { + target = scope:actor + level = 2 + } + } + desc = COWED_REASON + } + } + + on_accept = { + scope:actor = { + if = { + limit = { scope:piety_cost_reduction ?= yes } + add_piety = massive_piety_loss + } + add_hook = { + target = scope:recipient + type = caliphal_submission_hook + } + if = { + limit = { has_variable = last_explicit_defied_caliph } + remove_variable = last_explicit_defied_caliph + } + trigger_event = fp3_misc_decisions.0010 # Letter event informing player of success + } + scope:recipient = { + if = { + limit = { scope:piety_cost_reduction ?= yes } + add_piety = massive_piety_gain + } + } + + # If we're a clan this interaction affects unity + add_house_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_forment_revolt.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + on_decline = { + scope:recipient = { + custom_tooltip = DEMAND_SUBMISSION_INSTALL_LOYALIST_WARNING + add_piety = medium_piety_loss + remove_trait = fp3_struggle_supporter + add_trait_force_tooltip = fp3_struggle_detractor + # This is for the install loyalist CB discount + set_variable = { + name = last_explicit_defied_caliph + value = scope:actor + years = 30 + } + } + scope:actor = { + trigger_event = fp3_misc_decisions.0011 # Letter event informing player of failure + } + + # If we're a clan this interaction affects unity + add_house_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_forment_revolt.desc + REVERSE_NON_HOUSE_TARGET = no + } + } + + # Use piety to increase acceptance + send_option = { + flag = piety_cost_reduction + localization = TRADE_PIETY_FOR_BETTER_AI_ACCEPTANCE + } + send_options_exclusive = no + + ai_targets = { + ai_recipients = neighboring_rulers + } + + ai_frequency_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + # Very similar to ai_accept, but ignores effects that are < 10 in value for brevity's sake + ai_will_do = { + # The caliph generally _wants_ to be chucking these out all over the place. + ## Basically, the more rulers submit to their authority, the better. + ### Subs over drubs, as it were. + base = 100 + # Will demand rulers who were installed via the puppet CB + modifier = { + add = 200 + scope:recipient = { + has_trait = loyal + scope:actor = { has_hook = prev } + } + } + modifier = { + add = { + value = { + value = -1 + add = scope:actor.piety_level + } + multiply = 10 + } + NOT = { scope:recipient = { has_trait = cynical } } + } + modifier = { + add = -30 + scope:recipient = { + has_trait = cynical + } + } + modifier = { + add = 20 + scope:recipient = { has_trait = zealous } + } + opinion_modifier = { + who = scope:recipient + opinion_target = scope:actor + multiplier = 0.25 + } + modifier = { + add = -30 + scope:recipient = { has_trait = ambitious } + } + modifier = { + add = { + value = 1 + subtract = { + value = scope:recipient.max_military_strength + divide = { value = scope:actor.current_military_strength min = 1 } + } + multiply = 10 + } + } + # Reign duration + modifier = { + add = { + value = scope:actor.primary_title.title_held_years + subtract = 21 + max = 20 + } + } + ## Dread + modifier = { + add = intimidated_halved_reason_value + scope:recipient = { + has_dread_level_towards = { + target = scope:actor + level = 1 + } + } + } + modifier = { + add = cowed_halved_reason_value + scope:recipient = { + has_dread_level_towards = { + target = scope:actor + level = 2 + } + } + } + } +} + +################################### +# Request Turkic invasion (can_request_incursion_interaction) +# By Hugo Cortell +################################### +fp3_request_turkic_invasion_interaction = { + interface_priority = 100 + common_interaction = yes + category = interaction_category_hostile + cooldown_against_recipient = { years = 2 } + + icon = request_mercenary + desc = fp3_request_turkic_invasion_interaction_desc + + is_available = { + OR = { + AND = { + has_trait = fp3_struggle_detractor + any_character_struggle = { is_struggle_type = persian_struggle } + } + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + trigger_if = { + limit = { is_ai = yes } + ai_greed <= 25 + OR = { + has_trait = fp3_struggle_detractor + AND = { + vassal_contract_has_flag = celestial_military_appointment + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + } + NOT = { culture = { has_cultural_pillar = heritage_turkic } } + ai_has_builder_or_pious_builder_personality = no + is_at_war = no + } + } + + is_shown = { + scope:recipient = { + is_playable_character = yes + is_landed = yes + trigger_if = { + limit = { + scope:actor = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + } + top_liege = scope:actor.top_liege + } + trigger_else = { + OR = { + any_character_struggle = { is_struggle_type = persian_struggle } + title:d_sunni.holder ?= this + } + top_liege ?= this + + } + is_ai = yes + } + scope:actor != scope:recipient + } + + is_valid_showing_failures_only = { + } + + populate_recipient_list = { + scope:actor.top_liege = { + every_independent_ruler = { + limit = { + is_ai = yes + is_landed = yes + is_physically_able = yes + has_raised_armies = no + is_at_war = no + in_diplomatic_range = scope:actor + highest_held_title_tier >= tier_county + NOR = { + is_allied_to = scope:recipient + has_truce = scope:recipient + this = scope:actor + this = scope:recipient + is_tributary_of = scope:recipient.top_liege + } + OR = { + trigger_if = { + limit = { + NOT = { + scope:actor = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + } + } + government_has_flag = government_is_clan + } + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + government_has_flag = government_is_wanua + government_has_flag = government_is_landless_adventurer + } + trigger_if = { + limit = { + scope:actor = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + } + any_neighboring_top_liege_realm = { + OR = { + title:h_china ?= this + any_title_to_title_neighboring_empire = { + hegemony ?= title:h_china + } + } + } + } + trigger_else = { + culture = { + OR = { + has_cultural_pillar = heritage_turkic + has_cultural_pillar = heritage_mongolic + } + } + } + } + add_to_list = characters + } + } + } + + send_options_exclusive = no + + send_option = { + flag = war_support + localization = fp3_request_turkic_invasion_interaction_option_join_war + current_description = fp3_request_turkic_invasion_interaction_option_join_war_desc + is_shown = { exists = scope:secondary_recipient } + is_valid = { + scope:actor = { + NOR = { + is_at_war_with = scope:recipient + is_allied_to = scope:recipient + has_truce = scope:recipient + } + tgp_is_hegemon_or_below_in_dynastic_cycle_trigger = no + } + } + } + + send_option = { + flag = financial_support + localization = fp3_request_turkic_invasion_interaction_option_more_gold + current_description = fp3_request_turkic_invasion_interaction_option_more_gold_desc + is_shown = { exists = scope:secondary_recipient } + is_valid = { + custom_description = { + text = fp3_please_dont_give_me_negative_gold + fp3_request_invasion_troop_value_estimate > 0 + } + } + } + + cost = { + gold = { + value = { + value = scope:secondary_recipient.max_military_strength + divide = 20 + round = yes + } + add = { + if = { + limit = { scope:financial_support = yes } + add = fp3_request_invasion_troop_value_estimate + } + } + if = { + limit = { + scope:recipient = { has_title = title:d_sunni } + struggle:persian_struggle = { has_struggle_phase_parameter = cheaper_incursions_vs_caliph } + } + divide = 2 + } + } + } + + on_accept = { + if = { + limit = { exists = scope:secondary_recipient } + + scope:recipient = { + if = { + limit = { + scope:actor = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + } + capital_county = { + save_scope_as = invasion_target_title + } + } + else = { + if = { + limit = { + any_realm_county = { + this != scope:recipient.capital_county + any_neighboring_county = { holder.top_liege = scope:secondary_recipient.top_liege } + any_county_province = { geographical_region = world_persian_empire } + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + } + random_realm_county = { + limit = { + this != scope:recipient.capital_county + any_neighboring_county = { holder.top_liege = scope:secondary_recipient.top_liege } + any_county_province = { geographical_region = world_persian_empire } + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + save_scope_as = invasion_target_title + } + } + else_if = { + limit = { + any_realm_county = { + this != scope:recipient.capital_county + any_neighboring_county = { + any_county_province = { geographical_region = world_persian_empire } + holder.top_liege != prev.holder.top_liege + } + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + } + random_realm_county = { + limit = { + this != scope:recipient.capital_county + any_neighboring_county = { + any_county_province = { geographical_region = world_persian_empire } + holder.top_liege != prev.holder.top_liege + } + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + save_scope_as = invasion_target_title + } + } + else_if = { + limit = { + any_realm_county = { + this != scope:recipient.capital_county + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + } + random_realm_county = { + limit = { + this != scope:recipient.capital_county + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + save_scope_as = invasion_target_title + } + } + else_if = { + limit = { + any_realm_county = { + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + } + random_realm_county = { + limit = { + NOR = { + holder = scope:actor + holder = { is_vassal_or_below_of = scope:actor } + } + } + save_scope_as = invasion_target_title + } + } + else = { + random_realm_county = { save_scope_as = invasion_target_title } + } + } + + scope:invasion_target_title.duchy = { save_scope_as = text_title } + + hidden_effect = { # Not worth cluttering the UI with + add_opinion = { + modifier = fp3_incited_conflict + target = scope:actor + } + add_opinion = { + modifier = declared_war + target = scope:secondary_recipient + } + } + } + + scope:secondary_recipient = { + add_gold = { + value = { + value = scope:secondary_recipient.max_military_strength + divide = 20 + round = yes + } + add = { + if = { + limit = { scope:financial_support = yes } + add = fp3_request_invasion_troop_value_estimate + } + } + if = { + limit = { + scope:recipient = { has_title = title:d_sunni } + struggle:persian_struggle = { has_struggle_phase_parameter = cheaper_incursions_vs_caliph } + } + divide = 2 + } + } + start_war = { + casus_belli = fp3_turkic_invasion_cb + target = scope:recipient + target_title = scope:invasion_target_title.duchy + } + custom_tooltip = fp3_turkic_invasion_cb_result_tt + if = { + limit = { + scope:financial_support = yes + } + trigger_event = fp3_misc_decisions.0006 + if = { + limit = { + has_mpo_dlc_trigger = yes + } + show_as_tooltip = { + spawn_army = { + men_at_arms = { + type = horse_archers + stacks = fp3_request_invasion_troop_value_bonus_troops + } + men_at_arms = { + type = steppe_raiders + stacks = fp3_request_invasion_troop_value_bonus_troops + } + men_at_arms = { + type = light_horsemen + stacks = fp3_request_invasion_troop_value_bonus_troops + } + men_at_arms = { + type = nomadic_riders + stacks = fp3_request_invasion_troop_value_bonus_levy_nomads + } + location = capital_province + uses_supply = yes + inheritable = no + name = turkic_tribal_event_troops + } + } + } + else = { + show_as_tooltip = { + spawn_army = { + men_at_arms = { + type = horse_archers + stacks = fp3_request_invasion_troop_value_bonus_troops + } + men_at_arms = { + type = light_horsemen + stacks = fp3_request_invasion_troop_value_bonus_troops + } + levies = fp3_request_invasion_troop_value_bonus_levy_troops + location = capital_province + uses_supply = yes + inheritable = no + name = turkic_tribal_event_troops + } + } + } + } + if = { + limit = { scope:war_support = yes } + custom_tooltip = fp3_request_turkic_invasion_interaction_option_join_war_outcome_tooltip + trigger_event = fp3_misc_decisions.0005 + } + } + + scope:actor = { + hidden_effect = { + send_interface_toast = { + type = event_toast_effect_good + title = fp3_request_turkic_invasion_interaction_accept_notification.t + left_icon = scope:secondary_recipient + right_icon = scope:recipient + + show_as_tooltip = { + custom_tooltip = fp3_request_turkic_invasion_interaction_accept_notification.desc + } + } + } + if = { + limit = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = expansion_movement + } + } + add_secret = { + target = scope:recipient + type = secret_request_incursion + } + scope:secondary_recipient = { + add_secret = { + target = scope:recipient + type = secret_request_incursion + } + } + } + } + + scope:recipient = { + add_character_flag = { + flag = incursion_ai_pacing + years = 5 + } + hidden_effect = { + send_interface_toast = { + type = event_toast_effect_bad + title = fp3_request_turkic_invasion_interaction_accept_notification.t + left_icon = scope:secondary_recipient + right_icon = scope:actor + + show_as_tooltip = { + custom_tooltip = fp3_request_turkic_invasion_interaction_accept_target_notification.desc + } + } + } + } + } + } + + use_diplomatic_range = yes + + ai_accept = { + base = 0 + + # Relationships: actor -> recipient / We avoid more relationship checks for balance reasons (and because important decisions tend to care little for relationships) + modifier = { # Rivalry modifier. + desc = offer_vassalization_interaction_aibehavior_rival_tt_2 + trigger = { + scope:secondary_recipient = { + has_relation_rival = scope:actor + NOT = { has_relation_nemesis = scope:actor } + } + } + add = -10 + } + modifier = { # Nemesis modifier. + desc = offer_vassalization_interaction_aibehavior_nemesis_tt_2 + trigger = { + scope:secondary_recipient = { + has_relation_nemesis = scope:actor + } + } + add = -100 + } + modifier = { # Same Dynasty modifier. + desc = offer_vassalization_interaction_aibehavior_dynasty_tt_2 + trigger = { + scope:secondary_recipient = { + dynasty = scope:actor.dynasty + } + } + add = 10 + } + + # Compare Opinion modifier + opinion_modifier = { + who = scope:secondary_recipient + opinion_target = scope:actor + multiplier = 0.25 + } + + # Pledged to help in invasion + modifier = { + add = { + value = scope:actor.max_military_strength + divide = 70 + round = yes + } + desc = HAS_YOUR_SUPPORT_REASON + scope:war_support = yes + } + + # Relative power (taken from PT interaction) + modifier = { # A lot less levies than scope:secondary_recipient + add = -100 + scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_far_weaker_value + desc = fp3_RTI_AI_RECIPIENT_IS_MUCH_WEAKER + } + modifier = { # Few less levies than scope:secondary_recipient + add = -75 + scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_far_weaker_value + scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_somewhat_weaker_value + desc = fp3_RTI_AI_RECIPIENT_IS_SOMEWHAT_WEAKER + } + modifier = { # Roughly equal levies with scope:secondary_recipient + add = 10 + scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_somewhat_weaker_value + scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_somewhat_stronger_value + desc = fp3_RTI_AI_RECIPIENT_IS_ROUGHLY_EQUAL + } + modifier = { # More levies than scope:secondary_recipient + add = 50 + scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_somewhat_stronger_value + scope:secondary_recipient.max_military_strength <= scope:recipient.purchase_truce_interaction_recipient_far_stronger_value + desc = fp3_RTI_AI_RECIPIENT_IS_SOMEWHAT_STRONGER + } + modifier = { # Many more levies than scope:secondary_recipient + add = 75 + scope:secondary_recipient.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_far_stronger_value + desc = fp3_RTI_AI_RECIPIENT_IS_MUCH_STRONGER + } + + # AI who are in debt will take whatever windfalls they can. + modifier = { + add = { + value = scope:secondary_recipient.debt_level + add = 1 # Our first level is 0, so we add one to always get a positive number. + multiply = 10 + } + debt_level >= 0 + desc = PT_AI_IS_IN_DEBT + } + + # Pacifist AI don't like raiding + modifier = { + add = -25 + scope:secondary_recipient.faith = { has_doctrine_parameter = pacifist } + desc = PT_AI_IS_PACIFIST_FAITH_2 + } + modifier = { + add = -25 + scope:secondary_recipient.culture = { has_cultural_parameter = reduced_cost_for_conversion_to_pacifist_faith } + desc = PT_AI_IS_PACIFIST_CULTURE_2 + } + # Distance + modifier = { + add = -25 + "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_medium + "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" < squared_distance_almost_massive + desc = PT_AI_IS_FAR_AWAY + } + modifier = { + add = -75 + "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_almost_massive + desc = PT_AI_IS_VERY_FAR_AWAY + } + modifier = { + add = 20 + exists = scope:actor.var:movement_power + scope:actor.var:movement_power >= very_high_movement_power_value + desc = ACTOR_HIGH_MOVEMENT_POWER + } + + # Offered proportional gold + modifier = { + add = 85 + scope:financial_support = yes + desc = GOLD_REASON + } + + # AI value mod + ai_value_modifier = { + ai_greed = 0.5 + ai_boldness = 0.25 + min = 0 + max = 25 + } + } + can_send_despite_rejection = no + ai_frequency_by_tier = { + barony = 0 + county = 72 + duchy = 72 + kingdom = 36 + empire = 24 + hegemony = 24 + } + ai_frequency_by_tier_government_override = { + government = merchant_government + barony = 0 + county = 216 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + ai_targets = { + ai_recipients = neighboring_rulers + ai_recipients = liege + } + ai_will_do = { + base = 0 + + modifier = { + add = 50 + scope:recipient = { + has_trait = fp3_struggle_supporter + scope:recipient.max_military_strength >= scope:actor.max_military_strength + } + } + + modifier = { + add = 50 + title:d_sunni.holder ?= scope:recipient + } + + modifier = { + add = 100 + scope:recipient = { + has_relation_rival = scope:actor + } + } + + modifier = { + factor = 0.1 + scope:actor.liege ?= scope:recipient + } + + modifier = { + factor = 0 + scope:recipient = { + has_character_flag = incursion_ai_pacing + } + } + + modifier = { + factor = 0 + scope:recipient = { + is_at_war = yes + is_ai = no + } + } + + modifier = { + factor = 0 + scope:recipient = { + is_ai = no + is_liege_or_above_of = scope:actor + } + } + + modifier = { + factor = 0 + scope:recipient = { + OR = { + has_relation_friend = scope:actor + has_relation_lover = scope:actor + opinion = { + target = scope:actor + value >= 45 + } + } + } + } + } +} + +################################### +# 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 + can_send_despite_rejection = yes + 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_available = { + OR = { + government_has_flag = government_is_clan + government_is_japanese_trigger = yes + } + trigger_if = { + limit = { is_ai = yes } + is_house_head = no + is_physically_able = yes + } + } + + is_shown = { + scope:actor = { + this != scope:recipient + house ?= { + house_head ?= scope:recipient + OR = { + OR = { + has_house_unity_parameter = unity_can_challenge_house_head + has_house_unity_parameter = unity_much_more_likely_to_challenge_house_head + has_house_unity_parameter = unity_more_likely_to_challenge_house_head + } + scope:actor = { + any_character_struggle = { has_struggle_phase_parameter = unlocks_challenge_house_head_for_clans } + } + AND = { + scope:actor = { government_is_japanese_trigger = yes } + house_head = { government_is_japanese_trigger = yes } + } + } + } + } + } + + 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 + trigger_if = { + limit = { + scope:actor = { is_landed = 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 } + } + tgp_is_ceremonial_liege_trigger = no + } + } + + 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:recipient = { is_vassal_or_below_of = scope:actor } + } + scope:recipient = { is_vassal_or_below_of = scope:actor } + } + 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 = { + OR = { + scope:recipient = { is_vassal_or_below_of = scope:actor } + 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_house_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_house_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_house_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 + } + } + } + # Admin Japanese can duel, but it is frowned upon + scope:actor = { + custom_description_no_bullet = { + text = challenge_house_head_japanese_admin + } + if = { + limit = { + government_is_japanese_trigger = yes + tgp_soryo_or_bushido_trigger = no + } + if = { + limit = { scope:lethal = no } + add_prestige = medium_prestige_loss + } + else = { + add_prestige = major_prestige_loss + add_prestige_level = -1 + } + } + } + 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 + starts_enabled = { + scope:actor = { tgp_soryo_or_bushido_trigger = no } + } + 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 + trigger_if = { + limit = { government_is_japanese_trigger = yes } + tgp_soryo_or_bushido_trigger = yes + scope:recipient = { tgp_soryo_or_bushido_trigger = yes } + } + } + 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 } + } + factor = 0.5 + desc = AI_AVOID_LETHAL_DUEL_WITH_FAMILY + } + modifier = { + NOT = { scope:diplomacy = yes } + scope:recipient = { + government_is_japanese_trigger = yes + tgp_soryo_or_bushido_trigger = no + } + factor = 0.5 + desc = AI_NOT_SORYO_OR_BUSHIDO + } + opinion_modifier = { + opinion_target = scope:actor + multiplier = 0.5 + } + modifier = { + add = -150 + scope:actor = { is_ruler = no } + scope:recipient = { is_ruler = yes } + desc = AI_NOT_A_RULER + } + } + + ai_frequency_by_tier = { + barony = 0 + county = 36 + duchy = 24 + kingdom = 6 + empire = 1 + hegemony = 1 + } + + ai_target_quick_trigger = { + adult = 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 + AND = { + NOT = { + scope:recipient = { is_vassal_or_below_of = scope:actor } + } + OR = { + AND = { + top_liege = this + 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 + } + } + } + } + # 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 + } + # Higher in stature + modifier = { + is_independent_ruler = yes + scope:recipient = { is_independent_ruler = no } + add = 1000 + } + modifier = { + highest_held_title_tier > scope:recipient.highest_held_title_tier + scope:recipient = { is_independent_ruler = no } + add = { + value = highest_held_title_tier + add = scope:recipient.highest_held_title_tier + multiply = 10 + } + } + modifier = { + scope:recipient = { is_vassal_or_below_of = scope:actor } + add = 500 + } + # Remove non dominant gender + modifier = { + scope:actor = { is_faith_dominant_gender = yes } + scope:recipient = { is_faith_dominant_gender = no } + factor = 2 + } + # Low Unity + modifier = { + scope:actor.house = { has_house_unity_parameter = unity_more_likely_to_challenge_house_head } + factor = 1.5 + } + modifier = { + scope:actor.house = { has_house_unity_parameter = unity_much_more_likely_to_challenge_house_head } + factor = 2 + } + # Stop AI constantly challenging players + modifier = { + scope:recipient = { has_character_flag = ai_cooldown_house_head_challenge_flag } + factor = 0 + } + # Stop AI game-overing players + modifier = { + scope:recipient = { + trigger_if = { + limit = { is_ai = no } + is_landed = no + any_held_title = { is_noble_family_title = yes } + } + } + factor = 0 + } + } +} + + +################################### +# Change struggle allegiance +################################### +fp3_change_allegiance = { + interface_priority = 30 + category = interaction_category_diplomacy + common_interaction = yes + desc = { + first_valid = { + # Become a supporter. + triggered_desc = { + trigger = { + scope:actor = { has_trait = fp3_struggle_supporter } + } + desc = fp3_change_allegiance.desc.actor_is_supporter + } + # Become a detractor. + triggered_desc = { + trigger = { + scope:actor = { has_trait = fp3_struggle_detractor } + } + desc = fp3_change_allegiance.desc.actor_is_detractor + } + desc = fp3_change_allegiance.desc.fallback + } + } + icon = change_allegiance + + greeting = positive + notification_text = fp3_change_allegiance_notification + + 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_maybe = yes + + is_available = { + any_character_struggle = { is_struggle_type = persian_struggle } + trigger_if = { + limit = { is_ai = yes } + OR = { + has_trait = fp3_struggle_detractor + has_trait = fp3_struggle_supporter + } + primary_title.tier >= tier_duchy + } + } + + is_shown = { + has_fp3_dlc_trigger = yes + # There has to be a caliph around to sway on. + ## Arguably narratively not, but mechanically, everything will break if we don't. + exists = title:d_sunni.holder + scope:recipient != scope:actor + scope:actor = { + OR = { + # Detractors are made from supporters. + AND = { + has_trait = fp3_struggle_detractor + scope:recipient = { has_trait = fp3_struggle_supporter } + } + # Supporters are made from detractors. + AND = { + has_trait = fp3_struggle_supporter + scope:recipient = { has_trait = fp3_struggle_detractor } + } + # Neutrals can be asked either way, should they exist. + AND = { + OR = { + has_trait = fp3_struggle_detractor + has_trait = fp3_struggle_supporter + } + scope:recipient = { + NOR = { + has_trait = fp3_struggle_detractor + has_trait = fp3_struggle_supporter + } + } + } + } + } + scope:recipient = { + any_character_struggle = { is_struggle_type = persian_struggle } + # You cannot ask the Caliph! + NOT = { this = title:d_sunni.holder } + } + } + + is_valid_showing_failures_only = { + scope:recipient = { + # We want to disable some stuff for supporters who can't be persuaded away from the caliph. + trigger_if = { + limit = { has_trait = fp3_struggle_supporter } + # Can't be allied to the caliph. + NOT = { is_allied_to = title:d_sunni.holder } + # Can't be strong hooked _by_ the caliph. + NOT = { + title:d_sunni.holder = { has_strong_hook = prev } + } + # Can't have only recently changed to become a supporter. + custom_tooltip = { + text = fp3_change_allegiance.tt.recently_voluntarily_became_supporter + OR = { + NOT = { has_variable = last_explicit_friday_prayer_caliph } + NOT = { var:last_explicit_friday_prayer_caliph = title:d_sunni.holder } + } + } + } + # Likewise, some circumstances can force them to stay as a detractor. + trigger_if = { + limit = { has_trait = fp3_struggle_detractor } + # Can't have only recently changed to become a detractor. + custom_tooltip = { + text = fp3_change_allegiance.tt.recently_voluntarily_became_detractor + OR = { + NOT = { has_variable = last_explicit_friday_prayer_caliph } + NOT = { var:last_explicit_friday_prayer_caliph = title:d_sunni.holder } + } + } + # Can't have been forced into becoming a detractor by the caliph overstepping. + custom_tooltip = { + text = fp3_change_allegiance.tt.recently_forced_to_detractor + OR = { + NOT = { has_variable = last_explicit_defied_caliph } + NOT = { var:last_explicit_defied_caliph = title:d_sunni.holder } + } + } + } + # Plus some general stuff. + is_at_war = no + # Can't have recently been convinced to change their minds. + custom_tooltip = { + text = fp3_change_allegiance.tt.recently_changed_mind + NOT = { has_character_flag = fp3_change_allegiance_recipient_cooldown } + } + custom_tooltip = { + text = fp3_change_allegiance.tt.recently_refused + NOT = { has_character_flag = fp3_change_allegiance_refused_cooldown } + } + # They must be an orthodox Sunni. + custom_tooltip = { + text = fp3_change_allegiance.tt.hof_is_d_sunni + faith.religious_head ?= title:d_sunni.holder + } + } + scope:actor = { is_available_adult = yes } + } + + auto_accept = { + custom_description = { + text = "spending_hook" + subject = scope:actor + object = scope:recipient + scope:hook = yes + } + } + + ai_accept = { + base = 0 + + # Those who already have a stance are more set in their ways. + ## Detractors + modifier = { + add = -25 + scope:actor = { has_trait = fp3_struggle_supporter } + scope:recipient = { has_trait = fp3_struggle_detractor } + desc = INTERACTION_DETRACTOR + } + ## Supporters + modifier = { + add = -25 + scope:actor = { has_trait = fp3_struggle_detractor } + scope:recipient = { has_trait = fp3_struggle_supporter } + desc = INTERACTION_SUPPORTER + } + + # Opinions + ## Opinion of you + opinion_modifier = { + who = scope:recipient + opinion_target = scope:actor + multiplier = { + value = 1 + # Despawn this if you're not the caliph. + if = { + limit = { scope:actor = title:d_sunni.holder } + multiply = 0 + } + } + } + ## Opinion of the caliph + opinion_modifier = { + who = scope:recipient + opinion_target = title:d_sunni.holder + multiplier = { + value = 0.5 + # If you're the caliph, you can take the full amount. + if = { + limit = { scope:actor = title:d_sunni.holder } + add = 0.5 + } + } + } + # Traits. + ## Become supporter. + ### ++ Zealous. + modifier = { + add = 25 + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_ZEALOUS + scope:actor = { has_trait = fp3_struggle_supporter } + scope:recipient = { has_trait = zealous } + } + ## Become detractor. + ### -- Cynical. + modifier = { + add = 25 + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_CYNICAL + scope:actor = { has_trait = fp3_struggle_detractor } + scope:recipient = { has_trait = cynical } + } + ## Neutral. + ### ++ Fickle. + modifier = { + add = 25 + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_FICKLE + scope:recipient = { has_trait = fickle } + } + ### + Disloyal. + modifier = { + add = 15 + desc = HAS_LOYAL_TRAIT + scope:recipient = { has_trait = disloyal } + } + ### - Loyal. + modifier = { + add = 15 + desc = HAS_DISLOYAL_TRAIT + scope:recipient = { has_trait = loyal } + } + ### -- Stubborn. + modifier = { + add = 25 + desc = ASK_FOR_CONVERSION_RECIPIENT_IS_STUBBORN + scope:recipient = { has_trait = stubborn } + } + # Diplomacy + ## Scope:actor's for convincing + modifier = { + add = { + value = scope:actor.diplomacy + multiply = 5 + } + desc = INTERACTION_DIPLOMACY_ACTOR + } + ## Scope:recipient's for resisting + modifier = { + add = { + value = scope:recipient.diplomacy + multiply = -3 + } + desc = INTERACTION_DIPLOMACY_RECIPIENT + } + } + + cost = { + prestige = medium_prestige_value + } + + # Use hook + send_option = { + flag = hook + is_valid = { + scope:actor = { + has_usable_hook = scope:recipient + } + } + localization = GENERIC_SPEND_A_HOOK + } + + on_accept = { + # Use our hook if we have to. + if = { + limit = { always = scope:hook } + scope:actor = { + use_hook = scope:recipient + } + } + # If we're a clan this interaction affects unity + add_house_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_gain + DESC = clan_unity_changed_alignment.desc + REVERSE_NON_HOUSE_TARGET = no + } + # Run the actual effects. + scope:actor = { + send_interface_toast = { + type = event_toast_effect_good + title = recipient_joined_your_side_title + left_icon = scope:recipient + + scope:recipient = { + if = { + limit = { scope:actor = { has_trait = fp3_struggle_detractor } } + if = { + limit = { has_trait = fp3_struggle_supporter } + remove_trait = fp3_struggle_supporter + } + add_trait_force_tooltip = fp3_struggle_detractor + + # Catalyst + hidden_effect = { + if = { + limit = { + scope:actor = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_turn_supporter_into_detractor + } + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_turn_supporter_into_detractor + character = scope:actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_turn_supporter_into_detractor } + } + } + } + } + else = { + if = { + limit = { has_trait = fp3_struggle_detractor } + remove_trait = fp3_struggle_detractor + } + add_trait_force_tooltip = fp3_struggle_supporter + + # Catalyst + hidden_effect = { + if = { + limit = { + scope:actor = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_turn_detractor_into_supporter + } + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_turn_detractor_into_supporter + character = scope:actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_turn_detractor_into_supporter } + } + } + } + } + } + } + } + # Aaaaand flag scope:recipient as on cooldown for a while. + scope:recipient = { + set_variable = { + name = fp3_change_allegiance_recipient_cooldown + years = 20 + } + } + } + + on_decline = { + add_house_unity_interaction_effect = { + CHARACTER = scope:actor + TARGET = scope:recipient + VALUE = medium_unity_loss + DESC = clan_unity_refused_alignment.desc + REVERSE_NON_HOUSE_TARGET = no + } + scope:actor = { + if = { + limit = { + scope:actor = { has_trait = fp3_struggle_detractor } + } + send_interface_toast = { + type = event_toast_effect_bad + title = recipient_refused_to_join_your_side_title + left_icon = scope:recipient + progress_towards_rival_effect = { + REASON = rival_rejected_switching_to_struggle_detractor + CHARACTER = scope:recipient + OPINION = default_rival_opinion + } + } + } + else = { + send_interface_toast = { + type = event_toast_effect_bad + title = recipient_refused_to_join_your_side_title + left_icon = scope:recipient + progress_towards_rival_effect = { + REASON = rival_rejected_switching_to_struggle_supporter + CHARACTER = scope:recipient + OPINION = default_rival_opinion + } + } + } + } + scope:recipient = { + set_variable = { + name = fp3_change_allegiance_refused_cooldown + years = 20 + } + } + } + ai_frequency_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + ai_targets = { + ai_recipients = liege + ai_recipients = neighboring_rulers + ai_recipients = peer_vassals + ai_recipients = vassals + ai_recipients = top_realm_domicile_owners + max = 10 + } + + ai_will_do = { + base = -50 # Let's limit it to specific character to avoid pure chaos + + ############### + ## BASE + ############### + + # AI Values + ## Detractors run off of lacking zeal + modifier = { + add = { + value = ai_zeal + multiply = -2 + } + has_trait = fp3_struggle_detractor + ai_zeal <= -1 + } + ## Supporters run off of turbo-charged zeal + modifier = { + add = { + value = ai_zeal + multiply = 2 + } + has_trait = fp3_struggle_supporter + ai_zeal >= 1 + } + + # The caliph wants to use this all the time. + modifier = { + has_title = title:d_sunni + add = 200 + } + + ############### + ## TRAITS + ############### + + # schemer + modifier = { + add = 15 + has_trait = schemer + } + + # theologian + modifier = { + add = 25 + has_trait = theologian + } + + # intrigue education + modifier = { + add = 15 + has_trait = education_intrigue + } + + # learning education + modifier = { + add = 25 + has_trait = education_learning + } + + ################ + ## RELATIONSHIP + ################ + + # more likely to do it against friend and lover + modifier = { + add = 50 + scope:recipient = { + OR = { + has_relation_friend = scope:actor + has_relation_lover = scope:actor + } + } + } + + # boost against liege for Ambitious + modifier = { + add = 50 + scope:actor = { + has_trait = ambitious + is_vassal_of = scope:recipient + } + } + + # never target your rivals + modifier = { + add = -1000 + scope:recipient = { + has_relation_rival = scope:actor + } + } + + ################ + ## STRUGGLE + ################ + + modifier = { + add = 100 + OR = { + AND = { + scope:recipient = { has_trait = fp3_struggle_supporter } + scope:actor = { + has_trait = fp3_struggle_detractor + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_turn_supporter_into_detractor + } + } + } + AND = { + scope:recipient = { has_trait = fp3_struggle_detractor } + scope:actor = { + has_trait = fp3_struggle_supporter + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_turn_detractor_into_supporter + } + } + } + } + } + } +} + + +################################### +# Request honorary titles +################################### +fp3_request_honorary_titles_interaction = { + interface_priority = 30 + category = interaction_category_religion + common_interaction = yes + desc = fp3_request_honorary_titles_interaction_desc + icon = honorary_titles + + greeting = positive + + auto_accept = yes + + cooldown = { years = 10 } + + cost = { + piety = { + value = major_piety_value + if = { + limit = { # cheaper for the actual liege + scope:actor = { + any_vassal = { + any_held_title = { + this = title:d_sunni + } + } + } + } + subtract = medium_piety_value + } + } + } + + is_available = { + trigger_if = { + limit = { is_ai = yes } + any_vassal = { + any_held_title = { + this = title:d_sunni + } + } + } + } + + is_shown = { + fp3_reward_from_vassalization_ending = yes + } + + is_valid = { + # honorary titles should be unique + custom_tooltip = { + text = one_of_the_title_is_available_tt + scope:actor = { + house ?= { + NAND = { + any_house_member = { + has_character_modifier = fp3_honorary_title_intrigue_modifier + } + any_house_member = { + has_character_modifier = fp3_honorary_title_scholarship_modifier + } + + any_house_member = { + has_character_modifier = fp3_honorary_title_stewardship_modifier + } + any_house_member = { + has_character_modifier = fp3_honorary_title_diplomacy_modifier + } + any_house_member = { + has_character_modifier = fp3_honorary_title_piety_modifier + } + any_house_member = { + has_character_modifier = fp3_honorary_title_prestige_modifier + } + any_house_member = { + has_character_modifier = fp3_honorary_title_martial_modifier + } + } + } + } + } + } + + send_option = { + flag = intrigue_option + localization = fp3_honorary_title_intrigue_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_intrigue_modifier + } + } + } + } + } + } + + send_option = { + flag = scholarship_option + localization = fp3_honorary_title_scholarship_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_scholarship_modifier + } + } + } + } + } + } + + send_option = { + flag = stewardship_option + localization = fp3_honorary_title_stewardship_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_stewardship_modifier + } + } + } + } + } + } + + send_option = { + flag = diplomacy_option + localization = fp3_honorary_title_diplomacy_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_diplomacy_modifier + } + } + } + } + } + } + + send_option = { + flag = piety_option + localization = fp3_honorary_title_piety_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_piety_modifier + } + } + } + } + } + } + + send_option = { + flag = prestige_option + localization = fp3_honorary_title_prestige_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_prestige_modifier + } + } + } + } + } + } + + send_option = { + flag = martial_option + localization = fp3_honorary_title_martial_modifier + is_valid = { + NOT = { + scope:actor = { + house ?= { + any_house_member = { + has_character_modifier = fp3_honorary_title_martial_modifier + } + } + } + } + } + } + + on_accept = { + scope:actor = { + send_interface_toast = { + type = event_toast_effect_good + title = new_honorary_title_acquired_title + left_icon = scope:recipient + + switch = { + trigger = yes + scope:intrigue_option = { + add_character_modifier = { + modifier = fp3_honorary_title_intrigue_modifier + } + } + scope:scholarship_option = { + add_character_modifier = { + modifier = fp3_honorary_title_scholarship_modifier + } + } + scope:stewardship_option = { + add_character_modifier = { + modifier = fp3_honorary_title_stewardship_modifier + } + } + scope:diplomacy_option = { + add_character_modifier = { + modifier = fp3_honorary_title_diplomacy_modifier + } + } + scope:piety_option = { + add_character_modifier = { + modifier = fp3_honorary_title_piety_modifier + } + } + scope:prestige_option = { + add_character_modifier = { + modifier = fp3_honorary_title_prestige_modifier + } + } + scope:martial_option = { + add_character_modifier = { + modifier = fp3_honorary_title_martial_modifier + } + } + } + } + } + } + + ai_frequency_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_targets = { + ai_recipients = vassals + } + + ai_will_do = { + base = 100 + } +} + + +################################### +# Request house unity interference +################################### +fp3_request_house_unity_change_interaction = { + interface_priority = 30 + category = interaction_category_religion + common_interaction = yes + desc = fp3_request_house_unity_change_interaction_desc + icon = unity_harmonious + + greeting = positive + + + auto_accept = yes + + cooldown = { years = 10 } + + cost = { + piety = medium_piety_value + } + + is_available = { + government_has_flag = government_is_clan + trigger_if = { + limit = { is_ai = yes } + any_vassal = { + any_held_title = { + this = title:d_sunni + } + } + } + } + + is_shown = { + fp3_reward_from_vassalization_ending = yes + } + + is_valid = { + # only valid for the actual liege + custom_tooltip = { + text = you_are_the_liege_of_the_caliph_tt + scope:actor = { + is_liege_or_above_of = scope:recipient + } + scope:recipient = { + any_held_title = { + this = title:d_sunni + } + } + } + } + + send_option = { + flag = unity_gain + localization = INCREASE_HOUSE_UNITY + starts_enabled = { always = yes } + } + + send_option = { + flag = unity_loss + localization = DECREASE_HOUSE_UNITY + } + + on_accept = { + scope:recipient = { save_scope_as = unity_target } + scope:actor = { + save_scope_as = unity_character + house = { + add_unity_value = { + value = { + if = { + limit = { scope:unity_gain = yes } + add = medium_unity_gain + } + else_if = { + limit = { scope:unity_loss = yes } + add = medium_unity_loss + } + } + character = scope:actor + desc = clan_unity_caliph_interfered_with_unity.desc + } + } + } + } + + ai_frequency_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_targets = { + # For the AI, we limit it to neighboring_rulers + ai_recipients = vassals + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/character_interactions/00_gift.txt b/common/character_interactions/00_gift.txt index 51af19391..7696506db 100644 --- a/common/character_interactions/00_gift.txt +++ b/common/character_interactions/00_gift.txt @@ -176,9 +176,24 @@ gift_interaction = { type = event_gold_neutral title = gift_interaction_notification right_icon = scope:recipient - pay_short_term_gold = { - gold = gift_value - target = scope:recipient + if = { + limit = { + scope:recipient = { + highest_held_title_tier = tier_barony + government_has_flag = government_is_republic + has_treasury = yes + } + } + pay_gold_to_treasury = { + target = scope:recipient + value = gift_value + } + } + else = { + pay_short_term_gold = { + gold = gift_value + target = scope:recipient + } } stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain @@ -263,67 +278,67 @@ gift_interaction = { } # Struggle Catalyst -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_gift_independent_ruler -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_gift_independent_ruler -# CHAR = scope:recipient -# } -# } -# } -# } -# hidden_effect = { -# scope:puppet_or_actor = { -# every_character_struggle = { -# involvement = involved -# limit = { phase_has_catalyst = catalyst_gift_independent_ruler } -# activate_struggle_catalyst = { -# catalyst = catalyst_gift_independent_ruler -# character = scope:puppet_or_actor -# } -# } -# } -# } -# } -# if = { -# limit = { -# fp3_struggle_involves_one_supporter_and_one_detractor = { -# FIRST = scope:puppet_or_actor -# SECOND = scope:recipient -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# #involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_gift_supporter_detractor_ruler -# CHAR = scope:recipient -# } -# } -# } -# } -# hidden_effect = { -# scope:puppet_or_actor = { -# every_character_struggle = { -# #involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_gift_supporter_detractor_ruler -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_gift_supporter_detractor_ruler -# character = scope:puppet_or_actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_gift_supporter_detractor_ruler } -# } -# } -# } -# } + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_gift_independent_ruler + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_gift_independent_ruler + CHAR = scope:recipient + } + } + } + } + hidden_effect = { + scope:puppet_or_actor = { + every_character_struggle = { + involvement = involved + limit = { phase_has_catalyst = catalyst_gift_independent_ruler } + activate_struggle_catalyst = { + catalyst = catalyst_gift_independent_ruler + character = scope:puppet_or_actor + } + } + } + } + } + if = { + limit = { + fp3_struggle_involves_one_supporter_and_one_detractor = { + FIRST = scope:puppet_or_actor + SECOND = scope:recipient + } + scope:puppet_or_actor = { + any_character_struggle = { + #involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_gift_supporter_detractor_ruler + CHAR = scope:recipient + } + } + } + } + hidden_effect = { + scope:puppet_or_actor = { + every_character_struggle = { + #involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_gift_supporter_detractor_ruler + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_gift_supporter_detractor_ruler + character = scope:puppet_or_actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_gift_supporter_detractor_ruler } + } + } + } + } # FP2 Urbanism Legacy Perk 2: increase cultural acceptance when gifting a republican vassal if = { @@ -574,39 +589,39 @@ gift_interaction = { } # Struggle motive -# modifier = { -# desc = AI_STRUGGLE_INTENT -# scope:recipient = { -# top_liege = this -# 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 -# } -# } -# } + modifier = { + desc = AI_STRUGGLE_INTENT + scope:recipient = { + top_liege = this + 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 + } + } + } } auto_accept = { @@ -768,93 +783,93 @@ gift_interaction = { has_relation_rival = scope:puppet_or_actor } } -# AND = { # Independent ruler within the struggle should be considered -# any_character_struggle = { -# phase_has_catalyst = catalyst_gift_independent_ruler -# } -# } + 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:puppet_or_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:puppet_or_actor = { -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:puppet_or_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:puppet_or_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 = { + scope:recipient = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_gift_independent_ruler + } + } + scope:puppet_or_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:puppet_or_actor = { + has_character_flag = agenda_towards_escalation + } + } + add = -100 + } + else_if = { + limit = { + scope:puppet_or_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:puppet_or_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 @@ -872,18 +887,18 @@ gift_interaction = { } } -# modifier = { -# add = 100 -# scope:puppet_or_actor = { -# is_at_war = no -# has_trait = fp3_struggle_supporter -# any_character_struggle = { is_struggle_type = persian_struggle } -# } -# scope:recipient = { -# title:d_sunni.holder ?= this -# gold < 0 -# } -# } + modifier = { + add = 100 + scope:puppet_or_actor = { + is_at_war = no + has_trait = fp3_struggle_supporter + any_character_struggle = { is_struggle_type = persian_struggle } + } + scope:recipient = { + title:d_sunni.holder ?= this + gold < 0 + } + } # Nomads are slightly less likely to do this since they'd prefer to send Herd instead modifier = { diff --git a/common/character_interactions/00_prison_interactions.txt b/common/character_interactions/00_prison_interactions.txt index 256ce179c..6f1aa8bf2 100644 --- a/common/character_interactions/00_prison_interactions.txt +++ b/common/character_interactions/00_prison_interactions.txt @@ -396,26 +396,29 @@ } } } -# #Guelphs & Ghibellines -# if = { -# limit = { -# scope:recipient = { -# NOR = { -# is_guelph_leader_trigger = yes -# is_ghibelline_leader_trigger = yes -# } -# } -# } -# gg_triggered_catalyst_effect = { -# ACTOR = scope:actor -# RECIPIENT = scope:recipient -# CATALYST = catalyst_attempt_imprison_opposite_party -# } -# } -# gg_involvement_catalyst_effect = yes + #Guelphs & Ghibellines + if = { + limit = { + scope:recipient = { + NOR = { + is_guelph_leader_trigger = yes + is_ghibelline_leader_trigger = yes + } + } + } + gg_triggered_catalyst_effect = { + ACTOR = scope:actor + RECIPIENT = scope:recipient + CATALYST = catalyst_attempt_imprison_opposite_party + } + } + gg_involvement_catalyst_effect = yes } if = { - limit = { scope:hook = yes } + limit = { # The reply arrives days after sending, by when the hook can be spent + scope:hook = yes + scope:puppet_or_actor = { has_usable_hook = scope:recipient } + } scope:puppet_or_actor = { use_hook = scope:recipient } } illegal_imprisonment_dread_effect = yes @@ -503,33 +506,33 @@ } # Harrying logic. -# scope:puppet_or_actor = { -# if = { -# limit = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# scope:recipient = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# is_important_or_vip_struggle_character = yes -# } -# culture != scope:recipient.culture -# } -# global_var:harrying_of_the_north = { save_scope_as = story } -# if = { -# limit = { -# character_is_valid_norman_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } -# } -# else_if = { -# limit = { -# character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } -# } -# } -# } + scope:puppet_or_actor = { + if = { + limit = { + character_is_valid_for_harrying_of_the_north_trigger = yes + scope:recipient = { + character_is_valid_for_harrying_of_the_north_trigger = yes + is_important_or_vip_struggle_character = yes + } + culture != scope:recipient.culture + } + global_var:harrying_of_the_north = { save_scope_as = story } + if = { + limit = { + character_is_valid_norman_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } + } + else_if = { + limit = { + character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } + } + } + } } on_decline = { @@ -1326,7 +1329,7 @@ } } - modifier = { # Even more imprisonment reason if you are a danger to the prime_minister + modifier = { # Even more imprisonment reason if you are a danger to the Kampaku add = 400 scope:puppet_or_actor = { primary_title = title:e_japan @@ -1588,105 +1591,101 @@ } # Agenda impact -# modifier = { -# scope:recipient = { -# is_important_or_vip_struggle_character = yes -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_important -# } -# } -# } -# add = -100 -# } -# } -# } -# modifier = { -# scope:recipient = { -# has_trait = fp3_struggle_supporter -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_supporter -# } -# has_trait = fp3_struggle_detractor -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_supporter -# } -# } -# } -# add = -100 -# } -# } -# } -# modifier = { -# scope:recipient = { -# has_trait = fp3_struggle_detractor -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_detractor -# } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_imprison_detractor -# } -# } -# } -# add = -100 -# } -# } -# } - - evaluate_action_decreasing_house_unity = { - VALUE = 100 + modifier = { + scope:recipient = { + is_important_or_vip_struggle_character = yes + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_important + } + has_character_flag = agenda_towards_escalation + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_important + } + } + } + add = -100 + } + } + } + modifier = { + scope:recipient = { + has_trait = fp3_struggle_supporter + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_supporter + } + has_trait = fp3_struggle_detractor + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_supporter + } + } + } + add = -100 + } + } + } + modifier = { + scope:recipient = { + has_trait = fp3_struggle_detractor + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_detractor + } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_imprison_detractor + } + } + } + add = -100 + } + } } evaluate_action_decreasing_house_unity = { @@ -2095,30 +2094,30 @@ 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:puppet_or_actor -# } -# } -# } + 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:puppet_or_actor + } + } + } } } } @@ -2514,47 +2513,48 @@ ransom_interaction = { OR = { is_vassal_of = scope:puppet_or_actor liege ?= scope:puppet_or_actor + religious_head_or_challenger ?= scope:puppet_or_actor } } } # Struggle Agenda -# modifier = { -# scope:secondary_recipient = { -# any_character_struggle = { -# involvement = involved -# } -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# } -# } -# add = 200 -# } -# } -# } + modifier = { + scope:secondary_recipient = { + any_character_struggle = { + involvement = involved + } + } + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + has_character_flag = agenda_towards_escalation + } + } + add = -100 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + } + } + add = 200 + } + } + } modifier = { # Do not ransom at war factor = 0 @@ -2838,59 +2838,59 @@ 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 = { -# fp3_struggle_involves_one_supporter_and_one_detractor = { -# FIRST = scope:imprisoner -# SECOND = scope:prisoner -# } -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_ransom_supporter_detractor -# CHAR = scope:prisoner -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_ransom_supporter_detractor -# CHAR = scope:prisoner -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_ransom_supporter_detractor -# character = scope:imprisoner -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_ransom_supporter_detractor } -# } -# } + 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 = { + fp3_struggle_involves_one_supporter_and_one_detractor = { + FIRST = scope:imprisoner + SECOND = scope:prisoner + } + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_ransom_supporter_detractor + CHAR = scope:prisoner + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_ransom_supporter_detractor + CHAR = scope:prisoner + } + } + activate_struggle_catalyst = { + catalyst = catalyst_ransom_supporter_detractor + character = scope:imprisoner + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_ransom_supporter_detractor } + } + } } if = { limit = { scope:hook = yes } @@ -3098,6 +3098,17 @@ pay_ransom_interaction = { localization = RANSOM_CURRENT_HERD_PAY_OPTION } + send_option = { + is_shown = { + can_lift_excommunication_interaction_trigger = { + EXCOMMUNICATED = scope:recipient + LIFTER = scope:puppet_or_actor + } + } + flag = excommunication + localization = RANSOM_EXCOMMUNICATION_OPTION + } + #Use hook send_option = { is_valid = { @@ -3161,13 +3172,20 @@ pay_ransom_interaction = { modifier = { add = 50 scope:favor = yes - scope:recipient.top_liege = scope:puppet_or_actor.top_liege + OR = { + scope:recipient.top_liege = scope:puppet_or_actor.top_liege + scope:recipient.religious_head_or_challenger ?= scope:puppet_or_actor + } desc = "FAVOR_POSITIVE_REASON" } modifier = { add = 0 scope:favor = yes scope:recipient.top_liege != scope:puppet_or_actor.top_liege + trigger_if = { + limit = { exists = scope:recipient.religious_head_or_challenger } + scope:recipient.religious_head_or_challenger != scope:puppet_or_actor + } desc = "NO_USE_FOR_A_FAVOR_REASON" } modifier = { # For clarification @@ -3277,6 +3295,12 @@ pay_ransom_interaction = { scope:current_herd = yes desc = HERD_INTERACTION_ACCEPTANCE_SEND_OPTION } + + modifier = { + add = 25 + scope:excommunication = yes + desc = "LIFT_EXCOMMUNICATION_POSITIVE_REASON" + } } auto_accept = { @@ -3365,6 +3389,29 @@ pay_ransom_interaction = { OR = { is_vassal_of = scope:puppet_or_actor liege ?= scope:puppet_or_actor + religious_head_or_challenger ?= scope:puppet_or_actor + } + } + } + + modifier = { # Only lift excommunicaitons for people you really care about + add = -100 + scope:excommunication = yes + scope:secondary_recipient = { + NOR = { + is_close_family_of = scope:puppet_or_actor + this = scope:puppet_or_actor.player_heir + } + } + } + + modifier = { # Only lift excommunicaitons for people you really care about + add = 100 + scope:excommunication = yes + scope:secondary_recipient = { + OR = { + is_close_family_of = scope:puppet_or_actor + this = scope:puppet_or_actor.player_heir } } } @@ -3578,42 +3625,42 @@ pay_ransom_interaction = { } # Struggle Agenda -# modifier = { -# scope:secondary_recipient = { -# any_character_struggle = { -# involvement = involved -# } -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# } -# } -# add = 200 -# } -# } -# } + modifier = { + scope:secondary_recipient = { + any_character_struggle = { + involvement = involved + } + } + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + has_character_flag = agenda_towards_escalation + } + } + add = -100 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + } + } + add = 200 + } + } + } evaluate_action_increasing_house_unity = { VALUE = 100 @@ -3769,30 +3816,30 @@ ransom_me_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 = { + 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 = { always = scope:hook } @@ -3952,6 +3999,17 @@ ransom_me_interaction = { localization = RANSOM_CURRENT_HERD_PAY_OPTION } + send_option = { # Lift Excommunication + is_shown = { + can_lift_excommunication_interaction_trigger = { + EXCOMMUNICATED = scope:recipient + LIFTER = scope:puppet_or_actor + } + } + flag = excommunication + localization = "RANSOM_EXCOMMUNICATION_OPTION" + } + #Use hook send_option = { is_valid = { @@ -4017,7 +4075,10 @@ ransom_me_interaction = { modifier = { add = 50 scope:favor = yes - scope:recipient.top_liege = scope:puppet_or_actor.top_liege + OR = { + scope:recipient.top_liege = scope:puppet_or_actor.top_liege + scope:recipient.religious_head_or_challenger ?= scope:puppet_or_actor + } desc = "FAVOR_POSITIVE_REASON" } @@ -4029,7 +4090,13 @@ ransom_me_interaction = { scope:extortionate_gold = yes } OR = { - scope:recipient.top_liege != scope:puppet_or_actor.top_liege + AND = { + scope:recipient.top_liege != scope:puppet_or_actor.top_liege + trigger_if = { + limit = { exists = scope:recipient.religious_head_or_challenger } + scope:recipient.religious_head_or_challenger != scope:puppet_or_actor + } + } scope:recipient.ai_greed >= medium_positive_ai_value } desc = "NO_USE_FOR_A_FAVOR_REASON" @@ -4140,6 +4207,12 @@ ransom_me_interaction = { scope:current_herd = yes desc = HERD_INTERACTION_ACCEPTANCE_SEND_OPTION } + + modifier = { + add = 25 + scope:excommunication = yes + desc = "LIFT_EXCOMMUNICATION_POSITIVE_REASON" + } } auto_accept = { @@ -4199,6 +4272,7 @@ ransom_me_interaction = { OR = { is_vassal_of = scope:puppet_or_actor liege ?= scope:puppet_or_actor + religious_head_or_challenger ?= scope:puppet_or_actor } } } @@ -4210,47 +4284,48 @@ ransom_me_interaction = { NOR = { is_vassal_of = scope:puppet_or_actor liege ?= scope:puppet_or_actor + religious_head_or_challenger ?= scope:puppet_or_actor } } } # Struggle Agenda -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_ransom_important -# } -# } -# } -# add = 200 -# } -# } -# } + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + } + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + has_character_flag = agenda_towards_escalation + } + } + add = -100 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_ransom_important + } + } + } + add = 200 + } + } + } modifier = { # Don't give away prisoners for free factor = 0 @@ -4387,34 +4462,34 @@ release_from_prison_interaction = { } # Struggle Catalyst -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_demanding_important_conversion -# CHAR = scope:recipient -# } -# } -# } -# } -# scope:puppet_or_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:puppet_or_actor -# } -# } -# } -# } + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_demanding_important_conversion + CHAR = scope:recipient + } + } + } + } + scope:puppet_or_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:puppet_or_actor + } + } + } + } } # Banish Landed Character @@ -5045,6 +5120,17 @@ release_from_prison_interaction = { } } + # Lift excommunication + if = { + limit = { + scope:excommunication = yes + } + lift_character_excommunication_effect = { + TARGET_CHARACTER = scope:actor + REQUESTING_CHARACTER = scope:recipient + } + } + # No Demands Added if = { limit = { @@ -5062,6 +5148,7 @@ release_from_prison_interaction = { scope:change_prison = no scope:make_puppet = no scope:demand_patrician_house_support = no + scope:excommunication = no } # Notification to the imprisoner scope:puppet_or_actor = { @@ -5154,75 +5241,75 @@ release_from_prison_interaction = { callous = minor_stress_impact_gain } # Struggle impact -# if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# 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 -# } -# } -# add_prestige = medium_prestige_gain -# } + if = { + limit = { + any_character_struggle = { + involvement = involved + 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 + } + } + add_prestige = medium_prestige_gain + } # Struggle Catalyst -# if = { -# limit = { -# 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:puppet_or_actor -# } -# } -# } -# if = { -# limit = { -# fp3_struggle_involves_one_supporter_and_one_detractor = { -# FIRST = scope:puppet_or_actor -# SECOND = scope:recipient -# } -# any_character_struggle = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_release_supporter_detractor -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_release_supporter_detractor -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_release_supporter_detractor -# character = scope:puppet_or_actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_release_supporter_detractor } -# } -# } + if = { + limit = { + 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:puppet_or_actor + } + } + } + if = { + limit = { + fp3_struggle_involves_one_supporter_and_one_detractor = { + FIRST = scope:puppet_or_actor + SECOND = scope:recipient + } + any_character_struggle = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_release_supporter_detractor + CHAR = scope:recipient + } + } + } + every_character_struggle = { + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_release_supporter_detractor + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_release_supporter_detractor + character = scope:puppet_or_actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_release_supporter_detractor } + } + } } if = { limit = { @@ -5868,6 +5955,7 @@ release_from_prison_interaction = { } scope:recipient = { is_adult = yes + NOT = { is_ruler = yes } } } is_valid = { @@ -6089,6 +6177,17 @@ release_from_prison_interaction = { } } + send_option = { + flag = excommunication + localization = RANSOM_EXCOMMUNICATION_OPTION + is_shown = { + can_lift_excommunication_interaction_trigger = { + EXCOMMUNICATED = scope:puppet_or_actor + LIFTER = scope:recipient + } + } + } + cost = { prestige = { value = 0 @@ -6131,6 +6230,7 @@ release_from_prison_interaction = { scope:change_prison = no scope:make_puppet = no scope:demand_patrician_house_support = no + scope:excommunication = no } ai_accept = { @@ -6241,6 +6341,28 @@ release_from_prison_interaction = { } desc = "RENOUNCE_CLAIMS_REASON" } + modifier = { + add = -75 + trigger = { + scope:make_puppet = yes + scope:puppet_or_actor = { has_puppet_type = external_theological_agent_puppet } + is_clergy = yes + religion = scope:puppet_or_actor.religion + } + desc = "WILL_BECOME_PUPPET_REASON" + } + modifier = { + add = -50 + trigger = { + scope:make_puppet = yes + NAND = { + scope:puppet_or_actor = { has_puppet_type = external_theological_agent_puppet } + is_clergy = yes + religion = scope:puppet_or_actor.religion + } + } + desc = "WILL_BECOME_PUPPET_REASON" + } # Employ executioner modifier = { add = -50 @@ -6547,51 +6669,6 @@ release_from_prison_interaction = { desc = "DEMAND_ADMIN_NEGATIVE_REASON" } # Struggle -# modifier = { -# trigger = { -# scope:demand_conversion = no -# scope:renounce_claims = no -# scope:banish = no -# scope:gain_hook = no -# scope:take_vows = no -# scope:recruit = no -# } -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:recipient = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_release_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:recipient = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_release_important -# } -# } -# } -# add = 200 -# } -# } -# } - # Demand Patrician Family Support modifier = { trigger = { scope:demand_conversion = no @@ -6665,6 +6742,22 @@ release_from_prison_interaction = { } desc = "DEMAND_PATRICIAN_HOUSE_SUPPORT_REASON" } + # Excommunication + modifier = { + add = { + value = -25 + if = { + limit = { + scope:recipient = { + ai_zeal > 0 + } + } + subtract = ai_zeal + } + } + scope:excommunication = yes + desc = "LIFT_YOUR_EXCOMMUNICATION_REASON" + } } # AI @@ -6731,6 +6824,10 @@ release_from_prison_interaction = { add = 50 scope:castrate = yes } + modifier = { + add = 100 + scope:excommunication = yes + } modifier = { # Rivals can rot add = -40 scope:puppet_or_actor = { @@ -6842,62 +6939,62 @@ release_from_prison_interaction = { } } # Struggle -# modifier = { -# trigger = { -# scope:demand_conversion = no -# scope:renounce_claims = no -# scope:banish = no -# scope:gain_hook = no -# scope:take_vows = no -# scope:recruit = no -# } -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# } -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_release_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = -100 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_release_important -# } -# NOT = { -# ai_greed >= 25 -# } -# OR = { -# ai_compassion > 50 -# AND = { -# ai_compassion > 0 -# scope:recipient = { -# time_in_prison = { years > 1 } -# } -# } -# } -# } -# } -# add = 200 -# } -# } -# } + modifier = { + trigger = { + scope:demand_conversion = no + scope:renounce_claims = no + scope:banish = no + scope:gain_hook = no + scope:take_vows = no + scope:recruit = no + } + scope:recipient = { + any_character_struggle = { + involvement = involved + } + } + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + has_character_flag = agenda_towards_escalation + any_character_struggle = { + phase_has_catalyst = catalyst_release_important + } + } + } + add = -100 + } + else_if = { + limit = { + scope:puppet_or_actor = { + NOT = { + ai_greed >= 25 + } + OR = { + ai_compassion > 50 + AND = { + ai_compassion > 0 + scope:recipient = { + time_in_prison = { years > 1 } + } + } + } + any_character_struggle = { + phase_has_catalyst = catalyst_release_important + } + } + } + add = 200 + } + } + } modifier = { # Family Feud add = -50 scope:puppet_or_actor = { @@ -7080,71 +7177,71 @@ execute_prisoner_interaction = { } # Agenda impact -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# is_important_or_vip_struggle_character = yes -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_important -# } -# has_character_flag = agenda_towards_escalation -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_important -# } -# } -# } -# add = -100 -# } -# } -# } -# -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# has_trait = fp3_struggle_supporter -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_supporter -# } -# has_trait = fp3_struggle_detractor -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_supporter -# } -# } -# } -# add = -100 -# } -# } -# } + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + is_important_or_vip_struggle_character = yes + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_important + } + has_character_flag = agenda_towards_escalation + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_important + } + } + } + add = -100 + } + } + } + + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + has_trait = fp3_struggle_supporter + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_supporter + } + has_trait = fp3_struggle_detractor + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_supporter + } + } + } + add = -100 + } + } + } #Nomads get the special beheading stuff modifier = { @@ -7207,38 +7304,38 @@ execute_prisoner_interaction = { add = 30 } -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# has_trait = fp3_struggle_detractor -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_detractor -# } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_detractor -# } -# } -# } -# add = -100 -# } -# } -# } + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + has_trait = fp3_struggle_detractor + } + add = { + value = 0 + if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_detractor + } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:puppet_or_actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_detractor + } + } + } + add = -100 + } + } + } modifier = { add = 200 scope:puppet_or_actor.rite = { @@ -7307,20 +7404,20 @@ execute_prisoner_interaction = { } # Blocked by current struggle phase -# custom_tooltip = { -# text = struggle_parameter_struggle_cannot_execute_involved_prisoners -# NOT = { -# scope:puppet_or_actor = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = struggle_cannot_execute_involved_prisoners -# is_secondary_character_involvement_involved_trigger = { -# CHAR = scope:recipient -# } -# } -# } -# } -# } + custom_tooltip = { + text = struggle_parameter_struggle_cannot_execute_involved_prisoners + NOT = { + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + has_struggle_phase_parameter = struggle_cannot_execute_involved_prisoners + is_secondary_character_involvement_involved_trigger = { + CHAR = scope:recipient + } + } + } + } + } custom_tooltip = { text = is_currently_being_purged_tt @@ -7436,13 +7533,13 @@ execute_prisoner_interaction = { value = yes } } -# #Guelphs & Ghibellines -# gg_triggered_catalyst_effect = { -# ACTOR = scope:actor -# RECIPIENT = scope:recipient -# CATALYST = catalyst_execute_opposite_party -# } -# gg_involvement_catalyst_would_invalidate_situation_tooltip_effect = yes + #Guelphs & Ghibellines + gg_triggered_catalyst_effect = { + ACTOR = scope:actor + RECIPIENT = scope:recipient + CATALYST = catalyst_execute_opposite_party + } + gg_involvement_catalyst_would_invalidate_situation_tooltip_effect = yes } # Now, the rest of it. if = { @@ -7613,134 +7710,134 @@ execute_prisoner_interaction = { # FP3 # Struggle Catalysts -# scope:puppet_or_actor = { -# if = { # Execute important -# limit = { -# scope:recipient = { is_important_or_vip_struggle_character = yes } -# any_character_struggle = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_important -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_important -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_execute_important -# character = scope:puppet_or_actor -# } -# } -# } -# if = { # Execute Supporter/Detractor -# limit = { -# fp3_struggle_involves_one_supporter_and_one_detractor = { -# FIRST = scope:puppet_or_actor -# SECOND = scope:recipient -# } -# } -# if = { -# limit = { -# scope:recipient = { has_trait = fp3_struggle_detractor } -# struggle:persian_struggle = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_detractor -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_detractor -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_execute_detractor -# character = scope:puppet_or_actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_execute_detractor } -# } -# } -# else_if = { -# limit = { -# scope:recipient = { has_trait = fp3_struggle_supporter } -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_supporter -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_supporter -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_execute_supporter -# character = scope:puppet_or_actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_execute_supporter } -# } -# } -# } -# # 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:puppet_or_actor -# primary_attacker.house = scope:recipient.house -# } -# } -# random_character_war = { -# limit = { -# using_cb = fp3_free_house_member_cb -# is_defender = scope:puppet_or_actor -# primary_attacker.house = scope:recipient.house -# } -# primary_attacker = { -# add_opinion = { -# target = scope:puppet_or_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:puppet_or_actor -# modifier = executed_valuable_prisoner_modifier -# } -# } -# } -# } + scope:puppet_or_actor = { + if = { # Execute important + limit = { + scope:recipient = { is_important_or_vip_struggle_character = yes } + any_character_struggle = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_important + CHAR = scope:recipient + } + } + } + every_character_struggle = { + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_important + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_execute_important + character = scope:puppet_or_actor + } + } + } + if = { # Execute Supporter/Detractor + limit = { + fp3_struggle_involves_one_supporter_and_one_detractor = { + FIRST = scope:puppet_or_actor + SECOND = scope:recipient + } + } + if = { + limit = { + scope:recipient = { has_trait = fp3_struggle_detractor } + struggle:persian_struggle = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_detractor + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_detractor + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_execute_detractor + character = scope:puppet_or_actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_execute_detractor } + } + } + else_if = { + limit = { + scope:recipient = { has_trait = fp3_struggle_supporter } + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_supporter + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_supporter + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_execute_supporter + character = scope:puppet_or_actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_execute_supporter } + } + } + } + # 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:puppet_or_actor + primary_attacker.house = scope:recipient.house + } + } + random_character_war = { + limit = { + using_cb = fp3_free_house_member_cb + is_defender = scope:puppet_or_actor + primary_attacker.house = scope:recipient.house + } + primary_attacker = { + add_opinion = { + target = scope:puppet_or_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:puppet_or_actor + modifier = executed_valuable_prisoner_modifier + } + } + } + } if = { limit = { @@ -8181,13 +8278,13 @@ torture_interaction = { TITLE = scope:dummy_gender } } -# #Guelphs & Ghibellines -# gg_triggered_catalyst_effect = { -# ACTOR = scope:actor -# RECIPIENT = scope:recipient -# CATALYST = catalyst_torture_opposite_party -# } -# scope:actor = { gg_involvement_catalyst_effect = yes } + #Guelphs & Ghibellines + gg_triggered_catalyst_effect = { + ACTOR = scope:actor + RECIPIENT = scope:recipient + CATALYST = catalyst_torture_opposite_party + } + scope:actor = { gg_involvement_catalyst_effect = yes } } auto_accept = yes @@ -8355,13 +8452,13 @@ castrate_interaction = { TITLE = scope:dummy_gender } } -# #Guelphs & Ghibellines -# gg_triggered_catalyst_effect = { -# ACTOR = scope:actor -# RECIPIENT = scope:recipient -# CATALYST = catalyst_maim_opposite_party -# } -# scope:actor = { gg_involvement_catalyst_effect = yes } + #Guelphs & Ghibellines + gg_triggered_catalyst_effect = { + ACTOR = scope:actor + RECIPIENT = scope:recipient + CATALYST = catalyst_maim_opposite_party + } + scope:actor = { gg_involvement_catalyst_effect = yes } } auto_accept = yes @@ -8558,13 +8655,13 @@ blind_interaction = { TITLE = scope:dummy_gender } } -# #Guelphs & Ghibellines -# gg_triggered_catalyst_effect = { -# ACTOR = scope:actor -# RECIPIENT = scope:recipient -# CATALYST = catalyst_maim_opposite_party -# } -# scope:actor = { gg_involvement_catalyst_effect = yes } + #Guelphs & Ghibellines + gg_triggered_catalyst_effect = { + ACTOR = scope:actor + RECIPIENT = scope:recipient + CATALYST = catalyst_maim_opposite_party + } + scope:actor = { gg_involvement_catalyst_effect = yes } } auto_accept = yes diff --git a/common/character_interactions/00_puppet_interactions.txt b/common/character_interactions/00_puppet_interactions.txt index d282a2244..8f057b530 100644 --- a/common/character_interactions/00_puppet_interactions.txt +++ b/common/character_interactions/00_puppet_interactions.txt @@ -147,12 +147,9 @@ target = scope:recipient type = theological_agent_puppet } - pam_generic_set_puppet_interaction_side_effects = yes } } - show_as_tooltip = { - pam_generic_set_puppet_interaction_side_effects = yes - } + pam_generic_set_puppet_interaction_side_effects = yes } scope:recipient = { custom_tooltip = set_clerical_puppet_tt @@ -750,6 +747,21 @@ make_external_ruler_puppet_interaction = { text = actor_is_antipope_sponsor_tt pam_sponsors_other_antipope_trigger = no } + trigger_if = { + limit = { + government_has_flag = government_is_merchant + NOR = { + has_trait = seducer + has_trait = torturer + has_trait = family_first + has_trait = schemer + has_trait = diplomat + has_trait = gallant + } + } + has_realm_law = company_purpose_creditor + has_hook = scope:recipient + } } } @@ -1017,37 +1029,155 @@ make_external_ruler_puppet_interaction = { # recipient is militarily weaker than the actor modifier = { add = 15 + scope:actor = { is_landless_merchant = no } scope:recipient = { is_landed = yes + current_military_strength < scope:actor.current_military_strength } - scope:recipient.current_military_strength < scope:actor.current_military_strength desc = PUPPET_RECIPIENT_WEAKER_REASON } # recipient is far weaker (less than half) than the actor modifier = { add = 30 + scope:actor = { is_landless_merchant = no } scope:recipient = { is_landed = yes + current_military_strength < scope:actor.half_current_military_strength } - scope:recipient.current_military_strength < scope:actor.half_current_military_strength desc = PUPPET_RECIPIENT_MUCH_WEAKER_REASON } # actor is militarily weaker than the recipient modifier = { add = -15 - scope:actor.current_military_strength < scope:recipient.current_military_strength + scope:recipient = { is_landed = yes } + scope:actor = { + is_landless_merchant = no + current_military_strength < scope:recipient.current_military_strength + } desc = PUPPET_ACTOR_WEAKER_REASON } # actor is far weaker (less than half) than the recipient modifier = { add = -30 - scope:actor.current_military_strength < scope:recipient.half_current_military_strength + scope:recipient = { is_landed = yes } + scope:actor = { + is_landless_merchant = no + current_military_strength < scope:recipient.half_current_military_strength + } desc = PUPPET_ACTOR_MUCH_WEAKER_REASON } + # Company size + modifier = { + add = 30 + scope:actor = { + is_landless_merchant = yes + trigger_if = { + limit = { company_size_value = 1 } #company_size_small + always = no + } + trigger_else_if = { + limit = { company_size_value = 2 } # company_size_medium + scope:recipient.highest_held_title_tier < tier_duchy + } + trigger_else_if = { + limit = { company_size_value = 3 } # company_size_large + scope:recipient.highest_held_title_tier < tier_kingdom + } + trigger_else = { scope:recipient.highest_held_title_tier < tier_empire } + } + desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON + } + + modifier = { + add = 15 + scope:actor = { + is_landless_merchant = yes + trigger_if = { + limit = { company_size_value = 1 } #company_size_small + always = no + } + trigger_else_if = { + limit = { company_size_value = 2 } # company_size_medium + scope:recipient.highest_held_title_tier = tier_duchy + } + trigger_else_if = { + limit = { company_size_value = 3 } # company_size_large + scope:recipient.highest_held_title_tier = tier_kingdom + } + trigger_else = { scope:recipient.highest_held_title_tier = tier_empire } + } + desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON + } + + modifier = { + add = -15 + scope:actor = { + is_landless_merchant = yes + trigger_if = { + limit = { company_size_value = 1 } #company_size_small + scope:recipient.highest_held_title_tier = tier_duchy + } + trigger_else_if = { + limit = { company_size_value = 2 } # company_size_medium + scope:recipient.highest_held_title_tier = tier_kingdom + } + trigger_else_if = { + limit = { company_size_value = 3 } # company_size_large + scope:recipient.highest_held_title_tier = tier_empire + } + trigger_else = { always = no } + } + desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON + } + + modifier = { + add = -30 + scope:actor = { + is_landless_merchant = yes + trigger_if = { + limit = { company_size_value = 1 } #company_size_small + scope:recipient.highest_held_title_tier >= tier_kingdom + } + trigger_else_if = { + limit = { company_size_value = 2 } # company_size_medium + scope:recipient.highest_held_title_tier >= tier_empire + } + trigger_else_if = { + limit = { company_size_value = 3 } # company_size_large + scope:recipient.highest_held_title_tier >= tier_hegemony + } + trigger_else = { always = no } + } + desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON + } + + # Loans + modifier = { + add = { + value = 0 + scope:recipient = { + every_owned_story = { + limit = { + story_type = story_cycle_loan + var:lender ?= scope:actor + } + add = var:amount_owed + } + } + divide = 5 + max = 250 + } + scope:actor = { is_landless_merchant = yes } + scope:recipient = { + has_existing_loan_from_trigger = { LENDER = scope:actor } + } + desc = PUPPET_RECIPIENT_LOAN_REASON + } + modifier = { add = 50 scope:actor = { diff --git a/common/character_interactions/00_religious_interactions.txt b/common/character_interactions/00_religious_interactions.txt index 4e46afb7e..fed44f0e0 100644 --- a/common/character_interactions/00_religious_interactions.txt +++ b/common/character_interactions/00_religious_interactions.txt @@ -3223,6 +3223,9 @@ excommunicate_interaction = { } is_shown = { + scope:recipient = { + NOT = { has_trait = excommunicated } + } scope:puppet_or_actor ?= { this != scope:recipient #Pope or Bishop @@ -3489,28 +3492,11 @@ lift_excommunication_interaction = { } is_shown = { - scope:puppet_or_actor ?= { - #Pope or Bishop - OR = { - AND = { - is_clergy = yes - is_ruler = yes - } - religious_head_or_challenger ?= scope:puppet_or_actor - } - NOT = { - religious_head_or_challenger ?= scope:recipient - } - faith ?= { - has_doctrine = doctrine_spiritual_head - faith_has_sacraments_central_trigger = yes - this = scope:recipient.faith - } - } - scope:recipient = { - has_trait = excommunicated - this != scope:puppet_or_actor + can_lift_excommunication_interaction_trigger = { + EXCOMMUNICATED = scope:recipient + LIFTER = scope:puppet_or_actor } + scope:recipient != scope:puppet_or_actor } cost = { @@ -3520,6 +3506,10 @@ lift_excommunication_interaction = { limit = { scope:is_puppet_action ?= yes } multiply = 0 } + if = { + limit = { scope:offer_pilgrimage ?= yes } + multiply = 0 + } } } @@ -3542,13 +3532,88 @@ lift_excommunication_interaction = { pam_valid_excommunication_target_trigger = { EXCOMMUNICATOR = scope:puppet_or_actor } } } + + send_option = { + is_valid = { + scope:recipient = { gold >= major_gold_value } + } + flag = excommunication_demand_gold + localization = request_gold + } + send_option = { + is_valid = { + NOT = { + scope:actor = { has_hook = scope:recipient } + } + } + flag = excommunication_demand_hook + localization = RANSOM_FAVOR_OPTION + } + send_option = { + is_valid = { + scope:recipient = { + NOT = { has_character_modifier = promised_pilgrimage_to_clergy_modifier } + } + } + flag = offer_pilgrimage + localization = LIFT_EXCOMMUNICATION_INTERACTION_OPTION_PILGRIMAGE + } + + send_options_exclusive = no + + auto_accept = { + NOR = { + scope:excommunication_demand_gold ?= yes + scope:excommunication_demand_hook ?= yes + scope:offer_pilgrimage ?= yes + } + } - auto_accept = yes force_notification = yes - notification_text = religious_interaction.1024 - #answer_accept_key = religious_interaction.1024.positive + notification_text = { + first_valid = { + triggered_desc = { + trigger = { scope:excommunication_demand_gold ?= yes } + desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_GOLD + } + triggered_desc = { + trigger = { scope:excommunication_demand_hook ?= yes } + desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_HOOK + } + triggered_desc = { + trigger = { scope:offer_pilgrimage ?= yes } + desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_PILGRIMAGE + } + desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION + } + } on_accept = { + scope:recipient = { + if = { + limit = { scope:excommunication_demand_gold = yes } + pay_short_term_gold = { + gold = major_gold_value + target = scope:actor + } + } + if = { + limit = { scope:excommunication_demand_hook = yes } + scope:actor = { + add_hook = { + type = indebted_hook + target = scope:recipient + } + } + } + if = { + limit = { scope:offer_pilgrimage = yes } + pam_offer_pilgrimage_effect = { + ACTOR = scope:recipient + CLERIC = scope:actor + } + } + } if = { limit = { scope:is_puppet_action ?= yes } scope:puppet_or_actor = { @@ -3619,6 +3684,58 @@ lift_excommunication_interaction = { hegemony = 12 } + ai_accept = { + base = 50 + opinion_modifier = { + opinion_target = scope:actor + multiplier = 0.5 + } + modifier = { + rite != scope:actor.rite + add = -25 + desc = DIFFERENT_RITE_REASON + } + modifier = { + scope:excommunication_demand_gold = yes + add = -25 + desc = GOLD_INTERACTION_ACCEPTANCE_SEND_OPTION + } + modifier = { + scope:excommunication_demand_gold = yes + gold < major_gold_value + add = -25 + desc = GOLD_NEGATIVE_REASON + } + modifier = { + scope:excommunication_demand_gold = yes + gold > 0 + add = { + value = gold + multiply = 0.25 + ceiling = yes + } + desc = AI_RECIPIENT_GOLD_REASON + } + modifier = { + scope:excommunication_demand_hook = yes + add = -25 + desc = ASKING_FOR_WEAK_HOOK_ACCEPTANCE_TT + } + modifier = { + scope:offer_pilgrimage = yes + add = -10 + desc = DEMANDING_PILGRIMAGE_REASON + } + modifier = { + OR = { + var:requested_my_excommunication ?= scope:actor + var:excommunication_issuer ?= scope:actor + } + add = -25 + desc = EXCOMMUNICATED_ME_REASON + } + } + ai_will_do = { base = 10 @@ -3646,6 +3763,11 @@ lift_excommunication_interaction = { } } + modifier = { + factor = 0 + scope:puppet_or_actor.imprisoner ?= scope:recipient + } + modifier = { factor = 0 scope:puppet_or_actor = { @@ -4022,6 +4144,7 @@ request_excommunication_interaction = { desc = EXCOMMUNICATION_DEFIED_CHURCH_PEACE } opinion_modifier = { + trigger = { scope:recipient != scope:puppet_or_actor } who = scope:recipient opinion_target = scope:puppet_or_actor multiplier = 1 @@ -4091,11 +4214,6 @@ request_excommunication_interaction = { } desc = the_christian_church_phase_value_tt } - modifier = { - add = 100 - scope:puppet_or_actor.puppet:theological_agent_puppet ?= scope:recipient - desc = IS_YOUR_PUPPET - } modifier = { add = -1000 scope:recipient.puppeteer ?= scope:secondary_recipient @@ -5648,7 +5766,7 @@ take_vows_interaction = { take_vows_faith_opinion_effect = yes if = { limit = { - house = { + house ?= { has_house_aspiration_parameter = humility_take_the_vows_bonus } } @@ -12414,6 +12532,81 @@ offer_bedside_support_interaction = { } } +priest_kings_consecrate_temple_interaction = { + category = interaction_category_religion + icon = religious + common_interaction = yes + interface_priority = 50 + desc = priest_kings_consecrate_temple_interaction_desc + target_type = title + target_filter = actor_domain_titles + auto_accept = yes + + is_shown = { + scope:actor = { + this = scope:recipient + OR = { + AND = { + government_has_flag = government_is_theocracy + culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled } + } + rite ?= { rite_has_parameter = NEOW_can_build_citadels } + } + } + } + + is_available = { + OR = { + AND = { + government_has_flag = government_is_theocracy + culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled } + } + rite ?= { rite_has_parameter = NEOW_can_build_citadels } + } + } + + can_be_picked_title = { + scope:target = { + holder = scope:actor + is_capital_barony = no + tier <= tier_county + title_province = { has_holding_type = church_holding } + } + } + + has_valid_target_showing_failures_only = { + scope:target.title_province = { + barony_controller = scope:actor + has_holding_type = church_holding + has_ongoing_construction = no + } + } + + cost = { + treasury_or_gold = { + scope:actor = { add = 500 } + } + piety = { + scope:actor = { add = 500 } + } + } + + on_accept = { + scope:actor = { + send_interface_toast = { + type = event_toast_effect_good + title = priest_kings_consecrate_temple_interaction_notification + right_icon = scope:actor + scope:target.title_province ?= { + set_holding_type = temple_citadel_holding + } + } + } + } + + ai_will_do = { base = 20 } +} + #Get Monastic Order to spread tenet #By Mother Superior Jasonetta Cantalini monastic_espouse_beliefs_interaction = { @@ -12583,78 +12776,3 @@ monastic_espouse_beliefs_interaction = { } } } - -priest_kings_consecrate_temple_interaction = { - category = interaction_category_religion - icon = religious - common_interaction = yes - interface_priority = 50 - desc = priest_kings_consecrate_temple_interaction_desc - target_type = title - target_filter = actor_domain_titles - auto_accept = yes - - is_shown = { - scope:actor = { - this = scope:recipient - OR = { - AND = { - government_has_flag = government_is_theocracy - culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled } - } - rite ?= { rite_has_parameter = NEOW_can_build_citadels } - } - } - } - - is_available = { - OR = { - AND = { - government_has_flag = government_is_theocracy - culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled } - } - rite ?= { rite_has_parameter = NEOW_can_build_citadels } - } - } - - can_be_picked_title = { - scope:target = { - holder = scope:actor - is_capital_barony = no - tier <= tier_county - title_province = { has_holding_type = church_holding } - } - } - - has_valid_target_showing_failures_only = { - scope:target.title_province = { - barony_controller = scope:actor - has_holding_type = church_holding - has_ongoing_construction = no - } - } - - cost = { - treasury_or_gold = { - scope:actor = { add = 500 } - } - piety = { - scope:actor = { add = 500 } - } - } - - on_accept = { - scope:actor = { - send_interface_toast = { - type = event_toast_effect_good - title = priest_kings_consecrate_temple_interaction_notification - right_icon = scope:actor - scope:target.title_province ?= { - set_holding_type = temple_citadel_holding - } - } - } - } - - ai_will_do = { base = 20 } -} diff --git a/common/character_interactions/06_ep3_interactions.txt b/common/character_interactions/06_ep3_interactions.txt index da0b69427..1f25c5a0e 100644 --- a/common/character_interactions/06_ep3_interactions.txt +++ b/common/character_interactions/06_ep3_interactions.txt @@ -3825,6 +3825,7 @@ request_council_interaction = { desc = AI_OPINION_REASON } opinion_modifier = { # Opinion of the current councillor + trigger = { exists = scope:target.councillor } who = scope:recipient opinion_target = scope:target.councillor multiplier = -0.8 @@ -3972,6 +3973,7 @@ request_council_interaction = { } #You are more influential modifier = { + exists = scope:target.councillor scope:actor.influence_level != scope:target.councillor.influence_level add = { value = scope:actor.influence_level @@ -9623,6 +9625,7 @@ request_emperor_title_troops_interaction = { exists = holder holder.top_liege = scope:recipient holder != scope:actor + holder ?= { government_has_mechanic = administrative } any_title_maa_regiment = { exists = this } diff --git a/common/character_interactions/06_ep3_laamp_interactions.txt b/common/character_interactions/06_ep3_laamp_interactions.txt index d6cba644f..57aeeaf90 100644 --- a/common/character_interactions/06_ep3_laamp_interactions.txt +++ b/common/character_interactions/06_ep3_laamp_interactions.txt @@ -16,7 +16,7 @@ purchase_land_interaction = { first_valid = { triggered_desc = { trigger = { - scope:recipient.top_liege != this + scope:recipient = { is_independent_ruler = no } scope:target = { trigger_if = { limit = { tier = tier_duchy } @@ -3404,7 +3404,8 @@ contact_list_request_interaction = { # make a request, make_a_request custom_tooltip = { scope:recipient = { any_knight = { - is_landed = no + is_ruler = no + can_be_knight_trigger = { ARMY_OWNER = scope:actor } count > 1 } } @@ -3789,7 +3790,7 @@ contact_list_request_interaction = { # make a request, make_a_request } if = { limit = { - exists = capital_county + capital_county.holder ?= scope:recipient } hidden_effect = { capital_county = { diff --git a/common/character_interactions/pam_interactions.txt b/common/character_interactions/pam_interactions.txt index 2b73df255..1ed0e250b 100644 --- a/common/character_interactions/pam_interactions.txt +++ b/common/character_interactions/pam_interactions.txt @@ -44,6 +44,9 @@ designate_theocratic_heir_interaction = { has_realm_law = clerical_appointment_law NOT = { has_realm_law = theocratic_elective_succession_law } government_has_flag = government_is_theocracy + any_held_title = { # Cardinal titles are destroyed on succession and never have an heir + NOT = { scope:puppet_or_actor.clerical_elector_title ?= this } + } } NOT = { scope:recipient = scope:puppet_or_actor } scope:recipient = { @@ -198,9 +201,12 @@ designate_theocratic_heir_interaction = { value = { if = { # An appointment title without eligible candidates has no current heir to outbid limit = { exists = scope:puppet_or_actor.primary_title.current_heir } + add = "scope:puppet_or_actor.primary_title.current_heir.appointment_candidate_score(scope:puppet_or_actor.primary_title)" add = { value = "scope:puppet_or_actor.primary_title.current_heir.appointment_candidate_score(scope:puppet_or_actor.primary_title)" - multiply = 1.1 + abs = yes # Scores can be negative, and the margin must still go above the heir + multiply = 0.1 + min = 1 } subtract = "scope:recipient.appointment_candidate_score(scope:puppet_or_actor.primary_title)" } @@ -574,9 +580,13 @@ increase_theocratic_heir_candidacy = { scope:target = { # domain_titles offers baronies too, and appointment investment is county tier and up tier >= tier_county + is_noble_family_title = no is_head_of_faith = no OR = { - this = scope:puppet_or_actor.primary_title + custom_tooltip = { + text = increase_theocratic_heir_candidacy_primary_title_tt + this = scope:puppet_or_actor.primary_title + } trigger_if = { limit = { exists = scope:secondary_recipient } is_clerical_appointment_valid_trigger = { @@ -587,6 +597,13 @@ increase_theocratic_heir_candidacy = { } } } + trigger_if = { # Clerical appointment only allows out-of-realm investment in titular titles + limit = { + exists = scope:secondary_recipient + scope:target = { is_titular = no } + } + scope:secondary_recipient.top_liege ?= scope:puppet_or_actor.top_liege + } } has_valid_target_showing_failures_only = { @@ -4473,6 +4490,16 @@ pam_sway_schism_stance_interaction = { desc = pam_sway_schism_stance_interaction_desc + is_available = { + trigger_if = { + limit = { is_ai = yes } + has_variable = pam_schism_stance + NOT = { has_global_variable = pam_great_schism_decision_taken } + is_adult = yes + is_incapable = no + } + } + is_shown = { NOT = { has_global_variable = pam_great_schism_decision_taken } scope:actor = { @@ -4654,13 +4681,6 @@ pam_sway_schism_stance_interaction = { } } - ai_potential = { - has_variable = pam_schism_stance - NOT = { has_global_variable = pam_great_schism_decision_taken } - is_adult = yes - is_incapable = no - } - ai_targets = { ai_recipients = vassals ai_recipients = peer_vassals @@ -5200,10 +5220,7 @@ request_court_chaplain_cardinalate_interaction = { scope:actor = { NOT = { has_trait = excommunicated } NOT = { is_at_war_with = scope:recipient } - custom_tooltip = { - text = actor_promised_pilgrimage_tt - NOT = { has_character_modifier = promised_pilgrimage_to_clergy_modifier } - } + NOT = { has_character_modifier = promised_pilgrimage_to_clergy_modifier } clergy_interaction_generic_piety_level_or_puppet_req_trigger = yes cp:councillor_court_chaplain ?= { is_available_quick = { @@ -11185,10 +11202,7 @@ expand_ecclesiastical_title_interaction = { # Clerical region supporting HoF is_available = { is_ai = no - OR = { - pam_is_clerical_title_authority_trigger = yes - pam_symphonia_secular_emperor_investiture_trigger = yes - } + pam_is_clerical_title_authority_trigger = yes # HoF, or the Head of Rites when the faith has no HoF faith ?= { has_doctrine_parameter = has_clerical_regions } has_pam_dlc_trigger = yes is_adult = yes @@ -11470,7 +11484,7 @@ split_ecclesiastical_title_interaction = { pam_government_is_religious_playable_trigger = yes any_held_title = { has_clerical_region = yes - # The HoF may split their own see, and a Symphonia emperor may split one within their realm. + # The HoF may split their own see; other rulers' head-of-faith titles stay protected trigger_if = { limit = { scope:recipient != scope:actor } OR = { @@ -11520,7 +11534,7 @@ split_ecclesiastical_title_interaction = { scope:recipient = { any_held_title = { has_clerical_region = yes - # Match is_shown: allow a Symphonia emperor to split a Head-of-Faith see. + # Mirror is_shown: the HoF may split their own see, other rulers' head-of-faith titles stay protected trigger_if = { limit = { scope:recipient != scope:actor } OR = { @@ -11658,6 +11672,7 @@ merge_new_ecclesiastical_title_interaction = { pam_symphonia_imperial_merge_acting_region_trigger = { ARCHBISHOP = this } } } + pam_actor_is_clerical_title_authority_of_this_trigger = yes } } @@ -11842,7 +11857,7 @@ replace_ecclesiastical_title_holder_interaction = { } } - # Church authority, an empowered lay liege, or a secular emperor whose rite has Symphonia + # Church authority (HoF / Head of Rites), or a liege the faith's Clerical Appointment doctrine empowers is_available = { faith ?= { has_doctrine_parameter = has_clerical_regions } OR = { @@ -11877,7 +11892,7 @@ replace_ecclesiastical_title_holder_interaction = { cooldown = { years = 10 } - # Same-faith AI archbishops, including heads of faith under imperial Symphonia + # Same-faith AI archbishops; the HoF's own see stays protected is_shown = { scope:recipient = { is_ai = yes @@ -11895,8 +11910,7 @@ replace_ecclesiastical_title_holder_interaction = { } } } - # Secular rulers normally may depose only vassals. Symphonia emperors may also depose - # a region's independent bishop if the region extends into their own realm. + # A liege acting on the doctrine right (not the HoF / Head of Rites) may only depose their own vassals trigger_if = { limit = { pam_actor_is_clerical_title_authority_of_this_trigger = no @@ -12172,7 +12186,7 @@ grant_ecclesiastical_title_interaction = { target_filter = clerical_region show_all_targets = no - # Heads of Faith/Rites appoint freely; secular Symphonia emperors appoint to sees in their own realm. + # Clerical region supporting HoF is_available = { faith ?= { has_doctrine_parameter = has_clerical_regions } is_adult = yes @@ -12358,8 +12372,7 @@ grant_ecclesiastical_title_interaction = { } on_accept = { - # Re-check at execution time: title ownership may have changed since picking it. - # This guard is grant-only, so the separate HoF replacement is unaffected. + scope:recipient = { save_scope_as = pam_new_archbishop } if = { limit = { scope:target = { NOT = { pam_clerical_title_held_by_own_hof_trigger = yes } } @@ -12373,6 +12386,7 @@ grant_ecclesiastical_title_interaction = { pam_grant_ecclesiastical_title_interaction_effect = yes NEOW_symphonia_finish_head_of_faith_investiture_effect = yes } + pam_grant_ecclesiastical_title_interaction_effect = yes } on_decline = { @@ -12754,27 +12768,12 @@ ecclesiastic_incite_holy_war_interaction = { target_type = title target_filter = dejure_titles target_source = recipient - notification_text = ecclesiastic_incite_holy_war_interaction_notification - greeting = negative - use_diplomatic_range = yes - ai_min_reply_days = 1 - ai_max_reply_days = 5 - popup_on_receive = no - cooldown_against_recipient = { years = 5 } + auto_accept = yes use_diplomatic_range = no + desc = ecclesiastic_incite_holy_war_interaction_desc is_available = { - trigger_if = { - limit = { is_ai = yes } - piety >= 750 - piety_level >= 3 - OR = { - government_has_flag = government_is_ecclesiastical - this = faith.religious_head - } - is_at_war = no - religion ?= religion:christianity_religion - } + is_ai = no } is_shown = { @@ -12782,16 +12781,14 @@ ecclesiastic_incite_holy_war_interaction = { actor_incite_holy_war_shown_trigger = yes save_temporary_scope_as = attacker } - are_holy_wars_disabled_by_struggle_conciliation_trigger = no # Disabled against other involved faiths in FP2 Conciliation ending has_pam_dlc_trigger = yes + scope:recipient != scope:puppet_or_actor scope:recipient = { is_landed = yes top_liege ?= this NOT = { faith = scope:puppet_or_actor.faith } save_temporary_scope_as = defender - are_holy_wars_disabled_by_struggle_conciliation_trigger = no # Disabled against other involved faiths in FP2 Conciliation ending } - scope:recipient != scope:puppet_or_actor } populate_recipient_list = { @@ -12814,6 +12811,20 @@ ecclesiastic_incite_holy_war_interaction = { } is_valid_showing_failures_only = { + scope:recipient = { + is_alive = yes + } + trigger_if = { + limit = { scope:is_puppet_action ?= yes } + scope:puppet_or_actor = { + piety >= pam_ecclesiastic_incite_holy_war_cost_value + } + } + trigger_else = { + scope:actor = { + piety >= pam_ecclesiastic_incite_holy_war_discounted_cost_value + } + } scope:puppet_or_actor = { is_available_quick = { adult = yes @@ -12821,77 +12832,16 @@ ecclesiastic_incite_holy_war_interaction = { imprisoned = no incapable = no } - - trigger_if = { - limit = { - scope:target ?= { - tier >= tier_kingdom - } - } - trigger_if = { - limit = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_incite_holy_war_interaction - } - } - custom_tooltip = { - text = piety_too_low_target_kingdom_special_tt - piety_level >= 3 - } - } - trigger_else = { - custom_tooltip = { - text = piety_too_low_target_kingdom_tt - piety_level >= 4 - } - } - } - trigger_else_if = { - limit = { - scope:target ?= { - tier >= tier_duchy - } - } - trigger_if = { - limit = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_incite_holy_war_interaction - } - } - custom_tooltip = { - text = piety_too_low_target_duchy_special_tt - piety_level >= 2 - } - } - trigger_else = { - custom_tooltip = { - text = piety_too_low_target_duchy_tt - piety_level >= 3 - } - } - } - trigger_else = { - trigger_if = { - limit = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_incite_holy_war_interaction - } - } - piety_level >= 1 - } - trigger_else = { - piety_level >= 2 - } - } + incite_holy_war_inciter_has_piety_for_target_trigger = { TITLE = scope:target } custom_tooltip = { - text = no_valid_sponsored_holy_war_attacker_tt - faith = { - any_faith_ruler = { - valid_holy_war_incited_attacker_trigger = { RECIPIENT = scope:recipient } + text = ecclesiastic_incite_holy_war_recently_incited_tt + NOT = { + is_target_in_variable_list = { + name = incited_holy_war_defenders + target = scope:recipient } } } - custom_tooltip = { text = religious_war_hostility_tt faith = { @@ -12901,14 +12851,14 @@ ecclesiastic_incite_holy_war_interaction = { } } } - } - scope:recipient = { - is_alive = yes - } - trigger_if = { - limit = { scope:is_puppet_action ?= yes } - scope:puppet_or_actor = { - piety >= pam_ecclesiastic_incite_holy_war_cost_value + + custom_tooltip = { + text = no_valid_sponsored_holy_war_attacker_tt + faith = { + any_faith_ruler = { + valid_holy_war_incited_attacker_trigger = { RECIPIENT = scope:recipient } + } + } } } } @@ -12946,7 +12896,276 @@ ecclesiastic_incite_holy_war_interaction = { } } } - + + on_accept = { + custom_tooltip = ecclesiastic_incite_holy_war_interaction_next_step_tt + hidden_effect = { + scope:actor = { + set_variable = { + name = incite_holy_war_defender + value = scope:recipient + days = 30 + } + if = { + limit = { scope:is_puppet_action ?= yes } + set_variable = { + name = incite_holy_war_puppet + value = scope:puppet_or_actor + days = 30 + } + } + else = { + remove_variable = incite_holy_war_puppet + } + if = { + limit = { is_ai = no } + open_interaction_window = { + interaction = ecclesiastic_incite_holy_war_attacker_interaction + actor = scope:actor + recipient = scope:secondary_recipient + target_title = scope:target + } + } + } + } + } +} + +ecclesiastic_incite_holy_war_attacker_interaction = { + category = interaction_category_diplomacy + icon = minor_religious_war + hidden = yes + notification_text = ecclesiastic_incite_holy_war_attacker_interaction_notification + greeting = negative + ai_min_reply_days = 1 + ai_max_reply_days = 5 + popup_on_receive = no + use_diplomatic_range = no + + redirect = { + scope:actor = { + if = { + limit = { + is_ai = no + exists = var:incite_holy_war_defender + } + var:incite_holy_war_defender = { save_scope_as = secondary_recipient } + var:incite_holy_war_puppet ?= { save_scope_as = puppet_or_actor } + } + } + } + + is_available = { + trigger_if = { + limit = { is_ai = yes } + OR = { + government_has_flag = government_is_ecclesiastical + this = faith.religious_head + } + religion ?= religion:christianity_religion + piety_level >= 3 + piety >= 750 + is_at_war = no + } + } + + is_shown = { + scope:puppet_or_actor ?= { actor_incite_holy_war_shown_trigger = yes } + has_pam_dlc_trigger = yes + scope:recipient != scope:puppet_or_actor + scope:recipient = { + is_landed = yes + faith = scope:puppet_or_actor.faith + } + } + + populate_recipient_list = { + if = { + limit = { + scope:actor = { is_ai = no } + } + scope:actor.var:incite_holy_war_defender ?= { add_to_list = characters } + } + else = { + scope:recipient = { + every_character_to_title_neighboring_and_across_water_county = { + holder.top_liege ?= { + if = { + limit = { + NOR = { + is_in_list = characters + this = scope:puppet_or_actor + faith = scope:puppet_or_actor.faith + } + is_landed = yes + top_liege ?= this + save_temporary_scope_as = defender + scope:puppet_or_actor = { + NOT = { + is_target_in_variable_list = { + name = incited_holy_war_defenders + target = scope:defender + } + } + faith = { + faith_hostility_level = { + target = scope:defender.faith + value >= religious_cb_enabled_hostility_level + } + } + save_temporary_scope_as = attacker + } + are_holy_wars_disabled_by_struggle_conciliation_trigger = no + NAND = { + scope:puppet_or_actor = { + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + } + } + any_character_struggle = { + involvement = involved + is_struggle_type = iberian_struggle + } + } + scope:recipient = { + valid_holy_war_incited_attacker_trigger = { RECIPIENT = scope:defender } + } + } + add_to_list = characters + } + } + } + } + } + } + + is_valid_showing_failures_only = { + scope:recipient = { + is_alive = yes + } + scope:secondary_recipient ?= { + is_alive = yes + } + trigger_if = { + limit = { scope:is_puppet_action ?= yes } + scope:puppet_or_actor = { + piety >= pam_ecclesiastic_incite_holy_war_cost_value + } + } + scope:puppet_or_actor = { + is_available_quick = { + adult = yes + alive = yes + imprisoned = no + incapable = no + } + incite_holy_war_inciter_has_piety_for_target_trigger = { TITLE = scope:target } + } + trigger_if = { + limit = { exists = scope:secondary_recipient } + custom_tooltip = { + text = ecclesiastic_incite_holy_war_attacker_interaction_invalid_pair_tt + scope:recipient = { + valid_holy_war_incited_attacker_trigger = { RECIPIENT = scope:secondary_recipient } + } + } + } + } + + has_valid_target_showing_failures_only = { + exists = scope:secondary_recipient + exists = scope:target + custom_tooltip = { + text = ecclesiastic_incite_holy_war_attacker_interaction_invalid_target_tt + scope:target = { + incite_holy_war_title_is_valid_target_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + } + + can_send = { + trigger_if = { + limit = { + scope:actor = { is_ai = yes } + } + exists = scope:secondary_recipient + exists = scope:target + scope:target = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + } + + ai_set_target = { + scope:secondary_recipient ?= { + random_list = { + 10 = { + trigger = { + scope:puppet_or_actor.piety_level >= 3 + highest_held_title_tier >= tier_duchy + realm_size >= 8 + any_realm_de_jure_kingdom = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + modifier = { + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength + factor = 3 + } + modifier = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength + factor = 0.2 + } + ordered_realm_de_jure_kingdom = { + order_by = de_jure_counties_held_by_secondary_recipient_value + limit = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + 10 = { + trigger = { + scope:puppet_or_actor.piety_level >= 2 + realm_size >= 2 + any_realm_de_jure_duchy = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + ordered_realm_de_jure_duchy = { + order_by = de_jure_counties_held_by_secondary_recipient_value + limit = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + 10 = { + trigger = { + any_realm_county = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + modifier = { + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength + factor = 0.2 + } + modifier = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength + factor = 3 + } + random_realm_county = { + limit = { + incite_holy_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + } + } + } + cost = { piety = { value = pam_ecclesiastic_incite_holy_war_cost_value @@ -12960,64 +13179,19 @@ ecclesiastic_incite_holy_war_interaction = { } add = pam_ecclesiastic_incite_holy_war_inspire_realm_value } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_1 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_1 - } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_2 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_2 - } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_3 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_3 - } - if = { - limit = { - scope:puppet_or_actor ?= { has_perk = chivalric_dominance_perk } - } - multiply = 0.75 - } + multiply = pam_ecclesiastic_incite_war_cost_multiplier_value } } send_option = { is_shown = { - trigger_if = { - limit = { - exists = scope:secondary_recipient - } - scope:secondary_recipient = { - is_ai = yes - } + scope:recipient = { + is_ai = yes } } is_valid = { - trigger_if = { - limit = { - exists = scope:secondary_recipient - } - scope:actor = { - has_usable_hook = scope:secondary_recipient - } - } - trigger_else = { - custom_tooltip = { - text = no_attacker_picked_tt - always = no - } + scope:actor = { + has_usable_hook = scope:recipient } } flag = use_hook @@ -13040,11 +13214,14 @@ ecclesiastic_incite_holy_war_interaction = { religious_head_or_challenger ?= this } } - NOR = { - is_at_war_with = scope:recipient - has_truce = scope:recipient - is_vassal_or_below_of = scope:recipient - is_tributary_of = scope:recipient + trigger_if = { + limit = { exists = scope:secondary_recipient } + NOR = { + is_at_war_with = scope:secondary_recipient + has_truce = scope:secondary_recipient + is_vassal_or_below_of = scope:secondary_recipient + is_tributary_of = scope:secondary_recipient + } } prestige_level >= 1 } @@ -13109,6 +13286,33 @@ ecclesiastic_incite_holy_war_interaction = { send_options_exclusive = no + on_send = { + hidden_effect = { + scope:puppet_or_actor = { + add_to_variable_list = { + name = incited_holy_war_defenders + target = scope:secondary_recipient + years = 5 + } + } + scope:actor = { + remove_variable = incite_holy_war_defender + remove_variable = incite_holy_war_puppet + } + } + } + + on_decline = { + hidden_effect = { + scope:puppet_or_actor = { + remove_list_variable = { + name = incited_holy_war_defenders + target = scope:secondary_recipient + } + } + } + } + on_accept = { if = { limit = { scope:is_puppet_action ?= yes } @@ -13133,39 +13337,27 @@ ecclesiastic_incite_holy_war_interaction = { add_prestige = medium_prestige_value } } + scope:recipient = { save_scope_as = incited_holy_war_attacker } + scope:secondary_recipient = { save_scope_as = recipient } + scope:incited_holy_war_attacker = { save_scope_as = secondary_recipient } ecclesiastic_incite_holy_war_interaction_effect = yes } auto_accept = { OR = { - #Player recipients auto-accept so they get no say in being attacked - #Auto-accept skips ai_accept, so ai_will_do is stricter than usual scope:recipient = { is_ai = no } - AND = { - exists = scope:secondary_recipient - custom_description = { - text = "spending_hook" - subject = scope:actor - object = scope:secondary_recipient - scope:use_hook = yes - scope:actor = { has_strong_hook = scope:secondary_recipient } - } + custom_description = { + text = "spending_hook" + subject = scope:actor + object = scope:recipient + scope:use_hook = yes + scope:actor = { has_strong_hook = scope:recipient } } } } - ai_targets = { - ai_recipients = rulers_in_clerical_region - } - ai_targets = { - ai_recipients = neighboring_rulers - } - ai_targets = { - ai_recipients = vassals - } - ai_accept = { base = -25 @@ -13241,7 +13433,7 @@ ecclesiastic_incite_holy_war_interaction = { value = 25 if = { limit = { - scope:secondary_recipient ?= { + scope:recipient = { highest_held_title_tier < scope:puppet_or_actor.highest_held_title_tier current_military_strength < scope:puppet_or_actor.current_military_strength } @@ -13256,8 +13448,7 @@ ecclesiastic_incite_holy_war_interaction = { modifier = { scope:use_hook = yes add = 100 - exists = scope:secondary_recipient - scope:actor = { NOT = { has_strong_hook = scope:secondary_recipient } } + scope:actor = { NOT = { has_strong_hook = scope:recipient } } desc = SCHEME_WEAK_HOOK_USED } @@ -13265,38 +13456,34 @@ ecclesiastic_incite_holy_war_interaction = { add = { value = 25 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.minor_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.minor_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 50 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.major_gold_value - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.minor_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.major_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.minor_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 75 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.major_gold_value - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.monumental_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.major_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.monumental_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 100 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.monumental_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.monumental_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } @@ -13308,11 +13495,11 @@ ecclesiastic_incite_holy_war_interaction = { any_de_jure_county = { count >= 5 holder = { - target_is_same_character_or_above = scope:recipient + target_is_same_character_or_above = scope:secondary_recipient } } } - scope:secondary_recipient.highest_held_title_tier >= tier_duchy + scope:recipient.highest_held_title_tier >= tier_duchy add = 25 desc = KINGDOM_TIER_REASON } @@ -13323,24 +13510,23 @@ ecclesiastic_incite_holy_war_interaction = { any_de_jure_county = { count >= 2 holder = { - target_is_same_character_or_above = scope:recipient + target_is_same_character_or_above = scope:secondary_recipient } } } - scope:secondary_recipient.highest_held_title_tier = tier_county + scope:recipient.highest_held_title_tier = tier_county add = 25 desc = TARGET_TIER_REASON } modifier = { - exists = scope:secondary_recipient scope:target ?= { tier = tier_county } - scope:secondary_recipient.highest_held_title_tier >= tier_duchy + scope:recipient.highest_held_title_tier >= tier_duchy add = { value = -25 multiply = { - value = scope:secondary_recipient.highest_held_title_tier + value = scope:recipient.highest_held_title_tier subtract = 2 } } @@ -13348,18 +13534,17 @@ ecclesiastic_incite_holy_war_interaction = { } modifier = { add = 25 - scope:secondary_recipient ?= { + scope:recipient = { has_trait = holy_warrior } desc = ai_acceptance_trait_holy_warrior } #Join war option modifier = { - exists = scope:secondary_recipient scope:join_war ?= yes add = { - value = scope:actor.current_military_strength - divide = { value = scope:secondary_recipient.current_military_strength min = 1 } + value = scope:puppet_or_actor.current_military_strength + divide = { value = scope:recipient.current_military_strength min = 1 } multiply = 100 round = yes max = 250 @@ -13369,58 +13554,58 @@ ecclesiastic_incite_holy_war_interaction = { modifier = { exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength >= scope:recipient.fifty_percent_more_of_current_military_strength + scope:recipient.current_military_strength >= scope:secondary_recipient.fifty_percent_more_of_current_military_strength add = { - value = scope:secondary_recipient.current_military_strength + value = scope:recipient.current_military_strength divide = { - value = scope:recipient.current_military_strength + value = scope:secondary_recipient.current_military_strength min = 1 } multiply = 15 round = yes max = 75 } - desc = SPONSORED_HOLY_WAR_RELATIVE_STRENGTH_REASON + desc = INCITE_WAR_ATTACKER_RELATIVE_STRENGTH_REASON } modifier = { exists = scope:secondary_recipient - scope:recipient.current_military_strength > scope:secondary_recipient.current_military_strength + scope:secondary_recipient.current_military_strength > scope:recipient.current_military_strength add = { - value = scope:recipient.current_military_strength - divide = { value = scope:secondary_recipient.current_military_strength min = 1 } + value = scope:secondary_recipient.current_military_strength + divide = { value = scope:recipient.current_military_strength min = 1 } multiply = -50 round = yes } - desc = SPONSORED_HOLY_WAR_RELATIVE_STRENGTH_REASON + desc = INCITE_WAR_ATTACKER_RELATIVE_STRENGTH_REASON } modifier = { add = { - value = scope:actor.piety_level + value = scope:puppet_or_actor.piety_level multiply = 10 } - scope:actor.piety_level > 0 + scope:puppet_or_actor.piety_level > 0 desc = I_AM_PIOUS } modifier = { add = -200 - scope:secondary_recipient.rite ?= { + scope:recipient.rite ?= { rite_has_parameter = holy_wars_forbidden } - desc = RITE_IS_PACIFIST + desc = INCITE_HOLY_WAR_ATTACKER_RITE_IS_PACIFIST } modifier = { add = -100 - scope:secondary_recipient.rite ?= { + scope:recipient.rite ?= { has_tenet_status = { tenet = tenet_peace_of_god status = core } } - desc = pam_peace_of_god_incite_holy_war_reason + desc = INCITE_HOLY_WAR_ATTACKER_PEACE_OF_GOD_REASON } modifier = { add = -100 - scope:secondary_recipient ?= { + scope:recipient = { any_personal_tenet = { OR = { this = tenet:tenet_pacifism @@ -13428,92 +13613,90 @@ ecclesiastic_incite_holy_war_interaction = { } } } - desc = PERSONAL_TENET_PACIFISM + desc = INCITE_WAR_ATTACKER_PERSONAL_TENET_PACIFISM } modifier = { add = -50 exists = scope:secondary_recipient - "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_huge + "scope:recipient.capital_province.squared_distance(scope:secondary_recipient.capital_province)" >= squared_distance_huge desc = PT_AI_IS_FAR_AWAY } opinion_modifier = { - trigger = { exists = scope:secondary_recipient } - who = scope:secondary_recipient + who = scope:recipient opinion_target = scope:puppet_or_actor multiplier = 0.5 } modifier = { add = -50 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { opinion = { - target = scope:recipient + target = scope:secondary_recipient value >= 25 } } - desc = SECONDARY_RECIPIENT_LIKES_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_LIKES_DEFENDER_REASON } modifier = { add = -100 - scope:secondary_recipient ?= { - has_any_good_relationship_with_character_trigger = { CHARACTER = scope:recipient } + exists = scope:secondary_recipient + scope:recipient = { + has_any_good_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient } } - desc = SECONDARY_RECIPIENT_GOOD_RELATION_WITH_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_GOOD_RELATION_WITH_DEFENDER_REASON } modifier = { add = 30 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { OR = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:recipient } + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient } opinion = { - target = scope:recipient + target = scope:secondary_recipient value <= -95 } } } - desc = SECONDARY_RECIPIENT_LOATHES_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_LOATHES_DEFENDER_REASON } modifier = { - exists = scope:secondary_recipient - scope:actor = { - NOT = { rite = scope:secondary_recipient.rite } + scope:puppet_or_actor = { + NOT = { rite = scope:recipient.rite } } add = -25 - desc = DIFFERENT_RITE_REASON + desc = INCITE_HOLY_WAR_ATTACKER_DIFFERENT_RITE_REASON } modifier = { - exists = scope:secondary_recipient - scope:actor = { - NOT = { rite = scope:secondary_recipient.rite } + scope:puppet_or_actor = { + NOT = { rite = scope:recipient.rite } } - scope:secondary_recipient ?= { + scope:recipient = { rite_fulfillment_score = { - target = scope:actor.rite + target = scope:puppet_or_actor.rite value >= 75 } } add = 25 - desc = PERSONAL_APPROVAL_OF_RITE_REASON + desc = INCITE_HOLY_WAR_ATTACKER_RITE_COMPATIBILITY_REASON } modifier = { - exists = scope:secondary_recipient - scope:actor = { - NOT = { rite = scope:secondary_recipient.rite } + scope:puppet_or_actor = { + NOT = { rite = scope:recipient.rite } } - scope:secondary_recipient ?= { + scope:recipient = { rite_fulfillment_score = { - target = scope:actor.rite + target = scope:puppet_or_actor.rite value < 25 } } add = -25 - desc = PERSONAL_DISAPPROVAL_OF_RITE_REASON_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_RITE_COMPATIBILITY_REASON } #Your rite is heretical modifier = { - exists = scope:secondary_recipient exists = scope:puppet_or_actor scope:puppet_or_actor = { - NOT = { rite = scope:secondary_recipient.rite } + NOT = { rite = scope:recipient.rite } } any_tenet = { scope:puppet_or_actor.rite = { @@ -13522,7 +13705,7 @@ ecclesiastic_incite_holy_war_interaction = { status = core } } - scope:secondary_recipient.rite = { + scope:recipient.rite = { has_tenet_status = { tenet = prev status = prohibited @@ -13530,21 +13713,20 @@ ecclesiastic_incite_holy_war_interaction = { } } add = -100 - desc = RITE_CORE_TENET_PROHIBITED_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_RITE_CORE_TENET_PROHIBITED } modifier = { - exists = scope:secondary_recipient - scope:actor = { - NOT = { rite = scope:secondary_recipient.rite } + scope:puppet_or_actor = { + NOT = { rite = scope:recipient.rite } } any_tenet = { - scope:actor.rite = { + scope:puppet_or_actor.rite = { has_tenet_status = { tenet = prev status = permitted } } - scope:secondary_recipient.rite = { + scope:recipient.rite = { has_tenet_status = { tenet = prev status = prohibited @@ -13552,42 +13734,43 @@ ecclesiastic_incite_holy_war_interaction = { } } add = -40 - desc = RITE_TENET_PROHIBITED_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_RITE_TENET_PROHIBITED } modifier = { - scope:secondary_recipient ?= { + scope:recipient = { OR = { ai_boldness > 0 ai_boldness < 0 } } add = { - value = scope:secondary_recipient.ai_boldness + value = scope:recipient.ai_boldness multiply = 0.5 } - desc = SECONDARY_RECIPIENT_BOLDNESS_REASON + desc = INCITE_WAR_ATTACKER_BOLDNESS_REASON } modifier = { - scope:secondary_recipient ?= { + scope:recipient = { ai_compassion != 0 } add = { - value = scope:secondary_recipient.ai_compassion + value = scope:recipient.ai_compassion multiply = -0.25 } - desc = SECONDARY_RECIPIENT_COMPASSION_REASON + desc = INCITE_WAR_ATTACKER_COMPASSION_REASON } modifier = { - scope:secondary_recipient ?= { + scope:recipient = { ai_zeal != 0 } - add = scope:secondary_recipient.ai_zeal - desc = SECONDARY_RECIPIENT_ZEALOUSNESS_REASON + add = scope:recipient.ai_zeal + desc = RECIPIENT_ZEALOUSNESS_REASON } #No land border modifier = { exists = scope:target - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { NOT = { any_sub_realm_county = { any_neighboring_county = { @@ -13596,8 +13779,8 @@ ecclesiastic_incite_holy_war_interaction = { } holder ?= { OR = { - target_is_same_character_or_above = scope:recipient target_is_same_character_or_above = scope:secondary_recipient + target_is_same_character_or_above = scope:recipient } } } @@ -13609,18 +13792,18 @@ ecclesiastic_incite_holy_war_interaction = { } desc = NOT_BORDERING_BY_LAND_REASON } - #Recipient is already at war modifier = { - scope:recipient = { + scope:secondary_recipient ?= { is_at_war = yes } add = 40 - desc = RECIPIENT_AT_WAR_REASON + desc = INCITE_WAR_DEFENDER_AT_WAR_REASON } #Nomadic lands... therefore pretty worthless modifier = { exists = scope:target - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { NOR = { government_has_flag = government_is_nomadic government_has_flag = government_is_steppe_admin @@ -13630,7 +13813,7 @@ ecclesiastic_incite_holy_war_interaction = { scope:target = { any_de_jure_county = { holder = { - target_is_same_character_or_above = scope:recipient + target_is_same_character_or_above = scope:secondary_recipient } any_county_province = { is_county_capital = yes @@ -13647,7 +13830,7 @@ ecclesiastic_incite_holy_war_interaction = { every_de_jure_county = { limit = { holder = { - target_is_same_character_or_above = scope:recipient + target_is_same_character_or_above = scope:secondary_recipient } any_county_province = { is_county_capital = yes @@ -13665,7 +13848,7 @@ ecclesiastic_incite_holy_war_interaction = { } modifier = { exists = scope:target - scope:secondary_recipient ?= { + scope:recipient = { NOR = { government_has_flag = government_is_nomadic government_has_flag = government_is_steppe_admin @@ -13685,74 +13868,72 @@ ecclesiastic_incite_holy_war_interaction = { desc = NOMAD_LANDS_REASON } modifier = { - scope:recipient = { + scope:secondary_recipient ?= { government_has_flag = government_is_nomadic } add = -25 - desc = NOMADIC_TARGET_REASON + desc = INCITE_HOLY_WAR_DEFENDER_NOMADIC_REASON } modifier = { - scope:recipient = { + scope:secondary_recipient ?= { has_trait = conqueror } add = -50 - desc = RECIPIENT_CONQUEROR_REASON + desc = INCITE_HOLY_WAR_DEFENDER_CONQUEROR_REASON } modifier = { - scope:recipient = { + scope:secondary_recipient ?= { has_trait = greatest_of_khans } add = -100 - desc = RECIPIENT_GOK_REASON + desc = INCITE_HOLY_WAR_DEFENDER_GOK_REASON } # More likely to accept if you have an alliance modifier = { add = 50 - exists = scope:secondary_recipient - scope:puppet_or_actor = { is_allied_to = scope:secondary_recipient } + scope:puppet_or_actor = { is_allied_to = scope:recipient } desc = AI_HAS_ALLIANCE } # Respect the liege modifier = { add = 25 - scope:secondary_recipient ?= { target_is_liege_or_above = scope:puppet_or_actor } - desc = LIEGE_REASON_SECONDARY + scope:recipient = { target_is_liege_or_above = scope:puppet_or_actor } + desc = LIEGE_REASON } - # Actor is from the secondary_recipient's house modifier = { add = 15 exists = scope:puppet_or_actor.house - scope:secondary_recipient ?= { + scope:recipient = { is_close_or_extended_family_of = scope:puppet_or_actor } - desc = YOU_ARE_MY_HOUSE_MEMBER_SECONDARY + desc = YOU_ARE_MY_HOUSE_MEMBER } #Close family member modifier = { - scope:secondary_recipient ?= { is_close_family_of = scope:puppet_or_actor } + scope:recipient = { is_close_family_of = scope:puppet_or_actor } add = 20 - desc = is_close_family_reason_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_CLOSE_FAMILY_REASON } modifier = { exists = scope:puppet_or_actor.house NOT = { house ?= scope:puppet_or_actor.house } - scope:secondary_recipient.dynasty ?= scope:puppet_or_actor.dynasty + scope:recipient.dynasty ?= scope:puppet_or_actor.dynasty add = 10 - desc = AI_SAME_DYNASTY_REASON_SECONDARY + desc = AI_SAME_DYNASTY_REASON } #You are house head modifier = { exists = scope:puppet_or_actor.house house.house_head ?= scope:puppet_or_actor add = 30 - desc = AI_YOU_ARE_THE_HOUSE_HEAD_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_HOUSE_HEAD_REASON } modifier = { exists = scope:puppet_or_actor.house NOT = { house.house_head ?= scope:puppet_or_actor } - scope:secondary_recipient.dynasty.dynast ?= scope:puppet_or_actor + scope:recipient.dynasty.dynast ?= scope:puppet_or_actor add = 15 - desc = AI_YOU_ARE_THE_DYNAST_SECONDARY + desc = INCITE_HOLY_WAR_ATTACKER_DYNAST_REASON } #Very pious traits modifier = { @@ -13789,7 +13970,7 @@ ecclesiastic_incite_holy_war_interaction = { # Fs modifier = { add = 25 - scope:secondary_recipient ?= { + scope:recipient = { has_relation_friend = scope:puppet_or_actor } desc = WE_ARE_FRIENDS @@ -13797,7 +13978,7 @@ ecclesiastic_incite_holy_war_interaction = { # BFFs modifier = { add = 50 - scope:secondary_recipient ?= { + scope:recipient = { has_relation_best_friend = scope:puppet_or_actor } desc = WE_ARE_BEST_FRIENDS @@ -13808,14 +13989,14 @@ ecclesiastic_incite_holy_war_interaction = { value = 15 if = { limit = { - scope:secondary_recipient ?= { + scope:recipient = { target_is_liege_or_above = scope:puppet_or_actor } } multiply = 2 } } - scope:secondary_recipient ?= { + scope:recipient = { has_dread_level_towards = { target = scope:puppet_or_actor level = 1 @@ -13828,14 +14009,14 @@ ecclesiastic_incite_holy_war_interaction = { value = 30 if = { limit = { - scope:secondary_recipient ?= { + scope:recipient = { target_is_liege_or_above = scope:puppet_or_actor } } multiply = 2 } } - scope:secondary_recipient ?= { + scope:recipient = { has_dread_level_towards = { target = scope:puppet_or_actor level = 2 @@ -13846,32 +14027,33 @@ ecclesiastic_incite_holy_war_interaction = { # Take dread into account modifier = { add = -50 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { has_dread_level_towards = { - target = scope:recipient + target = scope:secondary_recipient level = 1 } } - desc = SECONDARY_INTIMIDATED_BY_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_INTIMIDATED_BY_DEFENDER_REASON } modifier = { add = -150 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { has_dread_level_towards = { - target = scope:recipient + target = scope:secondary_recipient level >= 2 } } - desc = SECONDARY_COWED_BY_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_COWED_BY_DEFENDER_REASON } } can_send_despite_rejection = no ai_targets = { - ai_recipients = neighboring_rulers_including_tributary_borders - ai_recipients = war_enemies ai_recipients = rulers_in_clerical_region + ai_recipients = neighboring_rulers_including_tributary_borders max = 10 } @@ -13889,7 +14071,7 @@ ecclesiastic_incite_holy_war_interaction = { modifier = { add = 25 - scope:recipient.rite = { + scope:secondary_recipient.rite ?= { "divergence(faith.main_rite)" >= minor_rite_divergence_value } desc = grant_pope_blessing_high_divergence_reason @@ -13912,14 +14094,14 @@ ecclesiastic_incite_holy_war_interaction = { modifier = { add = 25 - scope:recipient = { + scope:secondary_recipient ?= { is_at_war = yes } } modifier = { add = 25 exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength > scope:recipient.twice_current_military_strength + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength } modifier = { add = { @@ -13941,9 +14123,10 @@ ecclesiastic_incite_holy_war_interaction = { } modifier = { factor = 2 + exists = scope:secondary_recipient scope:puppet_or_actor.rite = { rite_hostility_level = { - target = scope:recipient.rite + target = scope:secondary_recipient.rite value >= faith_evil_level } } @@ -13956,16 +14139,14 @@ ecclesiastic_incite_holy_war_interaction = { } modifier = { factor = 0 - OR = { + exists = scope:secondary_recipient + OR = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength AND = { - exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength < scope:recipient.current_military_strength - } - #AI will auto-accept when targeting players, so detailed factors needed here - AND = { - exists = scope:secondary_recipient scope:recipient = { is_ai = no } - incite_holy_war_ai_invalidation_trigger = { RECIPIENT = scope:recipient SECONDARY = scope:secondary_recipient } + scope:secondary_recipient = { + NOT = { incite_holy_war_ai_invalidation_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } } + } } } } @@ -13981,64 +14162,50 @@ ecclesiastic_incite_claim_war_interaction = { target_type = title target_filter = realm_titles target_source = recipient - notification_text = ecclesiastic_incite_claim_war_interaction_notification - greeting = negative - ai_min_reply_days = 1 - ai_max_reply_days = 5 - popup_on_receive = no - cooldown_against_recipient = { years = 5 } + auto_accept = yes use_diplomatic_range = no + desc = ecclesiastic_incite_claim_war_interaction_desc + is_available = { - trigger_if = { - limit = { is_ai = yes } - piety >= 750 - piety_level >= 2 - government_has_flag = government_is_theocracy - OR = { - rite.head_of_rite ?= this - faith.religious_head ?= this - } - is_at_war = no - } + is_ai = no } is_shown = { - has_pam_dlc_trigger = yes scope:puppet_or_actor ?= { government_has_flag = government_is_theocracy } + has_pam_dlc_trigger = yes + scope:recipient != scope:puppet_or_actor scope:recipient = { is_landed = yes NOT = { government_has_flag = government_is_theocracy } - this != scope:puppet_or_actor - trigger_if = { - limit = { - scope:actor = { is_ai = yes } - } - is_independent_ruler = yes - } } } populate_recipient_list = { if = { - limit = { scope:actor = { is_ai = yes } } - scope:puppet_or_actor = { - faith = { - every_faith_ruler = { - limit = { - valid_claim_war_incited_attacker_trigger = { RECIPIENT = scope:recipient } - } - add_to_list = characters + limit = { exists = scope:target } + scope:target = { + every_claimant = { + limit = { + is_alive = yes + this != scope:recipient + this != scope:actor + this != scope:puppet_or_actor } + add_to_list = characters } } } else = { - if = { - limit = { exists = scope:target } - scope:target = { + scope:recipient = { + every_held_title = { + limit = { + tier >= tier_county + tier <= tier_kingdom + is_landless_type_title = no + } every_claimant = { limit = { is_alive = yes @@ -14049,9 +14216,8 @@ ecclesiastic_incite_claim_war_interaction = { add_to_list = characters } } - } - else = { - scope:recipient = { + every_vassal_or_below = { + limit = { is_landed = yes } every_held_title = { limit = { tier >= tier_county @@ -14068,25 +14234,6 @@ ecclesiastic_incite_claim_war_interaction = { add_to_list = characters } } - every_vassal_or_below = { - limit = { is_landed = yes } - every_held_title = { - limit = { - tier >= tier_county - tier <= tier_kingdom - is_landless_type_title = no - } - every_claimant = { - limit = { - is_alive = yes - this != scope:recipient - this != scope:actor - this != scope:puppet_or_actor - } - add_to_list = characters - } - } - } } } } @@ -14099,53 +14246,6 @@ ecclesiastic_incite_claim_war_interaction = { } is_valid_showing_failures_only = { - scope:puppet_or_actor = { - is_available_quick = { - adult = yes - alive = yes - imprisoned = no - incapable = no - } - - trigger_if = { - limit = { - scope:target ?= { - tier >= tier_kingdom - } - } - custom_tooltip = { - text = piety_too_low_target_kingdom_tt - piety_level >= 4 - } - } - trigger_else_if = { - limit = { - scope:target ?= { - tier >= tier_duchy - } - } - custom_tooltip = { - text = piety_too_low_target_duchy_tt - piety_level >= 3 - } - } - trigger_else = { - piety_level >= 2 - } - trigger_if = { - limit = { - scope:recipient = { is_independent_ruler = yes } - } - custom_tooltip = { - text = no_valid_sponsored_claim_war_attacker_tt - faith = { - any_faith_ruler = { - valid_claim_war_incited_attacker_trigger = { RECIPIENT = scope:recipient } - } - } - } - } - } scope:recipient = { is_alive = yes custom_tooltip = { @@ -14154,17 +14254,53 @@ ecclesiastic_incite_claim_war_interaction = { } } trigger_if = { - limit = { scope:puppet_or_actor != scope:actor } + limit = { scope:is_puppet_action ?= yes } scope:puppet_or_actor = { piety >= pam_ecclesiastic_incite_claim_war_cost_value } } + trigger_else = { + scope:actor = { + piety >= pam_ecclesiastic_incite_claim_war_discounted_cost_value + } + } + scope:puppet_or_actor = { + is_available_quick = { + adult = yes + alive = yes + imprisoned = no + incapable = no + } + incite_war_inciter_has_piety_for_target_trigger = { TITLE = scope:target } + custom_tooltip = { + text = ecclesiastic_incite_claim_war_recently_incited_tt + NOT = { + is_target_in_variable_list = { + name = incited_claim_war_defenders + target = scope:recipient + } + } + } + } trigger_if = { limit = { exists = scope:secondary_recipient } scope:secondary_recipient = { claim_war_incited_attacker_can_be_picked_trigger = { RECIPIENT = scope:recipient } } } + trigger_if = { + limit = { + scope:recipient = { is_independent_ruler = yes } + } + custom_tooltip = { + text = no_valid_sponsored_claim_war_attacker_tt + scope:puppet_or_actor.faith = { + any_faith_ruler = { + valid_claim_war_incited_attacker_trigger = { RECIPIENT = scope:recipient } + } + } + } + } } has_valid_target_showing_failures_only = { @@ -14187,43 +14323,273 @@ ecclesiastic_incite_claim_war_interaction = { } } + on_accept = { + custom_tooltip = ecclesiastic_incite_claim_war_interaction_next_step_tt + hidden_effect = { + scope:actor = { + set_variable = { + name = incite_claim_war_defender + value = scope:recipient + days = 30 + } + if = { + limit = { scope:is_puppet_action ?= yes } + set_variable = { + name = incite_claim_war_puppet + value = scope:puppet_or_actor + days = 30 + } + } + else = { + remove_variable = incite_claim_war_puppet + } + if = { + limit = { is_ai = no } + open_interaction_window = { + interaction = ecclesiastic_incite_claim_war_attacker_interaction + actor = scope:actor + recipient = scope:secondary_recipient + target_title = scope:target + } + } + } + } + } +} + +ecclesiastic_incite_claim_war_attacker_interaction = { + category = interaction_category_diplomacy + icon = ecclesiastic_incite_claim_war_interaction + hidden = yes + notification_text = ecclesiastic_incite_claim_war_attacker_interaction_notification + greeting = negative + ai_min_reply_days = 1 + ai_max_reply_days = 5 + popup_on_receive = no + use_diplomatic_range = no + + redirect = { + scope:actor = { + if = { + limit = { + is_ai = no + exists = var:incite_claim_war_defender + } + var:incite_claim_war_defender = { save_scope_as = secondary_recipient } + var:incite_claim_war_puppet ?= { save_scope_as = puppet_or_actor } + } + } + } + + is_available = { + trigger_if = { + limit = { is_ai = yes } + government_has_flag = government_is_theocracy + OR = { + rite.head_of_rite ?= this + faith.religious_head ?= this + } + piety_level >= 2 + piety >= 750 + is_at_war = no + } + } + + is_shown = { + scope:puppet_or_actor ?= { + government_has_flag = government_is_theocracy + } + has_pam_dlc_trigger = yes + scope:recipient != scope:puppet_or_actor + scope:recipient = { + is_landed = yes + faith = scope:puppet_or_actor.faith + NOR = { + government_has_flag = government_is_theocracy + government_has_flag = government_is_ecclesiastical + } + } + } + + populate_recipient_list = { + if = { + limit = { + scope:actor = { is_ai = no } + } + scope:actor.var:incite_claim_war_defender ?= { add_to_list = characters } + } + else = { + scope:recipient = { + every_claim = { + limit = { + tier >= tier_county + tier <= tier_kingdom + is_landless_type_title = no + } + holder.top_liege ?= { + if = { + limit = { + NOR = { + is_in_list = characters + this = scope:puppet_or_actor + government_has_flag = government_is_theocracy + } + is_independent_ruler = yes + save_temporary_scope_as = defender + scope:puppet_or_actor = { + NOT = { + is_target_in_variable_list = { + name = incited_claim_war_defenders + target = scope:defender + } + } + } + scope:recipient = { + valid_claim_war_incited_attacker_trigger = { RECIPIENT = scope:defender } + } + } + add_to_list = characters + } + } + } + } + } + } + + is_valid_showing_failures_only = { + scope:recipient = { + is_alive = yes + } + scope:secondary_recipient ?= { + is_alive = yes + is_independent_ruler = yes + } + trigger_if = { + limit = { scope:is_puppet_action ?= yes } + scope:puppet_or_actor = { + piety >= pam_ecclesiastic_incite_claim_war_cost_value + } + } + scope:puppet_or_actor = { + is_available_quick = { + adult = yes + alive = yes + imprisoned = no + incapable = no + } + incite_war_inciter_has_piety_for_target_trigger = { TITLE = scope:target } + } + trigger_if = { + limit = { exists = scope:secondary_recipient } + scope:recipient = { + claim_war_incited_attacker_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient } + } + } + } + + has_valid_target_showing_failures_only = { + exists = scope:secondary_recipient + exists = scope:target + custom_tooltip = { + text = ecclesiastic_incite_claim_war_attacker_interaction_invalid_target_tt + scope:target = { + incite_claim_war_title_is_valid_target_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + } + + can_send = { + trigger_if = { + limit = { + scope:actor = { is_ai = yes } + } + exists = scope:secondary_recipient + exists = scope:target + scope:target = { + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + } + + ai_set_target = { + if = { + limit = { exists = scope:secondary_recipient } + scope:recipient = { + random_list = { + 10 = { + trigger = { + any_claim = { + tier = tier_kingdom + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + modifier = { + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength + factor = 3 + } + modifier = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength + factor = 0.2 + } + random_claim = { + limit = { + tier = tier_kingdom + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + 10 = { + trigger = { + any_claim = { + tier = tier_duchy + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + random_claim = { + limit = { + tier = tier_duchy + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + 10 = { + trigger = { + any_claim = { + tier = tier_county + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + } + modifier = { + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength + factor = 0.2 + } + modifier = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength + factor = 3 + } + random_claim = { + limit = { + tier = tier_county + incite_claim_war_title_can_be_picked_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } + } + save_scope_as = target + } + } + } + } + } + } + cost = { piety = { value = pam_ecclesiastic_incite_claim_war_cost_value if = { - limit = { scope:puppet_or_actor != scope:actor } + limit = { scope:is_puppet_action ?= yes } multiply = 0 } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_1 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_1 - } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_2 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_2 - } - if = { - limit = { - scope:puppet_or_actor ?= { - domicile ?= { has_domicile_parameter = estate_cheaper_incite_war_3 } - } - } - multiply = ecclesiastical_domicile_cheaper_incite_war_mult_3 - } - if = { - limit = { - scope:puppet_or_actor ?= { has_perk = chivalric_dominance_perk } - } - multiply = 0.75 - } + multiply = pam_ecclesiastic_incite_war_cost_multiplier_value if = { limit = { scope:appeal_to_gods_will ?= yes } add = major_piety_value @@ -14233,29 +14599,13 @@ ecclesiastic_incite_claim_war_interaction = { send_option = { is_shown = { - trigger_if = { - limit = { - exists = scope:secondary_recipient - } - scope:secondary_recipient = { - is_ai = yes - } + scope:recipient = { + is_ai = yes } } is_valid = { - trigger_if = { - limit = { - exists = scope:secondary_recipient - } - scope:actor = { - has_usable_hook = scope:secondary_recipient - } - } - trigger_else = { - custom_tooltip = { - text = no_attacker_picked_tt - always = no - } + scope:actor = { + has_usable_hook = scope:recipient } } flag = use_hook @@ -14278,11 +14628,14 @@ ecclesiastic_incite_claim_war_interaction = { religious_head_or_challenger ?= this } } - NOR = { - is_at_war_with = scope:recipient - has_truce = scope:recipient - is_vassal_or_below_of = scope:recipient - is_tributary_of = scope:recipient + trigger_if = { + limit = { exists = scope:secondary_recipient } + NOR = { + is_at_war_with = scope:secondary_recipient + has_truce = scope:secondary_recipient + is_vassal_or_below_of = scope:secondary_recipient + is_tributary_of = scope:secondary_recipient + } } prestige_level >= 1 } @@ -14323,9 +14676,36 @@ ecclesiastic_incite_claim_war_interaction = { send_options_exclusive = no + on_send = { + hidden_effect = { + scope:puppet_or_actor = { + add_to_variable_list = { + name = incited_claim_war_defenders + target = scope:secondary_recipient + years = 5 + } + } + scope:actor = { + remove_variable = incite_claim_war_defender + remove_variable = incite_claim_war_puppet + } + } + } + + on_decline = { + hidden_effect = { + scope:puppet_or_actor = { + remove_list_variable = { + name = incited_claim_war_defenders + target = scope:secondary_recipient + } + } + } + } + on_accept = { if = { - limit = { scope:puppet_or_actor != scope:actor } + limit = { scope:is_puppet_action ?= yes } scope:puppet_or_actor = { if = { limit = { pam_ecclesiastic_incite_claim_war_cost_value > 0 } @@ -14347,40 +14727,25 @@ ecclesiastic_incite_claim_war_interaction = { add_prestige = medium_prestige_value } } + scope:recipient = { save_scope_as = incited_claim_war_attacker } + scope:secondary_recipient = { save_scope_as = recipient } + scope:incited_claim_war_attacker = { save_scope_as = secondary_recipient } ecclesiastic_incite_claim_war_interaction_effect = yes } auto_accept = { - OR = { - scope:recipient = { - is_ai = no - } - AND = { - exists = scope:secondary_recipient - custom_description = { - text = "spending_hook" - subject = scope:actor - object = scope:secondary_recipient - scope:use_hook = yes - scope:actor = { has_strong_hook = scope:secondary_recipient } - } - } + custom_description = { + text = "spending_hook" + subject = scope:actor + object = scope:recipient + scope:use_hook = yes + scope:actor = { has_strong_hook = scope:recipient } } } ai_targets = { ai_recipients = rulers_in_clerical_region - } - ai_targets = { - ai_recipients = neighboring_rulers - } - ai_targets = { - ai_recipients = vassals - } - ai_targets = { ai_recipients = neighboring_rulers_including_tributary_borders - ai_recipients = war_enemies - ai_recipients = rulers_in_clerical_region max = 10 } @@ -14456,8 +14821,7 @@ ecclesiastic_incite_claim_war_interaction = { modifier = { scope:use_hook = yes add = 100 - exists = scope:secondary_recipient - scope:actor = { NOT = { has_strong_hook = scope:secondary_recipient } } + scope:actor = { NOT = { has_strong_hook = scope:recipient } } desc = SCHEME_WEAK_HOOK_USED } @@ -14465,79 +14829,71 @@ ecclesiastic_incite_claim_war_interaction = { add = { value = 25 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.minor_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.minor_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 50 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.major_gold_value - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.minor_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.major_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.minor_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 75 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.major_gold_value - scope:puppet_or_actor.major_gold_value < scope:secondary_recipient.monumental_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.major_gold_value + scope:puppet_or_actor.major_gold_value < scope:recipient.monumental_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { add = { value = 100 } - exists = scope:secondary_recipient scope:fund_war = yes - scope:puppet_or_actor.major_gold_value >= scope:secondary_recipient.monumental_gold_value + scope:puppet_or_actor.major_gold_value >= scope:recipient.monumental_gold_value desc = FUND_HOLY_WAR_INTERACTION_OPTION_REASON } modifier = { - exists = scope:secondary_recipient - scope:secondary_recipient.highest_held_title_tier >= tier_duchy + scope:recipient.highest_held_title_tier >= tier_duchy add = { - value = scope:secondary_recipient.highest_held_title_tier + value = scope:recipient.highest_held_title_tier subtract = 2 multiply = -25 } - desc = INCITE_CLAIM_WAR_ATTACKER_TIER_REASON + desc = INCITE_CLAIM_WAR_ATTACKER_TITLE_TIER_REASON } modifier = { - exists = scope:secondary_recipient scope:target ?= { tier >= tier_kingdom } - scope:secondary_recipient.highest_held_title_tier >= tier_duchy + scope:recipient.highest_held_title_tier >= tier_duchy add = 25 desc = KINGDOM_TIER_REASON } modifier = { - exists = scope:secondary_recipient scope:target ?= { tier = tier_duchy } - scope:secondary_recipient.highest_held_title_tier = tier_county + scope:recipient.highest_held_title_tier = tier_county add = 25 desc = TARGET_TIER_REASON } modifier = { - exists = scope:secondary_recipient scope:target ?= { tier = tier_county } - scope:secondary_recipient.highest_held_title_tier >= tier_duchy + scope:recipient.highest_held_title_tier >= tier_duchy add = { value = -25 multiply = { - value = scope:secondary_recipient.highest_held_title_tier + value = scope:recipient.highest_held_title_tier subtract = 2 } } @@ -14545,11 +14901,10 @@ ecclesiastic_incite_claim_war_interaction = { } modifier = { - exists = scope:secondary_recipient scope:join_war ?= yes add = { - value = scope:actor.current_military_strength - divide = { value = scope:secondary_recipient.current_military_strength min = 1 } + value = scope:puppet_or_actor.current_military_strength + divide = { value = scope:recipient.current_military_strength min = 1 } multiply = 100 round = yes max = 250 @@ -14559,41 +14914,41 @@ ecclesiastic_incite_claim_war_interaction = { modifier = { exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength >= scope:recipient.fifty_percent_more_of_current_military_strength + scope:recipient.current_military_strength >= scope:secondary_recipient.fifty_percent_more_of_current_military_strength add = { - value = scope:secondary_recipient.current_military_strength + value = scope:recipient.current_military_strength divide = { - value = scope:recipient.current_military_strength + value = scope:secondary_recipient.current_military_strength min = 1 } multiply = 15 round = yes max = 75 } - desc = SPONSORED_HOLY_WAR_RELATIVE_STRENGTH_REASON + desc = INCITE_WAR_ATTACKER_RELATIVE_STRENGTH_REASON } modifier = { exists = scope:secondary_recipient - scope:recipient.current_military_strength > scope:secondary_recipient.current_military_strength + scope:secondary_recipient.current_military_strength > scope:recipient.current_military_strength add = { - value = scope:recipient.current_military_strength - divide = { value = scope:secondary_recipient.current_military_strength min = 1 } + value = scope:secondary_recipient.current_military_strength + divide = { value = scope:recipient.current_military_strength min = 1 } multiply = -50 round = yes } - desc = SPONSORED_HOLY_WAR_RELATIVE_STRENGTH_REASON + desc = INCITE_WAR_ATTACKER_RELATIVE_STRENGTH_REASON } modifier = { add = { - value = scope:actor.piety_level + value = scope:puppet_or_actor.piety_level multiply = 10 } - scope:actor.piety_level > 0 + scope:puppet_or_actor.piety_level > 0 desc = I_AM_PIOUS } modifier = { add = -100 - scope:secondary_recipient ?= { + scope:recipient = { any_personal_tenet = { OR = { this = tenet:tenet_pacifism @@ -14601,111 +14956,114 @@ ecclesiastic_incite_claim_war_interaction = { } } } - desc = PERSONAL_TENET_PACIFISM + desc = INCITE_WAR_ATTACKER_PERSONAL_TENET_PACIFISM } modifier = { add = -50 - exists = scope:secondary_recipient.capital_province exists = scope:recipient.capital_province - "scope:secondary_recipient.capital_province.squared_distance(scope:recipient.capital_province)" >= squared_distance_huge + exists = scope:secondary_recipient.capital_province + "scope:recipient.capital_province.squared_distance(scope:secondary_recipient.capital_province)" >= squared_distance_huge desc = PT_AI_IS_FAR_AWAY } opinion_modifier = { - trigger = { exists = scope:secondary_recipient } - who = scope:secondary_recipient + who = scope:recipient opinion_target = scope:puppet_or_actor multiplier = 0.5 } modifier = { add = -50 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { opinion = { - target = scope:recipient + target = scope:secondary_recipient value >= 25 } } - desc = SECONDARY_RECIPIENT_LIKES_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_LIKES_DEFENDER_REASON } modifier = { add = -100 - scope:secondary_recipient ?= { - has_any_good_relationship_with_character_trigger = { CHARACTER = scope:recipient } + exists = scope:secondary_recipient + scope:recipient = { + has_any_good_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient } } - desc = SECONDARY_RECIPIENT_GOOD_RELATION_WITH_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_GOOD_RELATION_WITH_DEFENDER_REASON } modifier = { add = 30 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { OR = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:recipient } + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient } opinion = { - target = scope:recipient + target = scope:secondary_recipient value <= -95 } } } - desc = SECONDARY_RECIPIENT_LOATHES_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_LOATHES_DEFENDER_REASON } modifier = { - scope:secondary_recipient ?= { + scope:recipient = { OR = { ai_boldness > 0 ai_boldness < 0 } } add = { - value = scope:secondary_recipient.ai_boldness + value = scope:recipient.ai_boldness multiply = 0.5 } - desc = SECONDARY_RECIPIENT_BOLDNESS_REASON - } - modifier = { - scope:secondary_recipient ?= { - ai_compassion != 0 - } - add = { - value = scope:secondary_recipient.ai_compassion - multiply = -0.25 - } - desc = SECONDARY_RECIPIENT_COMPASSION_REASON + desc = INCITE_WAR_ATTACKER_BOLDNESS_REASON } modifier = { scope:recipient = { + ai_compassion != 0 + } + add = { + value = scope:recipient.ai_compassion + multiply = -0.25 + } + desc = INCITE_WAR_ATTACKER_COMPASSION_REASON + } + modifier = { + scope:secondary_recipient ?= { is_at_war = yes } add = 40 - desc = RECIPIENT_AT_WAR_REASON + desc = INCITE_WAR_DEFENDER_AT_WAR_REASON } modifier = { add = 50 - exists = scope:secondary_recipient - scope:puppet_or_actor = { is_allied_to = scope:secondary_recipient } + scope:puppet_or_actor = { is_allied_to = scope:recipient } desc = AI_HAS_ALLIANCE } modifier = { add = 25 - scope:secondary_recipient ?= { target_is_liege_or_above = scope:puppet_or_actor } - desc = LIEGE_REASON_SECONDARY + scope:recipient = { target_is_liege_or_above = scope:puppet_or_actor } + desc = LIEGE_REASON } modifier = { add = -50 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { has_dread_level_towards = { - target = scope:recipient + target = scope:secondary_recipient level = 1 } } - desc = SECONDARY_INTIMIDATED_BY_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_INTIMIDATED_BY_DEFENDER_REASON } modifier = { add = -150 - scope:secondary_recipient ?= { + exists = scope:secondary_recipient + scope:recipient = { has_dread_level_towards = { - target = scope:recipient + target = scope:secondary_recipient level >= 2 } } - desc = SECONDARY_COWED_BY_RECIPIENT_REASON + desc = INCITE_WAR_ATTACKER_COWED_BY_DEFENDER_REASON } } @@ -14731,14 +15089,14 @@ ecclesiastic_incite_claim_war_interaction = { modifier = { add = 25 - scope:recipient = { + scope:secondary_recipient ?= { is_at_war = yes } } modifier = { add = 25 exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength > scope:recipient.twice_current_military_strength + scope:recipient.current_military_strength > scope:secondary_recipient.twice_current_military_strength } modifier = { add = { @@ -14766,15 +15124,14 @@ ecclesiastic_incite_claim_war_interaction = { } modifier = { factor = 0 + exists = scope:secondary_recipient OR = { + scope:recipient.current_military_strength < scope:secondary_recipient.current_military_strength AND = { - exists = scope:secondary_recipient - scope:secondary_recipient.current_military_strength < scope:recipient.current_military_strength - } - AND = { - exists = scope:secondary_recipient scope:recipient = { is_ai = no } - incite_holy_war_ai_invalidation_trigger = { RECIPIENT = scope:recipient SECONDARY = scope:secondary_recipient } + scope:secondary_recipient = { + NOT = { incite_war_ai_invalidation_trigger = { RECIPIENT = scope:secondary_recipient SECONDARY = scope:recipient } } + } } } } @@ -16217,14 +16574,6 @@ pam_reform_order_interaction = { localization = pam_evangelize_tenet_polyamory starts_enabled = { always = yes } } - send_option = { - is_shown = { - pam_reform_order_tenet_option_shown_trigger = { TENET = tenet_love_under_will } - } - flag = tenet_love_under_will - localization = pam_evangelize_tenet_love_under_will - starts_enabled = { always = yes } - } send_option = { is_shown = { @@ -16635,7 +16984,6 @@ pam_evangelize_personal_tenet_interaction = { OR = { is_clergy = yes has_theological_agent_puppet_trigger = yes - rite ?= { rite_has_parameter = neow_charismatic_lay_preaching } } } #Use hook @@ -16672,11 +17020,6 @@ pam_evangelize_personal_tenet_interaction = { ai_accept = { base = -20 religion_sway_to_rite_default_modifier = yes - modifier = { - add = 30 - desc = NEOW_CHARISMATIC_EVANGELISM_REASON - scope:actor = { has_personal_tenet_flag = neow_charismatic_evangelism } - } modifier = { # More likely for secular rulers to accept during instability add = 20 situation:the_christian_church ?= { @@ -16812,7 +17155,6 @@ pam_evangelize_personal_tenet_interaction = { cost = { piety = { value = minor_piety_value - if = { limit = { scope:actor = { has_personal_tenet_flag = neow_charismatic_evangelism } } multiply = 0.5 } if = { limit = { scope:actor = { has_character_modifier = pam_doctrinal_clarity_modifier } @@ -17512,17 +17854,6 @@ pam_evangelize_personal_tenet_interaction = { localization = pam_evangelize_tenet_polyamory starts_enabled = { always = yes } } - send_option = { - is_shown = { - pam_tenet_can_be_evangelized_trigger = { TENET = tenet_love_under_will } - } - is_valid = { - pam_evangelize_personal_tenet_send_option_valid_trigger = { TENET = tenet_love_under_will } - } - flag = tenet_love_under_will - localization = pam_evangelize_tenet_love_under_will - starts_enabled = { always = yes } - } send_option = { is_shown = { @@ -18028,14 +18359,6 @@ pam_evangelize_personal_tenet_interaction = { starts_enabled = { always = yes } } - send_option = { - is_shown = { pam_tenet_can_be_evangelized_trigger = { TENET = tenet_charismatic } } - is_valid = { pam_evangelize_personal_tenet_send_option_valid_trigger = { TENET = tenet_charismatic } } - flag = tenet_charismatic - localization = pam_evangelize_tenet_charismatic - starts_enabled = { always = yes } - } - auto_accept = no on_send = { @@ -18049,10 +18372,6 @@ pam_evangelize_personal_tenet_interaction = { save_scope_as = pam_evangelize_tenet } } - else_if = { - limit = { scope:tenet_charismatic = yes } - tenet:tenet_charismatic = { save_scope_as = pam_evangelize_tenet } - } else = { pam_save_selected_interaction_tenet_effect = yes scope:pam_selected_interaction_tenet = { save_scope_as = pam_evangelize_tenet } @@ -18172,11 +18491,6 @@ pam_ai_evangelize_personal_tenet_interaction = { ai_accept = { base = -20 religion_sway_to_rite_default_modifier = yes - modifier = { - add = 30 - desc = NEOW_CHARISMATIC_EVANGELISM_REASON - scope:actor = { has_personal_tenet_flag = neow_charismatic_evangelism } - } modifier = { # More likely for secular rulers to accept during instability add = 20 situation:the_christian_church ?= { @@ -18418,7 +18732,7 @@ pam_ai_evangelize_personal_tenet_interaction = { adult = yes advanced_ruler = yes } - OR = { is_clergy = yes rite ?= { rite_has_parameter = neow_charismatic_lay_preaching } } + is_clergy = yes # The puppet route is reserved for players; the AI preaches through its own clergy faith ?= { has_tenet_popularity_trigger = yes } has_pam_dlc_trigger = yes # Actor scope: drop out in is_available once every tenet is already Very Popular @@ -18458,7 +18772,6 @@ pam_ai_evangelize_personal_tenet_interaction = { cost = { piety = { value = minor_piety_value - if = { limit = { scope:actor = { has_personal_tenet_flag = neow_charismatic_evangelism } } multiply = 0.5 } if = { limit = { scope:puppet_or_actor ?= { @@ -24868,6 +25181,24 @@ ecclesiastical_bestow_title_interaction = { de_jure_liege = scope:target } } + trigger_if = { + limit = { + scope:target ?= { + tier = tier_empire + } + exists = struggle:iberian_struggle + } + custom_tooltip = { + text = bestow_empire_iberian_struggle_tt + scope:recipient = { + NOT = { + any_character_struggle = { + is_struggle_type = iberian_struggle + } + } + } + } + } } has_valid_target_showing_failures_only = { @@ -24938,6 +25269,30 @@ ecclesiastical_bestow_title_interaction = { } rite = scope:puppet_or_actor.rite } + trigger_if = { + limit = { + exists = struggle:iberian_struggle + scope:recipient = { + any_character_struggle = { + this = struggle:iberian_struggle + } + } + } + custom_tooltip = { + text = bestow_empire_iberian_struggle_tt + scope:recipient = { + any_held_title = { + de_jure_liege ?= { + tier < tier_empire + tier >= scope:recipient.highest_held_title_tier + tier >= tier_county + NOT = { exists = holder } + is_landless_type_title = no + } + } + } + } + } custom_tooltip = { text = any_available_title_same_tier_or_higher_tt scope:recipient = { @@ -25858,6 +26213,24 @@ request_unformed_title_interaction = { scope:target = { target_valid_request_unformed_title_trigger = yes } + trigger_if = { + limit = { + scope:target ?= { + tier = tier_empire + } + exists = struggle:iberian_struggle + } + custom_tooltip = { + text = request_unformed_title_empire_iberian_struggle_tt + scope:puppet_or_actor = { + NOT = { + any_character_struggle = { + is_struggle_type = iberian_struggle + } + } + } + } + } } has_valid_target_showing_failures_only = { @@ -26618,6 +26991,24 @@ ecclesiastical_de_jure_shifting_interaction = { } } } + trigger_if = { + limit = { + scope:target ?= { + tier = tier_kingdom + } + exists = struggle:iberian_struggle + } + custom_tooltip = { + text = ecclesiastical_de_jure_shifting_kingdom_iberian_struggle_tt + scope:puppet_or_actor = { + NOT = { + any_character_struggle = { + is_struggle_type = iberian_struggle + } + } + } + } + } } has_valid_target_showing_failures_only = { @@ -28411,6 +28802,24 @@ ecclesiastical_de_jure_shifting_grant_interaction = { } } } + trigger_if = { + limit = { + scope:target ?= { + tier = tier_kingdom + } + exists = struggle:iberian_struggle + } + custom_tooltip = { + text = ecclesiastical_de_jure_shifting_grant_kingdom_iberian_struggle_tt + scope:recipient = { + NOT = { + any_character_struggle = { + is_struggle_type = iberian_struggle + } + } + } + } + } } has_valid_target_showing_failures_only = { diff --git a/common/council_positions/00_council_positions.txt b/common/council_positions/00_council_positions.txt index 2fdf6a0b3..0dcc8e6e0 100644 --- a/common/council_positions/00_council_positions.txt +++ b/common/council_positions/00_council_positions.txt @@ -891,6 +891,15 @@ councillor_court_chaplain = { liege = { rite = { rite_has_parameter = has_clerical_regions } # As at game start. The trigger below, not the doctrine, is what exempts owners who pick their own can_appoint_own_court_chaplain_trigger = no + # A player's own pick, a swap or a church replacement is never the automatic fill + NOT = { has_character_flag = pam_church_replacing_realm_priest } + trigger_if = { + limit = { is_ai = no } + NOR = { + has_character_flag = manual_council_appointment_in_progress + exists = scope:swapped_position + } + } } } liege = { @@ -971,6 +980,7 @@ councillor_court_chaplain = { } scope:councillor_liege = { send_interface_toast = { + type = event_toast_effect_bad title = pam_replaced_own_realm_priest_toast left_icon = this right_icon = root @@ -1003,9 +1013,11 @@ councillor_court_chaplain = { root.faith.religious_head = { save_scope_as = pam_slighted_religious_head } scope:councillor_liege = { send_interface_toast = { - title = pam_fired_realm_priest_toast + type = event_toast_text_and_effect_bad + title = pam_fired_realm_priest_opinion left_icon = scope:pam_slighted_religious_head right_icon = scope:pam_dismissed_realm_priest + desc = pam_fired_realm_priest_toast scope:pam_slighted_religious_head = { add_opinion = { target = scope:councillor_liege @@ -1555,7 +1567,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = king_republic_male_arabic_group + desc = spouse_republic_king_male } triggered_desc = { trigger = { @@ -1563,7 +1575,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = duke_republic_male_arabic_group + desc = spouse_republic_duke_male } triggered_desc = { trigger = { @@ -1571,7 +1583,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = count_republic_male_arabic_group + desc = spouse_republic_count_male } #Arabic Feudal/Clan/Tribal triggered_desc = { @@ -1694,7 +1706,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_byzantine } } - desc = king_republic_male_byzantine_group + desc = spouse_republic_king_male } triggered_desc = { trigger = { @@ -1702,7 +1714,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_byzantine } } - desc = duke_republic_male_byzantine_group + desc = spouse_republic_duke_male } #Greek Feudal triggered_desc = { @@ -1736,7 +1748,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = emperor_republic_male_roman + desc = spouse_republic_emperor_male } triggered_desc = { trigger = { @@ -1744,7 +1756,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = king_republic_male_roman + desc = spouse_republic_king_male } triggered_desc = { trigger = { @@ -1752,7 +1764,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = duke_republic_male_roman + desc = spouse_republic_duke_male } triggered_desc = { trigger = { @@ -1760,7 +1772,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = count_republic_male_roman + desc = spouse_republic_count_male } triggered_desc = { trigger = { @@ -1768,7 +1780,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = baron_republic_male_roman + desc = spouse_republic_baron_male } #Roman Feudal triggered_desc = { @@ -1818,7 +1830,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_latin } } - desc = king_republic_male_latin_group + desc = spouse_republic_king_male } triggered_desc = { trigger = { @@ -1826,7 +1838,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_latin } } - desc = duke_republic_male_latin_group + desc = spouse_republic_duke_male } #Tribal Default triggered_desc = { @@ -1906,35 +1918,35 @@ councillor_spouse = { highest_held_title_tier >= tier_empire government_has_flag = government_is_republic } - desc = emperor_republic_male + desc = spouse_republic_emperor_male } triggered_desc = { trigger = { highest_held_title_tier = tier_kingdom government_has_flag = government_is_republic } - desc = king_republic_male + desc = spouse_republic_king_male } triggered_desc = { trigger = { highest_held_title_tier = tier_duchy government_has_flag = government_is_republic } - desc = duke_republic_male + desc = spouse_republic_duke_male } triggered_desc = { trigger = { highest_held_title_tier = tier_county government_has_flag = government_is_republic } - desc = count_republic_male + desc = spouse_republic_count_male } triggered_desc = { trigger = { highest_held_title_tier = tier_barony government_has_flag = government_is_republic } - desc = baron_republic_male + desc = spouse_republic_baron_male } #Admin/Ceremonial Regent @@ -2508,7 +2520,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = king_republic_female_arabic_group + desc = spouse_republic_king_female } triggered_desc = { trigger = { @@ -2516,7 +2528,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = duke_republic_female_arabic_group + desc = spouse_republic_duke_female } triggered_desc = { trigger = { @@ -2524,7 +2536,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_arabic } } - desc = count_republic_female_arabic_group + desc = spouse_republic_count_female } #Arabic Feudal/Clan/Tribal triggered_desc = { @@ -2647,7 +2659,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_byzantine } } - desc = king_republic_female_byzantine_group + desc = spouse_republic_king_female } triggered_desc = { trigger = { @@ -2655,7 +2667,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_byzantine } } - desc = duke_republic_female_byzantine_group + desc = spouse_republic_duke_female } #Greek Feudal triggered_desc = { @@ -2681,7 +2693,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = emperor_republic_female_roman + desc = spouse_republic_emperor_female } triggered_desc = { trigger = { @@ -2689,7 +2701,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = king_republic_female_roman + desc = spouse_republic_king_female } triggered_desc = { trigger = { @@ -2697,7 +2709,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = duke_republic_female_roman + desc = spouse_republic_duke_female } triggered_desc = { trigger = { @@ -2705,7 +2717,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = count_republic_female_roman + desc = spouse_republic_count_female } triggered_desc = { trigger = { @@ -2713,7 +2725,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_name_list = name_list_roman } } - desc = baron_republic_female_roman + desc = spouse_republic_baron_female } #Roman Feudal triggered_desc = { @@ -2763,7 +2775,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_latin } } - desc = king_republic_female_latin_group + desc = spouse_republic_king_female } triggered_desc = { trigger = { @@ -2771,7 +2783,7 @@ councillor_spouse = { government_has_flag = government_is_republic culture = { has_cultural_pillar = heritage_latin } } - desc = duke_republic_female_latin_group + desc = spouse_republic_duke_female } #Tribal Default triggered_desc = { @@ -2851,35 +2863,35 @@ councillor_spouse = { highest_held_title_tier >= tier_empire government_has_flag = government_is_republic } - desc = emperor_republic_female + desc = spouse_republic_emperor_female } triggered_desc = { trigger = { highest_held_title_tier = tier_kingdom government_has_flag = government_is_republic } - desc = king_republic_female + desc = spouse_republic_king_female } triggered_desc = { trigger = { highest_held_title_tier = tier_duchy government_has_flag = government_is_republic } - desc = duke_republic_female + desc = spouse_republic_duke_female } triggered_desc = { trigger = { highest_held_title_tier = tier_county government_has_flag = government_is_republic } - desc = count_republic_female + desc = spouse_republic_count_female } triggered_desc = { trigger = { highest_held_title_tier = tier_barony government_has_flag = government_is_republic } - desc = baron_republic_female + desc = spouse_republic_baron_female } #Admin / Ceremonial Regent diff --git a/common/council_tasks/00_court_chaplain_tasks.txt b/common/council_tasks/00_court_chaplain_tasks.txt index 0c368af75..7e9666b99 100644 --- a/common/council_tasks/00_court_chaplain_tasks.txt +++ b/common/council_tasks/00_court_chaplain_tasks.txt @@ -1015,6 +1015,15 @@ task_fabricate_claim = { effect_desc = { desc = task_fabricate_claim_effect_desc + triggered_desc = { + trigger = { + scope:councillor_liege = { + government_has_flag = government_is_republic + NOT = { has_realm_law = republican_despot_succession_law } + } + } + desc = task_fabricate_claim_republic_warning + } desc = { desc = council_task_possible_side_effects diff --git a/common/council_tasks/00_spymaster_tasks.txt b/common/council_tasks/00_spymaster_tasks.txt index 53af1b96e..efb2e36ce 100644 --- a/common/council_tasks/00_spymaster_tasks.txt +++ b/common/council_tasks/00_spymaster_tasks.txt @@ -124,36 +124,6 @@ scale = scope:councillor.spymaster_disrupt_schemes_family_business_modifier_scale } - council_owner_modifier = { - name = task_disrupt_schemes_modifier - enemy_scheme_secrecy_add = -100 - scale = { value = scope:councillor.spymaster_disrupt_schemes_scheme_discovery_modifier divide = 200 } - } - - council_owner_modifier = { - name = task_disrupt_schemes_court_of_shadows_modifier - enemy_scheme_secrecy_add = -100 - 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? - enemy_scheme_secrecy_add = -100 - 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 - enemy_scheme_secrecy_add = -100 - scale = { value = scope:councillor.spymaster_disrupt_schemes_family_business_discovery_modifier_scale divide = 200 } - } - - council_owner_modifier = { - name = determination_spymaster_task_disrupt_schemes_modifier - enemy_scheme_secrecy_add = -100 - scale = { value = scope:councillor.spymaster_disrupt_schemes_determination_discovery_modifier_scale divide = 200 } - } - monthly_on_action = task_disrupt_schemes_side_effects ai_will_do = { diff --git a/common/council_tasks/00_steward_tasks.txt b/common/council_tasks/00_steward_tasks.txt index 84786e005..ea9395f09 100644 --- a/common/council_tasks/00_steward_tasks.txt +++ b/common/council_tasks/00_steward_tasks.txt @@ -1068,7 +1068,7 @@ task_promote_culture = { trigger = { scope:councillor_liege = { any_vassal = { - has_vassal_stance = minority + vassal_stance = minority } } } @@ -1079,7 +1079,7 @@ task_promote_culture = { trigger_if = { limit = { exists = scope:county } scope:county = { - NOT = { culture = scope:councillor_liege.culture } + culture != scope:councillor_liege.culture } NOT = { scope:councillor_liege.culture = { @@ -2116,7 +2116,7 @@ task_accept_culture = { councillor_liege_has_family_business_bonus = yes } add = { - value = scope:councillor.steward_promote_culture_family_business_bonus + value = scope:councillor.steward_accept_culture_family_business_bonus_yearly_increase desc = FAMILY_BUSINESS_BONUS_VALUE } } diff --git a/common/council_tasks/01_ministry_tasks.txt b/common/council_tasks/01_ministry_tasks.txt index 2565b0642..550b53c4a 100644 --- a/common/council_tasks/01_ministry_tasks.txt +++ b/common/council_tasks/01_ministry_tasks.txt @@ -345,6 +345,11 @@ task_develop_county_minister_of_works = { clone = task_develop_county } +task_grow_settlements_minister_of_works = { + position = minister_works + clone = task_grow_settlements +} + ### GRAND MARSHAL task_lead_troops = { default_task = yes diff --git a/common/council_tasks/_council_tasks.info b/common/council_tasks/_council_tasks.info index 2645763ca..602d7e9f9 100644 --- a/common/council_tasks/_council_tasks.info +++ b/common/council_tasks/_council_tasks.info @@ -2,9 +2,11 @@ default_task = yes #Is the defualt task for the specified position (no by default, only applicable on task_type_general with task_progress_infinite) position = councillor_chancellor #Position that can perform this task (positions can be found in common/council_positions) task_type = task_type_general #Type of the task [task_type_general|task_type_county|task_type_court] - county_target = all|realm|etc #What can a county task target? Not relevant for other task-types. Valid: all, realm, domain, neighbor_land, neighbor_land_or_water. neighbor_land_or_water only works for the AI + county_target = all|realm|etc #What can a county task target? Not relevant for other task-types. Valid: none, all, realm, domain, neighbor_land, neighbor_land_or_water. neighbor_land_or_water only works for the AI ai_county_target = as above #What can a county task target for the AI? Not relevant for other task-types. If not set, defaults to what you set for the county_target. You might want this more restrictive for performance reasons ai_target_score = { ... } # Script value for county target scores. Defaults to completely random if not set. Scopes are the same as all other council task script. Score of 0 or below means "don't do this". AI picks weighted random from all targets with a score above 0 + ai_will_do = { ... } # Script value for how much the AI wants to switch to this task. Root is the councillor, scope:councillor and scope:councillor_liege are set; there is no target scope + skill = diplomacy # Optional main skill of the task, shown in the council UI. Valid: diplomacy, martial, stewardship, intrigue, learning, prowess task_progress = task_progress_infinite #Type of the progress task [task_progress_infinite|task_progress_percentage|task_progress_value] task_current_value = script_value #When using task_progress_value, this defines the current progress task_max_value = script_value #When using task_progress_value, this defines the max progress; the point at which the task is considered complete @@ -68,7 +70,7 @@ desc = some_loc_key } } - full_progres = some_script_value/math # Some tasks just affect an existing process, such as development. Use this to obtain/calculate the full progress rate of that task. For tooltips and ETAs, that value will be used as the overall progress. In the progress rate breakdown for the task, that value minus the value provided by the task itself will be listed under the entry COUNCIL_TASK_OTHER_SOURCES. If you use this MAKE SURE that you actually apply everything that affects progress to the underlying value. E.G., for county control, make sure to have county_modifier that applies the county control gain + full_progress = some_script_value/math # Some tasks just affect an existing process, such as prosperity. Use this to obtain/calculate the full progress rate of that task. For tooltips and ETAs, that value will be used as the overall progress. In the progress rate breakdown for the task, that value minus the value provided by the task itself will be listed under the entry COUNCIL_TASK_OTHER_SOURCES. If you use this MAKE SURE that you actually apply everything that affects progress to the underlying value. E.G., for county control, make sure to have county_modifier that applies the county control gain custom_other_loc = some_loc_key # This loc key replaces the COUNCIL_TASK_OTHER_SOURCES line in the progress breakdown effect_desc = { # Dynamic description for effect description. Scopes based on task type. To add the modifier effects, you can do stuff like this [councillor.GetModifierDescForTask('task_foreign_affairs')] diff --git a/common/culture/cultures/00_bantu.txt b/common/culture/cultures/00_bantu.txt index 62afbf947..928d1eb26 100644 --- a/common/culture/cultures/00_bantu.txt +++ b/common/culture/cultures/00_bantu.txt @@ -39,11 +39,21 @@ swahili = { head_determination = head_determination_domain traditions = { - tradition_maritime_mercantilism tradition_language_scholars tradition_storytellers } + dlc_tradition = { + trait = tradition_monsoon_traders + requires_dlc_flag = silk_and_silver + fallback = tradition_maritime_mercantilism + } + + dlc_tradition = { + trait = tradition_fortune_seekers + requires_dlc_flag = silk_and_silver + } + name_list = name_list_swahili coa_gfx = { east_african_group_coa_gfx } diff --git a/common/culture/cultures/00_berber.txt b/common/culture/cultures/00_berber.txt index 3a0132812..639e4c29c 100644 --- a/common/culture/cultures/00_berber.txt +++ b/common/culture/cultures/00_berber.txt @@ -12,6 +12,11 @@ tradition_desert_ribat tradition_equal_inheritance } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_butr @@ -42,6 +47,11 @@ baranis = { # Baranis - settled Berber tradition_family_entrepreneurship tradition_mountain_herding } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_baranis @@ -102,6 +112,11 @@ zaghawa = { tradition_saharan_nomads tradition_desert_ribat } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_zaghawa diff --git a/common/culture/cultures/00_central_african.txt b/common/culture/cultures/00_central_african.txt index 8061ddb3f..74be3097a 100644 --- a/common/culture/cultures/00_central_african.txt +++ b/common/culture/cultures/00_central_african.txt @@ -14,6 +14,11 @@ tradition_hit_and_run tradition_quarrelsome } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_kanuri @@ -39,10 +44,15 @@ hausa = { martial_custom = martial_custom_equal head_determination = head_determination_domain traditions = { - tradition_caravaneers tradition_parochialism tradition_family_entrepreneurship } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + fallback = tradition_caravaneers + } name_list = name_list_hausa diff --git a/common/culture/cultures/00_sahelian.txt b/common/culture/cultures/00_sahelian.txt index 984a2493c..beacfdd1c 100644 --- a/common/culture/cultures/00_sahelian.txt +++ b/common/culture/cultures/00_sahelian.txt @@ -7,11 +7,16 @@ martial_custom = martial_custom_male_only head_determination = head_determination_domain traditions = { - tradition_caravaneers tradition_city_keepers tradition_dryland_dwellers tradition_zealous_people } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + fallback = tradition_caravaneers + } name_list = name_list_soninke @@ -29,20 +34,18 @@ } } -bambara = { +bozo = { color = hsv{ 0.12 1.0 0.5} - ethos = ethos_courtly + ethos = ethos_communal heritage = heritage_sahelian - language = language_manding + language = language_soninke martial_custom = martial_custom_male_only head_determination = head_determination_domain traditions = { - tradition_agrarian - tradition_hereditary_hierarchy - tradition_ruling_caste - tradition_dryland_dwellers - tradition_caravaneers + tradition_wetlanders + tradition_religion_blending + tradition_isolationist } name_list = name_list_bozo diff --git a/common/culture/cultures/00_sahelian_ibl.txt b/common/culture/cultures/00_sahelian_ibl.txt index 051a73718..48bb6ff52 100644 --- a/common/culture/cultures/00_sahelian_ibl.txt +++ b/common/culture/cultures/00_sahelian_ibl.txt @@ -36,7 +36,12 @@ gaw = { #very similar to Songhai - Gaw were Songhai ancestors head_determination = head_determination_domain traditions = { tradition_dryland_dwellers - tradition_caravaneers + } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + fallback = tradition_caravaneers } name_list = name_list_gaw @@ -67,6 +72,11 @@ songhai = { #a mix of Gaw and Sorko people who founded the Kawkaw kingdom and So tradition_dryland_dwellers tradition_warrior_culture } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_songhai diff --git a/common/culture/cultures/00_senegambian.txt b/common/culture/cultures/00_senegambian.txt index 1fe84ef5e..91cb6035e 100644 --- a/common/culture/cultures/00_senegambian.txt +++ b/common/culture/cultures/00_senegambian.txt @@ -5,13 +5,10 @@ heritage = heritage_senegambian language = language_senegambian martial_custom = martial_custom_male_only - head_determination = head_determination_herd + head_determination = head_determination_domain traditions = { - tradition_pastoralists - tradition_family_entrepreneurship - tradition_staunch_traditionalists - tradition_zealous_people - tradition_xenophilic + tradition_forbearing + tradition_welcoming } name_list = name_list_pulaar diff --git a/common/culture/cultures/00_somalian.txt b/common/culture/cultures/00_somalian.txt index 271d9499c..f1bba9d22 100644 --- a/common/culture/cultures/00_somalian.txt +++ b/common/culture/cultures/00_somalian.txt @@ -7,12 +7,17 @@ martial_custom = martial_custom_male_only head_determination = head_determination_herd traditions = { - tradition_maritime_mercantilism tradition_horn_mountain_skirmishing tradition_poetry tradition_dryland_dwellers } + dlc_tradition = { + trait = tradition_monsoon_traders + requires_dlc_flag = silk_and_silver + fallback = tradition_maritime_mercantilism + } + name_list = name_list_somali coa_gfx = { east_african_group_coa_gfx } diff --git a/common/culture/cultures/00_west_african.txt b/common/culture/cultures/00_west_african.txt index a1afb5a41..2d5bbbd2f 100644 --- a/common/culture/cultures/00_west_african.txt +++ b/common/culture/cultures/00_west_african.txt @@ -8,16 +8,18 @@ head_determination = head_determination_domain traditions = { tradition_upland_skirmishing - tradition_hill_dwellers - tradition_music_theory - tradition_ruling_caste - tradition_isolationist + tradition_charitable } - #dlc_tradition = { - # trait = tradition_sorcerous_metallurgy - # requires_dlc_flag = royal_court - #} + dlc_tradition = { + trait = tradition_sorcerous_metallurgy + requires_dlc_flag = royal_court + } + + dlc_tradition = { + trait = tradition_saharan_traders + requires_dlc_flag = silk_and_silver + } name_list = name_list_malinke diff --git a/common/culture/eras/_culture_eras.info b/common/culture/eras/_culture_eras.info index a5fc52815..a8974630d 100644 --- a/common/culture/eras/_culture_eras.info +++ b/common/culture/eras/_culture_eras.info @@ -11,4 +11,5 @@ name_of_culture_era = { # Key to the name 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. invalid_for_government = key # key of a govebrnment that can't use the innovations in this era. There can be more than one. custom = loc_key # A custom effect description that will be added to the list of effects + maa_upgrade = { ... } # Upgrade to an existing MaA type, applied to characters of the culture with valid government. There can be more than one. Same format as in _culture_innovations.info } diff --git a/common/culture/innovations/00_tribal_innovations.txt b/common/culture/innovations/00_tribal_innovations.txt index 20114e456..c8aea34df 100644 --- a/common/culture/innovations/00_tribal_innovations.txt +++ b/common/culture/innovations/00_tribal_innovations.txt @@ -606,6 +606,30 @@ innovation_mead_brewing = { } } +innovation_rice_wine_brewing = { + skill = stewardship + group = culture_group_civic + culture_era = culture_era_tribal + region = world_innovation_rice_wine + icon = @wine + + county_modifier = { + agricultural_tax_mult = 0.05 + trade_good_wine_production_mult = 0.15 + } + + parameters = { + unlocks_rice_winery = yes + } + + flag = global_regional + flag = tribal_era_regional + + ai_weight_for_fascination = { + value = 50 + } +} + innovation_stockfisk = { skill = stewardship group = culture_group_civic diff --git a/common/culture/innovations/tgp_innovations.txt b/common/culture/innovations/tgp_innovations.txt index 9d9cede18..854d30106 100644 --- a/common/culture/innovations/tgp_innovations.txt +++ b/common/culture/innovations/tgp_innovations.txt @@ -339,6 +339,8 @@ innovation_lacquerware = { silk_road_innovation_parameter = yes } + custom = unlocks_lacquerware_guild + flag = global_regional flag = tribal_era_regional flag = silk_road_innovation diff --git a/common/culture/name_equivalency/_info.info b/common/culture/name_equivalency/_info.info index a12ddfcb9..82a276429 100644 --- a/common/culture/name_equivalency/_info.info +++ b/common/culture/name_equivalency/_info.info @@ -4,7 +4,8 @@ When changing culture, if the character's current name is equivalent to a name i == Format == For men, the names "Henrik", "Heinrich", and "Henrich" will be considered the same for naming purposes. henrik_male = { "Henrik" "Heinrich" "Henrich" } -Lack of a postfix will also be interpreted as male. +Lack of a postfix logs an error; the list will then be interpreted as male. +Each name is a localization key; a name without localization logs an error, as does a name listed in more than one list of the same gender. For women, the names "Matilda" and "Mathilda" will be considered the same for naming purposes. matilda_female = { "Matilda" "Mathilda" } diff --git a/common/culture/name_lists/00_east_slavic.txt b/common/culture/name_lists/00_east_slavic.txt index 43aa34d8d..217ca85ec 100644 --- a/common/culture/name_lists/00_east_slavic.txt +++ b/common/culture/name_lists/00_east_slavic.txt @@ -187,7 +187,7 @@ } male_names = { - Afanasiy Alexandr Alexei Andrei Boris Briachislav Daniil Davyd Demid Dmitriy Dobrynia Fedot Feodor Gavriil Gleb + Afanasiy Alexandr Alexei Andrei Boris Briachislav Daniil Davyd Demid Dmitriy Dobrynia Fedot Feodor Feodosiy Gavriil Gleb Grigoriy Iakov Igor Iliya Ingvar Ivan Iziaslav Kirill Konstantin Koz_ma Lev Matfei Mikhail Mitrofan Mstislav Nikita Oleg Pavel Putiata Radoslav Rodislav Rogvolod Roman Rostislav Rurik Ruslan Simeon Stanislav Stepan Sudislav Svetozar Sviatopolk Sviatoslav Terentiy Trifon Vasiliy Vasilko Viacheslav Vladimir Vladislav Voislav Volodar Vseslav @@ -267,6 +267,165 @@ name_list_ilmenian = { mother_name_chance = 0 +} +name_list_novgorodian = { + + cadet_dynasty_names = { + "dynn_Akhmyl" + "dynn_Boretskie" + "dynn_Chapinoga" + "dynn_Dvoryanintsevy" + "dynn_Duren" + "dynn_Esipovy" + "dynn_Fefilatyevy" + "dynn_Gruz" + "dynn_Gruzovy" + "dynn_Gyuryatinichi" + "dynn_Kazimirovy" + "dynn_Koska" + "dynn_Kuryatnik" + "dynn_Kuzminy" + "dynn_Loshinskie" + "dynn_Lyudin" + "dynn_Martemyanovy" + "dynn_Mikhalkovichi" + "dynn_Miroshkinichi" + "dynn_Mishinichi" + "dynn_Nerevsky" + "dynn_Onanyinichi" + "dynn_Ontsiforovichi" + "dynn_Ovinovy" + "dynn_Plotnitsky" + "dynn_Posakhno" + "dynn_Posakhnovy" + "dynn_Samsonovy" + "dynn_Savelkovy" + "dynn_Shchoka" + "dynn_Slavensky" + "dynn_Slizen" + "dynn_Sokira" + "dynn_Telyatevy" + "dynn_Tuchiny" + "dynn_Vodovik" + "dynn_Zagorodsky" + "dynn_Zakharyinichi" + { "dynnp_of" "dynn_Bezhitsy" } + { "dynnp_of" "dynn_Demon" } + { "dynnp_of" "dynn_Egna" } + { "dynnp_of" "dynn_Gorodets" } + { "dynnp_of" "dynn_Ilmen" } + { "dynnp_of" "dynn_Izborsk" } + { "dynnp_of" "dynn_Koporye" } + { "dynnp_of" "dynn_Korela" } + { "dynnp_of" "dynn_Ladoga" } + { "dynnp_of" "dynn_Luki" } + { "dynnp_of" "dynn_Melecha" } + { "dynnp_of" "dynn_Obonezhye" } + { "dynnp_of" "dynn_Oreshek" } + { "dynnp_of" "dynn_Porkhov" } + { "dynnp_of" "dynn_Rusa" } + { "dynnp_of" "dynn_Shelon" } + { "dynnp_of" "dynn_Torzhok" } + { "dynnp_of" "dynn_Toropets" } + { "dynnp_of" "dynn_Volkhov" } + { "dynnp_of" "dynn_Volok" } + { "dynnp_of" "dynn_Zavolochye" } + } + + dynasty_names = { + "dynn_Akhmyl" + "dynn_Boretskie" + "dynn_Chapinoga" + "dynn_Dvoryanintsevy" + "dynn_Duren" + "dynn_Esipovy" + "dynn_Fefilatyevy" + "dynn_Gruz" + "dynn_Gruzovy" + "dynn_Gyuryatinichi" + "dynn_Kazimirovy" + "dynn_Koska" + "dynn_Kuryatnik" + "dynn_Kuzminy" + "dynn_Loshinskie" + "dynn_Lyudin" + "dynn_Martemyanovy" + "dynn_Mikhalkovichi" + "dynn_Miroshkinichi" + "dynn_Mishinichi" + "dynn_Nerevsky" + "dynn_Onanyinichi" + "dynn_Ontsiforovichi" + "dynn_Ovinovy" + "dynn_Plotnitsky" + "dynn_Posakhno" + "dynn_Posakhnovy" + "dynn_Samsonovy" + "dynn_Savelkovy" + "dynn_Shchoka" + "dynn_Slavensky" + "dynn_Slizen" + "dynn_Sokira" + "dynn_Telyatevy" + "dynn_Tuchiny" + "dynn_Vodovik" + "dynn_Zagorodsky" + "dynn_Zakharyinichi" + { "dynnp_of" "dynn_Bezhitsy" } + { "dynnp_of" "dynn_Demon" } + { "dynnp_of" "dynn_Egna" } + { "dynnp_of" "dynn_Gorodets" } + { "dynnp_of" "dynn_Ilmen" } + { "dynnp_of" "dynn_Izborsk" } + { "dynnp_of" "dynn_Koporye" } + { "dynnp_of" "dynn_Korela" } + { "dynnp_of" "dynn_Ladoga" } + { "dynnp_of" "dynn_Luki" } + { "dynnp_of" "dynn_Melecha" } + { "dynnp_of" "dynn_Obonezhye" } + { "dynnp_of" "dynn_Oreshek" } + { "dynnp_of" "dynn_Porkhov" } + { "dynnp_of" "dynn_Rusa" } + { "dynnp_of" "dynn_Shelon" } + { "dynnp_of" "dynn_Torzhok" } + { "dynnp_of" "dynn_Toropets" } + { "dynnp_of" "dynn_Volkhov" } + { "dynnp_of" "dynn_Volok" } + { "dynnp_of" "dynn_Zavolochye" } + } + + male_names = { + Bogsha Bratila Dobrila Dobroshka Domaslav Domazhir Fefilat Foma Gavsha Gostila + Gostyata Grigorya Griksha Gyurgi Gyuryata Khoten Khoteslav Klim Klimyata Kosnyatin + Kyuril Laryan Mikifor Mikita Mikula Milyata Miroshka Miroslav Negovit Nezdila + Nezhata Ofonos Oleksa Olforomei Ondrei Onfim Ontan Ontsifor Osip Petryata + Polyud Proksha Putyata Radko Radoslav Ratmir Ratsha Sbyslav Sdila Semko + Smen Snovid Stanimir Stavr Stepan Terekh Trufan Tverdila Tverdyata Vasil + Vasilko Vnezd Voneg Vyshata Yakov Yakun Yarila Yesif Yevan Yuri + Zavid Zhdan Zhirko Zhiroslav Zhiznomir + } + female_names = { + Ana Domna Domnika Fedora Fedosya Fekla Fetinya Fovronya Katerina Khrestina + Maremyana Marena Marfa Marina Marya Milka Miloslava Milusha Nastasya Nedelka + Nezhka Ofimya Ofrosenya Ogafya Oksinya Okulina Olisava Ovdotya Pelaga Peredslava + Roshchena Ulita Ulyana Varvara Yana Yarina + } + dynasty_of_location_prefix = "dynnp_of" + + patronym_suffix_male = "dynnpat_suf_ovich" + patronym_suffix_female = "dynnpat_suf_ovna" + + # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. + pat_grf_name_chance = 50 + mat_grf_name_chance = 40 + father_name_chance = 0 + + # Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100. + pat_grm_name_chance = 30 + mat_grm_name_chance = 30 + mother_name_chance = 0 + + } name_list_severian = { diff --git a/common/culture/name_lists/00_frankish.txt b/common/culture/name_lists/00_frankish.txt index 42031181d..f5b2e359f 100644 --- a/common/culture/name_lists/00_frankish.txt +++ b/common/culture/name_lists/00_frankish.txt @@ -747,7 +747,7 @@ name_list_french = { } female_names = { E_lE_onore E_lodie E_tiennette AdE_le Adalmode Adelaide Adelinde Agathe AgnE_s AlE_arde Alice AliE_nor - Alix Almodis Amelie Anne Antoinette Arsinde Aude Aurengarde BE_atrice BE_atrix Belleassez BenoI_te BE_rengE_re + Alix Almodis Amelie Anne Antoinette Arsinde Aude Audeburge Aurengarde BE_atrice BE_atrix Belleassez BenoI_te BE_rengE_re Berthe Blanche Bonne Bourgogne Bourguigne CE_cile CathE_rine Charlotte Constance Denise Douce Echive Eglantine Elisabeth Emma Ermengarde Ermessinde Esclarmonde Euphrosine Eustachie Eve Gerberge GisE_le Guillaumette HE_loise Helvis Hodierne Ide Ida IldE_garde Isabeau Isabelle Jeanne Judith @@ -1337,6 +1337,154 @@ name_list_late_norman = { } } +name_list_italo_norman = { + + cadet_dynasty_names = { + "dynn_Drengot" + "dynn_Filangieri" + "dynn_Gesualdo" + "dynn_Guarna" + "dynn_Maletta" + "dynn_Quarrel" + "dynn_Sanseverino" + { "dynnp_d_" "dynn_Acerra" } + { "dynnp_d_" "dynn_Alife" } + { "dynnp_d_" "dynn_Altavilla" } + { "dynnp_d_" "dynn_Andria" } + { "dynnp_d_" "dynn_Aquino" } + { "dynnp_d_" "dynn_Ariano" } + { "dynnp_d_" "dynn_Avellino" } + { "dynnp_d_" "dynn_Aversa" } + { "dynnp_di" "dynn_Balvano" } + { "dynnp_di" "dynn_Bassonville" } + { "dynnp_di" "dynn_Bisignano" } + { "dynnp_di" "dynn_Boiano" } + { "dynnp_di" "dynn_Buonalbergo" } + { "dynnp_di" "dynn_Caiazzo" } + { "dynnp_di" "dynn_Carinola" } + { "dynnp_di" "dynn_Caserta" } + { "dynnp_di" "dynn_Catanzaro" } + { "dynnp_di" "dynn_Chiaromonte" } + { "dynnp_di" "dynn_Civitate" } + { "dynnp_di" "dynn_Conversano" } + { "dynnp_di" "dynn_Fasanella" } + { "dynnp_di" "dynn_Fondi" } + { "dynnp_di" "dynn_Giovinazzo" } + { "dynnp_di" "dynn_Gravina" } + { "dynnp_di" "dynn_Larino" } + { "dynnp_di" "dynn_Lecce" } + { "dynnp_di" "dynn_Loreto" } + { "dynnp_di" "dynn_Loritello" } + { "dynnp_di" "dynn_Manoppello" } + { "dynnp_di" "dynn_Marsico" } + { "dynnp_di" "dynn_Mileto" } + { "dynnp_di" "dynn_Molise" } + { "dynnp_di" "dynn_Monopoli" } + { "dynnp_di" "dynn_Montescaglioso" } + { "dynnp_di" "dynn_Nocera" } + { "dynnp_di" "dynn_Policastro" } + { "dynnp_di" "dynn_Principato" } + { "dynnp_di" "dynn_Rota" } + { "dynnp_di" "dynn_Rupecanina" } + { "dynnp_di" "dynn_Sangro" } + { "dynnp_di" "dynn_Squillace" } + { "dynnp_di" "dynn_Taranto" } + { "dynnp_di" "dynn_Teate" } + { "dynnp_di" "dynn_Tricarico" } + } + + dynasty_names = { + "dynn_Drengot" + "dynn_Filangieri" + "dynn_Gesualdo" + "dynn_Guarna" + "dynn_Maletta" + "dynn_Quarrel" + "dynn_Sanseverino" + { "dynnp_d_" "dynn_Acerra" } + { "dynnp_d_" "dynn_Alife" } + { "dynnp_d_" "dynn_Altavilla" } + { "dynnp_d_" "dynn_Andria" } + { "dynnp_d_" "dynn_Aquino" } + { "dynnp_d_" "dynn_Ariano" } + { "dynnp_d_" "dynn_Avellino" } + { "dynnp_d_" "dynn_Aversa" } + { "dynnp_di" "dynn_Balvano" } + { "dynnp_di" "dynn_Bassonville" } + { "dynnp_di" "dynn_Bisignano" } + { "dynnp_di" "dynn_Boiano" } + { "dynnp_di" "dynn_Buonalbergo" } + { "dynnp_di" "dynn_Caiazzo" } + { "dynnp_di" "dynn_Carinola" } + { "dynnp_di" "dynn_Caserta" } + { "dynnp_di" "dynn_Catanzaro" } + { "dynnp_di" "dynn_Chiaromonte" } + { "dynnp_di" "dynn_Civitate" } + { "dynnp_di" "dynn_Conversano" } + { "dynnp_di" "dynn_Fasanella" } + { "dynnp_di" "dynn_Fondi" } + { "dynnp_di" "dynn_Giovinazzo" } + { "dynnp_di" "dynn_Gravina" } + { "dynnp_di" "dynn_Larino" } + { "dynnp_di" "dynn_Lecce" } + { "dynnp_di" "dynn_Loreto" } + { "dynnp_di" "dynn_Loritello" } + { "dynnp_di" "dynn_Manoppello" } + { "dynnp_di" "dynn_Marsico" } + { "dynnp_di" "dynn_Mileto" } + { "dynnp_di" "dynn_Molise" } + { "dynnp_di" "dynn_Monopoli" } + { "dynnp_di" "dynn_Montescaglioso" } + { "dynnp_di" "dynn_Nocera" } + { "dynnp_di" "dynn_Policastro" } + { "dynnp_di" "dynn_Principato" } + { "dynnp_di" "dynn_Rota" } + { "dynnp_di" "dynn_Rupecanina" } + { "dynnp_di" "dynn_Sangro" } + { "dynnp_di" "dynn_Squillace" } + { "dynnp_di" "dynn_Taranto" } + { "dynnp_di" "dynn_Teate" } + { "dynnp_di" "dynn_Tricarico" } + } + + male_names = { + Ademar Aldwin Alfons Amis Anfroi Ansald Asclettin Bartholomew Berard Bohemond + Conrad Dominic Drogo Fulk Gilbert Godfrey Guiscard Henry Herbert Herman + Hugh Humphrey James John Jordan Joscelin Lawrence Matthew Mauger Nicholas + Osbern Peter Philip Radulf Ranulf Rayner Reginald Richard Robert Roffred + Roger Serlo Silvester Simon Stefen Tancred Thomas Tristan Turgise Walter + Warin William Wymund + } + + female_names = { + Adelaide Adelin Adelise Alberada Altruda Beatrice Bertha Blanche Clemenza Constance + Elvira Emma Eremberga Flandina Fressenda Gaitelgrima Joan Jordana Judit Mabel + Margaret Marina Matilda Matina Medania Muriella Philippa Rogata Sibylla Valdrade + } + + dynasty_of_location_prefix = "dynnp_di" + patronym_prefix_male = "dynnpat_pre_di" + patronym_prefix_female = "dynnpat_pre_di" + + bastard_dynasty_prefix = "dynnp_fitz" + + # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. + pat_grf_name_chance = 30 + mat_grf_name_chance = 10 + father_name_chance = 25 + + # Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100. + pat_grm_name_chance = 20 + mat_grm_name_chance = 40 + mother_name_chance = 5 + + mercenary_names = { + { name = mercenary_company_iron_arms_company } + { name = mercenary_company_normans_of_drengot } + { name = mercenary_company_sicilian_band } + } +} + name_list_occitan = { cadet_dynasty_names = { @@ -1483,7 +1631,7 @@ name_list_occitan = { AdhE_mar Acfred Aimeric Alberic Albert Aldebert Alias AnfO_s Amalric Amaneus Ancelmes AndrE_ Archambaut Arnaut Artau Aton AudoI_n Aymar Aymeric Aznar Barral BartoumiE_u BaudoI_n Beneset BE_rard BerenguiE_ Bermond Bernat Bernat-Aton Bernat-Ezi Bertrand Blasi Borel Boson Carles ClamenC_ Centolh DA_vi Dat Dodon Doumenge Duran Ebles EmmanuE_l Enric Ermengau EstE_ve Filip - Ferrand FlorE_nC_ Folquet FrancE_s Frederi Garcia Gaston Gausbert Gautier GilbE_rt Girard Girvais Godafres + Ferrand FlorE_nC_ Folquet FrancE_s Frederi Garcia Gaston Gausbert Gautier GilbE_rt Gilmond Girard Girvais Godafres Gui Guichard Guigues GuilhE_m Guiraud Guitart Ives Jacme Jaufret Joan Jordan Jorge Josselin Julian LaurE_nC_ Leon LoI_s Loui Lop MarC_au Martin Matfre Matias Milo Miquel Nicholaus Odon Otton PE_ire PE_ire-Arnaut PE_ire-Raimond Peranudet Pol Pons Raimond Raimond-BerenguiE_ Rainaut Rainer @@ -1526,6 +1674,235 @@ name_list_occitan = { } } +name_list_arpitan = { + + cadet_dynasty_names = { + { "dynnp_de" "dynn_Savoie" } + { "dynnp_de" "dynn_Maurienne" } + { "dynnp_de" "dynn_Miolans" } + { "dynnp_de" "dynn_Menthon" } + { "dynnp_de" "dynn_Seyssel" } + { "dynnp_de" "dynn_Montmayeur" } + { "dynnp_de" "dynn_Duingt" } + { "dynnp_de" "dynn_Chignin" } + { "dynnp_de" "dynn_Compey" } + { "dynnp_de" "dynn_La_Chambre" } + { "dynnp_de" "dynn_Beaufort" } + { "dynnp_d_" "dynn_Allinges" } + { "dynnp_d_" "dynn_Arenthon" } + { "dynnp_de" "dynn_Ternier" } + { "dynnp_de" "dynn_Gex" } + { "dynnp_de" "dynn_Faucigny" } + { "dynnp_de" "dynn_Lucinge" } + { "dynnp_de" "dynn_GenE_ve" } + { "dynnp_de" "dynn_Grandson" } + { "dynnp_de" "dynn_Cossonay" } + { "dynnp_de" "dynn_Prangins" } + { "dynnp_de" "dynn_Blonay" } + { "dynnp_d_" "dynn_Oron" } + { "dynnp_de" "dynn_Vevey" } + { "dynnp_d_" "dynn_Estavayer" } + { "dynnp_d_" "dynn_Aubonne" } + { "dynnp_de" "dynn_Bonvillars" } + { "dynnp_de" "dynn_Vuippens" } + { "dynnp_de" "dynn_GruyE_re" } + { "dynnp_de" "dynn_GlA_ne" } + { "dynnp_de" "dynn_Granges" } + { "dynnp_de" "dynn_NeuchA_tel" } + { "dynnp_de" "dynn_Valangin" } + { "dynnp_d_" "dynn_Arberg" } + { "dynnp_de" "dynn_La_Tour" } + { "dynnp_de" "dynn_Rarogne" } + { "dynnp_d_" "dynn_Albon" } + { "dynnp_de" "dynn_Viennois" } + { "dynnp_de" "dynn_Sassenage" } + { "dynnp_de" "dynn_Bressieux" } + { "dynnp_de" "dynn_Clermont" } + { "dynnp_de" "dynn_Roussillon" } + { "dynnp_de" "dynn_Bocsozel" } + { "dynnp_d_" "dynn_Anthon" } + { "dynnp_de" "dynn_Moras" } + { "dynnp_de" "dynn_Vinay" } + { "dynnp_de" "dynn_Beaumont" } + { "dynnp_de" "dynn_La_Tour_du_Pin" } + "dynn_Alleman" + { "dynnp_de" "dynn_Beaujeu" } + { "dynnp_de" "dynn_Forez" } + { "dynnp_de" "dynn_Villars" } + { "dynnp_de" "dynn_Thoire" } + { "dynnp_de" "dynn_Chandieu" } + { "dynnp_de" "dynn_BA_gE_" } + { "dynnp_de" "dynn_Coligny" } + { "dynnp_de" "dynn_Varax" } + { "dynnp_de" "dynn_Luyrieux" } + { "dynnp_de" "dynn_Montluel" } + { "dynnp_de" "dynn_Challant" } + { "dynnp_de" "dynn_Vallaise" } + { "dynnp_de" "dynn_Quart" } + { "dynnp_de" "dynn_Nus" } + { "dynnp_d_" "dynn_Avise" } + { "dynnp_de" "dynn_Bard" } + { "dynnp_d_" "dynn_Aymavilles" } + { "dynnp_de" "dynn_Cly" } + { "dynnp_de" "dynn_FE_nis" } + { "dynnp_de" "dynn_VerrE_s" } + { "dynnp_d_" "dynn_Issogne" } + "dynn_Sarriod" + { "dynnp_d_" "dynn_Introd" } + { "dynnp_de" "dynn_Gignod" } + { "dynnp_de" "dynn_Champorcher" } + { "dynnp_de" "dynn_Montjovet" } + { "dynnp_d_" "dynn_Ussel" } + { "dynnp_d_" "dynn_Arnad" } + { "dynnp_de" "dynn_La_Salle" } + { "dynnp_de" "dynn_Sarre" } + { "dynnp_de" "dynn_Salins" } + { "dynnp_de" "dynn_Montfaucon" } + { "dynnp_de" "dynn_Vienne" } + "dynn_Favre" # smith + "dynn_Villard" + "dynn_Chappuis" + "dynn_Perrin" + "dynn_Jaccard" + "dynn_Sandoz" + "dynn_Mermet" + "dynn_Milloz" + "dynn_Bessard" + "dynn_Guichard" + "dynn_Anselmet" + "dynn_Vuillermoz" + } + + dynasty_names = { + { "dynnp_de" "dynn_Savoie" } + { "dynnp_de" "dynn_Maurienne" } + { "dynnp_de" "dynn_Miolans" } + { "dynnp_de" "dynn_Menthon" } + { "dynnp_de" "dynn_Seyssel" } + { "dynnp_de" "dynn_Montmayeur" } + { "dynnp_de" "dynn_Duingt" } + { "dynnp_de" "dynn_Chignin" } + { "dynnp_de" "dynn_Compey" } + { "dynnp_de" "dynn_La_Chambre" } + { "dynnp_de" "dynn_Beaufort" } + { "dynnp_d_" "dynn_Allinges" } + { "dynnp_d_" "dynn_Arenthon" } + { "dynnp_de" "dynn_Ternier" } + { "dynnp_de" "dynn_Gex" } + { "dynnp_de" "dynn_Faucigny" } + { "dynnp_de" "dynn_Lucinge" } + { "dynnp_de" "dynn_GenE_ve" } + { "dynnp_de" "dynn_Grandson" } + { "dynnp_de" "dynn_Cossonay" } + { "dynnp_de" "dynn_Prangins" } + { "dynnp_de" "dynn_Blonay" } + { "dynnp_d_" "dynn_Oron" } + { "dynnp_de" "dynn_Vevey" } + { "dynnp_d_" "dynn_Estavayer" } + { "dynnp_d_" "dynn_Aubonne" } + { "dynnp_de" "dynn_Bonvillars" } + { "dynnp_de" "dynn_Vuippens" } + { "dynnp_de" "dynn_GruyE_re" } + { "dynnp_de" "dynn_GlA_ne" } + { "dynnp_de" "dynn_Granges" } + { "dynnp_de" "dynn_NeuchA_tel" } + { "dynnp_de" "dynn_Valangin" } + { "dynnp_d_" "dynn_Arberg" } + { "dynnp_de" "dynn_La_Tour" } + { "dynnp_de" "dynn_Rarogne" } + { "dynnp_d_" "dynn_Albon" } + { "dynnp_de" "dynn_Viennois" } + { "dynnp_de" "dynn_Sassenage" } + { "dynnp_de" "dynn_Bressieux" } + { "dynnp_de" "dynn_Clermont" } + { "dynnp_de" "dynn_Roussillon" } + { "dynnp_de" "dynn_Bocsozel" } + { "dynnp_d_" "dynn_Anthon" } + { "dynnp_de" "dynn_Moras" } + { "dynnp_de" "dynn_Vinay" } + { "dynnp_de" "dynn_Beaumont" } + { "dynnp_de" "dynn_La_Tour_du_Pin" } + "dynn_Alleman" + { "dynnp_de" "dynn_Beaujeu" } + { "dynnp_de" "dynn_Forez" } + { "dynnp_de" "dynn_Villars" } + { "dynnp_de" "dynn_Thoire" } + { "dynnp_de" "dynn_Chandieu" } + { "dynnp_de" "dynn_BA_gE_" } + { "dynnp_de" "dynn_Coligny" } + { "dynnp_de" "dynn_Varax" } + { "dynnp_de" "dynn_Luyrieux" } + { "dynnp_de" "dynn_Montluel" } + { "dynnp_de" "dynn_Challant" } + { "dynnp_de" "dynn_Vallaise" } + { "dynnp_de" "dynn_Quart" } + { "dynnp_de" "dynn_Nus" } + { "dynnp_d_" "dynn_Avise" } + { "dynnp_de" "dynn_Bard" } + { "dynnp_d_" "dynn_Aymavilles" } + { "dynnp_de" "dynn_Cly" } + { "dynnp_de" "dynn_FE_nis" } + { "dynnp_de" "dynn_VerrE_s" } + { "dynnp_d_" "dynn_Issogne" } + "dynn_Sarriod" + { "dynnp_d_" "dynn_Introd" } + { "dynnp_de" "dynn_Gignod" } + { "dynnp_de" "dynn_Champorcher" } + { "dynnp_de" "dynn_Montjovet" } + { "dynnp_d_" "dynn_Ussel" } + { "dynnp_d_" "dynn_Arnad" } + { "dynnp_de" "dynn_La_Salle" } + { "dynnp_de" "dynn_Sarre" } + { "dynnp_de" "dynn_Salins" } + { "dynnp_de" "dynn_Montfaucon" } + { "dynnp_de" "dynn_Vienne" } + "dynn_Favre" # smith + "dynn_Villard" + "dynn_Chappuis" + "dynn_Perrin" + "dynn_Jaccard" + "dynn_Sandoz" + "dynn_Mermet" + "dynn_Milloz" + "dynn_Bessard" + "dynn_Guichard" + "dynn_Anselmet" + "dynn_Vuillermoz" + } + + male_names = { + AmE_ AmE_dE_e Adalbert Aimery AndzelE_n Anselmet Antoine ArduC_on Artaud Aymon Aynard Berlion BE_renger + Billoud Boniface Charles Claude Conon Dian DjeusE_p Dzouan EblE_s E_meric E_tienne FrE_chE_ Gaucher + Gauthier GE_rard Germen Girold Guichard Guigues Guy Henriet Hugues Humbert Jacobin Jacquoz JaquE_t Jian + JosE_ Josseran Lambert Louis MarquE_t Mermet Mermin Milloz Nicolas Othon Perrin Perronin PE_rou Philibert + Philippe Pierro Renaud Richard Rodolphe Rolet Savin Thomas Thomasset Ubin Ulric Vuillerme Vulliermin + Yblet Zarman Zarvai + } + female_names = { + AdE_laI_de AgnE_s Alisia Alix Anne Anthonia BE_atrix Beatritz Bonne Catherine ClE_mence Donette Dzone + E_lisabeth Guigone Isabelle Jaquette JeA_nna JiA_na Jordane Louise Marguerite Marie Marquiota Matilda + Milia Perrette Perronette Sibylle Willelme + } + dynasty_of_location_prefix = "dynnp_de" + grammar_transform = french + + # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. + pat_grf_name_chance = 50 + mat_grf_name_chance = 10 + father_name_chance = 15 + + # Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100. + pat_grm_name_chance = 10 + mat_grm_name_chance = 50 + mother_name_chance = 15 + + mercenary_names = { + { name = "mercenary_company_riders_of_the_mountains" } + { name = "mercenary_company_tard_venus_1" } + { name = "mercenary_company_routiers_1" } + } +} + name_list_outremer = { cadet_dynasty_names = { diff --git a/common/culture/name_lists/00_goidelic.txt b/common/culture/name_lists/00_goidelic.txt index 8240dedb7..95a0f59af 100644 --- a/common/culture/name_lists/00_goidelic.txt +++ b/common/culture/name_lists/00_goidelic.txt @@ -168,7 +168,7 @@ DonnucA_n DoE_lgus Drost Drust Dub-dA_-Lethe Dubcenn Dubgenn Dubh Dubhghall Dubhglais Dubthach DubA_ed DubA_n Duiblesc Duibne DunA_ed DA_lach DI_cuill DI_glach DI_mmae DI_mmasach DI_mmA_n DI_nertach DU_nacA_n DU_nadach DU_nchad DU_ngal DU_ngalach DU_nlang E_amonn Echmarcach E_chtgal E_chtgus Echthigern Echuid E_icnech E_icnechA_n ElA_ir E_nna E_nri E_ochad Eochaid Eochu EochucA_n E_ogan Erc Ercaid ErcA_ed ErcA_n E_remO_n E_rennach ErnA_n EterscE_l EO_gan EO_ganA_n Fachtna Fairchellach Fallaman FarannA_n FaI_lbe Fearghus - Fechtnach Fedach Fearchar Fedelmid Feirgil Felic Fer-Fugaill Feradach Ferdomnach Fergal Fergus Fionnghall Fiachnae FianchU_ Findbarr FindlaI_ch Fingen Finguine Finn FinnacA_n Finnbarr + Fechtnach Fedach Fearchar Fedelmid Feirgil Felic Fer-Fugaill Feradach Ferdomnach Fergal Fergus FE_thgno Fionnghall Fiachnae FianchU_ Findbarr FindlaI_ch Fingen Finguine Finn FinnacA_n Finnbarr FinnchU_ Finnlagh Finnsnechtae Fintan Flaithbertach Flaithem FlaithemA_n Flaithgus FlaithrI_ Flann FlannacA_n Flannchad FlannA_n Fogartach Folachtach ForannA_n Forbassach Fothad Fothud Fuacarta Fubthad Fuirechtach Fursu FA_elcar FA_elchad FA_elchU_ FA_eldobur FA_elgus FA_elA_n FA_elbe FI_achnae FI_adchU_ FI_ngin FI_nsnechta FO_carta GabrA_n Garalt Garbith Gilla-I_osa Gilla-BrI_gte Gilla-Coluim Gilla-ComgA_in Gilla-CrI_st Gilla-na-NA_em Gilla-PA_traic Gilla-Ruad Glaisiuc Glaschu GlU_n-Iairn Gofraid GormacA_n Gormgus GormA_n Guaire GA_ethA_n @@ -179,7 +179,7 @@ MA_el-TO_lai MA_elA_n MA_enach MA_thair MU_adA_n Nadarchu Nannid Natfraech Natfraich Natsluaig Nechtan Niall Niallgus NiallA_n Nuadu OdrA_n O_engus O_enucA_n OissE_ne OissI_ne OlcA_n O_lchobar OnchU_ Orthanach Oscar PA_traic Petair Pilib PO_l Proinsias Rechtabra RiacA_n Riaguil Robartach Rogallach Rogellach Ruah RuaidrI_ Ruarcc Rumann RA_thach RI_gA_n RI_A_n RO_dA_n RO_nchU_ RO_nA_n RU_adacA_n RU_adA_n Scandal ScandlA_n ScellA_n Scolaige SE_aghdha SE_afra SE_amas SeA_n Sechnassach Selbach SenchA_n SeoA_n Sinach - SiothrU_n SlE_bI_ne Snedgus Sogan Somhairle Suibne SA_erbrethach SA_rA_n SE_igI_ne SE_tna SE_tnae Tadg Taithlech Talorc TalorcA_n TemnE_n Tigernach TigernA_n + SiothrU_n SlE_bI_ne Snedgus Sogan Somhairle Suairlech Suibne SA_erbrethach SA_rA_n SE_igI_ne SE_tna SE_tnae Tadg Taithlech Talorc TalorcA_n TemnE_n Tigernach TigernA_n Tipraite Tomaltach TomA_s TorccA_n Trenchad Trengus Tressach TuathalA_n Tuireann TA_lA_n TO_la TU_athal Ualgarg Ualan Ualtar U_amnachA_n Uargal Uargalach Uargus Uilliam UltA_n } diff --git a/common/culture/name_lists/00_iberian.txt b/common/culture/name_lists/00_iberian.txt index ecd8e2334..ac4816976 100644 --- a/common/culture/name_lists/00_iberian.txt +++ b/common/culture/name_lists/00_iberian.txt @@ -58,7 +58,7 @@ } female_names = { Adalais Aines Alausia Aldontza Anderkina Andregoto Antsa Assona Ava Azibella - Beatritz Belaskita Berengaria Blanka Briska Elbira Elisabet Eliza Endulcia + Beatritz Belaskita Berengaria Blanka Briska Elbira Elisabet Eliza Emili Endulcia Ermesinda Estefania Fakilo Fronilde Gersenda Guntroda Joana Katalina Kisilo Konstantzia Leonor Maior Maria Matilda Matrona Mentzia Munia Muniadona Nunila NuN_a Oneka Oria Plazentzia Tekla Teresa Toda Toda-Adalais Urraka Ximena @@ -1307,7 +1307,7 @@ name_list_aragonese = { "dynn_FortU_n" "dynn_GalI_ndez" "dynn_GarcE_s" - "dynn_Gatonez" + "dynn_GatO_nez" "dynn_Gil" "dynn_GirA_ldez" "dynn_GO_mez" diff --git a/common/culture/name_lists/00_israelite.txt b/common/culture/name_lists/00_israelite.txt index a07464598..ada2489df 100644 --- a/common/culture/name_lists/00_israelite.txt +++ b/common/culture/name_lists/00_israelite.txt @@ -172,4 +172,46 @@ name_list_radhanite = { dynasty_of_location_prefix = "dynnp_of" +} +name_list_mustaarabi = { + + cadet_dynasty_names = { + "dynn_Shaoul" + "dynn_Ben_Sol" + "dynn_Ben_Shlomo" + "dynn_Ben_Shimon" + "dynn_Ben_Yitzhak" + "dynn_Ya_akov" + "dynn_Ben_Yankev" + "dynn_Yeshayahu" + "dynn_Ben_Yosef" + } + + dynasty_names = { + "dynn_Shaoul" + "dynn_Ben_Sol" + "dynn_Ben_Shlomo" + "dynn_Ben_Shimon" + "dynn_Ben_Yitzhak" + "dynn_Ya_akov" + "dynn_Ben_Yankev" + "dynn_Yeshayahu" + "dynn_Ben_Yosef" + } + + male_names = { + Aharon Avraham Amram Asher Azariah Baruch Binyamin Boaz Bustenai Chanan Chananel Chanoch Chaim + Chisdai Chiyya Chushiel Daniel David Efrayim Elazar Eliezer Gershom Ghayyat Hassun Hillel Isaac Kahana + Levi Machir Matiyahu Meir Menashe Meshulam Mevasser Mishael Moshe Nachman Nachshon Natan Natronai + Nechemiah Nissim Reuven Saadiah Shalom Shemaryah Sherira Shimon Shlomo Shmuel Tzadok Tzemach Uri + Yaakov Yachya Yehudah Yehoshua Yeshayah Yisrael Yitzchak Yosef Zakkai + } + female_names = { + Avigayil Basmat Channah Chavah Devorah Dinah Elisheva Ester Hadassah Hagar Leah Miriam NaOmi + Rachel Rivqah Sarah Shifra Shoshannah Tamar Tzipporah Yael Yedidah Yehudit Yemima + } + + dynasty_of_location_prefix = "dynnp_of" + + } diff --git a/common/culture/name_lists/00_latin.txt b/common/culture/name_lists/00_latin.txt index 377b20b18..4002be642 100644 --- a/common/culture/name_lists/00_latin.txt +++ b/common/culture/name_lists/00_latin.txt @@ -435,11 +435,11 @@ name_list_cisalpine = { } male_names = { - Adalberto Alberto Alberto-Azzo Aldobrandino Aleramo Alessandro Ambrogio Amedeo Andrea Anscario Anselmo Anterio Antonio Ardicino Ardizzone Ardoino Azzo Azzone BernabO_ Bartolomeo Benedetto Berengario Bernardo Bernardino Bertoldo Biagio Bonconte Bonifacio Bonifazio Boso Burgondo Carlo Corrado Dado Damiano Demetrio Domenico Emanuele Emrico Enrico Eriprando Everardo Federigo Filippo Folco Francesco Fresco Galeazzo Gandolfo Gausberto Gherardo Ghiberto Giacomo Giacopo Giorgio Giovanni Girolamo Giselberto Giulio Gotefredo Guglielmo Guido Lamberto Lanfranco Leo Liudfredo Lodovico Lorenzo Luchetto Luchino Luigi Manfredo Martino Massimiliano Matteo Michele Montefeltrano Moruello Napoleone NiccolO_ Oberto Obizzo Odalrico Oddone Odoardo Opizzino Ottone Ostisio Pagano Pallodino Pandolfo Paolo Pietro Pio Raimondo Rambaldo Ranieri Raniero-Ioannes Riccardo Rinaldo Riprando Roberto Rodolfo Ruggiero Stefano Ubaldo Udalrico Ugolino Salinguerra Sebastiano Sigifredo Siginolfo Simone Taddeo Teobaldo Teodoro Tommaso Ugo Ugonino Vilfredo Vincenzo Vittorio Walfredo + Adalberto Alberto Alberto-Azzo Aldobrandino Aleramo Alessandro Ambrogio Amedeo Andrea Anscario Anselmo Anterio Antonio Ardicino Ardizzone Ardoino Azzo Azzone BernabO_ Bartolomeo Benedetto Berengario Bernardo Bernardino Bertoldo Biagio Bonconte Bonifacio Bonifazio Boso Burgondo Carlo Corrado Dado Damiano Demetrio Domenico Emanuele Emrico Enrico Eriprando Everardo Federigo Filippo Folco Francesco Fresco Galeazzo Gandolfo Gausberto Gherardo Ghiberto Giacomo Giacopo Giorgio Giovanni Girolamo Giselberto Giulio Gotefredo Guglielmo Guido Lamberto Lanfranco Leo Liudfredo Lodovico Lorenzo Luchetto Luchino Luigi Lunardo Manfredo Martino Massimiliano Matteo Michele Montefeltrano Moruello Napoleone NiccolO_ Oberto Obizzo Odalrico Oddone Odoardo Opizzino Ottone Ostisio Pagano Pallodino Pandolfo Paolo Pietro Pio Raimondo Rambaldo Ranieri Raniero-Ioannes Riccardo Rinaldo Riprando Roberto Rodolfo Ruggiero Stefano Ubaldo Udalrico Ugolino Salinguerra Sebastiano Sigifredo Siginolfo Simone Taddeo Teobaldo Teodoro Tommaso Ugo Ugonino Vilfredo Vincenzo Vittorio Walfredo } female_names = { - Abelina Adalberta Adalgisa Adelaida Adelasia Adelia Adriana Agalina Agnese Agostina Albina Alda Alessandra Alfonsina Alisia Aloisia Amalia Ambrosia Anastasia Anna Antonella Antonia Argentina Augusta Aurelia Ausilia Ausonia Beatrice Benedetta Benilde Berenice Berta Bianca Bona Brunilde Camilla Candida Caracosa Carla Carola Caterina Cecilia Clara Claudia Clorinda Clotilde Constanza Cornelia Delinda Dora Edda Elena Eleonora Elisa Elisabetta Ermenegilda Eudossia Eugenia Fausta Felicia Felicita Filippa Filomena Flavia Flora Fortunata Fosca Francesca Froizza Giacinta Ginevra Giovanna Giuditta Giulia Giuliana Giuseppa Ippolita Isabella Joscella Laura Lavinia Leonide Letizia Lidia Livia Lodovica Lucia Lucinetta Lucrezia Maddalena Marcella Margherita Maria Mariana Marietta Martina Matilda Micaela Nunzia Paola Patrizia Renata Ricciarda Silvana Sofia Stefania Tiziana Tomasina Valentina Violante Virginia + Abelina Adalberta Adalgisa Adelaida Adelasia Adelia Adriana Agalina Agnese Agostina Albina Alda Alessandra Alfonsina Alisia Aloisia Amalia Ambrosia Anastasia Anna Antonella Antonia Argentina Augusta Aurelia Ausilia Ausonia Beatrice Benedetta Benilde Berenice Berta Bianca Bona Brunilde Camilla Candida Caracosa Carla Carola Caterina Cecilia Clara Claudia Clorinda Clotilde Constanza Cornelia Delinda Dora Edda Elena Eleonora Elisa Elisabetta Ermenegilda Eudossia Eugenia Fausta Felicia Felicita Filippa Filomena Flavia Flora Fortunata Fosca Francesca Froizza Giacinta Ginevra Giovanna Giuditta Giulia Giuliana Giuseppa Ippolita Isabella Joscella Laura Lavinia Leonide Letizia Lidia Livia Lodovica Lucia Lucinetta Lucrezia Maddalena Marcella Margherita Maria Mariana Marietta Martina Matilda Micaela Nunzia Paola Patrizia Renata Ricciarda Silvana Sofia Speronella Stefania Tiziana Tomasina Valentina Violante Virginia } dynasty_of_location_prefix = "dynnp_di" diff --git a/common/culture/name_lists/_name_lists.info b/common/culture/name_lists/_name_lists.info index 93941158d..d479e854d 100644 --- a/common/culture/name_lists/_name_lists.info +++ b/common/culture/name_lists/_name_lists.info @@ -19,6 +19,18 @@ name_list_key = { # Default: yes suggest_ancestor_names = yes + ### Don't generate dynasty names from titles, except for cadet houses ( bool ) + # Default: no + dynasty_name_first = no + + ### Grammar transform applied when generating dynasty names from titles ( enum: french, none ) + # Default: none + grammar_transform = none + + ### Prefix used for dynasty names of bastards, followed by the parent's first name ( loc key ) + # Default: empty (not used) + bastard_dynasty_prefix = "dynnp_fitz" + mercenary_names = { # Names and CoAs that can be used by mercenaries of this culture { name = "mercenary_company_name1" coat_of_arms = "mercenary_company_coa1" } { name = "mercenary_company_name2" coat_of_arms = "mercenary_company_coa2" } @@ -43,6 +55,7 @@ name_list_key = { { dynn_Orsini } // prefixes are optional dynn_Fournier // and so are the {} when not using a prefix } + cadet_dynasty_names = { ... } // Same format as dynasty_names. Used when generating names for cadet houses dynasty_of_location_prefix = "dynnp_von" // when generating a dynasty name based on a title, add this prefix # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. diff --git a/common/culture/traditions/00_maa_traditions.txt b/common/culture/traditions/00_maa_traditions.txt index 05f2ff3a6..f2495a755 100644 --- a/common/culture/traditions/00_maa_traditions.txt +++ b/common/culture/traditions/00_maa_traditions.txt @@ -1803,11 +1803,31 @@ tradition_polders = { #Dutch Unique Tradition, bonuses to buildings along coastl has_coastal_province = yes } } + custom_tooltip = { + text = cannot_have_polders_and_wetlanders + trigger_if = { + limit = { + OR = { + NOT = { exists = scope:replacing } + NOT = { scope:replacing = culture_tradition:tradition_wetlanders } + } + } + NOT = { culture_tradition:tradition_wetlanders = { is_in_list = traits } } + } + } + } + can_pick_for_hybridization = { + custom_tooltip = { + text = cannot_have_polders_and_wetlanders + NOT = { culture_tradition:tradition_wetlanders = { is_in_list = traits } } + } } parameters = { unlock_adaptive_militia_innovation = yes polders_coastal_villages_building_slot = yes + wetlands_hunt_success_chance = yes + wetlanders_turbary_common = yes } character_modifier = { skirmishers_damage_mult = 0.2 @@ -1815,6 +1835,14 @@ tradition_polders = { #Dutch Unique Tradition, bonuses to buildings along coastl coastal_sea_travel_danger = low_sea_danger_reduction wetlands_travel_danger = wetlands_medium_danger_reduction floodplains_travel_danger = floodplains_medium_danger_reduction + wetlands_advantage = 10 + } + county_modifier = { + wetlands_prosperity_growth_factor = 0.25 + } + province_modifier = { + wetlands_levy_size = 0.1 + wetlands_supply_limit_mult = 0.25 } cost = { diff --git a/common/culture/traditions/00_realm_traditions.txt b/common/culture/traditions/00_realm_traditions.txt index 2d47c190b..c50394430 100644 --- a/common/culture/traditions/00_realm_traditions.txt +++ b/common/culture/traditions/00_realm_traditions.txt @@ -1042,6 +1042,133 @@ tradition_female_only_inheritance = { } } +tradition_male_only_inheritance = { + category = realm + + layers = { + 0 = learning + 1 = indian + 4 = crown.dds + } + + is_shown = { + has_game_rule = inversed_gender_equality + } + + can_pick = { + custom_tooltip = { + NOT = { has_cultural_tradition = tradition_nubian_warrior_kings } + OR = { + has_cultural_pillar = heritage_senegambian + has_cultural_pillar = heritage_akan + has_cultural_pillar = heritage_west_african + has_cultural_pillar = heritage_yoruba + culture_is_or_has_ancestor_trigger = { CULTURE = culture:nubian } + culture_is_or_has_ancestor_trigger = { CULTURE = culture:daju } + scope:character.rite = { + rite_has_parameter = male_dominated_law + } + } + text = tradition_male_only_inheritance_requirements + } + scope:character = { + primary_title = { + NOR = { + has_title_law = female_only_law + has_title_law = female_preference_law + } + } + NOR = { + has_realm_law = female_only_law + has_realm_law = female_preference_law + } + } + } + + parameters = { + male_only_inheritance = yes + male_preference_inheritance = yes + } + character_modifier = { + opinion_of_male_rulers = 10 + opinion_of_female_rulers = -10 + } + + cost = { + prestige = { + add = { + value = tradition_base_cost + desc = BASE + format = "BASE_VALUE_FORMAT" + } + if = { + limit = { + has_game_rule = inversed_gender_equality + NOT = { + culture_pillar:ethos_egalitarian = { is_in_list = traits } + } + } + add = { + value = tradition_incompatible_ethos_penalty + desc = not_egalitarian_desc + } + } + if = { + limit = { + trigger_if = { + limit = { + scope:character = { + is_ai = no + } + } + NOT = { + any_ruler = { + count >= 5 + culture_filter = root + primary_title.tier >= tier_county + is_male = yes + } + } + } + trigger_else = { + always = no + } + } + add = { + value = tradition_unfulfilled_criteria_penalty + desc = five_male_rulers_desc + } + } + + if = { + limit = { + culture_tradition_reduction_trigger = { TRADITION = tradition_male_only_inheritance } + } + multiply = { + value = 0.5 + desc = inspired_by_culture_desc + } + } + + multiply = tradition_replacement_cost_if_relevant + } + } + + ai_will_do = { + value = 25 + if = { + limit = { + NOT = { + scope:character = { + is_male = yes + } + } + } + multiply = 0 + } + } +} + tradition_equal_inheritance = { category = realm @@ -3168,6 +3295,18 @@ tradition_wetlanders = { } } } + custom_tooltip = { + text = cannot_have_polders_and_wetlanders + trigger_if = { + limit = { + OR = { + NOT = { exists = scope:replacing } + NOT = { scope:replacing = culture_tradition:tradition_polders } + } + } + NOT = { culture_tradition:tradition_polders = { is_in_list = traits } } + } + } } parameters = { @@ -3597,27 +3736,59 @@ tradition_city_keepers = { has_tgp_dlc_trigger = yes } } + trigger_if = { # RtP or TGP & GDP + limit = { has_gdp_dlc_trigger = yes } + custom_tooltip = { + text = must_be_feudal_clan_republic_or_admin + scope:character = { + OR = { + government_has_mechanic = administrative + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_japan_feudal + government_has_flag = government_is_republic + } + } + } + } + trigger_else = { # RtP or TGP + custom_tooltip = { + text = must_be_feudal_clan_or_admin + scope:character = { + OR = { + government_has_mechanic = administrative + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_japan_feudal + } + } + } + } + } + trigger_else_if = { # Only GDP + limit = { has_gdp_dlc_trigger = yes } custom_tooltip = { + text = must_be_feudal_clan_or_republic scope:character = { OR = { government_has_mechanic = administrative government_has_flag = government_is_feudal government_has_flag = government_is_clan government_has_flag = government_is_japan_feudal + government_has_flag = government_is_republic } } - text = must_be_feudal_clan_or_admin } } - trigger_else = { + trigger_else = { # Base game custom_tooltip = { + text = must_be_feudal_or_clan scope:character = { OR = { government_has_flag = government_is_feudal government_has_flag = government_is_clan } } - text = must_be_feudal_or_clan } } custom_tooltip = { diff --git a/common/culture/traditions/00_societal_traditions.txt b/common/culture/traditions/00_societal_traditions.txt index e3619fa12..f8c5347ae 100644 --- a/common/culture/traditions/00_societal_traditions.txt +++ b/common/culture/traditions/00_societal_traditions.txt @@ -3007,6 +3007,20 @@ tradition_artisans = { is_shown = { has_dlc_feature = royal_court } + can_pick = { + custom_tooltip = { + text = cannot_have_artisans_and_civic_religion + trigger_if = { + limit = { + OR = { + NOT = { exists = scope:replacing } + NOT = { scope:replacing = culture_tradition:tradition_civic_religion } + } + } + NOT = { culture_tradition:tradition_civic_religion = { is_in_list = traits } } + } + } + } parameters = { improved_artisan_inspiration = yes diff --git a/common/culture/traditions/_traditions.info b/common/culture/traditions/_traditions.info index 83b29a744..46724c1ae 100644 --- a/common/culture/traditions/_traditions.info +++ b/common/culture/traditions/_traditions.info @@ -1,37 +1,32 @@ -The structure is identical to cultural traits in general, except for a few added fields: +########### +# Traditions +########### +# +# Traditions have the same structure as general cultural traits (see _cultural_traits.info ), except for a few added fields: +# * category +# * layers +# +tradition_key = { -category = string -This is used for grouping in the Add Tradition view, and in the Divergence view. + # usual cultural traits + parameters = { ... } -Layers match the CULTURE_TRADITION_LAYER_PATHS define. Index starts from 0 -layers = { - 0 = martial # Use a random icon from the specific subfolder - # 1 = blah # By leaving out the index, it'll use a random icon from the folder - 3 = letter1.dds # By specifying a file name, that specific file will get used + # category: string + # used for grouping in the Add Tradition view, and in the Divergence view. + # Doesn't have a default, will error if left undefined. + # + category = string + + # Layers for UI view. + # They match the CULTURE_TRADITION_LAYER_PATHS define. Index starts from 0 + # + layers = { + # Use a random icon from the specific subfolder + 0 = martial + + # By leaving out an index (e.g. 1 = blah), it'll use a random icon from the folder + + # By specifying a file name, that specific file will get used + 3 = letter1.dds + } } - -Example: - -#dummy_tradition = { -# parameters = { -# can_raid = yes -# } -# -# character_modifier = { -# diplomacy = 1 -# } -# -# county_modifier = { -# development_growth_factor = 0.05 -# } -# -# province_modifier = { -# monthly_income = poor_building_tax_tier_4 -# } -# -# doctrine_character_modifier = { -# doctrine = doctrine_pluralism_righteous -# same_faith_opinion = 5 -# tyranny_gain_mult = -0.25 -# } -#} diff --git a/common/customizable_localization/00_government_custom_loc.txt b/common/customizable_localization/00_government_custom_loc.txt index 3ca4389db..f827520d7 100644 --- a/common/customizable_localization/00_government_custom_loc.txt +++ b/common/customizable_localization/00_government_custom_loc.txt @@ -1304,6 +1304,12 @@ GetFollowerOrVassal = { } localization_key = associate } + text = { + trigger = { + is_landless_administrative = yes + } + localization_key = courtier + } text = { trigger = { always = no } localization_key = vassal diff --git a/common/decisions/00_diarchy_decisions.txt b/common/decisions/00_diarchy_decisions.txt index 3f6008070..4f6d96ca1 100644 --- a/common/decisions/00_diarchy_decisions.txt +++ b/common/decisions/00_diarchy_decisions.txt @@ -82,6 +82,7 @@ diarch_attempt_to_overthrow_liege = { gui = "decision_view_widget_option_list_generic" controller = decision_option_list_controller decision_to_second_step_button = "diarch_attempt_to_overthrow_liege.second_step" + show_from_start = yes # Diplomacy Coup. item = { diff --git a/common/decisions/00_lifestyle_decisions.txt b/common/decisions/00_lifestyle_decisions.txt index 8c4ee5f46..5f466dd47 100644 --- a/common/decisions/00_lifestyle_decisions.txt +++ b/common/decisions/00_lifestyle_decisions.txt @@ -48,7 +48,7 @@ embrace_celibacy_decision = { add_trait = celibate } - stress_impact = { + stress_and_fulfillment_impact = { lustful = major_stress_impact_gain lifestyle_reveler = medium_stress_impact_gain } @@ -270,12 +270,15 @@ extort_subjects_decision = { cooldown = { days = @extort_subjects_cooldown_time } is_shown = { - is_landless_adventurer = no OR = { has_perk = it_is_my_domain_perk has_character_modifier = fp3_justification_for_taxation_modifier has_character_modifier = fp3_excuses_for_extortion_modifier } + NOR = { + government_has_flag = government_is_republic + government_has_flag = government_uses_landless_lifestyle_perks # Adventurers and merchants should not have this + } } is_valid_showing_failures_only = { @@ -308,7 +311,7 @@ extort_subjects_decision = { days = { 3 5 } } - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_gain } } @@ -385,7 +388,6 @@ commission_epic_decision = { is_shown = { is_landed = yes - exists = house OR = { has_perk = writing_history_perk # AND = { @@ -396,6 +398,7 @@ commission_epic_decision = { # } # } } + exists = house is_landless_adventurer = no } @@ -570,6 +573,12 @@ local_arbitration_decision = { } multiply = 3 } + if = { + limit = { + highest_held_title_tier = tier_hegemony + } + multiply = 4 + } } } diff --git a/common/decisions/00_unity_decisions.txt b/common/decisions/00_unity_decisions.txt index 2560381e4..14d308dac 100644 --- a/common/decisions/00_unity_decisions.txt +++ b/common/decisions/00_unity_decisions.txt @@ -2164,11 +2164,19 @@ unity_merchant_promote_diligence_decision = { modifier = merchant_family_mobilization_promote_diligence_modifier years = 5 } + house = { + set_variable = { + name = unity_merchant_promote_diligence_decision_cooldown + years = 10 + } + } } - house = { - set_variable = { - name = unity_merchant_promote_diligence_decision_cooldown - years = merchant_promote_diligence_decision_cooldown_years_value + else = { + house = { + set_variable = { + name = unity_merchant_promote_diligence_decision_cooldown + years = 20 + } } } } diff --git a/common/decisions/06_ce1_decisions.txt b/common/decisions/06_ce1_decisions.txt index 30ec64172..0f365c8e3 100644 --- a/common/decisions/06_ce1_decisions.txt +++ b/common/decisions/06_ce1_decisions.txt @@ -904,7 +904,13 @@ isolate_family_decision = { limit = { capital_province ?= location } add_legitimacy_effect = { LEGITIMACY = minor_legitimacy_loss } } - add_prestige = major_prestige_loss + if = { + limit = { is_landed = yes } + add_prestige = { + value = tier_scaled_prestige_value + multiply = -1 + } + } } hidden_effect = { set_variable = isolated_due_to_disaster @@ -918,7 +924,13 @@ isolate_family_decision = { show_as_tooltip = { isolate_family_decision_effect = yes add_legitimacy_effect = { LEGITIMACY = minor_legitimacy_loss } - add_prestige = major_prestige_loss + if = { + limit = { is_landed = yes } + add_prestige = { + value = tier_scaled_prestige_value + multiply = -1 + } + } } hidden_effect = { trigger_event = epidemic_events.0100 diff --git a/common/decisions/10_ach_oath_decisions.txt b/common/decisions/10_ach_oath_decisions.txt index 56a54a049..195d5f0af 100644 --- a/common/decisions/10_ach_oath_decisions.txt +++ b/common/decisions/10_ach_oath_decisions.txt @@ -109,8 +109,8 @@ diplomacy_oath_2_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = diplomacy_oath_2 has_variable = diplomacy_oath_2_timer + has_variable = diplomacy_oath_2 } is_valid_showing_failures_only = { @@ -178,8 +178,8 @@ martial_oath_1_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = martial_oath_1 has_variable = martial_oath_1_timer + has_variable = martial_oath_1 var:oath_reconquest_title ?= { is_titular = no } } @@ -225,7 +225,7 @@ martial_oath_2_decision = { widget = { controller = create_holy_order - barony_valid = { + title_valid = { OR = { this = scope:ruler.capital_barony AND = { @@ -279,9 +279,9 @@ martial_oath_2_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = martial_oath_2 - has_variable = martial_oath_2_timer has_variable = oath_conquest_size + has_variable = martial_oath_2_timer + has_variable = martial_oath_2 } is_valid_showing_failures_only = { @@ -455,9 +455,9 @@ stewardship_oath_2_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = stewardship_oath_2 has_variable = stewardship_oath_2_timer has_variable = stewardship_oath_2_buildings + has_variable = stewardship_oath_2 } is_valid_showing_failures_only = { @@ -537,7 +537,7 @@ learning_oath_1_decision = { widget = { controller = create_holy_order - barony_valid = { + title_valid = { trigger_if = { limit = { scope:ruler = { @@ -588,8 +588,8 @@ learning_oath_1_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = learning_oath_1 has_variable = learning_oath_1_timer + has_variable = learning_oath_1 } is_valid_showing_failures_only = { @@ -789,9 +789,9 @@ purge_pretenders_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = purge_pretenders_oath - has_variable = purge_pretenders_oath_timer has_variable = purge_pretenders_target_title + has_variable = purge_pretenders_oath_timer + has_variable = purge_pretenders_oath } is_valid_showing_failures_only = { @@ -867,7 +867,7 @@ purge_pretenders_oath_decision = { if = { limit = { - government_has_flag = government_is_administrative + government_has_mechanic = administrative } show_as_tooltip = { house ?= { @@ -1144,10 +1144,10 @@ greatest_hunter_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = greatest_hunter_oath - has_variable = greatest_hunter_oath_l_counter has_variable = greatest_hunter_oath_r_counter has_variable = greatest_hunter_oath_timer + has_variable = greatest_hunter_oath_l_counter + has_variable = greatest_hunter_oath } is_valid_showing_failures_only = { @@ -1248,8 +1248,8 @@ heir_preparation_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom has_variable = heir_preparation_oath - has_variable = heir_preparation_oath_timer exists = root.house + has_variable = heir_preparation_oath_timer } is_valid_showing_failures_only = { @@ -1326,9 +1326,9 @@ install_claimants_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = install_claimants_oath - has_variable = install_claimants_oath_timer has_variable = install_claimants_oath_counter + has_variable = install_claimants_oath_timer + has_variable = install_claimants_oath } is_valid_showing_failures_only = { @@ -1430,9 +1430,9 @@ mend_the_fracture_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = mend_the_fracture_oath - has_variable = mend_the_fracture_oath_timer has_variable = mend_the_fracture_oath_target_culture + has_variable = mend_the_fracture_oath_timer + has_variable = mend_the_fracture_oath } is_valid_showing_failures_only = { @@ -1503,8 +1503,8 @@ provide_for_the_warriors_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = provide_for_the_warriors_oath has_variable = provide_for_the_warriors_oath_timer + has_variable = provide_for_the_warriors_oath } is_valid_showing_failures_only = { @@ -1690,8 +1690,8 @@ repent_oath_decision = { is_shown = { highest_held_title_tier >= tier_kingdom - has_variable = repent_oath has_variable = repent_oath_timer + has_variable = repent_oath } is_valid_showing_failures_only = { @@ -1743,8 +1743,8 @@ repent_oath_decision = { category = personality if = { limit = { - root.faith = { - trait_is_virtue = prev + root.rite = { + trait_is_virtue_rite = prev } } add_to_list = number_of_viable_personality_virtue_traits @@ -1754,8 +1754,8 @@ repent_oath_decision = { every_character_trait = { if = { limit = { - root.faith = { - trait_is_sin = prev + root.rite = { + trait_is_sin_rite = prev } } if = { @@ -1803,8 +1803,8 @@ repent_oath_decision = { } random_trait = { limit = { - root.faith = { - trait_is_virtue = prev + root.rite = { + trait_is_virtue_rite = prev } NOT = { root = { diff --git a/common/decisions/10_culture_conversion_decisions.txt b/common/decisions/10_culture_conversion_decisions.txt index 8f46fe2fa..3e201ff52 100644 --- a/common/decisions/10_culture_conversion_decisions.txt +++ b/common/decisions/10_culture_conversion_decisions.txt @@ -9,16 +9,16 @@ convert_to_local_culture_decision = { is_shown = { is_playable_character = yes exists = capital_province - primary_title.tier > tier_barony culture != capital_province.culture NAND = { is_ai = yes - OR = { - has_character_flag = converted_culture_this_lifetime - has_character_flag = converted_culture_this_lifetime_ai + has_variable = { + name = converted_culture_this_lifetime + name = converted_culture_this_lifetime_ai } } NOT = { government_has_flag = government_is_landless_minority } + primary_title.tier > tier_barony } is_valid_showing_failures_only = { @@ -179,6 +179,7 @@ convert_to_local_culture_decision = { exists = capital_province culture != capital_province.culture is_landless_adventurer = no + is_governor = no } ai_will_do = { @@ -495,9 +496,9 @@ assimilate_local_traditions_decision = { culture != capital_province.culture NAND = { is_ai = yes - OR = { - has_character_flag = converted_culture_this_lifetime - has_character_flag = converted_culture_this_lifetime_ai + has_variable = { + name = converted_culture_this_lifetime + name = converted_culture_this_lifetime_ai } } } diff --git a/common/decisions/10_nomad_culture_and_faith_decisions.txt b/common/decisions/10_nomad_culture_and_faith_decisions.txt index f8cf1b973..c275dc6dc 100644 --- a/common/decisions/10_nomad_culture_and_faith_decisions.txt +++ b/common/decisions/10_nomad_culture_and_faith_decisions.txt @@ -106,12 +106,12 @@ proselytize_to_your_people_decision = { selection_tooltip = proselytize_to_your_people_decision_tooltip is_shown = { - is_playable_character = yes government_has_flag = government_is_nomadic - exists = domicile.domicile_faith + exists = domicile.domicile_rite NOT = { - faith = domicile.domicile_faith + rite = domicile.domicile_rite } + is_playable_character = yes } is_valid_showing_failures_only = { @@ -125,7 +125,7 @@ proselytize_to_your_people_decision = { add = major_piety_value if = { # Cost increases if you're trying to revert to unreformed limit = { - domicile.domicile_faith = { + domicile.domicile_faith ?= { NOT = { has_doctrine_parameter = unreformed } } faith = { @@ -141,9 +141,9 @@ proselytize_to_your_people_decision = { effect = { root.domicile.domicile_culture = { save_scope_as = domicile_culture } domicile = { - set_domicile_faith = root.faith + set_domicile_rite = root.rite } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } every_held_title = { @@ -152,7 +152,7 @@ proselytize_to_your_people_decision = { is_landless_type_title = no culture = scope:domicile_culture } - set_county_faith = root.faith + set_county_rite = root.rite } # Spouses convert every_spouse = { @@ -172,7 +172,7 @@ proselytize_to_your_people_decision = { } every_in_list = { list = spouses_and_family_to_convert - set_character_faith = root.faith + set_character_rite = root.rite } } @@ -195,7 +195,7 @@ proselytize_to_your_people_decision = { } } -### Convert to [ROOT.Char.GetDomicile.GetFaith.GetNameNoTooltip] through your People ### +### Convert to [ROOT.Char.GetDomicile.GetRite.GetNameNoTooltip] through your People ### adopt_domicile_faith_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -205,12 +205,12 @@ adopt_domicile_faith_decision = { selection_tooltip = adopt_domicile_faith_decision_tooltip is_shown = { - is_playable_character = yes government_has_flag = government_is_nomadic - exists = domicile.domicile_faith + exists = domicile.domicile_rite NOT = { - faith = domicile.domicile_faith + rite = domicile.domicile_rite } + is_playable_character = yes } is_valid_showing_failures_only = { @@ -219,15 +219,15 @@ adopt_domicile_faith_decision = { } effect = { - set_character_faith = root.domicile.domicile_faith - stress_impact = { + set_character_rite = root.domicile.domicile_rite + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain } # Spouses convert every_spouse = { limit = { is_courtier_of = root - NOT = { faith = root.domicile.domicile_faith } + NOT = { rite = root.domicile.domicile_rite } } add_to_list = spouses_and_family_to_convert } @@ -235,22 +235,22 @@ adopt_domicile_faith_decision = { every_close_or_extended_family_member = { limit = { is_courtier_of = root - NOT = { faith = root.domicile.domicile_faith } + NOT = { rite = root.domicile.domicile_rite } } add_to_list = spouses_and_family_to_convert } every_in_list = { list = spouses_and_family_to_convert - set_character_faith = root.domicile.domicile_faith + set_character_rite = root.domicile.domicile_rite } every_held_title = { limit = { tier = tier_county is_landless_type_title = no culture = root.domicile.domicile_culture - NOT = { faith = root.domicile.domicile_faith } + NOT = { rite = root.domicile.domicile_rite } } - set_county_faith = root.domicile.domicile_faith + set_county_rite = root.domicile.domicile_rite } } @@ -283,12 +283,12 @@ adopt_domicile_culture_decision = { selection_tooltip = adopt_domicile_culture_decision_tooltip is_shown = { - is_playable_character = yes government_has_flag = government_is_nomadic exists = domicile.domicile_culture NOT = { culture = domicile.domicile_culture } + is_playable_character = yes } is_valid_showing_failures_only = { @@ -301,15 +301,16 @@ adopt_domicile_culture_decision = { } effect = { + culture = { save_temporary_scope_as = old_culture } set_culture = root.domicile.domicile_culture - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain } # Family at court convert every_close_or_extended_family_member = { limit = { is_courtier_of = root - culture = root.culture + culture = scope:old_culture } add_to_list = spouses_and_family_to_convert } @@ -347,11 +348,11 @@ blend_traditions_decision = { selection_tooltip = blend_traditions_decision_tooltip is_shown = { - is_playable_character = yes government_has_flag = government_is_nomadic exists = domicile.domicile_culture - culture != domicile.domicile_culture game_rule_can_create_hybird_culture_trigger = yes + culture != domicile.domicile_culture + is_playable_character = yes } is_valid_showing_failures_only = { @@ -495,12 +496,12 @@ enforce_traditions_decision = { selection_tooltip = enforce_traditions_decision_tooltip is_shown = { - is_playable_character = yes government_has_flag = government_is_nomadic exists = domicile.domicile_culture NOT = { culture = domicile.domicile_culture } + is_playable_character = yes } is_valid_showing_failures_only = { @@ -533,7 +534,7 @@ enforce_traditions_decision = { domicile = { set_domicile_culture = root.culture } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain } every_held_title = { diff --git a/common/decisions/10_nomad_other_decisions.txt b/common/decisions/10_nomad_other_decisions.txt index d2624a78b..493cfb102 100644 --- a/common/decisions/10_nomad_other_decisions.txt +++ b/common/decisions/10_nomad_other_decisions.txt @@ -39,6 +39,7 @@ recruit_from_nomadic_capital_decision = { gui = "decision_view_widget_option_list_generic" controller = decision_option_list_controller decision_to_second_step_button = "CHOOSE_NOMAD_COURTIER_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes item = { value = recruit_hunters_decision @@ -215,7 +216,7 @@ summon_fair_courtiers_decision = { hegemony = 48 } picture = { - reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds" + reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds" } sort_order = 100 decision_group_type = courtier @@ -246,6 +247,7 @@ summon_fair_courtiers_decision = { gui = "decision_view_widget_option_list_generic" controller = decision_option_list_controller decision_to_second_step_button = "CHOOSE_SUMMON_FAIR_COURTIERS_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes item = { value = summon_maidens_decision diff --git a/common/decisions/10_religious_decisions.txt b/common/decisions/10_religious_decisions.txt index dc6737ad8..c1940ed2c 100644 --- a/common/decisions/10_religious_decisions.txt +++ b/common/decisions/10_religious_decisions.txt @@ -1,254 +1,4 @@ -################################################## -# Islamic Decisions - -### Appoint a Righteous Caliph ### -appoint_a_righteous_caliph_decision = { # Appoint a righteous caliph - picture = { - reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" - } - decision_group_type = major - - ai_check_interval_by_tier = { - barony = 0 - county = 0 - duchy = 48 - kingdom = 24 - empire = 24 - hegemony = 24 - } - - title = { - first_valid = { - triggered_desc = { - trigger = { faith = faith:mutazila } - desc = appoint_a_righteous_caliph_decision_mutazila_variant - } - triggered_desc = { - trigger = { - culture = { has_cultural_pillar = heritage_iranian } - } - desc = appoint_a_righteous_caliph_decision_general_iranian_variant - } - desc = appoint_a_righteous_caliph_decision - } - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { faith = faith:mutazila } - desc = appoint_a_righteous_caliph_decision_mutazila_variant_desc - } - triggered_desc = { - trigger = { - culture = { has_cultural_pillar = heritage_iranian } - } - desc = appoint_a_righteous_caliph_decision_general_iranian_variant_desc - } - desc = appoint_a_righteous_caliph_decision_desc - } - } - - selection_tooltip = appoint_a_righteous_caliph_decision_tooltip - - - is_shown = { - # Standard filter checks. - is_landed_or_landless_administrative = yes - exists = dynasty - # Check some religious stuff; namely that you're the correct religion and your existing-HoF doesn't share your faith. - religion = religion:islam_religion - exists = faith.religious_head - faith != faith.religious_head.faith - # And filter out anyone who'd make this unreliable. - OR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_mechanic = administrative - } - } - - is_valid = { - # Must be independent. - top_liege = this - # Not during the Persian struggle -# trigger_if = { # Done this way to hide it for Spanish muslims and the like -# limit = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# custom_tooltip = { -# text = must_not_be_persia_involved_tt -# NOT = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# } -# } - # Should have a decent piety level. - piety_level >= high_piety_level - # Must have a decent proportion of sub-realm counties of the faith. - custom_description = { - text = appoint_a_righteous_caliph_decision.need_at_least_ten_same_faith_counties - any_sub_realm_county = { - count >= appoint_a_righteous_caliph_decision_same_faith_county_count - faith = root.faith - } - } - # Can't be the current caliphal controller - custom_description = { - text = appoint_a_righteous_caliph_decision.cant_be_caliphal_controller - NOT = { - faith.religious_head = { - any_liege_or_above = { this = root } - } - } - } - # Plus, you shouldn't be _too_ sinful, even with your piety level. - custom_description = { - text = appoint_a_righteous_caliph_decision.no_more_than_x_sinful_traits - num_sinful_traits <= 2 - } - # Now, pick any three of the valid reasons. - calc_true_if = { - amount >= 3 - - # Sayyids get a free pass. - has_trait = sayyid - # Being outside of your caliph's diplo range helps. - custom_description = { - text = appoint_a_righteous_caliph_decision.caliph_not_in_diplo_range - NOT = { in_diplomatic_range = faith.religious_head } - } - # Having a holy site. - custom_description = { - text = appoint_a_righteous_caliph_decision.control_one_holy_site - faith = { - any_holy_site = { - count >= 1 - holder.top_liege = root - } - } - } - # Having *2* holy sites. - custom_description = { - text = appoint_a_righteous_caliph_decision.control_two_holy_sites - faith = { - any_holy_site = { - count >= 2 - holder.top_liege = root - } - } - } - # Having a higher-than-minimum piety level. - piety_level >= very_high_piety_level - # And just having a caliph who doesn't live up to the root's faith's ideals. - custom_description = { - text = appoint_a_righteous_caliph_decision.caliph_has_x_or_more_traits_sinful_to_your_faith - faith.religious_head = { - num_sinful_traits = { - value >= 2 - target = root.faith - } - } - } - # Has planned to schism off for a *while*. - custom_description = { - text = appoint_a_righteous_caliph_decision.has_wishes_to_schism_caliphate_flag - has_character_flag = wishes_to_schism_caliphate_flag - } - } - } - - is_valid_showing_failures_only = { - is_available_adult = yes - # Has to be around for the ceremony. - not = { exists = involved_activity } - has_contagious_deadly_disease_trigger = no - # Has to be a valid priestly gender for the current faith. - faith = { has_allowed_gender_for_clergy = root } - } - - effect = { - save_scope_as = founder - faith.religious_head = { save_scope_as = old_caliph } - show_as_tooltip = { appoint_a_righteous_caliph_scripted_effect = yes } - # Notify co-faithists; we do this first so we can sort the feed message for how many did/didn't convert. - faith = { - every_faith_ruler = { - limit = { - highest_held_title_tier >= tier_county - this != root - } - trigger_event = religious_decision.0602 - } - } - # Now notify other players. - every_player = { - limit = { - OR = { - religion = religion:islam_religion - any_neighboring_and_across_water_top_liege_realm_owner = { this = root } - any_liege_or_above = { religion = religion:islam_religion } - } - # Exempt same-faith characters, who already got an event. - faith != root.faith - } - # Players who share the faith get - trigger_event = religious_decision.0603 - } - # Finally, we trigger the main conversion. - trigger_event = religious_decision.0601 - } - - cost = { - gold = { - value = 0 - if = { - limit = { - has_treasury = no - } - add = 500 - } - } - treasury = { - value = 0 - if = { - limit = { - has_treasury = yes - } - add = 500 - } - } - piety = 1000 - } - - ai_potential = { - # Must be independent. - top_liege = this - # Should have a decent piety level. - piety_level >= high_piety_level - OR = { - # Zealous people think they know better. - has_trait = zealous - # And cynics want that power for themselves. - has_trait = cynical - # We guide Muwalladi towards this at the first opportunity. - faith = faith:muwalladi - } - } - - ai_will_do = { - base = 100 - } -} - -################################################## +################################################# # General Religious Decisions ### Take Vow of Poverty ### @@ -256,15 +6,16 @@ take_vow_of_poverty_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious desc = take_vow_of_poverty_decision_desc selection_tooltip = take_vow_of_poverty_decision_tooltip is_shown = { - is_ruler = yes - faith = { - has_doctrine_parameter = vows_of_poverty_active + rite ?= { + rite_has_parameter = vows_of_poverty_active } NOT = { has_character_modifier = vow_of_poverty_modifier } + is_ruler = yes } effect = { @@ -272,7 +23,7 @@ take_vow_of_poverty_decision = { modifier = vow_of_poverty_modifier } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain cynical = medium_stress_impact_gain ambitious = minor_stress_impact_gain @@ -289,8 +40,8 @@ take_vow_of_poverty_decision = { } ai_potential = { - faith = { - has_doctrine_parameter = vows_of_poverty_active + rite = { + rite_has_parameter = vows_of_poverty_active } # AI considers taking if their income exceeds their expenses * 1.4 (decision will reduce it by 20%). monthly_character_income > monthly_character_expenses_plus_fourty_percent @@ -312,22 +63,23 @@ renounce_vow_of_poverty_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" } + decision_group_type = religious desc = renounce_vow_of_poverty_decision_desc selection_tooltip = renounce_vow_of_poverty_decision_tooltip is_shown = { - is_ruler = yes - faith = { - has_doctrine_parameter = vows_of_poverty_active - } has_character_modifier = vow_of_poverty_modifier + rite ?= { + rite_has_parameter = vows_of_poverty_active + } + is_ruler = yes } effect = { add_piety = medium_piety_loss remove_character_modifier = vow_of_poverty_modifier - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_impact_gain zealous = medium_stress_impact_gain humble = minor_stress_impact_gain @@ -362,12 +114,66 @@ renounce_vow_of_poverty_decision = { } } } +renounce_clerical_vows_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/pam_decision_act_of_devotion.dds" + } + sort_order = 280 + decision_group_type = religious + desc = renounce_clerical_vows_decision_desc + selection_tooltip = renounce_clerical_vows_decision_tooltip + + is_shown = { + is_clergy = yes + has_trait = devoted + # Can't reuse marriage_clergy_can_marry_trigger: it hard-blocks devoted, which is the trait this removes. + OR = { + rite = { rite_has_parameter = clergy_can_marry } + top_participant_group:the_christian_church ?= { has_participant_group_parameter = clergy_can_marry } + } + } + + is_valid = { + has_trait = devoted + } + + effect = { + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_gain + humble = medium_stress_impact_gain + cynical = medium_stress_impact_loss + } + remove_trait = devoted + } + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + has_trait = devoted + NOR = { + has_trait = chaste + has_trait = celibate + } + } + + ai_will_do = { + base = 100 + } +} ### Consolamentum: Initiate Endura ### initiate_consolamentum_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious title = { first_valid = { triggered_desc = { @@ -394,8 +200,11 @@ initiate_consolamentum_decision = { selection_tooltip = initiate_consolamentum_decision_tooltip is_shown = { - faith = { - has_doctrine_parameter = consolamentum_active + OR = { + rite = { + rite_has_parameter = consolamentum_active + } + has_personal_tenet_flag = consolamentum_active } } @@ -414,6 +223,28 @@ initiate_consolamentum_decision = { hidden_effect = { add_piety_level = 1 } + if = { + limit = { + rite ?= { rite_has_parameter = tenet_sacrificial_ceremonies_blessed_passing } + exists = primary_heir + } + primary_heir = { + add_piety = medium_piety_gain + } + } + if = { + limit = { + has_personal_tenet_flag = tenet_sacrificial_ceremonies_blessed_passing_personal + exists = primary_heir + } + primary_heir = { + add_piety = monumental_piety_gain + add_character_modifier = { + modifier = pam_blessed_passing_modifier + years = 10 + } + } + } death = { death_reason = death_ritual_suicide } show_as_tooltip = { add_piety_level = 1 @@ -428,8 +259,8 @@ initiate_consolamentum_decision = { empire = 60 hegemony = 60 } - - ai_potential = { + + ai_potential = { primary_heir ?= { dynasty = root.dynasty } @@ -456,6 +287,7 @@ seek_aid_of_the_spirits_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious desc = { desc = seek_aid_of_the_spirits_decision_desc first_valid = { @@ -469,7 +301,7 @@ seek_aid_of_the_spirits_decision = { selection_tooltip = seek_aid_of_the_spirits_decision_tooltip is_shown = { - faith = { has_doctrine_parameter = spirit_possession_active } + rite = { rite_has_parameter = spirit_possession_active } } is_valid = { @@ -490,7 +322,8 @@ seek_aid_of_the_spirits_decision = { #We be mystic? has_trait = lifestyle_mystic #Or is this simply a very religious place/place with affinity? - location = { county.faith = root.faith } + # Adventurers can be at sea, where the location has no county + location.county ?= { rite = root.rite } } } NOT = { has_trait = possessed } @@ -535,18 +368,121 @@ seek_aid_of_the_spirits_decision = { } } +### Preserve the Wilderness ### +preserve_wilderness_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = preserve_wilderness_decision_desc + selection_tooltip = preserve_wilderness_decision_tooltip + confirm_text = preserve_wilderness_decision_confirm + + sort_order = 25 + cooldown = { years = 5 } + + is_shown = { + is_landed = yes + rite = { rite_has_parameter = tenet_sanctity_of_nature_preserve_wilderness } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_imprisoned = no + } + + is_valid = { + custom_description = { + text = preserve_wilderness_decision_valid_province + any_realm_province = { + has_holding = no + is_sea_province = no + NOT = { has_province_modifier = preserved_wilderness_modifier } + } + } + } + + cost = { + piety = medium_piety_value + } + + effect = { + custom_tooltip = preserve_wilderness_decision_effect + hidden_effect = { + every_realm_province = { + limit = { + has_holding = no + is_sea_province = no + NOT = { has_province_modifier = preserved_wilderness_modifier } + } + add_province_modifier = { modifier = preserved_wilderness_modifier } + } + } + send_interface_toast = { + type = event_toast_effect_good + title = preserve_wilderness_decision_toast + desc = preserve_wilderness_decision_toast_desc + left_icon = root + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + is_landed = yes + rite = { rite_has_parameter = tenet_sanctity_of_nature_preserve_wilderness } + } + + ai_will_do = { + base = 50 + modifier = { + add = 25 + has_trait = zealous + } + modifier = { + add = -25 + has_trait = greedy + } + } +} + ### Determine Bhakti ### select_personal_deity_hinduism_decision = { picture = { reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" } + decision_group_type = religious desc = select_personal_deity_hinduism_decision_desc selection_tooltip = select_personal_deity_hinduism_decision_tooltip is_shown = { - religion = religion:hinduism_religion - faith = { - has_doctrine_parameter = select_personal_god_active + OR = { + AND = { + rite ?= { rite_has_parameter = select_personal_god_active } + # Following a valid religion & faith. + OR = { + religion ?= religion:hinduism_religion + religion ?= religion:buddhism_religion + } + } + AND = { + has_personal_tenet_flag = select_personal_god_active_personal + trigger_if = { + limit = { + religion != religion:hinduism_religion + religion != religion:buddhism_religion + } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + knows_tenet = tenet_eastern_syncretism # at least you learn something about them. + } + } } NOT = { government_has_flag = government_is_mandala } } @@ -577,6 +513,10 @@ select_personal_deity_hinduism_decision = { ai_potential = { piety >= minor_piety_value + OR = { + religion = religion:hinduism_religion + religion = religion:buddhism_religion + } NOR = { has_character_modifier = bhakti_hinduism_ganga has_character_modifier = bhakti_hinduism_saraswati @@ -592,6 +532,9 @@ select_personal_deity_hinduism_decision = { has_character_modifier = bhakti_smartism_ganesha has_character_modifier = bhakti_smartism_vishnu has_character_modifier = bhakti_smartism_shiva + has_character_modifier = bhakti_buddhism_amitabha + has_character_modifier = bhakti_buddhism_avalokiteshvara + has_character_modifier = bhakti_buddhism_bhaisajyaguru } } @@ -695,6 +638,11 @@ meditate_in_seclusion_decision = { trigger = { religion = religion:shintoism_religion } reference = "gfx/interface/illustrations/holding_types/tgp_shinto_temple.dds" } + picture = { + trigger = { religion = religion:judaism_religion } + reference = "gfx/interface/illustrations/holding_types/gdp_temple_synagogue.dds" + } + decision_group_type = religious picture = { trigger = { culture = { has_graphical_east_asia_culture_group_trigger = yes } } reference = "gfx/interface/illustrations/holding_types/tgp_chinese_pagoda.dds" @@ -711,12 +659,13 @@ meditate_in_seclusion_decision = { is_shown = { OR = { - faith = { - has_doctrine_parameter = meditation_mechanics_active - } - has_character_modifier = fp3_sufi_initiate_modifier #FP3 addition - has_character_modifier = ep3_refreshed_and_relaxed has_trait = calm + rite ?= { + rite_has_parameter = meditation_mechanics_active + } + has_personal_tenet_flag = meditation_mechanics_active + has_character_modifier = ep3_refreshed_and_relaxed + has_character_modifier = fp3_sufi_initiate_modifier #FP3 addition } } @@ -754,11 +703,140 @@ meditate_in_seclusion_decision = { } } +### Promote Naturism ### +promote_naturism_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = promote_naturism_decision_desc + selection_tooltip = promote_naturism_decision_tooltip + + is_shown = { + has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision + NOR = { + has_character_flag = natural_primitivism_promoted_naturism_active + has_character_modifier = natural_primitivism_court_naturism_modifier + } + is_landed_or_landless_administrative_or_theocratic = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + cost = { + prestige = major_prestige_value + } + + effect = { + custom_tooltip = promote_naturism_decision_court_effect_tt + custom_tooltip = promote_naturism_decision_fulfillment_effect_tt + if = { + limit = { exists = capital_county } + custom_tooltip = promote_naturism_decision_county_effect_tt + } + trigger_event = natural_primitivism.0001 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 48 + kingdom = 36 + empire = 36 + hegemony = 36 + } + + ai_potential = { + stress >= 50 + has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision + NOT = { has_character_flag = natural_primitivism_promoted_naturism_active } + natural_primitivism_supports_naturism_trigger = yes + } + + ai_will_do = { + base = 100 + modifier = { + add = 20 + stress >= 100 + } + } +} + +### Renounce Court Naturism ### +renounce_court_naturism_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = renounce_court_naturism_decision_desc + selection_tooltip = renounce_court_naturism_decision_tooltip + + is_shown = { + OR = { + has_character_flag = natural_primitivism_promoted_naturism_active + has_character_modifier = natural_primitivism_court_naturism_modifier + any_courtier = { + OR = { + has_character_modifier = natural_primitivism_court_naturism_modifier + has_character_flag = natural_primitivism_rejected_court_naturism + } + } + } + is_landed_or_landless_administrative_or_theocratic = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + cost = { + piety = major_piety_value + } + + effect = { + custom_tooltip = renounce_court_naturism_decision_court_effect_tt + if = { + limit = { exists = capital_county } + custom_tooltip = renounce_court_naturism_decision_county_effect_tt + } + custom_tooltip = renounce_court_naturism_decision_self_conscious_effect_tt + trigger_event = natural_primitivism.0002 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 48 + kingdom = 36 + empire = 36 + hegemony = 36 + } + + ai_potential = { + piety >= major_piety_value + OR = { + has_character_flag = natural_primitivism_promoted_naturism_active + has_character_modifier = natural_primitivism_court_naturism_modifier + any_courtier = { OR = { has_character_modifier = natural_primitivism_court_naturism_modifier has_character_flag = natural_primitivism_rejected_court_naturism } } + } + natural_primitivism_supports_naturism_trigger = no + } + + ai_will_do = { + base = 0 + modifier = { add = 5 NOT = { has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision } } + modifier = { factor = 0 NOT = { piety >= major_piety_value } } + } +} + ### Give Your [ROOT.Char.Custom2('RelationToMe', ROOT.Var('ancestor_to_bury').Char)|U] a Sky Burial ### give_sky_burial_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious sort_order = 75 desc = give_sky_burial_decision_desc @@ -768,16 +846,16 @@ give_sky_burial_decision = { NOT = { has_dlc_feature = legends_of_the_dead } - faith = { - has_doctrine_parameter = sky_burials_active + rite ?= { + rite_has_parameter = sky_burials_active } has_variable = ancestor_to_bury - var:ancestor_to_bury = { + var:ancestor_to_bury ?= { OR = { NOT = { exists = var:body_has_been_disposed } AND = { exists = var:body_has_been_disposed - var:body_has_been_disposed = no + var:body_has_been_disposed ?= no } } } @@ -793,18 +871,19 @@ give_sky_burial_decision = { effect = { show_as_tooltip = { add_piety = major_piety_value + change_spiritual_fulfillment = medium_spiritual_fulfillment_value if = { limit = { any_vassal = { - faith = { - has_doctrine_parameter = sky_burials_active + rite = { + rite_has_parameter = sky_burials_active } } } every_vassal = { limit = { - faith = { - has_doctrine_parameter = sky_burials_active + rite = { + rite_has_parameter = sky_burials_active } } custom = give_sky_burial_vassals @@ -852,17 +931,18 @@ raise_runestone_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious desc = raise_runestone_decision_desc selection_tooltip = raise_runestone_decision_tooltip is_shown = { - # Has access to a valid method of raising runestones. - fp1_can_raise_stele_trigger = yes # Has a suitable ancestor available to bury. has_variable = ancestor_to_bury - var:ancestor_to_bury = { dynasty = root.dynasty } # Use expanded version if we have FP1. has_fp1_dlc_trigger = no + # Has access to a valid method of raising runestones. + fp1_can_raise_stele_trigger = yes + var:ancestor_to_bury ?= { dynasty = root.dynasty } } is_valid = { @@ -898,6 +978,9 @@ raise_runestone_decision = { remove_variable = ancestor_to_bury add_piety = medium_piety_value add_legitimacy = medium_legitimacy_gain + stress_and_fulfillment_impact = { + humble = medium_stress_impact_loss + } every_vassal = { limit = { fp1_can_raise_stele_trigger = yes } custom = raise_runestone_vassals @@ -963,12 +1046,16 @@ divine_the_stars_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious desc = divine_the_stars_decision_desc selection_tooltip = divine_the_stars_decision_tooltip is_shown = { - faith = { - has_doctrine_parameter = divine_the_stars_active + OR = { + rite = { + rite_has_parameter = divine_the_stars_active + } + has_personal_tenet_flag = divine_the_stars_active } } @@ -1026,6 +1113,7 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. picture = { reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" } + decision_group_type = religious desc = revoke_false_conversion_decision.desc selection_tooltip = revoke_false_conversion_decision.tt @@ -1052,7 +1140,7 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. value = major_piety_value # Free if secret faith has sanctioned false conversions tenet if = { - limit = { secret_faith ?= { has_doctrine_parameter = sanctioned_false_conversion } } + limit = { secret_faith ?= { main_rite = { rite_has_parameter = sanctioned_false_conversion } } } multiply = 0 } } @@ -1067,8 +1155,8 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. add = major_piety_value if = { # Free if secret faith has sanctioned false conversions tenet limit = { - secret_faith ?= { - has_doctrine_parameter = sanctioned_false_conversion + secret_faith.main_rite ?= { + rite_has_parameter = sanctioned_false_conversion } } multiply = 0 @@ -1077,8 +1165,8 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. } trigger_event = false_conversion.0020 if = { - limit = { - this = { has_government = landless_adventurer_government } + limit = { + this = { has_government = landless_adventurer_government } } custom_tooltip = revoke_false_conversion_decision.desc.tt_landless } @@ -1099,11 +1187,11 @@ revoke_false_conversion_decision = { #Reveal yourself as a crypto-religionist. modifier = { # Having a tolerant liege helps. add = 25 - liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } + liege.rite = { rite_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. add = 35 - NOT = { liege.faith = { has_doctrine = doctrine_pluralism_fundamentalist } } + NOT = { liege.rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist } } secret_faith ?= { fervor >= medium_fervor_value } faith = { fervor <= medium_fervor_value } } @@ -1123,6 +1211,7 @@ encourage_confession_of_false_conversions_decision = { # Ask that crypto-religio picture = { reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" } + decision_group_type = religious desc = encourage_confession_of_false_conversions_decision.desc selection_tooltip = encourage_confession_of_false_conversions_decision.tt @@ -1134,35 +1223,35 @@ encourage_confession_of_false_conversions_decision = { # Ask that crypto-religio OR = { any_vassal = { #... Be they person... any_secret = { - type = secret_crypto_religionist is_known_by = root + type = secret_crypto_religionist } - liege.faith = { + liege.faith ?= { faith_hostility_level_comparison = { prev.secret_faith <= root.faith } } } any_sub_realm_county = { #... Or county. - has_variable = false_convert save_temporary_scope_as = current_county - root.faith = { + has_variable = false_convert + root.faith ?= { faith_hostility_level_comparison = { scope:current_county.var:false_convert <= scope:current_county.faith } } } } - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite ?= { rite_has_doctrine = doctrine_pluralism_pluralistic } } any_vassal = { #Otherwise, you can have a vassal who practices your faith in secret. any_secret = { - type = secret_crypto_religionist is_known_by = root + type = secret_crypto_religionist } - secret_faith = root.secret_faith + secret_faith ?= root.secret_faith } any_sub_realm_county = { #... Or a county! has_variable = false_convert - var:false_convert = root.secret_faith + var:false_convert ?= root.secret_faith } } } @@ -1184,7 +1273,7 @@ encourage_confession_of_false_conversions_decision = { # Ask that crypto-religio trigger_event = false_conversion.0030 if = { limit = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } custom_tooltip = encourage_confession_of_false_conversions_decision.desc.tt_pluralist custom_tooltip = encourage_confession_of_false_conversions_decision.desc.tt_paranoia @@ -1205,15 +1294,15 @@ encourage_confession_of_false_conversions_decision = { # Ask that crypto-religio modifier = { #A tolerant liege, including yourself, makes this more likely. add = 5 - liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } + liege.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } modifier = { #A tolerant top-liege, including yourself, *also* makes this more likely. add = 5 - top_liege.faith = { has_doctrine = doctrine_pluralism_pluralistic } + top_liege.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } modifier = { #Planning for the future helps too. add = 5 - primary_heir.faith = { has_doctrine = doctrine_pluralism_pluralistic } + primary_heir.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } modifier = { #If the faith isn't feeling militant, why should you? add = 10 @@ -1243,6 +1332,7 @@ abandon_crypto_faith_decision = { #Abandon your secret faith. picture = { reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds" } + decision_group_type = religious desc = abandon_crypto_faith_decision.desc selection_tooltip = abandon_crypto_faith_decision.tt @@ -1308,6 +1398,7 @@ return_rome_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" } + decision_group_type = religious desc = return_rome_decision_desc selection_tooltip = return_rome_decision_tooltip @@ -1328,6 +1419,7 @@ return_rome_decision = { any_sub_realm_county = { this = title:c_roma } + root != root.faith.religious_head NAND = { is_ai = no NOT = { @@ -1338,7 +1430,16 @@ return_rome_decision = { } } } - root != root.faith.religious_head + faith.religious_head ?= { + OR = { + NOT = { + any_liege_or_above = { + this = root + } + } + top_liege ?= this + } + } } effect = { @@ -1371,7 +1472,7 @@ return_rome_decision = { } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain ambitious = minor_stress_impact_gain } @@ -1388,8 +1489,7 @@ return_rome_decision = { ai_potential = { top_liege = this - religion = religion:catholic_religion - ai_zeal > very_high_negative_ai_value + faith = faith:catholic title:c_roma = { holder = { is_ai = yes @@ -1414,87 +1514,27 @@ return_rome_decision = { } } -### Ai Create Head Of Faith Decision ### -ai_create_head_of_faith_decision = { - picture = { - reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" - } - decision_group_type = major - - # Never shown, so it doesn't matter what we write here - title = placeholder - desc = placeholder - confirm_text = placeholder - selection_tooltip = placeholder - - is_shown = { - is_ai = yes - # When By God Alone is installed, the regular PAM decision handles AI HoF creation. - has_pam_dlc_trigger = no - is_landed = yes - faith ?= { - NOT = { exists = religious_head } - NOT = { has_doctrine_parameter = block_from_create_hof_parameter } - } - can_create_head_of_faith_title_trigger = { FAITH = root.faith } - OR = { - top_liege = this - AND = { - top_liege != this - NOT = { - any_liege_or_above = { - faith = root.faith - } - } - } - } - } - - effect = { - faith = { save_scope_as = faith } - force_create_head_of_faith_title_effect = yes - } - - ai_check_interval_by_tier = { - barony = 0 - county = 24 - duchy = 12 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_potential = { - is_adult = yes - NOR = { - faith = { - has_doctrine_parameter = no_head_of_faith - } - exists = faith.religious_head - } - } - - ai_will_do = { - base = 100 - } -} - ### Invite Religious Exiles ### invite_religious_exiles_decision = { picture = { reference = "gfx/interface/illustrations/decisions/tgp_silk_road.dds" } - sort_order = 100 - + decision_group_type = religious + sort_order = 99 + cooldown = { years = 15 } is_shown = { has_tgp_dlc_trigger = yes - NOT = { government_has_flag = government_is_herder } + is_landless_adventurer = no + is_landless_merchant = no + is_herder = no OR = { is_open_to_inviting_other_faiths_trigger = yes government_has_flag = government_is_mandala } + NOT = { government_has_flag = government_is_herder } + has_tgp_dlc_trigger = yes } is_valid = { @@ -1509,20 +1549,22 @@ invite_religious_exiles_decision = { custom_tooltip = { text = invite_exiles_same_faith_county_req any_sub_realm_county = { - faith = root.faith + rite = root.rite } } custom_tooltip = { text = invite_exiles_anyone_req any_religion_global = { any_faith = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + save_temporary_scope_as = rite_scope + "root.capital_province.squared_distance(scope:rite_scope.var:associated_county.title_province)" <= squared_distance_mega } - save_temporary_scope_as = faith_scope - "root.capital_province.squared_distance(scope:faith_scope.var:associated_county.title_province)" <= squared_distance_mega } } } @@ -1560,39 +1602,41 @@ invite_religious_exiles_decision = { text = invite_exiles_req any_religion_global = { any_faith = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed - } - - exists = var:associated_culture - exists = var:associated_county - save_temporary_scope_as = faith_scope - "root.capital_province.squared_distance(scope:faith_scope.var:associated_county.title_province)" <= squared_distance_mega - root = { - trigger_if = { - limit = { - has_variable_list = faiths_converted_in_counties - } - NOT = { - is_target_in_variable_list = { - name = faiths_converted_in_counties - target = scope:faith_scope - } - } + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed } - any_held_title = { - tier = tier_county - faith = root.faith + + exists = var:associated_culture + exists = var:associated_county + save_temporary_scope_as = rite_scope + "root.capital_province.squared_distance(scope:rite_scope.var:associated_county.title_province)" <= squared_distance_mega + root = { trigger_if = { limit = { - has_variable_list = faiths_converted_in_the_county + has_variable_list = rites_converted_in_counties } NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:faith_scope + name = rites_converted_in_counties + target = scope:rite_scope + } + } + } + any_held_title = { + tier = tier_county + rite = root.rite + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = scope:rite_scope + } } } } @@ -1617,39 +1661,42 @@ invite_religious_exiles_decision = { text = invite_exiles_req root.religion = { any_faith = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed - } - - exists = var:associated_culture - exists = var:associated_county - save_temporary_scope_as = faith_scope - "root.capital_province.squared_distance(scope:faith_scope.var:associated_county.title_province)" <= squared_distance_mega - root = { - trigger_if = { - limit = { - has_variable_list = faiths_converted_in_counties - } - NOT = { - is_target_in_variable_list = { - name = faiths_converted_in_counties - target = scope:faith_scope - } - } + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } - any_held_title = { - tier = tier_county - faith = root.faith + + exists = var:associated_culture + exists = var:associated_county + save_temporary_scope_as = rite_scope + "root.capital_province.squared_distance(scope:rite_scope.var:associated_county.title_province)" <= squared_distance_mega + root = { trigger_if = { limit = { - has_variable_list = faiths_converted_in_the_county + has_variable_list = rites_converted_in_counties } NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:faith_scope + name = rites_converted_in_counties + target = scope:rite_scope + } + } + } + any_held_title = { + tier = tier_county + rite = root.rite + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = scope:rite_scope + } } } } @@ -1673,17 +1720,71 @@ invite_religious_exiles_decision = { custom_tooltip = { text = invite_exiles_req root.faith = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + save_temporary_scope_as = rite_scope + "root.capital_province.squared_distance(scope:rite_scope.var:associated_county.title_province)" <= squared_distance_mega } - save_temporary_scope_as = faith_scope - "root.capital_province.squared_distance(scope:faith_scope.var:associated_county.title_province)" <= squared_distance_mega } any_held_title = { tier = tier_county - faith = root.faith + rite = root.rite + } + } + } + ai_chance = { + value = 100 + } + } + + item = { + value = invite_same_rite_exiles + current_description = invite_same_rite_exiles + localization = invite_same_rite_exiles + icon = "gfx/interface/icons/court_position_types/camp_priest_camp_officer.dds" + is_valid = { + custom_tooltip = { + text = invite_exiles_req + root.rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + save_temporary_scope_as = rite_scope + "root.capital_province.squared_distance(scope:rite_scope.var:associated_county.title_province)" <= squared_distance_mega + root = { + trigger_if = { + limit = { + has_variable_list = rites_converted_in_counties + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_counties + target = scope:rite_scope + } + } + } + any_held_title = { + tier = tier_county + rite = root.rite + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = scope:rite_scope + } + } + } + } + } } } } @@ -1699,44 +1800,56 @@ invite_religious_exiles_decision = { save_scope_as = from_decision hidden_effect = { if = { + limit = { scope:invite_same_rite_exiles = yes } + scope:root_scope = { + rite = { + save_scope_as = target_rite + } + save_scope_as = ruler_target + save_scope_as = seeking_same_rite_counties + trigger_event = global_religion.1000 + } + } + else_if = { limit = { scope:invite_all_exiles = yes } random_religion_global = { limit = { any_faith = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed - } - - exists = var:associated_culture - exists = var:associated_county - save_temporary_scope_as = faith_scope - var:associated_county.title_province = { save_temporary_scope_as = faith_scope_province } - "scope:root_scope.capital_province.squared_distance(scope:faith_scope_province)" <= squared_distance_mega - scope:root_scope = { - trigger_if = { - limit = { - has_variable_list = faiths_converted_in_counties - } - NOT = { - is_target_in_variable_list = { - name = faiths_converted_in_counties - target = scope:faith_scope - } - } + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed } - any_held_title = { - tier = tier_county - faith = scope:root_scope.faith + exists = var:associated_culture + exists = var:associated_county + save_temporary_scope_as = rite_scope + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { trigger_if = { limit = { - has_variable_list = faiths_converted_in_the_county + has_variable_list = rites_converted_in_counties } NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:faith_scope + name = rites_converted_in_counties + target = scope:rite_scope + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = scope:rite_scope + } } } } @@ -1746,51 +1859,94 @@ invite_religious_exiles_decision = { } random_faith = { limit = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed - } - - exists = var:associated_culture - exists = var:associated_county - save_temporary_scope_as = faith_scope - var:associated_county.title_province = { save_temporary_scope_as = faith_scope_province } - "scope:root_scope.capital_province.squared_distance(scope:faith_scope_province)" <= squared_distance_mega - scope:root_scope = { - trigger_if = { - limit = { - has_variable_list = faiths_converted_in_counties - } - NOT = { - is_target_in_variable_list = { - name = faiths_converted_in_counties - target = scope:faith_scope - } - } + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } - any_held_title = { - tier = tier_county - faith = scope:root_scope.faith + exists = var:associated_culture + exists = var:associated_county + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { trigger_if = { limit = { - has_variable_list = faiths_converted_in_the_county + has_variable_list = rites_converted_in_counties } NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:faith_scope + name = rites_converted_in_counties + target = this + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = this + } } } } } } } - save_scope_as = target_faith + ordered_faith_rite = { + limit = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + exists = var:associated_culture + exists = var:associated_county + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { + trigger_if = { + limit = { + has_variable_list = rites_converted_in_counties + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_counties + target = this + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = this + } + } + } + } + } + } + order_by = var:converted_prosperity + save_scope_as = target_rite + } scope:root_scope = { if = { limit = { - faith != scope:target_faith + faith != scope:target_rite.faith } save_scope_as = ruler_target save_scope_as = seeking_any_counties @@ -1810,51 +1966,93 @@ invite_religious_exiles_decision = { faith.religion = { random_faith = { limit = { - exists = var:converted_development - var:converted_development >= 1 - NOT = { - has_doctrine_parameter = unreformed - } - - exists = var:associated_culture - exists = var:associated_county - save_temporary_scope_as = faith_scope - var:associated_county.title_province = { save_temporary_scope_as = faith_scope_province } - "scope:root_scope.capital_province.squared_distance(scope:faith_scope_province)" <= squared_distance_mega - scope:root_scope = { - trigger_if = { - limit = { - has_variable_list = faiths_converted_in_counties - } - NOT = { - is_target_in_variable_list = { - name = faiths_converted_in_counties - target = scope:faith_scope - } - } + any_faith_rite = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed } - any_held_title = { - tier = tier_county - faith = scope:root_scope.faith + exists = var:associated_culture + exists = var:associated_county + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { trigger_if = { limit = { - has_variable_list = faiths_converted_in_the_county + has_variable_list = rites_converted_in_counties } NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:faith_scope + name = rites_converted_in_counties + target = this + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = this + } } } } } } } - save_scope_as = target_faith + ordered_faith_rite = { + limit = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + exists = var:associated_culture + exists = var:associated_county + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { + trigger_if = { + limit = { + has_variable_list = rites_converted_in_counties + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_counties + target = this + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = this + } + } + } + } + } + } + order_by = var:converted_prosperity + save_scope_as = target_rite + } scope:root_scope = { if = { limit = { - faith != scope:target_faith + faith != scope:target_rite.faith } save_scope_as = ruler_target save_scope_as = seeking_any_counties @@ -1871,12 +2069,49 @@ invite_religious_exiles_decision = { } else_if = { limit = { scope:invite_same_faith_exiles = yes } - faith = { - save_scope_as = target_faith - scope:root_scope = { - save_scope_as = ruler_target - save_scope_as = seeking_same_faith_counties - trigger_event = global_religion.1000 + scope:root_scope.faith = { + ordered_faith_rite = { + limit = { + exists = var:converted_prosperity + var:converted_prosperity >= 1 + NOT = { + rite_has_parameter = unreformed + } + exists = var:associated_culture + exists = var:associated_county + var:associated_county.title_province = { save_temporary_scope_as = rite_scope_province } + "scope:root_scope.capital_province.squared_distance(scope:rite_scope_province)" <= squared_distance_mega + scope:root_scope = { + trigger_if = { + limit = { + has_variable_list = rites_converted_in_counties + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_counties + target = this + } + } + } + any_held_title = { + tier = tier_county + faith = scope:root_scope.faith + trigger_if = { + limit = { + has_variable_list = rites_converted_in_the_county + } + NOT = { + is_target_in_variable_list = { + name = rites_converted_in_the_county + target = this + } + } + } + } + } + } + order_by = var:converted_prosperity + save_scope_as = target_rite } } } @@ -2348,153 +2583,248 @@ preserve_wilderness_decision = { ai_check_interval_by_tier = { barony = 0 - county = 60 - duchy = 60 - kingdom = 60 - empire = 60 - hegemony = 60 - } - - ai_potential = { - is_landed = yes - rite = { rite_has_parameter = tenet_sanctity_of_nature_preserve_wilderness } - } - - ai_will_do = { - base = 50 - modifier = { - add = 25 - has_trait = zealous - } - modifier = { - add = -25 - has_trait = greedy - } - } -} - -promote_naturism_decision = { - picture = { - reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" - } - decision_group_type = religious - desc = promote_naturism_decision_desc - selection_tooltip = promote_naturism_decision_tooltip - - is_shown = { - has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision - NOR = { - has_character_flag = natural_primitivism_promoted_naturism_active - has_character_modifier = natural_primitivism_court_naturism_modifier - } - is_landed_or_landless_administrative_or_theocratic = yes - } - - is_valid_showing_failures_only = { - is_available_adult = yes - } - - cost = { - prestige = major_prestige_value - } - - effect = { - custom_tooltip = promote_naturism_decision_court_effect_tt - custom_tooltip = promote_naturism_decision_fulfillment_effect_tt - if = { - limit = { exists = capital_county } - custom_tooltip = promote_naturism_decision_county_effect_tt - } - trigger_event = natural_primitivism.0001 - } - - ai_check_interval_by_tier = { - barony = 0 - county = 60 - duchy = 48 - kingdom = 36 - empire = 36 - hegemony = 36 - } - - ai_potential = { - stress >= 50 - has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision - NOT = { has_character_flag = natural_primitivism_promoted_naturism_active } - natural_primitivism_supports_naturism_trigger = yes - } - - ai_will_do = { - base = 100 - modifier = { - add = 20 - stress >= 100 - } - } -} - -renounce_court_naturism_decision = { - picture = { - reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" - } - decision_group_type = religious - desc = renounce_court_naturism_decision_desc - selection_tooltip = renounce_court_naturism_decision_tooltip - - is_shown = { - OR = { - has_character_flag = natural_primitivism_promoted_naturism_active - has_character_modifier = natural_primitivism_court_naturism_modifier - any_courtier = { - OR = { - has_character_modifier = natural_primitivism_court_naturism_modifier - has_character_flag = natural_primitivism_rejected_court_naturism - } - } - } - is_landed_or_landless_administrative_or_theocratic = yes - } - - is_valid_showing_failures_only = { - is_available_adult = yes - } - - cost = { - piety = major_piety_value - } - - effect = { - custom_tooltip = renounce_court_naturism_decision_court_effect_tt - if = { - limit = { exists = capital_county } - custom_tooltip = renounce_court_naturism_decision_county_effect_tt - } - custom_tooltip = renounce_court_naturism_decision_self_conscious_effect_tt - trigger_event = natural_primitivism.0002 - } - - ai_check_interval_by_tier = { - barony = 0 - county = 60 - duchy = 48 - kingdom = 36 - empire = 36 - hegemony = 36 - } - - ai_potential = { - natural_primitivism_supports_naturism_trigger = no + county = 0 + duchy = 0 + kingdom = 190 + empire = 190 + hegemony = 190 } ai_will_do = { base = 0 modifier = { - add = 5 - NOT = { has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision } + culture = { + has_cultural_parameter = less_cost_to_invite_religious_exiles + } + add = 40 + } + } +} + +convert_to_confucianism = { + picture = { + reference = "gfx/interface/illustrations/decisions/tgp_debate.dds" + } + decision_group_type = religious + sort_order = 101 + + is_shown = { + OR = { + culture ?= { has_cultural_parameter = can_always_convert_to_confucianism } + domicile ?= { has_domicile_parameter = merchant_enclave_unlock_confucianism } + } + faith.religion != religion:confucianism_religion + NOT = { government_has_flag = government_is_theocracy } + } + + is_valid_showing_failures_only = { + custom_description = { + text = "character_is_not_real_head" + faith.religious_head != root + } + custom_tooltip = { + text = is_antipope_blocked_tt + pam_is_antipope_trigger = no + } + } + + cooldown = { years = 15 } + + desc = convert_to_confucianism_desc + + widget = { + gui = "decision_view_widget_select_rite" + controller = select_scope_object + show_from_start = yes + decision_to_second_step_button = "SELECT" + + setup_items = { + religion:confucianism_religion = { + every_faith = { + every_faith_rite = { + add_to_list = item_list + } + } + } + } + + default_item = { + religion:confucianism_religion = { + ordered_faith = { + order_by = num_county_followers + ordered_faith_rite = { + order_by = num_rite_county_followers + limit = { can_convert_to_rite = yes } + save_scope_as = selected_item + } + } + } + } + + ai_select_item = { + religion:confucianism_religion = { + ordered_faith = { + order_by = num_county_followers + ordered_faith_rite = { + order_by = num_rite_county_followers + limit = { can_convert_to_rite = yes } + save_scope_as = selected_item + } + } + } + } + } + + cost = { + piety = { + value = 50 + } + } + + effect = { + save_scope_as = root_scope + set_character_rite = scope:selected_item + trigger_event = faith_conversion.1001 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 0 + } + + ai_will_do = { + base = 0 + modifier = { + add = 100 + static_group_filter = { + group = confucianism_drawn + match = 0.05 + } } modifier = { - factor = 0 - NOT = { piety >= major_piety_value } + add = -500 + has_character_flag = recent_convert + } + } +} + +convert_to_taoism = { + picture = { + reference = "gfx/interface/illustrations/holding_types/tgp_chinese_pagoda.dds" + } + decision_group_type = religious + sort_order = 101 + + cooldown = { years = 15 } #No cooldown needed as its not available if you take it + + is_shown = { + culture ?= { has_cultural_parameter = can_always_convert_to_taoism } + faith.religion != religion:taoism_religion + NOT = { government_has_flag = government_is_theocracy } + } + + is_valid_showing_failures_only = { + custom_description = { + text = "character_is_not_real_head" + faith.religious_head != root + } + custom_tooltip = { + text = is_antipope_blocked_tt + pam_is_antipope_trigger = no + } + } + + desc = convert_to_taoism_desc + + widget = { + gui = "decision_view_widget_select_rite" + controller = select_scope_object + show_from_start = yes + decision_to_second_step_button = "SELECT" + + setup_items = { + religion:taoism_religion = { + every_faith = { + every_faith_rite = { + add_to_list = item_list + } + } + } + } + + default_item = { + religion:taoism_religion = { + ordered_faith = { + order_by = num_county_followers + ordered_faith_rite = { + order_by = num_rite_county_followers + limit = { can_convert_to_rite = yes } + save_scope_as = selected_item + } + } + } + } + + ai_select_item = { + religion:taoism_religion = { + ordered_faith = { + order_by = num_county_followers + ordered_faith_rite = { + order_by = num_rite_county_followers + limit = { can_convert_to_rite = yes } + save_scope_as = selected_item + } + } + } + } + } + + cost = { + piety = { + value = 50 + } + } + + effect = { + save_scope_as = root_scope + set_character_rite = scope:selected_item + trigger_event = faith_conversion.1001 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 0 + } + + ai_will_do = { + base = 0 + + modifier = { + add = -20 + has_trait = zealous + } + modifier = { + add = 100 + static_group_filter = { + group = taoism_drawn + match = 0.05 + } + } + modifier = { + add = 10 + has_trait = lifestyle_mystic + } + modifier = { + add = -500 + has_character_flag = recent_convert } } } @@ -2513,6 +2843,9 @@ petition_head_of_faith_decision = { cooldown = { years = 4 } + # Cooldown is set on departure by petition_head_of_faith_activate_pending_effect + cooldown_on_execute = no + is_shown = { is_landless_adventurer = no is_landless_merchant = no @@ -2633,6 +2966,7 @@ petition_head_of_faith_decision = { ai_potential = { always = no } } +# Audience is the antipope, otherwise this follows petition_head_of_faith_decision petition_antipope_decision = { ai_check_interval = 0 sort_order = 220 @@ -2647,6 +2981,9 @@ petition_antipope_decision = { cooldown = { years = 4 } + # Cooldown is set on departure by petition_head_of_faith_activate_pending_effect + cooldown_on_execute = no + is_shown = { is_ai = no has_pam_dlc_trigger = yes @@ -2761,6 +3098,7 @@ petition_antipope_decision = { ai_potential = { always = no } } +### Seek Spiritual Mysteries ### PAM - Esotericism personal tenet seek_spiritual_mysteries_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -2806,6 +3144,7 @@ seek_spiritual_mysteries_decision = { } } +### Shed a Sin ### TGP - Righteous Rebirth personal tenet pure_land_shed_sin_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -2905,6 +3244,7 @@ pure_land_shed_sin_decision = { } } +### Seek Ancestral Guidance ### seek_ancestral_guidance_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -2957,6 +3297,7 @@ seek_ancestral_guidance_decision = { } } +### Recall a Past Life ### PAM - Reincarnation personal tenet inherit_ancestral_trait_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -3018,6 +3359,7 @@ inherit_ancestral_trait_decision = { } } +### Take Up the Conqueror's Mantle ### PAM - Pursuit of Power personal tenet pursue_conquerors_mantle_decision = { picture = { reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" @@ -3206,6 +3548,7 @@ pursue_conquerors_mantle_decision = { } } +### Redistribute the Realm's Wealth ### PAM - Communal Possessions personal tenet redistribute_realm_wealth_decision = { picture = { reference = "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 741cde23e..5d9d8a471 100644 --- a/common/decisions/30_activity_decisions.txt +++ b/common/decisions/30_activity_decisions.txt @@ -187,6 +187,9 @@ petition_liege_decision = { days = standard_petition_liege_cooldown_time } + # Cooldown is set on departure by petition_liege_start + cooldown_on_execute = no + is_shown = { liege ?= { has_royal_court = yes } is_playable_character = yes @@ -422,6 +425,7 @@ petition_liege_decision = { gui = "decision_view_widget_petition_liege" controller = decision_option_list_controller decision_to_second_step_button = "CHOOSE_PETITION_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes ### TGP item = { # House Fief diff --git a/common/decisions/30_court_decisions.txt b/common/decisions/30_court_decisions.txt index 2c23eb79d..a6cdd607d 100644 --- a/common/decisions/30_court_decisions.txt +++ b/common/decisions/30_court_decisions.txt @@ -126,6 +126,7 @@ pay_homage_decision = { gui = "decision_view_widget_pay_homage" controller = decision_option_list_controller decision_to_second_step_button = "PAY_HOMAGE_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes item = { # Submission value = pay_homage_submission diff --git a/common/decisions/40_japan_decisions.txt b/common/decisions/40_japan_decisions.txt index d69f9bf14..08bfbc801 100644 --- a/common/decisions/40_japan_decisions.txt +++ b/common/decisions/40_japan_decisions.txt @@ -86,6 +86,7 @@ pledge_loyalty_to_liege_decision = { gui = "decision_view_widget_pay_homage" controller = decision_option_list_controller decision_to_second_step_button = "pledge_loyalty_to_liege_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes item = { # Submission value = pledge_loyalty_to_liege_submission @@ -427,6 +428,9 @@ petition_ceremonial_liege_decision = { days = standard_petition_liege_cooldown_time } + # Cooldown is set on departure by petition_ceremonial_liege_departure + cooldown_on_execute = no + is_shown = { tgp_is_ceremonial_petition_shown_trigger = yes has_dlc_feature = royal_court @@ -443,6 +447,7 @@ petition_ceremonial_liege_decision = { gui = "decision_view_widget_petition_liege" controller = decision_option_list_controller decision_to_second_step_button = "CHOOSE_PETITION_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes item = { # Regent endorsement value = petition_ceremonial_liege_regent @@ -527,12 +532,14 @@ petition_ceremonial_liege_decision = { if = { limit = { location = scope:ceremonial_liege.capital_province } trigger_event = { on_action = petition_ceremonial_liege_start } + trigger_event = { on_action = petition_ceremonial_liege_departure } trigger_event = petition_liege.9020 } else = { trigger_event = { on_action = petition_ceremonial_liege_start } start_travel_plan = { destination = scope:ceremonial_liege.capital_province + on_start_on_action = petition_ceremonial_liege_departure on_travel_planner_cancel_on_action = petition_ceremonial_liege_travel_planner_exit on_arrival_event = petition_liege.9020 on_arrival_destinations = all_but_last diff --git a/common/decisions/80_major_decisions.txt b/common/decisions/80_major_decisions.txt index bdc37761e..dbfef2bb7 100644 --- a/common/decisions/80_major_decisions.txt +++ b/common/decisions/80_major_decisions.txt @@ -51,11 +51,11 @@ convert_to_feudalism_liege_converted_decision = { is_shown = { government_has_flag = government_is_tribal - liege = { + liege ?= { OR = { - government_has_flag = government_is_japan_feudal government_has_flag = government_is_feudal government_has_flag = government_is_clan + government_has_flag = government_is_japan_feudal } } } @@ -171,14 +171,14 @@ convert_clan_to_feudalism_through_liege_decision = { is_shown = { government_has_flag = government_is_clan - top_liege != this - liege = { + liege ?= { government_has_flag = government_is_feudal } + top_liege != this } is_valid = { - custom_description = { + custom_tooltip = { text = same_faith_as_liege OR = { religion = liege.religion @@ -190,7 +190,7 @@ convert_clan_to_feudalism_through_liege_decision = { } } } - custom_description = { + custom_tooltip = { text = same_culture_as_liege OR = { culture = liege.culture @@ -262,13 +262,13 @@ convert_feudalism_to_clan_through_liege_decision = { is_shown = { government_has_flag = government_is_feudal top_liege != this - liege = { + liege ?= { government_has_flag = government_is_clan } } is_valid = { - custom_description = { + custom_tooltip = { text = same_faith_as_liege OR = { religion = liege.religion @@ -280,7 +280,7 @@ convert_feudalism_to_clan_through_liege_decision = { } } } - custom_description = { + custom_tooltip = { text = same_culture_as_liege OR = { culture = liege.culture @@ -365,15 +365,13 @@ convert_whole_realm_to_feudalism_decision = { is_shown = { government_has_flag = government_is_tribal - OR = { - top_liege = this - AND = { - top_liege != this - liege = { - NOR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } + trigger_if = { + limit = { top_liege != this } + liege = { + NOR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_japan_feudal } } } @@ -445,13 +443,6 @@ convert_whole_realm_to_feudalism_decision = { } } } - trigger_if = { - limit = { - government_has_flag = government_is_wanua - is_ai = yes - } - faith = { has_doctrine = doctrine_monotheist } - } } is_valid_showing_failures_only = { @@ -482,7 +473,7 @@ convert_whole_realm_to_feudalism_decision = { } ai_potential = { - NOT = { mpo_has_gok_mongol_empire_trigger = yes } #Stop the Mongols from slowing their conquest. + NOT = { mpo_has_gok_mongol_empire_trigger = yes } #Stop the Mongols from slowing their conquest. } ai_will_do = { @@ -516,20 +507,20 @@ convert_to_tribalism_decision = { is_shown = { is_landed = yes - primary_title.tier >= tier_county - NOT = { - any_held_title = { - title_tier = county - title_province = { - NOT = { has_holding_type = tribal_holding } - } - } - } OR = { government_has_flag = government_is_feudal government_has_flag = government_is_clan government_has_flag = government_is_mandala } + NOT = { + any_held_title = { + title_tier = county + title_province ?= { + NOT = { has_holding_type = tribal_holding } + } + } + } + primary_title.tier >= tier_county } is_valid = { @@ -693,6 +684,7 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = { # by (probably) Mathilda Bjarnehed ################################################## +### Consecrate Bloodline ### declare_bloodline_holy_decision = { picture = { trigger = { @@ -844,22 +836,18 @@ strengthen_bloodline_decision = { is_shown = { is_lowborn = no - NOT = { - dynasty = { - has_dynasty_modifier = strong_blood - } - } + is_landed = yes OR = { has_trait = intellect_good - has_trait = beauty_good has_trait = physique_good + has_trait = beauty_good any_child = { - dynasty = root.dynasty OR = { has_trait = intellect_good has_trait = beauty_good has_trait = physique_good } + dynasty ?= root.dynasty } AND = { player_heir ?= { @@ -871,7 +859,11 @@ strengthen_bloodline_decision = { } } } - is_landless_adventurer = no + NOT = { + dynasty = { + has_dynasty_modifier = strong_blood + } + } } is_valid = { @@ -964,6 +956,13 @@ dynasty_of_many_crowns_decision = { } } highest_held_title_tier >= tier_kingdom + dynasty = { + any_dynasty_member = { + count >= 2 + is_independent_ruler = yes + highest_held_title_tier >= tier_kingdom + } + } } is_valid = { @@ -1056,6 +1055,7 @@ found_kingdom_decision = { hegemony = 0 } desc = found_kingdom_decision_desc + sort_order = 75 is_shown = { highest_held_title_tier = tier_duchy @@ -1063,9 +1063,49 @@ found_kingdom_decision = { has_game_rule = off_custom_kingdoms } is_landed_or_landless_administrative = yes + NOT = { government_has_flag = government_is_republic } is_confederation_member = no } + #Titles outside your realm that you can choose to add + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_ADDITIONAL_DUCHIES_DECISION_NEXT_STEP_BUTTON" + + item = { # Newly-exclaved duchies + value = newly_exclaved_duchies + is_valid = { + custom_tooltip = { + text = consecrate_kingdom_exclave_duchies_available_tt + any_sub_realm_county = { + kingdom = { + any_direct_de_jure_vassal_title = { + pam_custom_kingdom_can_claim_duchy_exclave_trigger = { NEW_KING = root } + } + } + } + } + } + current_description = newly_exclaved_duchies_decision + localization = newly_exclaved_duchies_decision + ai_chance = { + value = 100 + } + } + item = { # Only Sub-Realm Duchies + value = only_sub_realm_duchies + is_valid = { + always = yes + } + current_description = only_sub_realm_duchies_decision + localization = only_sub_realm_duchies_decision + ai_chance = { + value = 0 + } + } + } + is_valid = { prestige_level >= 3 top_liege = this @@ -1089,6 +1129,21 @@ found_kingdom_decision = { has_realm_law = nomadic_authority_3 } } + trigger_if = { + limit = { + any_held_title = { + tier = tier_duchy + is_landless_type_title = yes + } + } + custom_tooltip = { + text = any_landed_duchy_title_tt + any_held_title = { + tier = tier_duchy + is_landless_type_title = no + } + } + } } is_valid_showing_failures_only = { @@ -1118,7 +1173,7 @@ found_kingdom_decision = { multiply = 0 } } - prestige = 500 + prestige = 750 piety = { value = 200 if = { @@ -1192,11 +1247,51 @@ found_empire_decision = { hegemony = 0 } desc = found_empire_decision_desc + sort_order = 75 + + #Titles outside your realm that you can choose to add + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_ADDITIONAL_KINGDOMS_DECISION_NEXT_STEP_BUTTON" + + item = { # Newly-exclaved kingdoms + value = newly_exclaved_kingdoms + is_valid = { + custom_tooltip = { + text = consecrate_kingdom_exclave_kingdoms_available_tt + any_sub_realm_county = { + empire = { + any_direct_de_jure_vassal_title = { + pam_custom_empire_can_claim_kingdom_exclave_trigger = { NEW_EMPEROR = root } + } + } + } + } + } + current_description = newly_exclaved_kingdoms_decision + localization = newly_exclaved_kingdoms_decision + ai_chance = { + value = 100 + } + } + item = { # Only Sub-Realm Kingdoms + value = only_sub_realm_kingdoms + is_valid = { + always = yes + } + current_description = only_sub_realm_kingdoms_decision + localization = only_sub_realm_kingdoms_decision + ai_chance = { + value = 0 + } + } + } is_shown = { highest_held_title_tier = tier_kingdom OR = { - top_liege = this + top_liege ?= this any_held_title = { count >= 3 title_tier = kingdom @@ -1256,8 +1351,53 @@ found_empire_decision = { } } + trigger_if = { + limit = { + exists = struggle:iberian_struggle + # only display the condition for people from relevant faiths and cultures + struggle:iberian_struggle = { + OR = { + is_culture_involved_in_struggle = root.culture + is_faith_involved_in_struggle = root.faith + } + } + # and living nearby + any_realm_county = { + title_province = { + OR = { + geographical_region = ghw_region_north_africa + geographical_region = world_europe_west + geographical_region = world_europe_south + } + } + } + } + custom_description = { + text = found_empire_decision_not_part_of_iberian_struggle + NOT = { + any_character_struggle = { + is_struggle_type = iberian_struggle + } + } + } + } rule_title_creation_imperial_power_projection_title_creation_trigger = yes + trigger_if = { + limit = { + any_held_title = { + tier = tier_kingdom + is_landless_type_title = yes + } + } + custom_tooltip = { + text = any_landed_duchy_title_tt + any_held_title = { + tier = tier_kingdom + is_landless_type_title = no + } + } + } } is_valid_showing_failures_only = { @@ -1288,7 +1428,7 @@ found_empire_decision = { multiply = 0 } } - prestige = 2000 + prestige = 2500 piety = { value = 600 if = { @@ -1383,7 +1523,7 @@ adopt_special_succession_decision = { special_succession_jirga_trigger = yes } AND = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes highest_held_title_tier >= tier_kingdom has_realm_law_flag = partition_succession_law any_held_title = { @@ -1629,9 +1769,9 @@ accept_cannibalism_decision = { is_shown = { is_cannibal_trigger = yes NOR = { #Snacking on people should be frowned upon - faith = { has_doctrine_parameter = cannibalism_legal } - faith = { has_variable = accepted_cannibalism } - faith.religious_head = root + faith.religious_head ?= root + faith ?= { has_variable = accepted_cannibalism } + rite ?= { rite_has_parameter = cannibalism_legal } } } @@ -2116,7 +2256,7 @@ lunatic_building_decision = { is_shown = { has_trait = lunatic has_character_flag = glass_dream - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes exists = capital_province NOT = { is_target_in_global_variable_list = { @@ -2126,6 +2266,19 @@ lunatic_building_decision = { } } + widget = { + controller = create_holy_order + title_valid = { + trigger_if = { + limit = { exists = this } + title_province = { has_special_district_slot = no } + is_capital_barony = yes + holder = scope:ruler + is_leased_out = no + } + } + } + is_valid = { prestige_level >= 2 } @@ -2136,10 +2289,8 @@ lunatic_building_decision = { } effect = { + scope:barony.title_province = { save_scope_as = lunatic_province } save_scope_as = builder - root.cp:councillor_court_chaplain = { - save_scope_as = court_chaplain - } show_as_tooltip = { lunatic_building_decision_effect = yes } trigger_event = major_decisions.3001 @@ -2303,8 +2454,7 @@ repay_loan_decision = { is_valid_showing_failures_only = { is_available_quick = { - adult = yes - incapable = no + imprisoned = no } custom_tooltip = { text = repay_loan_decision_afford_any_tt @@ -2759,7 +2909,7 @@ expand_duchy_decision = { widget = { controller = create_holy_order - barony_valid = { + title_valid = { scope:ruler = { trigger_if = { limit = { @@ -2801,15 +2951,7 @@ expand_duchy_decision = { } is_shown = { - save_temporary_scope_as = root_scope_temporary highest_held_title_tier >= tier_duchy - OR = { - AND = { - is_ai = no - has_game_rule = on_custom_duchies_player - } - has_game_rule = on_custom_duchies - } is_landed_or_landless_administrative = yes NOT = { government_has_flag = government_is_republic } trigger_if = { @@ -2830,7 +2972,15 @@ expand_duchy_decision = { save_temporary_scope_as = duchy_title } } - scope:duchy_title = { + OR = { + has_game_rule = on_custom_duchies + AND = { + is_ai = no + has_game_rule = on_custom_duchies_player + } + } + save_temporary_scope_as = root_scope_temporary + scope:duchy_title ?= { any_de_jure_county = { count < expand_duchy_max_size_value } @@ -3004,7 +3154,7 @@ set_de_jure_capital_decision = { } picture = { trigger = { - government_is_japanese_trigger = yes + government_is_japanese_trigger = yes } reference = "gfx/interface/illustrations/holding_types/tgp_city_japan.dds" } @@ -3293,24 +3443,8 @@ set_de_jure_capital_decision = { limit = { scope:set_duchy_capital = yes } - } - scope:old_capital ?= { - duchy = { save_scope_as = current_duchy } - title:d_laamp_zolt = { - save_scope_as = placeholder_duchy - } - scope:current_duchy = { - every_de_jure_county = { - limit = { - NOT = { this = root.capital_county } - } - set_de_jure_liege_title = scope:placeholder_duchy - add_to_list = correction_list - } - } - every_in_list = { - list = correction_list - set_de_jure_liege_title = scope:current_duchy + root.capital_barony = { + set_as_duchy_capital = yes } } } diff --git a/common/decisions/80_major_decisions_central_asia.txt b/common/decisions/80_major_decisions_central_asia.txt index 33c67beff..67f88d8ec 100644 --- a/common/decisions/80_major_decisions_central_asia.txt +++ b/common/decisions/80_major_decisions_central_asia.txt @@ -1,540 +1,538 @@ -####DECISIONS LIST### -# -### -##Become Genghis Khan -##Enforce Bactrian Supremacy -### -# -# -########### -##Become Genghis Khan -## by Petter Vilberg -#### Become Greatest of Khans ### -#become_greatest_of_khans_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" -# } -# decision_group_type = major -# desc = become_greatest_of_khans_decision_desc -# -# ai_check_interval = 0 -# sort_order = 200 -# -# is_shown = { -# highest_held_title_tier >= tier_duchy -# is_playable_character = yes -# culture = { has_cultural_pillar = heritage_mongolic } -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:become_greatest_of_khans_decision -# } -# } -# #TRUE DLC-OWNING NOMADS HAVE THEIR OWN PATH -# has_mpo_dlc_trigger = no -# } -# -# is_valid = { -# prestige_level >= 4 -# highest_held_title_tier = tier_empire -# sub_realm_size >= greatest_of_khans_target_counties -# capital_province = { -# geographical_region = world_steppe -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_adult = yes -# is_available = yes -# top_liege = this -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = massive_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = massive_gold_value -# } -# } -# prestige = { -# value = major_prestige_value -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# #Can only happen once -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:become_greatest_of_khans_decision -# } -# -# show_as_tooltip = { -# add_trait = greatest_of_khans -# give_nickname = nick_genghis_khan -# if = { -# limit = { -# prestige_level < 5 -# } -# add_prestige_level = 1 -# } -# custom_tooltip = become_greatest_of_khans_decision_enable_mongol_invasion_cb -# custom_tooltip = become_greatest_of_khans_decision_gain_mongol_empire -# add_realm_law_skip_effects = high_partition_succession_law -# spawn_mongol_troops_condensed_effect = yes -# } -# -# save_scope_as = genghis_khan -# -# trigger_event = central_asia.0001 #I became the Genghis Khan -# add_to_temporary_list = received_notification -# -# every_vassal_or_below = { -# trigger_event = central_asia.0002 #My ruler became the Genghis Khan -# add_to_temporary_list = received_notification -# } -# -# every_ruler = { -# limit = { -# NOT = { -# is_in_list = received_notification -# } -# } -# -# trigger_event = central_asia.0003 #Someone has become Genghis Khan -# } -# } -#} -# -# -# -########### -##Enforce Bactrian Supremacy -## by Petter Vilberg -#### Establish Bactrian Supremacy ### -#establish_bactrian_supremacy_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" -# } -# decision_group_type = major -# sort_order = 120 -# desc = establish_bactrian_supremacy_decision_desc -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# highest_held_title_tier >= tier_county -# culture = { -# OR = { -# this = culture:afghan -# this = culture:tajik -# any_parent_culture_or_above = { -# OR = { -# this = culture:tajik -# this = culture:afghan -# } -# } -# } -# } -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:establish_bactrian_supremacy_decision -# } -# } -# } -# -# is_valid = { -# completely_controls_region = custom_bactria -# custom_description = { -# text = "is_king_or_emperor" -# highest_held_title_tier >= tier_kingdom -# } -# OR = { -# religion = religion:zoroastrianism_religion -# religion = religion:buddhism_religion -# faith = faith:manichean -# } -# prestige_level >= 3 -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# government_has_flag = government_is_landless_adventurer -# government_has_flag = government_is_merchant -# } -# capital_province = { -# geographical_region = custom_bactria -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_adult = yes -# is_available = yes -# top_liege = this -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = massive_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = massive_gold_value -# } -# } -# prestige = { -# value = major_prestige_value -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# #Can only happen once -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:establish_bactrian_supremacy_decision -# } -# -# save_scope_as = bactrian_emperor -# -# show_as_tooltip = { -# establish_bactrian_supremacy_effect = yes -# } -# trigger_event = central_asia.0011 -# -# add_to_list = notification_sent -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -########### -##Establish the Yamagate in Samarkand -## by James Beaumont -#### Establish the Yamagate in Samarkand ### -#establish_yamagate_in_samarkand_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = establish_yamagate_in_samarkand_decision_desc -# selection_tooltip = establish_yamagate_in_samarkand_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:manichean -# NOT = { -# has_title = title:d_manichean -# } -# NOT = { title:c_samarkand.holder = { has_title = title:d_manichean } } -# NOT = { capital_county = { this = title:c_samarkand } } -# OR = { -# NOT = { -# exists = title:d_manichean.holder -# } -# AND = { -# exists = title:d_manichean.holder -# title:d_manichean.holder = { -# NOT = { -# has_opinion_modifier = { #Not accepting it if you conquered it yourself. -# target = root -# modifier = declared_war -# } -# } -# NOT = { -# has_opinion_modifier = { #Not accepting it if you conquered it yourself. -# target = root -# modifier = revoked_title -# } -# } -# } -# } -# } -# NOT = { has_character_flag = flag_already_given_samarkand_once } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# highest_held_title_tier > 3 #Only Kings and Emperors -# custom_tooltip = { -# text = hof_exists_tt -# faith = { exists = religious_head } -# } -# custom_tooltip = { -# text = samarkand_held_by_you_or_vassal_tt -# OR = { -# title:c_samarkand.holder = { -# any_liege_or_above = { this = root } -# } -# title:c_samarkand.holder = { this = root } -# } -# } -# } -# -# effect = { -# add_piety = 1000 -# add_character_flag = flag_already_given_samarkand_once -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_samarkand = { -# change_title_holder = { -# holder = title:d_manichean.holder -# change = scope:change -# } -# } -# #If you're a higher tier than the HoF, vassalise them -# if = { -# limit = { -# tier_difference = { -# target = title:d_manichean.holder -# value >= 1 -# } -# } -# title:d_manichean.holder = { -# change_liege = { -# liege = root -# change = scope:change -# } -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# title:d_manichean.holder = { -# set_realm_capital = title:c_samarkand -# add_opinion = { -# target = prev -# modifier = established_samarkand_opinion -# } -# } -# } -# -# ai_potential = { -# faith = faith:manichean -# } -# -# ai_will_do = { #Do it always, for coherence. -# base = 100 -# modifier = { -# factor = 0 -# title:c_samarkand.holder = { -# OR = { -# is_ai = no -# any_liege_or_above = { is_ai = no } # AI will never take provinces away from a player. -# } -# } -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -########### -##End the Old Ways -## by James Beaumont -#### Break With the Old Ways ### -#break_with_the_old_ways_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = break_with_the_old_ways_decision_desc -# selection_tooltip = break_with_the_old_ways_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:kabarism -# NOT = { -# faith:kabarism = { -# has_variable = old_ways_been_broken -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# highest_held_title_tier > 3 #Only Kings and Emperors -# custom_tooltip = { -# text = hof_exists_tt -# faith = { exists = religious_head } -# } -# trigger_if = { -# limit = { -# faith = { exists = religious_head } -# } -# is_liege_or_above_of = root.faith.religious_head -# } -# } -# -# widget = { -# gui = "decision_view_widget_option_list_generic" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_REFORMATION_TYPE" -# show_from_start = yes -# -# item = { # Righteous: Chosen People -# value = bwow_no_changes -# current_description = bwow_no_changes_desc -# localization = bwow_chosen_people -# icon = "gfx/interface/icons/faith/tengri.dds" -# ai_chance = { -# value = 10 -# add = ai_sociability -# add = ai_compassion -# } -# } -# -# item = { # Pluralist -# value = bwow_chosen_people -# current_description = bwow_chosen_people_desc -# localization = bwow_no_changes -# icon = "gfx/interface/icons/icon_culture.dds" -# ai_chance = { -# value = 100 -# add = ai_zeal -# } -# } -# -# item = { # Righteous: Esotericism -# value = bwow_esotericism -# current_description = bwow_esotericism_desc -# localization = bwow_esotericism -# icon = "gfx/interface/icons/traits/mystic_base.dds" -# ai_chance = { -# value = 100 -# add = { -# subtract = ai_rationality -# } -# } -# } -# -# item = { # Fundementalist -# value = bwow_fundementalist -# current_description = bwow_fundementalist_desc -# localization = bwow_fundementalist -# icon = "gfx/interface/icons/icon_skill_martial.dds" -# ai_chance = { -# value = 0 -# add = ai_zeal -# add = ai_vengefulness -# add = { -# subtract = ai_sociability -# subtract = ai_compassion -# } -# } -# } -# } -# -# effect = { -# trigger_event = religious_decision.0501 -# show_as_tooltip = { -# if = { -# limit = { -# scope:bwow_no_changes = yes -# } -# root.faith = { remove_doctrine = unreformed_faith_doctrine } -# } -# if = { -# limit = { -# scope:bwow_chosen_people = yes -# } -# root.faith = { break_with_old_ways_become_syncretic = yes } -# } -# if = { -# limit = { -# scope:bwow_esotericism = yes -# } -# root.faith = { break_with_old_ways_become_righteous = yes } -# } -# if = { -# limit = { -# scope:bwow_fundementalist = yes -# } -# root.faith = { break_with_old_ways_become_fundamentalist = yes } -# } -# } -# hidden_effect = { -# faith:kabarism = { -# set_variable = old_ways_been_broken -# } -# } -# } -# -# ai_potential = { -# faith = faith:kabarism -# } -# -# ai_will_do = { -# base = 100 -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# \ No newline at end of file +###DECISIONS LIST### + +## +#Become Genghis Khan +#Enforce Bactrian Supremacy +## + + +########## +#Become Genghis Khan +# by Petter Vilberg +### Become Greatest of Khans ### +become_greatest_of_khans_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + decision_group_type = major + desc = become_greatest_of_khans_decision_desc + + ai_check_interval = 0 + sort_order = 200 + + is_shown = { + highest_held_title_tier >= tier_duchy + #TRUE DLC-OWNING NOMADS HAVE THEIR OWN PATH + has_mpo_dlc_trigger = no + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:become_greatest_of_khans_decision + } + } + culture ?= { has_cultural_pillar = heritage_mongolic } + is_playable_character = yes + } + + is_valid = { + prestige_level >= 4 + highest_held_title_tier >= tier_empire + sub_realm_size >= greatest_of_khans_target_counties + capital_province = { + geographical_region = world_steppe + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_adult = yes + is_available = yes + top_liege = this + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = massive_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = massive_gold_value + } + } + prestige = { + value = major_prestige_value + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + #Can only happen once + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:become_greatest_of_khans_decision + } + + show_as_tooltip = { + add_trait = greatest_of_khans + give_nickname = nick_genghis_khan + if = { + limit = { + prestige_level < 5 + } + add_prestige_level = 1 + } + custom_tooltip = become_greatest_of_khans_decision_enable_mongol_invasion_cb + custom_tooltip = become_greatest_of_khans_decision_gain_mongol_empire + add_realm_law_skip_effects = high_partition_succession_law + spawn_mongol_troops_condensed_effect = yes + } + + save_scope_as = genghis_khan + + trigger_event = central_asia.0001 #I became the Genghis Khan + add_to_temporary_list = received_notification + + every_vassal_or_below = { + trigger_event = central_asia.0002 #My ruler became the Genghis Khan + add_to_temporary_list = received_notification + } + + every_ruler = { + limit = { + NOT = { + is_in_list = received_notification + } + } + + trigger_event = central_asia.0003 #Someone has become Genghis Khan + } + } +} + + + +########## +#Enforce Bactrian Supremacy +# by Petter Vilberg +### Establish Bactrian Supremacy ### +establish_bactrian_supremacy_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" + } + decision_group_type = major + sort_order = 120 + desc = establish_bactrian_supremacy_decision_desc + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + highest_held_title_tier >= tier_county + culture ?= { + OR = { + this = culture:tajik + this = culture:afghan + any_parent_culture_or_above = { + OR = { + this = culture:tajik + this = culture:afghan + } + } + } + } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:establish_bactrian_supremacy_decision + } + } + } + + is_valid = { + completely_controls_region = custom_bactria + custom_description = { + text = "is_king_or_emperor" + highest_held_title_tier >= tier_kingdom + } + OR = { + religion = religion:zoroastrianism_religion + religion = religion:buddhism_religion + faith = faith:manichaean_faith + } + prestige_level >= 3 + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_mechanic = administrative + government_has_flag = government_is_landless_adventurer + government_has_flag = government_is_merchant + } + capital_province = { + geographical_region = custom_bactria + } + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_adult = yes + is_available = yes + top_liege = this + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = massive_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = massive_gold_value + } + } + prestige = { + value = major_prestige_value + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + #Can only happen once + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:establish_bactrian_supremacy_decision + } + + save_scope_as = bactrian_emperor + + show_as_tooltip = { + establish_bactrian_supremacy_effect = yes + } + trigger_event = central_asia.0011 + + add_to_list = notification_sent + } + + ai_will_do = { + base = 100 + } +} + +########## +#Establish the Yamagate in Samarkand +# by James Beaumont +### Establish the Yamagate in Samarkand ### +establish_yamagate_in_samarkand_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = establish_yamagate_in_samarkand_decision_desc + selection_tooltip = establish_yamagate_in_samarkand_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + faith ?= faith:manichaean_faith + is_playable_character = yes + NOT = { + has_title = title:d_manichean + } + NOT = { title:c_samarkand.holder = { has_title = title:d_manichean } } + NOT = { capital_county = { this = title:c_samarkand } } + OR = { + NOT = { + exists = title:d_manichean.holder + } + AND = { + exists = title:d_manichean.holder + title:d_manichean.holder ?= { + NOR = { + has_opinion_modifier = { #Not accepting it if you conquered it yourself. + target = root + modifier = revoked_title + } + has_opinion_modifier = { #Not accepting it if you conquered it yourself. + target = root + modifier = declared_war + } + } + } + } + } + NOT = { has_character_flag = flag_already_given_samarkand_once } + is_ruler = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + highest_held_title_tier > 3 #Only Kings and Emperors + custom_tooltip = { + text = hof_exists_tt + faith = { exists = religious_head } + } + custom_tooltip = { + text = samarkand_held_by_you_or_vassal_tt + OR = { + title:c_samarkand.holder = { + any_liege_or_above = { this = root } + } + title:c_samarkand.holder = { this = root } + } + } + } + + effect = { + add_piety = 1000 + add_character_flag = flag_already_given_samarkand_once + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_samarkand = { + change_title_holder = { + holder = title:d_manichean.holder + change = scope:change + } + } + #If you're a higher tier than the HoF, vassalise them + if = { + limit = { + tier_difference = { + target = title:d_manichean.holder + value >= 1 + } + } + title:d_manichean.holder = { + change_liege = { + liege = root + change = scope:change + } + } + } + resolve_title_and_vassal_change = scope:change + + title:d_manichean.holder = { + set_realm_capital = title:c_samarkand + add_opinion = { + target = prev + modifier = established_samarkand_opinion + } + } + } + + ai_potential = { + faith = faith:manichaean_faith + } + + ai_will_do = { #Do it always, for coherence. + base = 100 + modifier = { + factor = 0 + title:c_samarkand.holder = { + OR = { + is_ai = no + any_liege_or_above = { is_ai = no } # AI will never take provinces away from a player. + } + } + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +########## +#End the Old Ways +# by James Beaumont +### Break With the Old Ways ### +break_with_the_old_ways_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = break_with_the_old_ways_decision_desc + selection_tooltip = break_with_the_old_ways_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + faith ?= faith:kabarism + is_playable_character = yes + NOT = { + faith:kabarism = { + has_variable = old_ways_been_broken + } + } + is_ruler = yes + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + highest_held_title_tier > 3 #Only Kings and Emperors + custom_tooltip = { + text = hof_exists_tt + faith = { exists = religious_head } + } + trigger_if = { + limit = { + faith = { exists = religious_head } + } + is_liege_or_above_of = root.faith.religious_head + } + } + + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_REFORMATION_TYPE" + show_from_start = yes + + item = { # Coexistence + value = bwow_no_changes + current_description = bwow_no_changes_desc + localization = bwow_no_changes + icon = "gfx/interface/icons/faith/tengri.dds" + ai_chance = { + value = 10 + add = ai_sociability + add = ai_compassion + } + } + + item = { # Righteous: Chosen People + value = bwow_chosen_people + current_description = bwow_chosen_people_desc + localization = bwow_chosen_people + icon = "gfx/interface/icons/icon_culture.dds" + ai_chance = { + value = 100 + add = ai_zeal + } + } + + item = { # Righteous: Esotericism + value = bwow_esotericism + current_description = bwow_esotericism_desc + localization = bwow_esotericism + icon = "gfx/interface/icons/traits/mystic_base.dds" + ai_chance = { + value = 100 + add = { + subtract = ai_rationality + } + } + } + + item = { # Fundementalist + value = bwow_fundementalist + current_description = bwow_fundementalist_desc + localization = bwow_fundementalist + icon = "gfx/interface/icons/icon_skill_martial.dds" + ai_chance = { + value = 0 + add = ai_zeal + add = ai_vengefulness + add = { + subtract = ai_sociability + subtract = ai_compassion + } + } + } + } + + effect = { + trigger_event = religious_decision.0501 + show_as_tooltip = { + if = { + limit = { + scope:bwow_no_changes = yes + } + root.faith = { remove_doctrine = unreformed_faith_doctrine } + } + if = { + limit = { + scope:bwow_chosen_people = yes + } + root.faith = { break_with_old_ways_become_chosen_people = yes } + } + if = { + limit = { + scope:bwow_esotericism = yes + } + root.faith = { break_with_old_ways_become_righteous = yes } + } + if = { + limit = { + scope:bwow_fundementalist = yes + } + root.faith = { break_with_old_ways_become_fundamentalist = yes } + } + } + hidden_effect = { + faith:kabarism = { + set_variable = old_ways_been_broken + } + } + } + + ai_potential = { + faith = faith:kabarism + } + + ai_will_do = { + base = 100 + modifier = { + factor = 0 + has_trait = cynical + } + } +} diff --git a/common/decisions/80_major_decisions_east_asia.txt b/common/decisions/80_major_decisions_east_asia.txt index bd3592a82..eb855d94c 100644 --- a/common/decisions/80_major_decisions_east_asia.txt +++ b/common/decisions/80_major_decisions_east_asia.txt @@ -1,681 +1,684 @@ -####DECISIONS LIST### -# -### -## Found a Viet Empire -## Found the Majapahit Empire -## Found a Ryukyu Empire -## Found the Siam Kingdom -## Found the Establish the Darussalam -## Found the Found the Empire of Brunei -### -# -################################################### -## Found a Viet Empire -## by Ali Kara -################################################### -#### Found the Viet Empire ### -#form_dai_viet_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" -# } -# desc = form_dai_viet_empire_decision_desc -# selection_tooltip = form_dai_viet_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier <= tier_kingdom -# capital_province = { geographical_region = custom_viet_lands } -# culture = { has_cultural_pillar = heritage_viet } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_dai_viet_empire -# } -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_kingdom -# has_title = title:k_viet -# has_title = title:k_champa -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# prestige = 2000 -# } -# -# effect = { -# if = { -# limit = { -# is_ai = no -# } -# add_achievement_global_variable_effect = { -# VARIABLE = achieved_ep4_14_daits_how_you_do_it_achievement -# VALUE = yes -# } -# } -# show_as_tooltip = { -# form_dai_viet_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.4000 -# } -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = { -# id = major_decisions.4001 -# } -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_dai_viet_empire -# } -# set_global_variable = { -# name = flag_created_dai_viet_empire -# value = scope:founder -# } -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -################################################### -## Found the Majapahit Empire -## by Ali Kara -################################################### -#### Found the Majapahit Empire ### -#form_majapahit_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/event_scenes/tgp_asia_throne_room.dds" -# } -# desc = form_majapahit_empire_decision_desc -# selection_tooltip = form_majapahit_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier <= tier_kingdom -# culture = { -# OR = { -# this = culture:javanese -# any_parent_culture_or_above = { this = culture:javanese } -# } -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_majapahit_empire -# } -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_kingdom -# faith.religion = { -# is_in_family = rf_eastern -# } -# custom_tooltip = { -# text = form_majapahit_empire_decision_requirement_1_tt -# title:d_SUM_palembang = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# is_tributary_of = ROOT -# this = ROOT -# } -# } -# } -# } -# custom_tooltip = { -# text = form_majapahit_empire_decision_requirement_2_tt -# title:d_JAV_taruma = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# is_tributary_of = ROOT -# this = ROOT -# } -# } -# } -# } -# custom_tooltip = { -# text = form_majapahit_empire_decision_requirement_3_tt -# title:d_JAV_mataram = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# is_tributary_of = ROOT -# this = ROOT -# } -# } -# } -# } -# custom_tooltip = { -# text = form_majapahit_empire_decision_requirement_4_tt -# title:c_JAV_madura = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# is_tributary_of = ROOT -# this = ROOT -# } -# } -# } -# } -# has_title = title:k_yavakadvipa -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# prestige = 1500 -# piety = 1000 -# } -# -# effect = { -# show_as_tooltip = { -# form_majapahit_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.5000 -# } -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = { -# id = major_decisions.5001 -# } -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_majapahit_empire -# } -# set_global_variable = { -# name = flag_created_majapahit_empire -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -################################################### -## Found a Ryukyu Empire -## by Ali Kara -################################################### -#### Found a Ryukyuan Empire ### -#form_ryukyu_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/holding_types/tgp_shinto_temple.dds" -# } -# desc = form_ryukyu_empire_decision_desc -# selection_tooltip = form_ryukyu_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier <= tier_kingdom -# capital_province = { geographical_region = custom_ryukyu } -# culture = culture:ryukyuan # Only Ryukyuan, to prevent other people hybridizing with Ryukyuan for the meme -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_ryukyu_empire -# } -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_kingdom -# has_title = title:c_amami -# has_title = title:c_ucinaa -# has_title = title:d_ruucuu -# has_title = title:k_ruucuu -# sub_realm_size >= 60 -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# prestige = 2300 -# piety = 250 -# gold = 750 -# } -# -# effect = { -# show_as_tooltip = { -# form_ryukyu_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.6000 -# } -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = { -# id = major_decisions.6003 -# } -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_ryukyu_empire -# } -# set_global_variable = { -# name = flag_created_ryukyu_empire -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -################################################### -## Found the Siam Kingdom -## by Ali Kara -################################################### -#### Found the Siam Kingdom ### -#form_siam_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/activity_splash_screens/tour_arrival_asia_welcome.dds" -# } -# desc = form_siam_kingdom_decision_desc -# selection_tooltip = form_siam_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier <= tier_duchy -# capital_province = { -# OR = { -# geographical_region = world_asia_thailand -# geographical_region = world_asia_malaysia -# } -# } -# culture = { has_cultural_pillar = heritage_tai } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_siam_kingdom -# } -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_duchy -# has_title = title:d_sukhothai -# culture = { has_cultural_pillar = heritage_tai } # just to inform the player -# custom_tooltip = { -# text = form_siam_kingdom_decision_requirement_1_tt -# title:d_lop_buri = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# this = ROOT -# } -# } -# } -# } -# completely_controls = title:d_sukhothai -# completely_controls = title:d_lop_buri -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# gold = 350 -# prestige = 1000 -# piety = 100 -# } -# -# effect = { -# show_as_tooltip = { -# form_siam_kingdom_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.7000 -# } -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = { -# id = major_decisions.7001 -# } -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_siam_kingdom -# } -# set_global_variable = { -# name = flag_created_siam_kingdom -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -################################################### -## Found the Brunei Kingdom -## by Ali Kara -################################################### -#form_brunei_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/activity_splash_screens/tour_arrival_mena_welcome.dds" -# } -# desc = form_brunei_kingdom_decision_desc -# selection_tooltip = form_brunei_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier <= tier_duchy -# religion = religion:islam_religion -# culture = { has_cultural_pillar = heritage_austronesian } -# capital_province = { geographical_region = custom_brunei_region } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_brunei_kingdom -# } -# } -# } -# -# is_valid = { -# top_liege = this -# is_independent_ruler = yes -# highest_held_title_tier = tier_duchy -# has_title = title:d_BOR_barune -# custom_tooltip = { -# text = form_brunei_kingdom_decision_requirement_1_tt -# title:d_BOR_santubong = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# this = ROOT -# } -# } -# } -# } -# custom_tooltip = { -# text = form_brunei_kingdom_decision_requirement_2_tt -# title:c_BOR_berau = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# this = ROOT -# } -# } -# } -# } -# completely_controls = title:d_BOR_barune -# completely_controls = title:d_BOR_santubong -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# gold = 350 -# piety = 1000 -# } -# -# effect = { -# show_as_tooltip = { -# form_brunei_kingdom_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.8000 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_brunei_kingdom -# } -# set_global_variable = { -# name = flag_created_brunei_kingdom -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -################################################### -## Found the Brunei Empire -## by Ali Kara -################################################### -#form_brunei_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# desc = form_brunei_empire_decision_desc -# selection_tooltip = form_brunei_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_playable_character = yes -# highest_held_title_tier = tier_kingdom -# religion = religion:islam_religion -# culture = { has_cultural_pillar = heritage_austronesian } -# has_title = title:k_brunei -# capital_province = { geographical_region = custom_brunei_region } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_brunei_empire -# } -# } -# } -# -# is_valid = { -# top_liege = this -# is_independent_ruler = yes -# highest_held_title_tier = tier_kingdom -# capital_county.faith = root.faith -# has_title = title:k_brunei -# custom_tooltip = { -# text = form_brunei_empire_decision_requirement_1_tt -# title:d_PHI_sandao = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# this = ROOT -# } -# } -# } -# } -# custom_tooltip = { -# text = form_brunei_empire_decision_requirement_2_tt -# title:c_PHI_sulu = { -# this = { is_title_created = yes } -# holder = { -# OR = { -# is_vassal_or_below_of = ROOT -# this = ROOT -# } -# } -# } -# } -# completely_controls = title:k_brunei -# completely_controls = title:k_tanjungnagara -# completely_controls = title:d_PHI_sandao -# completely_controls = title:c_PHI_sulu -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# gold = 600 -# piety = 2250 -# } -# -# effect = { -# show_as_tooltip = { -# form_brunei_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = major_decisions.9000 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_brunei_empire -# } -# set_global_variable = { -# name = flag_created_brunei_empire -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file +###DECISIONS LIST### + +## +# Found a Viet Empire +# Found the Majapahit Empire +# Found a Ryukyu Empire +# Found the Siam Kingdom +# Found the Establish the Darussalam +# Found the Found the Empire of Brunei +## + +################################################## +# Found a Viet Empire +# by Ali Kara +################################################## +### Found the Viet Empire ### +form_dai_viet_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" + } + desc = form_dai_viet_empire_decision_desc + selection_tooltip = form_dai_viet_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + culture ?= { has_cultural_pillar = heritage_viet } + is_playable_character = yes + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_dai_viet_empire + } + } + capital_province ?= { geographical_region = custom_viet_lands } + highest_held_title_tier <= tier_kingdom + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_kingdom + has_title = title:k_viet + has_title = title:k_champa + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + prestige = 2000 + } + + effect = { + if = { + limit = { + is_ai = no + } + add_achievement_global_variable_effect = { + VARIABLE = achieved_ep4_14_daits_how_you_do_it_achievement + VALUE = yes + } + } + show_as_tooltip = { + form_dai_viet_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.4000 + } + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = { + id = major_decisions.4001 + } + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_dai_viet_empire + } + set_global_variable = { + name = flag_created_dai_viet_empire + value = scope:founder + } + } + } + + ai_will_do = { + base = 100 + } +} + +################################################## +# Found the Majapahit Empire +# by Ali Kara +################################################## +### Found the Majapahit Empire ### +form_majapahit_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/event_scenes/tgp_asia_throne_room.dds" + } + desc = form_majapahit_empire_decision_desc + selection_tooltip = form_majapahit_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_playable_character = yes + culture ?= { + OR = { + this = culture:javanese + any_parent_culture_or_above = { this = culture:javanese } + } + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_majapahit_empire + } + } + highest_held_title_tier <= tier_kingdom + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_kingdom + faith.religion = { + is_in_family = rf_eastern + } + custom_tooltip = { + text = form_majapahit_empire_decision_requirement_1_tt + title:d_SUM_palembang = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + is_tributary_of = ROOT + this = ROOT + } + } + } + } + custom_tooltip = { + text = form_majapahit_empire_decision_requirement_2_tt + title:d_JAV_taruma = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + is_tributary_of = ROOT + this = ROOT + } + } + } + } + custom_tooltip = { + text = form_majapahit_empire_decision_requirement_3_tt + title:d_JAV_mataram = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + is_tributary_of = ROOT + this = ROOT + } + } + } + } + custom_tooltip = { + text = form_majapahit_empire_decision_requirement_4_tt + title:c_JAV_madura = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + is_tributary_of = ROOT + this = ROOT + } + } + } + } + has_title = title:k_yavakadvipa + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + prestige = 1500 + piety = 1000 + } + + effect = { + show_as_tooltip = { + form_majapahit_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.5000 + } + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = { + id = major_decisions.5001 + } + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_majapahit_empire + } + set_global_variable = { + name = flag_created_majapahit_empire + value = scope:founder + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +################################################## +# Found a Ryukyu Empire +# by Ali Kara +################################################## +### Found a Ryukyuan Empire ### +form_ryukyu_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/holding_types/tgp_shinto_temple.dds" + } + desc = form_ryukyu_empire_decision_desc + selection_tooltip = form_ryukyu_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + culture ?= culture:ryukyuan # Only Ryukyuan, to prevent other people hybridizing with Ryukyuan for the meme + is_playable_character = yes + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_ryukyu_empire + } + } + capital_province ?= { geographical_region = custom_ryukyu } + highest_held_title_tier <= tier_kingdom + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_kingdom + has_title = title:c_amami + has_title = title:c_ucinaa + has_title = title:d_ruucuu + has_title = title:k_ruucuu + sub_realm_size >= 60 + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + prestige = 2300 + piety = 250 + gold = 750 + } + + effect = { + show_as_tooltip = { + form_ryukyu_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.6000 + } + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = { + id = major_decisions.6003 + } + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_ryukyu_empire + } + set_global_variable = { + name = flag_created_ryukyu_empire + value = scope:founder + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +################################################## +# Found the Siam Kingdom +# by Ali Kara +################################################## +### Found the Siam Kingdom ### +form_siam_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/activity_splash_screens/tour_arrival_asia_welcome.dds" + } + desc = form_siam_kingdom_decision_desc + selection_tooltip = form_siam_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + is_shown = { + culture ?= { has_cultural_pillar = heritage_tai } + is_playable_character = yes + capital_province ?= { + OR = { + geographical_region = world_asia_thailand + geographical_region = world_asia_malaysia + } + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_siam_kingdom + } + } + highest_held_title_tier <= tier_duchy + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_duchy + has_title = title:d_sukhothai + culture = { has_cultural_pillar = heritage_tai } # just to inform the player + custom_tooltip = { + text = form_siam_kingdom_decision_requirement_1_tt + title:d_lop_buri = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + this = ROOT + } + } + } + } + completely_controls = title:d_sukhothai + completely_controls = title:d_lop_buri + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + gold = 350 + prestige = 1000 + piety = 100 + } + + effect = { + show_as_tooltip = { + form_siam_kingdom_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.7000 + } + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = { + id = major_decisions.7001 + } + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_siam_kingdom + } + set_global_variable = { + name = flag_created_siam_kingdom + value = scope:founder + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +################################################## +# Found the Brunei Kingdom +# by Ali Kara +################################################## +form_brunei_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/activity_splash_screens/tour_arrival_mena_welcome.dds" + } + desc = form_brunei_kingdom_decision_desc + selection_tooltip = form_brunei_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + is_shown = { + culture ?= { has_cultural_pillar = heritage_austronesian } + religion ?= religion:islam_religion + highest_held_title_tier <= tier_duchy + capital_province ?= { geographical_region = custom_brunei_region } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_brunei_kingdom + } + } + is_playable_character = yes + } + + is_valid = { + top_liege = this + is_independent_ruler = yes + highest_held_title_tier = tier_duchy + has_title = title:d_BOR_barune + custom_tooltip = { + text = form_brunei_kingdom_decision_requirement_1_tt + title:d_BOR_santubong = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + this = ROOT + } + } + } + } + custom_tooltip = { + text = form_brunei_kingdom_decision_requirement_2_tt + title:c_BOR_berau = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + this = ROOT + } + } + } + } + completely_controls = title:d_BOR_barune + completely_controls = title:d_BOR_santubong + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + gold = 350 + piety = 1000 + } + + effect = { + show_as_tooltip = { + form_brunei_kingdom_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.8000 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_brunei_kingdom + } + set_global_variable = { + name = flag_created_brunei_kingdom + value = scope:founder + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +################################################## +# Found the Brunei Empire +# by Ali Kara +################################################## +form_brunei_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + desc = form_brunei_empire_decision_desc + selection_tooltip = form_brunei_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + highest_held_title_tier = tier_kingdom + has_title = title:k_brunei + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_brunei_empire + } + } + capital_province ?= { geographical_region = custom_brunei_region } + culture ?= { has_cultural_pillar = heritage_austronesian } + religion ?= religion:islam_religion + is_playable_character = yes + } + + is_valid = { + top_liege = this + is_independent_ruler = yes + highest_held_title_tier = tier_kingdom + capital_county.faith = root.faith + has_title = title:k_brunei + custom_tooltip = { + text = form_brunei_empire_decision_requirement_1_tt + title:d_PHI_sandao = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + this = ROOT + } + } + } + } + custom_tooltip = { + text = form_brunei_empire_decision_requirement_2_tt + title:c_PHI_sulu = { + this = { is_title_created = yes } + holder = { + OR = { + is_vassal_or_below_of = ROOT + this = ROOT + } + } + } + } + completely_controls = title:k_brunei + completely_controls = title:k_tanjungnagara + completely_controls = title:d_PHI_sandao + completely_controls = title:c_PHI_sulu + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + gold = 600 + piety = 2250 + } + + effect = { + show_as_tooltip = { + form_brunei_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = major_decisions.9000 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_brunei_empire + } + set_global_variable = { + name = flag_created_brunei_empire + value = scope:founder + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/80_major_decisions_middle_east.txt b/common/decisions/80_major_decisions_middle_east.txt index 514d9be91..9eef90cf9 100644 --- a/common/decisions/80_major_decisions_middle_east.txt +++ b/common/decisions/80_major_decisions_middle_east.txt @@ -1,994 +1,1007 @@ -##Create the Empire of Outremer -#### Form the Outremer Empire ### -#create_outremer_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" -# } -# desc = create_outremer_empire_decision_desc -# selection_tooltip = create_outremer_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# #Visible to dukes and kings. -# highest_held_title_tier >= tier_duchy -# highest_held_title_tier <= tier_kingdom -# #Must be in the right area. -# capital_province = { geographical_region = world_middle_east } -# #Must have the correct religion, and support from the rest of Catholicism. -# religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. -# faith = faith:roman_catholic -# #Exempt Byzantine group: this is such a huge slap in the face to _anyone_ even vaguely in the Greek sphere. -# culture = { -# NOR = { -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_caucasian -# has_cultural_pillar = heritage_syriac -# } -# } -# #Can only do it once. -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_outremer_empire -# } -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# highest_held_title_tier = tier_kingdom -# completely_controls_region = custom_outremer -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = create_outremer_empire_decision_effect_tooltip -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# form_outremer_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0001 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_outremer_empire -# } -# set_global_variable = { -# name = flag_created_outremer_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the Ash'ari Caliphate ### -#restore_sunni_caliphate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = restore_sunni_caliphate_decision_desc -# selection_tooltip = restore_sunni_caliphate_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:ashari -# NOT = { faith = { exists = religious_head } } -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# is_valid = { -# completely_controls = title:c_mecca -# completely_controls = title:d_medina -# completely_controls = title:d_shammar -# completely_controls = title:d_palestine -# completely_controls = title:d_oultrejourdain -# piety_level >= high_piety_level -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_sunni_caliphate_decision_effect_tooltip -# show_as_tooltip = { -# restore_sunni_caliphate_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0003 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { #Always do it when possible. -# base = 100 -# ai_value_modifier = { -# ai_zeal = 1.0 -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -#### Embrace Outremer Culture ### -#embrace_outremer_culture_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = embrace_outremer_culture_decision_desc -# selection_tooltip = embrace_outremer_culture_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 120 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith:catholic.religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. -# NOR = { -# root.culture = culture:roman -# root.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# OR = { -# faith.religion = faith:catholic.religion -# top_liege ?= { faith.religion = faith:catholic.religion } -# } -# capital_province = { -# OR = { -# geographical_region = world_middle_east -# geographical_region = world_persian_empire -# geographical_region = world_africa -# } -# } -# top_liege = { -# culture != root.culture -# } -# top_liege.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# -# is_valid = { -# custom_description = { -# text = "under_outremer_liege" -# top_liege = { -# culture != root.culture -# } -# liege.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# custom_description = { -# text = "under_outremer_empire" -# liege = { -# has_title = title:e_outremer -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# } -# -# effect = { -# custom_tooltip = embrace_outremer_culture_decision_courtiers_embrace_outremer -# custom_tooltip = embrace_outremer_culture_decision_provinces_embrace_outremer -# custom_tooltip = embrace_outremer_culture_decision_capital_embraces_outremer -# top_liege.culture = { save_scope_as = outremer_equivalent } -# hidden_effect = { -# every_courtier = { -# limit = { -# has_culture = root.culture -# dynasty = root.dynasty -# } -# set_culture = scope:outremer_equivalent -# } -# every_held_title = { -# title_tier = county -# limit = { -# culture = { has_same_culture_heritage = root.culture } -# title_province = { -# OR = { -# geographical_region = world_middle_east -# geographical_region = world_persian_empire -# geographical_region = world_africa -# } -# } -# } -# set_county_culture = scope:outremer_equivalent -# } -# capital_county = { set_county_culture = scope:outremer_equivalent } -# } -# set_culture = scope:outremer_equivalent -# add_character_flag = converted_culture_this_lifetime -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# modifier = { #Small Crusader States will balkanize with their own culture or go native. -# factor = 0 -# top_liege = { -# highest_held_title_tier < 4 #Less than King -# } -# } -# } -#} -# -#### Restore Israel ### -#create_israel_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# desc = create_israel_kingdom_decision_desc -# selection_tooltip = create_israel_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith.religion = faith:kabbalist.religion -# NOT = { -# exists = title:k_israel.holder -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:create_israel_kingdom -# } -# } -# } -# -# is_valid = { -# prestige_level >= high_prestige_level -# piety_level >= high_piety_level -# completely_controls = title:d_palestine -# completely_controls = title:d_urdunn -# completely_controls = title:d_oultrejourdain -# custom_description = { -# text = "jerusalem_is_same_faith" -# title:c_jerusalem.faith = root.faith -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# custom_tooltip = create_israel_kingdom_decision_effect_tooltip -# show_as_tooltip = { -# create_israel_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0005 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:create_israel_kingdom -# } -# set_global_variable = { -# name = create_israel_kingdom -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the [ROOT.Char.GetFaith.GetAdjectiveNoTooltip] High Priesthood ### -#jewish_restore_high_priesthood_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = jewish_restore_high_priesthood_decision_desc -# selection_tooltip = jewish_restore_high_priesthood_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# NOT = { #Can be redone if somehow the High Priest title is destroyed -# exists = faith.religious_head -# } -# religion = religion:judaism_religion -# faith = { -# NOT = { -# has_doctrine_parameter = no_head_of_faith -# } -# } -# } -# -# is_valid = { -# piety_level >= 2 -# custom_description = { -# text = "restore_high_priesthood_holy_sites" -# faith = { -# any_holy_site = { -# OR = { -# county.holder = root -# county.holder.top_liege = { this = root } -# } -# count >= 3 -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = restore_high_priesthood_decision_effect_tooltip -# trigger_event = { -# id = middle_east_decisions.0007 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the [ROOT.Char.GetFaith.AltPriestTermPlural] ### -#zoroastrian_restore_high_priesthood_decision = { #Updated for FP3 by Ola -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# desc = zoroastrian_restore_high_priesthood_decision_desc -# selection_tooltip = zoroastrian_restore_high_priesthood_decision_tooltip -# decision_group_type = major -# sort_order = 80 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# NOR = { #Can be redone if somehow the High Priest title is destroyed -# exists = faith.religious_head -# faith = { has_doctrine = doctrine_no_head } #Only if Faith is meant to have one. -# faith = { has_doctrine = doctrine_temporal_head } #Cannot be done if you have taken the "Destroy the Magi" decision -# } -# OR = { -# faith = faith:zoroastrian_faith -# faith = faith:zurvanism -# faith = faith:gayomarthianism -# faith = faith:khurmazta -# faith = faith:mazdakism -# faith = faith:khurramism -# faith = faith:urartuism -# faith = faith:afridunism -# } -# } -# -# is_valid = { -# piety_level >= high_piety_level -# custom_description = { -# text = "restore_high_priesthood_holy_sites" -# faith = { -# any_holy_site = { -# OR = { -# county.holder = root -# county.holder.top_liege = { this = root } -# } -# count >= 3 -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = restore_high_priesthood_decision_effect_tooltip -# trigger_event = { -# id = middle_east_decisions.0009 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Become the Saoshyant ### -#become_saoshyant_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# desc = become_saoshyant_decision_desc -# selection_tooltip = become_saoshyant_decision_tooltip -# decision_group_type = major -# sort_order = 100 #FP3 change; this is an extremely epic decision, we want it to appear on top. -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith.religion = faith:zoroastrian_faith.religion -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_became_saoshyant -# } -# } -# } -# -# is_valid = { -# piety_level >= very_high_piety_level -# has_title = title:e_persia -# completely_controls = title:e_persia -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# -# effect = { -# show_as_tooltip = { -# become_saoshyant_decision_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0011 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_became_saoshyant -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Refound the long-lapsed & short-lived Armenian Empire - by Ewan Cowhig Croft -#### Revive Greater Armenia ### -#create_armenian_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = create_armenian_empire_decision_desc -# selection_tooltip = create_armenian_empire_decision_tooltip -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval = 0 -# -# is_shown = { -# is_playable_character = yes # Normally this will always be true, but if in DEBUG mode and playing as an unlanded ruler this will cause error spam without it. -# highest_held_title_tier <= tier_kingdom -# capital_province = { geographical_region = custom_greater_armenia } -# OR = { -# faith = faith:armenian_apostolic -# culture = culture:armenian -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_armenian_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# government_has_flag = government_is_landless_adventurer -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_kingdom -# completely_controls_region = custom_greater_armenia -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# prestige = 2000 -# piety = 1000 -# } -# -# effect = { -# show_as_tooltip = { -# revive_armenian_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = middle_east_decisions.1001 -# } -# #Notify other players. -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = middle_east_decisions.1002 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_armenian_empire -# } -# set_global_variable = { -# name = flag_created_armenian_empire -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = no -# } -# -# ai_will_do = { -# base = 0 -# } -#} -# -################################## -## Found the Empire of Beth Nahrain -## by Anna Johansson -################################## -# -#### Found Empire Of Beth Nahrain Decision ### -#found_empire_of_beth_nahrain_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" -# } -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# title = middle_east_major_decisions.1020.t -# desc = middle_east_major_decisions.1020.desc -# selection_tooltip = middle_east_major_decisions.1020.tt -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# capital_province = { geographical_region = world_middle_east } -# -# any_sub_realm_county = { -# OR = { -# faith = faith:nestorian -# culture = { -# OR = { -# this = culture:assyrian -# any_parent_culture_or_above = { -# this = culture:assyrian -# } -# } -# } -# } -# } -# -# #Can only do it once -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:created_beth_nahrain -# } -# } -# } -# is_valid = { -# is_independent_ruler = yes -# highest_held_title_tier = tier_kingdom -# custom_tooltip = { -# text = completely_controls_jazira_mesopotamia_tt -# completely_controls = title:k_jazira -# completely_controls = title:k_mesopotamia -# } -# custom_tooltip = { -# text = has_titles_jazira_mesopotamia_tt -# has_title = title:k_jazira -# has_title = title:k_mesopotamia -# } -# OR = { -# custom_tooltip = { -# text = has_title_and_completely_control_jerusalem_tt -# has_title = title:k_jerusalem -# completely_controls = title:k_jerusalem -# } -# custom_tooltip = { -# text = has_title_and_completely_control_syria_tt -# has_title = title:k_syria -# completely_controls = title:k_syria -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:created_beth_nahrain -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_jazira = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# title:k_mesopotamia = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# -# if = { -# limit = { -# has_title = title:k_jerusalem -# completely_controls = title:k_jerusalem -# } -# title:k_jerusalem = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# } -# -# if = { -# limit = { -# has_title = title:k_syria -# completely_controls = title:k_syria -# } -# title:k_syria = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# } -# } -# #Create Beth Nahrain -# title:e_beth_nahrain = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# dynasty = { -# add_dynasty_prestige = 1000 -# } -# -# give_nickname = nick_beth_nahrain -# -# show_as_tooltip = { -# promote_culture_beth_nahrain_scripted_effect = yes -# custom_tooltip = middle_east_major_decisions.1020.promote_culture.tt -# } -# save_scope_as = suppress_tooltips -# -# trigger_event = { id = middle_east_decisions.1020 } -# -# show_as_tooltip = { -# random_list = { -# 100 = { -# show_chance = no -# desc = middle_east_major_decisions.1020.learning.desc -# learning_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# desc = middle_east_major_decisions.1020.martial.desc -# martial_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# trigger = { -# faith = faith:nestorian -# } -# desc = middle_east_major_decisions.1020.nestorian.desc -# nestorian_faith_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# trigger = { -# NOT = { -# faith = faith:nestorian -# } -# } -# desc = middle_east_major_decisions.1020.no_faith.desc -# no_faith_beth_nahrain_scripted_effect = yes -# } -# } -# } -# } -# -# cost = { -# prestige = 1000 -# } -# -# ai_potential = { -# culture = { has_cultural_pillar = heritage_syriac } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -############### -## Dar al-Islam -############### -# -#### Establish the Dar al-Islam ### -#create_dar_al_islam_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# decision_group_type = major -# -# desc = create_dar_al_islam_decision_desc -# selection_tooltip = create_dar_al_islam_decision_tt -# -# sort_order = 1000 # Should be at the very top -# -# is_shown = { -# # Only for Islamic head of faiths -# faith = { religious_head ?= root } -# faith.religion = religion:islam_religion -# # And only if it hasn't been created yet -# NOT = { has_global_variable = created_dar_al_islam } -# } -# is_valid = { -# # Only for Islamic head of faiths -# faith = { religious_head ?= root } -# # The basics -# is_independent_ruler = yes -# any_held_title = { -# count >= 2 -# tier = tier_empire -# } -# faith = { has_doctrine = doctrine_temporal_head } -# # Must be very pious -# prestige_level >= 4 -# piety_level >= 5 -# # Controls Islamic core lands -# completely_controls_region = world_middle_east_arabia -# completely_controls_region = world_middle_east_jerusalem -# completely_controls_region = world_persia -# completely_controls_region = world_africa_north -# # Also controls at minimum % of all islamic counties -# save_temporary_scope_as = root_scope -# custom_tooltip = { -# text = realm_controls_enough_islamic_counties_desc -# any_realm_county = { -# faith.religion = religion:islam_religion -# count >= islam_required_county_number_value -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# show_as_tooltip = { -# create_dar_al_islam_effect = yes -# } -# save_scope_as = dar_al_islam_ruler -# # Save all existing islamic head of faiths and their titles -# religion:islam_religion = { -# every_faith = { -# if = { -# limit = { -# exists = religious_head -# faith_hostility_level = { -# target = root.faith -# value < faith_hostile_level -# } -# } -# religious_head_title = { -# add_to_list = old_hof_title -# } -# religious_head = { -# add_to_list = former_islamic_hofs -# } -# } -# } -# } -# # Trigger follow-up events -# trigger_event = middle_east_decisions.1100 -# every_player = { -# limit = { -# this != root -# NOT = { is_in_list = former_islamic_hofs } -# } -# trigger_event = middle_east_decisions.1101 -# } -# every_in_list = { -# list = former_islamic_hofs -# limit = { this != root } -# trigger_event = { id = middle_east_decisions.1102 days = 1 } -# } -# } -# -# cost = { -# piety = 1500 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 24 -# hegemony = 0 -# } -# -# ai_potential = { -# faith = { religious_head ?= root } -# faith.religion = religion:islam_religion -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file +#Create the Empire of Outremer +### Form the Outremer Empire ### +create_outremer_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = create_outremer_empire_decision_desc + selection_tooltip = create_outremer_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + #Visible to dukes and kings. + highest_held_title_tier >= tier_duchy + faith ?= faith:catholic + is_playable_character = yes + highest_held_title_tier <= tier_kingdom + #Must be in the right area. + capital_province ?= { geographical_region = world_middle_east } + #Exempt Byzantine group: this is such a huge slap in the face to _anyone_ even vaguely in the Greek sphere. + culture ?= { + NOR = { + has_cultural_pillar = heritage_byzantine + has_cultural_pillar = heritage_caucasian + has_cultural_pillar = heritage_syriac + } + } + #Can only do it once. + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_outremer_empire + } + } + is_ruler = yes + #Must have the correct religion, and support from the rest of Catholicism. + religion ?= { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. + } + + is_valid = { + prestige_level >= max_prestige_level + highest_held_title_tier = tier_kingdom + completely_controls_region = custom_outremer + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = create_outremer_empire_decision_effect_tooltip + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + form_outremer_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0001 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_outremer_empire + } + set_global_variable = { + name = flag_created_outremer_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the Ash'ari Caliphate ### +restore_sunni_caliphate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = restore_sunni_caliphate_decision_desc + selection_tooltip = restore_sunni_caliphate_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + highest_held_title_tier > 3 #Only Kings and Emperors + faith ?= faith:sunni + NOT = { faith = { exists = religious_head } } + is_playable_character = yes + is_ruler = yes + } + + is_valid = { + completely_controls = title:c_mecca + completely_controls = title:d_medina + completely_controls = title:d_shammar + completely_controls = title:d_palestine + completely_controls = title:d_oultrejourdain + piety_level >= high_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_sunni_caliphate_decision_effect_tooltip + show_as_tooltip = { + restore_sunni_caliphate_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0003 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { #Always do it when possible. + base = 100 + ai_value_modifier = { + ai_zeal = 1.0 + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +### Embrace Outremer Culture ### +embrace_outremer_culture_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = embrace_outremer_culture_decision_desc + selection_tooltip = embrace_outremer_culture_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_playable_character = yes + top_liege.culture ?= { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + NOR = { + root.culture ?= { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + root.culture ?= culture:roman + } + OR = { + faith.religion ?= faith:catholic.religion + top_liege ?= { faith.religion = faith:catholic.religion } + } + capital_province ?= { + OR = { + geographical_region = world_middle_east + geographical_region = world_africa + geographical_region = world_persian_empire + } + } + top_liege ?= { + culture != root.culture + } + is_ruler = yes + faith:catholic.religion ?= { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. + } + + is_valid = { + custom_description = { + text = "under_outremer_liege" + top_liege = { + culture != root.culture + } + liege.culture = { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + } + custom_description = { + text = "under_outremer_empire" + liege = { + has_title = title:e_outremer + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + } + + effect = { + custom_tooltip = embrace_outremer_culture_decision_courtiers_embrace_outremer + custom_tooltip = embrace_outremer_culture_decision_provinces_embrace_outremer + custom_tooltip = embrace_outremer_culture_decision_capital_embraces_outremer + top_liege.culture = { save_scope_as = outremer_equivalent } + hidden_effect = { + every_courtier = { + limit = { + has_culture = root.culture + dynasty = root.dynasty + } + set_culture = scope:outremer_equivalent + } + every_held_title = { + title_tier = county + limit = { + culture = { has_same_culture_heritage = root.culture } + title_province = { + OR = { + geographical_region = world_middle_east + geographical_region = world_persian_empire + geographical_region = world_africa + } + } + } + set_county_culture = scope:outremer_equivalent + } + capital_county = { set_county_culture = scope:outremer_equivalent } + } + set_culture = scope:outremer_equivalent + add_character_flag = converted_culture_this_lifetime + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + modifier = { #Small Crusader States will balkanize with their own culture or go native. + factor = 0 + top_liege = { + highest_held_title_tier < 4 #Less than King + } + } + } +} + +### Restore Israel ### +create_israel_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + desc = create_israel_kingdom_decision_desc + selection_tooltip = create_israel_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_landed = yes + is_ruler = yes + is_playable_character = yes + NOR = { + exists = title:k_israel.holder + #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:create_israel_kingdom + } + } + faith.religion ?= faith:rabbinic_faith.religion + } + + is_valid = { + prestige_level >= high_prestige_level + piety_level >= high_piety_level + completely_controls = title:d_palestine + completely_controls = title:d_urdunn + completely_controls = title:d_oultrejourdain + custom_description = { + text = "jerusalem_is_same_faith" + title:c_jerusalem.faith = root.faith + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + custom_tooltip = create_israel_kingdom_decision_effect_tooltip + show_as_tooltip = { + create_israel_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0005 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:create_israel_kingdom + } + set_global_variable = { + name = create_israel_kingdom + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the [ROOT.Char.GetFaith.GetAdjectiveNoTooltip] High Priesthood ### +jewish_restore_high_priesthood_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = jewish_restore_high_priesthood_decision_desc + selection_tooltip = jewish_restore_high_priesthood_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + religion ?= religion:judaism_religion + is_playable_character = yes + NOT = { #Can be redone if somehow the High Priest title is destroyed + exists = faith.religious_head + } + faith ?= { + NOT = { + has_doctrine_parameter = no_head_of_faith + } + } + is_ruler = yes + } + + is_valid = { + piety_level >= 2 + custom_description = { + text = "restore_high_priesthood_holy_sites" + faith = { + any_holy_site_barony = { + OR = { + county.holder = root + county.holder.top_liege = { this = root } + } + count >= 3 + } + } + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_high_priesthood_decision_effect_tooltip + trigger_event = { + id = middle_east_decisions.0007 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the [ROOT.Char.GetFaith.AltPriestTermPlural] ### +zoroastrian_restore_high_priesthood_decision = { #Updated for FP3 by Ola + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + desc = zoroastrian_restore_high_priesthood_decision_desc + selection_tooltip = zoroastrian_restore_high_priesthood_decision_tooltip + decision_group_type = major + sort_order = 80 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + NOR = { #Can be redone if somehow the High Priest title is destroyed + exists = faith.religious_head + faith ?= { has_doctrine = doctrine_no_head } #Only if Faith is meant to have one. + faith ?= { has_doctrine = doctrine_temporal_head } #Cannot be done if you have taken the "Destroy the Magi" decision + } + is_playable_character = yes + OR = { + faith ?= faith:zurvanism + faith ?= faith:mazdayasna + faith ?= faith:afridunism + faith ?= faith:urartuism + faith ?= faith:khurramism + faith ?= faith:mazdakism + faith ?= faith:khurmazta + faith ?= faith:gayomarthianism + } + is_ruler = yes + } + + is_valid = { + piety_level >= high_piety_level + custom_description = { + text = "restore_high_priesthood_holy_sites" + faith = { + any_holy_site_barony = { + OR = { + county.holder = root + county.holder.top_liege = { this = root } + } + count >= 3 + } + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_high_priesthood_decision_effect_tooltip + trigger_event = { + id = middle_east_decisions.0009 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Become the Saoshyant ### +become_saoshyant_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + desc = become_saoshyant_decision_desc + selection_tooltip = become_saoshyant_decision_tooltip + decision_group_type = major + sort_order = 100 #FP3 change; this is an extremely epic decision, we want it to appear on top. + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + faith.religion ?= faith:mazdayasna.religion + is_playable_character = yes + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_became_saoshyant + } + } + is_ruler = yes + } + + is_valid = { + piety_level >= very_high_piety_level + has_title = title:e_persia + completely_controls = title:e_persia + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + + effect = { + show_as_tooltip = { + become_saoshyant_decision_effect = yes + } + trigger_event = { + id = middle_east_decisions.0011 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_became_saoshyant + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Refound the long-lapsed & short-lived Armenian Empire - by Ewan Cowhig Croft +### Revive Greater Armenia ### +create_armenian_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = create_armenian_empire_decision_desc + selection_tooltip = create_armenian_empire_decision_tooltip + decision_group_type = major + sort_order = 120 + + ai_check_interval = 0 + + is_shown = { + is_playable_character = yes # Normally this will always be true, but if in DEBUG mode and playing as an unlanded ruler this will cause error spam without it. + OR = { + government_has_flag = government_is_republic + government_has_mechanic = administrative + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_landless_adventurer + } + OR = { + culture ?= culture:armenian + rite ?= rite:armenian_rite + } + capital_province ?= { geographical_region = custom_greater_armenia } + highest_held_title_tier <= tier_kingdom + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_armenian_empire + } + } + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_republic + government_has_flag = government_is_clan + government_has_mechanic = administrative + government_has_flag = government_is_landless_adventurer + government_has_flag = government_is_merchant + } + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_kingdom + completely_controls_region = custom_greater_armenia + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + prestige = 2000 + piety = 1000 + } + + effect = { + show_as_tooltip = { + revive_armenian_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = middle_east_decisions.1001 + } + #Notify other players. + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = middle_east_decisions.1002 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_armenian_empire + } + set_global_variable = { + name = flag_created_armenian_empire + value = scope:founder + } + } + } + + ai_potential = { + always = no + } + + ai_will_do = { + base = 0 + } +} + +################################# +# Found the Empire of Beth Nahrain +# by Anna Johansson +################################# + +### Found Empire Of Beth Nahrain Decision ### +found_empire_of_beth_nahrain_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + title = middle_east_major_decisions.1020.t + desc = middle_east_major_decisions.1020.desc + selection_tooltip = middle_east_major_decisions.1020.tt + + is_shown = { + is_ruler = yes + is_playable_character = yes + capital_province ?= { geographical_region = world_middle_east } + + culture = { has_cultural_pillar = heritage_syriac } + + any_sub_realm_county = { + OR = { + faith ?= faith:nestorian + culture ?= { + OR = { + any_parent_culture_or_above = { + this = culture:assyrian + } + this = culture:assyrian + } + } + } + } + + capital_province ?= { geographical_region = world_middle_east } + + #Can only do it once + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:created_beth_nahrain + } + } + } + is_valid = { + is_independent_ruler = yes + highest_held_title_tier = tier_kingdom + custom_tooltip = { + text = completely_controls_jazira_mesopotamia_tt + completely_controls = title:k_jazira + completely_controls = title:k_mesopotamia + } + custom_tooltip = { + text = has_titles_jazira_mesopotamia_tt + has_title = title:k_jazira + has_title = title:k_mesopotamia + } + OR = { + custom_tooltip = { + text = has_title_and_completely_control_jerusalem_tt + has_title = title:k_jerusalem + completely_controls = title:k_jerusalem + } + custom_tooltip = { + text = has_title_and_completely_control_syria_tt + has_title = title:k_syria + completely_controls = title:k_syria + } + } + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:created_beth_nahrain + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_jazira = { + set_de_jure_liege_title = title:e_beth_nahrain + } + title:k_mesopotamia = { + set_de_jure_liege_title = title:e_beth_nahrain + } + + if = { + limit = { + has_title = title:k_jerusalem + completely_controls = title:k_jerusalem + } + title:k_jerusalem = { + set_de_jure_liege_title = title:e_beth_nahrain + } + } + + if = { + limit = { + has_title = title:k_syria + completely_controls = title:k_syria + } + title:k_syria = { + set_de_jure_liege_title = title:e_beth_nahrain + } + } + } + #Create Beth Nahrain + title:e_beth_nahrain = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + dynasty = { + add_dynasty_prestige = 1000 + } + + give_nickname = nick_beth_nahrain + + show_as_tooltip = { + promote_culture_beth_nahrain_scripted_effect = yes + custom_tooltip = middle_east_major_decisions.1020.promote_culture.tt + } + save_scope_as = suppress_tooltips + + trigger_event = { id = middle_east_decisions.1020 } + + show_as_tooltip = { + random_list = { + 100 = { + show_chance = no + desc = middle_east_major_decisions.1020.learning.desc + learning_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + desc = middle_east_major_decisions.1020.martial.desc + martial_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + trigger = { + faith = faith:nestorian + } + desc = middle_east_major_decisions.1020.nestorian.desc + nestorian_faith_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + trigger = { + NOT = { + faith = faith:nestorian + } + } + desc = middle_east_major_decisions.1020.no_faith.desc + no_faith_beth_nahrain_scripted_effect = yes + } + } + } + } + + cost = { + prestige = 1000 + } + + ai_potential = { + culture = { has_cultural_pillar = heritage_syriac } + } + + ai_will_do = { + base = 100 + } +} + +############## +# Dar al-Islam +############## + +### Establish the Dar al-Islam ### +create_dar_al_islam_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + decision_group_type = major + + desc = create_dar_al_islam_decision_desc + selection_tooltip = create_dar_al_islam_decision_tt + + sort_order = 1000 # Should be at the very top + + is_shown = { + is_landed = yes + faith.religion ?= religion:islam_religion + # And only if it hasn't been created yet + NOT = { has_global_variable = created_dar_al_islam } + } + is_valid = { + # Only for Islamic head of faiths + faith = { religious_head ?= root } + # The basics + is_independent_ruler = yes + any_held_title = { + count >= 2 + tier >= tier_empire + } + faith = { has_doctrine = doctrine_temporal_head } + # Must be very pious + prestige_level >= 4 + piety_level >= 5 + # Controls Islamic core lands + completely_controls_region = world_middle_east_arabia + completely_controls_region = world_middle_east_jerusalem + completely_controls_region = world_persia + completely_controls_region = world_africa_north + # Also controls at minimum % of all islamic counties + save_temporary_scope_as = root_scope + custom_tooltip = { + text = realm_controls_enough_islamic_counties_desc + any_realm_county = { + faith.religion = religion:islam_religion + count >= islam_required_county_number_value + } + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + show_as_tooltip = { + create_dar_al_islam_effect = yes + } + save_scope_as = dar_al_islam_ruler + # Save all existing islamic head of faiths and their titles + religion:islam_religion = { + every_faith = { + if = { + limit = { + exists = religious_head + faith_hostility_level = { + target = root.faith + value < faith_hostile_level + } + } + religious_head_title = { + add_to_list = old_hof_title + } + religious_head = { + add_to_list = former_islamic_hofs + } + } + } + } + # Trigger follow-up events + trigger_event = middle_east_decisions.1100 + every_player = { + limit = { + this != root + NOT = { is_in_list = former_islamic_hofs } + } + trigger_event = middle_east_decisions.1101 + } + every_in_list = { + list = former_islamic_hofs + limit = { this != root } + trigger_event = { id = middle_east_decisions.1102 days = 1 } + } + } + + cost = { + piety = 1500 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 24 + hegemony = 0 + } + + ai_potential = { + faith = { religious_head ?= root } + faith.religion = religion:islam_religion + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/80_major_decisions_middle_europe.txt b/common/decisions/80_major_decisions_middle_europe.txt index ee0208337..34aad239f 100644 --- a/common/decisions/80_major_decisions_middle_europe.txt +++ b/common/decisions/80_major_decisions_middle_europe.txt @@ -1,1666 +1,1646 @@ -##Creating Switzerland "Kingdom" -#### Form the Swiss Confederation ### -#form_switzerland_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# desc = form_switzerland_kingdom_decision_desc -# selection_tooltip = form_switzerland_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# top_liege != this -# NOT = { exists = title:k_switzerland.holder } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_switzerland_kingdom -# } -# } -# #No kings or emperors. -# highest_held_title_tier <= tier_duchy -# #Must be within an empire. -# top_liege.primary_title.tier >= tier_empire -# OR = { -# culture = { has_cultural_pillar = heritage_central_germanic } -# culture = { has_cultural_pillar = heritage_frankish } -# culture = { has_cultural_pillar = heritage_latin } -# } -# any_sub_realm_county = { -# OR = { -# title_province = { geographical_region = custom_core_switzerland } -# this = title:c_geneva -# this = title:c_aosta -# } -# } -# } -# -# is_valid = { -# #Must have imperial immediacy. -# liege = top_liege -# prestige_level >= high_prestige_level -# #And the core of the Old Confederacy. -# completely_controls_region = custom_core_switzerland -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege != this -# is_at_war = no -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 250 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 250 -# } -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# form_switzerland_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0001 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_switzerland_kingdom -# } -# set_global_variable = { -# name = flag_formed_switzerland_kingdom -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Creating Austrian Archduchy -#### Form Archduchy of Austria ### -#form_austria_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# desc = form_austria_kingdom_decision_desc -# selection_tooltip = form_austria_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# ai_goal = yes -# -# is_shown = { -# NOT = { exists = title:k_austria.holder } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_austria_kingdom -# } -# } -# #No kings or emperors... -# highest_held_title_tier <= tier_duchy -# top_liege != this -# #Must be within the HRE, else the bid & flavour make no sense. -# top_liege ?= { has_title = title:e_hre } -# #Must hold land within the relevant areas directly. -# any_held_title = { -# title_tier = county -# OR = { -# title_province = { geographical_region = custom_core_austria } -# title_province = { geographical_region = custom_stretch_austria } -# } -# } -# } -# -# is_valid = { -# #Must enjoy imperial immediacy. -# liege = title:e_hre.holder -# #Must be suitably prestigious. -# prestige_level >= high_prestige_level -# #Must control core Austria -# completely_controls_region = custom_core_austria -# #Must not be of the ruling dynasty -# custom_description = { -# text = "form_austria_hre_dynasty_trigger" -# NOT = { dynasty = title:e_hre.holder.dynasty } -# } -# #Must have a hook on the emperor -# has_strong_usable_hook = title:e_hre.holder -# #Must not be too early -# OR = { -# has_realm_law = crown_authority_2 -# has_realm_law = crown_authority_3 -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# faith = top_liege.faith #Must share the faith of your emperor. -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 1000 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 1000 -# } -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# form_austria_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0003 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_austria_kingdom -# } -# set_global_variable = { -# name = flag_formed_austria_kingdom -# value = root -# } -# } -# } -# -# ai_potential = { -# prestige_level >= high_prestige_level -# } -# -# ai_will_do = { -# base = 0 -# -# #Only worth considering if you actually have your capital in Austria. -# modifier = { -# add = 20 -# capital_county.title_province = { geographical_region = custom_core_austria } -# } -# -# #More brazen characters are more likely to have a bash. -# ai_value_modifier = { -# ai_boldness = 0.75 -# ai_greed = 0.25 -# } -# } -#} -# -##Reform Carolingian Empire -#### Restore Carolingian Borders ### -#reform_carolingian_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = reform_carolingian_empire_decision_desc -# selection_tooltip = reform_carolingian_empire_decision_tooltip -# decision_group_type = major -# sort_order = 130 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# faith.religion = faith:catholic.religion #Christian -# is_ruler = yes -# is_playable_character = yes -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_reformed_carolingian_empire -# } -# } -# top_liege = this -# culture = { has_cultural_pillar = heritage_frankish } -# capital_province = { geographical_region = world_europe_west } -# NOT = { has_title = title:e_hre } #HRE title holders can't Restore Carolingian Borders as the decision requires the HRE to serve as an "antagonist" -# } -# -# is_valid = { -# OR = { -# prestige_level >= 5 -# trigger_if = { -# limit = { -# has_legitimacy = yes -# } -# legitimacy_level >= 5 -# } -# } -# OR = { -# custom_tooltip = { -# text = carolingian_primary_title_france_check -# primary_title = title:e_france -# } -# custom_tooltip = { -# text = carolingian_primary_title_hre_check -# primary_title = title:e_hre -# } -# } -# # No competing Carolingian emperor may exist — hold them or leave them without a claimant -# trigger_if = { -# limit = { -# title:e_france ?= { -# is_titular = no -# exists = holder -# } -# } -# title:e_france = { -# save_temporary_scope_as = current_title_check -# } -# custom_tooltip = { -# text = carolingian_border_other_empires_check -# OR = { -# has_title = title:e_france -# NOT = { exists = title:e_france.holder } -# } -# } -# } -# trigger_if = { -# limit = { -# title:e_germany ?= { -# is_titular = no -# exists = holder -# } -# } -# title:e_germany = { -# save_temporary_scope_as = current_title_check -# } -# custom_tooltip = { -# text = carolingian_border_other_empires_check -# OR = { -# has_title = title:e_germany -# NOT = { exists = title:e_germany.holder } -# } -# } -# } -# trigger_if = { -# limit = { -# title:e_italy ?= { -# is_titular = no -# exists = holder -# } -# } -# title:e_italy = { -# save_temporary_scope_as = current_title_check -# } -# custom_tooltip = { -# text = carolingian_border_other_empires_check -# OR = { -# has_title = title:e_italy -# NOT = { exists = title:e_italy.holder } -# } -# } -# } -# trigger_if = { -# limit = { -# title:e_hre ?= { -# is_titular = no -# exists = holder -# } -# } -# title:e_hre = { -# save_temporary_scope_as = current_title_check -# } -# custom_tooltip = { -# text = carolingian_border_other_empires_check -# OR = { -# has_title = title:e_hre -# NOT = { exists = title:e_hre.holder } -# } -# } -# } -# #All of starting e_france -# completely_controls_region = custom_carolingian_francia -# #Frisia -# completely_controls_region = custom_frisia -# #Lotharingia -# completely_controls_region = custom_lotharingia -# #Bavaria -# completely_controls_region = custom_bavaria -# #Germany -# completely_controls_region = custom_carolingian_germany -# #Aragon (except Mallorca) & Navarra -# completely_controls_region = custom_carolingian_iberia -# #Northern Italy (except Venice, Sardinia, and Rome) -# completely_controls_region = custom_northern_italy -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# gold = { -# value = 1000 -# } -# } -# -# effect = { -# custom_tooltip = reform_carolingian_empire_decision_effect_tooltip -# show_as_tooltip = { -# form_carolingian_hegemony_gdp_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0005 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_reformed_carolingian_empire -# } -# set_global_variable = { -# name = flag_reformed_carolingian_empire -# value = root -# } -# } -# gain_heroic_legend_seed_tooltip_effect = yes -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Uniting the Burgundies -#### Unify the Burgundies ### -#unify_burgundy_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# desc = unify_burgundy_kingdom_decision_desc -# selection_tooltip = unify_burgundy_kingdom_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# ai_goal = yes -# -# is_shown = { -# culture = { has_cultural_pillar = heritage_frankish } -# is_ruler = yes -# is_playable_character = yes -# NOT = { -# exists = title:k_burgundy.holder -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_burgundy_kingdom -# } -# } -# highest_held_title_tier < 4 #No Kings or Emperors. -# top_liege = { -# OR = { -# has_title = title:k_france -# has_title = title:e_france -# has_title = title:e_hre -# } -# } -# capital_province = { geographical_region = custom_burgundy } -# } -# -# is_valid = { -# prestige_level >= high_prestige_level -# completely_controls_region = custom_burgundy -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege != this -# is_at_war = no -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 1000 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 1000 -# } -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# if = { -# limit = { -# NOT = { has_culture = culture:occitan } -# } -# set_culture = culture:occitan -# add_character_flag = converted_culture_this_lifetime -# } -# custom_tooltip = unify_burgundy_kingdom_decision_effect_tooltip -# show_as_tooltip = { -# unite_burgundies_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0007 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_burgundy_kingdom -# } -# set_global_variable = { -# name = flag_unified_burgundy_kingdom -# value = root -# } -# } -# } -# -# ai_potential = { -# NOT = { exists = title:k_burgundy.holder } -# capital_province ?= { geographical_region = custom_burgundy } -# } -# -# ai_will_do = { -# base = 5 -# ai_value_modifier = { -# ai_boldness = 1.0 -# } -# } -#} -# -#### Empower Sicilian Parliament ### -#empower_sicilian_parliament_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = empower_sicilian_parliament_decision_desc -# selection_tooltip = empower_sicilian_parliament_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# ai_goal = yes -# -# is_shown = { -# culture = { has_cultural_pillar = heritage_latin } -# is_ruler = yes -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_empowered_sicilian_parliament -# } -# } -# highest_held_title_tier >= 4 #Kings and Emperors only. -# top_liege = this -# capital_province = { geographical_region = custom_sicily } -# NOT = { government_has_flag = government_is_tribal } -# } -# -# is_valid = { -# prestige_level >= 3 -# learning >= 10 -# NOT = { has_realm_law = crown_authority_0 } -# OR = { -# has_title = title:k_sicily -# has_title = title:k_naples -# has_title = title:k_trinacria -# } -# OR = { -# AND = { -# completely_controls = title:d_sicily # The Island -# title:c_palermo = { -# title_province = { has_special_district = no } -# } -# } -# AND = { -# completely_controls = title:d_capua # The Boot -# title:c_napoli = { -# title_province = { has_special_district = no } -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 1500 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 1500 -# } -# } -# prestige = 3000 -# } -# -# effect = { -# show_as_tooltip = { -# if = { #Only for tooltip, player gets to choose in the event when owning both. -# limit = { completely_controls = title:d_sicily } -# title:c_palermo = { -# sicilian_parliament_building_scripted_effect = yes -# } -# } -# else_if = { -# limit = { completely_controls = title:d_capua } -# custom_tooltip = middle_europe_decisions.0010.tt_napoli_warning -# title:c_napoli = { -# sicilian_parliament_building_scripted_effect = yes -# } -# } -# empower_sicilian_parliament_decision_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0010 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_empowered_sicilian_parliament -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 15 -# ai_value_modifier = { -# ai_boldness = 1.0 -# } -# } -#} -# -##Little Medieval French Renaissance. -#### Inspire Opus Francigenum ### -#promote_gothic_innovations_decision = { #12th century Renaissance -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_misc.dds" -# } -# desc = promote_gothic_innovations_decision_desc -# selection_tooltip = promote_gothic_innovations_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# ai_goal = yes -# -# is_shown = { -# OR = { -# culture = { has_cultural_pillar = heritage_latin } -# culture = { has_cultural_pillar = heritage_frankish } -# } -# NOT = { has_culture = culture:italian } -# is_ruler = yes -# is_landed = yes -# root.culture = { -# has_cultural_era_or_later = culture_era_early_medieval -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_promoted_gothic_innovations -# } -# } -# highest_held_title_tier >= 4 #Kings and Emperors only. -# OR = { -# has_title = title:k_france -# has_title = title:e_france -# has_title = title:k_burgundy -# } -# NOR = { -# government_has_flag = government_is_theocracy -# government_has_flag = government_is_clan -# government_has_flag = government_is_tribal -# } -# } -# -# is_valid = { -# prestige_level >= 4 -# learning >= 10 -# NOT = { has_realm_law = crown_authority_0 } -# #Must control core provinces either in the North or the South: -# OR = { -# AND = { -# completely_controls = title:d_valois -# completely_controls = title:d_orleans -# } -# AND = { -# completely_controls = title:d_provence -# completely_controls = title:d_toulouse -# } -# } -# #Must have basic innovations: -# root.culture = { -# has_innovation = innovation_royal_prerogative -# has_innovation = innovation_knighthood -# has_innovation = innovation_windmills -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 500 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 500 -# } -# } -# prestige = 3000 -# } -# -# effect = { -# show_as_tooltip = { -# promote_gothic_innovations_decision_scripted_effect = yes -# } -# trigger_event = { -# id = middle_europe_decisions.0012 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_promoted_gothic_innovations -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 15 -# ai_value_modifier = { -# ai_boldness = 1.0 -# } -# } -#} -# -############################## -## Refound HRE # -## by Ewan Cowhig Croft # -############################## -#### Restore the Holy Roman Empire ### -#restore_holy_roman_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 0 -# } -# -# desc = restore_holy_roman_empire_decision_desc -# selection_tooltip = restore_holy_roman_empire_decision_tooltip -# -# is_shown = { -# is_landed_or_landless_administrative = yes -# exists = dynasty # Everyone should have a dynasty, but in case they don't... -# NOT = { has_global_variable = flag_restored_roman_empire } # Not if Rome already exists (prevent Rome from restoring HRE) -# NOR = { #Title existence cnditions. -# exists = title:e_hre.holder #Well, that'd be redundant. -# #highest_held_title_tier = tier_empire #Existing emperors likewise should not be giving up their empire. -# } -# OR = { #Government conditions. -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# } -# AND = { #Faith conditions. -# this != faith.religious_head #Nice try, Mr. Pope. -# faith = { -# religion_tag = christianity_religion -# has_doctrine_parameter = spiritual_head_of_faith #Gotta be invested with the authority by someone other than yourself. -# } -# NAND = { #No need for a competing empire if your faith controls the ERE. -# exists = title:e_byzantium.holder -# faith = title:e_byzantium.holder.faith -# } -# } -# OR = { #Government conditions. -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# } -# exists = faith.religious_head -# } -# -# is_valid = { -# #Standard requirements. -# top_liege = this -# trigger_if = { -# limit = { -# is_ai = no -# } -# prestige_level >= high_prestige_level -# } -# #Title ownership conditions. -# OR = { #Gotta be King of a core Carolingian Kingdom. -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_france -# has_title = title:k_italy -# has_title = title:k_lotharingia -# any_vassal = { -# OR = { -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_france -# has_title = title:k_italy -# has_title = title:k_lotharingia -# } -# } -# } -# trigger_if = { -# limit = { -# is_ai = no -# } -# custom_description = { #And have some additional royal dignity for good measure. -# text = decision_refound_hre_own_three_kingdoms.tt -# any_held_title = { -# title_tier = kingdom -# count >= 3 -# } -# } -# } -# sub_realm_size >= 120 #Plus your various kingdoms should be ruling something. -# #HoF preference conditions. -# trigger_if = { -# limit = { -# is_ai = no -# } -# OR = { -# faith.religious_head = { #And they have to actually like you enough to want to invest you. -# opinion = { -# target = root -# value >= high_positive_opinion -# } -# } -# root = { has_strong_usable_hook = faith.religious_head } #Or you have a strong hook on them that you can actually use. -# root = { has_weak_hook = faith.religious_head } #Or a regular hook, to be fair, provided you meet the other criteria. -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# faith.religious_head = { is_available_adult = yes } -# NOR = { -# has_trait = excommunicated -# is_at_war_with = faith.religious_head -# } -# } -# -# effect = { -# show_as_tooltip = { -# restore_holy_roman_empire_decision_scripted_effect = yes -# } -# gain_heroic_legend_seed_tooltip_effect = yes -# save_scope_as = founder -# faith.religious_head = { save_scope_as = founder_hof } -# if = { -# limit = { -# faith.religious_head = { is_playable_character = yes } -# } -# faith.religious_head.capital_province = { save_scope_as = ceremony_locale } -# } -# else = { -# capital_province = { save_scope_as = ceremony_locale } -# } -# trigger_event = { -# id = middle_europe_decisions.0015 -# } -# #Notify other players. -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = middle_europe_decisions.0016 -# } -# if = { -# limit = { -# is_ai = no -# NOT = { exists = global_var:restore_holy_roman_empire_decision } -# } -# set_global_variable = { -# name = restore_holy_roman_empire_decision -# value = root -# } -# } -# # Assign Dynamic Prince-Electors -# hidden_effect = { -# if = { -# limit = { has_global_variable_list = hre_elector_list } -# clear_global_variable_list = hre_elector_list -# } -# while = { -# count = 7 -# random_vassal = { -# limit = { -# capital_province.empire = title:e_hre # must be de-jure vassal of empire -# OR = { # prince-bishopric or duchy -# AND = { -# government_has_flag = government_is_theocracy -# primary_title.tier >= tier_county -# } -# primary_title.tier >= tier_duchy -# } -# NOT = { # not already selected -# is_target_in_global_variable_list = { -# name = hre_elector_list -# target = primary_title -# } -# } -# } -# weight = { -# modifier = { # major vassals heavily weighted -# factor = 10 -# is_powerful_vassal = yes -# } -# modifier = { # same culture as emperor preferred -# factor = 4 -# culture = root.culture -# } -# modifier = { # we don't mind going outside Germania, but prefer it -# factor = 1.5 -# trigger = { exists = primary_title.title_province } -# primary_title.title_province.barony = { -# OR = { -# target_is_de_jure_liege_or_above = title:k_bavaria -# target_is_de_jure_liege_or_above = title:k_bohemia -# target_is_de_jure_liege_or_above = title:k_east_francia -# target_is_de_jure_liege_or_above = title:k_frisia -# target_is_de_jure_liege_or_above = title:k_lotharingia -# target_is_de_jure_liege_or_above = title:k_pomerania -# } -# } -# } -# modifier = { # we want at least 3 theocracies ideally -# factor = 10 -# any_in_global_list = { -# variable = hre_elector_list -# count < 3 -# holder = { government_has_flag = government_is_theocracy } -# } -# government_has_flag = government_is_theocracy -# } -# modifier = { # 3 is enough theocracies unless we can't find feudal -# factor = 0.1 -# any_in_global_list = { -# variable = hre_elector_list -# count >= 3 -# holder = { government_has_flag = government_is_theocracy } -# } -# government_has_flag = government_is_theocracy -# } -# } -# add_to_global_variable_list = { -# name = hre_elector_list -# target = primary_title -# } -# } -# } -# hre_elector_list_save_effect = yes # saves list scopes to title as variables for tooltip -# } -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# is_ai = no -# } -# add = 500 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# is_ai = no -# } -# add = 500 -# } -# } -# piety = 200 -# } -# -# ai_potential = { -# top_liege = this -# highest_held_title_tier >= tier_kingdom -# } -# -# ai_will_do = { -# base = 100 -# -# modifier = { # We don't want a solo-France to form the HRE -# factor = 0 -# NOR = { -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_italy -# has_title = title:k_lotharingia -# any_vassal = { -# OR = { -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_italy -# has_title = title:k_lotharingia -# } -# } -# } -# } -# } -#} -# -############################## -## Establish Norman Cultue # -## by Sean Hughes # -############################## -# -#### Establish Norman Culture ### -#establish_norman_culture_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# desc = establish_norman_culture_decision_desc -# selection_tooltip = establish_norman_culture_decision_tooltip -# -# is_shown = { -# culture = culture:norse -# any_sub_realm_county = { -# target_is_de_jure_liege_or_above = title:d_normandy -# culture = culture:french -# } -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_normandy_decision -# } -# } -# } -# -# is_valid = { -# culture = culture:norse -# completely_controls = title:d_normandy -# } -# -# is_valid_showing_failures_only = { -# is_at_war = no -# is_imprisoned = no -# } -# -# effect = { -# hidden_effect = { -# # Generate a list of counties we want to flip to the new culture. -# title:d_normandy = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_county} -# add_to_list = norman_counties -# } -# } -# every_sub_realm_title = { -# limit = { -# tier = tier_county -# } -# if = { -# limit = { -# title_province = { geographical_region = custom_normandy_and_adjacent } -# OR = { -# culture = culture:french -# culture = culture:norse -# } -# } -# add_to_list = norman_counties -# } -# } -# -# # Perform the culture flip. -# every_in_list = { -# list = norman_counties -# merge_cultures_in_region_effect = { -# OLD_CULTURE_1 = culture:norse -# OLD_CULTURE_2 = culture:french -# NEW_CULTURE = culture:norman -# REGION = custom_normandy_and_adjacent -# } -# } -# -# # Send all players in the game a notification event about the flip. -# save_scope_as = norman_founder -# culture:norse = {save_scope_as = old_culture_1} -# culture:french = {save_scope_as = old_culture_2} -# culture:norman = { -# reset_culture_creation_date = yes -# get_all_innovations_from = scope:old_culture_1 -# get_all_innovations_from = scope:old_culture_2 -# save_scope_as = new_culture -# } -# every_player = { -# if = { -# limit = { -# this != root -# OR = { -# culture = culture:french -# culture = culture:norse -# } -# capital_province ?= { geographical_region = custom_normandy_and_adjacent } -# } -# trigger_event = global_culture.3002 -# } -# else_if = { -# limit = { this = root } -# trigger_event = global_culture.3003 -# } -# else_if = { -# limit = { -# capital_province ?= { geographical_region = world_europe } -# } -# trigger_event = global_culture.3005 -# } -# } -# } -# -# # Player changes culture -# set_culture = culture:norman -# add_character_flag = converted_culture_this_lifetime -# hidden_effect = { -# every_in_list = { -# list = norman_counties -# limit = { -# holder.capital_county = { is_in_list = norman_counties } -# } -# holder = { -# add_to_list = mass_melting_pot_list -# every_courtier = { add_to_list = mass_melting_pot_list } -# every_courtier_away = { add_to_list = mass_melting_pot_list } -# } -# every_in_list = { -# list = mass_melting_pot_list -# limit = { -# OR = { -# culture = culture:french -# culture = culture:norse -# } -# } -# set_culture = culture:norman -# } -# } -# } -# -# # Summary of above hidden effects to inform players of the decision's impact. -# show_as_tooltip = { -# custom_tooltip = establish_norman_culture_decision_effect.tt -# culture:norman = { -# get_all_innovations_from = scope:old_culture_1 -# get_all_innovations_from = scope:old_culture_2 -# } -# } -# -# # Rename the duchy to Normandy -# title:d_normandy = { -# save_scope_as = normandy_title -# hidden_effect = { -# set_title_name = d_normandy -# } -# custom_tooltip = establish_norman_culture_decision_effect.tt.2 -# } -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_normandy_decision -# } -# } -# -# cost = { -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 0 -# -# modifier = { -# add = 100 -# any_sub_realm_county = { -# percent >= 0.5 -# culture = culture:french -# } -# } -# } -#} -# -################################### -## Establish Italo-Norman Culture # -################################### -# -#### Establish Italo-Norman Culture ### -#establish_italo_norman_culture_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# desc = establish_italo_norman_culture_decision_desc -# selection_tooltip = establish_italo_norman_culture_decision_tooltip -# -# is_shown = { -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_italo_norman_decision -# } -# } -# any_sub_realm_county = { -# OR = { -# target_is_de_jure_liege_or_above = title:d_sicily -# target_is_de_jure_liege_or_above = title:d_apulia -# } -# culture ?= culture:sicilian -# } -# culture ?= culture:norman -# } -# -# is_valid = { -# culture = culture:norman -# completely_controls = title:d_sicily -# completely_controls = title:d_apulia -# } -# -# is_valid_showing_failures_only = { -# is_at_war = no -# is_imprisoned = no -# } -# -# effect = { -# hidden_effect = { -# title:d_sicily = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_county } -# add_to_list = italo_norman_counties -# } -# } -# title:d_apulia = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_county } -# add_to_list = italo_norman_counties -# } -# } -# every_sub_realm_title = { -# limit = { -# tier = tier_county -# } -# if = { -# limit = { -# title_province = { geographical_region = custom_sicily } -# OR = { -# culture = culture:norman -# culture = culture:sicilian -# } -# } -# add_to_list = italo_norman_counties -# } -# } -# -# every_in_list = { -# list = italo_norman_counties -# merge_cultures_in_region_effect = { -# OLD_CULTURE_1 = culture:norman -# OLD_CULTURE_2 = culture:sicilian -# NEW_CULTURE = culture:italo_norman -# REGION = custom_sicily -# } -# } -# -# # Notify players the same way a dynamic hybrid culture does (see on_culture_created) -# save_scope_as = founder -# culture:norman = { save_scope_as = old_culture_1 save_scope_as = parent_1 } -# culture:sicilian = { save_scope_as = old_culture_2 save_scope_as = parent_2 } -# culture:italo_norman = { -# reset_culture_creation_date = yes -# get_all_innovations_from = scope:old_culture_1 -# get_all_innovations_from = scope:old_culture_2 -# save_scope_as = new_culture -# } -# every_player = { -# if = { -# limit = { -# OR = { -# culture = scope:new_culture -# culture = scope:parent_1 -# culture = scope:parent_2 -# } -# } -# trigger_event = { -# id = culture_notification.1011 -# days = 0 -# } -# } -# else_if = { -# limit = { -# in_diplomatic_range = scope:founder -# } -# trigger_event = { -# id = culture_notification.1001 -# days = 0 -# } -# } -# } -# } -# -# # Player changes culture -# set_culture = culture:italo_norman -# add_character_flag = converted_culture_this_lifetime -# hidden_effect = { -# every_in_list = { -# list = italo_norman_counties -# limit = { -# holder.capital_county = { is_in_list = italo_norman_counties } -# } -# holder = { -# add_to_list = mass_melting_pot_list -# every_courtier = { add_to_list = mass_melting_pot_list } -# every_courtier_away = { add_to_list = mass_melting_pot_list } -# } -# every_in_list = { -# list = mass_melting_pot_list -# limit = { -# OR = { -# culture = culture:norman -# culture = culture:sicilian -# } -# } -# set_culture = culture:italo_norman -# } -# } -# } -# -# show_as_tooltip = { -# custom_tooltip = establish_italo_norman_culture_decision_effect.tt -# culture:italo_norman = { -# get_all_innovations_from = scope:old_culture_1 -# get_all_innovations_from = scope:old_culture_2 -# } -# } -# -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_italo_norman_decision -# } -# } -# -# cost = { -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 0 -# -# modifier = { -# add = 100 -# any_sub_realm_county = { -# percent >= 0.5 -# culture = culture:sicilian -# } -# } -# } -#} -# -####################################### -## Establish the Electorate of Saxony # -## by James Beaumont # -####################################### -# -#### Establish the Electorate of Saxony ### -#establish_the_electorate_of_saxony_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval = 0 -# -# desc = establish_the_electorate_of_saxony_decision_desc -# selection_tooltip = establish_the_electorate_of_saxony_decision_tooltip -# -# is_shown = { -# # Temporarily disabled due to stability issues in the HRE. -# always = no -# # Can't form Saxony if Saxony already formed. -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_saxony -# } -# } -# # Is in the HRE or is the Emperor -# OR = { -# liege = title:e_hre.holder -# has_primary_title = title:e_hre -# } -# } -# -# is_valid = { -# OR = { -# has_primary_title = title:e_hre -# # Avoid some funky tooltips. -# AND = { -# highest_held_title_tier <= tier_kingdom -# top_liege = { has_title = title:e_hre } -# } -# } -# custom_tooltip = { -# text = polabia_held_or_nonexistent.tt -# OR = { -# has_title = title:k_sorbia -# NOT = { exists = title:k_sorbia.holder } -# } -# } -# completely_controls = title:d_meissen -# completely_controls = title:d_lausitz -# completely_controls = title:d_anhalt -# completely_controls = title:d_thuringia -# # Most of the Kingdom of Polabia is at least somewhat pro-HRE -# custom_tooltip = { -# text = polabia_must_be_hre_culture_tt -# any_county_in_region = { -# region = custom_polabia -# # At least half. -# count >= 12 -# OR = { -# culture = root.culture -# culture = title:e_hre.holder.culture -# } -# } -# } -# } -# -# effect = { -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_saxony -# } -# save_scope_as = founder -# title:e_hre.holder = { save_scope_as = hre_emperor_scope } -# trigger_event = middle_europe_decisions.0017 -# } -# show_as_tooltip = { -# create_kingdom_of_saxony_effect = { CHARACTER = root } -# } -# if = { -# limit = { has_title = title:e_hre } -# custom_tooltip = middle_europe_decision.0017.tt -# } -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = 200 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = 200 -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -############### -## Carantania # -############### -#decision_restore_carantania = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_castle_view.dds" -# } -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# exists = title:k_carantania -# has_culture = culture:carantanian -# OR = { -# has_title = title:d_krain -# has_title = title:d_carinthia -# has_title = title:d_steyermark -# } -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_carantania -# } -# } -# OR = { -# title:d_krain = { is_titular = no } -# title:d_carinthia = { is_titular = no } -# title:d_steyermark = { is_titular = no } -# } -# } -# -# is_valid = { -# is_independent_ruler = yes -# highest_held_title_tier < tier_kingdom -# prestige_level >= 3 -# trigger_if = { -# limit = { -# title:d_krain = { is_titular = no } -# } -# completely_controls = title:d_krain -# } -# trigger_if = { -# limit = { -# title:d_carinthia = { is_titular = no } -# } -# completely_controls = title:d_carinthia -# } -# trigger_if = { -# limit = { -# title:d_steyermark = { is_titular = no } -# } -# completely_controls = title:d_steyermark -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_carantania -# } -# } -# show_as_tooltip = { -# decision_restore_carantania_effect = yes -# } -# trigger_event = major_decisions.3400 -# } -# -# cost = { -# gold = { -# value = 500 -# if = { -# limit = { -# is_ai = yes -# } -# multiply = 0 -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file +#Creating Switzerland "Kingdom" +### Form the Swiss Confederation ### +form_switzerland_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + desc = form_switzerland_kingdom_decision_desc + selection_tooltip = form_switzerland_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + is_shown = { + OR = { + culture ?= { has_cultural_pillar = heritage_central_germanic } + culture ?= { has_cultural_pillar = heritage_frankish } + culture ?= { has_cultural_pillar = heritage_latin } + } + #Must be within an empire. + top_liege.primary_title.tier >= tier_empire + any_sub_realm_county = { + OR = { + title_province ?= { geographical_region = custom_core_switzerland } + this = title:c_aosta + this = title:c_geneva + } + } + #No kings or emperors. + highest_held_title_tier <= tier_duchy + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_switzerland_kingdom + } + } + NOT = { exists = title:k_switzerland.holder } + top_liege != this + } + + is_valid = { + #Must have imperial immediacy. + liege = top_liege + prestige_level >= high_prestige_level + #And the core of the Old Confederacy. + completely_controls_region = custom_core_switzerland + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege != this + is_at_war = no + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 250 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 250 + } + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + form_switzerland_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0001 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_switzerland_kingdom + } + set_global_variable = { + name = flag_formed_switzerland_kingdom + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Creating Austrian Archduchy +### Form Archduchy of Austria ### +form_austria_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + desc = form_austria_kingdom_decision_desc + selection_tooltip = form_austria_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + ai_goal = yes + + is_shown = { + #Must hold land within the relevant areas directly. + any_held_title = { + title_tier = county + OR = { + title_province ?= { geographical_region = custom_core_austria } + title_province ?= { geographical_region = custom_stretch_austria } + } + } + NOT = { exists = title:k_austria.holder } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_austria_kingdom + } + } + #No kings or emperors... + highest_held_title_tier <= tier_duchy + top_liege != this + #Must be within the HRE, else the bid & flavour make no sense. + top_liege ?= { has_title = title:e_hre } + } + + is_valid = { + #Must enjoy imperial immediacy. + liege = title:e_hre.holder + #Must be suitably prestigious. + prestige_level >= high_prestige_level + #Must control core Austria + completely_controls_region = custom_core_austria + #Must not be of the ruling dynasty + custom_description = { + text = "form_austria_hre_dynasty_trigger" + NOT = { dynasty = title:e_hre.holder.dynasty } + } + #Must have a hook on the emperor + has_strong_usable_hook = title:e_hre.holder + #Must not be too early + OR = { + has_realm_law = crown_authority_2 + has_realm_law = crown_authority_3 + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + faith = top_liege.faith #Must share the faith of your emperor. + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 1000 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 1000 + } + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + form_austria_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0003 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_austria_kingdom + } + set_global_variable = { + name = flag_formed_austria_kingdom + value = root + } + } + } + + ai_potential = { + prestige_level >= high_prestige_level + } + + ai_will_do = { + base = 0 + + #Only worth considering if you actually have your capital in Austria. + modifier = { + add = 20 + capital_county.title_province = { geographical_region = custom_core_austria } + } + + #More brazen characters are more likely to have a bash. + ai_value_modifier = { + ai_boldness = 0.75 + ai_greed = 0.25 + } + } +} + +#Reform Carolingian Empire +### Restore Carolingian Borders ### +reform_carolingian_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = reform_carolingian_empire_decision_desc + selection_tooltip = reform_carolingian_empire_decision_tooltip + decision_group_type = major + sort_order = 130 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + OR = { + has_title = title:e_france + has_title = title:e_hre + } + is_playable_character = yes + capital_province ?= { geographical_region = world_europe_west } + faith.religion ?= faith:catholic.religion #Christian + NOT = { government_has_flag = government_is_theocracy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_reformed_carolingian_empire + } + } + top_liege ?= this + culture = { + OR = { + has_cultural_pillar = heritage_frankish + has_cultural_pillar = heritage_central_germanic + } + } + capital_province ?= { geographical_region = world_europe_west } + } + + is_valid = { + OR = { + prestige_level >= 5 + trigger_if = { + limit = { + has_legitimacy = yes + } + legitimacy_level >= 5 + } + } + OR = { + custom_tooltip = { + text = carolingian_primary_title_france_check + primary_title = title:e_france + } + custom_tooltip = { + text = carolingian_primary_title_hre_check + primary_title = title:e_hre + } + } + # No competing Carolingian emperor may exist — hold them or leave them without a claimant + trigger_if = { + limit = { + title:e_france ?= { + is_titular = no + exists = holder + } + } + title:e_france = { + save_temporary_scope_as = current_title_check + } + custom_tooltip = { + text = carolingian_border_other_empires_check + OR = { + has_title = title:e_france + NOT = { exists = title:e_france.holder } + } + } + } + trigger_if = { + limit = { + title:e_germany ?= { + is_titular = no + exists = holder + } + } + title:e_germany = { + save_temporary_scope_as = current_title_check + } + custom_tooltip = { + text = carolingian_border_other_empires_check + OR = { + has_title = title:e_germany + NOT = { exists = title:e_germany.holder } + } + } + } + trigger_if = { + limit = { + title:e_italy ?= { + is_titular = no + exists = holder + } + } + title:e_italy = { + save_temporary_scope_as = current_title_check + } + custom_tooltip = { + text = carolingian_border_other_empires_check + OR = { + has_title = title:e_italy + NOT = { exists = title:e_italy.holder } + } + } + } + trigger_if = { + limit = { + title:e_hre ?= { + is_titular = no + exists = holder + } + } + title:e_hre = { + save_temporary_scope_as = current_title_check + } + custom_tooltip = { + text = carolingian_border_other_empires_check + OR = { + has_title = title:e_hre + NOT = { exists = title:e_hre.holder } + } + } + } + #All of starting e_france + completely_controls_region = custom_carolingian_francia + #Frisia + completely_controls_region = custom_frisia + #Lotharingia + completely_controls_region = custom_lotharingia + #Bavaria + completely_controls_region = custom_bavaria + #Germany + completely_controls_region = custom_carolingian_germany + #Aragon (except Mallorca) & Navarra + completely_controls_region = custom_carolingian_iberia + #Northern Italy (except Venice, Sardinia, and Rome) + completely_controls_region = custom_northern_italy + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + gold = { + value = 1000 + } + } + + effect = { + custom_tooltip = reform_carolingian_empire_decision_effect_tooltip + show_as_tooltip = { + form_carolingian_hegemony_gdp_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0005 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_reformed_carolingian_empire + } + set_global_variable = { + name = flag_reformed_carolingian_empire + value = root + } + } + gain_heroic_legend_seed_tooltip_effect = yes + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Uniting the Burgundies +### Unify the Burgundies ### +unify_burgundy_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + desc = unify_burgundy_kingdom_decision_desc + selection_tooltip = unify_burgundy_kingdom_decision_tooltip + decision_group_type = major + sort_order = 110 + ai_goal = yes + + is_shown = { + culture ?= { has_cultural_pillar = heritage_frankish } + is_playable_character = yes + highest_held_title_tier < 4 #No Kings or Emperors. + top_liege ?= { + OR = { + has_title = title:e_hre + has_title = title:k_france + has_title = title:e_france + } + } + capital_province ?= { geographical_region = custom_burgundy } + NOR = { + exists = title:k_burgundy.holder + #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_burgundy_kingdom + } + } + is_ruler = yes + } + + is_valid = { + prestige_level >= high_prestige_level + completely_controls_region = custom_burgundy + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege != this + is_at_war = no + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 1000 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 1000 + } + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + if = { + limit = { + NOT = { has_culture = culture:occitan } + } + set_culture = culture:occitan + add_character_flag = converted_culture_this_lifetime + } + custom_tooltip = unify_burgundy_kingdom_decision_effect_tooltip + show_as_tooltip = { + unite_burgundies_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0007 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_burgundy_kingdom + } + set_global_variable = { + name = flag_unified_burgundy_kingdom + value = root + } + } + } + + ai_potential = { + NOT = { exists = title:k_burgundy.holder } + capital_province ?= { geographical_region = custom_burgundy } + } + + ai_will_do = { + base = 5 + ai_value_modifier = { + ai_boldness = 1.0 + } + } +} + +### Empower Sicilian Parliament ### +empower_sicilian_parliament_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = empower_sicilian_parliament_decision_desc + selection_tooltip = empower_sicilian_parliament_decision_tooltip + decision_group_type = major + sort_order = 100 + ai_goal = yes + + is_shown = { + highest_held_title_tier >= 4 #Kings and Emperors only. + culture ?= { has_cultural_pillar = heritage_latin } + capital_province ?= { geographical_region = custom_sicily } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_empowered_sicilian_parliament + } + } + top_liege ?= this + NOT = { government_has_flag = government_is_tribal } + is_ruler = yes + } + + is_valid = { + prestige_level >= 3 + learning >= 10 + NOT = { has_realm_law = crown_authority_0 } + OR = { + has_title = title:k_sicily + has_title = title:k_naples + has_title = title:k_trinacria + } + OR = { + AND = { + completely_controls = title:d_sicily # The Island + title:c_palermo = { + title_province = { has_special_district = no } + } + } + AND = { + completely_controls = title:d_capua # The Boot + title:c_napoli = { + title_province = { has_special_district = no } + } + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 1500 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 1500 + } + } + prestige = 3000 + } + + effect = { + show_as_tooltip = { + if = { #Only for tooltip, player gets to choose in the event when owning both. + limit = { completely_controls = title:d_sicily } + title:c_palermo = { + sicilian_parliament_building_scripted_effect = yes + } + } + else_if = { + limit = { completely_controls = title:d_capua } + custom_tooltip = middle_europe_decisions.0010.tt_napoli_warning + title:c_napoli = { + sicilian_parliament_building_scripted_effect = yes + } + } + empower_sicilian_parliament_decision_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0010 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_empowered_sicilian_parliament + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 15 + ai_value_modifier = { + ai_boldness = 1.0 + } + } +} + +#Little Medieval French Renaissance. +### Inspire Opus Francigenum ### +promote_gothic_innovations_decision = { #12th century Renaissance + picture = { + reference = "gfx/interface/illustrations/decisions/decision_misc.dds" + } + desc = promote_gothic_innovations_decision_desc + selection_tooltip = promote_gothic_innovations_decision_tooltip + decision_group_type = major + sort_order = 100 + ai_goal = yes + + is_shown = { + highest_held_title_tier >= 4 #Kings and Emperors only. + is_landed = yes + OR = { + culture ?= { has_cultural_pillar = heritage_frankish } + culture ?= { has_cultural_pillar = heritage_latin } + } + OR = { + has_title = title:k_france + has_title = title:e_france + has_title = title:k_burgundy + } + NOT = { has_culture = culture:italian } + is_ruler = yes + root.culture ?= { + has_cultural_era_or_later = culture_era_early_medieval + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_promoted_gothic_innovations + } + } + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_clan + government_has_flag = government_is_theocracy + } + } + + is_valid = { + prestige_level >= 4 + learning >= 10 + NOT = { has_realm_law = crown_authority_0 } + #Must control core provinces either in the North or the South: + OR = { + AND = { + completely_controls = title:d_valois + completely_controls = title:d_orleans + } + AND = { + completely_controls = title:d_provence + completely_controls = title:d_toulouse + } + } + #Must have basic innovations: + root.culture = { + has_innovation = innovation_royal_prerogative + has_innovation = innovation_knighthood + has_innovation = innovation_windmills + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 500 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 500 + } + } + prestige = 3000 + } + + effect = { + show_as_tooltip = { + promote_gothic_innovations_decision_scripted_effect = yes + } + trigger_event = { + id = middle_europe_decisions.0012 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_promoted_gothic_innovations + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 15 + ai_value_modifier = { + ai_boldness = 1.0 + } + } +} + +############################# +# Refound HRE # +# by Ewan Cowhig Croft # +############################# +### Restore the Holy Roman Empire ### +restore_holy_roman_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 0 + } + + desc = restore_holy_roman_empire_decision_desc + selection_tooltip = restore_holy_roman_empire_decision_tooltip + + is_shown = { + highest_held_title_tier >= tier_kingdom + is_landed_or_landless_administrative = yes + exists = dynasty # Everyone should have a dynasty, but in case they don't... + NOT = { has_global_variable = flag_restored_roman_empire } # Not if Rome already exists (prevent Rome from restoring HRE) + highest_held_title_tier < tier_hegemony # Don't destroy your hegemony. + NOR = { #Title existence conditions. + exists = title:e_hre.holder #Well, that'd be redundant. + } + NOR = { #It doesn't make sense for these competing empires. + is_roman_emperor_trigger = yes + mpo_has_gok_mongol_empire_trigger = yes + } + AND = { #Faith conditions. + faith = { + religion_tag = christianity_religion + } + trigger_if = { + limit = { exists = faith.religious_head } + this != faith.religious_head + } + trigger_else = { + NOT = { faith.main_rite.head_of_rite ?= this } + } + #NAND = { #No need for a competing empire if your faith controls the ERE. + # exists = title:e_byzantium.holder + # faith = title:e_byzantium.holder.faith + #} + } + OR = { #Government conditions. + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_mechanic = administrative + } + } + + is_valid = { + #Standard requirements. + top_liege = this + custom_description = { + text = restore_hre_mainline_rite_requirement_tt + OR = { + rite = faith.main_rite + rite = rite:carolingian_christianity + } + } + trigger_if = { + limit = { + is_ai = no + } + prestige_level >= high_prestige_level + } + #Title ownership conditions. + custom_tooltip = { + text = decision_refound_hre_kingdom_list.tt + OR = { #Gotta be King of a core Carolingian Kingdom. + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_france + has_title = title:k_italy + has_title = title:k_lotharingia + any_vassal = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_france + has_title = title:k_italy + has_title = title:k_lotharingia + } + } + } + } + trigger_if = { + limit = { + is_ai = no + } + custom_description = { #And have some additional royal dignity for good measure. + text = decision_refound_hre_own_three_kingdoms.tt + any_held_title = { + title_tier = kingdom + count >= 3 + } + } + } + sub_realm_size >= 120 #Plus your various kingdoms should be ruling something. + # Must be 7 potential Electors + custom_tooltip = { + text = restore_holy_roman_empire_decision_trigger_de_jure_vassals.tt + any_vassal = { + count >= 7 + hre_valid_prince_elector_trigger = yes + # prince-bishopric or duchy + trigger_if = { + limit = { government_has_flag = government_is_theocracy } + any_held_title = { + tier >= tier_county + is_landless_type_title = no + has_clerical_region = no + } + } + trigger_else = { + OR = { + primary_title.tier >= tier_duchy + has_character_flag = hre_kingdom_destroyed + } + } + } + } + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { has_trait = excommunicated } + } + + effect = { + hre_assign_dynamic_prince_electors_effect = yes + save_scope_as = founder + if = { + limit = { exists = faith.religious_head } + faith.religious_head = { save_scope_as = founder_religious_authority } + } + else_if = { + limit = { exists = faith.main_rite.head_of_rite } + faith.main_rite.head_of_rite = { save_scope_as = founder_religious_authority } + } + capital_province ?= { save_scope_as = ceremony_locale } + if = { + limit = { + exists = scope:founder_religious_authority + scope:founder_religious_authority = { + is_available_adult = yes + OR = { + opinion = { + target = root + value >= high_positive_opinion + } + root = { has_strong_usable_hook = this } + root = { has_weak_hook = this } + } + } + NOT = { is_at_war_with = scope:founder_religious_authority } + } + scope:founder_religious_authority = { + save_scope_as = hre_blessing_authority + if = { + limit = { is_playable_character = yes } + capital_province ?= { save_scope_as = ceremony_locale } + } + } + } + if = { + limit = { exists = scope:hre_blessing_authority } + custom_tooltip = restore_hre_with_blessing_tt + } + else = { + custom_tooltip = restore_hre_without_blessing_tt + } + show_as_tooltip = { + restore_holy_roman_empire_decision_scripted_effect = yes + } + custom_tooltip = hre_elector_list_creation_tt + gain_heroic_legend_seed_tooltip_effect = yes + trigger_event = middle_europe_decisions.0015 + #Notify other players. + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = middle_europe_decisions.0016 + } + if = { + limit = { + is_ai = no + NOT = { exists = global_var:restore_holy_roman_empire_decision } + } + set_global_variable = { + name = restore_holy_roman_empire_decision + value = root + } + } + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + is_ai = no + } + add = 500 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + is_ai = no + } + add = 500 + } + } + piety = 200 + } + + ai_potential = { + top_liege = this + highest_held_title_tier >= tier_kingdom + } + + ai_will_do = { + base = 100 + + modifier = { # We don't want a solo-France to form the HRE + factor = 0 + NOR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_italy + has_title = title:k_lotharingia + any_vassal = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_italy + has_title = title:k_lotharingia + } + } + } + } + } +} + +############################# +# Establish Norman Cultue # +# by Sean Hughes # +############################# + +### Establish Norman Culture ### +establish_norman_culture_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + desc = establish_norman_culture_decision_desc + selection_tooltip = establish_norman_culture_decision_tooltip + + is_shown = { + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_normandy_decision + } + } + any_sub_realm_county = { + target_is_de_jure_liege_or_above = title:d_normandy + culture ?= culture:french + } + culture ?= culture:norse + } + + is_valid = { + culture = culture:norse + completely_controls = title:d_normandy + } + + is_valid_showing_failures_only = { + is_at_war = no + is_imprisoned = no + } + + effect = { + hidden_effect = { + # Generate a list of counties we want to flip to the new culture. + title:d_normandy = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_county} + add_to_list = norman_counties + } + } + every_sub_realm_title = { + limit = { + tier = tier_county + } + if = { + limit = { + title_province = { geographical_region = custom_normandy_and_adjacent } + OR = { + culture = culture:french + culture = culture:norse + } + } + add_to_list = norman_counties + } + } + + # Perform the culture flip. + every_in_list = { + list = norman_counties + merge_cultures_in_region_effect = { + OLD_CULTURE_1 = culture:norse + OLD_CULTURE_2 = culture:french + NEW_CULTURE = culture:norman + REGION = custom_normandy_and_adjacent + } + } + + # Send all players in the game a notification event about the flip. + save_scope_as = norman_founder + culture:norse = {save_scope_as = old_culture_1} + culture:french = {save_scope_as = old_culture_2} + culture:norman = { + reset_culture_creation_date = yes + get_all_innovations_from = scope:old_culture_1 + get_all_innovations_from = scope:old_culture_2 + save_scope_as = new_culture + } + every_player = { + if = { + limit = { + this != root + OR = { + culture = culture:french + culture = culture:norse + } + capital_province ?= { geographical_region = custom_normandy_and_adjacent } + } + trigger_event = global_culture.3002 + } + else_if = { + limit = { this = root } + trigger_event = global_culture.3003 + } + else_if = { + limit = { + capital_province ?= { geographical_region = world_europe } + } + trigger_event = global_culture.3005 + } + } + } + + # Player changes culture + set_culture = culture:norman + add_character_flag = converted_culture_this_lifetime + hidden_effect = { + every_in_list = { + list = norman_counties + limit = { + holder.capital_county = { is_in_list = norman_counties } + } + holder = { + add_to_list = mass_melting_pot_list + every_courtier = { add_to_list = mass_melting_pot_list } + every_courtier_away = { add_to_list = mass_melting_pot_list } + } + every_in_list = { + list = mass_melting_pot_list + limit = { + OR = { + culture = culture:french + culture = culture:norse + } + } + set_culture = culture:norman + } + } + } + + # Summary of above hidden effects to inform players of the decision's impact. + show_as_tooltip = { + custom_tooltip = establish_norman_culture_decision_effect.tt + culture:norman = { + get_all_innovations_from = scope:old_culture_1 + get_all_innovations_from = scope:old_culture_2 + } + } + + # Rename the duchy to Normandy + title:d_normandy = { + save_scope_as = normandy_title + hidden_effect = { + set_title_name = d_normandy + } + custom_tooltip = establish_norman_culture_decision_effect.tt.2 + } + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_normandy_decision + } + } + + cost = { + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 0 + + modifier = { + add = 100 + any_sub_realm_county = { + percent >= 0.5 + culture = culture:french + } + } + } +} + +################################## +# Establish Italo-Norman Culture # +################################## + +### Establish Italo-Norman Culture ### +establish_italo_norman_culture_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + desc = establish_italo_norman_culture_decision_desc + selection_tooltip = establish_italo_norman_culture_decision_tooltip + + is_shown = { + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_italo_norman_decision + } + } + any_sub_realm_county = { + OR = { + target_is_de_jure_liege_or_above = title:d_sicily + target_is_de_jure_liege_or_above = title:d_apulia + } + culture ?= culture:sicilian + } + culture ?= culture:norman + } + + is_valid = { + culture = culture:norman + completely_controls = title:d_sicily + completely_controls = title:d_apulia + } + + is_valid_showing_failures_only = { + is_at_war = no + is_imprisoned = no + } + + effect = { + hidden_effect = { + title:d_sicily = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_county } + add_to_list = italo_norman_counties + } + } + title:d_apulia = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_county } + add_to_list = italo_norman_counties + } + } + every_sub_realm_title = { + limit = { + tier = tier_county + } + if = { + limit = { + title_province = { geographical_region = custom_sicily } + OR = { + culture = culture:norman + culture = culture:sicilian + } + } + add_to_list = italo_norman_counties + } + } + + every_in_list = { + list = italo_norman_counties + merge_cultures_in_region_effect = { + OLD_CULTURE_1 = culture:norman + OLD_CULTURE_2 = culture:sicilian + NEW_CULTURE = culture:italo_norman + REGION = custom_sicily + } + } + + # Notify players the same way a dynamic hybrid culture does (see on_culture_created) + save_scope_as = founder + culture:norman = { save_scope_as = old_culture_1 save_scope_as = parent_1 } + culture:sicilian = { save_scope_as = old_culture_2 save_scope_as = parent_2 } + culture:italo_norman = { + reset_culture_creation_date = yes + get_all_innovations_from = scope:old_culture_1 + get_all_innovations_from = scope:old_culture_2 + save_scope_as = new_culture + } + every_player = { + if = { + limit = { + OR = { + culture = scope:new_culture + culture = scope:parent_1 + culture = scope:parent_2 + } + } + trigger_event = { + id = culture_notification.1011 + days = 0 + } + } + else_if = { + limit = { + in_diplomatic_range = scope:founder + } + trigger_event = { + id = culture_notification.1001 + days = 0 + } + } + } + } + + # Player changes culture + set_culture = culture:italo_norman + add_character_flag = converted_culture_this_lifetime + hidden_effect = { + every_in_list = { + list = italo_norman_counties + limit = { + holder.capital_county = { is_in_list = italo_norman_counties } + } + holder = { + add_to_list = mass_melting_pot_list + every_courtier = { add_to_list = mass_melting_pot_list } + every_courtier_away = { add_to_list = mass_melting_pot_list } + } + every_in_list = { + list = mass_melting_pot_list + limit = { + OR = { + culture = culture:norman + culture = culture:sicilian + } + } + set_culture = culture:italo_norman + } + } + } + + show_as_tooltip = { + custom_tooltip = establish_italo_norman_culture_decision_effect.tt + culture:italo_norman = { + get_all_innovations_from = scope:old_culture_1 + get_all_innovations_from = scope:old_culture_2 + } + } + + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_italo_norman_decision + } + } + + cost = { + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 0 + + modifier = { + add = 100 + any_sub_realm_county = { + percent >= 0.5 + culture = culture:sicilian + } + } + } +} + +###################################### +# Establish the Electorate of Saxony # +# by James Beaumont # +###################################### + +### Establish the Electorate of Saxony ### +establish_the_electorate_of_saxony_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + decision_group_type = major + sort_order = 100 + + ai_check_interval = 0 + + desc = establish_the_electorate_of_saxony_decision_desc + selection_tooltip = establish_the_electorate_of_saxony_decision_tooltip + + is_shown = { + # Temporarily disabled due to stability issues in the HRE. + always = no + # Can't form Saxony if Saxony already formed. + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_saxony + } + } + # Is in the HRE or is the Emperor + OR = { + liege ?= title:e_hre.holder + has_primary_title = title:e_hre + } + } + + is_valid = { + OR = { + has_primary_title = title:e_hre + # Avoid some funky tooltips. + AND = { + highest_held_title_tier <= tier_kingdom + top_liege = { has_title = title:e_hre } + } + } + custom_tooltip = { + text = polabia_held_or_nonexistent.tt + OR = { + has_title = title:k_sorbia + NOT = { exists = title:k_sorbia.holder } + } + } + completely_controls = title:d_meissen + completely_controls = title:d_lausitz + completely_controls = title:d_anhalt + completely_controls = title:d_thuringia + # Most of the Kingdom of Polabia is at least somewhat pro-HRE + custom_tooltip = { + text = polabia_must_be_hre_culture_tt + any_county_in_region = { + region = custom_polabia + # At least half. + count >= 12 + OR = { + culture = root.culture + culture = title:e_hre.holder.culture + } + } + } + } + + effect = { + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_saxony + } + save_scope_as = founder + title:e_hre.holder = { save_scope_as = hre_emperor_scope } + trigger_event = middle_europe_decisions.0017 + } + show_as_tooltip = { + create_kingdom_of_saxony_effect = { CHARACTER = root } + } + if = { + limit = { has_title = title:e_hre } + custom_tooltip = middle_europe_decision.0017.tt + } + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = 200 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = 200 + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +############## +# Carantania # +############## +decision_restore_carantania = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_castle_view.dds" + } + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + is_shown = { + exists = title:k_carantania + has_culture = culture:carantanian + OR = { + has_title = title:d_krain + has_title = title:d_carinthia + has_title = title:d_steyermark + } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_carantania + } + } + OR = { + title:d_krain = { is_titular = no } + title:d_carinthia = { is_titular = no } + title:d_steyermark = { is_titular = no } + } + } + + is_valid = { + is_independent_ruler = yes + highest_held_title_tier < tier_kingdom + prestige_level >= 3 + trigger_if = { + limit = { + title:d_krain = { is_titular = no } + } + completely_controls = title:d_krain + } + trigger_if = { + limit = { + title:d_carinthia = { is_titular = no } + } + completely_controls = title:d_carinthia + } + trigger_if = { + limit = { + title:d_steyermark = { is_titular = no } + } + completely_controls = title:d_steyermark + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_carantania + } + } + show_as_tooltip = { + decision_restore_carantania_effect = yes + } + trigger_event = major_decisions.3400 + } + + cost = { + gold = { + value = 500 + if = { + limit = { + is_ai = yes + } + multiply = 0 + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/80_major_decisions_roman.txt b/common/decisions/80_major_decisions_roman.txt index 715a21e7b..0f4361d41 100644 --- a/common/decisions/80_major_decisions_roman.txt +++ b/common/decisions/80_major_decisions_roman.txt @@ -1,1484 +1,1533 @@ -##Restoring the Roman Empire (as Byzantium) -#### Restore the Roman Empire ### -#restore_roman_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" -# } -# desc = restore_roman_empire_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# decision_group_type = roman -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_byzantium -# NOT = { primary_title = title:e_hre } -# NOT = { primary_title = title:e_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_scripted_effect = yes -# } -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# } -# trigger_event = ep3_roman_restoration.0100 -# } -# else = { -# trigger_event = roman_restoration.0001 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restoring the Roman Empire (as HRE) -#### Restore the Roman Empire ### -#restore_roman_empire_holy_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = restore_roman_empire_holy_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# sort_order = 130 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_hre -# OR = { -# NOT = { has_title = title:e_byzantium } # Prioritize Byzaboos -# primary_title = title:e_hre -# } -# NOT = { primary_title = title:e_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_flag = government_is_administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_holy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0003 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restoring the Roman Empire (as Italia) -#### Restore the Roman Empire ### -#restore_roman_empire_italian_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = restore_roman_empire_italian_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# sort_order = 130 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_italy -# OR = { -# NAND = { -# has_title = title:e_byzantium #Prioritize Byzaboos -# has_title = title:e_hre #And the Germans -# } -# primary_title = title:e_italy -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# culture = { has_cultural_pillar = heritage_latin } -# is_target_in_global_variable_list = { #Only available after unifying Italy. -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_flag = government_is_administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_italy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0150 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restore the real Roman Empire -#### Form the Sultanate of Rum ### -#form_rum_sultanate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds" -# } -# desc = form_rum_sultanate_decision_desc -# selection_tooltip = form_rum_sultanate_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# is_landed = yes # Laamps don't need to know about this -# OR = { -# religion = religion:islam_religion -# culture = { has_cultural_pillar = heritage_turkic } -# } -# NOT = { culture = culture:greek } -# NOT = { OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion faith.religion = religion:oriental_orthodox_religion } } -# OR = { -# top_liege = this -# top_liege = { rite.religion = rite.religion:aqlani.religion } -# } -# capital_province = { -# OR = { -# geographical_region = world_persian_empire -# geographical_region = world_asia_minor -# geographical_region = custom_greater_armenia -# } -# } -# NOR = { -# exists = title:k_rum.holder -# top_liege = { is_roman_emperor_trigger = yes } -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_rum_sultanate -# } -# } -# OR = { -# highest_held_title_tier < 4 #Dukes or lower, splitting off from Persia. -# AND = { -# highest_held_title_tier < 5 -# top_liege = this #Or just a fancy way to get a new King title. -# } -# } -# } -# -# is_valid = { -# prestige_level >= high_prestige_level -# piety_level >= high_piety_level -# completely_controls = title:d_cibyrrhaeot -# completely_controls = title:d_anatolia -# completely_controls = title:d_cappadocia -# completely_controls = title:d_charsianon -# completely_controls = title:d_paphlagonia -# completely_controls = title:d_armeniac -# completely_controls = title:d_chaldia -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = form_rum_sultanate_decision_effect_tooltip -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# create_rum_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0014 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_rum_sultanate -# } -# set_global_variable = { -# name = flag_formed_rum_sultanate -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Mend the Great Schism ### -#mend_the_great_schism_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = mend_the_great_schism_decision_desc -# selection_tooltip = mend_the_great_schism_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith.religion = faith:roman_catholic.religion #Christian Only -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_mended_great_schism -# } -# } -# highest_held_title_tier > 4 #Only Emperors -# } -# -# is_valid = { -# piety_level >= max_piety_level -# completely_controls = title:c_byzantion -# completely_controls = title:c_antiocheia -# completely_controls = title:c_jerusalem -# completely_controls = title:c_alexandria -# completely_controls = title:c_roma -# custom_description = { -# text = "mend_schism_byzantion_bishop" -# title:c_byzantion.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. -# } -# custom_description = { -# text = "mend_schism_antiocheia_bishop" -# title:c_antiocheia.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. -# } -# custom_description = { -# text = "mend_schism_jerusalem_bishop" -# title:c_jerusalem.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. -# } -# custom_description = { -# text = "mend_schism_alexandria_bishop" -# title:c_alexandria.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. -# } -# custom_description = { -# text = "mend_schism_roma_bishop" -# title:c_roma.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. -# } -# custom_description = { -# text = "mend_schism_no_rite" -# root.faith = { NOT = { has_doctrine_parameter = maintains_head_of_faith_on_creation } } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# gain_holy_legend_seed_tooltip_effect = yes -# custom_tooltip = mend_the_great_schism_decision_effect_tooltip -# show_as_tooltip = { -# mend_great_schism_scripted_effect = yes -# } -# trigger_event = roman_restoration.0100 -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_mended_great_schism -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Reclaim Constantinople ### -#set_capital_constantinople_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" -# } -# desc = set_capital_constantinople_decision_desc -# selection_tooltip = set_capital_constantinople_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 12 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_byzantium -# NOT = { capital_county = { this = title:c_byzantion } } -# OR = { -# title:c_byzantion.holder = { -# any_liege_or_above = { this = root } -# } -# title:c_byzantion.holder = { this = root } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { title:c_byzantion.holder = { this = root } } -# } -# title:c_byzantion.holder = { save_scope_as = target_for_denunciation } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_byzantion = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# } -# set_realm_capital = title:c_byzantion -# if = { -# limit = { -# exists = scope:target_for_denunciation -# } -# scope:target_for_denunciation = { -# trigger_event = { -# id = roman_restoration.1204 -# } -# } -# } -# } -# ai_potential = { -# primary_title.tier = tier_empire -# has_title = title:e_byzantium -# } -# -# ai_will_do = { #Do it always, for coherence. -# base = 100 -# modifier = { -# title:c_byzantion.holder = { -# is_ai = no -# any_realm_county = { -# count < 2 -# holder = title:c_byzantion.holder -# } -# } -# factor = 0 -# } -# } -#} -# -#### Reclaim Rome ### -#set_capital_rome_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" -# } -# desc = set_capital_rome_decision_desc -# selection_tooltip = set_capital_rome_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 0 -# hegemony = 12 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:h_roman_empire -# NOT = { capital_county = { this = title:c_roma } } -# OR = { -# title:c_roma.holder = { -# any_liege_or_above = { this = root } -# } -# title:c_roma.holder = { this = root } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { title:c_roma_urbs.holder = { this = root } } -# } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_roma_urbs = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# } -# set_realm_capital = title:c_roma_urbs -# } -# -# ai_potential = { -# has_title = title:h_roman_empire -# } -# -# ai_will_do = { #Do it always, for coherence. -# base = 100 -# } -#} -# -#### Establish Iconoclast Patriarchate ### -#establish_iconoclast_patriarchate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = establish_iconoclast_patriarchate_decision_desc -# selection_tooltip = establish_iconoclast_patriarchate_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:iconoclast -# NOT = { faith = { exists = religious_head } } -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# is_valid = { -# completely_controls = title:c_byzantion -# piety_level >= medium_piety_level -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = establish_iconoclast_patriarchate_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0120 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# ai_value_modifier = { -# ai_zeal = 5.0 -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -#### Restore Ecumenical Patriarchate ### -#restore_ecumenical_patriarchate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = restore_ecumenical_patriarchate_decision_desc -# selection_tooltip = restore_ecumenical_patriarchate_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:orthodox -# NOT = { faith = { exists = religious_head } } -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# is_valid = { -# completely_controls = title:c_byzantion -# piety_level >= medium_piety_level -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_ecumenical_patriarchate_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0122 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# ai_value_modifier = { -# ai_zeal = 5.0 -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -#### Restore the Papacy ### -#restore_papacy_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = restore_papacy_decision_desc -# selection_tooltip = restore_papacy_decision_tooltip -# decision_group_type = major -# sort_order = 110 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# religion = religion:catholic_religion -# NOT = { faith = { exists = religious_head } } -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# is_valid = { -# completely_controls = title:c_roma -# completely_controls = title:d_latium -# completely_controls = title:d_spoleto -# completely_controls = title:d_ancona -# completely_controls = title:d_romagna -# piety_level >= high_piety_level -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_papacy_decision_effect_tooltip -# show_as_tooltip = { -# restore_papacy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0124 -# } -# } -# -# ai_potential = { -# religion = religion:catholic_religion -# highest_held_title_tier > 3 #Only Kings and Emperors -# NOT = { faith = { exists = religious_head } } -# } -# -# ai_will_do = { #Always do it when possible. -# base = 100 -# ai_value_modifier = { -# ai_zeal = 1.0 -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -#### Restore Pope in Rome ### -#restore_pope_in_rome_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = restore_pope_in_rome_decision_desc -# selection_tooltip = restore_pope_in_rome_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# religion = religion:catholic_religion -# NOR = { -# has_title = title:k_papal_state -# is_roman_emperor_excluding_byzantium_trigger = yes -# } -# NOT = { title:c_roma.holder = { has_title = title:k_papal_state } } -# NOT = { capital_county = { this = title:c_roma } } -# title:k_papal_state.holder ?= { -# NOT = { -# has_opinion_modifier = { #Not accepting it if you conquered it yourself. -# target = root -# modifier = declared_war -# } -# } -# NOT = { -# has_opinion_modifier = { #Not accepting it if you conquered it yourself. -# target = root -# modifier = revoked_title -# } -# } -# } -# NOT = { has_character_flag = flag_already_given_rome_once } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# highest_held_title_tier > 3 #Only Kings and Emperors -# custom_tooltip = { -# text = hof_exists_tt -# faith = { exists = religious_head } -# } -# custom_tooltip = { -# text = rome_held_by_you_or_vassal_tt -# OR = { -# title:c_roma.holder = { -# any_liege_or_above = { this = root } -# } -# title:c_roma.holder = { this = root } -# } -# } -# } -# -# effect = { -# add_piety = 1000 -# add_character_flag = flag_already_given_rome_once -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_roma = { -# change_title_holder = { -# holder = title:k_papal_state.holder -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# title:k_papal_state.holder = { -# set_realm_capital = title:c_roma -# add_opinion = { -# target = prev -# modifier = restored_papacy_opinion -# } -# } -# } -# -# ai_potential = { -# religion = religion:catholic_religion -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# ai_will_do = { #Do it always, for coherence. -# base = 100 -# modifier = { -# factor = 0 -# title:c_roma.holder = { -# OR = { -# is_ai = no -# any_liege_or_above = { is_ai = no } # AI will never take Rome province away from a player. -# } -# } -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# modifier = { -# factor = 0 -# has_title = title:e_italy -# } -# } -#} -# -#### Dismantle the Papacy ### -#dismantle_papacy_decision = { #For Muslims and Pagans. -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = dismantle_papacy_decision_desc -# selection_tooltip = dismantle_papacy_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith:roman_catholic = { -# has_doctrine = doctrine_spiritual_head -# } -# faith:roman_catholic = { -# faith_hostility_level = { -# target = root.faith -# value >= faith_hostile_level -# } -# } -# highest_held_title_tier > 3 #Only Kings and Emperors -# capital_province = { #Indians could not possibly care... -# OR = { -# geographical_region = world_europe -# geographical_region = world_middle_east -# geographical_region = world_africa_north -# } -# } -# } -# -# is_valid = { -# trigger_if = { -# limit = { -# exists = title:k_papal_state.holder -# } -# title:k_papal_state.holder = { is_landed = no } #If he fled elsewhere, it cannot be done, the Pope must be landless. -# title:k_papal_state.holder = { is_at_war = no } #Shouldn't be possible during a Crusade -# } -# completely_controls_region = world_europe_south_italy -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = dismantle_papacy_decision_effect_tooltip -# gain_holy_legend_seed_tooltip_effect = yes -# hidden_effect = { -# legend_seed_great_deed_faith_effect = { -# ANTAGONIST = title:k_papal_state.holder -# OLD_FAITH = title:k_papal_state.holder.faith -# } -# } -# show_as_tooltip = { -# destroy_papacy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0130 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { #Do it always. -# base = 100 -# } -#} -# -##Uniting Italy -#### Unify Italy ### -#unify_italian_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = unify_italian_empire_decision_desc -# selection_tooltip = unify_italian_empire_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# culture = { has_cultural_pillar = heritage_latin } -# is_ruler = yes -# is_playable_character = yes -# highest_held_title_tier > 2 #Dukes and above -# capital_province = { geographical_region = world_europe_south_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# } -# NOT = { #Too late. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# NOT = { #Too late. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_reformed_carolingian_empire -# } -# } -# } -# -# is_valid = { -# prestige_level >= very_high_prestige_level -# has_title = title:e_italy -# #All the Peninsula -# completely_controls_region = world_europe_south_italy -# #And Illyria -# completely_controls_region = custom_roman_illyricum -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# custom_tooltip = unify_italian_empire_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0140 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# set_global_variable = { -# name = flag_unified_italian_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Roman Empires showdown decision. -#### Dismantle German Pretenders ### -#dismantle_holy_pretender_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = dismantle_holy_pretender_decision_desc -# selection_tooltip = dismantle_holy_pretender_decision_tooltip -# decision_group_type = roman -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# exists = title:e_hre.holder #Must exist in the first place... -# NOT = { -# root = title:e_hre.holder #That'd be awkward... -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# culture = { has_cultural_pillar = heritage_latin } -# } -# is_ruler = yes -# is_playable_character = yes -# is_roman_emperor_trigger = yes -# NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. -# has_character_flag = flag_emperor_challenging_hre #Applied below. -# has_character_flag = flag_emperor_challenged_hre #Applied in war. -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# #All the Italian Peninsula -# completely_controls_region = world_europe_south_italy -# #And Lotharingia (the Rhine). -# completely_controls = title:d_luxembourg -# completely_controls = title:d_liege -# completely_controls = title:d_brabant -# completely_controls = title:d_cologne -# completely_controls = title:d_upper_lorraine -# completely_controls = title:d_lower_lorraine -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# prestige = 2000 -# } -# -# effect = { -# custom_tooltip = dismantle_holy_pretender_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0160 -# } -# } -# -# ai_potential = { -# has_trait = ambitious -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Dismantle Greek Pretenders ### -#dismantle_byz_pretender_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = dismantle_byz_pretender_decision_desc -# selection_tooltip = dismantle_byz_pretender_decision_tooltip -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# exists = title:e_byzantium.holder #Must exist in the first place... -# NOT = { -# root = title:e_byzantium.holder #That'd be awkward... -# } -# OR = { -# culture = { has_cultural_pillar = heritage_frankish } -# culture = { has_cultural_pillar = heritage_central_germanic } -# culture = { has_cultural_pillar = heritage_latin } -# } -# is_ruler = yes -# is_playable_character = yes -# OR = { -# is_roman_emperor_trigger = yes -# has_title = title:e_hre -# } -# NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. -# has_character_flag = flag_emperor_challenging_byz #Applied below. -# has_character_flag = flag_emperor_challenged_byz #Applied in war. -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# #All the Italian Peninsula -# completely_controls_region = world_europe_south_italy -# #And Epirus/Hellas (Greek foothold). -# completely_controls = title:d_dyrrachion -# completely_controls = title:d_cephalonia -# completely_controls = title:d_epirus -# completely_controls = title:d_athens -# completely_controls = title:d_peloponnese -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# prestige = 2000 -# } -# -# effect = { -# custom_tooltip = dismantle_byz_pretender_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0170 -# } -# } -# -# ai_potential = { -# has_trait = ambitious -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -############################################## -## Rebuke Roman Claim to Sicily # -## by Ewan Cowhig Croft # -############################################## -# -#rebuke_roman_revanchism_sicily = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds" -# } -# decision_group_type = major -# sort_order = 100 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# desc = rebuke_roman_revanchism_sicily_desc -# selection_tooltip = rebuke_roman_revanchism_sicily_tooltip -# -# is_shown = { -# # Standard filter checks. -# is_playable_character = yes -# # Sicily is still under the ERE. -# title:e_byzantium = { is_de_jure_liege_or_above_target = title:k_sicily } -# # Has land in Sicily. -# any_held_title = { -# title_tier = county -# title_province = { geographical_region = custom_sicily } -# } -# # Outside the ERE. -# NOR = { -# has_title = title:e_byzantium -# any_liege_or_above = { has_title = title:e_byzantium } -# } -# # Aaaaaaand it's already happened in 1178. -# NOT = { game_start_date >= 1178.10.1 } -# # Not repeatable. -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_rebuked_roman_claim_to_sicily -# } -# } -# } -# -# is_valid = { -# # Must be independent. -# top_liege = this -# # Should have a decent prestige level. -# prestige_level >= high_prestige_level -# OR = { -# # You've got most things and no ERE. -# AND = { -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.lower_tally -# any_county_in_region = { -# region = custom_sicily -# count >= rebuke_roman_revanchism_sicily_requirements_some_ere_county_value -# rebuke_roman_revanchism_counties_controlled_trigger = yes -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_booted -# NOT = { -# any_county_in_region = { -# region = custom_sicily -# rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes -# } -# } -# } -# } -# # You've got even more things but there's still some ERE. -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.higher_tally -# any_county_in_region = { -# region = custom_sicily -# count >= rebuke_roman_revanchism_sicily_requirements_no_ere_county_value -# rebuke_roman_revanchism_counties_controlled_trigger = yes -# } -# } -# } -# title:k_sicily = { -# OR = { -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.sicily_has_no_holder -# is_title_created = no -# } -# holder = root -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_cant_be_revanchising -# OR = { -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:retake_eastern_provinces_decision -# } -# } -# NOT = { exists = title:e_byzantium.holder } -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_not_in_italy -# NOT = { -# any_county_in_region = { -# region = world_europe_south_italy -# count >= rebuke_roman_revanchism_sicily_requirements_no_ere_in_italy_county_value -# rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { is_available_at_peace_adult = yes } -# -# effect = { -# save_scope_as = taker -# show_as_tooltip = { -# random_list = { -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.1 -# title:k_sicily = { set_de_jure_liege_title = title:e_italy } -# } -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.2 -# title:k_sicily = { set_de_jure_liege_title = title:e_maghreb } -# } -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.3 -# trigger = { rebuke_roman_revanchism_sicily_controls_unlisted_empire_trigger = yes } -# title:k_sicily = { set_de_jure_liege_title = root.primary_title } -# } -# } -# add_prestige_experience = rebuke_roman_revanchism_sicily_fame_reward_value -# } -# trigger_event = roman_restoration.1211 -# # Notifying other players is done in scope:taker's event, as scope:taker may change the circumstances of the decision with their option choice. -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_rebuked_roman_claim_to_sicily -# } -# } -# } -# -# cost = { prestige = 1000 } -# -# ai_potential = { always = yes } -# -# # We always want them to do this if they can. -# ai_will_do = { base = 1000 } -#} -# \ No newline at end of file +#Restoring the Roman Empire (as Byzantium) +### Restore the Roman Empire ### +restore_roman_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" + } + desc = restore_roman_empire_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + decision_group_type = roman + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + has_title = title:e_byzantium + is_playable_character = yes + NOT = { primary_title = title:e_hre } + NOT = { primary_title = title:e_italy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + OR = { + government_has_flag = government_is_republic + government_has_mechanic = administrative + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + } + is_ruler = yes + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_scripted_effect = yes + } + if = { + limit = { + has_ep3_dlc_trigger = yes + } + trigger_event = ep3_roman_restoration.0100 + } + else = { + trigger_event = roman_restoration.0001 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restoring the Roman Empire (as HRE) +### Restore the Roman Empire ### +restore_roman_empire_holy_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = restore_roman_empire_holy_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + sort_order = 130 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + has_title = title:e_hre + is_playable_character = yes + OR = { + NOT = { has_title = title:e_byzantium } # Prioritize Byzaboos + primary_title ?= title:e_hre + } + NOT = { primary_title = title:e_italy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + OR = { + government_has_flag = government_is_republic + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_mechanic = administrative + } + is_ruler = yes + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_holy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0003 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restoring the Roman Empire (as Italia) +### Restore the Roman Empire ### +restore_roman_empire_italian_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = restore_roman_empire_italian_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + sort_order = 130 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_target_in_global_variable_list = { #Only available after unifying Italy. + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + is_playable_character = yes + has_title = title:e_italy + OR = { + NAND = { + has_title = title:e_byzantium #Prioritize Byzaboos + has_title = title:e_hre #And the Germans + } + primary_title ?= title:e_italy + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + culture ?= { has_cultural_pillar = heritage_latin } + OR = { + government_has_flag = government_is_republic + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_mechanic = administrative + } + is_ruler = yes + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_italy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0150 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restore the real Roman Empire +### Form the Sultanate of Rum ### +form_rum_sultanate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds" + } + desc = form_rum_sultanate_decision_desc + selection_tooltip = form_rum_sultanate_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_landed = yes # Laamps don't need to know about this + OR = { + culture ?= { has_cultural_pillar = heritage_turkic } + religion ?= religion:islam_religion + } + is_playable_character = yes + OR = { + top_liege ?= this + top_liege ?= { faith.religion = faith:sunni.religion } + } + capital_province ?= { + OR = { + geographical_region = world_persian_empire + geographical_region = world_asia_minor + geographical_region = custom_greater_armenia + } + } + OR = { + highest_held_title_tier < 4 #Dukes or lower, splitting off from Persia. + AND = { + top_liege ?= this #Or just a fancy way to get a new King title. + highest_held_title_tier < 5 + } + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_rum_sultanate + } + } + NOR = { + top_liege ?= { is_roman_emperor_trigger = yes } + exists = title:k_rum.holder + } + NOT = { faith.religion = religion:christianity_religion } + NOT = { culture = culture:greek } + is_ruler = yes + } + + is_valid = { + prestige_level >= high_prestige_level + piety_level >= high_piety_level + completely_controls = title:d_cibyrrhaeot + completely_controls = title:d_anatolia + completely_controls = title:d_cappadocia + completely_controls = title:d_charsianon + completely_controls = title:d_paphlagonia + completely_controls = title:d_armeniac + completely_controls = title:d_chaldia + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + custom_tooltip = form_rum_sultanate_decision_effect_tooltip + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + create_rum_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0014 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_rum_sultanate + } + set_global_variable = { + name = flag_formed_rum_sultanate + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Mend the Great Schism ### conquest path, still valid, but since PAM it has a twin decision with a diplomatic route +mend_the_great_schism_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/pam_decision_send_legatine_mission.dds" + } + desc = mend_the_great_schism_decision_desc + selection_tooltip = mend_the_great_schism_decision_tooltip + decision_group_type = religious + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + faith.religion ?= faith:catholic.religion #Christian Only + is_playable_character = yes + # Schism has happened + has_global_variable = pam_great_schism_decision_taken + NOT = { has_global_variable = pam_great_schism_prevented } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_mended_great_schism + } + } + OR = { + completely_controls = title:c_byzantion + completely_controls = title:c_antiocheia + completely_controls = title:c_jerusalem + completely_controls = title:c_alexandria + completely_controls = title:c_roma + } + is_ruler = yes + } + + is_valid = { + highest_held_title_tier > 4 #Only Emperors+ + piety_level >= max_piety_level + custom_tooltip = { + text = pam_christian_church_stability_tt + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_mending_the_schism_active + } + } + completely_controls = title:c_byzantion + completely_controls = title:c_antiocheia + completely_controls = title:c_jerusalem + completely_controls = title:c_alexandria + completely_controls = title:c_roma + custom_description = { + text = "mend_schism_byzantion_bishop" + title:c_byzantion.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. + } + custom_description = { + text = "mend_schism_antiocheia_bishop" + title:c_antiocheia.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. + } + custom_description = { + text = "mend_schism_jerusalem_bishop" + title:c_jerusalem.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. + } + custom_description = { + text = "mend_schism_alexandria_bishop" + title:c_alexandria.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. + } + custom_description = { + text = "mend_schism_roma_bishop" + title:c_roma.holder.faith = root.faith #Either own County directly, or have a vassal of same religion. + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + custom_tooltip = { + text = you_caused_great_schism + NOT = { has_variable = pam_caused_the_great_schism_var } + } + } + + effect = { + gain_holy_legend_seed_tooltip_effect = yes + show_as_tooltip = { + mend_great_schism_scripted_effect = yes + } + pam_mend_great_schism_reward_effect = { + MODIFIER = pam_mended_great_schism_military_dynasty_modifier + CHARACTER_MODIFIER = pam_mended_great_schism_military_character_modifier + } + trigger_event = roman_restoration.0100 + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_mended_great_schism + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Reclaim Constantinople ### +set_capital_constantinople_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = set_capital_constantinople_decision_desc + selection_tooltip = set_capital_constantinople_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 12 + hegemony = 0 + } + + is_shown = { + has_title = title:e_byzantium + NOT = { capital_county = { this = title:c_byzantion } } + is_playable_character = yes + OR = { + title:c_byzantion.holder ?= { this = root } + title:c_byzantion.holder ?= { + any_liege_or_above = { this = root } + } + } + is_ruler = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_byzantion.holder = { this = root } } + } + title:c_byzantion.holder = { save_scope_as = target_for_denunciation } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_byzantion = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + } + set_realm_capital = title:c_byzantion + if = { + limit = { + exists = scope:target_for_denunciation + } + scope:target_for_denunciation = { + trigger_event = { + id = roman_restoration.1204 + } + } + } + } + ai_potential = { + primary_title.tier = tier_empire + has_title = title:e_byzantium + } + + ai_will_do = { #Do it always, for coherence. + base = 100 + modifier = { + title:c_byzantion.holder = { + is_ai = no + any_realm_county = { + count < 2 + holder = title:c_byzantion.holder + } + } + factor = 0 + } + } +} + +### Reclaim Rome ### +set_capital_rome_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = set_capital_rome_decision_desc + selection_tooltip = set_capital_rome_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 12 + } + + is_shown = { + has_title = title:h_roman_empire + is_playable_character = yes + NOT = { capital_county = { this = title:c_roma_urbs } } + OR = { + title:c_roma_urbs.holder = { + any_liege_or_above = { this = root } + } + title:c_roma_urbs.holder = { this = root } + } + is_ruler = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_roma_urbs.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma_urbs = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + } + set_realm_capital = title:c_roma_urbs + } + + ai_potential = { + has_title = title:h_roman_empire + } + + ai_will_do = { #Do it always, for coherence. + base = 100 + } +} + +### Establish Iconoclast Patriarchate ### +establish_iconoclast_patriarchate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = establish_iconoclast_patriarchate_decision_desc + selection_tooltip = establish_iconoclast_patriarchate_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + is_shown = { + highest_held_title_tier > 3 #Only Kings and Emperors + faith ?= faith:iconoclast + is_playable_character = yes + NOT = { faith = { exists = religious_head } } + is_ruler = yes + } + + is_valid = { + completely_controls = title:c_byzantion + piety_level >= medium_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = establish_iconoclast_patriarchate_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0120 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + ai_value_modifier = { + ai_zeal = 5.0 + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +### Restore Ecumenical Patriarchate ### +restore_ecumenical_patriarchate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = restore_ecumenical_patriarchate_decision_desc + selection_tooltip = restore_ecumenical_patriarchate_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + is_shown = { + highest_held_title_tier > 3 #Only Kings and Emperors + faith ?= faith:orthodox + NOT = { faith = { exists = religious_head } } + is_playable_character = yes + is_ruler = yes + } + + is_valid = { + completely_controls = title:c_byzantion + piety_level >= medium_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_ecumenical_patriarchate_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0122 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + ai_value_modifier = { + ai_zeal = 5.0 + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +### Restore the Papacy ### +restore_papacy_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = restore_papacy_decision_desc + selection_tooltip = restore_papacy_decision_tooltip + decision_group_type = major + sort_order = 110 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + is_shown = { + highest_held_title_tier > 3 #Only Kings and Emperors + faith ?= faith:catholic + NOT = { faith = { exists = religious_head } } + is_playable_character = yes + is_ruler = yes + } + + is_valid = { + completely_controls = title:c_roma + completely_controls = title:d_latium + completely_controls = title:d_spoleto + completely_controls = title:d_ancona + completely_controls = title:d_romagna + piety_level >= high_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_papacy_decision_effect_tooltip + show_as_tooltip = { + restore_papacy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0124 + } + } + + ai_potential = { + faith = faith:catholic + highest_held_title_tier > 3 #Only Kings and Emperors + NOT = { faith = { exists = religious_head } } + } + + ai_will_do = { #Always do it when possible. + base = 100 + ai_value_modifier = { + ai_zeal = 1.0 + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +### Restore Pope in Rome ### +restore_pope_in_rome_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = restore_pope_in_rome_decision_desc + selection_tooltip = restore_pope_in_rome_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + is_shown = { + faith ?= faith:catholic + NOT = { title:c_roma.holder = { has_title = title:k_papal_state } } + is_playable_character = yes + NOR = { + has_title = title:k_papal_state + is_roman_emperor_excluding_byzantium_trigger = yes + } + NOT = { capital_county = { this = title:c_roma } } + title:k_papal_state.holder ?= { + NOR = { + has_opinion_modifier = { #Not accepting it if you conquered it yourself. + target = root + modifier = declared_war + } + has_opinion_modifier = { #Not accepting it if you conquered it yourself. + target = root + modifier = revoked_title + } + } + } + NOT = { has_character_flag = flag_already_given_rome_once } + is_ruler = yes + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + highest_held_title_tier > 3 #Only Kings and Emperors + custom_tooltip = { + text = hof_exists_tt + faith = { exists = religious_head } + } + custom_tooltip = { + text = rome_held_by_you_or_vassal_tt + OR = { + title:c_roma.holder = { + any_liege_or_above = { this = root } + } + title:c_roma.holder = { this = root } + } + } + } + + effect = { + add_piety = 1000 + add_character_flag = flag_already_given_rome_once + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = title:k_papal_state.holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + title:k_papal_state.holder = { + set_realm_capital = title:c_roma + add_opinion = { + target = prev + modifier = restored_papacy_opinion + } + } + } + + ai_potential = { + faith = faith:catholic + highest_held_title_tier > 3 #Only Kings and Emperors + } + + ai_will_do = { #Do it always, for coherence. + base = 100 + modifier = { + factor = 0 + title:c_roma.holder = { + OR = { + is_ai = no + any_liege_or_above = { is_ai = no } # AI will never take Rome province away from a player. + } + } + } + modifier = { + factor = 0 + has_trait = cynical + } + modifier = { + factor = 0 + has_title = title:e_italy + } + } +} + +### Dismantle the Papacy ### +dismantle_papacy_decision = { #For Muslims and Pagans. + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = dismantle_papacy_decision_desc + selection_tooltip = dismantle_papacy_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + is_shown = { + highest_held_title_tier > 3 #Only Kings and Emperors + capital_province ?= { #Indians could not possibly care... + OR = { + geographical_region = world_europe + geographical_region = world_middle_east + geographical_region = world_africa_north + } + } + faith:catholic = { + faith_hostility_level = { + target = root.faith + value >= faith_hostile_level + } + } + trigger_if = { + limit = { + is_ai = no + } + any_sub_realm_county = { + title_province = { + geographical_region = world_europe_south_italy + } + } + } + is_playable_character = yes + title:k_papal_state.holder.faith ?= faith:catholic # To avoid it showing for Chalcedonianism + faith:catholic = { + has_doctrine = doctrine_spiritual_head + } + is_ruler = yes + } + + is_valid = { + trigger_if = { + limit = { + exists = title:k_papal_state.holder + } + title:k_papal_state.holder = { is_landed = no } #If he fled elsewhere, it cannot be done, the Pope must be landless. + title:k_papal_state.holder = { is_at_war = no } #Shouldn't be possible during a Crusade + } + completely_controls_region = world_europe_south_italy + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = dismantle_papacy_decision_effect_tooltip + gain_holy_legend_seed_tooltip_effect = yes + hidden_effect = { + legend_seed_great_deed_faith_effect = { + ANTAGONIST = title:k_papal_state.holder + OLD_FAITH = title:k_papal_state.holder.faith + } + } + show_as_tooltip = { + destroy_papacy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0130 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { #Do it always. + base = 100 + } +} + +#Uniting Italy +### Unify Italy ### +unify_italian_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = unify_italian_empire_decision_desc + selection_tooltip = unify_italian_empire_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + highest_held_title_tier > 2 #Dukes and above + culture ?= { has_cultural_pillar = heritage_latin } + is_playable_character = yes + capital_province ?= { geographical_region = world_europe_south_italy } + NOR = { + #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + #Too late. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + #Too late. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_reformed_carolingian_empire + } + } + is_ruler = yes + } + + is_valid = { + prestige_level >= very_high_prestige_level + has_title = title:e_italy + #All the Peninsula + completely_controls_region = world_europe_south_italy + #And Illyria + completely_controls_region = custom_roman_illyricum + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + custom_tooltip = unify_italian_empire_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0140 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + set_global_variable = { + name = flag_unified_italian_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Roman Empires showdown decision. +### Dismantle German Pretenders ### +dismantle_holy_pretender_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = dismantle_holy_pretender_decision_desc + selection_tooltip = dismantle_holy_pretender_decision_tooltip + decision_group_type = roman + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + OR = { + culture ?= { has_cultural_pillar = heritage_latin } + culture ?= { has_cultural_pillar = heritage_byzantine } + } + is_roman_emperor_trigger = yes + has_none_of_variables = { + #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. + name = flag_emperor_challenging_hre #Applied below. + name = flag_emperor_challenged_hre #Applied in war. + } + NOT = { + root = title:e_hre.holder #That'd be awkward... + } + exists = title:e_hre.holder #Must exist in the first place... + is_playable_character = yes + is_roman_emperor_trigger = yes + NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. + has_character_flag = flag_emperor_challenging_hre #Applied below. + has_character_flag = flag_emperor_challenged_hre #Applied in war. + } + OR = { + completely_controls = title:d_luxembourg + completely_controls = title:d_liege + completely_controls = title:d_brabant + completely_controls = title:d_julich + completely_controls = title:d_upper_lorraine + completely_controls = title:d_lower_lorraine + } + is_ruler = yes + } + + is_valid = { + prestige_level >= max_prestige_level + #All the Italian Peninsula + completely_controls_region = world_europe_south_italy + #And Lotharingia (the Rhine). + completely_controls = title:d_luxembourg + completely_controls = title:d_liege + completely_controls = title:d_brabant + completely_controls = title:d_julich + completely_controls = title:d_upper_lorraine + completely_controls = title:d_lower_lorraine + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + prestige = 2000 + } + + effect = { + custom_tooltip = dismantle_holy_pretender_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0160 + } + } + + ai_potential = { + has_trait = ambitious + } + + ai_will_do = { + base = 100 + } +} + +### Dismantle Greek Pretenders ### +dismantle_byz_pretender_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = dismantle_byz_pretender_decision_desc + selection_tooltip = dismantle_byz_pretender_decision_tooltip + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + OR = { + culture ?= { has_cultural_pillar = heritage_central_germanic } + culture ?= { has_cultural_pillar = heritage_frankish } + culture ?= { has_cultural_pillar = heritage_latin } + } + is_playable_character = yes + OR = { + has_title = title:e_hre + is_roman_emperor_trigger = yes + } + has_none_of_variables = { + #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. + name = flag_emperor_challenging_byz #Applied below. + name = flag_emperor_challenged_byz #Applied in war. + } + NOT = { + root = title:e_byzantium.holder #That'd be awkward... + } + exists = title:e_byzantium.holder #Must exist in the first place... + is_ruler = yes + OR = { + completely_controls = title:d_dyrrachion + completely_controls = title:d_cephalonia + completely_controls = title:d_epirus + completely_controls = title:d_athens + completely_controls = title:d_achaia + } + } + + is_valid = { + prestige_level >= max_prestige_level + #All the Italian Peninsula + completely_controls_region = world_europe_south_italy + #And Epirus/Hellas (Greek foothold). + completely_controls = title:d_dyrrachion + completely_controls = title:d_cephalonia + completely_controls = title:d_epirus + completely_controls = title:d_athens + completely_controls = title:d_achaia + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + prestige = 2000 + } + + effect = { + custom_tooltip = dismantle_byz_pretender_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0170 + } + } + + ai_potential = { + has_trait = ambitious + } + + ai_will_do = { + base = 100 + } +} + +############################################# +# Rebuke Roman Claim to Sicily # +# by Ewan Cowhig Croft # +############################################# + +rebuke_roman_revanchism_sicily = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds" + } + decision_group_type = major + sort_order = 100 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + desc = rebuke_roman_revanchism_sicily_desc + selection_tooltip = rebuke_roman_revanchism_sicily_tooltip + + is_shown = { + # Has land in Sicily. + any_held_title = { + title_tier = county + title_province ?= { geographical_region = custom_sicily } + } + # Sicily is still under the ERE. + title:e_byzantium = { is_de_jure_liege_or_above_target = title:k_sicily } + # Outside the ERE. + NOR = { + any_liege_or_above = { has_title = title:e_byzantium } + has_title = title:e_byzantium + } + # Aaaaaaand it's already happened in 1178. + NOT = { game_start_date >= 1178.10.1 } + # Not repeatable. + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_rebuked_roman_claim_to_sicily + } + } + # Standard filter checks. + is_playable_character = yes + } + + is_valid = { + # Must be independent. + top_liege = this + # Should have a decent prestige level. + prestige_level >= high_prestige_level + OR = { + # You've got most things and no ERE. + AND = { + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.lower_tally + any_county_in_region = { + region = custom_sicily + count >= rebuke_roman_revanchism_sicily_requirements_some_ere_county_value + rebuke_roman_revanchism_counties_controlled_trigger = yes + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_booted + NOT = { + any_county_in_region = { + region = custom_sicily + rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes + } + } + } + } + # You've got even more things but there's still some ERE. + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.higher_tally + any_county_in_region = { + region = custom_sicily + count >= rebuke_roman_revanchism_sicily_requirements_no_ere_county_value + rebuke_roman_revanchism_counties_controlled_trigger = yes + } + } + } + title:k_sicily = { + OR = { + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.sicily_has_no_holder + is_title_created = no + } + holder = root + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_cant_be_revanchising + OR = { + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:retake_eastern_provinces_decision + } + } + NOT = { exists = title:e_byzantium.holder } + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_not_in_italy + NOT = { + any_county_in_region = { + region = world_europe_south_italy + count >= rebuke_roman_revanchism_sicily_requirements_no_ere_in_italy_county_value + rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes + } + } + } + } + + is_valid_showing_failures_only = { is_available_at_peace_adult = yes } + + effect = { + save_scope_as = taker + show_as_tooltip = { + random_list = { + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.1 + title:k_sicily = { set_de_jure_liege_title = title:e_italy } + } + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.2 + title:k_sicily = { set_de_jure_liege_title = title:e_maghreb } + } + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.3 + trigger = { rebuke_roman_revanchism_sicily_controls_unlisted_empire_trigger = yes } + title:k_sicily = { set_de_jure_liege_title = root.primary_title } + } + } + add_prestige_experience = rebuke_roman_revanchism_sicily_fame_reward_value + } + trigger_event = roman_restoration.1211 + # Notifying other players is done in scope:taker's event, as scope:taker may change the circumstances of the decision with their option choice. + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_rebuked_roman_claim_to_sicily + } + } + } + + cost = { prestige = 1000 } + + ai_potential = { always = yes } + + # We always want them to do this if they can. + ai_will_do = { base = 1000 } +} diff --git a/common/decisions/80_major_decisions_south_asia.txt b/common/decisions/80_major_decisions_south_asia.txt index 1a455a0d1..31bbb38bb 100644 --- a/common/decisions/80_major_decisions_south_asia.txt +++ b/common/decisions/80_major_decisions_south_asia.txt @@ -1,705 +1,705 @@ ###DECISIONS LIST### -# + ## #Become Chakravarti #Become Lord/Lady of the Sacred River #Declare Bene Israel #Found the Empire of Hindustan ## -# -# -########### -##Become Chakravarti -## by Petter Vilberg -#### Become Chakravarti ### -#become_chakravarti_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/hindu_ruler.dds" -# } -# decision_group_type = major -# sort_order = 130 -# desc = become_chakravarti_decision_desc -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# OR = { -# religion = religion:hinduism_religion -# religion = religion:buddhism_religion -# religion = religion:jainism_religion -# } -# highest_held_title_tier >= tier_kingdom -# capital_province = { -# geographical_region = world_india -# } -# -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:become_chakravarti_decision -# } -# } -# } -# -# is_valid = { -# completely_controls = title:e_rajastan -# completely_controls = title:e_deccan -# completely_controls = title:e_bengal -# piety_level >= 5 -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_adult = yes -# is_available = yes -# top_liege = this -# } -# -# cost = { -# piety = { -# value = massive_piety_value -# } -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = massive_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = massive_gold_value -# } -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# #Can only happen once -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:become_chakravarti_decision -# } -# -# custom_tooltip = become_chakravarti_decision_indian_empires_unite_effect -# custom_tooltip = become_chakravarti_decision_new_primary_title_effect -# show_as_tooltip = { -# add_trait = chakravarti -# add_prestige = massive_prestige_value -# add_prestige_level = 2 -# faith = { -# add_doctrine = divine_destiny_doctrine -# change_fervor = { -# value = major_fervor_gain -# desc = fervor_gain_chakravarti -# } -# } -# } -# -# save_scope_as = chakravarti -# -# trigger_event = south_asia.0001 #I became the Chakravarti -# add_to_temporary_list = received_notification -# -# every_vassal_or_below = { -# if = { -# limit = { -# OR = { -# faith.religion = faith:vaishnavism.religion -# faith.religion = faith:theravada.religion -# faith.religion = faith:digambara.religion -# } -# } -# trigger_event = south_asia.0002 #My ruler became the Chakravarti -# } -# else = { -# trigger_event = south_asia.0003 #My ruler became the Chakravarti - convert? -# } -# add_to_temporary_list = received_notification -# } -# -# every_ruler = { -# limit = { -# NOT = { -# is_in_list = received_notification -# } -# } -# -# trigger_event = south_asia.0004 #Someone has become the Chakravarti -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -########### -##Become Lord/Lady of the Sacred River -## by Petter Vilberg -#### Take Stewardship of the Sacred River ### -#take_stewardship_of_the_sacred_river_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" -# } -# decision_group_type = major -# sort_order = 100 -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# desc = take_stewardship_of_the_sacred_river_decision_desc -# -# is_shown = { -# religion = religion:hinduism_religion -# highest_held_title_tier >= tier_duchy -# NOT = { has_character_modifier = ruler_of_the_ganges_modifier } -# #Only if the Hindu Mandala already has their capital in the area -# trigger_if = { -# limit = { government_has_flag = government_is_mandala } -# capital_province = { geographical_region = custom_ganges_plain } -# } -# } -# -# is_valid = { -# completely_controls_region = custom_ganges_plain -# custom_description = { -# text = capital_province_in_ganges_region -# capital_province = { geographical_region = custom_ganges_plain } -# } -# prestige_level >= 3 -# piety_level >= 1 -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_adult = yes -# is_available = yes -# trigger_if = { -# limit = { has_global_variable = ruler_of_ganges } -# custom_description = { -# text = capital_province_in_ganges_region -# NOR = { -# global_var:ruler_of_ganges = { -# is_alive = yes -# target_is_liege_or_above = root -# } -# AND = { -# global_var:ruler_of_ganges = { is_alive = yes } -# target_is_liege_or_above = global_var:ruler_of_ganges -# } -# } -# } -# } -# } -# -# cost = { -# piety = { -# value = major_prestige_value -# } -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = major_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = major_gold_value -# } -# } -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# take_stewardship_of_the_sacred_river_effect = yes -# } -# -# save_scope_as = ruler_of_ganges -# -# trigger_event = south_asia.0011 -# add_to_temporary_list = ruler_of_ganges_notification_sent -# -# if = { -# limit = { -# exists = global_var:ruler_of_ganges -# global_var:ruler_of_ganges = { -# is_alive = yes -# } -# } -# global_var:ruler_of_ganges = { -# trigger_event = { -# id = south_asia.0013 #Someone else has taken my title -# days = 3 -# } -# add_to_temporary_list = ruler_of_ganges_notification_sent -# } -# } -# -# if = { #Only send notification the first time the decision is taken -# limit = { -# NOT = { has_global_variable = ruler_of_ganges_notification_sent } -# } -# every_independent_ruler = { -# limit = { -# religion = religion:hinduism_religion -# } -# trigger_event = { -# id = south_asia.0012 -# days = 3 -# } -# add_to_temporary_list = ruler_of_ganges_notification_sent -# } -# set_global_variable = { -# name = ruler_of_ganges_notification_sent -# value = yes -# } -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -########### -##Declare Bene Israel -## by James Beaumont -#### Consolidate Bene Israel ### -#form_bene_israel_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# decision_group_type = major -# sort_order = 110 -# -# desc = form_bene_israel_decision_desc -# selection_tooltip = form_bene_israel_decision_tooltip -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:malabarism -# highest_held_title_tier = tier_duchy -# capital_province = { geographical_region = world_india } -# -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:form_bene_israel_decision -# } -# } -# } -# -# is_valid = { -# has_title = title:d_chera_nadu -# has_title = title:d_konkana -# completely_controls = title:d_chera_nadu -# completely_controls = title:d_konkana -# custom_description = { -# text = malabarism_religious_head_exists_tt -# subject = this -# faith = { exists = religious_head } -# } -# piety_level >= 3 -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_adult = yes -# is_available = yes -# top_liege = this -# } -# -# cost = { -# piety = { -# value = medium_piety_value -# } -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = medium_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = medium_gold_value -# } -# } -# } -# -# effect = { -# #Can only happen once -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:form_bene_israel_decision -# } -# -# save_scope_as = founder -# -# show_as_tooltip = { -# unite_bene_israel_effect = yes -# } -# -# trigger_event = south_asia.0021 #I formed Bene Israel -# -# every_player = { -# limit = { -# this != scope:founder -# top_liege = { -# OR = { -# this = scope:founder -# any_neighboring_and_across_water_top_liege_realm_owner = { this = scope:founder } -# } -# } -# } -# trigger_event = south_asia.0022 -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -####################################### -### Establish the Theravada Faith ## -### ## -### by Nick Meredith ## -### in memory of RDH ## -####################################### -# -#### Spread the [ROOT.Char.GetFaith.GetNameNoTooltip] Faith ### -#spread_theravada_faith_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" -# } -# decision_group_type = major -# sort_order = 100 -# title = spread_theravada_faith_decision -# desc = spread_theravada_faith_decision_desc -# confirm_text = spread_theravada_faith_decision_confirm # had to use an override for some reason -# selection_tooltip = spread_theravada_faith_decision_tooltip # same here -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# cooldown = { days = 365 } -# -# is_shown = { -# highest_held_title_tier >= tier_kingdom -# faith = faith:theravada -# -# OR = { -# culture = culture:burmese -# culture = culture:mon -# } -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:spread_theravada_faith_flag -# } -# } -# any_vassal = { #so that potential later events don't break -# has_faith = faith:ari -# is_powerful_vassal = yes -# } -# exists = cp:councillor_court_chaplain -# } -# -# is_valid = { -# highest_held_title_tier >= tier_kingdom -# faith = faith:theravada -# -# OR = { -# culture = culture:burmese -# culture = culture:mon -# } -# prestige_level >= 3 -# piety_level >= 2 -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# } -# -# cost = { -# piety = { -# value = major_piety_value -# } -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# } -# add = medium_gold_value -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# } -# add = medium_gold_value -# } -# } -# prestige = { -# value = massive_prestige_value -# } -# } -# -# effect = { -# -# show_as_tooltip = { -# custom_tooltip = spread_theravada_faith_decision_cus_tt -# } -# -# trigger_event = { -# id = south_asia.0030 -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -####################################### -### Found the empire of Hindustan ## -### ## -### by Henrik Lohmander ## -####################################### -# -#### Found the Empire of Hindustan ### -#found_the_empire_of_hindustan_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" -# } -# decision_group_type = major -# sort_order = 120 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 0 -# } -# -# is_shown = { -# is_landed_or_landless_administrative = yes -# exists = dynasty # Everyone should have a dynasty, but in case they don't... -# NOT = { #Title existance conditions. -# exists = title:e_hindustan.holder #Empire of Hindustan -# } -# capital_province = { -# OR = { -# geographical_region = world_khorasan -# geographical_region = world_transoxiana -# geographical_region = world_makran -# geographical_region = world_kabulistan -# geographical_region = world_india -# geographical_region = world_burma -# } -# } -# NOT = { #You can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_founded_hindustan -# } -# } -# faith = { -# religion_tag = islam_religion -# } -# OR = { #Government conditions. -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# government_has_mechanic = administrative -# government_has_flag = government_is_landless_adventurer -# government_has_flag = government_is_merchant -# } -# OR = { -# highest_held_title_tier <= tier_kingdom -# has_title = title:e_bengal -# has_title = title:e_deccan -# has_title = title:e_rajastan -# } -# } -# -# is_valid = { -# #Standard requirements. -# is_independent_ruler = yes -# prestige_level >= very_high_prestige_level -# piety_level >= high_piety_level -# #Title ownership conditions. -# #This is currently significantly easier for AI to get the ball rolling -# trigger_if = { -# limit = { -# is_ai = yes -# } -# OR = { -# completely_controls = title:k_punjab -# has_title = title:k_punjab -# } -# OR = { -# completely_controls = title:k_delhi -# has_title = title:k_delhi -# } -# } -# trigger_if = { -# limit = { -# is_ai = no -# } #And have some additional royal dignity for good measure. -# has_title = title:k_punjab -# has_title = title:k_delhi -# completely_controls = title:d_kuru -# OR = { -# has_title = title:k_kosala -# has_title = title:k_malwa -# has_title = title:k_rajputana -# } -# } -# sub_realm_size >= 40 #This is roughly equal to Punjab, Delhi and Kosala. -# -# #HoF preference conditions. -# trigger_if = { -# limit = { -# is_ai = no -# exists = faith.religious_head -# } -# OR = { -# faith.religious_head = { #And they have to actually like you enough to want to invest you. -# opinion = { -# target = root -# value >= high_positive_opinion -# } -# } -# root = { has_strong_usable_hook = faith.religious_head } #Or you have a strong hook on them that you can actually use. -# root = { has_weak_hook = faith.religious_head } #Or a regular hook, to be fair, provided you meet the other criteria. -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# save_scope_as = founder -# show_as_tooltip = { -# found_empire_of_hindustan_scripted_effect = yes -# } -# gain_heroic_legend_seed_tooltip_effect = yes -# if = { -# limit = { -# faith.religious_head ?= { is_playable_character = yes } -# } -# faith.religious_head = { save_scope_as = founder_hof } -# faith.religious_head.capital_province = { save_scope_as = ceremony_locale } -# } -# else = { -# capital_province = { save_scope_as = ceremony_locale } -# } -# trigger_event = { -# id = south_asia.0050 -# } -# #Notify other players. -# every_player = { -# limit = { -# is_ai = no -# NOT = { this = root } -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = south_asia.0051 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_founded_hindustan -# } -# } -# } -# -# cost = { -# gold = { -# value = 0 -# if = { -# limit = { -# has_treasury = no -# is_ai = no -# } -# add = 500 -# } -# } -# treasury = { -# value = 0 -# if = { -# limit = { -# has_treasury = yes -# is_ai = no -# } -# add = 500 -# } -# } -# piety = 200 -# } -# -# ai_potential = { -# is_independent_ruler = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file + + +########## +#Become Chakravarti +# by Petter Vilberg +### Become Chakravarti ### +become_chakravarti_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/hindu_ruler.dds" + } + decision_group_type = major + sort_order = 130 + desc = become_chakravarti_decision_desc + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + highest_held_title_tier >= tier_kingdom + OR = { + religion ?= religion:buddhism_religion + religion ?= religion:hinduism_religion + religion ?= religion:jainism_religion + } + capital_province ?= { + geographical_region = world_india + } + + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:become_chakravarti_decision + } + } + } + + is_valid = { + completely_controls = title:e_rajastan + completely_controls = title:e_deccan + completely_controls = title:e_bengal + piety_level >= 5 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_adult = yes + is_available = yes + top_liege = this + } + + cost = { + piety = { + value = massive_piety_value + } + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = massive_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = massive_gold_value + } + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + #Can only happen once + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:become_chakravarti_decision + } + + custom_tooltip = become_chakravarti_decision_indian_empires_unite_effect + custom_tooltip = become_chakravarti_decision_new_primary_title_effect + show_as_tooltip = { + add_trait = chakravarti + add_prestige = massive_prestige_value + add_prestige_level = 2 + faith = { + add_doctrine = divine_destiny_doctrine + change_fervor = { + value = major_fervor_gain + desc = fervor_gain_chakravarti + } + } + } + + save_scope_as = chakravarti + + trigger_event = south_asia.0001 #I became the Chakravarti + add_to_temporary_list = received_notification + + every_vassal_or_below = { + if = { + limit = { + OR = { + faith.religion = faith:vaishnava_faith.religion + faith.religion = faith:theravada_faith.religion + faith.religion = faith:jain_faith.religion + } + } + trigger_event = south_asia.0002 #My ruler became the Chakravarti + } + else = { + trigger_event = south_asia.0003 #My ruler became the Chakravarti - convert? + } + add_to_temporary_list = received_notification + } + + every_ruler = { + limit = { + NOT = { + is_in_list = received_notification + } + } + + trigger_event = south_asia.0004 #Someone has become the Chakravarti + } + } + + ai_will_do = { + base = 100 + } +} + +########## +#Become Lord/Lady of the Sacred River +# by Petter Vilberg +### Take Stewardship of the Sacred River ### +take_stewardship_of_the_sacred_river_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" + } + decision_group_type = major + sort_order = 100 + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + desc = take_stewardship_of_the_sacred_river_decision_desc + + is_shown = { + highest_held_title_tier >= tier_duchy + religion ?= religion:hinduism_religion + #Only if the Hindu Mandala already has their capital in the area + trigger_if = { + limit = { government_has_flag = government_is_mandala } + capital_province = { geographical_region = custom_ganges_plain } + } + NOT = { has_character_modifier = ruler_of_the_ganges_modifier } + } + + is_valid = { + completely_controls_region = custom_ganges_plain + custom_description = { + text = capital_province_in_ganges_region + capital_province = { geographical_region = custom_ganges_plain } + } + prestige_level >= 3 + piety_level >= 1 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_adult = yes + is_available = yes + trigger_if = { + limit = { has_global_variable = ruler_of_ganges } + custom_description = { + text = capital_province_in_ganges_region + NOR = { + global_var:ruler_of_ganges = { + is_alive = yes + target_is_liege_or_above = root + } + AND = { + global_var:ruler_of_ganges = { is_alive = yes } + target_is_liege_or_above = global_var:ruler_of_ganges + } + } + } + } + } + + cost = { + piety = { + value = major_prestige_value + } + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = major_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = major_gold_value + } + } + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + take_stewardship_of_the_sacred_river_effect = yes + } + + save_scope_as = ruler_of_ganges + + trigger_event = south_asia.0011 + add_to_temporary_list = ruler_of_ganges_notification_sent + + if = { + limit = { + exists = global_var:ruler_of_ganges + global_var:ruler_of_ganges = { + is_alive = yes + } + } + global_var:ruler_of_ganges = { + trigger_event = { + id = south_asia.0013 #Someone else has taken my title + days = 3 + } + add_to_temporary_list = ruler_of_ganges_notification_sent + } + } + + if = { #Only send notification the first time the decision is taken + limit = { + NOT = { has_global_variable = ruler_of_ganges_notification_sent } + } + every_independent_ruler = { + limit = { + religion = religion:hinduism_religion + } + trigger_event = { + id = south_asia.0012 + days = 3 + } + add_to_temporary_list = ruler_of_ganges_notification_sent + } + set_global_variable = { + name = ruler_of_ganges_notification_sent + value = yes + } + } + } + + ai_will_do = { + base = 100 + } +} + +########## +#Declare Bene Israel +# by James Beaumont +### Consolidate Bene Israel ### +form_bene_israel_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + decision_group_type = major + sort_order = 110 + + desc = form_bene_israel_decision_desc + selection_tooltip = form_bene_israel_decision_tooltip + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + highest_held_title_tier = tier_duchy + faith ?= faith:malabarism + is_playable_character = yes + capital_province ?= { geographical_region = world_india } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:form_bene_israel_decision + } + } + + is_ruler = yes + } + + is_valid = { + has_title = title:d_chera_nadu + has_title = title:d_konkana + completely_controls = title:d_chera_nadu + completely_controls = title:d_konkana + custom_description = { + text = malabarism_religious_head_exists_tt + subject = this + faith = { exists = religious_head } + } + piety_level >= 3 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_adult = yes + is_available = yes + top_liege = this + } + + cost = { + piety = { + value = medium_piety_value + } + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = medium_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = medium_gold_value + } + } + } + + effect = { + #Can only happen once + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:form_bene_israel_decision + } + + save_scope_as = founder + + show_as_tooltip = { + unite_bene_israel_effect = yes + } + + trigger_event = south_asia.0021 #I formed Bene Israel + + every_player = { + limit = { + this != scope:founder + top_liege = { + OR = { + this = scope:founder + any_neighboring_and_across_water_top_liege_realm_owner = { this = scope:founder } + } + } + } + trigger_event = south_asia.0022 + } + } + + ai_will_do = { + base = 100 + } +} + +###################################### +## Establish the Theravada Faith ## +## ## +## by Nick Meredith ## +## in memory of RDH ## +###################################### + +### Spread the [ROOT.Char.GetFaith.GetNameNoTooltip] Faith ### +spread_theravada_faith_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" + } + decision_group_type = major + sort_order = 100 + title = spread_theravada_faith_decision + desc = spread_theravada_faith_decision_desc + confirm_text = spread_theravada_faith_decision_confirm # had to use an override for some reason + selection_tooltip = spread_theravada_faith_decision_tooltip # same here + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + cooldown = { days = 365 } + + is_shown = { + highest_held_title_tier >= tier_kingdom + any_vassal = { #so that potential later events don't break + has_faith = faith:theravada_faith + is_powerful_vassal = yes + } + + exists = cp:councillor_court_chaplain + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:spread_theravada_faith_flag + } + } + OR = { + culture ?= culture:mon + culture ?= culture:burmese + } + faith ?= faith:theravada_faith + } + + is_valid = { + highest_held_title_tier >= tier_kingdom + faith = faith:theravada_faith + + OR = { + culture = culture:burmese + culture = culture:mon + } + prestige_level >= 3 + piety_level >= 2 + } + + is_valid_showing_failures_only = { + is_landed = yes + } + + cost = { + piety = { + value = major_piety_value + } + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = medium_gold_value + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = medium_gold_value + } + } + prestige = { + value = massive_prestige_value + } + } + + effect = { + + show_as_tooltip = { + custom_tooltip = spread_theravada_faith_decision_cus_tt + } + + trigger_event = { + id = south_asia.0030 + } + } + + ai_will_do = { + base = 100 + } +} + +###################################### +## Found the empire of Hindustan ## +## ## +## by Henrik Lohmander ## +###################################### + +### Found the Empire of Hindustan ### +found_the_empire_of_hindustan_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" + } + decision_group_type = major + sort_order = 120 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 0 + } + + is_shown = { + faith ?= { + religion_tag = islam_religion + } + OR = { #Government conditions. + government_has_mechanic = administrative + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_landless_adventurer + government_has_flag = government_is_merchant + } + capital_province ?= { + OR = { + geographical_region = world_india + geographical_region = world_transoxiana + geographical_region = world_khorasan + geographical_region = world_burma + geographical_region = world_makran + geographical_region = world_kabulistan + } + } + OR = { + highest_held_title_tier <= tier_kingdom + has_title = title:e_bengal + has_title = title:e_deccan + has_title = title:e_rajastan + } + NOR = { + #You can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_founded_hindustan + } + #Title existance conditions. + exists = title:e_hindustan.holder #Empire of Hindustan + } + is_landed_or_landless_administrative = yes + exists = dynasty # Everyone should have a dynasty, but in case they don't... + } + + is_valid = { + #Standard requirements. + is_independent_ruler = yes + prestige_level >= very_high_prestige_level + piety_level >= high_piety_level + #Title ownership conditions. + #This is currently significantly easier for AI to get the ball rolling + trigger_if = { + limit = { + is_ai = yes + } + OR = { + completely_controls = title:k_punjab + has_title = title:k_punjab + } + OR = { + completely_controls = title:k_delhi + has_title = title:k_delhi + } + } + trigger_if = { + limit = { + is_ai = no + } #And have some additional royal dignity for good measure. + has_title = title:k_punjab + has_title = title:k_delhi + completely_controls = title:d_kuru + OR = { + has_title = title:k_kosala + has_title = title:k_malwa + has_title = title:k_rajputana + } + } + sub_realm_size >= 40 #This is roughly equal to Punjab, Delhi and Kosala. + + #HoF preference conditions. + trigger_if = { + limit = { + is_ai = no + exists = faith.religious_head + } + OR = { + faith.religious_head = { #And they have to actually like you enough to want to invest you. + opinion = { + target = root + value >= high_positive_opinion + } + } + root = { has_strong_usable_hook = faith.religious_head } #Or you have a strong hook on them that you can actually use. + root = { has_weak_hook = faith.religious_head } #Or a regular hook, to be fair, provided you meet the other criteria. + } + } + rule_title_creation_imperial_power_projection_title_creation_trigger = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + save_scope_as = founder + show_as_tooltip = { + found_empire_of_hindustan_scripted_effect = yes + } + gain_heroic_legend_seed_tooltip_effect = yes + if = { + limit = { + faith.religious_head ?= { is_playable_character = yes } + } + faith.religious_head = { save_scope_as = founder_hof } + faith.religious_head.capital_province = { save_scope_as = ceremony_locale } + } + else = { + capital_province = { save_scope_as = ceremony_locale } + } + trigger_event = { + id = south_asia.0050 + } + #Notify other players. + every_player = { + limit = { + is_ai = no + NOT = { this = root } + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = south_asia.0051 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_founded_hindustan + } + } + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + is_ai = no + } + add = 500 + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + is_ai = no + } + add = 500 + } + } + piety = 200 + } + + ai_potential = { + is_independent_ruler = yes + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/dlc_decisions/bp3/00_bp3_other_decisions.txt b/common/decisions/dlc_decisions/bp3/00_bp3_other_decisions.txt index 77b851a96..b9f84bb5d 100644 --- a/common/decisions/dlc_decisions/bp3/00_bp3_other_decisions.txt +++ b/common/decisions/dlc_decisions/bp3/00_bp3_other_decisions.txt @@ -39,6 +39,7 @@ choose_designated_terrain_decision = { decision_group_type = major is_shown = { + NOT = { government_has_flag = government_is_merchant } OR = { is_landed = no government_has_flag = government_is_nomadic diff --git a/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt b/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt index 89860d74e..3d31d09c9 100644 --- a/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt +++ b/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt @@ -484,11 +484,13 @@ legendary_conversion = { remove_character_flag = major_religious_inspiration random_sub_realm_county = { # Give em a freebie set_county_faith = root.faith + set_county_rite = root.rite } every_sub_realm_county = { random = { chance = 50 set_county_faith = root.faith + set_county_rite = root.rite } } } diff --git a/common/decisions/dlc_decisions/ep3_decisions.txt b/common/decisions/dlc_decisions/ep3_decisions.txt index 6906c4cb5..fc4b01eac 100644 --- a/common/decisions/dlc_decisions/ep3_decisions.txt +++ b/common/decisions/dlc_decisions/ep3_decisions.txt @@ -20,9 +20,9 @@ hold_triumph_decision = { decision_group_type = roman is_shown = { - has_ep3_dlc_trigger = yes + culture ?= { has_cultural_parameter = holds_triumphs } is_roman_emperor_trigger = yes - culture = { has_cultural_parameter = holds_triumphs } + has_ep3_dlc_trigger = yes } is_valid = { @@ -32,10 +32,7 @@ hold_triumph_decision = { } is_valid_showing_failures_only = { - is_alive = yes is_available_healthy_adult = yes - NOT = { exists = involved_activity } - is_imprisoned = no } cost = { @@ -43,7 +40,7 @@ hold_triumph_decision = { value = 0 if = { limit = { - NOR = { + NOR = { has_treasury = yes has_character_flag = free_triumph_flag } @@ -1623,7 +1620,7 @@ hold_triumph_decision = { # } # # is_valid_showing_failures_only = { -# NOT = { exists = involved_activity } +# is_in_activity = no # is_imprisoned = no # any_powerful_family = { } # } @@ -1717,18 +1714,17 @@ change_state_faith = { is_shown = { has_ep3_dlc_trigger = yes government_allows = state_faith - exists = primary_title.state_faith - faith != primary_title.state_faith + exists = primary_title.state_rite + rite != primary_title.state_rite } is_valid = { government_allows = state_faith - NOT = { faith ?= top_liege.primary_title.state_faith } + NOT = { rite ?= top_liege.primary_title.state_rite } } is_valid_showing_failures_only = { - NOT = { exists = involved_activity } - is_imprisoned = no + is_available = yes } cost = { @@ -1798,17 +1794,26 @@ change_state_faith = { effect = { hidden_effect = { - primary_title.state_faith = { save_scope_as = old_faith } - root.faith = { save_scope_as = new_faith } + primary_title.state_rite = { save_scope_as = old_rite } + root.rite = { save_scope_as = new_rite } create_character_memory = { type = changed_state_faith_memory } scope:new_memory = { + set_variable = { + name = old_rite + value = scope:old_rite + } + set_variable = { + name = new_rite + value = scope:new_rite + } + # Keep old_faith/new_faith for savegame and non-English loc compatibility set_variable = { name = old_faith - value = scope:old_faith + value = scope:old_rite.faith } set_variable = { name = new_faith - value = scope:new_faith + value = scope:new_rite.faith } set_variable = { name = title @@ -1817,8 +1822,11 @@ change_state_faith = { } } - primary_title = { set_state_faith = root.faith } - capital_county = { set_county_faith = root.faith } + primary_title = { + set_state_rite = root.rite + pam_tenet_popularity_boost_rite_effect = { RITE = state_rite } + } + capital_county = { set_county_rite = root.rite } # Some vassals who like you the most will convert every_vassal = { @@ -1828,23 +1836,36 @@ change_state_faith = { target = root value >= 30 } - faith != root.faith + rite != root.rite NOT = { has_vassal_stance = zealot } is_ai = yes + # Mirror the conversion-rule gates the effect cannot pass + is_adult = yes + NOT = { faith.religious_head ?= this } + pam_is_antipope_trigger = no } hidden_effect = { - faith = { save_scope_as = old_faith } - root.faith = { save_scope_as = new_faith } + rite = { save_scope_as = old_rite } + root.rite = { save_scope_as = new_rite } create_character_memory = { type = adopted_state_faith_memory } scope:new_memory = { + set_variable = { + name = old_rite + value = scope:old_rite + } + set_variable = { + name = new_rite + value = scope:new_rite + } + # Savegame and non-English loc compatibility; do not rename or remove set_variable = { name = old_faith - value = scope:old_faith + value = scope:old_rite.faith } set_variable = { name = new_faith - value = scope:new_faith + value = scope:new_rite.faith } set_variable = { name = title @@ -1853,7 +1874,7 @@ change_state_faith = { } } - set_character_faith = root.faith + set_character_rite_with_conversion = root.rite } # Opinion malus with Zealot vassals @@ -1861,7 +1882,7 @@ change_state_faith = { every_vassal = { vassal_stance = zealot limit = { - faith != root.faith + rite != root.rite } custom = every_zealot_vassal add_opinion = { @@ -1886,7 +1907,7 @@ change_state_faith = { ai_potential = { government_has_flag = government_is_administrative primary_title.tier >= tier_empire - faith != primary_title.state_faith + rite != primary_title.state_rite } ai_will_do = { @@ -1969,43 +1990,51 @@ adopt_state_faith = { selection_tooltip = adopt_state_faith_decision_selection_tooltip is_shown = { + top_liege ?= { government_allows = state_faith } + NOT = { rite ?= top_liege.primary_title.state_rite } + exists = top_liege.primary_title.state_rite has_ep3_dlc_trigger = yes - top_liege = { government_allows = state_faith } - exists = top_liege.primary_title.state_faith - NOT = { faith ?= top_liege.primary_title.state_faith } } is_valid = { top_liege = { government_allows = state_faith } - NOT = { faith ?= top_liege.primary_title.state_faith } + NOT = { rite ?= top_liege.primary_title.state_rite } } is_valid_showing_failures_only = { - NOT = { - custom_description = { - text = "is_in_an_activity" - exists = involved_activity - } - } - is_imprisoned = no + is_physically_able_adult = yes + is_in_activity = no NOT = { faith.religious_head ?= root } + custom_tooltip = { + text = adopt_state_faith_heresy_cooldown_tt + NOT = { has_character_flag = embraced_heresy_recently } + } } cost = {} effect = { hidden_effect = { - faith = { save_scope_as = old_faith } - top_liege.faith = { save_scope_as = new_faith } + rite = { save_scope_as = old_rite } + top_liege.primary_title.state_rite = { save_scope_as = new_rite } create_character_memory = { type = adopted_state_faith_memory } scope:new_memory = { + set_variable = { + name = old_rite + value = scope:old_rite + } + set_variable = { + name = new_rite + value = scope:new_rite + } + # Savegame and non-English loc compatibility; do not rename or remove set_variable = { name = old_faith - value = scope:old_faith + value = scope:old_rite.faith } set_variable = { name = new_faith - value = scope:new_faith + value = scope:new_rite.faith } set_variable = { name = title @@ -2014,18 +2043,29 @@ adopt_state_faith = { } } - set_character_faith = top_liege.primary_title.state_faith + # Changing rite into another faith costs piety and can fail silently, so we change the faith first + if = { + limit = { NOT = { faith = top_liege.primary_title.state_rite.faith } } + set_character_faith_with_conversion = top_liege.primary_title.state_rite.faith + } + if = { + limit = { NOT = { rite = top_liege.primary_title.state_rite } } + set_character_rite_with_conversion = top_liege.primary_title.state_rite + } if = { limit = { NOT = { has_character_flag = adopted_state_faith } } if = { - limit = { government_has_mechanic = administrative } + limit = { government_has_flag = government_has_influence } change_influence = monumental_influence_gain } add_piety = massive_piety_gain top_liege = { if = { - limit = { faith = primary_title.state_faith } + limit = { + rite = primary_title.state_rite + this != root + } add_opinion = { target = root modifier = converted_to_state_faith_opinion @@ -2035,7 +2075,7 @@ adopt_state_faith = { every_vassal = { custom = every_governor_of_state_faith limit = { - faith = top_liege.primary_title.state_faith + rite = top_liege.primary_title.state_rite this != root } add_opinion = { @@ -2050,10 +2090,9 @@ adopt_state_faith = { } ai_potential = { - government_has_flag = government_is_administrative NOT = { has_trait = zealous } # A zealous vassal would presumably not want to change their faith - exists = top_liege.primary_title.state_faith - faith != top_liege.primary_title.state_faith + exists = top_liege.primary_title.state_rite + rite != top_liege.primary_title.state_rite } ai_will_do = { @@ -2062,7 +2101,7 @@ adopt_state_faith = { is_governor = yes add = 40 } - + # Personality modifier = { is_governor = yes @@ -2097,39 +2136,39 @@ adopt_state_faith = { has_trait = stubborn add = -50 } - + # Faith modifier = { # More likely to switch away from an unreformed faith faith ?= { has_doctrine_parameter = unreformed } add = 20 } modifier = { # Communal Identity make it more likely to adopt faith if they share same culture with the top liege - faith ?= { has_doctrine_parameter = same_culture_conversion_bonus_active } + rite ?= { rite_has_parameter = same_culture_conversion_bonus_active } culture ?= top_liege.culture add = 10 } modifier = { # Some faith are more likely to be abandoned - faith ?= { has_doctrine_parameter = unattractive_for_character_conversions } + rite ?= { rite_has_parameter = unattractive_for_character_conversions } add = 10 } - modifier = { # Don't adopt the state faith if you have the same faith as the top liege (if the emperor can have this faith, so can we!) - faith = top_liege.faith + modifier = { # Don't adopt the state faith if you have the same rite as the top liege (if the emperor can have this rite, so can we!) + rite = top_liege.rite top_liege != this factor = 0 } - + # Other modifier = { has_vassal_stance = zealot factor = 0.3 } - - # Non-admin vassals only consider converting if their faith hostility is low enough + + # Non-admin vassals only consider converting if their rite hostility is low enough modifier = { NOT = { government_has_flag = government_is_administrative } - faith ?= { - faith_hostility_level = { - target = root.top_liege.primary_title.state_faith + rite ?= { + rite_hostility_level = { + target = root.top_liege.primary_title.state_rite value >= faith_hostile_level } } @@ -2150,7 +2189,7 @@ found_salon_decision = { decision_group_type = adventurer is_shown = { - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes has_trait = violet_poet NOT = { #You can only do it once. is_target_in_global_variable_list = { @@ -2372,23 +2411,21 @@ commission_icon_decision = { cooldown = { days = standard_commission_artifact_cooldown_time } sort_order = 150 decision_group_type = admin - + is_shown = { - has_dlc_feature = roads_to_power - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes OR = { - religion = religion:eastern_orthodox_religion - religion = religion:oriental_orthodox_religion - faith = faith:orthodox + faith ?= faith:orthodox faiths_are_in_orthodox_christianity_group = { FAITH_1 = faith:orthodox FAITH_2 = root.faith } } faith_is_aniconic_trigger = no + has_dlc_feature = roads_to_power } - + is_valid_showing_failures_only = { trigger_if = { limit = { - government_has_mechanic = administrative + government_has_flag = government_has_estate } domicile ?= { has_domicile_building_or_higher = temple_monastery_04 @@ -2400,6 +2437,7 @@ commission_icon_decision = { minimum_cost = { # Matches the cost defined in 00_inspirations.txt gold = { + root = { save_temporary_scope_as = inspiration_sponsor } value = basic_fund_inspiration_cost if = { limit = { # Estate discount bonus @@ -2412,7 +2450,8 @@ commission_icon_decision = { widget = { gui = "decision_view_widget_commission_artifact" controller = decision_option_list_controller - decision_to_second_step_button = "COMMISSION_ARTIFACT_DECISION_NEXT_STEP_BUTTON" + decision_to_second_step_button = "COMMISSION_ARTIFACT_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes # Personal Artifacts are always valid to commission item = { @@ -2586,7 +2625,7 @@ commission_icon_decision = { empire = 36 hegemony = 36 } - + ai_potential = { is_at_war = no ai_greed < medium_positive_ai_value @@ -2621,13 +2660,10 @@ embrace_heresy_decision = { is_adult = yes top_liege != this top_liege ?= { is_ai = yes } - top_liege.primary_title.state_faith ?= { - OR = { - NOT = { has_doctrine = eastern_hostility_doctrine } - has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern. - } + top_liege.primary_title.state_rite.faith ?= { + faith_can_have_heresy_trigger = yes } - this != top_liege.primary_title.state_faith.religious_head + NOT = { this ?= top_liege.primary_title.state_rite.head_of_rite } } is_valid = { @@ -2655,8 +2691,6 @@ embrace_heresy_decision = { } is_valid_showing_failures_only = { - NOT = { exists = involved_activity } - is_imprisoned = no is_available = yes } @@ -2697,33 +2731,28 @@ push_heresy_as_state_faith = { is_shown = { government_allows = state_faith - is_adult = yes - top_liege != this - top_liege ?= { is_ai = yes } - top_liege.primary_title.state_faith ?= { - OR = { - NOT = { has_doctrine = eastern_hostility_doctrine } - has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern. - } - } - NOR = { - this = top_liege.primary_title.state_faith.religious_head - faith = top_liege.primary_title.state_faith - } has_variable = heresy_embraced + NOR = { + rite ?= top_liege.primary_title.state_rite + this ?= top_liege.primary_title.state_rite.head_of_rite + } + top_liege.primary_title.state_rite.faith ?= { + faith_can_have_heresy_trigger = yes + } + top_liege ?= { is_ai = yes } + top_liege != this + is_adult = yes } is_valid = { custom_tooltip = { text = has_embraced_heresy_tt has_variable = heresy_embraced - faith = var:heresy_embraced + rite = var:heresy_embraced } } is_valid_showing_failures_only = { - NOT = { exists = involved_activity } - is_imprisoned = no is_available = yes } @@ -2736,10 +2765,10 @@ push_heresy_as_state_faith = { effect = { custom_tooltip = try_to_push_faith_with_emperor_tt save_scope_as = heretic - scope:heretic.faith = { save_scope_as = heresy } + scope:heretic.rite = { save_scope_as = heresy } top_liege = { trigger_event = { - id = ep3_decisions_event.5021 + id = ep3_decisions_event.5021 days = 1 } } @@ -2776,21 +2805,21 @@ establish_silk_production_decision = { decision_group_type = admin is_shown = { - has_ep3_dlc_trigger = yes government_has_mechanic = administrative + domicile ?= { + is_domicile_type = estate + } + has_ep3_dlc_trigger = yes OR = { this = house.house_head AND = { is_ai = no - house.house_head = top_liege + house.house_head ?= top_liege } } - domicile ?= { - is_domicile_type = estate + top_liege ?= { + is_roman_emperor_primary_title_trigger = yes } -# top_liege ?= { -# is_roman_emperor_primary_title_trigger = yes -## } NOT = { house = { has_house_modifier = ep3_unlocked_silk @@ -2801,7 +2830,7 @@ establish_silk_production_decision = { is_valid = { trigger_if = { limit = { top_liege = this } -# is_roman_emperor_trigger = yes + is_roman_emperor_trigger = yes OR = { has_realm_law = imperial_bureaucracy_2 has_realm_law = imperial_bureaucracy_3 @@ -2836,7 +2865,8 @@ establish_silk_production_decision = { } send_interface_toast = { type = msg_domicile_building_unlocked - title = unlocked_estate_silk_buildings_t + title = ep3_unlocked_silk + desc = unlocked_estate_silk_buildings_t } if = { limit = { @@ -2889,7 +2919,7 @@ commission_silk_regalia_decision = { desc = commission_silk_regalia_decision_desc selection_tooltip = commission_silk_regalia_decision_tooltip decision_group_type = admin - + is_shown = { has_dlc_feature = roads_to_power government_has_mechanic = administrative @@ -2905,6 +2935,7 @@ commission_silk_regalia_decision = { minimum_cost = { # Matches the cost defined in 00_inspirations.txt gold = { + root = { save_temporary_scope_as = inspiration_sponsor } value = basic_fund_inspiration_cost if = { limit = { # Estate discount bonus @@ -2987,7 +3018,7 @@ commission_silk_regalia_decision = { empire = 60 hegemony = 60 } - + ai_potential = { is_at_war = no ai_greed < medium_positive_ai_value @@ -3017,23 +3048,23 @@ foster_integration_decision = { desc = foster_integration_decision_desc selection_tooltip = foster_integration_decision_tooltip decision_group_type = admin - + is_shown = { - has_dlc_feature = roads_to_power - is_adult = yes - this = house.house_head government_has_mechanic = administrative domicile ?= { is_domicile_type = estate } - exists = top_liege root.top_liege != root OR = { - top_liege.primary_title = { + top_liege.primary_title ?= { NOT = { is_de_jure_liege_or_above_target = root.domicile.domicile_location.county } } domicile.domicile_location.county.culture != root.top_liege.culture } + has_dlc_feature = roads_to_power + is_adult = yes + this = house.house_head + exists = top_liege } is_valid = { @@ -3049,10 +3080,7 @@ foster_integration_decision = { } is_valid_showing_failures_only = { - NOT = { exists = involved_activity } - is_imprisoned = no is_available = yes - is_at_war = no } cost = { @@ -3105,7 +3133,10 @@ foster_integration_decision = { } if = { limit = { - top_liege = { is_ai = yes } + top_liege = { + is_ai = yes + this != root + } } top_liege = { add_opinion = { @@ -3152,7 +3183,7 @@ foster_integration_decision = { empire = 36 hegemony = 0 } - + ai_potential = { government_has_mechanic = administrative exists = top_liege @@ -3187,7 +3218,7 @@ gather_faction_support_decision = { desc = gather_faction_support_decision_desc selection_tooltip = gather_faction_support_decision_tooltip decision_group_type = admin - + is_shown = { has_dlc_feature = roads_to_power government_has_mechanic = administrative @@ -3213,10 +3244,7 @@ gather_faction_support_decision = { } is_valid_showing_failures_only = { - NOT = { exists = involved_activity } - is_imprisoned = no - is_available = yes - is_at_war = no + is_available_at_peace = yes } cost = { @@ -3247,7 +3275,7 @@ gather_faction_support_decision = { empire = 60 hegemony = 0 } - + ai_potential = { government_has_mechanic = administrative exists = top_liege diff --git a/common/decisions/dlc_decisions/fp3_decisions.txt b/common/decisions/dlc_decisions/fp3_decisions.txt index 34834e0e3..b64a88108 100644 --- a/common/decisions/dlc_decisions/fp3_decisions.txt +++ b/common/decisions/dlc_decisions/fp3_decisions.txt @@ -701,9 +701,9 @@ favour_skilled_outsiders_decision = { decision_group_type = courtier is_shown = { - has_fp3_dlc_trigger = yes is_landed = yes favour_skilled_outsiders_decision_valid_character_to_take_trigger = yes + has_fp3_dlc_trigger = yes } is_valid = { @@ -721,6 +721,7 @@ favour_skilled_outsiders_decision = { gui = "decision_view_widget_option_list_generic" controller = decision_option_list_controller decision_to_second_step_button = "favour_skilled_outsiders_decision.second_step" + show_from_start = yes # Diplomacy-Martial: Eloquent Captains item = { @@ -1109,16 +1110,16 @@ fp3_become_clan_government_decision = { 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 house.house_head != root # Religion is Islam (Clan) - religion = religion:islam_religion + religion ?= religion:islam_religion + has_fp3_dlc_trigger = yes # House head is Clan - house.house_head = { government_has_flag = government_is_clan } + house.house_head ?= { government_has_flag = government_is_clan } + # Has a House and is not House Head + exists = house } is_valid = { diff --git a/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt index 2b8c2bc92..7f86d827d 100644 --- a/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt +++ b/common/decisions/dlc_decisions/fp_3/fp3_dynasty_decisions.txt @@ -104,6 +104,7 @@ fp3_embellish_capital_decision = { gui = "decision_view_widget_option_list_generic" controller = decision_option_list_controller decision_to_second_step_button = "CHOOSE_ARCHITECT_DECISION_NEXT_STEP_BUTTON" + show_from_start = yes ### Royal Architect # Mausoleum diff --git a/common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt b/common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt index bd662fe98..af4f0daac 100644 --- a/common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt +++ b/common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt @@ -1,110 +1,120 @@ -# NEOW: Hansa founding is intentionally disabled. Vanilla decision retained as comments. -# found_the_hanseatic_league_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/gdp_republic_trade_ships.dds" -# } -# decision_group_type = major -# sort_order = 100 +found_the_hanseatic_league_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/gdp_republic_trade_ships.dds" + } + decision_group_type = major + sort_order = 100 -# ai_check_interval_by_tier = { -# barony = 0 -# county = 120 -# duchy = 60 -# kingdom = 30 -# empire = 30 -# hegemony = 30 -# } + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 60 + kingdom = 30 + empire = 30 + hegemony = 30 + } -# desc = found_the_hanseatic_league_decision_desc -# selection_tooltip = found_the_hanseatic_league_decision_tooltip -# confirm_text = found_the_hanseatic_league_decision_confirm + desc = found_the_hanseatic_league_decision_desc + selection_tooltip = found_the_hanseatic_league_decision_tooltip + confirm_text = found_the_hanseatic_league_decision_confirm -# is_shown = { -# confederation ?= { -# confederation_type = confederation_type:trade_league -# has_leading_title = yes -# leading_title = root.primary_title -# NOT = { has_variable = is_hanseatic_league } -# } -# capital_province ?= { geographical_region = hanseatic_trade_region } -# has_gdp_dlc_trigger = yes -# } + is_shown = { + government_has_flag = government_is_republic + capital_province ?= { geographical_region = hanseatic_trade_region } + NOT = { + confederation ?= { has_variable = is_hanseatic_league } + } + has_gdp_dlc_trigger = yes + } -# is_valid_showing_failures_only = { -# is_at_war = no -# custom_tooltip = { -# text = found_the_hanseatic_league_cohesion_tt -# confederation ?= { -# cohesion >= 95 -# } -# } -# custom_tooltip = { -# text = found_the_hanseatic_league_members_tt -# confederation ?= { -# any_confederation_member = { count >= 4 } -# } -# } -# } + is_valid_showing_failures_only = { + is_at_war = no + gdp_is_trade_league_head_trigger = yes + custom_tooltip = { + text = found_the_hanseatic_league_cohesion_tt + confederation ?= { + cohesion >= 70 + } + } + custom_tooltip = { + text = found_the_hanseatic_league_members_tt + confederation ?= { + any_confederation_member = { count >= 4 } + } + } + } -# cost = { -# gold = massive_gold_value -# prestige = massive_prestige_value -# } + cost = { + gold = massive_gold_value + prestige = { + value = massive_prestige_value + if = { + limit = { is_ai = yes } + value = 250 + } + } + } -# effect = { -# save_scope_as = hanse_founder -# primary_title = { save_scope_as = hanse_lead_town } + effect = { + save_scope_as = hanse_founder -# confederation = { -# set_variable = is_hanseatic_league -# set_coa = k_hansa + if = { + limit = { exists = confederation } -# if = { -# limit = { -# NOT = { -# any_confederation = { -# has_variable = hanseatic_baltic_identity -# } -# } -# } -# set_variable = hanseatic_baltic_identity -# set_confederation_name = HANSEATIC_LEAGUE_NAME -# } -# else = { -# set_confederation_name = GENERIC_HANSE_NAME -# } -# } + confederation = { + leading_title ?= { save_scope_as = hanse_lead_town } + set_variable = is_hanseatic_league + set_coa = k_hansa -# hanseatic_elevate_all_members_effect = { LEAGUE = root.confederation } + if = { + limit = { + NOT = { + any_confederation = { + has_variable = hanseatic_baltic_identity + } + } + } + set_variable = hanseatic_baltic_identity + set_confederation_name = HANSEATIC_LEAGUE_NAME + } + else = { + set_confederation_name = GENERIC_HANSE_NAME + } + } -# add_prestige = major_prestige_gain + hanseatic_elevate_all_members_effect = { LEAGUE = root.confederation } -# add_achievement_global_variable_effect = { -# VARIABLE = ep5_14_league_of_ledgers_achievement_unlocked -# VALUE = yes -# } + add_prestige = major_prestige_gain -# hanseatic_ask_personal_monopoly_holders_effect = { LEAGUE = root.confederation } + add_achievement_global_variable_effect = { + VARIABLE = ep5_14_league_of_ledgers_achievement_unlocked + VALUE = yes + } -# every_player = { -# limit = { -# is_member_of_confederation = root.confederation -# } -# send_interface_message = { -# type = event_generic_good_text -# title = found_the_hanseatic_league_message_title -# desc = found_the_hanseatic_league_message_desc -# left_icon = root -# } -# } -# } + hanseatic_ask_personal_monopoly_holders_effect = { LEAGUE = root.confederation } -# ai_potential = { -# is_ai = yes -# is_ruler = yes -# } + every_player = { + limit = { + is_member_of_confederation = root.confederation + } + send_interface_message = { + type = event_generic_good_text + title = found_the_hanseatic_league_message_title + desc = found_the_hanseatic_league_message_desc + left_icon = root + } + } + } + } -# ai_will_do = { -# base = 100 -# } -# } + ai_potential = { + is_ai = yes + is_ruler = yes + capital_province ?= { geographical_region = hanseatic_core_commune_region } + gdp_is_trade_league_head_trigger = yes + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt b/common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt index 2eb063b02..767dba78f 100644 --- a/common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt +++ b/common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt @@ -61,6 +61,11 @@ gdp_adopt_republic_government_decision = { sub_realm_size < 25 # Large realm should just become admin instead capital_province = { province_size_level >= 3 + OR = { + has_holding_type = city_holding + has_holding_type = castle_holding + has_holding_type = temple_citadel_holding + } } OR = { is_independent_ruler = yes @@ -2631,6 +2636,7 @@ gdp_republic_recruit_talent_decision = { template = trader_martial_template culture = root.culture faith = root.faith + rite = root.rite dynasty = none location = root.capital_province save_scope_as = new_trader @@ -2647,6 +2653,7 @@ gdp_republic_recruit_talent_decision = { template = trader_diplomacy_template culture = root.culture faith = root.faith + rite = root.rite dynasty = none location = root.capital_province save_scope_as = new_trader @@ -2663,6 +2670,7 @@ gdp_republic_recruit_talent_decision = { template = trader_stewardship_template culture = root.culture faith = root.faith + rite = root.rite dynasty = none location = root.capital_province save_scope_as = new_trader @@ -4388,9 +4396,7 @@ gdp_war_approval_decree_decision = { cooldown = { years = 5 } cost = { - treasury_or_gold = { - value = total_republic_decree_gold_cost - } + prestige = total_republic_decree_prestige_cost } ai_check_interval_by_tier = { @@ -4523,8 +4529,10 @@ gdp_war_approval_decree_decision = { } ai_potential = { - this = liege # I.e. is independent - treasury > massive_treasury_value + OR = { + this = liege # I.e. is independent + ai_has_warlike_personality = yes + } ai_has_cautious_personality = no } @@ -4595,9 +4603,7 @@ gdp_quarantine_ship_decree_decision = { cooldown = { years = 5 } cost = { - treasury_or_gold = { - value = total_republic_decree_gold_cost - } + prestige = total_republic_decree_prestige_cost } ai_check_interval_by_tier = { diff --git a/common/decisions/dlc_decisions/tgp/tgp_china_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_china_decisions.txt index 8d5317476..f527966da 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_china_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_china_decisions.txt @@ -19,27 +19,15 @@ tgp_china_attend_child_exam_decision = { } is_shown = { - age >= child_exam_min_age age <= 16 - has_tgp_dlc_trigger = yes + has_domicile = yes government_allows = merit + age >= child_exam_min_age + has_tgp_dlc_trigger = yes is_playable_character = yes NOT = { has_character_flag = passed_child_exam } - has_domicile = yes is_landed = no - trigger_if = { - limit = { - faith = { has_doctrine = doctrine_gender_female_dominated } - } - is_female = yes - } - trigger_else_if = { - limit = { - faith = { has_doctrine = doctrine_gender_male_dominated } - } - is_female = no - } - trigger_else = { always = yes } + rite = { rite_has_dominant_ruling_gender = prev } } is_valid = { @@ -348,12 +336,12 @@ tgp_refuse_appointments_decision = { is_shown = { government_has_flag = government_has_merit - has_tgp_dlc_trigger = yes this != top_liege custom_tooltip = { text = you_are_not_refusing_appointments_desc appointment_timeout_days < 36500 } + has_tgp_dlc_trigger = yes } is_valid_showing_failures_only = { @@ -397,9 +385,9 @@ tgp_resume_appointments_decision = { is_shown = { government_has_flag = government_has_merit + appointment_timeout_days > 0 has_tgp_dlc_trigger = yes this != top_liege - appointment_timeout_days > 0 } is_valid_showing_failures_only = { @@ -923,10 +911,10 @@ tgp_china_study_confucian_classics_decision = { } is_shown = { - has_tgp_dlc_trigger = yes government_allows = merit is_playable_character = yes NOT = { top_liege = root } + has_tgp_dlc_trigger = yes } is_valid = { @@ -1006,9 +994,7 @@ tgp_claim_the_mantle_of_maitreya_decision = { cooldown = { years = 30 } is_shown = { - faith = { - has_doctrine = tenet_extinction_of_dharma - } + has_personal_tenet_flag = awaiting_the_maitreya_savior } is_valid_showing_failures_only = { @@ -1025,6 +1011,7 @@ tgp_claim_the_mantle_of_maitreya_decision = { is_independent_ruler = yes capital_county.faith = root.faith piety_level >= 5 + spiritual_fulfillment >= spiritual_fulfillment_3 OR = { has_trait = zealous has_trait = peasant_leader @@ -1055,7 +1042,7 @@ tgp_claim_the_mantle_of_maitreya_decision = { effect = { faith = { change_fervor = { - value = 100 + value = massive_fervor_gain desc = maitreya_has_descended_fervor_desc } } @@ -1164,7 +1151,7 @@ tgp_tea_ceremony_decision = { # Lose stress if = { limit = { stress > 0 } - stress_impact = { + stress_and_fulfillment_impact = { base = -25 content = medium_stress_impact_loss humble = minor_stress_impact_loss @@ -1485,6 +1472,12 @@ extract_gold_from_treasury = { } reference = "gfx/interface/illustrations/decisions/tgp_scholars.dds" } + picture = { + trigger = { + religion = religion:christianity_religion + } + reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds" } @@ -1506,12 +1499,22 @@ extract_gold_from_treasury = { } is_shown = { - is_playable_character = yes has_treasury = yes OR = { - is_independent_ruler = yes - tgp_is_any_minister = yes + AND = { # Independent non-Christian rulers + is_independent_ruler = yes + NOT = { government_has_flag = government_is_ecclesiastical } + } + tgp_is_any_minister = yes # Ministers of China + AND = { # Christian rulers during the SO/FU phases + government_has_flag = government_is_ecclesiastical + any_character_situation = { + situation_type = the_christian_church + } + top_participant_group:the_christian_church ?= { has_participant_group_parameter = the_christian_church_withdraw_funds_from_treasury_decision } + } } + is_playable_character = yes } is_valid_showing_failures_only = { @@ -1529,6 +1532,19 @@ extract_gold_from_treasury = { add_short_term_gold = medium_treasury_value if = { + limit = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_withdraw_funds_from_treasury_decision + } + } + add_piety = major_piety_loss + add_character_modifier = { + modifier = pam_dipped_into_treasury_modifier + years = 3 + } + pam_the_christian_church_clergy_withdrew_funds_from_treasury_catalyst_effect = yes + } + else_if = { limit = { is_valid_for_legitimacy_change = yes } @@ -1570,10 +1586,46 @@ extract_gold_from_treasury = { influence = { value = 0 if = { - limit = { is_valid_for_legitimacy_change = no } + limit = { + is_valid_for_legitimacy_change = no + government_has_flag = government_has_influence + NOT = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_withdraw_funds_from_treasury_decision + } + } + } add = massive_influence_value } } + piety = { + value = 0 + if = { + limit = { + is_valid_for_legitimacy_change = no + government_has_flag = government_is_ecclesiastical + NOT = { + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_withdraw_funds_from_treasury_decision + } + } + } + add = massive_piety_value + } + } + prestige = { + value = 0 + if = { + limit = { + is_valid_for_legitimacy_change = no + NOR = { + government_has_flag = government_is_ecclesiastical + government_has_flag = government_has_influence + } + } + add = massive_prestige_value + } + } } ai_potential = { diff --git a/common/decisions/dlc_decisions/tgp/tgp_dynastic_cycle_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_dynastic_cycle_decisions.txt index c33a9c96f..c4781d387 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_dynastic_cycle_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_dynastic_cycle_decisions.txt @@ -120,6 +120,7 @@ situation_dynastic_cycle_favor_own_culture_for_appointments = { gui = "decision_view_widget_generic_multichoice_with_effects" controller = decision_option_list_controller decision_to_second_step_button = "SELECT_ACTION" + show_from_start = yes ### Favor your own culture item = { @@ -2328,7 +2329,7 @@ favor_dynastic_cycle_era_decision = { gui = "decision_view_widget_generic_multichoice_with_effects" controller = decision_option_list_controller decision_to_second_step_button = "SELECT_FAVOR_ERA" - show_from_start = no + show_from_start = yes item = { value = favor_advancement @@ -2431,7 +2432,7 @@ favor_movement_decision = { gui = "decision_view_widget_generic_multichoice_with_effects" controller = decision_option_list_controller decision_to_second_step_button = "SELECT_FAVOR_MOVEMENT" - show_from_start = no + show_from_start = yes item = { value = advancement_movement diff --git a/common/decisions/dlc_decisions/tgp/tgp_east_asia_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_east_asia_decisions.txt index 2f61c6bb1..87e27b469 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_east_asia_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_east_asia_decisions.txt @@ -277,6 +277,7 @@ assimilate_to_mandala_decision = { is_shown = { is_landed = yes highest_held_title_tier > tier_barony + NOT = { government_has_flag = government_is_merchant } overlord ?= { government_has_flag = government_is_mandala } NAND = { government_has_flag = government_is_mandala @@ -436,6 +437,7 @@ assimilate_to_mandala_decision = { } ai_potential = { + is_landed = yes this != top_overlord overlord = { government_has_flag = government_is_mandala } primary_title.tier > tier_barony @@ -456,7 +458,8 @@ assimilate_to_mandala_decision = { } overlord.mandala_radiance_value >= 10 } - NOT = { + NOR = { + government_has_flag = government_is_merchant any_owned_story = { OR = { story_type = story_mongol_invasion diff --git a/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt index 7a5970967..6b02a289a 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt @@ -1,1894 +1,1887 @@ -## Admin to Feudal -#### Establish Sōryō Fief ### -#tgp_japan_establish_house_fief_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_establish_house_fief_decision -# desc = tgp_japan_establish_house_fief_decision_desc -# selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/decisions/tgp_house_fief.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = 500 -# add = { -# value = 250 -# multiply = domain_size -# } -# } -# gold = { -# value = 0 -# add = { -# value = 50 -# multiply = domain_size -# } -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# has_government = japan_administrative_government -# is_landed = yes -# tgp_has_ceremonial_liege_title_trigger = no -# is_independent_ruler = no -# } -# -# is_valid = { -# # Is a Ritsuryo Governor -# tgp_is_japanese_governor_trigger = yes -# trigger_if = { -# limit = { is_ai = no } # AI are an exception as they can continue to play despite not being House Heads -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_aspiration_trigger -# house = { -# NOR = { -# has_house_aspiration_parameter = ceremony_cheaper_feasts -# has_house_aspiration_parameter = unlocks_japanese_manor_archive -# } -# } -# } -# # Domicile in current Governorship -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_domicile_in_governorship_trigger -# domicile.domicile_location.county.holder ?= this -# } -# # Domicile level -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_domicile_building_trigger -# domicile ?= { has_domicile_parameter = unlocks_establish_fief_decision } -# } -# } -# trigger_else = { # AI heirs of players will never do this -# trigger_if = { -# limit = { -# house.house_head ?= { -# government_has_flag = government_is_japan_feudal -# } -# } -# always = yes -# } -# trigger_else = { -# NOT = { -# house.house_head ?= { -# is_ai = no -# any_held_title = { is_noble_family_title = yes } -# is_close_family_of = root -# player_heir = root -# } -# } -# } -# } -# # No direct descendant is currently Regent or Governor -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_direct_descendent_position_trigger -# any_descendants_are_governors = no -# } -# # No direct descendant is liege or above -# custom_tooltip = { -# text = create_cadet_branch_decision_liege_is_descendant -# any_liege_or_above_is_descendant = no -# } -# # Crown Authority -# trigger_if = { -# limit = { -# top_liege = { -# government_has_mechanic = administrative -# NOT = { government_has_flag = government_is_japan_feudal } -# } -# } -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_centralization_trigger -# NOT = { has_realm_law = japanese_bureaucracy_3 } -# } -# } -# # Prevent ai flipflopping back after demand admin gov interaction -# trigger_if = { -# limit = { is_ai = yes } -# NOR = { -# var:demand_admin_accepted_ai_block ?= liege -# var:demand_admin_accepted_ai_block ?= top_liege -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# # Not Yamato -# tgp_is_in_ceremonial_house_trigger = no -# # Must be a Count or Higher -# highest_held_title_tier >= tier_county -# # Domicile not in capital -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_capital_domicile_trigger -# NOT = { domicile.domicile_location.county ?= top_liege.capital_county } -# } -# # Is not Regent -# is_independent_ruler = no -# } -# -# # Used by Ruler Objective advice -# advice = { -# region = world_asia_japan -# } -# -# effect = { -# add_achievement_global_variable_effect = { -# VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement -# VALUE = yes -# } -# show_as_tooltip = { -# # Change Dynasty -# if = { -# limit = { tgp_japan_cadet_creates_dynasty_trigger = yes } -# custom_tooltip = tgp_japan_establish_house_fief_found_house_effect -# } -# else_if ={ -# limit = { is_house_head = no } -# custom_tooltip = create_noble_family_tt -# } -# # Change from Ritsuryo (Admin) to Soryo (Feudal) -# custom_tooltip = tgp_japan_establish_house_fief_change_government_type_effect -# # Crime to prime_minister -# if = { -# limit = { -# is_independent_ruler = no -# top_liege = { government_has_mechanic = administrative } -# NOR = { -# var:petition_liege_house_fief_allowed_flag ?= scope:new_head.top_liege -# top_liege = { -# government_has_flag = government_is_japan_feudal -# } -# } -# } -# custom_tooltip = tgp_japan_establish_house_fief_prime_minister_crime_effect -# } -# } -# hidden_effect = { -# if = { -# limit = { is_ai = yes } -# if = { # Move AI domicile automatically -# limit = { -# exists = domicile -# is_landed = yes -# domicile.domicile_location.county != capital_county -# } -# domicile = { move_domicile = root.capital_province } -# } -# house = { # Help for AI to move to a Soryo aspiration -# if = { -# limit = { -# OR = { -# has_house_aspiration_parameter = ceremony_cheaper_feasts -# has_house_aspiration_parameter = unlocks_japanese_manor_archive -# } -# } -# random_list = { -# 1 = { set_house_aspiration = { type = determination } } -# 1 = { set_house_aspiration = { type = prosperity } } -# 1 = { set_house_aspiration = { type = strength } } -# } -# } -# } -# } -# } -# # Fire relevant event -# if = { -# limit = { -# NOR = { -# dynasty.dynast ?= this -# house.house_head ?= this -# } -# } -# add_character_flag = establish_house_fief -# trigger_event = tgp_japan_decision.9001 -# } -# else = { trigger_event = tgp_japan_decision.9002 } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 6 -# duchy = 6 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# ai_potential = { -# is_landed = yes -# has_government = japan_administrative_government -# NOT = { # Reluctance to forgo potential to become prime_minister -# top_liege = { -# has_realm_law = japanese_regency_succession_law -# primary_title = { "place_in_line_of_succession(root)" <= 3 } -# } -# } -# } -# ai_will_do = { -# base = -25 -# ai_value_modifier = { # Personality -# ai_boldness = 0.25 -# ai_energy = 0.25 -# ai_honor = -0.25 -# } -# modifier = { -# has_trait = ambitious -# add = 10 -# } -# modifier = { -# has_trait = content -# add = -10 -# } -# modifier = { -# has_trait = brave -# add = 10 -# } -# modifier = { -# has_trait = craven -# add = -10 -# } -# modifier = { -# has_trait = vengeful -# add = 10 -# } -# modifier = { -# has_trait = forgiving -# add = -10 -# } -# modifier = { -# has_trait = impatient -# add = 10 -# } -# modifier = { -# has_trait = patient -# add = -10 -# } -# modifier = { -# has_trait = greedy -# add = 10 -# } -# modifier = { -# has_trait = generous -# add = -10 -# } -# modifier = { -# has_trait = arrogant -# add = 10 -# } -# modifier = { -# has_trait = humble -# add = -10 -# } -# modifier = { # Prosperity -# house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_brewery } -# add = 25 -# } -# modifier = { # Determination -# house ?= { has_house_aspiration_parameter = determination_spymaster_task_find_secrets_efficiency } -# add = 50 -# } -# modifier = { # Strength -# house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_armory } -# add = 100 -# } -# modifier = { # Reluctance to turn against successful bloc -# house.house_confederation ?= { -# leading_house.house_head ?= { has_same_government = root } -# cohesion >= 50 -# } -# add = -100 -# } -# modifier = { # Reluctance to turn against house head -# is_house_head = no -# house.house_confederation.leading_house.house_head ?= { -# house = root.house -# has_same_government = root -# } -# add = -15 -# } -# modifier = { # Encouraged by nearby -# any_neighboring_realm_same_rank_owner = { government_has_flag = government_is_japan_feudal } -# add = 25 -# } -# modifier = { -# NOT = { exists = house.house_confederation } -# add = 25 -# } -# modifier = { -# add = { -# value = "root.capital_province.squared_distance(root.top_liege.capital_province)" -# divide = 100000 -# } -# } -# modifier = { -# add = { -# value = maa_regiments_count -# multiply = 5 -# } -# } -# modifier = { -# add = { -# value = gold -# divide = 100 -# } -# } -# modifier = { -# add = { -# value = military_power -# divide = 1000 -# } -# } -# modifier = { -# add = { -# value = 0 -# every_ally = { -# limit = { -# is_landed = yes -# top_liege = root.top_liege -# NOT = { government_has_mechanic = administrative } -# } -# add = 30 -# } -# } -# } -# modifier = { -# current_date <= 900.1.1 -# add = -75 -# } -# modifier = { -# current_date <= 1000.1.1 -# add = -75 -# } -# modifier = { -# current_date >= 1100.1.1 -# add = 75 -# } -# modifier = { -# current_date >= 1200.1.1 -# add = 75 -# } -# modifier = { -# vassal_contract_has_flag = japan_administrative_province_military -# add = 75 -# } -# modifier = { -# has_trait = education_martial -# add = 20 -# } -# modifier = { -# has_realm_law = japanese_bureaucracy_1 -# add = 10 -# } -# modifier = { -# has_realm_law = japanese_bureaucracy_2 -# add = 20 -# } -# modifier = { -# has_realm_law = japanese_bureaucracy_3 -# add = 30 -# } -# opinion_modifier = { # Opinion of liege -# who = root -# opinion_target = top_liege -# multiplier = -0.5 -# } -# opinion_modifier = { # Opinion of house head -# trigger = { is_house_head = no } -# who = root -# opinion_target = house.house_head -# multiplier = -0.5 -# } -# opinion_modifier = { # Opinion of bloc leader -# trigger = { -# exists = house.house_confederation.leading_house.house_head -# house.house_confederation.leading_house.house_head != root -# } -# who = root -# opinion_target = house.house_confederation.leading_house.house_head -# multiplier = -0.5 -# } -# } -#} -# -#### Abandon the Bureaucracy ### -#tgp_japan_establish_soryo_manor_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_establish_soryo_manor_decision -# desc = tgp_japan_establish_soryo_manor_decision_desc -# selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip -# picture = { -# reference = "gfx/interface/illustrations/decisions/tgp_house_fief.dds" -# } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = 500 -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# has_government = japan_administrative_government -# tgp_has_ceremonial_liege_title_trigger = no -# is_landed = no -# exists = domicile -# } -# -# is_valid = { -# # Is a Ritsuryo Governor -# has_government = japan_administrative_government -# trigger_if = { -# limit = { is_ai = no } # AI are an exception as they can continue to play despite not being House Heads -# # Holds Noble Family title -# custom_tooltip = { -# text = is_house_head_of_noble_family_tt -# house.house_head ?= this -# any_held_title = { is_noble_family_title = yes } -# } -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_capital_domicile_trigger -# NOT = { domicile.domicile_location.county ?= top_liege.capital_county } -# } -# } -# # No direct descendant is currently Regent or Governor -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_direct_descendent_position_trigger -# any_descendants_are_governors = no -# } -# # No direct descendant is liege or above -# custom_tooltip = { -# text = create_cadet_branch_decision_liege_is_descendant -# any_liege_or_above_is_descendant = no -# } -# # Domicile level -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_domicile_building_trigger -# domicile ?= { has_domicile_parameter = unlocks_establish_fief_decision } -# } -# # Crown Authority -# trigger_if = { -# limit = { -# top_liege = { government_has_mechanic = administrative } -# } -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_centralization_trigger -# NOT = { has_realm_law = japanese_bureaucracy_3 } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# # Not Yamato -# tgp_is_in_ceremonial_house_trigger = no -# # Must be a Count or Higher -# highest_held_title_tier >= tier_county -# # Is not Regent -# is_independent_ruler = no -# } -# -# effect = { -# add_achievement_global_variable_effect = { -# VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement -# VALUE = yes -# } -# show_as_tooltip = { -# change_government = japan_feudal_government -# # Change Dynasty -# if = { -# limit = { -# NOT = { dynasty.dynast ?= this } -# } -# custom_tooltip = tgp_japan_establish_house_fief_found_house_effect -# } -# } -# # Fire relevant event -# if = { -# limit = { -# NOR = { -# dynasty.dynast ?= this -# house.house_head ?= this -# } -# } -# add_character_flag = establish_house_fief -# trigger_event = tgp_japan_decision.9001 -# } -# else = { trigger_event = tgp_japan_decision.9002 } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 36 -# duchy = 36 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# ai_potential = { -# is_landed = yes -# } -# ai_will_do = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 0.5 -# ai_honor = -0.5 -# } -# modifier = { -# house ?= { has_house_aspiration_parameter = ceremony_cheaper_feasts } -# add = -50 -# } -# modifier = { -# house ?= { has_house_aspiration_parameter = service_house_improved_educator_outcome_chance } -# add = -100 -# } -# modifier = { -# house ?= { has_house_aspiration_parameter = determination_spymaster_task_find_secrets_efficiency } -# add = 50 -# } -# modifier = { -# house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_armory } -# add = 100 -# } -# } -#} -# -## Become Soryo as independent Ritsuryō -#### Establish Sōryō Administration ### -#tgp_japan_establish_soryo_administration_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_establish_soryo_administration_decision -# desc = tgp_japan_establish_soryo_administration_decision_desc -# selection_tooltip = tgp_japan_establish_soryo_administration_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = massive_prestige_gain -# } -# influence = { -# value = { -# value = monumental_influence_gain -# multiply = 2 -# } -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# is_independent_ruler = yes -# government_is_japanese_trigger = yes -# NOR = { -# government_has_flag = government_is_japan_feudal -# has_global_variable = shogunate_established -# } -# } -# -# is_valid = { -# # Is Regent -# trigger_if = { -# limit = { -# has_title = title:e_japan -# } -# has_realm_law = japanese_regency_succession_law -# } -# is_independent_ruler = yes -# has_government = japan_administrative_government -# has_realm_law = japanese_bureaucracy_3 -# custom_tooltip = { -# text = house_head_create_faction_cohesion_hard_tt -# house.house_confederation ?= { -# leading_house ?= root.house -# has_cohesion_level_parameter = house_head_adopt_soryo_regency -# } -# } -# custom_tooltip = { -# text = house_head_adopt_soryo_regency_tt -# house.house_confederation ?= { -# leading_house ?= root.house -# has_cohesion_level_parameter = house_head_adopt_soryo_regency -# } -# } -# is_at_war = no -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# add_achievement_global_variable_effect = { -# VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement -# VALUE = yes -# } -# custom_tooltip = japanese_establish_soryo_administration_war_start_tt -# custom_description_no_bullet = { text = if_you_win_effect } -# show_as_tooltip = { japanese_establish_soryo_administration_reward_effect = yes } -# trigger_event = { -# id = tgp_japan_decision.9601 -# delayed = yes -# } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# ai_potential = { always = yes } -# ai_will_do = { base = 100 } -#} -# -## Become Shogun -#### Formalize [ROOT.Char.GetHouse.GetNameNoTooltip] Shōgunate ### -#tgp_japan_become_shogun_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_become_shogun_decision -# desc = tgp_japan_become_shogun_decision_desc -# selection_tooltip = tgp_japan_become_shogun_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = monumental_prestige_gain -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# tgp_is_in_ceremonial_house_trigger = no -# government_has_flag = government_is_japan_feudal -# top_liege = { has_title = title:e_britannia } -# NOR = { -# has_global_variable = shogunate_established -# has_global_variable = british_monarch_restored -# } -# } -# -# is_valid = { -# # Is Regent -# custom_tooltip = { -# text = tgp_japan_become_shogun_decision_top_liege_trigger -# has_title = title:e_japan -# } -# prestige_level >= 4 -# legitimacy_level >= 4 -# is_independent_ruler = yes -# has_government = japan_feudal_government -# custom_tooltip = { -# text = tgp_japan_become_shogun_decision_centralization_trigger -# OR = { -# has_realm_law = japanese_bureaucracy_2 -# has_realm_law = japanese_bureaucracy_3 -# } -# } -# is_at_war = no -# custom_tooltip = { -# text = tgp_japan_become_shogun_decision_land_trigger -# top_liege = { -# completely_controls = title:d_kinai -# completely_controls = title:d_nankaido -# completely_controls = title:d_hokurikudo -# completely_controls = title:d_west_bando -# completely_controls = title:d_north_saikaido -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# trigger_event = tgp_japan_decision.9101 -# show_as_tooltip = { japanese_become_shogun_reward_effect = yes } -# if = { -# limit = { -# is_ai = no -# this = character:japanese_minamoto_seiwa_10 -# } -# add_achievement_global_variable_effect = { -# VARIABLE = finished_ep4_08_shogun_achievement -# VALUE = yes -# } -# } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# ai_potential = { always = yes } -# ai_will_do = { base = 100 } -#} -# -## Emperor Restoration -#### Restore Direct Imperial Rule ### -#tgp_japan_emperor_restoration_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_emperor_restoration_decision -# desc = tgp_japan_emperor_restoration_decision_desc -# selection_tooltip = tgp_japan_emperor_restoration_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = monumental_prestige_gain -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# top_liege = { has_title = title:e_britannia } -# tgp_realm_has_ceremonial_liege_trigger = yes -# custom_tooltip = { -# text = tgp_is_ceremonial_liege_tt -# tgp_has_ceremonial_liege_title_trigger = yes -# } -# NOT = { has_global_variable = british_monarch_restored } -# } -# -# is_valid = { -# is_independent_ruler = yes -# has_title = title:e_japan -# tgp_has_ceremonial_liege_title_trigger = yes -# custom_tooltip = { -# text = tgp_japan_become_shogun_decision_centralization_trigger -# OR = { -# has_realm_law = japanese_bureaucracy_2 -# has_realm_law = japanese_bureaucracy_3 -# } -# } -# is_at_war = no -# completely_controls = title:d_kinai -# completely_controls = title:d_nankaido -# completely_controls = title:d_hokurikudo -# completely_controls = title:d_west_bando -# completely_controls = title:d_north_saikaido -# custom_tooltip = { -# text = tgp_japan_no_other_powerful_forces_trigger -# NOT = { -# title:e_japan.holder = { -# any_vassal = { -# NOR = { -# this = root -# is_allied_to = root -# house = root.house -# } -# current_strength_with_allies_value > root.current_strength_with_allies_fifty_percent_value -# } -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# if = { -# limit = { -# is_ai = no -# has_title = title:k_royal_household -# } -# add_achievement_global_variable_effect = { -# VARIABLE = finished_ep4_03_sword_of_japan_achievement -# VALUE = yes -# } -# } -# trigger_event = tgp_japan_decision.9301 -# show_as_tooltip = { -# restore_ceremonial_liege_faction_reward_effect = yes -# } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# ai_potential = { always = yes } -# ai_will_do = { base = 100 } -#} -# -## Yamato into Minamoto/Taira -#### Request Royal Honsei ### -#tgp_japan_imperial_branch_decision = { -# decision_group_type = major -# title = tgp_japan_imperial_branch_decision -# desc = tgp_japan_imperial_branch_decision_desc -# selection_tooltip = tgp_japan_imperial_branch_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = minor_prestige_gain -# } -# influence = { -# value = minor_influence_gain -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# # Still Ritsuryo -# government_is_japanese_trigger = yes -# top_liege.primary_title.var:administrative_ui_special_title.holder ?= { government_is_japanese_trigger = yes } -# # Must be Yamato -# tgp_is_in_ceremonial_house_trigger = yes -# # Monks need not apply -# NOT = { has_trait = devoted } -# # Must be within Japan -# top_liege = { has_title = title:e_britannia } -# } -# -# is_valid = { -# custom_tooltip = { -# text = is_faith_dominant_gender_tt -# is_faith_dominant_gender = yes -# } -# # Descended from an Emperor -# custom_tooltip = { -# text = tgp_japan_imperial_branch_decision_emperor_ancestor_trigger -# ceremonial_liege_title ?= { -# any_past_holder = { -# OR = { -# is_parent_of = root -# is_grandparent_of = root -# is_great_grandparent_of = root -# } -# } -# } -# } -# # Emperor and heirs cannot take this -# custom_tooltip = { -# text = tgp_japan_imperial_branch_decision_imperial_heir_trigger -# ceremonial_liege_title ?= { -# NOR = { -# holder ?= root -# any_title_heir = { this = root } -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# ceremonial_liege ?= { is_available = yes } -# # No direct descendant is currently Governor -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_direct_descendent_position_trigger -# any_descendants_are_governors = no -# } -# # No direct descendant is liege or above -# custom_tooltip = { -# text = create_cadet_branch_decision_liege_is_descendant -# any_liege_or_above_is_descendant = no -# } -# # Not Dynast -# is_house_head = no -# } -# -# effect = { -# # Find nearest Emperor -# ceremonial_liege_title ?= { -# random_past_holder = { -# limit = { is_parent_of = root } -# alternative_limit = { is_grandparent_of = root } -# alternative_limit = { is_great_grandparent_of = root } -# save_scope_as = nearest_emperor -# random_close_or_extended_family_member = { -# even_if_dead = yes -# limit = { -# OR = { -# is_child_of = scope:nearest_emperor -# is_grandchild_of = scope:nearest_emperor -# is_great_grandchild_of = scope:nearest_emperor -# } -# dynasty ?= { -# NOT = { this = dynasty:japanese_yamato } -# exists = var:minamoto_flag -# } -# # Filter out dynasties of Emperors further away from you -# target_shares_nearest_related_title_holder_trigger = { -# COMPARE = scope:nearest_emperor -# TITLE = root.ceremonial_liege_title -# } -# house.house_head.top_liege ?= root.top_liege -# } -# house ?= { -# save_scope_as = minamoto_house -# house_head = { save_scope_as = minamoto_head } -# } -# } -# random_close_or_extended_family_member = { -# even_if_dead = yes -# limit = { -# OR = { -# is_child_of = scope:nearest_emperor -# is_grandchild_of = scope:nearest_emperor -# is_great_grandchild_of = scope:nearest_emperor -# } -# dynasty ?= { -# NOT = { this = dynasty:japanese_yamato } -# exists = var:taira_flag -# } -# # Filter out dynasties of Emperors further away from you -# target_shares_nearest_related_title_holder_trigger = { -# COMPARE = scope:nearest_emperor -# TITLE = root.ceremonial_liege_title -# } -# house.house_head.top_liege ?= root.top_liege -# } -# house ?= { -# save_scope_as = taira_house -# house_head = { save_scope_as = taira_head } -# } -# } -# } -# } -# if = { -# limit = { -# exists = scope:minamoto_house -# exists = scope:taira_house -# } -# custom_tooltip = tgp_japan_imperial_branch_decision_existing_dynasty_effect -# } -# else_if = { -# limit = { exists = scope:minamoto_house } -# custom_tooltip = tgp_japan_imperial_branch_decision_existing_or_taira_effect -# } -# else_if = { -# limit = { exists = scope:taira_house } -# custom_tooltip = tgp_japan_imperial_branch_decision_existing_or_minamoto_effect -# } -# else = { custom_tooltip = tgp_japan_imperial_branch_decision_new_dynasty_effect } -# custom_tooltip = tgp_japan_establish_house_fief_direct_descendents_effect -# if = { -# limit = { government_allows = noble_families } -# if = { -# limit = { -# OR = { -# exists = scope:minamoto_house -# exists = scope:taira_house -# } -# } -# custom_tooltip = may_found_noble_family_tt -# } -# else = { custom_tooltip = will_found_noble_family_tt } -# } -# trigger_event = tgp_japan_decision.9201 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 36 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 36 -# } -# ai_potential = { -# is_adult = yes -# is_landed = yes -# any_child = { count >= 1 } -# } -# ai_will_do = { -# base = 150 #-25 -# modifier = { -# has_trait = arrogant -# add = -25 -# } -# modifier = { -# has_trait = humble -# add = 25 -# } -# modifier = { -# has_trait = content -# add = -25 -# } -# modifier = { -# has_trait = ambitious -# add = 25 -# } -# modifier = { -# is_ruler = yes -# add = 25 -# } -# modifier = { -# OR = { -# has_trait = bastard -# has_trait = wild_oat -# } -# add = 25 -# } -# modifier = { -# has_trait = disinherited -# add = 25 -# } -# modifier = { -# has_trait = adopted_no_inheritance -# add = 25 -# } -# modifier = { -# ceremonial_liege_title = { -# any_past_holder = { is_parent_of = root } -# } -# add = -50 -# } -# modifier = { -# ceremonial_liege_title = { -# any_past_holder = { is_grandparent_of = root } -# } -# add = -25 -# } -# modifier = { -# house ?= { -# any_house_member = { count < 25 } -# } -# add = -25 -# } -# modifier = { -# house ?= { -# any_house_member = { count < 15 } -# } -# factor = 0 -# } -# } -#} -# -##Become a Poet - Ceremony - House Aspiration -#### Study Poetry ### -#tgp_japan_become_a_poet_decision = { -# title = tgp_japan_become_a_poet_decision -# desc = tgp_japan_become_a_poet_decision_desc -# selection_tooltip = tgp_japan_become_a_poet_decision_tooltip -# picture = { -# trigger = { -# OR = { -# government_is_japanese_trigger = yes -# government_has_flag = government_is_celestial -# government_has_flag = government_is_meritocratic -# } -# } -# reference = "gfx/interface/illustrations/decisions/tgp_poet.dds" -# } -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_tale.dds" -# } -# cooldown = { years = 15 } -# sort_order = 110 -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# OR = { -# AND = { -# government_is_japanese_trigger = yes -# house = { has_house_aspiration_parameter = ceremony_become_a_poet_decision } -# } -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = advancement_movement -# } -# } -# } -# -# is_valid = { -# NOT = { has_trait = lifestyle_poet } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# custom_tooltip = tgp_japan_become_a_poet_decision_effects_tooltip_trait -# custom_tooltip = tgp_japan_become_a_poet_decision_effects_tooltip_stress -# -# hidden_effect = { -# trigger_event = { -# id = tgp_japan_decision.9401 -# days = { 40 60 } -# } -# } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 36 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 36 -# } -# -# ai_potential = { -# is_adult = yes -# is_at_war = no -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Inspire the Troops - Strength - House Aspiration -#### Inspire the Troops ### -#tgp_japan_train_with_troops_decision = { -# title = tgp_japan_train_with_troops_decision -# desc = tgp_japan_train_with_troops_decision_desc -# selection_tooltip = tgp_japan_train_with_troops_decision_tooltip -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds" -# } -# cooldown = { years = 20 } -# sort_order = 0 -# -# cost = { -# prestige = { -# value = major_prestige_value -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# government_is_japanese_trigger = yes -# house = { has_house_aspiration_parameter = strength_train_with_troops_decision } -# } -# -# is_valid_showing_failures_only = { -# is_imprisoned = no -# is_incapable = no -# has_contagious_deadly_disease_trigger = no -# is_at_war = yes -# } -# -# effect = { -# #Apply the Character Modifier -# send_interface_toast = { -# title = tgp_japan_train_with_troops_decision_effects_tooltip_modifier -# type = event_toast_effect_good -# left_icon = root -# add_character_modifier = { -# modifier = tgp_japan_train_with_troops_modifier -# years = 10 -# } -# } -# #Chance to apply a Commander Trait -# if = { -# limit = { -# number_of_commander_traits < 3 -# } -# custom_tooltip = { -# text = tgp_japan_train_with_troops_decision_effects_tooltip_trait -# #The higher Martial, the better the odds of gaining a Commander Trait -# random = { -# chance = { -# value = 20 -# if = { -# limit = { -# root.martial >= monumentally_high_skill_rating -# } -# add = 20 -# } -# else_if = { -# limit = { -# root.martial >= extremely_high_skill_rating -# } -# add = 15 -# } -# else_if = { -# limit = { -# root.martial >= very_high_skill_rating -# } -# add = 10 -# } -# else_if = { -# limit = { -# root.martial >= high_skill_rating -# } -# add = 5 -# } -# } -# give_random_commander_trait_effect = yes -# } -# } -# } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 12 -# duchy = 12 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# -# ai_potential = { -# is_adult = yes -# is_at_war = yes -# } -# -# ai_will_do = { -# base = 10 -# } -#} -# -## Becoming a Buddhist monk near the end of your life (or when you become seriously ill) -#### In Search of the Pure Land ### -#tgp_japan_become_a_monk_decision = { -# title = tgp_japan_become_a_monk_decision -# desc = tgp_japan_become_a_monk_decision_desc -# selection_tooltip = tgp_japan_become_a_monk_decision_tooltip -# picture = { -# reference = "gfx/interface/illustrations/event_scenes/tgp_temple_asia.dds" -# } -# sort_order = 80 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 60 -# duchy = 60 -# kingdom = 60 -# empire = 60 -# hegemony = 60 -# } -# -# is_shown = { -# religion = religion:buddhism_religion -# is_adult = yes -# NOT = { government_has_flag = government_is_mandala } -# } -# -# is_valid = { -# religion = religion:buddhism_religion -# trigger_if = { -# limit = { is_ai = no } -# custom_tooltip = { -# text = renounce_noble_family_title_decision_tt.title -# any_held_title = { is_noble_family_title = yes } -# } -# custom_tooltip = { -# text = renounce_noble_family_title_decision_tt.heir -# any_held_title = { -# is_noble_family_title = yes -# current_heir ?= { is_available_ai_adult = yes } -# } -# } -# } -# OR = { -# age >= 60 -# custom_tooltip = { -# text = tgp_japan_become_a_monk_decision_health_tt -# health <= poor_health -# } -# has_contagious_deadly_disease_trigger = yes -# has_trait = infirm -# has_trait = withering_mind -# has_trait = faltering_heart -# has_trait = fragile_bones -# has_trait = depressed_1 -# } -# } -# -# is_valid_showing_failures_only = { -# # Is available sans health checks -# is_available_quick = { -# adult = yes -# alive = yes -# travel = no -# in_army = no -# imprisoned = no -# incapable = no -# } -# custom_description = { -# text = ALREADY_IN_ACTIVITY -# NOR = { -# exists = involved_activity -# has_variable = { -# name = homage_liege_scope -# name = meditation_character_flag -# name = local_shrine_rite -# name = petition_liege_character_flag -# name = holding_court_character_flag -# } -# is_being_visited_on_tour_strict = yes -# } -# } -# custom_description = { -# text = ALREADY_PLANNING_ACTIVITY -# NOT = { has_character_flag = planning_an_activity } -# } -# # Variable set within the adventure inspiration events -# NOT = { has_variable = gone_adventuring } -# is_at_war_with_liege = no -# trigger_if = { -# limit = { -# has_realm_law_flag = celestial_retirement_law -# } -# tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } -# } -# } -# -# effect = { -# show_as_tooltip = { -# add_trait = devoted -# tgp_renounce_estate_effect = yes -# } -# trigger_event = { -# id = tgp_japan_decision.9500 -# } -# } -# -# ai_potential = { -# religion ?= religion:buddhism_religion -# NOT = { government_has_flag = government_is_mandala } -# is_adult = yes -# is_at_war = no -# tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } -# # Don't step down freely if you don't have any other house members holding a noble_family_title or inherit any held noble_family_title -# OR = { -# house ?= { -# any_house_member = { -# is_governor = yes -# top_liege = root.top_liege -# } -# } -# any_held_title = { -# tier = root.highest_held_title_tier -# is_noble_family_title = no -# current_heir.house = root.house -# } -# } -# } -# -# ai_will_do = { -# base = -10 -# modifier = { -# add = 10 -# health <= poor_health -# } -# modifier = { -# add = 150 -# health <= dying_health -# } -# modifier = { -# add = 10 -# has_trait = lazy -# } -# modifier = { -# add = 10 -# has_trait = humble -# } -# modifier = { -# add = 10 -# has_trait = content -# } -# modifier = { -# add = -100 -# OR = { -# has_trait = ambitious -# has_trait = greedy -# has_trait = arrogant -# } -# } -# } -#} -# -## Restore Chrysanthemum Throne -#### Restore a Yamato Ten'nō ### -#tgp_japan_restore_japanese_monarchy_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_restore_japanese_monarchy_decision -# desc = tgp_japan_restore_japanese_monarchy_decision_desc -# selection_tooltip = tgp_japan_restore_japanese_monarchy_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" } -# sort_order = 80 -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# government_is_japanese_trigger = yes -# # Chrysanthemum no longer part of Japan or destroyed -# trigger_if = { -# limit = { exists = title:k_royal_household.holder } -# NOT = { title:e_japan.holder ?= title:k_royal_household.holder.top_liege } -# } -# # Japanese culture -# culture = { -# OR = { -# this = culture:japanese -# any_parent_culture_or_above = { this = culture:japanese } -# } -# } -# } -# -# is_valid = { -# is_independent_ruler = yes -# has_title = title:e_japan -# completely_controls = title:c_yamashiro # Kyoto -# custom_tooltip = { # Chrysanthemum destroyed or no longer part of Japan -# text = tgp_japan_restore_japanese_monarchy_decision_title_tt -# trigger_if = { -# limit = { exists = title:k_royal_household.holder.top_liege } -# NOT = { title:e_japan.holder ?= title:k_royal_household.holder.top_liege } -# } -# trigger_else = { always = yes } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# tgp_restore_japanese_monarchy_decision_effect = yes -# trigger_event = tgp_japan_decision.9901 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# ai_potential = { always = yes } -# ai_will_do = { base = 100 } -#} -# -## Restore Ritsuryo -#### Restore Ritsuryō Bureaucracy ### -#tgp_japan_restore_japanese_government_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_restore_japanese_government_decision -# desc = tgp_japan_restore_japanese_government_decision_desc -# selection_tooltip = tgp_japan_restore_japanese_government_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" } -# sort_order = 85 -# -# cost = { -# prestige = { -# value = massive_prestige_gain -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# government_is_japanese_trigger = yes -# NOT = { government_has_flag = government_is_japan_administrative } -# # Japan not governed Japanesely or destroyed -# trigger_if = { -# limit = { exists = title:e_japan.holder } -# title:e_japan.holder = { government_is_japanese_trigger = no } -# } -# # Japanese culture -# culture = { -# OR = { -# this = culture:japanese -# any_parent_culture_or_above = { this = culture:japanese } -# } -# } -# } -# -# is_valid = { -# is_independent_ruler = yes -# has_title = title:e_japan -# is_at_war = no -# has_realm_law = japanese_bureaucracy_3 -# prestige_level >= 4 -# completely_controls = title:d_kinai -# completely_controls = title:d_nankaido -# completely_controls = title:d_hokurikudo -# completely_controls = title:d_west_bando -# completely_controls = title:d_north_saikaido -# OR = { -# government_has_mechanic = administrative -# government_allows = create_cadet_branches -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# show_as_tooltip = { tgp_restore_japanese_government_decision_effect = yes } -# trigger_event = tgp_japan_decision.9911 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# ai_potential = { always = yes } -# ai_will_do = { base = 100 } -#} -# -## Assert Regional Dominion (Become Soryo Duke i.e. SuperSoryoTM) -#### Assert Regional Dominion ### -#tgp_japan_assert_regional_dominion_government_decision = { -# decision_group_type = major -# sort_order = 100 -# title = tgp_japan_assert_regional_dominion_government_decision -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# has_global_variable = shogunate_established -# } -# desc = tgp_japan_assert_regional_dominion_government_decision_shogun_desc -# } -# desc = tgp_japan_assert_regional_dominion_government_decision_desc -# } -# } -# selection_tooltip = tgp_japan_assert_regional_dominion_government_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/decisions/tgp_dominance.dds" } -# -# sort_order = 85 -# cost = { -# prestige = { -# value = 1000 -# } -# } -# is_shown = { -# has_tgp_dlc_trigger = yes -# is_landed = yes -# highest_held_title_tier = tier_county -# government_has_flag = government_is_japan_feudal -# } -# -# is_valid = { -# is_at_war = no -# has_government = japan_feudal_government -# #must have sufficient prestige and legitimacy to even consider such a bold move. -# prestige_level >= 3 -# legitimacy_level >= 3 -# OR = { -# custom_tooltip = { -# text = tgp_japan_assert_regional_dominion_government_decision_trigger_01 -# domicile ?= { -# has_domicile_building_or_higher = japanese_manor_main_03 -# } -# } -# custom_tooltip = { -# text = tgp_japan_assert_regional_dominion_government_decision_trigger_aspiration -# house = { -# AND = { -# OR = { -# has_house_aspiration_parameter = unlocks_japanese_manor_armory -# has_house_aspiration_parameter = unlocks_japanese_manor_watch_house -# } -# has_house_aspiration_parameter = aspiration_level_3 -# } -# } -# } -# custom_tooltip = { -# text = tgp_japan_assert_regional_dominion_government_decision_trigger_bloc -# confederation ?= { -# has_leading_house = yes -# has_cohesion = yes -# leading_house ?= root.house -# cohesion >= 3 -# } -# house = { -# OR = { -# has_house_aspiration_parameter = unlocks_japanese_manor_armory -# has_house_aspiration_parameter = unlocks_japanese_manor_watch_house -# } -# } -# } -# } -# trigger_if = { -# limit = { -# is_ai = no # AI are an exception as they can continue to play despite not being House Heads -# } -# trigger_if = { -# limit = { -# house ?= { -# OR = { -# has_house_aspiration_parameter = ceremony_cheaper_feasts -# has_house_aspiration_parameter = unlocks_japanese_manor_archive -# } -# } -# } -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_aspiration_trigger -# house = { -# NOR = { -# has_house_aspiration_parameter = ceremony_cheaper_feasts -# has_house_aspiration_parameter = unlocks_japanese_manor_archive -# } -# } -# } -# } -# trigger_if = { -# limit = { -# NOT = { domicile.domicile_location.county.holder ?= this } -# } -# # Domicile in current Governorship -# custom_tooltip = { -# text = tgp_japan_establish_house_fief_domicile_in_governorship_trigger -# domicile.domicile_location.county.holder ?= this -# } -# } -# } -# # prime_minister or Shogun is weak. -# top_liege = { -# trigger_if = { -# limit = { -# OR = { -# AND = { -# has_realm_law = japanese_bureaucracy_3 -# culture = { has_cultural_tradition = tradition_tgp_bushido } -# } -# has_realm_law = japanese_bureaucracy_2 -# } -# } -# trigger_if = { -# limit = { -# culture = { has_cultural_tradition = tradition_tgp_bushido } -# } -# NOT = { has_realm_law = japanese_bureaucracy_3 } -# } -# trigger_else = { -# NOR = { -# has_realm_law = japanese_bureaucracy_0 -# has_realm_law = japanese_bureaucracy_1 -# } -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# is_at_war = no -# } -# -# effect = { -# show_as_tooltip = { tgp_japan_assert_regional_dominion_government_decision_effect = yes } -# trigger_event = tgp_japan_decision.9960 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 24 -# duchy = 0 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# ai_potential = { -# is_adult = yes -# } -# ai_will_do = { base = 25 } -#} -# -## Establish New Shogunate Court Decision -#### Move Shogunate Court Decision ### -#move_shogunate_court_decision = { -# decision_group_type = major -# title = tgp_japan_move_shogunate_court_decision -# desc = tgp_japan_move_shogunate_court_decision_desc -# selection_tooltip = tgp_japan_move_shogunate_court_decision_tooltip -# picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } -# -# cost = { -# gold = { -# value = massive_gold_value -# } -# prestige = { -# value = massive_prestige_gain -# } -# } -# -# is_shown = { -# has_tgp_dlc_trigger = yes -# is_landed = yes -# has_global_variable = shogunate_established -# NOT = { has_variable = moved_shogunate_court } -# domain_size > 1 -# capital_county = title:c_yamashiro -# } -# -# is_valid = { -# has_title = title:e_japan -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# set_realm_capital = scope:barony.county -# title:e_britannia = { set_capital_county = scope:barony.county } -# scope:barony.county = { -# change_prosperity_level = medium_prosperity_level_gain -# add_county_modifier = { -# modifier = tgp_moved_shogun_court_modifier -# years = 25 -# } -# } -# set_variable = moved_shogunate_court -# } -# -# widget = { -# controller = create_holy_order -# barony_valid = { -# trigger_if = { -# limit = { exists = this } -# is_capital_barony = yes -# holder = scope:ruler -# county != title:c_yamashiro -# is_leased_out = no -# } -# } -# } -# -# ai_potential = { -# is_playable_character = yes -# has_global_variable = shogunate_established -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 36 -# hegemony = 0 -# } -# -# ai_will_do = { -# base = 200 -# } -#} -# -## Emperor Starting a Ceremonial Monarch War -#### Begin the Restoration War ### -#tgp_japan_emperor_war_decision = { -# decision_group_type = major -# confirm_text = commit_suicide_decision_confirm -# picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } -# sort_order = 80 -# -# cost = { -# prestige = { -# value = massive_prestige_gain -# } -# } -# -# is_shown = { -# is_ai = no -# has_tgp_dlc_trigger = yes -# tgp_is_ceremonial_liege_trigger = yes -# tgp_is_ceremonial_regent_trigger = no -# joined_faction ?= { -# OR = { -# faction_leader ?= { -# is_ai = yes -# is_leading_faction_type = restore_ceremonial_liege_faction -# } -# any_faction_member = { -# this != root -# is_ai = yes -# is_landed = yes -# } -# } -# } -# NOT = { is_at_war_with = root.top_liege } -# } -# -# is_valid = { -# is_at_war = no -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# } -# -# effect = { -# joined_faction ?= { -# save_scope_as = ongoing_faction -# if = { -# limit = { -# exists = faction_leader -# } -# faction_leader = { -# save_scope_as = faction_leader_scope -# } -# } -# else = { -# ordered_faction_member = { -# order_by = current_military_strength -# limit = { -# this != root -# is_ai = yes -# is_landed = yes -# } -# save_scope_as = faction_leader_scope -# } -# } -# } -# -# show_as_tooltip = { -# scope:faction_leader_scope = { -# start_war = { -# cb = restore_ceremonial_liege_faction_war -# target = root.top_liege -# } -# } -# } -# -# hidden_effect = { -# scope:ongoing_faction = { -# faction_start_war = {} -# } -# } -# } -# -# ai_potential = { -# is_playable_character = yes -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 0 -# hegemony = 0 -# } -# -# ai_will_do = { -# base = 200 -# } -#} -# \ No newline at end of file +# Admin to Feudal +### Establish Sōryō Fief ### +tgp_japan_establish_house_fief_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_establish_house_fief_decision + desc = tgp_japan_establish_house_fief_decision_desc + selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip + picture = { reference = "gfx/interface/illustrations/decisions/tgp_house_fief.dds" } + sort_order = 80 + + cost = { + prestige = { + value = 500 + add = { + value = 250 + multiply = domain_size + } + } + gold = { + value = 0 + add = { + value = 50 + multiply = domain_size + } + } + } + + is_shown = { + has_government = japan_administrative_government + is_landed = yes + is_independent_ruler = no + has_tgp_dlc_trigger = yes + tgp_has_ceremonial_liege_title_trigger = no + } + + is_valid = { + # Is a Ritsuryo Governor + tgp_is_japanese_governor_trigger = yes + trigger_if = { + limit = { is_ai = no } # AI are an exception as they can continue to play despite not being House Heads + custom_tooltip = { + text = tgp_japan_establish_house_fief_aspiration_trigger + house = { + NOR = { + has_house_aspiration_parameter = ceremony_cheaper_feasts + has_house_aspiration_parameter = unlocks_japanese_manor_archive + } + } + } + # Domicile in current Governorship + custom_tooltip = { + text = tgp_japan_establish_house_fief_domicile_in_governorship_trigger + domicile.domicile_location.county.holder ?= this + } + # Domicile level + custom_tooltip = { + text = tgp_japan_establish_house_fief_domicile_building_trigger + domicile ?= { has_domicile_parameter = unlocks_establish_fief_decision } + } + } + trigger_else = { # AI heirs of players will never do this + trigger_if = { + limit = { + house.house_head ?= { + government_has_flag = government_is_japan_feudal + } + } + always = yes + } + trigger_else = { + NOT = { + house.house_head ?= { + is_ai = no + any_held_title = { is_noble_family_title = yes } + is_close_family_of = root + player_heir = root + } + } + } + } + # No direct descendant is currently Regent or Governor + custom_tooltip = { + text = tgp_japan_establish_house_fief_direct_descendent_position_trigger + any_descendants_are_governors = no + } + # No direct descendant is liege or above + custom_tooltip = { + text = create_cadet_branch_decision_liege_is_descendant + any_liege_or_above_is_descendant = no + } + # Crown Authority + trigger_if = { + limit = { + top_liege = { + government_has_mechanic = administrative + NOT = { government_has_flag = government_is_japan_feudal } + } + } + custom_tooltip = { + text = tgp_japan_establish_house_fief_centralization_trigger + NOT = { has_realm_law = japanese_bureaucracy_3 } + } + } + # Prevent ai flipflopping back after demand admin gov interaction + trigger_if = { + limit = { is_ai = yes } + NOR = { + var:demand_admin_accepted_ai_block ?= liege + var:demand_admin_accepted_ai_block ?= top_liege + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + # Not Yamato + tgp_is_in_ceremonial_house_trigger = no + # Must be a Count or Higher + highest_held_title_tier >= tier_county + # Domicile not in capital + custom_tooltip = { + text = tgp_japan_establish_house_fief_capital_domicile_trigger + NOT = { domicile.domicile_location.county ?= top_liege.capital_county } + } + # Is not Regent + is_independent_ruler = no + } + + # Used by Ruler Objective advice + advice = { + region = world_asia_japan + } + + effect = { + add_achievement_global_variable_effect = { + VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement + VALUE = yes + } + show_as_tooltip = { + # Change Dynasty + if = { + limit = { tgp_japan_cadet_creates_dynasty_trigger = yes } + custom_tooltip = tgp_japan_establish_house_fief_found_house_effect + } + else_if ={ + limit = { is_house_head = no } + custom_tooltip = create_noble_family_tt + } + # Change from Ritsuryo (Admin) to Soryo (Feudal) + custom_tooltip = tgp_japan_establish_house_fief_change_government_type_effect + # Crime to Kampaku + if = { + limit = { + is_independent_ruler = no + top_liege = { government_has_mechanic = administrative } + NOR = { + var:petition_liege_house_fief_allowed_flag ?= scope:new_head.top_liege + top_liege = { + government_has_flag = government_is_japan_feudal + } + } + } + custom_tooltip = tgp_japan_establish_house_fief_kampaku_crime_effect + } + } + hidden_effect = { + if = { + limit = { is_ai = yes } + if = { # Move AI domicile automatically + limit = { + exists = domicile + is_landed = yes + domicile.domicile_location.county != capital_county + } + domicile = { move_domicile = root.capital_province } + } + house = { # Help for AI to move to a Soryo aspiration + if = { + limit = { + OR = { + has_house_aspiration_parameter = ceremony_cheaper_feasts + has_house_aspiration_parameter = unlocks_japanese_manor_archive + } + } + random_list = { + 1 = { set_house_aspiration = { type = determination } } + 1 = { set_house_aspiration = { type = prosperity } } + 1 = { set_house_aspiration = { type = strength } } + } + } + } + } + } + # Fire relevant event + if = { + limit = { + NOR = { + dynasty.dynast ?= this + house.house_head ?= this + } + } + add_character_flag = establish_house_fief + trigger_event = tgp_japan_decision.9001 + } + else = { trigger_event = tgp_japan_decision.9002 } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 6 + duchy = 6 + kingdom = 0 + empire = 0 + hegemony = 0 + } + ai_potential = { + is_landed = yes + has_government = japan_administrative_government + NOT = { # Reluctance to forgo potential to become Kampaku + top_liege = { + has_realm_law = japanese_regency_succession_law + primary_title = { "place_in_line_of_succession(root)" <= 3 } + } + } + } + ai_will_do = { + base = -25 + ai_value_modifier = { # Personality + ai_boldness = 0.25 + ai_energy = 0.25 + ai_honor = -0.25 + } + modifier = { + has_trait = ambitious + add = 10 + } + modifier = { + has_trait = content + add = -10 + } + modifier = { + has_trait = brave + add = 10 + } + modifier = { + has_trait = craven + add = -10 + } + modifier = { + has_trait = vengeful + add = 10 + } + modifier = { + has_trait = forgiving + add = -10 + } + modifier = { + has_trait = impatient + add = 10 + } + modifier = { + has_trait = patient + add = -10 + } + modifier = { + has_trait = greedy + add = 10 + } + modifier = { + has_trait = generous + add = -10 + } + modifier = { + has_trait = arrogant + add = 10 + } + modifier = { + has_trait = humble + add = -10 + } + modifier = { # Prosperity + house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_brewery } + add = 25 + } + modifier = { # Determination + house ?= { has_house_aspiration_parameter = determination_spymaster_task_find_secrets_efficiency } + add = 50 + } + modifier = { # Strength + house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_armory } + add = 100 + } + modifier = { # Reluctance to turn against successful bloc + house.house_confederation ?= { + leading_house.house_head ?= { has_same_government = root } + cohesion >= 50 + } + add = -100 + } + modifier = { # Reluctance to turn against house head + is_house_head = no + house.house_confederation.leading_house.house_head ?= { + house = root.house + has_same_government = root + } + add = -15 + } + modifier = { # Encouraged by nearby + any_neighboring_realm_same_rank_owner = { government_has_flag = government_is_japan_feudal } + add = 25 + } + modifier = { + NOT = { exists = house.house_confederation } + add = 25 + } + modifier = { + add = { + value = "root.capital_province.squared_distance(root.top_liege.capital_province)" + divide = 100000 + } + } + modifier = { + add = { + value = maa_regiments_count + multiply = 5 + } + } + modifier = { + add = { + value = gold + divide = 100 + } + } + modifier = { + add = { + value = military_power + divide = 1000 + } + } + modifier = { + add = { + value = 0 + every_ally = { + limit = { + is_landed = yes + top_liege = root.top_liege + NOT = { government_has_mechanic = administrative } + } + add = 30 + } + } + } + modifier = { + current_date <= 900.1.1 + add = -75 + } + modifier = { + current_date <= 1000.1.1 + add = -75 + } + modifier = { + current_date >= 1100.1.1 + add = 75 + } + modifier = { + current_date >= 1200.1.1 + add = 75 + } + modifier = { + vassal_contract_has_flag = japan_administrative_province_military + add = 75 + } + modifier = { + has_trait = education_martial + add = 20 + } + modifier = { + has_realm_law = japanese_bureaucracy_1 + add = 10 + } + modifier = { + has_realm_law = japanese_bureaucracy_2 + add = 20 + } + modifier = { + has_realm_law = japanese_bureaucracy_3 + add = 30 + } + opinion_modifier = { # Opinion of liege + who = root + opinion_target = top_liege + multiplier = -0.5 + } + opinion_modifier = { # Opinion of house head + trigger = { is_house_head = no } + who = root + opinion_target = house.house_head + multiplier = -0.5 + } + opinion_modifier = { # Opinion of bloc leader + trigger = { + exists = house.house_confederation.leading_house.house_head + house.house_confederation.leading_house.house_head != root + } + who = root + opinion_target = house.house_confederation.leading_house.house_head + multiplier = -0.5 + } + } +} + +### Abandon the Bureaucracy ### +tgp_japan_establish_soryo_manor_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_establish_soryo_manor_decision + desc = tgp_japan_establish_soryo_manor_decision_desc + selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip + picture = { + reference = "gfx/interface/illustrations/decisions/tgp_house_fief.dds" + } + sort_order = 80 + + cost = { + prestige = { + value = 500 + } + } + + is_shown = { + has_government = japan_administrative_government + is_landed = no + tgp_has_ceremonial_liege_title_trigger = no + has_tgp_dlc_trigger = yes + exists = domicile + } + + is_valid = { + # Is a Ritsuryo Governor + has_government = japan_administrative_government + trigger_if = { + limit = { is_ai = no } # AI are an exception as they can continue to play despite not being House Heads + # Holds Noble Family title + custom_tooltip = { + text = is_house_head_of_noble_family_tt + house.house_head ?= this + any_held_title = { is_noble_family_title = yes } + } + custom_tooltip = { + text = tgp_japan_establish_house_fief_capital_domicile_trigger + NOT = { domicile.domicile_location.county ?= top_liege.capital_county } + } + } + # No direct descendant is currently Regent or Governor + custom_tooltip = { + text = tgp_japan_establish_house_fief_direct_descendent_position_trigger + any_descendants_are_governors = no + } + # No direct descendant is liege or above + custom_tooltip = { + text = create_cadet_branch_decision_liege_is_descendant + any_liege_or_above_is_descendant = no + } + # Domicile level + custom_tooltip = { + text = tgp_japan_establish_house_fief_domicile_building_trigger + domicile ?= { has_domicile_parameter = unlocks_establish_fief_decision } + } + # Crown Authority + trigger_if = { + limit = { + top_liege = { government_has_mechanic = administrative } + } + custom_tooltip = { + text = tgp_japan_establish_house_fief_centralization_trigger + NOT = { has_realm_law = japanese_bureaucracy_3 } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + # Not Yamato + tgp_is_in_ceremonial_house_trigger = no + # Must be a Count or Higher + highest_held_title_tier >= tier_county + # Is not Regent + is_independent_ruler = no + } + + effect = { + add_achievement_global_variable_effect = { + VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement + VALUE = yes + } + show_as_tooltip = { + change_government = japan_feudal_government + # Change Dynasty + if = { + limit = { + NOT = { dynasty.dynast ?= this } + } + custom_tooltip = tgp_japan_establish_house_fief_found_house_effect + } + } + # Fire relevant event + if = { + limit = { + NOR = { + dynasty.dynast ?= this + house.house_head ?= this + } + } + add_character_flag = establish_house_fief + trigger_event = tgp_japan_decision.9001 + } + else = { trigger_event = tgp_japan_decision.9002 } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 36 + duchy = 36 + kingdom = 0 + empire = 0 + hegemony = 0 + } + ai_potential = { + is_landed = yes + } + ai_will_do = { + base = 100 + ai_value_modifier = { + ai_boldness = 0.5 + ai_honor = -0.5 + } + modifier = { + house ?= { has_house_aspiration_parameter = ceremony_cheaper_feasts } + add = -50 + } + modifier = { + house ?= { has_house_aspiration_parameter = service_house_improved_educator_outcome_chance } + add = -100 + } + modifier = { + house ?= { has_house_aspiration_parameter = determination_spymaster_task_find_secrets_efficiency } + add = 50 + } + modifier = { + house ?= { has_house_aspiration_parameter = unlocks_japanese_manor_armory } + add = 100 + } + } +} + +# Become Soryo as independent Ritsuryō +### Establish Sōryō Administration ### +tgp_japan_establish_soryo_administration_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_establish_soryo_administration_decision + desc = tgp_japan_establish_soryo_administration_decision_desc + selection_tooltip = tgp_japan_establish_soryo_administration_decision_tooltip + picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } + sort_order = 80 + + cost = { + prestige = { + value = massive_prestige_gain + } + influence = { + value = { + value = monumental_influence_gain + multiply = 2 + } + } + } + + is_shown = { + is_independent_ruler = yes + government_is_japanese_trigger = yes + NOR = { + government_has_flag = government_is_japan_feudal + has_global_variable = shogunate_established + AND = { + has_global_variable = tenno_restored + tgp_has_ceremonial_liege_title_trigger = yes + } + } + has_tgp_dlc_trigger = yes + } + + is_valid = { + # Is Regent + trigger_if = { + limit = { + has_title = title:e_japan + } + has_realm_law = japanese_regency_succession_law + } + is_independent_ruler = yes + has_government = japan_administrative_government + has_realm_law = japanese_bureaucracy_3 + custom_tooltip = { + text = house_head_create_faction_cohesion_hard_tt + house.house_confederation ?= { + leading_house ?= root.house + has_cohesion_level_parameter = house_head_adopt_soryo_regency + } + } + custom_tooltip = { + text = house_head_adopt_soryo_regency_tt + house.house_confederation ?= { + leading_house ?= root.house + has_cohesion_level_parameter = house_head_adopt_soryo_regency + } + } + is_at_war = no + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + add_achievement_global_variable_effect = { + VARIABLE = achieved_ep4_18_yes_i_need_my_samurai_achievement + VALUE = yes + } + custom_tooltip = japanese_establish_soryo_administration_war_start_tt + custom_description_no_bullet = { text = if_you_win_effect } + show_as_tooltip = { japanese_establish_soryo_administration_reward_effect = yes } + trigger_event = { + id = tgp_japan_decision.9601 + delayed = yes + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + ai_potential = { always = yes } + ai_will_do = { base = 100 } +} + +# Become Shogun +### Formalize [ROOT.Char.GetHouse.GetNameNoTooltip] Shōgunate ### +tgp_japan_become_shogun_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_become_shogun_decision + desc = tgp_japan_become_shogun_decision_desc + selection_tooltip = tgp_japan_become_shogun_decision_tooltip + picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } + sort_order = 80 + + cost = { + prestige = { + value = monumental_prestige_gain + } + } + + is_shown = { + government_has_flag = government_is_japan_feudal + NOR = { + has_global_variable = shogunate_established + has_global_variable = tenno_restored + } + top_liege ?= { has_title = title:e_japan } + tgp_is_in_ceremonial_house_trigger = no + has_tgp_dlc_trigger = yes + } + + is_valid = { + # Is Regent + custom_tooltip = { + text = tgp_japan_become_shogun_decision_top_liege_trigger + has_title = title:e_japan + } + prestige_level >= 4 + legitimacy_level >= 4 + is_independent_ruler = yes + has_government = japan_feudal_government + custom_tooltip = { + text = tgp_japan_become_shogun_decision_centralization_trigger + OR = { + has_realm_law = japanese_bureaucracy_2 + has_realm_law = japanese_bureaucracy_3 + } + } + is_at_war = no + custom_tooltip = { + text = tgp_japan_become_shogun_decision_land_trigger + top_liege = { + completely_controls = title:d_kinai + completely_controls = title:d_nankaido + completely_controls = title:d_hokurikudo + completely_controls = title:d_west_bando + completely_controls = title:d_north_saikaido + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + trigger_event = tgp_japan_decision.9101 + show_as_tooltip = { japanese_become_shogun_reward_effect = yes } + if = { + limit = { + is_ai = no + this = character:japanese_minamoto_seiwa_10 + } + add_achievement_global_variable_effect = { + VARIABLE = finished_ep4_08_shogun_achievement + VALUE = yes + } + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + ai_potential = { always = yes } + ai_will_do = { base = 100 } +} + +# Emperor Restoration +### Restore Direct Imperial Rule ### +tgp_japan_emperor_restoration_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_emperor_restoration_decision + desc = tgp_japan_emperor_restoration_decision_desc + selection_tooltip = tgp_japan_emperor_restoration_decision_tooltip + picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } + sort_order = 80 + + cost = { + prestige = { + value = monumental_prestige_gain + } + } + + is_shown = { + tgp_realm_has_ceremonial_liege_trigger = yes + custom_tooltip = { + text = tgp_is_ceremonial_liege_tt + tgp_has_ceremonial_liege_title_trigger = yes + } + NOT = { has_global_variable = tenno_restored } + top_liege ?= { has_title = title:e_japan } + has_tgp_dlc_trigger = yes + } + + is_valid = { + is_independent_ruler = yes + has_title = title:e_japan + tgp_has_ceremonial_liege_title_trigger = yes + custom_tooltip = { + text = tgp_japan_become_shogun_decision_centralization_trigger + OR = { + has_realm_law = japanese_bureaucracy_2 + has_realm_law = japanese_bureaucracy_3 + } + } + is_at_war = no + completely_controls = title:d_kinai + completely_controls = title:d_nankaido + completely_controls = title:d_hokurikudo + completely_controls = title:d_west_bando + completely_controls = title:d_north_saikaido + custom_tooltip = { + text = tgp_japan_no_other_powerful_forces_trigger + NOT = { + title:e_japan.holder = { + any_vassal = { + NOR = { + this = root + is_allied_to = root + house = root.house + } + current_strength_with_allies_value > root.current_strength_with_allies_fifty_percent_value + } + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + custom_tooltip = disable_soryo_decision + if = { + limit = { + is_ai = no + has_title = title:k_chrysanthemum_throne + } + add_achievement_global_variable_effect = { + VARIABLE = finished_ep4_03_sword_of_japan_achievement + VALUE = yes + } + } + trigger_event = tgp_japan_decision.9301 + show_as_tooltip = { + restore_ceremonial_liege_faction_reward_effect = yes + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + ai_potential = { always = yes } + ai_will_do = { base = 100 } +} + +# Yamato into Minamoto/Taira +### Request Royal Honsei ### +tgp_japan_imperial_branch_decision = { + decision_group_type = major + title = tgp_japan_imperial_branch_decision + desc = tgp_japan_imperial_branch_decision_desc + selection_tooltip = tgp_japan_imperial_branch_decision_tooltip + picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } + sort_order = 80 + + cost = { + prestige = { + value = minor_prestige_gain + } + influence = { + value = minor_influence_gain + } + } + + is_shown = { + # Still Ritsuryo + government_is_japanese_trigger = yes + # Must be Yamato + tgp_is_in_ceremonial_house_trigger = yes + # Monks need not apply + NOT = { has_trait = devoted } + # Must be within Japan + top_liege ?= { has_title = title:e_japan } + has_tgp_dlc_trigger = yes + ceremonial_liege ?= { government_is_japanese_trigger = yes } + } + + is_valid = { + custom_tooltip = { + text = is_faith_dominant_gender_tt + is_faith_dominant_gender = yes + } + # Descended from an Emperor + custom_tooltip = { + text = tgp_japan_imperial_branch_decision_emperor_ancestor_trigger + ceremonial_liege_title ?= { + any_past_holder = { + OR = { + is_parent_of = root + is_grandparent_of = root + is_great_grandparent_of = root + } + } + } + } + # Emperor and heirs cannot take this + custom_tooltip = { + text = tgp_japan_imperial_branch_decision_imperial_heir_trigger + ceremonial_liege_title ?= { + NOR = { + holder ?= root + any_title_heir = { this = root } + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + ceremonial_liege ?= { is_available = yes } + # No direct descendant is currently Governor + custom_tooltip = { + text = tgp_japan_establish_house_fief_direct_descendent_position_trigger + any_descendants_are_governors = no + } + # No direct descendant is liege or above + custom_tooltip = { + text = create_cadet_branch_decision_liege_is_descendant + any_liege_or_above_is_descendant = no + } + # Not Dynast + is_house_head = no + } + + effect = { + # Find nearest Emperor + ceremonial_liege_title ?= { + random_past_holder = { + limit = { is_parent_of = root } + alternative_limit = { is_grandparent_of = root } + alternative_limit = { is_great_grandparent_of = root } + save_scope_as = nearest_emperor + random_close_or_extended_family_member = { + even_if_dead = yes + limit = { + OR = { + is_child_of = scope:nearest_emperor + is_grandchild_of = scope:nearest_emperor + is_great_grandchild_of = scope:nearest_emperor + } + dynasty ?= { + NOT = { this = dynasty:japanese_yamato } + exists = var:minamoto_flag + } + # Filter out dynasties of Emperors further away from you + target_shares_nearest_related_title_holder_trigger = { + COMPARE = scope:nearest_emperor + TITLE = root.ceremonial_liege_title + } + house.house_head.top_liege ?= root.top_liege + } + house ?= { + save_scope_as = minamoto_house + house_head = { save_scope_as = minamoto_head } + } + } + random_close_or_extended_family_member = { + even_if_dead = yes + limit = { + OR = { + is_child_of = scope:nearest_emperor + is_grandchild_of = scope:nearest_emperor + is_great_grandchild_of = scope:nearest_emperor + } + dynasty ?= { + NOT = { this = dynasty:japanese_yamato } + exists = var:taira_flag + } + # Filter out dynasties of Emperors further away from you + target_shares_nearest_related_title_holder_trigger = { + COMPARE = scope:nearest_emperor + TITLE = root.ceremonial_liege_title + } + house.house_head.top_liege ?= root.top_liege + } + house ?= { + save_scope_as = taira_house + house_head = { save_scope_as = taira_head } + } + } + } + } + if = { + limit = { + exists = scope:minamoto_house + exists = scope:taira_house + } + custom_tooltip = tgp_japan_imperial_branch_decision_existing_dynasty_effect + } + else_if = { + limit = { exists = scope:minamoto_house } + custom_tooltip = tgp_japan_imperial_branch_decision_existing_or_taira_effect + } + else_if = { + limit = { exists = scope:taira_house } + custom_tooltip = tgp_japan_imperial_branch_decision_existing_or_minamoto_effect + } + else = { custom_tooltip = tgp_japan_imperial_branch_decision_new_dynasty_effect } + custom_tooltip = tgp_japan_establish_house_fief_direct_descendents_effect + if = { + limit = { government_allows = noble_families } + if = { + limit = { + OR = { + exists = scope:minamoto_house + exists = scope:taira_house + } + } + custom_tooltip = may_found_noble_family_tt + } + else = { custom_tooltip = will_found_noble_family_tt } + } + trigger_event = tgp_japan_decision.9201 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 36 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 36 + } + ai_potential = { + is_adult = yes + is_landed = yes + any_child = { count >= 1 } + } + ai_will_do = { + base = 150 #-25 + modifier = { + has_trait = arrogant + add = -25 + } + modifier = { + has_trait = humble + add = 25 + } + modifier = { + has_trait = content + add = -25 + } + modifier = { + has_trait = ambitious + add = 25 + } + modifier = { + is_ruler = yes + add = 25 + } + modifier = { + OR = { + has_trait = bastard + has_trait = wild_oat + } + add = 25 + } + modifier = { + has_trait = disinherited + add = 25 + } + modifier = { + has_trait = adopted_no_inheritance + add = 25 + } + modifier = { + ceremonial_liege_title = { + any_past_holder = { is_parent_of = root } + } + add = -50 + } + modifier = { + ceremonial_liege_title = { + any_past_holder = { is_grandparent_of = root } + } + add = -25 + } + modifier = { + house ?= { + any_house_member = { count < 25 } + } + add = -25 + } + modifier = { + house ?= { + any_house_member = { count < 15 } + } + factor = 0 + } + } +} + +#Become a Poet - Ceremony - House Aspiration +### Study Poetry ### +tgp_japan_become_a_poet_decision = { + title = tgp_japan_become_a_poet_decision + desc = tgp_japan_become_a_poet_decision_desc + selection_tooltip = tgp_japan_become_a_poet_decision_tooltip + picture = { + trigger = { + OR = { + government_is_japanese_trigger = yes + government_has_flag = government_is_celestial + government_has_flag = government_is_meritocratic + } + } + reference = "gfx/interface/illustrations/decisions/tgp_poet.dds" + } + picture = { + reference = "gfx/interface/illustrations/decisions/decision_tale.dds" + } + cooldown = { years = 15 } + sort_order = 110 + + is_shown = { + OR = { + AND = { + government_is_japanese_trigger = yes + house ?= { has_house_aspiration_parameter = ceremony_become_a_poet_decision } + } + top_participant_group:dynastic_cycle ?= { + participant_group_type = advancement_movement + } + } + has_tgp_dlc_trigger = yes + } + + is_valid = { + NOT = { has_trait = lifestyle_poet } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + custom_tooltip = tgp_japan_become_a_poet_decision_effects_tooltip_trait + custom_tooltip = tgp_japan_become_a_poet_decision_effects_tooltip_stress + + hidden_effect = { + trigger_event = { + id = tgp_japan_decision.9401 + days = { 40 60 } + } + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 36 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 36 + } + + ai_potential = { + is_adult = yes + is_at_war = no + } + + ai_will_do = { + base = 100 + } +} + +#Inspire the Troops - Strength - House Aspiration +### Inspire the Troops ### +tgp_japan_train_with_troops_decision = { + title = tgp_japan_train_with_troops_decision + desc = tgp_japan_train_with_troops_decision_desc + selection_tooltip = tgp_japan_train_with_troops_decision_tooltip + picture = { + reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds" + } + cooldown = { years = 20 } + sort_order = 0 + + cost = { + prestige = { + value = major_prestige_value + } + } + + is_shown = { + government_is_japanese_trigger = yes + house ?= { has_house_aspiration_parameter = strength_train_with_troops_decision } + has_tgp_dlc_trigger = yes + } + + is_valid_showing_failures_only = { + is_imprisoned = no + is_incapable = no + has_contagious_deadly_disease_trigger = no + is_at_war = yes + } + + effect = { + #Apply the Character Modifier + send_interface_toast = { + title = tgp_japan_train_with_troops_decision_effects_tooltip_modifier + type = event_toast_effect_good + left_icon = root + add_character_modifier = { + modifier = tgp_japan_train_with_troops_modifier + years = 10 + } + } + #Chance to apply a Commander Trait + if = { + limit = { + number_of_commander_traits < 3 + } + custom_tooltip = { + text = tgp_japan_train_with_troops_decision_effects_tooltip_trait + #The higher Martial, the better the odds of gaining a Commander Trait + random = { + chance = { + value = 20 + if = { + limit = { + root.martial >= monumentally_high_skill_rating + } + add = 20 + } + else_if = { + limit = { + root.martial >= extremely_high_skill_rating + } + add = 15 + } + else_if = { + limit = { + root.martial >= very_high_skill_rating + } + add = 10 + } + else_if = { + limit = { + root.martial >= high_skill_rating + } + add = 5 + } + } + give_random_commander_trait_effect = yes + } + } + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 12 + duchy = 12 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + ai_potential = { + is_adult = yes + is_at_war = yes + } + + ai_will_do = { + base = 10 + } +} + +# Becoming a Buddhist monk near the end of your life (or when you become seriously ill) +### In Search of the Pure Land ### +tgp_japan_become_a_monk_decision = { + title = tgp_japan_become_a_monk_decision + desc = tgp_japan_become_a_monk_decision_desc + selection_tooltip = tgp_japan_become_a_monk_decision_tooltip + picture = { + reference = "gfx/interface/illustrations/event_scenes/tgp_temple_asia.dds" + } + sort_order = 80 + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + is_shown = { + religion ?= religion:buddhism_religion + NOT = { government_has_flag = government_is_mandala } + is_adult = yes + } + + is_valid = { + religion = religion:buddhism_religion + OR = { + age >= 60 + custom_tooltip = { + text = tgp_japan_become_a_monk_decision_health_tt + health <= poor_health + } + has_contagious_deadly_disease_trigger = yes + has_trait = infirm + has_trait = withering_mind + has_trait = faltering_heart + has_trait = fragile_bones + has_trait = depressed_1 + } + } + + is_valid_showing_failures_only = { + # Is available sans health checks + is_available_quick = { + adult = yes + alive = yes + travel = no + in_army = no + imprisoned = no + incapable = no + } + is_in_activity = no + is_at_war_with_liege = no + trigger_if = { + limit = { + has_realm_law_flag = celestial_retirement_law + } + tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } + } + trigger_if = { + limit = { + is_ai = no + } + trigger_if = { + limit = { government_allows = noble_families } + custom_tooltip = { + text = renounce_noble_family_title_decision_tt.title + any_held_title = { is_noble_family_title = yes } + } + custom_tooltip = { + text = renounce_noble_family_title_decision_tt.heir + any_held_title = { + is_noble_family_title = yes + current_heir ?= { is_available_ai_adult = yes } + } + } + } + trigger_else = { + custom_tooltip = { + text = action_no_heir_label + exists = player_heir + } + } + } + } + + effect = { + hidden_effect = { add_trait = devoted } + show_as_tooltip = { + tgp_renounce_estate_effect = yes + } + trigger_event = { + id = tgp_japan_decision.9500 + } + } + + ai_potential = { + religion ?= religion:buddhism_religion + NOT = { government_has_flag = government_is_mandala } + is_adult = yes + is_at_war = no + tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } + # Don't step down freely if you don't have any other house members holding a noble_family_title or inherit any held noble_family_title + OR = { + house ?= { + any_house_member = { + is_governor = yes + top_liege = root.top_liege + } + } + any_held_title = { + tier = root.highest_held_title_tier + is_noble_family_title = no + current_heir.house = root.house + } + } + } + + ai_will_do = { + base = -10 + modifier = { + add = 10 + health <= poor_health + } + modifier = { + add = 150 + health <= dying_health + } + modifier = { + add = 10 + has_trait = lazy + } + modifier = { + add = 10 + has_trait = humble + } + modifier = { + add = 10 + has_trait = content + } + modifier = { + add = -100 + OR = { + has_trait = ambitious + has_trait = greedy + has_trait = arrogant + } + } + } +} + +# Restore Chrysanthemum Throne +### Restore a Yamato Ten'nō ### +tgp_japan_restore_japanese_monarchy_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_restore_japanese_monarchy_decision + desc = tgp_japan_restore_japanese_monarchy_decision_desc + selection_tooltip = tgp_japan_restore_japanese_monarchy_decision_tooltip + picture = { reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" } + sort_order = 80 + + is_shown = { + government_is_japanese_trigger = yes + # Chrysanthemum no longer part of Japan or destroyed + trigger_if = { + limit = { exists = title:k_chrysanthemum_throne.holder } + NOT = { title:e_japan.holder ?= title:k_chrysanthemum_throne.holder.top_liege } + } + # Japanese culture + culture ?= { + OR = { + this = culture:japanese + any_parent_culture_or_above = { this = culture:japanese } + } + } + has_tgp_dlc_trigger = yes + } + + is_valid = { + is_independent_ruler = yes + has_title = title:e_japan + completely_controls = title:c_yamashiro # Kyoto + custom_tooltip = { # Chrysanthemum destroyed or no longer part of Japan + text = tgp_japan_restore_japanese_monarchy_decision_title_tt + trigger_if = { + limit = { exists = title:k_chrysanthemum_throne.holder.top_liege } + NOT = { title:e_japan.holder ?= title:k_chrysanthemum_throne.holder.top_liege } + } + trigger_else = { always = yes } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + tgp_restore_japanese_monarchy_decision_effect = yes + trigger_event = tgp_japan_decision.9901 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + ai_potential = { always = yes } + ai_will_do = { base = 100 } +} + +# Restore Ritsuryo +### Restore Ritsuryō Bureaucracy ### +tgp_japan_restore_japanese_government_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_restore_japanese_government_decision + desc = tgp_japan_restore_japanese_government_decision_desc + selection_tooltip = tgp_japan_restore_japanese_government_decision_tooltip + picture = { reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" } + sort_order = 85 + + cost = { + prestige = { + value = massive_prestige_gain + } + } + + is_shown = { + government_is_japanese_trigger = yes + NOT = { government_has_flag = government_is_japan_administrative } + # Japan not governed Japanesely or destroyed + trigger_if = { + limit = { exists = title:e_japan.holder } + title:e_japan.holder = { government_is_japanese_trigger = no } + } + # Japanese culture + culture ?= { + OR = { + this = culture:japanese + any_parent_culture_or_above = { this = culture:japanese } + } + } + has_tgp_dlc_trigger = yes + } + + is_valid = { + is_independent_ruler = yes + has_title = title:e_japan + is_at_war = no + has_realm_law = japanese_bureaucracy_3 + prestige_level >= 4 + completely_controls = title:d_kinai + completely_controls = title:d_nankaido + completely_controls = title:d_hokurikudo + completely_controls = title:d_west_bando + completely_controls = title:d_north_saikaido + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + show_as_tooltip = { tgp_restore_japanese_government_decision_effect = yes } + trigger_event = tgp_japan_decision.9911 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + ai_potential = { always = yes } + ai_will_do = { base = 100 } +} + +# Assert Regional Dominion (Become Soryo Duke i.e. SuperSoryoTM) +### Assert Regional Dominion ### +#Laurence Kennedy +tgp_japan_assert_regional_dominion_government_decision = { + decision_group_type = major + sort_order = 100 + title = tgp_japan_assert_regional_dominion_government_decision + + desc = { + first_valid = { + triggered_desc = { + trigger = { + has_global_variable = shogunate_established + } + desc = tgp_japan_assert_regional_dominion_government_decision_shogun_desc + } + desc = tgp_japan_assert_regional_dominion_government_decision_desc + } + } + selection_tooltip = tgp_japan_assert_regional_dominion_government_decision_tooltip + picture = { reference = "gfx/interface/illustrations/decisions/tgp_dominance.dds" } + + sort_order = 85 + cost = { + prestige = { + value = 1000 + } + } + is_shown = { + highest_held_title_tier = tier_county + government_has_flag = government_is_japan_feudal + is_landed = yes + has_tgp_dlc_trigger = yes + } + + is_valid = { + is_at_war = no + has_government = japan_feudal_government + #must have sufficient prestige and legitimacy to even consider such a bold move. + prestige_level >= 3 + legitimacy_level >= 3 + OR = { + custom_tooltip = { + text = tgp_japan_assert_regional_dominion_government_decision_trigger_01 + domicile ?= { + has_domicile_building_or_higher = japanese_manor_main_03 + } + } + custom_tooltip = { + text = tgp_japan_assert_regional_dominion_government_decision_trigger_aspiration + house = { + AND = { + OR = { + has_house_aspiration_parameter = unlocks_japanese_manor_armory + has_house_aspiration_parameter = unlocks_japanese_manor_watch_house + } + has_house_aspiration_parameter = aspiration_level_3 + } + } + } + custom_tooltip = { + text = tgp_japan_assert_regional_dominion_government_decision_trigger_bloc + confederation ?= { + has_leading_house = yes + has_cohesion = yes + leading_house ?= root.house + cohesion >= 3 + } + house = { + OR = { + has_house_aspiration_parameter = unlocks_japanese_manor_armory + has_house_aspiration_parameter = unlocks_japanese_manor_watch_house + } + } + } + } + trigger_if = { + limit = { + is_ai = no # AI are an exception as they can continue to play despite not being House Heads + } + trigger_if = { + limit = { + house ?= { + OR = { + has_house_aspiration_parameter = ceremony_cheaper_feasts + has_house_aspiration_parameter = unlocks_japanese_manor_archive + } + } + } + custom_tooltip = { + text = tgp_japan_establish_house_fief_aspiration_trigger + house = { + NOR = { + has_house_aspiration_parameter = ceremony_cheaper_feasts + has_house_aspiration_parameter = unlocks_japanese_manor_archive + } + } + } + } + trigger_if = { + limit = { + NOT = { domicile.domicile_location.county.holder ?= this } + } + # Domicile in current Governorship + custom_tooltip = { + text = tgp_japan_establish_house_fief_domicile_in_governorship_trigger + domicile.domicile_location.county.holder ?= this + } + } + } + # Kampaku or Shogun is weak. + top_liege = { + trigger_if = { + limit = { + OR = { + AND = { + has_realm_law = japanese_bureaucracy_3 + culture = { has_cultural_tradition = tradition_tgp_bushido } + } + has_realm_law = japanese_bureaucracy_2 + } + } + trigger_if = { + limit = { + culture = { has_cultural_tradition = tradition_tgp_bushido } + } + NOT = { has_realm_law = japanese_bureaucracy_3 } + } + trigger_else = { + NOR = { + has_realm_law = japanese_bureaucracy_0 + has_realm_law = japanese_bureaucracy_1 + } + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_at_war = no + } + + effect = { + show_as_tooltip = { tgp_japan_assert_regional_dominion_government_decision_effect = yes } + trigger_event = tgp_japan_decision.9960 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 24 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + ai_potential = { + is_adult = yes + } + ai_will_do = { base = 25 } +} + +# Establish New Shogunate Court Decision +### Move Shogunate Court Decision ### +move_shogunate_court_decision = { + decision_group_type = major + title = tgp_japan_move_shogunate_court_decision + desc = tgp_japan_move_shogunate_court_decision_desc + selection_tooltip = tgp_japan_move_shogunate_court_decision_tooltip + picture = { reference = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" } + + cost = { + gold = { + value = massive_gold_value + } + prestige = { + value = massive_prestige_gain + } + } + + is_shown = { + has_global_variable = shogunate_established + capital_county ?= title:c_yamashiro + domain_size > 1 + NOT = { has_variable = moved_shogunate_court } + is_landed = yes + has_tgp_dlc_trigger = yes + } + + is_valid = { + has_title = title:e_japan + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + set_realm_capital = scope:barony.county + title:e_japan = { set_capital_county = scope:barony.county } + scope:barony.county = { + change_prosperity_level = medium_prosperity_level_gain + add_county_modifier = { + modifier = tgp_moved_shogun_court_modifier + years = 25 + } + } + set_variable = moved_shogunate_court + } + + widget = { + controller = create_holy_order + title_valid = { + trigger_if = { + limit = { exists = this } + is_capital_barony = yes + holder = scope:ruler + county != title:c_yamashiro + is_leased_out = no + } + } + } + + ai_potential = { + is_playable_character = yes + has_global_variable = shogunate_established + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 36 + hegemony = 0 + } + + ai_will_do = { + base = 200 + } +} + +# Emperor Starting a Ceremonial Monarch War +### Begin the Restoration War ### +tgp_japan_emperor_war_decision = { + decision_group_type = major + confirm_text = commit_suicide_decision_confirm + picture = { reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } + sort_order = 80 + + cost = { + prestige = { + value = massive_prestige_gain + } + } + + is_shown = { + is_ai = no + has_tgp_dlc_trigger = yes + tgp_is_ceremonial_liege_trigger = yes + tgp_is_ceremonial_regent_trigger = no + joined_faction ?= { + OR = { + faction_leader ?= { + is_ai = yes + is_leading_faction_type = restore_ceremonial_liege_faction + } + any_faction_member = { + is_ai = yes + is_landed = yes + this != root + } + } + } + NOT = { is_at_war_with = root.top_liege } + } + + is_valid = { + is_at_war = no + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + effect = { + joined_faction ?= { + save_scope_as = ongoing_faction + if = { + limit = { + exists = faction_leader + } + faction_leader = { + save_scope_as = faction_leader_scope + } + } + else = { + ordered_faction_member = { + order_by = current_military_strength + limit = { + this != root + is_ai = yes + is_landed = yes + } + save_scope_as = faction_leader_scope + } + } + } + + show_as_tooltip = { + scope:faction_leader_scope = { + start_war = { + cb = restore_ceremonial_liege_faction_war + target = root.top_liege + } + } + } + + hidden_effect = { + scope:ongoing_faction = { + faction_start_war = {} + } + } + } + + ai_potential = { + is_playable_character = yes + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + ai_will_do = { + base = 200 + } +} diff --git a/common/decisions/dlc_decisions/tgp/tgp_steppe_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_steppe_decisions.txt index 89d34117b..bd021282f 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_steppe_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_steppe_decisions.txt @@ -142,6 +142,19 @@ nomad_convert_herds_to_treasury_or_gold_special_troops_effect = yes # we pay you back for your herd investments nomad_to_steppe_admin_new_capital_effect = yes # we arrange a new capital for you the same way we would any other settling nomad change_government = steppe_admin_government + primary_title = { + set_variable = { + name = newly_reformed_steppe_admin + years = 30 + } + } + every_held_title = { + limit = { is_noble_family_title = yes } + set_variable = { + name = newly_reformed_steppe_admin + years = 30 + } + } give_noble_family_title = { name = noble_family_name tier = county diff --git a/common/decisions/test_decision.txt b/common/decisions/test_decision.txt index b3df2b37a..9e328b5ff 100644 --- a/common/decisions/test_decision.txt +++ b/common/decisions/test_decision.txt @@ -54,8 +54,10 @@ become_leading_house_of_the_confederation_decision = { is_shown = { debug_only = yes - exists = confederation - confederation.leading_house != root.house + confederation ?= { + is_house_based = yes + leading_house != root.house + } } effect = {