IT FINALLY WORKS
This commit is contained in:
parent
ddfb576dde
commit
5ca82fedfe
8 changed files with 769 additions and 79 deletions
|
|
@ -23,6 +23,7 @@ grant_titles_interaction = {
|
|||
target_filter = domain_titles
|
||||
interface_priority = 60
|
||||
|
||||
ai_frequency = 6
|
||||
# actor character giving the titles
|
||||
# recipient character receiving the titles
|
||||
|
||||
|
|
@ -1389,6 +1390,60 @@ 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 = {
|
||||
set_variable = {
|
||||
name = granted_title_government_cooldown
|
||||
years = 15
|
||||
}
|
||||
}
|
||||
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
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1458,6 +1513,7 @@ grant_title_to_new_random_character_interaction = {
|
|||
special_interaction = grant_titles_interaction
|
||||
use_diplomatic_range = no
|
||||
|
||||
ai_frequency = 6
|
||||
is_valid_showing_failures_only = {
|
||||
scope:puppet_or_actor = {
|
||||
this != scope:recipient
|
||||
|
|
@ -1466,6 +1522,14 @@ grant_title_to_new_random_character_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
on_accept = {
|
||||
scope:recipient = {
|
||||
set_variable = {
|
||||
name = granted_title_government_cooldown
|
||||
years = 15
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Be aware that the actual granting of the title happens in code!
|
||||
|
|
@ -1484,6 +1548,7 @@ grant_governorship_interaction = {
|
|||
target_filter = domain_titles
|
||||
interface_priority = 60
|
||||
|
||||
ai_frequency = 6
|
||||
# actor character giving the titles
|
||||
# recipient character receiving the titles
|
||||
|
||||
|
|
@ -1841,6 +1906,12 @@ grant_governorship_interaction = {
|
|||
}
|
||||
|
||||
on_accept = {
|
||||
scope:recipient = {
|
||||
set_variable = {
|
||||
name = granted_title_government_cooldown
|
||||
years = 15
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:recipient = {
|
||||
|
|
@ -2526,6 +2597,60 @@ grant_governorship_interaction = {
|
|||
claimant_rivalry_mercy_effect = yes
|
||||
}
|
||||
}
|
||||
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 = {
|
||||
set_variable = {
|
||||
name = granted_title_government_cooldown
|
||||
years = 15
|
||||
}
|
||||
}
|
||||
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 = {
|
||||
}
|
||||
}
|
||||
custom_tooltip = influence_award_notification
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2514,8 +2514,8 @@ demand_admin_interaction = {
|
|||
}
|
||||
ai_frequency_by_tier = {
|
||||
barony = 0
|
||||
county = 12000
|
||||
duchy = 12000
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 12000
|
||||
empire = 12000
|
||||
hegemony = 12000
|
||||
|
|
@ -2539,6 +2539,30 @@ demand_admin_interaction = {
|
|||
limit = { is_ai = yes }
|
||||
is_adult = yes
|
||||
}
|
||||
scope:actor = {
|
||||
NOR = {
|
||||
has_relation_friend = scope:recipient
|
||||
has_relation_lover = scope:recipient
|
||||
has_relation_best_friend = scope:recipient
|
||||
has_relation_soulmate = scope:recipient
|
||||
}
|
||||
}
|
||||
scope:recipient = {
|
||||
NOT = {
|
||||
has_variable = granted_title_government_cooldown
|
||||
}
|
||||
OR = {
|
||||
prestige_level < 2
|
||||
piety_level < 2
|
||||
dynasty ?= {
|
||||
dynasty_prestige_level < 2
|
||||
}
|
||||
is_powerful_vassal = no
|
||||
|
||||
scope:recipient.house = { is_powerful_family = no }
|
||||
scope:recipient.house = { is_dominant_family = no }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
|
|
@ -2569,7 +2593,7 @@ demand_admin_interaction = {
|
|||
dynasty_prestige_level < 2
|
||||
}
|
||||
is_powerful_vassal = no
|
||||
is_powerful_agent = no
|
||||
|
||||
scope:recipient.house = { is_powerful_family = no }
|
||||
scope:recipient.house = { is_dominant_family = no }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -769,11 +769,11 @@ convert_to_administrative_decision = {
|
|||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 36
|
||||
duchy = 36
|
||||
kingdom = 36
|
||||
empire = 36
|
||||
hegemony = 0
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 500
|
||||
empire = 2000
|
||||
hegemony = 2000
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
|
|
@ -796,6 +796,9 @@ convert_to_administrative_decision = {
|
|||
}
|
||||
|
||||
is_valid = {
|
||||
NOT = {
|
||||
has_variable = granted_title_government_cooldown
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { top_liege != this }
|
||||
liege = { government_has_mechanic = administrative }
|
||||
|
|
|
|||
577
common/scripted_effects/00_administrative_effects.txt
Normal file
577
common/scripted_effects/00_administrative_effects.txt
Normal file
|
|
@ -0,0 +1,577 @@
|
|||
|
||||
change_to_administrative_hereditary_effect = {
|
||||
scope:recipient = {
|
||||
save_scope_as = petition_vassal
|
||||
every_held_title = {
|
||||
limit = {
|
||||
tier = scope:petition_vassal.highest_held_title_tier
|
||||
is_landless_type_title = no
|
||||
is_noble_family_title = no
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = petition_liege_house_governorship_rights_tt
|
||||
set_variable = {
|
||||
name = petition_house_rights
|
||||
value = scope:petition_vassal.house
|
||||
years = 100
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
change_to_administrative_holding_effect = {
|
||||
# Structured like this for clean tooltips
|
||||
capital_province = {
|
||||
if = {
|
||||
limit = { holding_is_tribal = yes }
|
||||
county.holder = { custom_tooltip = change_to_administrative_holding_tt }
|
||||
hidden_effect = {
|
||||
holding_pre_feudalize_effect = yes
|
||||
set_holding_type = castle_holding
|
||||
}
|
||||
}
|
||||
county = {
|
||||
if = {
|
||||
limit = { has_county_modifier = mpo_siberian_permafrost_modifier }
|
||||
holder = { custom_tooltip = change_to_administrative_permafrost_tt }
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad }
|
||||
holder = { custom_tooltip = change_to_administrative_permafrost_bad_tt }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
change_to_administrative_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:new_liege
|
||||
trigger_if = {
|
||||
limit = {
|
||||
independent = no
|
||||
}
|
||||
NOR = {
|
||||
has_variable = granted_title_government_cooldown
|
||||
prestige_level > 2
|
||||
piety_level > 2
|
||||
AND = {
|
||||
dynasty ?= {
|
||||
dynasty_prestige_level > 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:new_liege = { save_scope_as = governor_liege }
|
||||
}
|
||||
else = {
|
||||
top_liege = { save_scope_as = governor_liege }
|
||||
}
|
||||
# exactly 0 treasury, i.e. newly get this feature
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
has_treasury = no
|
||||
treasury = 0
|
||||
}
|
||||
|
||||
trigger_if = {
|
||||
limit = {
|
||||
independent = no
|
||||
}
|
||||
NOR = {
|
||||
has_variable = granted_title_government_cooldown
|
||||
prestige_level > 2
|
||||
piety_level > 2
|
||||
AND = {
|
||||
dynasty ?= {
|
||||
dynasty_prestige_level > 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
save_scope_as = new_treasury
|
||||
}
|
||||
# Set the correct government
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
NOT = { government_has_mechanic = administrative }
|
||||
AND = {
|
||||
scope:governor_liege = { government_has_mechanic = administrative }
|
||||
government_type != scope:governor_liege.government_type
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
independent = no
|
||||
}
|
||||
NOR = {
|
||||
has_variable = granted_title_government_cooldown
|
||||
prestige_level > 2
|
||||
piety_level > 2
|
||||
AND = {
|
||||
dynasty ?= {
|
||||
dynasty_prestige_level > 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Only case where Estate type is shared between Admin and non-Admin
|
||||
if = {
|
||||
limit = {
|
||||
NAND = {
|
||||
government_has_flag = government_is_japan_feudal
|
||||
scope:governor_liege = { government_has_flag = government_is_japan_administrative }
|
||||
}
|
||||
}
|
||||
save_scope_as = new_admin
|
||||
}
|
||||
# If we are greek, let's ensure we become administrative
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { exists = scope:has_selected_a_government }
|
||||
scope:governor_liege = {
|
||||
this = scope:governor # not vassal of some other admin liege
|
||||
culture = {
|
||||
OR = {
|
||||
this = culture:greek
|
||||
any_parent_culture_or_above = { this = culture:greek }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
save_scope_value_as = {
|
||||
name = has_selected_a_government
|
||||
value = flag:administrative
|
||||
}
|
||||
}
|
||||
# Change government
|
||||
# We first check if you have a selected government, then if you are independent, then what your liege has
|
||||
if = { # Ritsuryo
|
||||
limit = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:has_selected_a_government
|
||||
}
|
||||
scope:has_selected_a_government = flag:japan_administrative
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
top_liege = this
|
||||
}
|
||||
has_tgp_dlc_trigger = yes
|
||||
tgp_can_become_japan_administrative_trigger = yes
|
||||
}
|
||||
trigger_else = {
|
||||
scope:governor_liege = { government_has_flag = government_is_japan_administrative }
|
||||
}
|
||||
}
|
||||
change_to_administrative_holding_effect = yes
|
||||
tgp_domicile_conversion_when_changing_government_type = {
|
||||
NEW_DOMICILE_TYPE = japanese_manor
|
||||
NEW_GOVERNMENT_TYPE = japan_administrative_government
|
||||
}
|
||||
change_government = japan_administrative_government
|
||||
}
|
||||
else_if = { # Celestial
|
||||
limit = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:has_selected_a_government
|
||||
}
|
||||
scope:has_selected_a_government = flag:celestial
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:governor_liege ?= this
|
||||
}
|
||||
has_tgp_dlc_trigger = yes
|
||||
OR = {
|
||||
tgp_can_become_celestial_trigger = yes
|
||||
#This is Mongol breakup and they are hegemon
|
||||
AND = {
|
||||
exists = scope:great_yuan_ruler
|
||||
this = scope:great_yuan_ruler
|
||||
primary_title = title:h_china
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
scope:governor_liege = { government_has_flag = government_is_celestial }
|
||||
}
|
||||
}
|
||||
change_to_administrative_holding_effect = yes
|
||||
tgp_domicile_conversion_when_changing_government_type = {
|
||||
NEW_DOMICILE_TYPE = east_asian_estate
|
||||
NEW_GOVERNMENT_TYPE = celestial_government
|
||||
}
|
||||
change_government = celestial_government
|
||||
}
|
||||
else_if = { # Meritocratic Khanate
|
||||
limit = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:has_selected_a_government
|
||||
}
|
||||
# There's a separate decision to go from Nomad to Meritocratic Khanate, so you cannot pick it from here
|
||||
always = no
|
||||
}
|
||||
trigger_else = {
|
||||
scope:governor_liege = { government_has_flag = government_is_steppe_admin }
|
||||
}
|
||||
}
|
||||
change_to_administrative_holding_effect = yes
|
||||
tgp_domicile_conversion_when_changing_government_type = {
|
||||
NEW_DOMICILE_TYPE = east_asian_estate
|
||||
NEW_GOVERNMENT_TYPE = steppe_admin_government
|
||||
}
|
||||
change_government = steppe_admin_government
|
||||
}
|
||||
else_if = { # Meritocratic
|
||||
limit = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:has_selected_a_government
|
||||
}
|
||||
scope:has_selected_a_government = flag:meritocratic
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:governor_liege ?= this
|
||||
}
|
||||
has_tgp_dlc_trigger = yes
|
||||
tgp_should_become_meritocratic_trigger = yes
|
||||
}
|
||||
trigger_else = {
|
||||
scope:governor_liege = { government_has_flag = government_is_meritocratic }
|
||||
}
|
||||
}
|
||||
change_to_administrative_holding_effect = yes
|
||||
tgp_domicile_conversion_when_changing_government_type = {
|
||||
NEW_DOMICILE_TYPE = east_asian_estate
|
||||
NEW_GOVERNMENT_TYPE = meritocratic_government
|
||||
}
|
||||
change_government = meritocratic_government
|
||||
}
|
||||
else = { # Administrative
|
||||
add_character_flag = new_government_is_byz_admin
|
||||
change_to_administrative_holding_effect = yes
|
||||
tgp_domicile_conversion_when_changing_government_type = {
|
||||
NEW_DOMICILE_TYPE = estate
|
||||
NEW_GOVERNMENT_TYPE = administrative_government
|
||||
}
|
||||
change_government = administrative_government
|
||||
remove_character_flag = new_government_is_byz_admin
|
||||
}
|
||||
}
|
||||
# Set up a noble family title
|
||||
if = {
|
||||
limit = {
|
||||
primary_title.tier >= min_appointment_tier
|
||||
liege = {
|
||||
scope:governor_liege = this
|
||||
government_allows = noble_families
|
||||
}
|
||||
house.house_head = {
|
||||
top_liege = scope:governor_liege
|
||||
NOT = {
|
||||
any_held_title = { is_noble_family_title = yes }
|
||||
}
|
||||
}
|
||||
}
|
||||
create_noble_family_effect = { GOVERNMENT_GIVER = top_liege }
|
||||
}
|
||||
# Add the governor trait if applicable
|
||||
hidden_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
is_governor = yes
|
||||
NOT = { has_trait = governor }
|
||||
}
|
||||
add_trait = governor
|
||||
}
|
||||
}
|
||||
# Set up the domicile
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:new_admin
|
||||
exists = domicile
|
||||
}
|
||||
domicile ?= {
|
||||
set_up_domicile_estate_effect = yes
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_treasury = yes
|
||||
exists = scope:new_treasury # do not give it mutiple times
|
||||
}
|
||||
add_treasury = {
|
||||
value = gold
|
||||
min = 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
change_to_administrative_interaction_effect = {
|
||||
scope:actor = {
|
||||
if = {
|
||||
limit = { has_treasury = yes }
|
||||
pay_short_term_treasury = {
|
||||
target = scope:recipient
|
||||
treasury = {
|
||||
value = 50
|
||||
scope:recipient = {
|
||||
if = {
|
||||
limit = { highest_held_title_tier >= tier_kingdom }
|
||||
multiply = 10
|
||||
}
|
||||
else_if = {
|
||||
limit = { highest_held_title_tier >= tier_duchy }
|
||||
multiply = 6
|
||||
}
|
||||
else_if = {
|
||||
limit = { highest_held_title_tier >= tier_county }
|
||||
multiply = 3
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { scope:gold ?= yes }
|
||||
add = scope:actor.medium_gold_value
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:actor = { has_realm_law_flag = admin_change_vassal_gov_cheaper }
|
||||
}
|
||||
multiply = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
pay_short_term_gold = {
|
||||
target = scope:recipient
|
||||
gold = {
|
||||
value = 50
|
||||
scope:recipient = {
|
||||
if = {
|
||||
limit = { highest_held_title_tier >= tier_kingdom }
|
||||
multiply = 10
|
||||
}
|
||||
else_if = {
|
||||
limit = { highest_held_title_tier >= tier_duchy }
|
||||
multiply = 6
|
||||
}
|
||||
else_if = {
|
||||
limit = { highest_held_title_tier >= tier_county }
|
||||
multiply = 3
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { scope:gold ?= yes }
|
||||
add = scope:actor.medium_gold_value
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:actor = { has_realm_law_flag = admin_change_vassal_gov_cheaper }
|
||||
}
|
||||
multiply = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:recipient = {
|
||||
change_to_administrative_effect = yes
|
||||
|
||||
#And now we also convert all the administrative vassals below so they also match the actor's form of admin.
|
||||
#For non admin sub-vassals the newly converted main vassal can still ask using the same interaction but we
|
||||
hidden_effect = {
|
||||
every_vassal_or_below = {
|
||||
limit = {
|
||||
government_has_mechanic = administrative
|
||||
is_ai = yes #Humans get to be asked directly
|
||||
}
|
||||
change_to_administrative_effect = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:hook = yes
|
||||
scope:actor = { has_usable_hook = scope:recipient }
|
||||
}
|
||||
scope:actor = { use_hook = scope:recipient }
|
||||
}
|
||||
if = {
|
||||
limit = { scope:hereditary = yes }
|
||||
scope:recipient = { save_scope_as = petition_vassal }
|
||||
change_to_administrative_hereditary_effect = yes
|
||||
}
|
||||
if = {
|
||||
limit = { scope:influence = yes }
|
||||
scope:actor = {
|
||||
change_influence = {
|
||||
value = massive_influence_loss
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
give_new_noble_family_title_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
is_house_head = yes
|
||||
government_allows = noble_families
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_has_county_tier_noble_families
|
||||
}
|
||||
highest_held_title_tier >= tier_county
|
||||
}
|
||||
trigger_else = { highest_held_title_tier >= tier_duchy }
|
||||
liege = {
|
||||
government_allows = noble_families
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { any_held_title = { is_noble_family_title = yes } }
|
||||
has_domicile = no
|
||||
}
|
||||
}
|
||||
create_noble_family_effect = { GOVERNMENT_GIVER = this }
|
||||
domicile ?= { set_up_domicile_estate_effect = yes }
|
||||
}
|
||||
}
|
||||
|
||||
set_up_domicile_estate_effect = {
|
||||
if = {
|
||||
limit = { is_domicile_type = estate }
|
||||
# Intentionally one level lower than what you can get
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_domicile_building_or_higher = estate_main_02 }
|
||||
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||
}
|
||||
add_domicile_building = estate_main_02
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building = estate_main_02
|
||||
NOT = { has_domicile_building_or_higher = estate_main_03 }
|
||||
owner.culture ?= { has_innovation = innovation_manorialism }
|
||||
}
|
||||
add_domicile_building = estate_main_03
|
||||
}
|
||||
hidden_effect = {
|
||||
switch = {
|
||||
trigger = has_domicile_building
|
||||
estate_main_03 = {
|
||||
while = {
|
||||
count = 2
|
||||
add_random_internal_estate_building = yes
|
||||
}
|
||||
}
|
||||
estate_main_02 = {
|
||||
add_random_internal_estate_building = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
fill_external_estate_building_effect = yes
|
||||
}
|
||||
else_if = {
|
||||
limit = { is_domicile_type = japanese_manor }
|
||||
# Intentionally one level lower than what you can get
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_domicile_building_or_higher = japanese_manor_main_02 }
|
||||
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||
}
|
||||
add_domicile_building = japanese_manor_main_02
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building = japanese_manor_main_02
|
||||
NOT = { has_domicile_building_or_higher = japanese_manor_main_03 }
|
||||
owner.culture ?= { has_innovation = innovation_manorialism }
|
||||
}
|
||||
add_domicile_building = japanese_manor_main_03
|
||||
}
|
||||
hidden_effect = {
|
||||
switch = {
|
||||
trigger = has_domicile_building
|
||||
japanese_manor_main_03 = {
|
||||
while = {
|
||||
count = 2
|
||||
add_random_internal_japanese_manor_building = yes
|
||||
}
|
||||
}
|
||||
japanese_manor_main_02 = {
|
||||
add_random_internal_japanese_manor_building = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
fill_external_japanese_manor_building_effect = yes
|
||||
}
|
||||
else_if = {
|
||||
limit = { is_domicile_type = east_asian_estate }
|
||||
# Intentionally one level lower than what you can get
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_domicile_building_or_higher = east_asian_estate_main_02 }
|
||||
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||
}
|
||||
add_domicile_building = east_asian_estate_main_02
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building = east_asian_estate_main_02
|
||||
NOT = { has_domicile_building_or_higher = east_asian_estate_main_03 }
|
||||
owner.culture ?= { has_innovation = innovation_manorialism }
|
||||
}
|
||||
add_domicile_building = east_asian_estate_main_03
|
||||
}
|
||||
hidden_effect = {
|
||||
switch = {
|
||||
trigger = has_domicile_building
|
||||
east_asian_estate_main_03 = {
|
||||
while = {
|
||||
count = 2
|
||||
add_random_internal_east_asian_estate_building = yes
|
||||
}
|
||||
}
|
||||
east_asian_estate_main_02 = {
|
||||
add_random_internal_east_asian_estate_building = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
fill_external_east_asian_estate_building_effect = yes
|
||||
}
|
||||
}
|
||||
|
||||
noble_family_title_realm_setup_effect = {
|
||||
save_scope_as = top_liege
|
||||
every_noble_family = {
|
||||
save_scope_as = nf_title
|
||||
holder ?= {
|
||||
save_scope_as = nf_holder
|
||||
house ?= {
|
||||
save_scope_as = nf_house
|
||||
# Ensure holders of historical noble family titles are the default house heads
|
||||
if = {
|
||||
limit = { house_head != scope:nf_holder }
|
||||
set_house_head = scope:nf_holder
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:nf_title = {
|
||||
set_color_from_title = scope:nf_holder.capital_county
|
||||
# Ensure Noble Family CoA match House
|
||||
set_coa = scope:nf_house
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -44,7 +44,7 @@ is_grant_government_shown = {
|
|||
}
|
||||
faith.faith_theocratic_goverment_type = scope:government_type
|
||||
}
|
||||
trigger_if = {
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:government_type = {
|
||||
government_type_has_flag = government_is_ecclesiastical
|
||||
|
|
@ -58,7 +58,6 @@ is_grant_government_shown = {
|
|||
scope:government_type = {
|
||||
OR = {
|
||||
this = government_type:feudal_government
|
||||
this = government_type:clan_government
|
||||
this = government_type:tribal_government
|
||||
}
|
||||
}
|
||||
|
|
@ -72,6 +71,26 @@ is_grant_government_shown = {
|
|||
government_has_flag = government_is_administrative
|
||||
government_has_flag = government_is_theocracy
|
||||
}
|
||||
NOT = { faith.religion = religion:islam_religion }
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:government_type = {
|
||||
this = government_type:clan_government
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
government_has_flag = government_is_nomadic
|
||||
government_has_flag = government_is_herder
|
||||
AND = {
|
||||
scope:government_type = { this = government_type:clan_government }
|
||||
OR = {
|
||||
government_has_flag = government_is_administrative
|
||||
government_has_flag = government_is_theocracy
|
||||
}
|
||||
faith.religion = religion:islam_religion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -910,6 +910,9 @@ is_governor = {
|
|||
}
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
}
|
||||
NOT = {
|
||||
government_has_flag = government_is_feudal
|
||||
}
|
||||
}
|
||||
is_governor_or_admin_count = {
|
||||
government_has_mechanic = administrative
|
||||
|
|
@ -917,6 +920,9 @@ is_governor_or_admin_count = {
|
|||
top_liege != this
|
||||
highest_held_title_tier >= tier_county
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
NOT = {
|
||||
government_has_flag = government_is_feudal
|
||||
}
|
||||
}
|
||||
|
||||
is_governor_or_landless_admin = {
|
||||
|
|
@ -958,7 +964,10 @@ is_landed_or_landless_administrative_or_theocratic = {
|
|||
tgp_is_any_minister = yes # ministers should receive admin events and activity even if they are not house head
|
||||
AND = {
|
||||
is_ruler = yes
|
||||
government_has_flag = government_is_theocracy
|
||||
OR = {
|
||||
government_has_flag = government_is_theocracy
|
||||
government_has_flag = government_is_feudal
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,67 +0,0 @@
|
|||
namespace = NEOW_grant_title
|
||||
|
||||
NEOW_grant_title.001 = { # The Great Event
|
||||
hidden = yes
|
||||
trigger = {
|
||||
scope:previous_holder ?= {
|
||||
government_has_flag = government_is_administrative
|
||||
}
|
||||
}
|
||||
immediate = {
|
||||
if = {
|
||||
limit = {
|
||||
root = { OR = { government_has_flag = government_is_feudal government_has_flag = government_is_clan government_has_flag = government_is_theocracy } }
|
||||
OR = {
|
||||
scope:transfer_type = flag:granted
|
||||
scope:transfer_type = flag:appointment
|
||||
}
|
||||
scope:previous_holder ?= {
|
||||
government_has_flag = government_is_administrative
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:title.tier = tier_empire
|
||||
}
|
||||
scope:previous_holder = { change_influence = monumental_influence_gain }
|
||||
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 }
|
||||
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 }
|
||||
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 = {
|
||||
}
|
||||
}
|
||||
else = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
councillor_court_chaplain_orthodox_clerical_region_exarch_female: "Exarch"
|
||||
councillor_court_chaplain_orthodox_clerical_region_exarch_possessive: "Exarch's"
|
||||
councillor_court_chaplain_orthodox_clerical_region_exarch_female_possessive: "Exarch's"
|
||||
influence_award_notification: "As an Administrative ruler grants [influence_i][influence|E] proportionate to title rank if granted as feudal or theocratic:\n-[influence_i] 250 [influence|E] for Empire tier.\n-[influence_i] 150 [influence|E] for Kingdom tier.\n-[influence_i] 100 [influence|E] for Duchy tier.\n-[influence_i] 60 [influence|E] for County tier.\n\nAs an Administrative ruler grants [gold_i][gold|E] proportionate to title rank if granted as feudal or theocratic:\n-[gold_i] a monumental volume of [gold|E] for Empire tier.\n-[gold_i] a massive volume of [gold|E] for Kingdom tier.\n-[gold_i] a major volume of [gold|E] for Duchy tier.\n-[gold_i] a moderate volume of [gold|E] for County tier. "
|
||||
influence_award_notification: "As an Administrative ruler grants [influence_i][influence|E] proportionate to title rank if granted as [feudal_i|E][feudal|E],[clan_i|E][clan|E], or [theocracy_i|E][theocratic|E] Government:\n-[influence_i] 250 [influence|E] for Empire tier.\n-[influence_i] 150 [influence|E] for Kingdom tier.\n-[influence_i] 100 [influence|E] for Duchy tier.\n-[influence_i] 60 [influence|E] for County tier.\n\nAs an Administrative ruler grants [gold_i][gold|E] proportionate to title rank if granted as feudal or theocratic:\n-[gold_i] a monumental volume of [gold|E] for Empire tier.\n-[gold_i] a massive volume of [gold|E] for Kingdom tier.\n-[gold_i] a major volume of [gold|E] for Duchy tier.\n-[gold_i] a moderate volume of [gold|E] for County tier. "
|
||||
|
||||
|
||||
COURT_CHAPLAIN_CONVERSION_HARDER_TO_CONVERT_FAITH_AWAY_IN_HILLS_FORESTS_MALUS_MODIFIER:0 "[councillor_liege.GetFaith.GetName] — [GetFaithDoctrine('against_all_odds').GetBaseName] in Hills and Forests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue