fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -63,7 +63,7 @@ choose_designated_terrain_decision = {
current_description = designated_terrain_forest_decision
localization = designated_terrain_forest_decision
icon = "gfx/interface/icons/terrain_types/forest.dds"
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -85,7 +85,7 @@ choose_designated_terrain_decision = {
current_description = designated_terrain_mountain_decision
localization = designated_terrain_mountain_decision
icon = "gfx/interface/icons/terrain_types/mountains.dds"
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -107,7 +107,7 @@ choose_designated_terrain_decision = {
current_description = designated_terrain_plains_decision
localization = designated_terrain_plains_decision
icon = "gfx/interface/icons/terrain_types/plains.dds"
ai_chance = {
ai_chance = {
value = 5
if = {
limit = {
@ -129,7 +129,7 @@ choose_designated_terrain_decision = {
current_description = designated_terrain_drylands_decision
localization = designated_terrain_drylands_decision
icon = "gfx/interface/icons/terrain_types/drylands.dds"
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -235,16 +235,16 @@ choose_master_terrain_decision = {
decision_to_second_step_button = "CHOOSE_MASTER_TERRAIN_DECISION_NEXT_STEP_BUTTON"
show_from_start = yes
### Woodlands
### Woodlands
item = { # Forest
value = master_terrain_forest_terrain
current_description = master_terrain_forest_decision
localization = master_terrain_forest_decision
icon = "gfx/interface/icons/terrain_types/forest.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -259,10 +259,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_jungle_decision
localization = master_terrain_jungle_decision
icon = "gfx/interface/icons/terrain_types/jungle.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -277,10 +277,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_taiga_decision
localization = master_terrain_taiga_decision
icon = "gfx/interface/icons/terrain_types/taiga.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -295,10 +295,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_wetlands_decision
localization = master_terrain_wetlands_decision
icon = "gfx/interface/icons/terrain_types/wetlands.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -315,10 +315,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_mountains_decision
localization = master_terrain_mountains_decision
icon = "gfx/interface/icons/terrain_types/mountains.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -333,10 +333,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_hills_decision
localization = master_terrain_hills_decision
icon = "gfx/interface/icons/terrain_types/hills.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -351,10 +351,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_desert_mountains_decision
localization = master_terrain_desert_mountains_decision
icon = "gfx/interface/icons/terrain_types/desert_mountains.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -371,10 +371,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_plains_decision
localization = master_terrain_plains_decision
icon = "gfx/interface/icons/terrain_types/plains.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -389,10 +389,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_steppe_decision
localization = master_terrain_steppe_decision
icon = "gfx/interface/icons/terrain_types/steppe.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -407,10 +407,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_farmlands_decision
localization = master_terrain_farmlands_decision
icon = "gfx/interface/icons/terrain_types/farmlands.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -425,10 +425,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_floodplains_decision
localization = master_terrain_floodplains_decision
icon = "gfx/interface/icons/terrain_types/floodplains.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -446,10 +446,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_drylands_decision
localization = master_terrain_drylands_decision
icon = "gfx/interface/icons/terrain_types/drylands.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -464,10 +464,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_desert_decision
localization = master_terrain_desert_decision
icon = "gfx/interface/icons/terrain_types/desert.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -482,10 +482,10 @@ choose_master_terrain_decision = {
current_description = master_terrain_oasis_decision
localization = master_terrain_oasis_decision
icon = "gfx/interface/icons/terrain_types/oasis.dds"
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
is_shown = {
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
}
ai_chance = {
ai_chance = {
value = 0
if = {
limit = {
@ -523,7 +523,7 @@ choose_master_terrain_decision = {
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
}
switch = {
trigger = yes
trigger = yes
scope:master_terrain_mountains_terrain = {
landless_inspector_master_terrain_effect = { TERRAIN = mountains }
}
@ -913,7 +913,7 @@ enact_legacy_of_adventurer_decision = {
has_ep3_dlc_trigger = yes
is_landless_adventurer = yes
NOT = { has_trait = gallowsbait }
NOT = {
NOT = {
house = {
has_house_modifier = legacy_adventurer_house_modifier
}
@ -947,7 +947,7 @@ enact_legacy_of_adventurer_decision = {
save_temporary_scope_value_as = {
name = contract_tally
value = 0
}
}
}
custom_tooltip = {
text = has_enough_contracts_tt

View file

@ -126,6 +126,10 @@ rites_of_passage_decision = {
}
ai_potential = {
OR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
}
OR = {
any_child = {
character_can_rites_of_passage_trigger = yes

View file

@ -2564,7 +2564,12 @@ commission_icon_decision = {
if = {
# Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution!
limit = { exists = scope:local_artisan }
root = { add_courtier = scope:local_artisan }
if = {
limit = {
NOT = { scope:local_artisan = { is_courtier_of = root } }
}
root = { add_courtier = scope:local_artisan }
}
scope:local_artisan = {
add_trait = devoted
}

View file

@ -375,13 +375,13 @@ introduce_a_new_fashion_at_court_decision = {
}
#############################################
# Finance Culture Development #
# Finance Culture Prosperity #
# by Maxence Voleau #
#############################################
### Promote Other Culture Development Decision ###
promote_other_culture_development_decision = {
title = promote_other_culture_development_decision_name
### Promote Other Culture Prosperity Decision ###
promote_other_culture_prosperity_decision = {
title = promote_other_culture_prosperity_decision_name
picture = {
trigger = {
culture = { has_graphical_east_asia_culture_group_trigger = yes }
@ -397,8 +397,8 @@ promote_other_culture_development_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
}
desc = promote_other_culture_development_decision_desc
selection_tooltip = promote_other_culture_development_decision_tooltip
desc = promote_other_culture_prosperity_decision_desc
selection_tooltip = promote_other_culture_prosperity_decision_tooltip
cooldown = { years = 10 }
sort_order = 90
@ -410,7 +410,7 @@ promote_other_culture_development_decision = {
is_valid_showing_failures_only = {
custom_tooltip = {
text = promote_other_culture_development_decision_not_acceptance_tt
text = promote_other_culture_prosperity_decision_not_acceptance_tt
any_sub_realm_county = {
count > 0
AND = {
@ -471,11 +471,11 @@ promote_other_culture_development_decision = {
every_in_list = {
list = promoted_culture
this = { save_scope_as = current_culture }
custom_tooltip = promote_other_culture_development_decision_effect_summary #see if a modifier can be injected for better effect
custom_tooltip = promote_other_culture_prosperity_decision_effect_summary #see if a modifier can be injected for better effect
}
}
else = {
custom_tooltip = promote_other_culture_development_decision_no_effect
custom_tooltip = promote_other_culture_prosperity_decision_no_effect
}
#Apply the actual effect: add a County Modifier on the relevant Counties
@ -495,6 +495,7 @@ promote_other_culture_development_decision = {
modifier = promote_culture_modifier
years = 10
}
change_county_control = 5
}
}
}

View file

@ -221,6 +221,7 @@ estate_governor_patrols_decision = {
modifier = ep3_estate_governor_patrols_modifier
years = 15
}
change_county_control = 5
}
increase_governance_effect = { VALUE = 6 }
}
@ -370,7 +371,7 @@ estate_granary_decision = {
limit = {
domicile ?= {
domicile_location.county = {
county_control < 100
county_control < county_control_baseline
}
}
}
@ -380,21 +381,21 @@ estate_granary_decision = {
limit = {
domicile ?= {
domicile_location.county = {
development_level >= estate_granary_development_bonus_2_value
prosperity_level >= estate_granary_prosperity_bonus_2_value
}
}
}
custom_tooltip = estate_unlock_granary_decision_development_2_tt
custom_tooltip = estate_unlock_granary_decision_prosperity_2_tt
}
else_if = {
limit = {
domicile ?= {
domicile_location.county = {
development_level >= estate_granary_development_bonus_1_value
prosperity_level >= estate_granary_prosperity_bonus_1_value
}
}
}
custom_tooltip = estate_unlock_granary_decision_development_1_tt
custom_tooltip = estate_unlock_granary_decision_prosperity_1_tt
}
if = {
limit = {
@ -731,7 +732,8 @@ convert_to_administrative_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
title = {
first_valid = {
triggered_desc = {
@ -783,6 +785,10 @@ convert_to_administrative_decision = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_has_flag = government_is_japan_feudal
AND = { # Republic doges may become admin
government_has_flag = government_is_republic
highest_liege_matching_rule:uses_assembly = this
}
}
NOT = {
has_character_flag = granted_title_government_blocker
@ -851,6 +857,7 @@ convert_to_administrative_decision = {
limit = {
top_liege = this
is_ai = no
NOT = { government_has_flag = government_is_republic }
}
custom_tooltip = {
text = all_powerful_vassals_required_tt
@ -863,6 +870,12 @@ convert_to_administrative_decision = {
}
}
}
trigger_if = { # Republics have to be despots
limit = {
government_has_flag = government_is_republic
}
has_realm_law = republican_despot_succession_law
}
trigger_if = {
limit = { is_ai = yes }
calc_true_if = {
@ -872,7 +885,7 @@ convert_to_administrative_decision = {
culture = { has_cultural_pillar = ethos_egalitarian }
culture = { has_cultural_tradition = tradition_legalistic }
has_realm_law = crown_authority_3
capital_county = { development_level > medium_development_level }
capital_county = { prosperity_level > medium_prosperity_level }
rite = { rite_has_tenet = tenet_legalism }
dynasty = { has_dynasty_perk = erudition_legacy_5 }
dynasty = { has_dynasty_perk = law_legacy_5 }
@ -1354,7 +1367,8 @@ convert_to_feudalism_from_administrative_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = convert_to_feudalism_from_administrative_decision_desc
is_shown = {
@ -1373,12 +1387,11 @@ convert_to_feudalism_from_administrative_decision = {
is_valid = {
is_landed = yes
trigger_if = {
limit = {
is_independent_ruler = no
}
top_liege ?= {
realm_law_authority_level_0 = yes
}
limit = { is_independent_ruler = no }
custom_tooltip = {
text = liege_has_realm_law_authority_0_tt
top_liege ?= { realm_law_authority_level_0 = yes }
}
custom_tooltip = {
text = governorship_is_on_the_border_tt
any_sub_realm_county = {
@ -1858,10 +1871,8 @@ change_imperial_aspirations_decision = {
is_valid = {
government_has_flag = government_is_administrative
trigger_if = { # Unavailable if you are the top liege - Unless you have either modifier, so you may remove it.
limit = {
top_liege = this
}
trigger_if = { # Unavailable if you are the top liege - Unless if you have either modifier, so you may remove it.
limit = { top_liege = this }
OR = {
has_character_modifier = ep3_admin_renounce_throne_personal
house ?= { has_house_modifier = ep3_admin_renounce_throne_house }

View file

@ -112,12 +112,7 @@ become_landless_adventurer_decision = {
# Relevant cultures/faiths
trigger_if = {
limit = {
NAND = {
is_ai = no
government_has_mechanic = administrative
top_liege = this
is_landed = no
}
NOT = { government_has_flag = government_is_merchant }
}
OR = {
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
@ -127,9 +122,27 @@ become_landless_adventurer_decision = {
text = nomadic_government_tt
government_has_flag = government_is_nomadic
}
has_character_modifier = tgp_gave_up_modifier
OR = {
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
rite = { rite_has_parameter = unlock_voluntary_laampdom_faith }
has_personal_tenet_flag = unlock_voluntary_laampdom_faith
has_trait = nomadic_philosophy
custom_tooltip = {
text = nomadic_government_tt
government_has_flag = government_is_nomadic
}
has_character_modifier = tgp_gave_up_modifier
}
}
}
# Triggers for merchants
trigger_else = {
custom_tooltip = {
text = gdp_recently_became_merchant_decision_cooldown_tt
NOT = { exists = var:gdp_recently_became_merchant_cooldown }
}
}
}
is_valid_showing_failures_only = {
@ -141,11 +154,16 @@ become_landless_adventurer_decision = {
effect = {
save_scope_as = adventurer
set_variable = {
name = gdp_recently_became_adventurer_cooldown
years = 5
}
if = {
limit = {
player_heir ?= {
this != root
is_adult = yes
is_ruler = no
}
}
player_heir = {
@ -185,12 +203,29 @@ become_landless_adventurer_decision = {
}
create_landless_adventurer_title_tooltip_effect = yes
show_as_tooltip = {
add_prestige = medium_prestige_gain
if = {
limit = {
NOT = { government_has_flag = government_is_merchant }
}
add_prestige = medium_prestige_gain
}
add_character_modifier = {
modifier = ep3_voluntary_laamp_character_modifier
years = 5
}
}
if = {
limit = {
any_in_list = { variable = owes_me_money }
}
custom_tooltip = gdp_become_adventurer_debtors_to_contracts_tt
}
if = {
limit = {
any_owned_story = { story_type = story_cycle_loan }
}
custom_tooltip = gdp_become_adventurer_debts_transferred_tt
}
trigger_event = { id = ep3_laamps.0030 }
# Debug tracking
if = {
@ -476,10 +511,10 @@ wipe_slate_decision = {
cost = {
gold = {
value = 100
value = 50
add = {
value = highest_held_title_tier
multiply = 25
multiply = 12
}
}
prestige = {
@ -864,7 +899,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_steppe_west
@ -883,7 +918,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_africa_north
@ -902,7 +937,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_steppe_west
@ -922,7 +957,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_steppe_west
@ -943,7 +978,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_europe_west
@ -965,7 +1000,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_africa
@ -984,7 +1019,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_asia_minor
@ -1006,7 +1041,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_asia_minor
@ -1028,7 +1063,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_middle_east
@ -1049,7 +1084,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_middle_east
@ -1070,7 +1105,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_europe_south
geographical_region = world_middle_east
@ -1093,7 +1128,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_india
@ -1114,7 +1149,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_india
@ -1135,7 +1170,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_india
@ -1156,7 +1191,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_india
geographical_region = world_tibet
@ -1175,7 +1210,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_india
geographical_region = world_steppe
@ -1194,7 +1229,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_india
geographical_region = world_tibet
@ -1214,7 +1249,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_india
geographical_region = world_tibet
@ -1237,7 +1272,7 @@ treasure_hunting_contract_decision = {
is_valid = {
custom_description = {
text = treasure_hunting_contract_decision_limit
capital_province = {
capital_province ?= {
OR = {
geographical_region = world_india
geographical_region = world_tibet
@ -1816,7 +1851,10 @@ reject_inheritance_decision = {
# They have children with you.
any_child = {
count >= 1
NOT = { has_trait = disinherited }
NOR = {
has_trait = disinherited
has_trait = adopted_no_inheritance
}
any_parent = { this = root }
}
# Or thought they might.
@ -2171,6 +2209,12 @@ embrace_responsibilities_decision = {
### Change Election Candidacy Status ###
change_election_candidacy_status_decision = {
# Everyone else's picture.
picture = {
trigger = {
government_has_flag = government_is_republic
}
reference = "gfx/interface/illustrations/decisions/fractious.dds"
}
picture = { reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" }
desc = {
first_valid = {
@ -2330,7 +2374,7 @@ bandit_king_decision = {
}
cost = {
gold = 500
gold = 250
prestige = 2000
}
@ -2432,14 +2476,14 @@ seasoned_visitor_decision = {
custom_tooltip = {
text = seasoned_visitor_decision_not_enough_poi
has_variable = poi_visited
var:poi_visited >= 26 #1066 all poi in India. If you change the value here, please also change the value in loc string above
var:poi_visited >= 35
}
calc_true_if = {
amount >= 2
custom_tooltip = {
text = seasoned_visitor_decision_not_enough_poi_advanced
has_variable = poi_visited
var:poi_visited >= 42 #1066 all poi in two Indias. If you change the value here, please also change the value in loc string above
var:poi_visited >= 60
}
prestige_level >= 4
has_trait_xp = {
@ -2457,8 +2501,8 @@ seasoned_visitor_decision = {
}
cost = {
prestige = 1500
gold = 500
prestige = 500
gold = 250
}
effect = {

View file

@ -63,7 +63,7 @@ separatist_uprising_decision = {
cost = {
prestige = 2000
gold = 500
gold = 250
}
effect = {

View file

@ -1094,6 +1094,8 @@ fp3_become_clan_government_decision = {
}
desc = fp3_become_clan_government_decision_desc
selection_tooltip = fp3_become_clan_government_decision_tooltip
decision_group_type = realm
sort_order = 40
ai_check_interval_by_tier = {
barony = 0
@ -1147,7 +1149,7 @@ fp3_become_clan_government_decision = {
change_government = clan_government
# Increase unity, uses this effect since both chars are not clan when script is evaluated
house.house_head = {
apply_clan_unity_interaction_effect = {
apply_house_unity_interaction_effect = {
CHARACTER = root
TARGET = root.house.house_head
DESC = clan_unity_adopt_clan.desc

View file

@ -24,7 +24,7 @@ raise_stele_decision = {
cooldown = { years = 10 }
sort_order = 80
sort_order = 10
is_shown = {
# Landed characters only: nobody likes a mercenary.

View file

@ -82,14 +82,23 @@ mpo_desperate_stance_decision = {
sort_order = 100
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
exists = situation:the_great_steppe
any_character_situation = {
any_participant_group = {
participant_group_type = nomad_rulers_capital
}
}
exists = situation:the_great_steppe
has_mpo_dlc_trigger = yes
any_character_situation = {
any_situation_sub_region = {
has_sub_region_phase_parameter = the_great_steppe_desperate_stance_decision
any_situation_sub_region_participant_group = {
participant_group_type = nomad_rulers_capital
participant_group_has_character = root
}
}
}
}
is_valid = {
@ -146,13 +155,13 @@ adopt_nomadic_ways_decision = {
picture = {
reference = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds"
}
decision_group_type = adventurer
decision_group_type = realm
sort_order = 100
is_shown = {
is_landless_adventurer = yes
has_ep3_dlc_trigger = yes
has_mpo_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
is_landless_adventurer = yes
}
is_valid = {

File diff suppressed because it is too large Load diff

View file

@ -1,136 +1,137 @@
##Pax Mongolica
### Peace of the Great Khan ###
mpo_pax_mongolica_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
}
decision_group_type = nomad_major
sort_order = 120
# NEOW 2555: historical Pax Mongolica decision disabled.
###Pax Mongolica
#### Peace of the Great Khan ###
#mpo_pax_mongolica_decision = {
# picture = {
# reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
# }
# decision_group_type = nomad_major
# sort_order = 120
is_shown = {
government_has_flag = government_is_nomadic
any_character_situation = {
this = situation:the_great_steppe
}
NOT = { has_variable = pax_mongolica_var }
exists = situation:the_great_steppe
}
# is_shown = {
# government_has_flag = government_is_nomadic
# any_character_situation = {
# this = situation:the_great_steppe
# }
# NOT = { has_variable = pax_mongolica_var }
# exists = situation:the_great_steppe
# }
is_valid = {
dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
OR = {
has_realm_law = nomadic_authority_4
has_realm_law = nomadic_authority_5
}
}
# is_valid = {
# dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
# OR = {
# has_realm_law = nomadic_authority_4
# has_realm_law = nomadic_authority_5
# }
# }
is_valid_showing_failures_only = {
is_available_adult = yes
}
# is_valid_showing_failures_only = {
# is_available_adult = yes
# }
cost = {
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = monumental_gold_value
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = monumental_gold_value
}
}
prestige = {
value = massive_prestige_value
}
}
# cost = {
# gold = {
# value = 0
# if = {
# limit = {
# has_treasury = no
# }
# add = monumental_gold_value
# }
# }
# treasury = {
# value = 0
# if = {
# limit = {
# has_treasury = yes
# }
# add = monumental_gold_value
# }
# }
# prestige = {
# value = massive_prestige_value
# }
# }
effect = {
set_variable = pax_mongolica_var
# Rewards given out in the event
show_as_tooltip = {
add_character_modifier = {
modifier = pax_mongolica_ruler_modifier # Forever
}
custom_tooltip = pax_mongolica_every_county_in_steppe_tt
every_realm_county = {
limit = {
is_landless_type_title = no
any_county_situation = { this = situation:the_great_steppe }
holder.dynasty = root.dynasty
}
random_county_province = {
limit = { has_holding = no }
set_holding_type = city_holding
}
}
if = {
limit = {
NOT = {
culture = { has_innovation = innovation_city_planning }
}
}
culture = { add_innovation = innovation_city_planning }
}
else_if = {
limit = {
NOT = {
culture = { has_innovation = innovation_development_01 }
}
}
culture = { add_innovation = innovation_development_01 }
}
else = {
culture = { add_random_innovation = culture_group_civic }
}
}
trigger_event = mpo_decisions_events.0400
}
# effect = {
# set_variable = pax_mongolica_var
# # Rewards given out in the event
# show_as_tooltip = {
# add_character_modifier = {
# modifier = pax_mongolica_ruler_modifier # Forever
# }
# custom_tooltip = pax_mongolica_every_county_in_steppe_tt
# every_realm_county = {
# limit = {
# is_landless_type_title = no
# any_county_situation = { this = situation:the_great_steppe }
# holder.dynasty = root.dynasty
# }
# random_county_province = {
# limit = { has_holding = no }
# set_holding_type = city_holding
# }
# }
# if = {
# limit = {
# NOT = {
# culture = { has_innovation = innovation_city_planning }
# }
# }
# culture = { add_innovation = innovation_city_planning }
# }
# else_if = {
# limit = {
# NOT = {
# culture = { has_innovation = innovation_development_01 }
# }
# }
# culture = { add_innovation = innovation_development_01 }
# }
# else = {
# culture = { add_random_innovation = culture_group_civic }
# }
# }
# trigger_event = mpo_decisions_events.0400
# }
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 24
hegemony = 24
}
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 0
# empire = 24
# hegemony = 24
# }
ai_potential = {
prestige >= massive_prestige_value
}
# ai_potential = {
# prestige >= massive_prestige_value
# }
ai_will_do = {
base = 30
modifier = {
add = -100
NOT = {
prestige >= {
value = monumental_gold_value
multiply = 2
}
}
}
modifier = {
add = -100
NOT = {
prestige >= {
value = massive_prestige_value
multiply = 2
}
}
}
modifier = {
add = 50
highest_held_title_tier >= tier_empire
}
}
}
# ai_will_do = {
# base = 30
# modifier = {
# add = -100
# NOT = {
# prestige >= {
# value = monumental_gold_value
# multiply = 2
# }
# }
# }
# modifier = {
# add = -100
# NOT = {
# prestige >= {
# value = massive_prestige_value
# multiply = 2
# }
# }
# }
# modifier = {
# add = 50
# highest_held_title_tier >= tier_empire
# }
# }
#}

View file

@ -606,6 +606,25 @@ pam_permit_tenet_bull_decision = {
save_scope_as = selected_item
}
}
else_if = { # A tenet intrinsic to the faith is restored before anything else is sanctioned
limit = {
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_permitted_trigger = yes
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
}
}
ordered_character_tenet = {
knowledge_filter = known
limit = {
pam_tenet_can_be_permitted_trigger = yes
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
}
order_by = pam_raw_tenet_popularity_value
position = 0
save_scope_as = selected_item
}
}
else_if = { # A tenet the faith adores gets sanctioned whether or not the Pope cares for it
limit = {
any_character_tenet = {
@ -649,6 +668,10 @@ pam_permit_tenet_bull_decision = {
this = tenet:tenet_love_under_will
}
}
modifier = {
factor = anathema_to_faith_ai_weight_factor
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
}
}
save_scope_as = selected_item
}
@ -674,6 +697,10 @@ pam_permit_tenet_bull_decision = {
this = tenet:tenet_love_under_will
}
}
modifier = {
factor = anathema_to_faith_ai_weight_factor
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
}
}
save_scope_as = selected_item
}
@ -710,6 +737,10 @@ pam_permit_tenet_bull_decision = {
pam_tenet_can_be_permitted_no_actor_trigger = yes
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = root }
}
any_character_tenet = {
knowledge_filter = known
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = root }
}
}
}
@ -876,6 +907,31 @@ pam_prohibit_tenet_bull_decision = {
save_scope_as = selected_item
}
}
else_if = { # An anathema the faith permits is struck down next
limit = {
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_prohibited_trigger = yes
scope:actor = {
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
}
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
}
}
ordered_character_tenet = {
knowledge_filter = known
limit = {
pam_tenet_can_be_prohibited_trigger = yes
scope:actor = {
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
}
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
}
order_by = pam_raw_tenet_popularity_value
position = 0
save_scope_as = selected_item
}
}
else = {
random_undesired_tenet = {
limit = {
@ -916,6 +972,14 @@ pam_prohibit_tenet_bull_decision = {
}
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
}
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_prohibited_no_actor_trigger = yes
root = {
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
}
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = root }
}
any_undesired_tenet = {
known_tenets = yes
only_negative = yes

View file

@ -102,6 +102,10 @@ declare_antipope_decision = {
limit = { pam_antipope_declaration_discounted_trigger = yes }
multiply = 0.67
}
if = {
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
multiply = 0.5
}
}
}
treasury = {
@ -119,6 +123,10 @@ declare_antipope_decision = {
limit = { pam_antipope_declaration_discounted_trigger = yes }
multiply = 0.67
}
if = {
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
multiply = 0.5
}
}
}
piety = {
@ -131,6 +139,10 @@ declare_antipope_decision = {
limit = { pam_antipope_declaration_discounted_trigger = yes }
multiply = 0.67
}
if = {
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
multiply = 0
}
if = {
limit = {
has_variable = antipope_squabble_unlock
@ -226,7 +238,10 @@ declare_antipope_decision = {
ai_potential = {
is_adult = yes
ai_zeal >= 0
OR = {
ai_zeal >= 0
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
}
any_vassal_or_below = {
pam_valid_antipope_clergy_vassal_trigger = { LIEGE = root }
}
@ -260,23 +275,22 @@ declare_antipope_decision = {
step = 5
max = 25
}
modifier = {
add = 25
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
}
modifier = {
factor = 2
OR = {
has_relation_rival = faith.religious_head
has_relation_nemesis = faith.religious_head
}
has_relation_rival = faith.religious_head
}
modifier = { # AI shouldn't usually do this if they're main rite
factor = 0.15
rite = faith.main_rite
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = no
}
modifier = {
factor = 0
OR = {
has_relation_friend = faith.religious_head
has_relation_best_friend = faith.religious_head
}
has_relation_friend = faith.religious_head
}
}
}
@ -558,17 +572,11 @@ declare_yourself_antipope_decision = {
}
modifier = {
factor = 2
OR = {
has_relation_rival = faith.religious_head
has_relation_nemesis = faith.religious_head
}
has_relation_rival = faith.religious_head
}
modifier = {
factor = 0
OR = {
has_relation_friend = faith.religious_head
has_relation_best_friend = faith.religious_head
}
has_relation_friend = faith.religious_head
}
}
}

View file

@ -55,6 +55,8 @@ pam_decision_confession = {
sort_order = 110
is_shown = {
is_landless_adventurer = no
is_landless_merchant = no
has_spiritual_fulfillment_type = christian_fulfillment
root.rite ?= {
has_at_least_tenet_status = {
@ -135,17 +137,18 @@ pam_decision_act_of_devotion = {
ai_check_interval_by_tier = {
barony = 0
county = 60
duchy = 60
kingdom = 48
county = 120
duchy = 120
kingdom = 60
empire = 48
hegemony = 24
hegemony = 12
}
sort_order = 80
is_shown = {
has_spiritual_fulfillment_type = christian_fulfillment
has_fulfillment_parameter = sp_act_of_devotion_decision
has_pam_dlc_trigger = yes
is_landless_adventurer = no
}
@ -228,10 +231,10 @@ pam_mentor_sp_decision = {
ai_check_interval_by_tier = {
barony = 0
county = 24
duchy = 24
kingdom = 12
empire = 12
county = 120
duchy = 120
kingdom = 60
empire = 24
hegemony = 12
}
@ -239,6 +242,7 @@ pam_mentor_sp_decision = {
is_shown = {
has_spiritual_fulfillment_type = christian_fulfillment
has_fulfillment_parameter = sp_mentor_in_sp
has_pam_dlc_trigger = yes
}
@ -362,8 +366,8 @@ pam_establish_theocratic_dynasty_decision = {
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 48
kingdom = 24
duchy = 120
kingdom = 60
empire = 12
hegemony = 12
}
@ -429,6 +433,7 @@ pam_convert_to_theocracy_decision = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = realm
sort_order = 40
desc = pam_convert_to_theocracy_decision_desc
selection_tooltip = pam_convert_to_theocracy_decision_tooltip
@ -635,6 +640,7 @@ pam_convert_theocracy_to_feudal_decision = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = realm
sort_order = 40
desc = pam_convert_theocracy_to_feudal_decision_desc
selection_tooltip = pam_convert_theocracy_to_feudal_decision_tooltip
@ -683,7 +689,7 @@ pam_convert_theocracy_to_feudal_decision = {
culture = { has_cultural_pillar = ethos_stoic }
culture = { has_cultural_tradition = tradition_legalistic }
has_realm_law = church_authority_3
capital_county = { development_level > medium_development_level }
capital_county = { prosperity_level > medium_prosperity_level }
dynasty ?= { has_dynasty_perk = law_legacy_5 }
dynasty ?= { has_dynasty_perk = erudition_legacy_5 }
NOT = { has_trait = zealous }
@ -792,9 +798,7 @@ pam_kowtow_to_pope_decision = {
is_shown = {
exists = top_participant_group:the_christian_church
situation:the_christian_church ?= {
situation_current_phase = investiture_crisis
}
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
government_is_religious_trigger = no
is_christian_trigger = yes
has_pam_dlc_trigger = yes
@ -836,6 +840,20 @@ pam_kowtow_to_pope_decision = {
modifier = grateful_opinion
opinion = 20
}
if = {
limit = {
is_ghibelline_leader_trigger = yes
faith = { religious_head_title ?= title:k_papal_state }
NOT = { has_trait = excommunicated }
pam_is_antipope_sponsor_trigger = no
}
gg_reconciliation_catalyst_effect = {
ACTOR = root
RECIPIENT = faith.religious_head
CATALYST = catalyst_gg_submission_to_pope
ONCE_A_YEAR = no
}
}
}
send_interface_toast = {
type = event_toast_effect_good
@ -848,6 +866,8 @@ pam_kowtow_to_pope_decision = {
}
ai_potential = {
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
religion ?= religion:christianity_religion
has_pam_dlc_trigger = yes
government_is_religious_trigger = no
}
@ -883,6 +903,7 @@ pam_determine_patron_saint_decision = {
# Christian specific
is_christian_trigger = yes
NOT = { has_variable = pam_chose_patron_saint_var }
has_personal_tenet_flag = tenet_dulia_can_select_patron_saint
has_pam_dlc_trigger = yes
}
@ -998,8 +1019,8 @@ pam_determine_patron_saint_decision = {
ai_check_interval_by_tier = {
barony = 0
county = 96
duchy = 96
county = 120
duchy = 120
kingdom = 96
empire = 96
hegemony = 96
@ -1216,15 +1237,15 @@ create_hof_decision = {
}
ai_potential = {
faith ?= {
NOT = { exists = religious_head }
OR = { has_doctrine_parameter = spiritual_head_of_faith has_doctrine_parameter = temporal_head_of_faith }
}
is_adult = yes
# Defer to a same-faith liege; they should be the one establishing the HoF
OR = {
top_liege = this
NOT = {
any_liege_or_above = {
faith = root.faith
}
}
NOT = { any_liege_or_above = { faith = root.faith } }
}
}
@ -1233,6 +1254,337 @@ create_hof_decision = {
}
}
#TODO_PAM: Test debug decision, remove if no longer needed as demo
start_test_select_rite = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = debug
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
sort_order = 110
is_shown = {
always = no # Disabled from GDP onwards
}
is_valid = {
scope:selected_item ?= { exists = this }
}
is_valid_showing_failures_only = {
always = yes
}
cooldown = { years = 0 }
effect = {
scope:actor = {
set_character_rite = scope:selected_item
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 1000
}
widget = {
gui = "decision_view_widget_select_rite"
controller = select_scope_object
show_from_start = no
setup_items = {
scope:actor = {
every_available_rite = {
limit = {
scope:actor.rite != this
}
add_to_list = item_list
}
}
}
default_item = {
scope:actor = {
rite = {
save_scope_as = selected_item
}
}
}
ai_item_will_do = {
value = 100
if = {
limit = {
"divergence(faith.main_rite)" >= minor_rite_divergence_value
}
add = 50
}
}
}
}
#TODO_PAM: Test debug decision, remove if no longer needed as demo
start_test_select_tenet = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = debug
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
sort_order = 110
is_shown = {
always = no # Disabled from GDP onwards
}
is_valid = {
always = yes
}
is_valid_showing_failures_only = {
exists = scope:selected_item
}
cooldown = { years = 0 }
effect = {
scope:actor = {
every_personal_tenet = {
scope:actor = {
remove_personal_tenet = prev
}
}
set_personal_tenet = scope:selected_item
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 1000
}
widget = {
gui = "decision_view_widget_select_tenet"
controller = select_scope_object
show_from_start = yes
decision_to_second_step_button = "SELECT"
setup_items = {
scope:actor = {
every_character_tenet = {
knowledge_filter = known
add_to_list = item_list
}
}
}
default_item = {
scope:actor = {
random_personal_tenet = {
save_scope_as = selected_item
}
}
}
is_item_valid = {
this != tenet:tenet_confession
}
ai_select_item = {
scope:actor = {
random_personal_tenet = {
save_scope_as = selected_item
}
}
}
}
}
#TODO_PAM: Test debug decision, remove if no longer needed as demo
start_test_select_character = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = debug
is_shown = {
debug_only = yes
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
sort_order = 110
is_valid = {
always = yes
}
is_valid_showing_failures_only = {
exists = scope:selected_item
}
cooldown = { years = 0 }
effect = {
scope:selected_item = {
add_trait = saint
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 1000
}
widget = {
gui = "decision_view_widget_select_character"
controller = select_scope_object
show_from_start = yes
decision_to_second_step_button = "SELECT"
setup_items = {
scope:actor = {
every_ancestor = {
even_if_dead = yes
limit = {
is_alive = no
NOT = { has_trait = saint }
}
add_to_list = item_list
}
}
}
default_item = {
scope:actor = {
random_ancestor = {
even_if_dead = yes
limit = {
is_alive = no
NOT = { has_trait = saint }
}
save_scope_as = selected_item
}
}
}
is_item_valid = {
is_alive = no
}
ai_select_item = {
scope:actor = {
random_ancestor = {
even_if_dead = yes
limit = {
is_alive = no
NOT = { has_trait = saint }
}
save_scope_as = selected_item
}
}
}
}
}
#TODO_PAM: Test debug decision, remove if no longer needed as demo
start_test_select_kingdom = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = debug
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
sort_order = 110
is_shown = {
always = no # Disabled from GDP onwards
}
is_valid = {
always = yes
}
is_valid_showing_failures_only = {
always = yes
}
cooldown = { years = 0 }
effect = {}
ai_potential = {
always = yes
}
ai_will_do = {
base = 1000
}
widget = {
controller = select_kingdom_title
title_valid = {
# Title must have real land under it
exists = capital_vassal.capital_vassal
# At least 5 de-jure counties must be hostile to our faith
any_in_de_jure_hierarchy = {
continue = { tier > tier_county }
tier = tier_county
count >= 5
scope:ruler.faith.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
}
}
}
}
}
# Levy the Tithes
pam_levy_the_tithes_decision = {
picture = {
@ -1260,9 +1612,14 @@ pam_levy_the_tithes_decision = {
}
is_shown = {
is_landless_adventurer = no
is_landless_merchant = no
any_character_situation = { # You are part of the Christian Situation
situation_type = the_christian_church
}
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_levy_the_tithes_decision
}
has_pam_dlc_trigger = yes
is_clergy = no
is_ruler = yes
@ -1339,15 +1696,16 @@ pam_send_legatine_mission_decision = {
barony = 0
county = 0
duchy = 0
kingdom = 24
empire = 12
kingdom = 60
empire = 24
hegemony = 12
}
is_shown = {
is_clergy = yes
any_sub_realm_county = {
always = yes
is_landed = yes
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_legatine_mission
}
has_pam_dlc_trigger = yes
is_ruler = yes
@ -1420,13 +1778,13 @@ pam_send_legatine_mission_decision = {
}
if = {
limit = {
development_level <= bad_development_level
prosperity_level <= bad_prosperity_level
}
add = 10
}
if = {
limit = {
county_control <= 50
county_control < county_control_baseline
}
add = 50
}
@ -3109,9 +3467,9 @@ pam_promulgate_word_of_pious_deeds_decision = {
ai_check_interval_by_tier = {
barony = 0
county = 24
duchy = 24
kingdom = 12
county = 120
duchy = 120
kingdom = 24
empire = 12
hegemony = 12
}
@ -3119,6 +3477,7 @@ pam_promulgate_word_of_pious_deeds_decision = {
sort_order = 110
is_shown = {
domicile ?= { has_domicile_parameter = unlocks_pam_propagate_word_of_my_piety_decision }
pam_can_hold_cardinalate_trigger = yes
is_clergy = yes
has_spiritual_fulfillment_type = christian_fulfillment
@ -3425,7 +3784,7 @@ pam_declare_rite_heresy_decision = {
selection_tooltip = pam_declare_rite_heresy_decision_tooltip
confirm_text = pam_declare_rite_heresy_decision_confirm
sort_order = 108
sort_order = 50
ai_check_interval_by_tier = {
barony = 0
@ -3640,7 +3999,7 @@ pam_permit_tenet_decision = {
selection_tooltip = pam_permit_tenet_decision_tooltip
confirm_text = pam_permit_tenet_decision_confirm
sort_order = 110
sort_order = 50
ai_check_interval_by_tier = {
barony = 0
@ -3743,7 +4102,26 @@ pam_permit_tenet_decision = {
ai_select_item = {
scope:actor = {
if = { # A tenet the faith adores gets sanctioned whether or not the Head of Faith cares for it
if = { # A tenet intrinsic to the faith is restored before anything else is sanctioned
limit = {
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_permitted_trigger = yes
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
}
}
ordered_character_tenet = {
knowledge_filter = known
limit = {
pam_tenet_can_be_permitted_trigger = yes
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
}
order_by = pam_raw_tenet_popularity_value
position = 0
save_scope_as = selected_item
}
}
else_if = { # A tenet the faith adores gets sanctioned whether or not the Head of Faith cares for it
limit = {
any_character_tenet = {
knowledge_filter = known
@ -3776,6 +4154,10 @@ pam_permit_tenet_decision = {
modifier = {
add = pam_tenet_popularity_impact_value
}
modifier = {
factor = anathema_to_faith_ai_weight_factor
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
}
}
save_scope_as = selected_item
}
@ -3791,6 +4173,10 @@ pam_permit_tenet_decision = {
religion = religion:eastern_orthodox_religion
}
OR = {
any_character_tenet = {
knowledge_filter = known
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = root }
}
any_desired_tenet = {
only_positive = yes
threshold = 1
@ -3971,6 +4357,25 @@ pam_prohibit_tenet_decision = {
save_scope_as = selected_item
}
}
else_if = { # An anathema the faith permits is struck down next
limit = {
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_prohibited_trigger = yes
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
}
}
ordered_character_tenet = {
knowledge_filter = known
limit = {
pam_tenet_can_be_prohibited_trigger = yes
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
}
order_by = pam_raw_tenet_popularity_value
position = 0
save_scope_as = selected_item
}
}
else = {
random_undesired_tenet = {
limit = {
@ -4006,6 +4411,11 @@ pam_prohibit_tenet_decision = {
pam_tenet_can_be_prohibited_no_actor_trigger = yes
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
}
any_character_tenet = {
knowledge_filter = known
pam_tenet_can_be_prohibited_no_actor_trigger = yes
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = root }
}
any_undesired_tenet = {
known_tenets = yes
only_negative = yes
@ -4827,6 +5237,8 @@ pam_persecute_tenet_decision = {
}
is_shown = {
is_landless_adventurer = no
is_landless_merchant = no
has_tenet_popularity_trigger = yes
is_playable_character = yes
has_pam_dlc_trigger = yes
@ -5079,6 +5491,7 @@ consecrate_kingdom_decision = {
}
is_landed_or_landless_administrative = yes
is_confederation_member = no
NOT = { government_has_flag = government_is_republic }
OR = {
exists = rite.head_of_rite
exists = faith.religious_head
@ -6072,7 +6485,7 @@ pam_invite_syncretic_exiles_decision = {
limit = {
pam_personal_syncretism_exile_rite_trigger = yes
}
order_by = var:converted_development
order_by = var:converted_prosperity
save_scope_as = target_rite
}
}
@ -6306,7 +6719,7 @@ pam_personal_sacrifice_of_wealth_decision = {
ai_item_will_do = {
value = 10
if = {
limit = { development_level <= bad_development_level }
limit = { prosperity_level <= bad_prosperity_level }
add = 50
}
if = {
@ -6350,7 +6763,7 @@ pam_personal_sacrifice_of_wealth_decision = {
}
modifier = {
factor = 0
NOT = { any_sub_realm_county = { development_level <= bad_development_level } }
NOT = { any_sub_realm_county = { prosperity_level <= bad_prosperity_level } }
}
}
}
@ -6420,8 +6833,10 @@ pam_develop_clerical_court_decision = {
}
ai_potential = {
is_available_adult = yes
is_at_war = no
pam_government_is_religious_playable_trigger = yes
short_term_treasury_or_gold >= minor_treasury_or_gold_value
OR = {
any_courtier = { pam_clerical_court_ordain_candidate_trigger = yes }
any_courtier = { pam_clerical_court_pupil_trigger = yes }

View file

@ -635,7 +635,8 @@ pam_extract_relic_decision = {
}
ai_potential = {
always = yes
# Must stay at or below the lowest possible pam_extract_relic_piety_cost, or the AI cannot afford the decision
piety >= 1250
}
ai_will_do = {

View file

@ -2095,11 +2095,16 @@ ai_movement_petition_change_laws_decision = {
}
}
# Renounce Family Title
### Retire from Heading the [ROOT.Char.GetHouse.GetNameNoTooltip] House ###
### Retire from Heading House [ROOT.Char.GetHouse.GetNameNoTooltip] ###
renounce_noble_family_title_decision = {
picture = {
trigger = { tgp_retires_to_eastern_estate_trigger = yes }
reference = "gfx/interface/illustrations/event_scenes/tgp_asia_estate.dds"
}
picture = {
reference = "gfx/interface/illustrations/event_scenes/ep3_medi_estate.dds"
}
sort_order = 85
desc = {
@ -2121,8 +2126,11 @@ renounce_noble_family_title_decision = {
is_shown = {
any_held_title = { is_noble_family_title = yes }
NOT = { religion = religion:buddhism_religion } # Uses tgp_japan_become_a_monk_decision
NOT = { top_liege = root } #This is not a general abdication decision
NOR = {
religion = religion:buddhism_religion # Uses tgp_japan_become_a_monk_decision
top_liege = root # This is not a general abdication decision
government_has_flag = government_is_republic
}
is_house_head = yes
is_playable_character = yes
has_tgp_dlc_trigger = yes
@ -2140,15 +2148,22 @@ renounce_noble_family_title_decision = {
current_heir ?= { is_available_ai_adult = yes }
}
}
trigger_if = {
limit = {
OR = {
government_has_flag = government_is_republic
government_has_flag = government_is_administrative
}
}
is_landed = no
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
is_at_war_with_liege = no
trigger_if = {
limit = {
has_realm_law_flag = celestial_retirement_law
}
limit = { has_realm_law_flag = celestial_retirement_law }
tgp_is_above_retirement_age_trigger = { REALM_OWNER = root }
}
}
@ -2162,7 +2177,13 @@ renounce_noble_family_title_decision = {
}
}
show_as_tooltip = {
add_character_modifier = { modifier = ep3_renounced_estate }
if = {
limit = { tgp_retires_to_eastern_estate_trigger = yes }
add_character_modifier = { modifier = ep3_renounced_estate }
}
else = {
add_character_modifier = { modifier = tgp_western_renounced_estate }
}
custom_tooltip = renounce_noble_family_title_decision_tt
if = {
limit = { exists = scope:new_player }

View file

@ -58,7 +58,8 @@ convert_to_mandala_government_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = convert_to_mandala_government_decision_desc
ai_check_interval_by_tier = {
@ -248,7 +249,8 @@ assimilate_to_mandala_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = {
first_valid = {
triggered_desc = {
@ -273,6 +275,7 @@ assimilate_to_mandala_decision = {
}
is_shown = {
is_landed = yes
highest_held_title_tier > tier_barony
overlord ?= { government_has_flag = government_is_mandala }
NAND = {
@ -436,6 +439,7 @@ assimilate_to_mandala_decision = {
this != top_overlord
overlord = { government_has_flag = government_is_mandala }
primary_title.tier > tier_barony
NOT = { government_has_flag = government_is_republic }
#Keep the tributaries Wanua
trigger_if = {
limit = {
@ -524,7 +528,8 @@ mandala_adopt_clan_government_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = mandala_adopt_clan_government_decision_desc
ai_check_interval_by_tier = {
@ -668,7 +673,7 @@ seize_mandala_capital_decision = {
any_sub_realm_barony = {
title_province ?= {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
has_ruined_great_district = no
}
kingdom ?= root.capital_county.kingdom
}
@ -689,7 +694,7 @@ seize_mandala_capital_decision = {
kingdom = root.capital_county.kingdom
title_province = {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
has_ruined_great_district = no
}
}
}
@ -698,7 +703,7 @@ seize_mandala_capital_decision = {
kingdom = root.capital_county.kingdom
title_province = {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
has_ruined_great_district = no
}
}
holder = { save_scope_as = previous_holder }

View file

@ -21,9 +21,15 @@ visit_silk_road_market_decision = {
is_shown = {
exists = situation:silk_road_situation
OR = {
any_character_situation = { situation_type = silk_road_situation }
is_ai = no
any_character_situation = { situation_type = silk_road_situation }
}
OR = {
has_tgp_dlc_trigger = yes # All Under Heaven
has_gdp_dlc_trigger = yes # Silk & Silver
}
is_playable_character = yes
#There is no point in showing this decision if you cannot benefit from going at all:
OR = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
@ -33,14 +39,10 @@ visit_silk_road_market_decision = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
}
is_playable_character = yes
has_tgp_dlc_trigger = yes
}
is_valid = {
is_adult = yes
gold >= major_gold_value
}
is_valid_showing_failures_only = {
@ -49,6 +51,10 @@ visit_silk_road_market_decision = {
is_incapable = no
}
cost = {
gold = major_gold_value
}
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
@ -62,8 +68,8 @@ visit_silk_road_market_decision = {
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_jingzhao = { # Chang'an
any_county_province = { has_building_with_flag = silk_road_node }
title:b_zhouzhi.title_province = { # Chang'an
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -116,8 +122,8 @@ visit_silk_road_market_decision = {
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_lhasa = {
any_county_province = { has_building_with_flag = silk_road_node }
title:b_potala.title_province = { # Lhasa
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -170,8 +176,8 @@ visit_silk_road_market_decision = {
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_lahur = {
any_county_province = { has_building_with_flag = silk_road_node }
title:b_lahur.title_province = { # Lahur
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -224,8 +230,8 @@ visit_silk_road_market_decision = {
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_shazhou = { # Dunhuang
any_county_province = { has_building_with_flag = silk_road_node }
title:b_dunhuang_2.title_province = { # Dunhuang
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -272,14 +278,14 @@ visit_silk_road_market_decision = {
}
}
}
item = { # Khiva
value = c_khiva
item = { # Gurganj
value = c_gurganj
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_khiva = {
any_county_province = { has_building_with_flag = silk_road_node }
title:b_gurganj.title_province = { # Gurganj
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -287,7 +293,7 @@ visit_silk_road_market_decision = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
}
}
localization = visit_silk_road_market_decision_khiva
localization = visit_silk_road_market_decision_gurganj
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
@ -295,7 +301,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
target = title:c_gurganj.title_province
value <= squared_distance_small
}
}
@ -306,7 +312,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
target = title:c_gurganj.title_province
value <= squared_distance_large
}
}
@ -317,7 +323,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
target = title:c_gurganj.title_province
value > squared_distance_huge
}
}
@ -326,14 +332,14 @@ visit_silk_road_market_decision = {
}
}
}
item = { # Dvin
value = c_dvin
item = { # Tabriz
value = c_tabriz
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_dvin = {
any_county_province = { has_building_with_flag = silk_road_node }
title:b_tabriz.title_province = { # Tabriz
has_building_with_flag = silk_road_node
}
}
custom_tooltip = {
@ -341,7 +347,7 @@ visit_silk_road_market_decision = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
}
}
localization = visit_silk_road_market_decision_dvin
localization = visit_silk_road_market_decision_tabriz
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
@ -349,7 +355,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
target = title:c_tabriz.title_province
value <= squared_distance_small
}
}
@ -360,7 +366,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
target = title:c_tabriz.title_province
value <= squared_distance_large
}
}
@ -371,7 +377,7 @@ visit_silk_road_market_decision = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
target = title:c_tabriz.title_province
value > squared_distance_huge
}
}
@ -383,11 +389,10 @@ visit_silk_road_market_decision = {
}
effect = {
remove_short_term_gold = major_gold_value
switch = {
trigger = yes
scope:c_dvin = { # Dvin
title:c_dvin = { tgp_silk_road_decision_scope_effect = yes }
scope:c_tabriz = { # Tabriz
title:c_tabriz = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_jingzhao = { # Chang'an
title:c_jingzhao = { tgp_silk_road_decision_scope_effect = yes }
@ -401,8 +406,8 @@ visit_silk_road_market_decision = {
scope:c_lhasa = { # Lhasa
title:c_lhasa = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_khiva = { # Khiva
title:c_khiva = { tgp_silk_road_decision_scope_effect = yes }
scope:c_gurganj = { # Gurganj
title:c_gurganj = { tgp_silk_road_decision_scope_effect = yes }
}
}
if = {
@ -419,16 +424,22 @@ visit_silk_road_market_decision = {
on_arrival_event = tgp_silk_road_events.0010
travel_with_domicile = no
return_trip = yes
on_travel_planner_cancel_on_action = silk_road_market_visit_travel_planner_cancel_on_action # here comes the refund!
on_travel_planner_cancel_event = tgp_silk_road_events.0011
players_use_planner = yes
#on_arrival_destinations = last
}
}
if = {
limit = { exists = scope:innovation_temp }
custom_tooltip = potential_innovation_at_silk_road_market_desc
limit = { government_has_flag = government_is_merchant }
custom_tooltip = visit_silk_road_market_merchant_rewards_tt
}
else = {
if = {
limit = { exists = scope:innovation_temp }
custom_tooltip = potential_innovation_at_silk_road_market_desc
}
custom_tooltip = travel_silk_road_market_innovation_warning_tt
}
custom_tooltip = travel_silk_road_market_innovation_warning_tt
if = {
limit = {
root.location = {

View file

@ -382,7 +382,8 @@ convert_to_meritocratic_decision = {
picture = {
reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
ai_check_interval_by_tier = {
barony = 0

View file

@ -5,6 +5,7 @@ tribute_mission_decision_mandala = {
reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -13,6 +14,7 @@ tribute_mission_decision_mandala = {
cooldown = { years = 5 }
is_shown = {
NOT = { government_has_flag = government_is_merchant }
is_tributary = yes
suzerain ?= { government_has_flag = government_is_mandala }
}
@ -126,6 +128,8 @@ tribute_mission_decision_mandala = {
}
ai_potential = {
is_tributary = yes
suzerain ?= { government_has_flag = government_is_mandala }
tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
}
@ -140,6 +144,7 @@ tribute_mission_decision_china = {
reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -148,8 +153,9 @@ tribute_mission_decision_china = {
cooldown = { years = 5 }
is_shown = {
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
NOT = { government_has_flag = government_is_merchant }
title:h_china ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
}
is_valid_showing_failures_only = {
@ -253,7 +259,8 @@ tribute_mission_decision_china = {
}
ai_potential = {
exists = title:h_china.holder
NOT = { government_has_flag = government_is_merchant }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder }
}
@ -274,6 +281,7 @@ tribute_mission_decision_roman_empire = {
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -282,6 +290,7 @@ tribute_mission_decision_roman_empire = {
cooldown = { years = 5 }
is_shown = {
NOT = { government_has_flag = government_is_merchant }
title:h_roman_empire ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire }
}
@ -408,6 +417,7 @@ tribute_mission_decision_eastern_roman_empire = {
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -416,6 +426,7 @@ tribute_mission_decision_eastern_roman_empire = {
cooldown = { years = 5 }
is_shown = {
NOT = { government_has_flag = government_is_merchant }
title:h_eastern_roman_empire ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire }
}
@ -542,6 +553,7 @@ tribute_mission_decision_dar_al_islam = {
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -550,6 +562,7 @@ tribute_mission_decision_dar_al_islam = {
cooldown = { years = 5 }
is_shown = {
NOT = { government_has_flag = government_is_merchant }
title:h_dar_al_islam ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam }
}
@ -676,6 +689,7 @@ tribute_mission_decision_india = {
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
}
decision_group_type = realm
sort_order = 10
should_create_alert = { always = yes }
@ -684,6 +698,7 @@ tribute_mission_decision_india = {
cooldown = { years = 5 }
is_shown = {
NOT = { government_has_flag = government_is_merchant }
title:h_india ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india }
}