This commit is contained in:
Fishedotjpg 2026-11-03 22:45:16 +00:00
parent dbf806e724
commit b52a38c00c
10 changed files with 1549 additions and 1855 deletions

View file

@ -316,7 +316,59 @@ grant_titles_interaction = {
} }
auto_accept = yes auto_accept = yes
pre_auto_accept = {
if = {
limit = {
scope:government_type = {
OR = { government_has_flag = government_is_feudal government_has_flag = government_is_clan government_has_flag = government_is_theocracy }
}
scope:previous_holder ?= {
government_has_flag = government_is_administrative
}
}
scope:recipient = {
add_character_flag = granted_title_government_blocker
}
if = {
limit = {
scope:title.tier = tier_empire
}
scope:previous_holder = {
change_influence = monumental_influence_gain
add_gold = monumental_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_kingdom
}
scope:previous_holder = {
change_influence = massive_influence_gain
add_gold = massive_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_duchy
}
scope:previous_holder = {
change_influence = major_influence_gain
add_gold = major_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_county
}
scope:previous_holder = {
change_influence = medium_influence_gain
add_gold = medium_gold_max_value
}
}
else = {
}
}
}
on_auto_accept = { on_auto_accept = {
scope:recipient = { scope:recipient = {
trigger_event = char_interaction.0110 trigger_event = char_interaction.0110
@ -1390,57 +1442,6 @@ grant_titles_interaction = {
} }
} }
} }
if = {
limit = {
scope:government_type = {
OR = { government_has_flag = government_is_feudal government_has_flag = government_is_clan government_has_flag = government_is_theocracy }
}
scope:previous_holder ?= {
government_has_flag = government_is_administrative
}
}
scope:recipient = {
add_character_flag = { flag = granted_title_government_cooldown years = 30 }
}
if = {
limit = {
scope:title.tier = tier_empire
}
scope:previous_holder = {
change_influence = monumental_influence_gain
add_gold = monumental_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_kingdom
}
scope:previous_holder = {
change_influence = massive_influence_gain
add_gold = massive_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_duchy
}
scope:previous_holder = {
change_influence = major_influence_gain
add_gold = major_gold_max_value
}
}
else_if = {
limit = {
scope:title.tier = tier_county
}
scope:previous_holder = {
change_influence = medium_influence_gain
add_gold = medium_gold_max_value
}
}
else = {
}
}
#Opinion loss with underlings who think they should get the title you're granting #Opinion loss with underlings who think they should get the title you're granting
if = { if = {
limit = { limit = {
@ -1499,407 +1500,15 @@ grant_titles_interaction = {
claimant_rivalry_mercy_effect = yes claimant_rivalry_mercy_effect = yes
} }
} }
custom_tooltip = influence_award_notification
}
}
#This interaction is referenced in code! If it's renamed you have to ping a coder if = {
grant_title_to_new_random_character_interaction = { limit = {
hidden = yes
auto_accept = yes
special_interaction = grant_titles_interaction
use_diplomatic_range = no
ai_frequency = 6
is_valid_showing_failures_only = {
scope:puppet_or_actor = {
this != scope:recipient
any_held_title = {
count > 1
}
}
}
on_accept = {
scope:recipient = {
add_character_flag = { flag = granted_title_government_cooldown years = 30 }
}
}
}
# Be aware that the actual granting of the title happens in code!
# See 'grant_titles_interaction' for functionality of granting different government types.
grant_governorship_interaction = {
icon = grant_governorship
category = interaction_category_vassal
common_interaction = yes
desc = grant_governorship_interaction_desc
special_interaction = grant_governorship_interaction
interface = grant_titles
target_type = title
target_source = puppet_or_actor
target_filter = domain_titles
interface_priority = 60
ai_frequency = 6
# actor character giving the titles
# recipient character receiving the titles
is_shown = {
scope:puppet_or_actor != scope:recipient
scope:recipient = {
OR = {
target_is_liege_or_above = scope:puppet_or_actor
is_pool_guest_of = scope:puppet_or_actor
}
}
scope:puppet_or_actor ?= { scope:puppet_or_actor ?= {
government_has_mechanic = administrative government_has_mechanic = administrative
highest_held_title_tier >= tier_county highest_held_title_tier >= tier_county
} }
trigger_if = {
limit = {
scope:actor = { is_ai = yes }
}
scope:recipient = {
NOT = { any_parent = { is_ai = no } }
}
}
} }
is_valid_showing_failures_only = {
scope:puppet_or_actor = {
custom_tooltip = {
text = grant_governorship_interaction_no_title_tt
any_held_title = {
tier >= tier_county
is_noble_family_title = no
is_landless_type_title = no
NOR = {
this = scope:puppet_or_actor.capital_county
this = scope:puppet_or_actor.primary_title
}
}
}
}
scope:recipient = {
is_adult = yes
NOT = { is_at_war_with = scope:puppet_or_actor }
bp2_valid_for_standard_interactions_trigger = yes
trigger_if = {
limit = { is_ruler = no }
is_imprisoned = no
}
government_has_mechanic = administrative
# Only the preferred gender can be appointed unless they hold titles already
trigger_if = {
limit = {
scope:puppet_or_actor = {
OR = {
has_realm_law = male_only_law
has_realm_law = male_preference_law
}
}
is_landed = no
}
custom_tooltip = {
text = recipient_cannot_be_appointed_gender_laws_tt
is_female = no
}
}
trigger_if = {
limit = {
scope:puppet_or_actor = {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
is_landed = no
}
custom_tooltip = {
text = recipient_cannot_be_appointed_gender_laws_tt
is_female = yes
}
}
# DON'T TAKE OTHER PLAYERS' ACCLAIMED KNIGHTS
custom_description = {
text = grant_title_stealing_acclaimed_knight
subject = scope:recipient
NOR = {
AND = {
is_acclaimed = yes
liege ?= {
is_ai = no
this != scope:puppet_or_actor
}
}
AND = {
is_acclaimed = yes
scope:actor = { is_ai = yes }
}
}
}
is_clergy = no
# Gallivanters won't accept additional responsibilities.
NOT = { has_trait = gallivanter }
# TGP JAPAN
tgp_japan_grant_titles_restriction_trigger = {
GRANTER = scope:puppet_or_actor
GRANTEE = scope:recipient
}
# Cannot be a minister
custom_tooltip = {
text = recipient_is_a_minister_desc
tgp_is_any_minister = no
}
}
}
can_send = {
scope:recipient = {
custom_tooltip = {
text = promote_candidate_interaction_existing_holder_tt
this != scope:target.holder
}
trigger_if = { # Governors can only be appointed to certain titles
limit = {
is_governor = yes
scope:target = { is_noble_family_title = no } # For tooltip reasons, so we don't show more than necessary
}
custom_tooltip = { # Only one province of highest rank
text = only_one_province_of_highest_rank_tt
NAND = {
highest_held_title_tier = scope:target.tier
scope:target.tier >= tier_duchy
scope:target = { # We make an exception if recipient controls at least one de jure county
any_de_jure_county = {
count < 1
OR = {
holder = scope:recipient
holder = { is_vassal_or_below_of = scope:recipient }
}
}
}
}
}
custom_tooltip = {
text = admin_must_be_de_jure_or_neighboring
any_held_title = {
OR = {
# The target title is part of your de jure structure
is_de_jure_liege_or_above_target = scope:target
target_is_de_jure_liege_or_above = scope:target
# Or is a neighboring county which de jure duchy is not part of your realm
AND = {
NOT = { tier = tier_barony }
any_title_to_title_neighboring_county = { this = scope:target }
scope:target = {
tier = tier_county
duchy = {
OR = {
NOT = { exists = holder }
holder = {
NOR = {
is_vassal_or_below_of = scope:puppet_or_actor
this = scope:puppet_or_actor
}
}
}
}
}
}
}
}
}
}
trigger_if = { # If recipient is landless and only have a family title, target title must be a duchy or above
limit = {
is_landless_ruler = yes
any_held_title = { is_noble_family_title = yes }
scope:target.tier < min_appointment_tier
}
primary_title.tier <= scope:target.tier
}
trigger_if = { # If recipient is a count, they can get only get counties within the same duchy
limit = {
highest_held_title_tier = tier_county
main_administrative_tier > tier_county
is_landed = yes
scope:target.tier = tier_county
}
custom_tooltip = {
text = admin_count_grant_only_counties
any_held_title = { duchy = scope:target.duchy }
}
}
tgp_is_ceremonial_liege_trigger = no
}
}
can_be_picked_title = {
scope:target = {
is_leased_out = no
scope:recipient = {
trigger_if = { # Governors can only be appointed to certain titles
limit = {
is_governor = yes
scope:target = { is_noble_family_title = no } # For tooltip reasons, so we don't show more than necessary
}
custom_tooltip = { # Only one province of highest rank
text = only_one_province_of_highest_rank_tt
NAND = {
highest_held_title_tier = scope:target.tier
scope:target.tier >= main_administrative_tier
trigger_if = {
limit = {
scope:target.tier >= tier_duchy
}
scope:target = { # We make an exception if recipient controls at least one de jure county
any_de_jure_county = {
count < 1
OR = {
holder = scope:recipient
holder = { is_vassal_or_below_of = scope:recipient }
}
}
}
}
}
}
custom_tooltip = {
text = admin_must_be_de_jure_or_neighboring
any_held_title = {
OR = {
# The target title is part of your de jure structure
is_de_jure_liege_or_above_target = scope:target
target_is_de_jure_liege_or_above = scope:target
# Or is a neighboring county which de jure duchy is not part of your realm
AND = {
tier >= tier_county
any_title_to_title_neighboring_county = { this = scope:target }
scope:target = {
tier = tier_county
duchy = {
OR = {
NOT = { exists = holder }
holder = {
NOR = {
is_vassal_or_below_of = scope:puppet_or_actor
this = scope:puppet_or_actor
}
}
}
}
}
}
}
}
}
}
trigger_if = { # If recipient is landless and only have a family title, target title must be a duchy or above
limit = {
is_landless_ruler = yes
any_held_title = { is_noble_family_title = yes }
scope:target.tier < min_appointment_tier
}
primary_title.tier <= scope:target.tier
}
trigger_if = { # If recipient is a count, they can get only get counties within the same duchy
limit = {
highest_held_title_tier = tier_county
main_administrative_tier > tier_county
is_landed = yes
scope:target.tier = tier_county
}
custom_tooltip = {
text = admin_count_grant_only_counties
any_held_title = { duchy = scope:target.duchy }
}
}
tgp_is_ceremonial_liege_trigger = no
}
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_ADMIN_PRIMARY
this != scope:puppet_or_actor.capital_province.duchy
}
trigger_if = {
limit = { is_noble_family_title = yes }
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_NOBLE_FAMILY
always = no
}
}
trigger_if = {
limit = { exists = var:ceremonial_title }
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_CEREMONIAL_TITLE
always = no
}
}
trigger_if = {
limit = {
list_size:target_titles > 0
}
custom_tooltip = {
text = GRANT_TITLES_ITEM_ADMIN_CANT_GIVE_MORE_THAN_ONE
any_in_list = {
list = target_titles
scope:target ?= this
}
}
}
trigger_if = {
limit = { scope:target = title:k_fashion }
NOT = { scope:target = title:k_fashion }
}
}
custom_description = {
text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch
subject = scope:puppet_or_actor.diarch
NAND = {
# Only applies if we have an active diarchy.
scope:puppet_or_actor = { has_active_diarchy = yes }
# Now, prevent us from giving away our diarch's land to invalidate them...
scope:target = {
any_dejure_vassal_title_holder = { this = scope:puppet_or_actor.diarch }
# ... _unless_ we're giving it _to_ the diarch.
scope:recipient != scope:puppet_or_actor.diarch
# Plus we only care if the title is below our tier.
tier < scope:puppet_or_actor.highest_held_title_tier
}
}
}
custom_description = {
text = grant_titles_interaction_title_being_wagered
NOT = {
scope:target = { has_variable = wagered_county }
}
}
}
auto_accept = yes
on_auto_accept = {
scope:recipient = {
trigger_event = {
id = char_interaction.0111
delayed = yes #this has to be delayed in case you grant it to someone that doesn't have an estate yet, for the change_government effect to work and generate the estate
}
}
}
on_accept = {
if = { if = {
limit = { limit = {
scope:recipient = { scope:recipient = {
@ -2585,6 +2194,21 @@ grant_governorship_interaction = {
claimant_rivalry_mercy_effect = yes claimant_rivalry_mercy_effect = yes
} }
} }
custom_tooltip = influence_award_notification
}
custom_tooltip = influence_award_notification
}
}
#This interaction is referenced in code! If it's renamed you have to ping a coder
grant_title_to_new_random_character_interaction = {
hidden = yes
auto_accept = yes
special_interaction = grant_titles_interaction
use_diplomatic_range = no
ai_frequency = 6
pre_auto_accept = {
if = { if = {
limit = { limit = {
scope:government_type = { scope:government_type = {
@ -2595,7 +2219,7 @@ grant_governorship_interaction = {
} }
} }
scope:recipient = { scope:recipient = {
add_character_flag = { flag = granted_title_government_cooldown years = 30 } add_character_flag = granted_title_government_blocker
} }
if = { if = {
limit = { limit = {
@ -2636,6 +2260,60 @@ grant_governorship_interaction = {
else = { else = {
} }
} }
custom_tooltip = influence_award_notification }
is_valid_showing_failures_only = {
scope:puppet_or_actor = {
this != scope:recipient
any_held_title = {
count > 1
}
}
}
on_accept = {
}
}
# Be aware that the actual granting of the title happens in code!
# See 'grant_titles_interaction' for functionality of granting different government types.
grant_governorship_interaction = {
icon = grant_governorship
category = interaction_category_vassal
common_interaction = yes
hidden = yes
desc = grant_governorship_interaction_desc
special_interaction = grant_governorship_interaction
interface = grant_titles
target_type = title
target_source = puppet_or_actor
target_filter = domain_titles
interface_priority = 60
ai_frequency = 6
# actor character giving the titles
# recipient character receiving the titles
is_shown = {
always = no
}
is_valid_showing_failures_only = {
always = no
}
can_send = {
always = no
}
can_be_picked_title = {
}
auto_accept = yes
on_auto_accept = {
}
on_accept = {
} }
} }

View file

@ -2495,10 +2495,10 @@ demand_admin_interaction = {
category = interaction_category_vassal category = interaction_category_vassal
icon = demand_admin_interaction icon = demand_admin_interaction
ai_maybe = yes ai_maybe = no
ai_min_reply_days = 4 ai_min_reply_days = 4
ai_max_reply_days = 9 ai_max_reply_days = 9
can_send_despite_rejection = yes can_send_despite_rejection = no
ai_accept_negotiation = yes ai_accept_negotiation = yes
popup_on_receive = yes popup_on_receive = yes
common_interaction = no common_interaction = no
@ -2549,7 +2549,7 @@ demand_admin_interaction = {
} }
scope:recipient = { scope:recipient = {
NOT = { NOT = {
has_variable = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
} }
OR = { OR = {
prestige_level < 2 prestige_level < 2
@ -2584,7 +2584,7 @@ demand_admin_interaction = {
is_landed = yes is_landed = yes
is_ruler = yes is_ruler = yes
NOT = { NOT = {
has_variable = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
} }
OR = { OR = {
prestige_level < 2 prestige_level < 2
@ -2773,10 +2773,6 @@ demand_admin_interaction = {
factor = 0 factor = 0
scope:recipient = { is_powerful_vassal = yes } scope:recipient = { is_powerful_vassal = yes }
} }
modifier = {
factor = 0
scope:recipient = { is_powerful_agent = yes }
}
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient.house = { is_powerful_family = yes } scope:recipient.house = { is_powerful_family = yes }

View file

@ -24,10 +24,10 @@ estate_hire_agents_decisions = {
cooldown = { years = 15 } cooldown = { years = 15 }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
domicile ?= { domicile ?= {
has_domicile_parameter = estate_unlock_hire_agents_decision has_domicile_parameter = estate_unlock_hire_agents_decision
} }
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
@ -108,10 +108,10 @@ estate_bolster_security_decision = {
cooldown = { years = 15 } cooldown = { years = 15 }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
domicile ?= { domicile ?= {
has_domicile_parameter = estate_unlock_bolster_security_decision has_domicile_parameter = estate_unlock_bolster_security_decision
} }
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
@ -188,10 +188,10 @@ estate_governor_patrols_decision = {
cooldown = { years = 15 } cooldown = { years = 15 }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
domicile ?= { domicile ?= {
has_domicile_parameter = estate_unlock_patrol_decision has_domicile_parameter = estate_unlock_patrol_decision
} }
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
@ -309,10 +309,10 @@ estate_granary_decision = {
cooldown = { years = 20 } cooldown = { years = 20 }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
domicile ?= { domicile ?= {
has_domicile_parameter = estate_unlock_granary_decision has_domicile_parameter = estate_unlock_granary_decision
} }
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
@ -485,27 +485,27 @@ admin_confirmation_decision = {
hegemony = 0 hegemony = 0
} }
sort_order = 1000 sort_order = 1000
# picture = { picture = {
# trigger = { trigger = {
# NOR = { NOR = {
# government_has_flag = government_is_tribal government_has_flag = government_is_tribal
# government_has_flag = government_is_theocracy government_has_flag = government_is_theocracy
# top_liege ?= { government_has_flag = government_is_tribal } top_liege ?= { government_has_flag = government_is_tribal }
# top_liege ?= { government_has_flag = government_is_theocracy } top_liege ?= { government_has_flag = government_is_theocracy }
# } }
# OR = { OR = {
# culture = { has_cultural_pillar = heritage_byzantine } culture = { has_cultural_pillar = heritage_byzantine }
# top_liege ?= { top_liege ?= {
# OR = { OR = {
# culture = { has_cultural_pillar = heritage_byzantine } culture = { has_cultural_pillar = heritage_byzantine }
# capital_barony ?= title:b_constantinople capital_barony ?= title:b_constantinople
# is_roman_emperor_primary_title_trigger = yes is_roman_emperor_primary_title_trigger = yes
# } }
# } }
# } }
# } }
# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds"
# } }
picture = { picture = {
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
} }
@ -516,11 +516,11 @@ admin_confirmation_decision = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
is_playable_character = yes
is_governor = yes is_governor = yes
liege ?= top_liege liege ?= top_liege
top_liege = { tgp_is_ceremonial_regent_trigger = no } # Not 'actual' ruler top_liege ?= { tgp_is_ceremonial_regent_trigger = no } # Not 'actual' ruler
has_ep3_dlc_trigger = yes
is_playable_character = yes
} }
is_valid = { is_valid = {
@ -541,9 +541,9 @@ admin_confirmation_decision = {
} }
custom_tooltip = { custom_tooltip = {
text = admin_confirmation_grace_valid_tt text = admin_confirmation_grace_valid_tt
NOR = { has_none_of_variables = {
has_variable = confirmation_grace name = confirmation_grace
has_variable = confirmation_cooldown_vassal name = confirmation_cooldown_vassal
} }
} }
} }
@ -574,7 +574,7 @@ admin_confirmation_decision = {
} }
custom_tooltip = admin_confirmation_decision_effects custom_tooltip = admin_confirmation_decision_effects
show_as_tooltip = { show_as_tooltip = {
stress_impact = { stress_and_fulfillment_impact = {
shy = medium_stress_impact_gain shy = medium_stress_impact_gain
humble = medium_stress_impact_gain humble = medium_stress_impact_gain
} }
@ -654,16 +654,16 @@ consolidate_rule_decision = {
cooldown = { years = 15 } cooldown = { years = 15 }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
highest_held_title_tier >= tier_empire # Only for Emperors highest_held_title_tier >= tier_empire # Only for Emperors
culture = { # Byzantium and others culture ?= { # Byzantium and others
has_cultural_tradition = tradition_religious_patronage has_cultural_tradition = tradition_religious_patronage
} }
faith = { # You cannot consolidate yourself... kinda faith ?= { # You cannot consolidate yourself... kinda
religious_head ?= { religious_head ?= {
this != root this != root
} }
} }
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
@ -688,7 +688,7 @@ consolidate_rule_decision = {
} }
ai_potential = { ai_potential = {
highest_held_title_tier = tier_empire # Only for Emperors highest_held_title_tier >= tier_empire # Only for Emperors
culture = { # Byzantium and others culture = { # Byzantium and others
has_cultural_tradition = tradition_religious_patronage has_cultural_tradition = tradition_religious_patronage
} }
@ -776,28 +776,30 @@ convert_to_administrative_decision = {
hegemony = 2000 hegemony = 2000
} }
cooldown = { years = 20 }
is_shown = { is_shown = {
OR = {
has_ep3_dlc_trigger = yes
has_tgp_dlc_trigger = yes
}
NOT = {
has_variable = granted_title_government_cooldown
}
OR = { OR = {
government_has_flag = government_is_feudal government_has_flag = government_is_feudal
government_has_flag = government_is_clan government_has_flag = government_is_clan
government_has_flag = government_is_japan_feudal government_has_flag = government_is_japan_feudal
} }
NOT = {
has_character_flag = granted_title_government_blocker
}
trigger_if = { trigger_if = {
limit = { top_liege != this } limit = { top_liege != this }
liege = { government_has_mechanic = administrative } liege = { government_has_mechanic = administrative }
} }
OR = {
has_tgp_dlc_trigger = yes
has_ep3_dlc_trigger = yes
}
} }
is_valid = { is_valid = {
NOT = { NOT = {
has_variable = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
} }
trigger_if = { trigger_if = {
limit = { top_liege != this } limit = { top_liege != this }
@ -871,7 +873,7 @@ convert_to_administrative_decision = {
culture = { has_cultural_tradition = tradition_legalistic } culture = { has_cultural_tradition = tradition_legalistic }
has_realm_law = crown_authority_3 has_realm_law = crown_authority_3
capital_county = { development_level > medium_development_level } capital_county = { development_level > medium_development_level }
faith = { has_doctrine = tenet_legalism } rite = { rite_has_tenet = tenet_legalism }
dynasty = { has_dynasty_perk = erudition_legacy_5 } dynasty = { has_dynasty_perk = erudition_legacy_5 }
dynasty = { has_dynasty_perk = law_legacy_5 } dynasty = { has_dynasty_perk = law_legacy_5 }
} }
@ -1063,7 +1065,7 @@ convert_to_administrative_decision = {
gui = "decision_view_widget_generic_multichoice_with_effects" gui = "decision_view_widget_generic_multichoice_with_effects"
controller = decision_option_list_controller controller = decision_option_list_controller
decision_to_second_step_button = "SELECT_ACTION" decision_to_second_step_button = "SELECT_ACTION"
show_from_start = no show_from_start = yes
item = { # Administrative item = { # Administrative
value = go_administrative_government value = go_administrative_government
@ -1072,10 +1074,9 @@ convert_to_administrative_decision = {
} }
is_valid = { is_valid = {
top_liege = { top_liege = {
NOR = { trigger_if = {
has_government = celestial_government limit = { government_has_mechanic = administrative }
has_government = meritocratic_government government_has_flag = government_is_administrative
has_government = japan_administrative_government
} }
} }
} }
@ -1093,10 +1094,9 @@ convert_to_administrative_decision = {
} }
is_valid = { is_valid = {
top_liege = { top_liege = {
NOR = { trigger_if = {
has_government = administrative_government limit = { government_has_mechanic = administrative }
has_government = meritocratic_government government_has_flag = government_is_celestial
has_government = japan_administrative_government
} }
} }
custom_tooltip = { custom_tooltip = {
@ -1118,10 +1118,9 @@ convert_to_administrative_decision = {
} }
is_valid = { is_valid = {
top_liege = { top_liege = {
NOR = { trigger_if = {
has_government = administrative_government limit = { government_has_mechanic = administrative }
has_government = celestial_government government_has_flag = government_is_meritocratic
has_government = japan_administrative_government
} }
} }
custom_tooltip = { custom_tooltip = {
@ -1143,10 +1142,9 @@ convert_to_administrative_decision = {
} }
is_valid = { is_valid = {
top_liege = { top_liege = {
NOR = { trigger_if = {
has_government = administrative_government limit = { government_has_mechanic = administrative }
has_government = celestial_government government_has_flag = government_is_japan_administrative
has_government = meritocratic_government
} }
} }
custom_tooltip = { custom_tooltip = {
@ -1202,23 +1200,23 @@ convert_to_administrative_decision = {
VALUE = yes VALUE = yes
} }
} }
#if = { if = {
# limit = { limit = {
# is_ai = no is_ai = no
# religion = religion:islam_religion religion = religion:islam_religion
# has_title = title:k_rum has_title = title:k_rum
# OR = { OR = {
# has_title = title:c_byzantion has_title = title:c_byzantion
# any_sub_realm_title = { any_sub_realm_title = {
# this = title:c_byzantion this = title:c_byzantion
# } }
# } }
# } }
# add_achievement_global_variable_effect = { add_achievement_global_variable_effect = {
# VARIABLE = finished_new_management_achievement VARIABLE = finished_new_management_achievement
# VALUE = yes VALUE = yes
# } }
#} }
} }
} }
@ -1232,12 +1230,12 @@ convert_to_administrative_decision = {
ai_will_do = { ai_will_do = {
base = 0 base = 0
# modifier = { modifier = {
# OR = { OR = {
# is_roman_emperor_primary_title_trigger = yes is_roman_emperor_primary_title_trigger = yes
# } }
# add = 100 add = 100
# } }
modifier = { modifier = {
add = -20 add = -20
} }
@ -1338,6 +1336,12 @@ convert_to_administrative_decision = {
} }
add = -50 add = -50
} }
modifier = {
culture = {
culture_is_historically_admin_trigger = yes
}
add = 100
}
} }
} }
@ -1354,16 +1358,16 @@ convert_to_feudalism_from_administrative_decision = {
desc = convert_to_feudalism_from_administrative_decision_desc desc = convert_to_feudalism_from_administrative_decision_desc
is_shown = { is_shown = {
government_has_mechanic = administrative
# Ritsuryo gov has its own decisions
NOT = { government_has_flag = government_is_japan_administrative }
tgp_is_any_minister = no
trigger_if = { trigger_if = {
limit = { has_title = title:h_china } limit = { has_title = title:h_china }
NOT = { government_has_flag = government_is_celestial } NOT = { government_has_flag = government_is_celestial }
} }
government_has_mechanic = administrative
tgp_is_ceremonial_liege_trigger = no
tgp_is_ceremonial_regent_trigger = no tgp_is_ceremonial_regent_trigger = no
tgp_is_any_minister = no tgp_is_ceremonial_liege_trigger = no
# Ritsuryo gov has its own decisions
NOT = { government_has_flag = government_is_japan_administrative }
} }
is_valid = { is_valid = {
@ -1373,30 +1377,7 @@ convert_to_feudalism_from_administrative_decision = {
is_independent_ruler = no is_independent_ruler = no
} }
top_liege ?= { top_liege ?= {
trigger_if = { realm_law_authority_level_0 = yes
limit = {
has_realm_law_in_group = imperial_bureaucracy
}
has_realm_law = imperial_bureaucracy_0
}
trigger_if = {
limit = {
has_realm_law_in_group = celestial_bureaucracy
}
has_realm_law = celestial_bureaucracy_0
}
trigger_if = {
limit = {
has_realm_law_in_group = meritocratic_bureaucracy
}
has_realm_law = meritocratic_bureaucracy_0
}
trigger_if = {
limit = {
has_realm_law_in_group = japanese_bureaucracy
}
has_realm_law = japanese_bureaucracy_0
}
} }
custom_tooltip = { custom_tooltip = {
text = governorship_is_on_the_border_tt text = governorship_is_on_the_border_tt
@ -1867,19 +1848,16 @@ change_imperial_aspirations_decision = {
decision_group_type = admin decision_group_type = admin
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes
is_playable_character = yes
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
liege ?= { liege ?= {
has_realm_law = acclamation_succession_law has_realm_law = acclamation_succession_law
} }
is_playable_character = yes
has_ep3_dlc_trigger = yes
} }
is_valid = { is_valid = {
custom_tooltip = {
text = has_admin_government
government_has_flag = government_is_administrative 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. trigger_if = { # Unavailable if you are the top liege - Unless you have either modifier, so you may remove it.
limit = { limit = {
top_liege = this top_liege = this
@ -1912,7 +1890,7 @@ change_imperial_aspirations_decision = {
gui = "decision_view_widget_generic_multichoice_with_effects" gui = "decision_view_widget_generic_multichoice_with_effects"
controller = decision_option_list_controller controller = decision_option_list_controller
decision_to_second_step_button = "SELECT_ACTION" decision_to_second_step_button = "SELECT_ACTION"
#show_from_start = yes show_from_start = yes
### Remove yourself from competing for the throne ### Remove yourself from competing for the throne
item = { item = {

File diff suppressed because it is too large Load diff

View file

@ -59,6 +59,13 @@ feudal_government = {
} }
add = 10 add = 10
} }
if = {
limit = {
government_has_flag = government_is_administrative
is_independent_ruler = no
}
add = -500
}
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
@ -171,14 +178,14 @@ feudal_government = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
has_trait = content has_trait = content
} }
add = -15 add = 5
} }
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
has_trait = zealous has_trait = zealous
} }
add = 5 add = -15
} }
if = { if = {
limit = { limit = {
@ -224,7 +231,7 @@ feudal_government = {
republic_government = { republic_government = {
primary_holding = city_holding primary_holding = city_holding
valid_holdings = { castle_holding monotown_holding } valid_holdings = { castle_holding }
required_county_holdings = { city_holding castle_holding church_holding } required_county_holdings = { city_holding castle_holding church_holding }
government_rules = { government_rules = {
inherit_from_dynastic_government = no inherit_from_dynastic_government = no
@ -263,6 +270,7 @@ clan_government = {
dynasty_named_realms = no dynasty_named_realms = no
always_use_patronym = yes always_use_patronym = yes
allow_accolades = yes allow_accolades = yes
subject_men_at_arms = yes
} }
royal_court = any royal_court = any
@ -345,6 +353,13 @@ clan_government = {
} }
add = 10 add = 10
} }
if = {
limit = {
government_has_flag = government_is_administrative
is_independent_ruler = no
}
add = -500
}
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
@ -1120,6 +1135,7 @@ nomad_government = {
can_raze_holdings can_raze_holdings
government_uses_domicile_but_not_adventurer government_uses_domicile_but_not_adventurer
government_uses_nomadic_authority government_uses_nomadic_authority
government_can_use_tributary_men_at_arms
} }
ai = { ai = {
@ -1251,7 +1267,6 @@ celestial_government = {
feudal_government_levy_contribution_mult = -0.5 feudal_government_levy_contribution_mult = -0.5
clan_government_tax_contribution_mult = -0.5 clan_government_tax_contribution_mult = -0.5
clan_government_levy_contribution_mult = -0.5 clan_government_levy_contribution_mult = -0.5
men_at_arms_cap = -3
men_at_arms_limit = -2 men_at_arms_limit = -2
knight_limit = -5 knight_limit = -5
vassal_limit = 20 vassal_limit = 20
@ -1494,6 +1509,7 @@ mandala_government = {
government_is_settled government_is_settled
has_unique_government_perks has_unique_government_perks
no_powerful_vassals no_powerful_vassals
government_can_use_tributary_men_at_arms
} }
ai = { ai = {

View file

@ -37,6 +37,48 @@ theocracy_government = {
} }
always = no always = no
} }
}
vassal_contract_group = theocracy_vassal
# Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player).
flags = {
government_is_theocracy
government_is_settled
government_uses_church_authority
government_uses_domain_limit
government_can_use_tributary_men_at_arms
}
mechanic_type = theocracy
min_appointment_tier = county
is_mechanic_type_default = yes
possible_grant_vassal_governments = { feudal_government clan_government tribal_government }
# Any positive weight is enough
grant_vassal_ai_will_do = {
value = 0
if = {
limit = {
scope:title = { tier = tier_county }
NOT = { has_variable = grant_vassal_government_cooldown }
ai_zeal >= medium_positive_ai_value
rite = {
NOT = { rite_has_doctrine = doctrine_theocracy_lay_clergy }
rite_has_doctrine = doctrine_theocracy_temporal
}
realm_theocratic_county_share_ai_below_cap_trigger = yes
}
add = 10
}
if = {
limit = {
government_has_flag = government_is_administrative
is_independent_ruler = no
}
add = -500
}
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
@ -195,41 +237,6 @@ theocracy_government = {
} }
} }
vassal_contract_group = theocracy_vassal
# Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player).
flags = {
government_is_theocracy
government_is_settled
government_uses_church_authority
government_uses_domain_limit
gov_uses_non_crown_coa
government_is_basic_theocracy
government_can_use_tributary_men_at_arms
}
mechanic_type = theocracy
min_appointment_tier = county
is_mechanic_type_default = yes
# Any positive weight is enough
grant_vassal_ai_will_do = {
value = 0
if = {
limit = {
scope:title = { tier = tier_county }
NOT = { has_variable = grant_vassal_government_cooldown }
ai_zeal >= medium_positive_ai_value
rite ?= {
NOT = { rite_has_doctrine = doctrine_theocracy_lay_clergy }
rite_has_doctrine = doctrine_theocracy_temporal
}
realm_theocratic_county_share_ai_below_cap_trigger = yes
}
add = 10
}
}
color = hsv{ 0.00 0.00 0.78 } color = hsv{ 0.00 0.00 0.78 }
realm_mask_offset = { 0.0 0.02 } realm_mask_offset = { 0.0 0.02 }
realm_mask_scale = { 0.95 0.95 } realm_mask_scale = { 0.95 0.95 }
@ -311,6 +318,8 @@ ecclesiastical_government = {
min_appointment_tier = county min_appointment_tier = county
domicile_type = ecclesiastical_domicile domicile_type = ecclesiastical_domicile
possible_grant_vassal_governments = { feudal_government clan_government tribal_government }
# is_grant_government_shown already limits this to ecclesiastical theocracy faiths # is_grant_government_shown already limits this to ecclesiastical theocracy faiths
grant_vassal_ai_will_do = { grant_vassal_ai_will_do = {
value = 0 value = 0
@ -324,6 +333,13 @@ ecclesiastical_government = {
} }
add = 10 add = 10
} }
if = {
limit = {
government_has_flag = government_is_administrative
is_independent_ruler = no
}
add = -500
}
if = { if = {
limit = { limit = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative

View file

@ -45,6 +45,7 @@ change_to_administrative_holding_effect = {
} }
change_to_administrative_effect = { change_to_administrative_effect = {
save_scope_as = governor
if = { if = {
limit = { limit = {
exists = scope:new_liege exists = scope:new_liege
@ -53,7 +54,7 @@ change_to_administrative_effect = {
independent = no independent = no
} }
NOR = { NOR = {
has_character_flag = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
prestige_level > 2 prestige_level > 2
piety_level > 2 piety_level > 2
AND = { AND = {
@ -82,7 +83,7 @@ change_to_administrative_effect = {
independent = no independent = no
} }
NOR = { NOR = {
has_character_flag = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
prestige_level > 2 prestige_level > 2
piety_level > 2 piety_level > 2
AND = { AND = {
@ -110,7 +111,7 @@ change_to_administrative_effect = {
independent = no independent = no
} }
NOR = { NOR = {
has_character_flag = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
prestige_level > 2 prestige_level > 2
piety_level > 2 piety_level > 2
AND = { AND = {

View file

@ -210,21 +210,6 @@ convert_to_administrative_from_feudalism_game_start_effect = {
if = { if = {
limit = { limit = {
NOT = { government_has_mechanic = administrative } NOT = { government_has_mechanic = administrative }
trigger_if = {
limit = {
independent = no
}
NOR = {
has_character_flag = granted_title_government_cooldown
prestige_level > 2
piety_level > 2
AND = {
dynasty ?= {
dynasty_prestige_level > 2
}
}
}
}
} }
change_government = administrative_government change_government = administrative_government
create_noble_family_effect = { GOVERNMENT_GIVER = this } create_noble_family_effect = { GOVERNMENT_GIVER = this }

View file

@ -159,7 +159,7 @@ assign_new_government_effect = {
} }
} }
NOR = { NOR = {
has_character_flag = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
prestige_level > 2 prestige_level > 2
piety_level > 2 piety_level > 2
AND = { AND = {
@ -184,7 +184,7 @@ assign_new_government_effect = {
} }
} }
NOR = { NOR = {
has_character_flag = granted_title_government_cooldown has_character_flag = granted_title_government_blocker
prestige_level > 2 prestige_level > 2
piety_level > 2 piety_level > 2
AND = { AND = {

View file

@ -71,7 +71,9 @@ is_grant_government_shown = {
government_has_flag = government_is_administrative government_has_flag = government_is_administrative
government_has_flag = government_is_theocracy government_has_flag = government_is_theocracy
} }
NOT = { faith.religion = religion:islam_religion } NOT = {
faith.religion = religion:islam_religion
}
} }
} }
} }