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

@ -39,6 +39,9 @@ recruit_terrain_specialist_decision = {
decision_group_type = courtier
is_shown = {
is_landless_adventurer = no
is_landless_merchant = no
is_herder = no
# You can hire at least one type of terrain expert
OR = {
culture ?= {

View file

@ -21,9 +21,12 @@ create_cadet_branch_decision = {
}
is_shown = {
highest_held_title_tier > tier_barony
government_allows = rulers_should_have_dynasty
NOT = {
highest_held_title_tier = tier_barony
}
is_house_head = no
government_allows = rulers_should_have_dynasty
is_lowborn = no
NOR = {
AND = {
has_council_position = councillor_court_chaplain
@ -34,7 +37,6 @@ create_cadet_branch_decision = {
has_tgp_dlc_trigger = yes
}
}
exists = house.house_head
is_playable_character = yes
}
@ -183,6 +185,17 @@ create_cadet_branch_decision = {
}
ai_potential = {
is_house_head = no
highest_held_title_tier > tier_barony
is_adult = yes
is_playable_character = yes
government_allows = rulers_should_have_dynasty
government_allows = create_cadet_branches
exists = house.house_head
trigger_if = {
limit = { government_has_flag = government_is_clan }
top_liege = this
}
any_child = { is_alive = yes } # move it beforehand for performance reason
trigger_if = {
limit = {
@ -195,6 +208,7 @@ create_cadet_branch_decision = {
}
}
}
years_from_game_start >= 5
# Childless rulers should not found houses
any_child = {
is_alive = yes
@ -237,7 +251,6 @@ create_cadet_branch_decision = {
}
}
}
years_from_game_start >= 5
}
}
@ -245,18 +258,77 @@ create_cadet_branch_decision = {
base = 30
modifier = { # Dukes and above are more keen
add = {
value = primary_title.tier
subtract = tier_county
multiply = 20
add = 70
exists = primary_title
primary_title.tier > tier_county
}
modifier = { # Prefer to stay in liege's dynasty
add = -50
government_is_japanese_trigger = no
top_liege != this
any_liege_or_above = {
dynasty = root.dynasty
}
}
modifier = { # Childless rulers should not found houses
factor = 0
any_child = {
is_alive = yes
count < 3
}
}
modifier = { # Stop stealing player's house members
factor = 0
any_player = {
OR = {
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
any_child = {
even_if_dead = yes
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
}
any_child = {
even_if_dead = yes
any_child = {
even_if_dead = yes
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
}
}
}
}
}
# we don't want AI to split from their House unless they dislike their house head
modifier = {
add = {
value = 0
subtract = "opinion(house.house_head)"
factor = 0
OR = {
government_has_flag = government_is_clan
government_has_flag = government_is_merchant
}
opinion = {
target = house.house_head
value >= -50
}
}
@ -264,11 +336,13 @@ create_cadet_branch_decision = {
modifier = {
add = 1000
government_allows = noble_families
liege = this
trigger_if = {
limit = { exists = house.house_head.liege }
house.house_head.liege != root
}
top_liege = this
this != house.house_head.top_liege
}
modifier = {
add = -250
years_from_game_start < 5
}
### TGP
@ -278,7 +352,7 @@ create_cadet_branch_decision = {
top_liege.primary_title = {
any_past_holder = { is_close_family_of = root }
}
add = -20
add = -25
}
modifier = { # Prefer to branch away from leading house if distant to split up blocs
@ -298,7 +372,6 @@ create_cadet_branch_decision = {
modifier = { # Ruler should not break family apart
government_is_japanese_trigger = yes
is_independent_ruler = yes
house.house_head ?= { is_vassal_or_below_of = root }
add = -1000
}

View file

@ -31,8 +31,9 @@ invite_knights_decision = {
cooldown = { years = invite_knights_decision_cooldown_value }
is_shown = {
max_number_of_knights > 0
is_landless_adventurer = no
is_landless_merchant = no
max_number_of_knights > 0
}
is_valid = {
@ -139,8 +140,8 @@ invite_claimants_decision = {
cooldown = { days = 3650 }
is_shown = {
primary_title.tier > tier_county
is_landed_or_landless_administrative = yes
primary_title.tier > tier_county
NOT = { government_has_flag = government_is_nomadic }
}
@ -210,10 +211,10 @@ scrape_the_barrel_decision = {
cooldown = { years = 2 }
is_shown = {
has_royal_court = yes
court_grandeur_current_level <= 4
has_dlc_feature = royal_court
is_landed_or_landless_administrative_or_theocratic = yes
has_royal_court = yes
has_dlc_feature = royal_court
court_grandeur_current_level <= 4
}
effect = {

View file

@ -21,7 +21,8 @@ create_holy_order_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 30
ai_goal = yes
@ -31,6 +32,7 @@ create_holy_order_decision = {
highest_held_title_tier >= tier_kingdom
any_held_county = {
any_in_de_jure_hierarchy = {
holder = root
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
@ -65,6 +67,7 @@ create_holy_order_decision = {
title_valid = {
trigger_if = {
limit = { exists = this }
holder = scope:ruler
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
}
trigger_else = {
@ -102,6 +105,7 @@ create_holy_order_decision = {
text = "has_two_castle_county"
any_held_county = {
any_in_de_jure_hierarchy = {
holder = root
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
@ -185,24 +189,6 @@ create_holy_order_decision = {
limit = {
exists = scope:barony
}
hidden_effect = {
if = {
limit = { scope:barony.holder != root }
create_title_and_vassal_change = {
type = leased_out
save_scope_as = change
add_claim_on_loss = no
}
scope:barony = {
change_title_holder_include_vassals = {
holder = root
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
}
}
create_character = {
template = holy_order_leader_character
location = scope:barony.title_province
@ -239,18 +225,11 @@ create_holy_order_decision = {
ai_potential = {
highest_held_title_tier >= tier_kingdom
is_playable_character = yes
OR = {
any_held_title = {
title_tier = barony
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
any_vassal = {
primary_title.tier = tier_barony
any_held_title = {
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
}
is_at_war = no
piety_level >= 1
trigger_if = { limit = { has_pam_dlc_trigger = yes } OR = { government_has_flag = government_is_theocracy exists = root.puppet:theological_agent_puppet exists = root.puppet:external_theological_agent_puppet } }
is_available_adult = yes
any_held_title = { title_tier = barony barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } }
}
ai_will_do = {
@ -304,6 +283,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
is_shown = {
highest_held_title_tier > tier_barony
is_playable_character = yes
faith ?= {
any_faith_holy_order = { #Your faith must have a Military Order
leader = {
@ -311,12 +291,6 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
}
}
is_playable_character = yes
# cannot already have a loan - keep it simple
NOR = {
exists = var:loan_amount_owed
exists = var:loan_holder
}
}
is_valid_showing_failures_only = {
@ -331,6 +305,15 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
save_temporary_scope_as = lender_temp
}
root = {
NOT = {
any_owned_story = {
story_Type = story_cycle_loan
var:lender = scope:lender_temp
}
}
}
}
}
@ -360,7 +343,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
ai_potential = {
always = yes
is_available = yes
}
ai_will_do = {
@ -431,6 +414,30 @@ cancel_holy_order_lease_decision = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = scope:ruler }
trigger_if = {
limit = {
scope:ruler = { is_ai = yes }
exists = lessee.faith
}
trigger_if = {
limit = { scope:ruler.faith = root.lessee.faith }
scope:ruler.piety >= cancel_holy_order_piety_cost
}
trigger_else_if = {
limit = {
scope:ruler.faith = {
faith_hostility_level = {
target = root.lessee.faith
value <= faith_astray_level
}
}
}
scope:ruler.piety >= cancel_astray_holy_order_piety_cost
}
trigger_else = {
always = yes
}
}
}
trigger_else = {
custom_description = {
@ -537,11 +544,12 @@ cancel_holy_order_lease_decision = {
age >= 12
is_at_war = no
highest_held_title_tier >= tier_county
years_from_game_start >= 1
any_sub_realm_barony = {
is_under_holy_order_lease = yes
county.holder = { is_ai = yes }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
years_from_game_start >= 1
}
ai_will_do = {
@ -597,7 +605,8 @@ create_holy_order_monastic_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/pam_pre-romanesque_church_exterior.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 30
ai_goal = yes
@ -713,6 +722,20 @@ create_holy_order_monastic_decision = {
ai_potential = {
highest_held_title_tier >= tier_duchy
is_playable_character = yes
is_at_war = no
piety_level >= 1
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
}
OR = {
government_has_flag = government_is_theocracy
exists = root.puppet:theological_agent_puppet
exists = root.puppet:external_theological_agent_puppet
}
}
faith ?= { faith_has_monasticism_trigger = yes }
is_available_adult = yes
any_held_county = {
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
}
@ -1135,6 +1158,42 @@ pam_monastic_order_new_movement_decision = {
ai_potential = {
highest_held_title_tier >= tier_duchy
is_playable_character = yes
piety_level >= 1
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
NOT = {
government_has_flag = government_is_theocracy
}
}
exists = root.puppet:theological_agent_puppet
}
trigger_else = {
OR = {
AND = {
has_trait = lifestyle_scholar
has_trait_xp = {
trait = lifestyle_scholar
value >= 60
}
}
has_trait = theologian
has_trait = erudite
has_trait = lifestyle_mystic
has_trait = devoted
has_trait = family_first
has_trait = diplomat
has_trait = schemer
}
}
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
}
exists = root.puppet:external_theological_agent_puppet
}
faith = { faith_has_monasticism_trigger = yes }
is_available_adult = yes
any_held_county = {
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
}

View file

@ -186,7 +186,14 @@ sale_of_titles_decision = {
}
cost = {
prestige = @sale_of_titles_prestige_cost
prestige = {
value = 250
multiply = {
value = root.highest_held_title_tier
subtract = 1
min = 1
}
}
}
effect = {
@ -208,7 +215,10 @@ sale_of_titles_decision = {
}
}
add_gold = major_gold_value
add_gold = {
value = medium_gold_value
divide = 2
}
custom_tooltip = sale_of_titles_side_effects_tt
@ -526,6 +536,7 @@ local_arbitration_decision = {
is_valid_showing_failures_only = {
custom_tooltip = {
text = inside_realm_trigger
exists = root.location.county
any_sub_realm_county = {
this = root.location.county
}

View file

@ -3,7 +3,7 @@
###################
@deceitful_progress_hostile_schemes_cooldown_time = 1095
@diligent_development_focus_cooldown_time = 3650
@diligent_prosperity_focus_cooldown_time = 3650
@impatient_rushing_all_schemes_cooldown_time = 1825
@vengeful_fabricate_hook_rivals_cooldown_time = 3665
@ -116,7 +116,7 @@ deceitful_progress_hostile_schemes_decision = {
#Diligent overwork
### Develop Capital ###
diligent_development_focus_decision = {
diligent_prosperity_focus_decision = {
ai_check_interval = 0
picture = {
@ -140,11 +140,11 @@ diligent_development_focus_decision = {
}
sort_order = 60
desc = diligent_development_focus_decision_desc
desc = diligent_prosperity_focus_decision_desc
selection_tooltip = diligent_development_focus_decision_tooltip
selection_tooltip = diligent_prosperity_focus_decision_tooltip
cooldown = { days = @diligent_development_focus_cooldown_time }
cooldown = { days = @diligent_prosperity_focus_cooldown_time }
is_shown = {
is_landed = yes
@ -167,7 +167,7 @@ diligent_development_focus_decision = {
send_interface_toast = {
type = event_toast_effect_neutral
title = msg_diligent_development_focus
title = msg_diligent_prosperity_focus
left_icon = root
if = {
@ -178,7 +178,7 @@ diligent_development_focus_decision = {
}
add_character_modifier = {
modifier = diligent_development_focus
modifier = diligent_prosperity_focus
years = 10
}
}
@ -244,6 +244,7 @@ impatient_rushing_all_schemes_decision = {
is_shown = {
has_trait = impatient
any_scheme = { count >= 1 }
}
is_valid_showing_failures_only = {
@ -260,7 +261,7 @@ impatient_rushing_all_schemes_decision = {
effect = {
if = {
limit = {
any_scheme = { }
any_scheme = { count >= 1 }
}
send_interface_toast = {
type = event_toast_effect_neutral

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@
decision_solve_the_journals = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
}
decision_group_type = major
ai_check_interval_by_tier = {

View file

@ -138,7 +138,7 @@ clear_ground_for_legendary_building = {
text = clear_ground_for_legendary_building_no_barony_tt
any_held_title = {
title_tier = barony
title_province = { has_special_building_slot = no }
title_province = { has_special_district_slot = no }
is_capital_barony = yes
holder = root
is_leased_out = no
@ -162,7 +162,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_shrine_desc
localization = clear_ground_legendary_shrine
icon = "gfx/interface/icons/building_types/icon_building_legendary_shrine.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_shrine.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -176,7 +176,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_statue_desc
localization = clear_ground_legendary_statue
icon = "gfx/interface/icons/building_types/icon_building_legendary_statue.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_statue.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -190,7 +190,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_palace_desc
localization = clear_ground_legendary_palace
icon = "gfx/interface/icons/building_types/icon_building_legendary_palace.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_palace.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -204,7 +204,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_watchtower_desc
localization = clear_ground_legendary_watchtower
icon = "gfx/interface/icons/building_types/icon_building_legendary_watchtower.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_watchtower.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -218,7 +218,7 @@ clear_ground_for_legendary_building = {
}
current_description = clear_ground_legendary_hunting_lodge_desc
localization = clear_ground_legendary_hunting_lodge
icon = "gfx/interface/icons/building_types/icon_building_legendary_hunting_grounds.dds"
icon = "gfx/interface/icons/building_types/special_buildings/legendary_hunting_grounds.dds"
flat = yes
ai_chance = { value = 10 }
}
@ -297,7 +297,7 @@ pick_legendary_barony_decision = {
title_valid = {
trigger_if = {
limit = { exists = this }
title_province = { has_special_building_slot = no }
title_province = { has_special_district_slot = no }
is_capital_barony = yes
holder = scope:ruler
is_leased_out = no
@ -317,27 +317,27 @@ pick_legendary_barony_decision = {
trigger = root.var:clear_ground
flag:legendary_shrine = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_shrine
add_special_district_slot = legendary_shrine_district
}
}
flag:legendary_palace = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_palace
add_special_district_slot = legendary_palace_district
}
}
flag:legendary_statue = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_statue
add_special_district_slot = legendary_statue_district
}
}
flag:legendary_watchtower = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_watchtower
add_special_district_slot = legendary_watchtower_district
}
}
flag:legendary_hunting_lodge = {
scope:barony.title_province ?= {
add_special_building_slot = legendary_hunting_lodge
add_special_district_slot = legendary_hunting_lodge_district
}
}
}
@ -398,6 +398,7 @@ pick_legendary_barony_decision = {
}
ai_potential = {
has_variable = clear_ground
is_playable_character = yes
}
ai_will_do = {
@ -452,8 +453,8 @@ isolate_capital_decision = {
}
OR = {
any_held_title = {
has_province_with_epidemic = { intensity = any }
title_tier = county
has_province_with_epidemic = { intensity = any }
}
capital_county ?= {
any_neighboring_county = {
@ -566,7 +567,24 @@ isolate_capital_decision = {
}
ai_potential = {
is_landed = yes
highest_held_title_tier >= tier_county
NOT = { has_character_flag = ai_capital_isolation_cooldown }
# Mirrors the is_ai branch of is_shown
OR = {
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = any }
}
capital_county ?= {
OR = {
has_county_modifier = isolate_capital_decision_modifier
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
}
}
ai_will_do = {
@ -745,25 +763,33 @@ isolate_family_decision = {
}
ai_potential = {
NOT = { has_character_flag = ai_unisolate_cooldown }
NOR = {
has_character_flag = ai_unisolate_cooldown
has_government = landless_adventurer_government
}
OR = {
has_character_modifier = isolating_modifier
capital_county ?= {
OR = {
# Own capital
has_province_with_epidemic = { intensity = any }
# Neighboring own capital
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
# Somewhere in domain
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = any }
}
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
AND = {
has_trait = paranoid # without a really valid reason, ai_will_do is only positive enough to fire when paranoid
OR = {
capital_county ?= {
OR = {
# Own capital
has_province_with_epidemic = { intensity = any }
# Neighboring own capital
any_neighboring_county = {
has_province_with_epidemic = { intensity = any }
}
}
}
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
}
}
}
}

View file

@ -421,7 +421,7 @@ stewardship_oath_1_decision = {
}
every_realm_county = {
custom = custom_every_realm_county
change_development_progress_with_overflow = 250
change_prosperity_progress_with_overflow = 250
}
}
@ -508,7 +508,7 @@ stewardship_oath_2_decision = {
}
county = {
change_development_progress_with_overflow = 50
change_prosperity_progress_with_overflow = 50
}
}
}
@ -549,7 +549,7 @@ learning_oath_1_decision = {
}
trigger_else = {
title_province = {
has_special_building_slot = no
has_special_district_slot = no
is_county_capital = yes
}
holder = scope:ruler
@ -754,7 +754,7 @@ learning_oath_1_decision = {
}
}
scope:barony.title_province ?= {
add_special_building = generic_university
add_special_district = generic_university_district
}
}
else = {

View file

@ -175,6 +175,7 @@ convert_to_local_culture_decision = {
ai_potential = {
is_playable_character = yes
exists = capital_province
culture != capital_province.culture
is_landless_adventurer = no
}

View file

@ -1387,20 +1387,21 @@ return_rome_decision = {
}
ai_potential = {
is_at_war = no
top_liege = this
religion = religion:catholic_religion
ai_zeal > very_high_negative_ai_value
title:c_roma = {
holder = {
is_ai = yes
top_liege = root
}
}
is_at_war = no
ai_zeal > very_high_negative_ai_value
}
ai_will_do = {
base = 100
modifier = { # If you fought the pope to get rome, don't immediately hand it back
factor = 0
faith.religious_head = {
@ -2513,6 +2514,8 @@ petition_head_of_faith_decision = {
cooldown = { years = 4 }
is_shown = {
is_landless_adventurer = no
is_landless_merchant = no
is_ai = no
has_pam_dlc_trigger = yes
# Antipopes, their sponsors, and their realms use petition_antipope_decision instead

View file

@ -32,7 +32,7 @@ hold_court_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
}
decision_group_type = major
decision_group_type = realm
is_invisible = yes
cost = {
@ -339,10 +339,10 @@ petition_liege_decision = {
}
}
trigger_if = { # Opinion
limit = { scope:petition_liege_county_opinion = yes }
limit = { scope:petition_liege_popular_opinion = yes }
custom_tooltip = {
text = petition_liege_county_opinion_tt
any_held_title = { petition_liege_county_opinion_trigger = yes }
text = petition_liege_popular_opinion_tt
any_held_title = { petition_liege_popular_opinion_trigger = yes }
}
}
trigger_if = { # Fortify
@ -400,12 +400,12 @@ petition_liege_decision = {
liege.gold > main_building_tier_1_cost
}
}
trigger_if = { # Development
limit = { scope:petition_liege_development = yes }
trigger_if = { # Prosperity
limit = { scope:petition_liege_prosperity = yes }
custom_tooltip = {
text = petition_liege_development_tt
text = petition_liege_prosperity_tt
exists = liege
liege.capital_province.county.development_level >= petitioner_development_difference_decision_value
liege.capital_province.county.prosperity_level >= petitioner_prosperity_difference_decision_value
}
}
trigger_if = { # House Fief
@ -724,22 +724,22 @@ petition_liege_decision = {
ai_chance = { value = 0 } # Currently unused
}
item = { # Opinion
value = petition_liege_county_opinion
value = petition_liege_popular_opinion
is_shown = {
petition_liege_admin_valid_trigger = no
}
is_valid = {
custom_tooltip = {
text = petition_liege_county_opinion_tt
any_held_title = { petition_liege_county_opinion_trigger = yes }
text = petition_liege_popular_opinion_tt
any_held_title = { petition_liege_popular_opinion_trigger = yes }
}
}
current_description = petition_liege_county_opinion_desc
localization = petition_liege_decision_option_county_opinion
current_description = petition_liege_popular_opinion_desc
localization = petition_liege_decision_option_popular_opinion
icon = "gfx/interface/icons/message_feed/tier_up.dds"
ai_chance = { value = 0 } # Currently unused
}
### Construction/Development
### Construction/Prosperity
item = { # Fortify
value = petition_liege_fortify_border
is_shown = {
@ -810,18 +810,18 @@ petition_liege_decision = {
icon = "gfx/interface/icons/message_feed/religious.dds"
ai_chance = { value = 0 } # Currently unused
}
item = { # Development
value = petition_liege_development
item = { # Prosperity
value = petition_liege_prosperity
is_valid = {
custom_tooltip = {
text = petition_liege_development_tt
text = petition_liege_prosperity_tt
exists = liege
liege.capital_province.county.development_level >= petitioner_development_difference_decision_value
liege.capital_province.county.prosperity_level >= petitioner_prosperity_difference_decision_value
}
is_landed = yes
}
current_description = petition_liege_development_desc
localization = petition_liege_decision_option_development
current_description = petition_liege_prosperity_desc
localization = petition_liege_decision_option_prosperity
icon = "gfx/interface/icons/message_feed/guest.dds"
ai_chance = { value = 0 } # Currently unused
}
@ -883,8 +883,8 @@ petition_liege_decision = {
scope:petition_liege_county_convert = { # Convert County
set_variable = { name = petition_type value = flag:county_convert }
}
scope:petition_liege_county_opinion = { # County Opinion
set_variable = { name = petition_type value = flag:county_opinion }
scope:petition_liege_popular_opinion = { # County Opinion
set_variable = { name = petition_type value = flag:popular_opinion }
}
scope:petition_liege_fortify_border = { # Fortify Border
set_variable = { name = petition_type value = flag:fortify_border }
@ -901,8 +901,8 @@ petition_liege_decision = {
scope:petition_liege_construct_temple = { # Construct Temple
set_variable = { name = petition_type value = flag:construct_temple }
}
scope:petition_liege_development = { # Development
set_variable = { name = petition_type value = flag:development }
scope:petition_liege_prosperity = { # Prosperity
set_variable = { name = petition_type value = flag:prosperity }
}
scope:petition_liege_gold = { # Gold
set_variable = { name = petition_type value = flag:gold }

View file

@ -33,6 +33,7 @@ pay_homage_decision = {
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
}
decision_group_type = major
sort_order = 20
cost = {
prestige = standard_activity_base_cost
@ -348,7 +349,23 @@ pay_homage_decision = {
}
ai_potential = {
liege ?= { has_royal_court = yes }
top_liege != this
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
}
is_at_war = no
NOT = {
liege = { has_variable = pay_homage_cooldown }
}
trigger_if = {
limit = {
has_variable = pay_homage_grace
exists = liege
}
NOT = { var:pay_homage_grace = liege }
}
}
ai_will_do = {

View file

@ -366,7 +366,7 @@ petition_ceremonial_liege_decision = {
title = {
first_valid = {
triggered_desc = {
trigger = { exists = top_liege.primary_title.var:administrative_ui_special_title.holder }
trigger = { exists = ceremonial_liege }
desc = petition_ceremonial_liege_decision_title
}
desc = petition_ceremonial_liege_decision
@ -450,10 +450,10 @@ petition_ceremonial_liege_decision = {
government_has_mechanic = administrative
is_independent_ruler = no
trigger_if = {
limit = { exists = top_liege.primary_title.var:administrative_ui_special_title.holder }
limit = { exists = ceremonial_liege }
custom_tooltip = {
text = petition_ceremonial_liege_regent_already_given_tt
NOT = { var:petition_liege_regent_support ?= top_liege.primary_title.var:administrative_ui_special_title.holder }
NOT = { var:petition_liege_regent_support ?= ceremonial_liege }
}
}
trigger_else = { always = no }
@ -494,7 +494,7 @@ petition_ceremonial_liege_decision = {
}
effect = {
top_liege.primary_title.var:administrative_ui_special_title.holder = { save_scope_as = ceremonial_liege }
ceremonial_liege = { save_scope_as = ceremonial_liege }
custom_tooltip = petition_ceremonial_liege_decision_effects
if = {
limit = {

View file

@ -7,52 +7,6 @@
# by Mathilda Bjarnehed
##################################################
# Deprecated decision of yore.
#convert_to_feudalism_decision = {
#picture = {
#reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
#}
#decision_group_type = major
#desc = convert_to_feudalism_decision_desc
#
#ai_check_interval = 36
#
#is_shown = {
#government_has_flag = government_is_tribal
#}
#
#is_valid = {
#has_realm_law = tribal_authority_3
#custom_description = {
#text = faith_is_reformed
#subject = root
#faith = { NOT = { has_doctrine_parameter = unreformed } }
#}
#prestige_level = 5
#}
#
#cost = {
#prestige = 150
#}
#
#effect = {
#change_government = feudal_government
#trigger_event = major_decisions.0001
#add_realm_law_skip_effects = crown_authority_0
#}
#
#ai_potential = {
##always = yes
#}
#
#ai_will_do = {
#base = 100
#modifier = { #Go for the more lenient decision if this is the case
#add = -100
#liege = { government_has_flag = government_is_feudal }
#}
#}
#}
##################################################
# Convert Realm to Feudalism/Clan through Liege
@ -83,6 +37,7 @@ convert_to_feudalism_liege_converted_decision = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
sort_order = 100
desc = convert_to_feudalism_liege_converted_decision_desc
ai_check_interval_by_tier = {
@ -134,12 +89,47 @@ convert_to_feudalism_liege_converted_decision = {
}
cost = {
prestige = 150
prestige = 250
}
effect = {
trigger_event = major_decisions.0001
save_scope_as = actor
# Bonus Cities and Temples only when the liege's culture is in a later era than ours
save_scope_value_as = {
name = feudalize_bonus_holdings
value = no
}
if = {
limit = {
liege ?= {
OR = {
AND = {
culture = { has_cultural_era_or_later = culture_era_early_medieval }
root.culture = {
NOT = { has_cultural_era_or_later = culture_era_early_medieval }
}
}
AND = {
culture = { has_cultural_era_or_later = culture_era_high_medieval }
root.culture = {
NOT = { has_cultural_era_or_later = culture_era_high_medieval }
}
}
AND = {
culture = { has_cultural_era_or_later = culture_era_late_medieval }
root.culture = {
NOT = { has_cultural_era_or_later = culture_era_late_medieval }
}
}
}
}
}
save_scope_value_as = {
name = feudalize_bonus_holdings
value = yes
}
}
convert_whole_realm_to_feudalism_effect = yes
hidden_effect = {
every_vassal = {
@ -166,7 +156,8 @@ convert_clan_to_feudalism_through_liege_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = convert_clan_to_feudalism_through_liege_decision_desc
ai_check_interval_by_tier = {
@ -211,7 +202,7 @@ convert_clan_to_feudalism_through_liege_decision = {
}
cost = {
prestige = 150
prestige = 250
}
effect = {
@ -233,7 +224,7 @@ convert_clan_to_feudalism_through_liege_decision = {
}
ai_potential = {
prestige >= 150
prestige >= 250
}
ai_will_do = {
@ -255,7 +246,8 @@ convert_feudalism_to_clan_through_liege_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = convert_feudalism_to_clan_through_liege_decision_desc
ai_check_interval_by_tier = {
@ -300,7 +292,7 @@ convert_feudalism_to_clan_through_liege_decision = {
}
cost = {
prestige = 150
prestige = 250
}
effect = {
@ -322,7 +314,7 @@ convert_feudalism_to_clan_through_liege_decision = {
}
ai_potential = {
prestige >= 150
prestige >= 250
}
ai_will_do = {
@ -359,6 +351,7 @@ convert_whole_realm_to_feudalism_decision = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
sort_order = 100
desc = convert_whole_realm_to_feudalism_decision_desc
ai_check_interval_by_tier = {
@ -384,38 +377,70 @@ 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 = {
has_realm_law = tribal_authority_3
custom_description = {
text = faith_is_reformed
subject = root
faith = { NOT = { has_doctrine_parameter = unreformed } }
trigger_if = {
limit = {
faith = { has_doctrine_parameter = unreformed }
faith_qualifies_for_west_african_pagan_feudalisation_trigger = yes
}
OR = {
custom_description = {
text = faith_is_reformed
subject = root
faith = { NOT = { has_doctrine_parameter = unreformed } }
}
calc_true_if = {
amount >= 2
realm_size >= minor_realm_size
highest_held_title_tier >= tier_kingdom
custom_tooltip = {
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.vassal_count
any_vassal = { count >= convert_whole_realm_to_feudalism_west_african_pagan_decision_vassal_count_value }
}
}
}
}
trigger_else = {
custom_description = {
text = faith_is_reformed
subject = root
faith = { NOT = { has_doctrine_parameter = unreformed } }
}
}
prestige_level >= 2
capital_province.county = {
development_level >= convert_to_feudalism_development_requirement
capital_province = {
province_size_level >= 2
}
custom_description = { #You need to have 70% of all (non-regional/unique) tribal innovations!
text = has_all_tribal_innovations
subject = root.culture
culture = {
calc_true_if = {
amount >= 9
amount >= 10
has_innovation = innovation_motte
has_innovation = innovation_catapult
has_innovation = innovation_barracks
has_innovation = innovation_mustering_grounds
has_innovation = innovation_bannus
has_innovation = innovation_quilted_armor
has_innovation = innovation_pattern_welding
has_innovation = innovation_gavelkind
has_innovation = innovation_crop_rotation
has_innovation = innovation_city_planning
has_innovation = innovation_casus_belli
has_innovation = innovation_plenary_assemblies
has_innovation = innovation_ledger
has_innovation = innovation_development_01
has_innovation = innovation_prosperity_01
has_innovation = innovation_currency_01
}
}
@ -437,7 +462,7 @@ convert_whole_realm_to_feudalism_decision = {
}
cost = {
prestige = 200
prestige = 500
}
effect = {
@ -476,7 +501,8 @@ convert_to_tribalism_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 40
desc = convert_to_tribalism_decision_desc
ai_check_interval_by_tier = {
@ -540,25 +566,28 @@ convert_to_tribalism_decision = {
# by Ewan Cowhig Croft
##################################################
# A decision for West African pagans to feudalise without reforming.
###### DEPRECATED ###### (merged the functionality into regular feudal/clan adopting)
### Adopt [ROOT.Char.Custom('GetTribalReformGovernment')|U] Ways: #weak (West African Pagan)#! ###
convert_whole_realm_to_feudalism_west_african_pagan_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
sort_order = 100
desc = convert_whole_realm_to_feudalism_west_african_pagan_decision_desc
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
county = 0
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_shown = {
always = no
# Only tribals need formalise.
government_has_flag = government_is_tribal
# Unreformed West African Pagans are our targets.
@ -584,9 +613,9 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
prestige_level >= high_prestige_level
piety_level >= high_piety_level
custom_tooltip = {
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_development
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_prosperity
capital_county = {
development_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_development_value
prosperity_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_prosperity_value
title_province = { geographical_region = world_africa_west }
}
}
@ -597,20 +626,21 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
subject = root.culture
culture = {
calc_true_if = {
amount >= 9
amount >= 10
has_innovation = innovation_motte
has_innovation = innovation_catapult
has_innovation = innovation_barracks
has_innovation = innovation_mustering_grounds
has_innovation = innovation_bannus
has_innovation = innovation_quilted_armor
has_innovation = innovation_pattern_welding
has_innovation = innovation_gavelkind
has_innovation = innovation_crop_rotation
has_innovation = innovation_city_planning
has_innovation = innovation_casus_belli
has_innovation = innovation_plenary_assemblies
has_innovation = innovation_ledger
has_innovation = innovation_development_01
has_innovation = innovation_prosperity_01
has_innovation = innovation_currency_01
}
}
@ -680,6 +710,7 @@ declare_bloodline_holy_decision = {
reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
}
decision_group_type = major
sort_order = 20
desc = declare_bloodline_holy_decision_desc
ai_check_interval_by_tier = {
@ -799,6 +830,7 @@ strengthen_bloodline_decision = {
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
}
decision_group_type = major
sort_order = 20
desc = strengthen_bloodline_decision_desc
ai_check_interval_by_tier = {
@ -913,6 +945,7 @@ dynasty_of_many_crowns_decision = {
}
desc = dynasty_of_many_crowns_decision_desc
decision_group_type = major
sort_order = 20
ai_check_interval_by_tier = {
barony = 0
county = 0
@ -1012,7 +1045,8 @@ found_kingdom_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 50
ai_check_interval_by_tier = {
barony = 0
county = 0
@ -1147,7 +1181,8 @@ found_empire_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 50
ai_check_interval_by_tier = {
barony = 0
county = 0
@ -1171,6 +1206,7 @@ found_empire_decision = {
has_game_rule = off_custom_kingdoms
}
is_landed_or_landless_administrative = yes
NOT = { government_has_flag = government_is_republic }
is_confederation_member = no
}
@ -2244,36 +2280,61 @@ found_witch_coven_decision = {
### Repay Loan ###
repay_loan_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
}
picture = { reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" }
decision_group_type = major
desc = repay_loan_decision_decision_desc
selection_tooltip = repay_loan_decision_decision_tooltip
ai_check_interval = 0
ai_check_interval = 24
is_shown = {
var:loan_holder ?= {
any_in_list = {
variable = owes_me_money
this = root
any_owned_story = {
story_type = story_cycle_loan
exists = var:amount_owed
var:lender ?= {
any_in_list = {
variable = owes_me_money
this = root
}
}
}
exists = var:loan_amount_owed
}
is_valid_showing_failures_only = {
is_available = yes
gold >= var:loan_amount_owed
is_available_quick = {
adult = yes
incapable = no
}
custom_tooltip = {
text = repay_loan_decision_afford_any_tt
any_owned_story = {
story_type = story_cycle_loan
exists = var:amount_owed
var:amount_owed <= prev.gold
}
}
}
effect = {
var:loan_holder ?= { save_scope_as = recipient }
pay_short_term_gold = {
gold = var:loan_amount_owed
target = scope:recipient
scope:selected_item ?= { save_scope_as = recipient }
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
exists = var:amount_owed
var:lender = {
this = scope:recipient
any_in_list = {
variable = owes_me_money
this = root
}
}
}
order_by = { # repay smallest first
value = 0
subtract = var:amount_owed
}
save_scope_as = repaid_loan
}
clear_loanee_variables_effect = yes
scope:recipient = {
@ -2282,14 +2343,37 @@ repay_loan_decision = {
target = root
}
}
}
ai_potential = {
always = no
ai_select_item = {
scope:actor = {
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
exists = var:amount_owed
var:lender ?= {
any_in_list = {
variable = owes_me_money
this = scope:actor
}
}
var:amount_owed < scope:actor.short_term_gold
}
order_by = {
value = 0
add = var:years_since
if = {
limit = { var:lender = { is_ai = no } }
add = 2
}
}
var:lender = { save_scope_as = selected_item }
}
}
}
}
ai_will_do = {
base = 0
base = 25
}
}
@ -2500,7 +2584,8 @@ found_duchy_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 50
ai_check_interval_by_tier = {
barony = 0
county = 60
@ -2606,6 +2691,7 @@ expand_duchy_decision = {
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
}
decision_group_type = realm
sort_order = 20
ai_check_interval_by_tier = {
barony = 0
county = 0
@ -2671,6 +2757,7 @@ expand_duchy_decision = {
has_game_rule = on_custom_duchies
}
is_landed_or_landless_administrative = yes
NOT = { government_has_flag = government_is_republic }
trigger_if = {
limit = {
highest_held_title_tier = tier_duchy
@ -2821,7 +2908,7 @@ expand_duchy_decision = {
}
scope:barony.duchy = {
ordered_de_jure_county = {
order_by = development_level
order_by = prosperity_level
limit = { NOT = { this = scope:barony.county } }
save_scope_as = new_duchy_capital
}
@ -2880,6 +2967,7 @@ set_de_jure_capital_decision = {
reference = "gfx/interface/illustrations/decisions/ep3_decision_city.dds"
}
decision_group_type = realm
sort_order = 20
ai_check_interval_by_tier = {
barony = 0
county = 0
@ -3147,7 +3235,6 @@ set_de_jure_capital_decision = {
scope:current_de_jure_scope ?= {
set_capital_county = root.capital_county
}
# A bit of an ugly script hack, to make sure the Duchy Building slot is properly moved, which happens when a duchy capital is moved out of the duchy de jure. We temporarily move them out of the duchy de jure, and back again, to force this effect. Remove when Code gets a chance to have a look at it
if = {
limit = {
scope:set_duchy_capital = yes

View file

@ -30,7 +30,10 @@ recruit_court_position_decision = {
decision_group_type = courtier
is_shown = {
is_landed_or_landless_administrative_or_theocratic = yes
OR = {
is_landed_or_landless_administrative_or_theocratic = yes
government_has_flag = government_is_merchant
}
}
is_valid_showing_failures_only = {
@ -164,6 +167,7 @@ recruit_court_position_decision = {
item = { # Charioteer
value = hire_charioteer_decision
is_shown = {
is_landed_or_landless_administrative_or_theocratic = yes
has_ep3_dlc_trigger = yes
is_landless_adventurer = no
culture = {
@ -188,6 +192,7 @@ recruit_court_position_decision = {
item = { # Bookmaker
value = hire_bookmaker_decision
is_shown = {
is_landed_or_landless_administrative_or_theocratic = yes
has_ep3_dlc_trigger = yes
is_landless_adventurer = no
culture = {
@ -212,6 +217,7 @@ recruit_court_position_decision = {
item = { # Eunuch
value = hire_eunuch_decision
is_shown = {
is_landed_or_landless_administrative_or_theocratic = yes
has_ep3_dlc_trigger = yes
is_landless_adventurer = no
culture = {
@ -236,6 +242,7 @@ recruit_court_position_decision = {
item = { # Gardener
value = recruit_gardener_decision
is_shown = {
is_landed_or_landless_administrative_or_theocratic = yes
culture = {
has_cultural_parameter = can_recruit_gardeners
}
@ -2298,7 +2305,7 @@ stress_loss_inappetetic_decision = { #by Linnéa Thimrén
### Write Thoughts Down ###
stress_loss_journaller_decision = { #by Linnéa Thimrén
picture = {
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
}
desc = stress_loss_journaller_decision_desc
selection_tooltip = stress_loss_journaller_decision_tooltip
@ -2356,7 +2363,7 @@ stress_loss_journaller_decision = { #by Linnéa Thimrén
### Talk to Confidant ###
stress_loss_confider_decision = { #by Linnéa Thimrén
picture = {
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
reference = "gfx/interface/illustrations/decisions/decision_blood.dds"
}
desc = stress_loss_confider_decision_desc
selection_tooltip = stress_loss_confider_decision_tooltip

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 }
}