Alignment
This commit is contained in:
parent
f7a954eb51
commit
15a5108e23
250 changed files with 31104 additions and 25806 deletions
|
|
@ -942,6 +942,7 @@ successful_nomadic_revolt_outcome_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
holder.top_liege = scope:faction_target
|
||||
NOT = { is_in_list = seized_duchies }
|
||||
}
|
||||
add_to_list = seized_duchies
|
||||
|
|
|
|||
|
|
@ -2690,20 +2690,23 @@ form_siam_kingdom_decision_scripted_effect = {
|
|||
hidden_effect = {
|
||||
title:k_siam = { save_scope_as = siam_kingdom }
|
||||
title:d_sukhothai = { save_scope_as = sukhotai_duchy }
|
||||
title:d_muang_sua = { save_scope_as = muang_sua_duchy }
|
||||
title:d_lop_buri = { save_scope_as = lop_buri }
|
||||
title:d_sukhothai = { set_de_jure_liege_title = title:k_siam }
|
||||
title:d_muang_sua = { set_de_jure_liege_title = title:k_siam }
|
||||
title:d_lop_buri = { set_de_jure_liege_title = title:k_siam }
|
||||
every_held_title = { # add other duchies if I hold any in the region
|
||||
limit = {
|
||||
tier = tier_duchy
|
||||
any_de_jure_county = {
|
||||
title_province = {
|
||||
geographical_region = world_asia_thailand
|
||||
OR = {
|
||||
geographical_region = world_asia_thailand
|
||||
geographical_region = world_asia_malaysia
|
||||
}
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
this = title:d_sukhothai
|
||||
this = title:d_muang_sua
|
||||
this = title:d_lop_buri
|
||||
}
|
||||
}
|
||||
set_de_jure_liege_title = title:k_siam
|
||||
|
|
@ -3857,5 +3860,5 @@ found_empire_of_hindustan_scripted_effect = {
|
|||
}
|
||||
}
|
||||
add_legitimacy_effect = { LEGITIMACY = massive_legitimacy_gain }
|
||||
dynasty = { add_dynasty_prestige = massive_dynasty_prestige_value }
|
||||
dynasty ?= { add_dynasty_prestige = massive_dynasty_prestige_value }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11975,7 +11975,7 @@ convert_great_yuan_to_admin_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_celestial
|
||||
tgp_use_chinese_naming_trigger = yes
|
||||
highest_held_title_tier >= tier_empire
|
||||
primary_title = {
|
||||
has_custom_title_name = no
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -916,12 +916,14 @@ mpo_mongol_recovered_head_content_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
any_side_participant = {
|
||||
is_alive = yes
|
||||
has_variable = beheaded_warrior
|
||||
is_ruler = yes
|
||||
}
|
||||
}
|
||||
every_side_participant = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
has_variable = beheaded_warrior
|
||||
is_ruler = yes
|
||||
}
|
||||
|
|
@ -929,7 +931,6 @@ mpo_mongol_recovered_head_content_effect = {
|
|||
random_list = {
|
||||
1 = {
|
||||
trigger = {
|
||||
is_alive = yes
|
||||
is_imprisoned = no
|
||||
}
|
||||
modifier = {
|
||||
|
|
@ -2022,225 +2023,6 @@ mpo_yurts_paiza_bonuses_tooltip_effect = {
|
|||
}
|
||||
}
|
||||
|
||||
mpo_yurts_paiza_bonuses_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
domicile ?= {
|
||||
OR = {
|
||||
has_domicile_building_or_higher = fertility_trade_yurt_01
|
||||
has_domicile_building_or_higher = herd_trade_yurt_01
|
||||
has_domicile_building_or_higher = knight_trade_yurt_01
|
||||
has_domicile_building_or_higher = merchant_yurt_01
|
||||
has_domicile_building_or_higher = char_trade_yurt_01
|
||||
}
|
||||
}
|
||||
}
|
||||
custom_tooltip = yurt_paiza_bonuses_generic
|
||||
}
|
||||
domicile ?= {
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building_or_higher = fertility_trade_yurt_01
|
||||
}
|
||||
switch = {
|
||||
trigger = has_domicile_parameter
|
||||
nomad_yurt_paiza_fertility_gain_lvl_1 = {
|
||||
root = {
|
||||
every_held_county = {
|
||||
limit = {
|
||||
uses_county_fertility = yes
|
||||
}
|
||||
add_county_modifier = {
|
||||
modifier = paiza_fertility_modifier_1
|
||||
years = 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_fertility_gain_lvl_2 = {
|
||||
root = {
|
||||
every_held_county = {
|
||||
limit = {
|
||||
uses_county_fertility = yes
|
||||
}
|
||||
add_county_modifier = {
|
||||
modifier = paiza_fertility_modifier_2
|
||||
years = 4
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_fertility_gain_lvl_3 = {
|
||||
root = {
|
||||
every_held_county = {
|
||||
limit = {
|
||||
uses_county_fertility = yes
|
||||
}
|
||||
add_county_modifier = {
|
||||
modifier = paiza_fertility_modifier_3
|
||||
years = 6
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building_or_higher = herd_trade_yurt_01
|
||||
}
|
||||
switch = {
|
||||
trigger = has_domicile_parameter
|
||||
nomad_yurt_paiza_herd_gain_lvl_1= {
|
||||
change_herd = {
|
||||
value = root.var:trade_gold_value
|
||||
multiply = 0.05
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_herd_gain_lvl_2 = {
|
||||
change_herd = {
|
||||
value = root.var:trade_gold_value
|
||||
multiply = 0.05
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_herd_gain_lvl_3 = {
|
||||
change_herd = {
|
||||
value = root.var:trade_gold_value
|
||||
multiply = 0.2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building_or_higher = knight_trade_yurt_01
|
||||
}
|
||||
switch = {
|
||||
trigger = has_domicile_parameter
|
||||
nomad_yurt_paiza_maa_gain_lvl_1 = {
|
||||
root = {
|
||||
spawn_army = {
|
||||
name = paiza_troops
|
||||
men_at_arms = {
|
||||
type = accolade_maa_archers
|
||||
stacks = 1
|
||||
}
|
||||
location = root.location
|
||||
origin = scope:merchant_origin
|
||||
inheritable = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_maa_gain_lvl_2 = {
|
||||
root = {
|
||||
spawn_army = {
|
||||
name = paiza_troops
|
||||
men_at_arms = {
|
||||
type = accolade_maa_archers
|
||||
stacks = 4
|
||||
}
|
||||
location = root.location
|
||||
origin = scope:merchant_origin
|
||||
inheritable = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_maa_gain_lvl_3 = {
|
||||
root = {
|
||||
spawn_army = {
|
||||
name = paiza_troops
|
||||
men_at_arms = {
|
||||
type = accolade_maa_archers
|
||||
stacks = 4
|
||||
}
|
||||
men_at_arms = {
|
||||
type = accolade_maa_vanguards
|
||||
stacks = 4
|
||||
}
|
||||
location = root.location
|
||||
origin = scope:merchant_origin
|
||||
inheritable = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_domicile_building_or_higher = char_trade_yurt_01
|
||||
}
|
||||
switch = {
|
||||
trigger = has_domicile_parameter
|
||||
nomad_yurt_paiza_char_gain_lvl_1 = {
|
||||
root = {
|
||||
hidden_effect = {
|
||||
create_character = {
|
||||
location = root.location
|
||||
culture = scope:merchant_origin.county.culture
|
||||
faith = scope:merchant_origin.county.faith
|
||||
gender_female_chance = 50
|
||||
template = peasant_character
|
||||
save_scope_as = yurt_merchant_char
|
||||
}
|
||||
scope:yurt_merchant_char = {
|
||||
add_trait = lifestyle_traveler
|
||||
}
|
||||
add_courtier = scope:yurt_merchant_char
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_char_gain_lvl_2 = {
|
||||
root = {
|
||||
hidden_effect = {
|
||||
create_character = {
|
||||
location = root.location
|
||||
culture = scope:merchant_origin.county.culture
|
||||
faith = scope:merchant_origin.county.faith
|
||||
gender_female_chance = 50
|
||||
template = merchant_template
|
||||
save_scope_as = yurt_merchant_char
|
||||
}
|
||||
scope:yurt_merchant_char = {
|
||||
add_trait = lifestyle_traveler
|
||||
}
|
||||
add_courtier = scope:yurt_merchant_char
|
||||
}
|
||||
}
|
||||
}
|
||||
nomad_yurt_paiza_char_gain_lvl_3 = {
|
||||
root = {
|
||||
hidden_effect = {
|
||||
create_character = {
|
||||
location = root.location
|
||||
culture = scope:merchant_origin.county.culture
|
||||
faith = scope:merchant_origin.county.faith
|
||||
gender_female_chance = 50
|
||||
template = merchant_template
|
||||
save_scope_as = yurt_merchant_char
|
||||
}
|
||||
scope:yurt_merchant_char = {
|
||||
add_random_skill_point_effect = yes
|
||||
add_random_skill_point_effect = yes
|
||||
add_random_skill_point_effect = yes
|
||||
add_random_skill_point_effect = yes
|
||||
add_random_skill_point_effect = yes
|
||||
add_random_skill_point_effect = yes
|
||||
random_list = {
|
||||
1 = { add_trait = avaricious }
|
||||
1 = { add_trait = diplomat }
|
||||
1 = { add_trait = overseer }
|
||||
}
|
||||
add_trait = lifestyle_traveler
|
||||
}
|
||||
add_courtier = scope:yurt_merchant_char
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mpo_paiza_improve_maa_smol_effect = {
|
||||
add_character_modifier = mpo_paiza_improve_maa_modifier
|
||||
add_character_flag = paiza_metal_trade_yurt_flag
|
||||
|
|
@ -3874,6 +3656,218 @@ mpo_overrunning_vassal_title_distribution_effect = {
|
|||
}
|
||||
}
|
||||
|
||||
mpo_duchy_overrunning_vassal_title_distribution_effect = {
|
||||
#All counties but capital county are up for grabs
|
||||
every_held_title = {
|
||||
limit = {
|
||||
tier = tier_county
|
||||
NOT = {
|
||||
this = scope:attacker.capital_county
|
||||
}
|
||||
}
|
||||
add_to_list = overrun_counties
|
||||
}
|
||||
#Distribute all counties
|
||||
while = {
|
||||
limit = {
|
||||
any_in_list = {
|
||||
list = overrun_counties
|
||||
holder = scope:attacker
|
||||
}
|
||||
any_in_list = {
|
||||
list = potential_overrunning_vassals
|
||||
NOT = {
|
||||
has_character_flag = got_overrun_title
|
||||
}
|
||||
}
|
||||
}
|
||||
ordered_in_list = {
|
||||
order_by = development_level
|
||||
list = overrun_counties
|
||||
save_scope_as = title_to_grant
|
||||
}
|
||||
#Choose a vassal
|
||||
ordered_in_list = {
|
||||
list = potential_overrunning_vassals
|
||||
limit = {
|
||||
NOT = {
|
||||
has_character_flag = got_overrun_title
|
||||
}
|
||||
}
|
||||
order_by = max_military_strength
|
||||
save_scope_as = title_gainer
|
||||
#Add character flag - they should be done
|
||||
add_character_flag = got_overrun_title
|
||||
|
||||
#tributaries go
|
||||
hidden_effect = {
|
||||
every_tributary = {
|
||||
custom = custom.every_tributary
|
||||
end_tributary = yes
|
||||
}
|
||||
}
|
||||
|
||||
#Give up nomadic titles
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
scope:title_to_grant = {
|
||||
any_county_province = {
|
||||
OR = {
|
||||
has_holding_type = nomad_holding
|
||||
has_holding_type = herder_holding
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
mpo_overrunning_ending_nomadism_effect = yes
|
||||
}
|
||||
#Nomads should still move
|
||||
else = {
|
||||
hidden_effect = {
|
||||
give_domain_to_herders = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:title_gainer = {
|
||||
create_title_and_vassal_change = {
|
||||
type = granted
|
||||
save_scope_as = title_change
|
||||
}
|
||||
scope:title_to_grant = {
|
||||
change_title_holder = {
|
||||
holder = scope:title_gainer
|
||||
change = scope:title_change
|
||||
}
|
||||
}
|
||||
resolve_title_and_vassal_change = scope:title_change
|
||||
#Add duchy if they're getting one
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:duchy_to_grant
|
||||
}
|
||||
create_title_and_vassal_change = {
|
||||
type = granted
|
||||
save_scope_as = title_change
|
||||
}
|
||||
scope:duchy_to_grant = {
|
||||
change_title_holder = {
|
||||
holder = scope:title_gainer
|
||||
change = scope:title_change
|
||||
}
|
||||
}
|
||||
resolve_title_and_vassal_change = scope:title_change
|
||||
}
|
||||
}
|
||||
#Change government
|
||||
scope:attacker = {
|
||||
if = {
|
||||
limit = {
|
||||
scope:title_to_grant = {
|
||||
any_county_province = {
|
||||
OR = {
|
||||
has_holding_type = nomad_holding
|
||||
has_holding_type = herder_holding
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#Do nothing, they're still nomadic
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:title_to_grant = {
|
||||
any_county_province = {
|
||||
has_holding_type = tribal_holding
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:title_gainer = {
|
||||
nomad_convert_people_to_tribe_effect = yes
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:title_gainer = {
|
||||
OR = {
|
||||
#Personal reasons to go clan
|
||||
faith.religion = religion:islam_religion
|
||||
culture = {
|
||||
OR = {
|
||||
has_cultural_pillar = heritage_arabic
|
||||
has_cultural_pillar = heritage_iranian
|
||||
}
|
||||
}
|
||||
#county and liege are clan
|
||||
AND = {
|
||||
scope:title_to_grant = {
|
||||
OR = {
|
||||
faith.religion = religion:islam_religion
|
||||
culture = {
|
||||
OR = {
|
||||
has_cultural_pillar = heritage_arabic
|
||||
has_cultural_pillar = heritage_iranian
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:attacker = {
|
||||
government_has_flag = government_is_clan
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:title_gainer = {
|
||||
nomad_convert_people_to_clan_effect = yes
|
||||
}
|
||||
}
|
||||
else = {
|
||||
scope:title_gainer = {
|
||||
nomad_convert_people_to_feudal_effect = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Have to re-add them as a vassal probably
|
||||
scope:title_gainer = {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
liege = scope:attacker
|
||||
}
|
||||
}
|
||||
create_title_and_vassal_change = {
|
||||
type = granted
|
||||
save_scope_as = change
|
||||
add_claim_on_loss = no
|
||||
}
|
||||
change_liege = {
|
||||
liege = scope:attacker
|
||||
change = scope:change
|
||||
}
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
}
|
||||
}
|
||||
|
||||
#Remove chosen titles from list
|
||||
scope:title_to_grant = {
|
||||
remove_from_list = overrun_counties
|
||||
}
|
||||
scope:undervassal_county ?= {
|
||||
remove_from_list = overrun_counties
|
||||
}
|
||||
}
|
||||
#Get rid of this now-useless flag
|
||||
every_vassal = {
|
||||
limit = {
|
||||
has_character_flag = got_overrun_title
|
||||
}
|
||||
remove_character_flag = got_overrun_title
|
||||
}
|
||||
}
|
||||
|
||||
mpo_overrunning_ending_nomadism_effect = {
|
||||
#Wrap up being a nomad
|
||||
nomad_domicile_refund_effect = yes
|
||||
|
|
@ -4896,33 +4890,59 @@ summon_three_fair_courtiers_effect = {
|
|||
template = $NOMAD_TEMPLATE_CHARACTER$
|
||||
faith = root.location.faith
|
||||
culture = root.location.culture
|
||||
save_scope_as = new_commander
|
||||
after_creation = {
|
||||
add_to_list = three_fair_courtiers_list
|
||||
}
|
||||
}
|
||||
create_character = {
|
||||
employer = scope:root_scope
|
||||
template = $NOMAD_TEMPLATE_CHARACTER$
|
||||
faith = root.location.faith
|
||||
culture = root.location.culture
|
||||
after_creation = {
|
||||
add_to_list = three_fair_courtiers_list
|
||||
}
|
||||
}
|
||||
create_character = {
|
||||
employer = scope:root_scope
|
||||
template = $NOMAD_TEMPLATE_CHARACTER$
|
||||
faith = root.location.faith
|
||||
culture = root.location.culture
|
||||
after_creation = {
|
||||
add_to_list = three_fair_courtiers_list
|
||||
}
|
||||
}
|
||||
if = { # Error suppression
|
||||
limit = {
|
||||
exists = scope:new_commander
|
||||
}
|
||||
scope:new_commander = {
|
||||
assign_random_nickname_effect = yes
|
||||
add_character_flag = {
|
||||
flag = blocked_from_leaving
|
||||
years = 25
|
||||
any_in_list = {
|
||||
list = three_fair_courtiers_list
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:new_commander = {
|
||||
every_in_list = {
|
||||
list = three_fair_courtiers_list
|
||||
assign_random_nickname_effect = yes
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
is_courtier_of = scope:root_scope
|
||||
}
|
||||
}
|
||||
scope:root_scope = {
|
||||
add_courtier = scope:new_commander
|
||||
}
|
||||
}
|
||||
add_character_flag = {
|
||||
flag = blocked_from_leaving
|
||||
years = 25
|
||||
}
|
||||
save_scope_as = new_commander # for the localization
|
||||
scope:root_scope = {
|
||||
send_interface_message = {
|
||||
title = nomad_character_recruited.t
|
||||
left_icon = prev
|
||||
custom_tooltip = commander_recruited.desc
|
||||
}
|
||||
}
|
||||
add_courtier = scope:new_commander
|
||||
}
|
||||
send_interface_message = {
|
||||
title = nomad_character_recruited.t
|
||||
left_icon = scope:new_commander
|
||||
custom_tooltip = commander_recruited.desc
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4953,7 +4973,7 @@ mpo_war_vassal_tributary_effect = {
|
|||
holder ?= {
|
||||
add_to_list = target_holder
|
||||
}
|
||||
add_to_list = target_titles
|
||||
add_to_list = titles_taken
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4965,12 +4985,12 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
|
||||
every_in_list = {
|
||||
list = target_titles
|
||||
list = titles_taken
|
||||
add_to_list = prestige_gain_list
|
||||
}
|
||||
|
||||
ordered_in_list = {
|
||||
list = target_titles
|
||||
list = titles_taken
|
||||
order_by = tier
|
||||
max = 1
|
||||
save_scope_as = war_goal_title
|
||||
|
|
@ -4983,8 +5003,8 @@ mpo_war_vassal_tributary_effect = {
|
|||
limit = {
|
||||
NOT = {
|
||||
any_held_county = {
|
||||
exists = duchy
|
||||
NOT = { is_in_list = target_titles }
|
||||
is_landless_type_title = no
|
||||
NOT = { is_in_list = titles_taken }
|
||||
}
|
||||
}
|
||||
NOR = {
|
||||
|
|
@ -4996,14 +5016,7 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
top_liege = scope:attacker
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
scope:attacker = {
|
||||
vassal_count >= vassal_limit
|
||||
}
|
||||
scope:attacker.vassal_count >= vassal_limit
|
||||
}
|
||||
start_tributary_from_war_effect = {
|
||||
TRIBUTARY = scope:defender
|
||||
|
|
@ -5022,40 +5035,30 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
top_liege = scope:attacker
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
}
|
||||
else = {
|
||||
change_liege = {
|
||||
liege = scope:attacker
|
||||
change = scope:change
|
||||
}
|
||||
}
|
||||
every_in_list = {
|
||||
list = target_titles
|
||||
list = titles_taken
|
||||
limit = {
|
||||
holder ?= { this = scope:current_target_holder }
|
||||
holder ?= scope:current_target_holder
|
||||
}
|
||||
remove_from_list = target_titles
|
||||
remove_from_list = titles_taken
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
every_in_list = {
|
||||
list = target_titles
|
||||
list = titles_taken
|
||||
limit = {
|
||||
OR = {
|
||||
NOT = { exists = holder }
|
||||
holder ?= {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
any_liege_or_above = { this = scope:attacker }
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
holder ?= {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
any_liege_or_above = { this = scope:attacker }
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5142,47 +5145,44 @@ mpo_war_vassal_tributary_effect = {
|
|||
#Called from game start on action
|
||||
#inside domicile scope
|
||||
add_random_yurt_external_building_effect = {
|
||||
if = {
|
||||
limit = { owner = { NOT = { government_has_flag = government_allows_nomad_domicile_titles } } }
|
||||
random_list = {
|
||||
10 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = herd_welfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = herd_welfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = character_warfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = character_warfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = mass_warfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = mass_warfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = court_yurt_01 }
|
||||
}
|
||||
add_domicile_building = court_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = family_yurt_01 }
|
||||
}
|
||||
add_domicile_building = family_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = mystical_yurt_01 }
|
||||
}
|
||||
add_domicile_building = mystical_yurt_01
|
||||
}
|
||||
}
|
||||
}
|
||||
random_list = {
|
||||
10 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = herd_welfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = herd_welfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = character_warfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = character_warfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = mass_warfare_yurt_01 }
|
||||
}
|
||||
add_domicile_building = mass_warfare_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = court_yurt_01 }
|
||||
}
|
||||
add_domicile_building = court_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = family_yurt_01 }
|
||||
}
|
||||
add_domicile_building = family_yurt_01
|
||||
}
|
||||
1 = {
|
||||
trigger = {
|
||||
NOT = { has_domicile_building_or_higher = mystical_yurt_01 }
|
||||
}
|
||||
add_domicile_building = mystical_yurt_01
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Called from game start on action
|
||||
|
|
@ -5669,6 +5669,7 @@ de_jure_shifting_effect = {
|
|||
value = 1
|
||||
}
|
||||
max = 3
|
||||
check_range_bounds = no
|
||||
list = de_jure_shifted_title
|
||||
show_as_tooltip = {
|
||||
set_de_jure_liege_title = root.primary_title
|
||||
|
|
@ -6127,15 +6128,39 @@ expanding_steppe_effect = {
|
|||
}
|
||||
}
|
||||
# East
|
||||
scope:world_steppe_tarim = {
|
||||
scope:dlc_mpo_steppe_hexi_tarim_expansion = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = world_steppe_tarim
|
||||
REGION = dlc_mpo_steppe_hexi_tarim_expansion
|
||||
}
|
||||
tgp_silk_road_expand_steppe_effect = { SUB_REGION = central_asia }
|
||||
tgp_silk_road_expand_steppe_effect = { SUB_REGION = transcaspia }
|
||||
tgp_silk_road_expand_steppe_effect = { SUB_REGION = occident }
|
||||
}
|
||||
scope:dlc_mpo_steppe_north_china_expansion = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = dlc_mpo_steppe_north_china_expansion
|
||||
}
|
||||
}
|
||||
scope:dlc_mpo_steppe_central_china_expansion = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = dlc_mpo_steppe_central_china_expansion
|
||||
}
|
||||
}
|
||||
scope:world_asia_korea = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = world_asia_korea
|
||||
}
|
||||
}
|
||||
scope:world_asia_japan = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = world_asia_japan
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6573,3 +6598,83 @@ mpo_abuse_authority_county_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
mpo_release_herder_land_effect = {
|
||||
# Save scope of character triggering the effect
|
||||
save_scope_as = trigger_character
|
||||
every_top_realm_border_county = {
|
||||
limit = {
|
||||
title_province = {
|
||||
this != scope:trigger_character.capital_province
|
||||
}
|
||||
}
|
||||
add_to_list = target_titles
|
||||
}
|
||||
while = {
|
||||
limit = { # Loop over list of target titles until there are no more titles to grant
|
||||
list_size = {
|
||||
name = target_titles
|
||||
value >= 1
|
||||
}
|
||||
}
|
||||
random_in_list = {
|
||||
list = target_titles
|
||||
if = {
|
||||
limit = {
|
||||
title_province = { has_holding_type = nomad_holding }
|
||||
}
|
||||
title_province = { set_holding_type = herder_holding }
|
||||
}
|
||||
|
||||
save_scope_as = county_of_origin
|
||||
|
||||
create_character = {
|
||||
template = herder_character
|
||||
dynasty = none
|
||||
location = scope:county_of_origin.title_province
|
||||
culture = scope:county_of_origin.culture
|
||||
faith = scope:county_of_origin.faith
|
||||
gender_female_chance = {
|
||||
if = {
|
||||
limit = { scope:county_of_origin.faith = { has_doctrine = doctrine_gender_male_dominated } }
|
||||
add = 20
|
||||
}
|
||||
else_if = {
|
||||
limit = { scope:county_of_origin.faith = { has_doctrine = doctrine_gender_female_dominated } }
|
||||
add = 80
|
||||
}
|
||||
else = {
|
||||
add = 50
|
||||
}
|
||||
}
|
||||
save_scope_as = new_herder
|
||||
}
|
||||
|
||||
create_title_and_vassal_change = {
|
||||
type = granted
|
||||
save_scope_as = change
|
||||
add_claim_on_loss = no
|
||||
}
|
||||
change_title_holder_include_vassals = {
|
||||
holder = scope:new_herder
|
||||
change = scope:change
|
||||
}
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
remove_from_list = target_titles
|
||||
}
|
||||
scope:new_herder = {
|
||||
change_government = herder_government
|
||||
if = {
|
||||
limit = { is_independent_ruler = no }
|
||||
#De-vassalise him.
|
||||
create_title_and_vassal_change = {
|
||||
type = independency
|
||||
save_scope_as = change
|
||||
add_claim_on_loss = no
|
||||
}
|
||||
becomes_independent = { change = scope:change }
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -372,7 +372,9 @@ debate_host_rewards_effect = {
|
|||
situation_top_has_catalyst = catalyst_movement_gained_power_pro_hegemon
|
||||
}
|
||||
}
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_pro_hegemon
|
||||
situation:dynastic_cycle = {
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_pro_hegemon
|
||||
}
|
||||
}
|
||||
}
|
||||
advancement_movement = {
|
||||
|
|
@ -382,7 +384,9 @@ debate_host_rewards_effect = {
|
|||
situation_top_has_catalyst = catalyst_movement_gained_power_advancement
|
||||
}
|
||||
}
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_advancement
|
||||
situation:dynastic_cycle = {
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_advancement
|
||||
}
|
||||
}
|
||||
}
|
||||
expansion_movement = {
|
||||
|
|
@ -392,7 +396,9 @@ debate_host_rewards_effect = {
|
|||
situation_top_has_catalyst = catalyst_movement_gained_power_expansion
|
||||
}
|
||||
}
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_expansion
|
||||
situation:dynastic_cycle = {
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_expansion
|
||||
}
|
||||
}
|
||||
}
|
||||
conservative_movement = {
|
||||
|
|
@ -402,7 +408,9 @@ debate_host_rewards_effect = {
|
|||
situation_top_has_catalyst = catalyst_movement_gained_power_conservative
|
||||
}
|
||||
}
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_conservative
|
||||
situation:dynastic_cycle = {
|
||||
trigger_situation_catalyst = catalyst_movement_gained_power_conservative
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -442,7 +450,7 @@ debate_host_rewards_effect = {
|
|||
ordered_in_list = {
|
||||
variable = debate_disciples
|
||||
order_by = learning
|
||||
position = 1
|
||||
position = 0
|
||||
save_scope_as = disciple_2
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -434,6 +434,20 @@ imperial_examination_disburse_activity_entrant_rewards = {
|
|||
}
|
||||
remove_character_flag = failed_imperial_examination
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_character_flag = exam_cheat_intent
|
||||
NOR = {
|
||||
has_variable = been_caught_cheating
|
||||
has_variable = been_caught_cheating_longterm
|
||||
}
|
||||
government_allows = merit
|
||||
}
|
||||
add_secret = {
|
||||
target = scope:host
|
||||
type = secret_exam_cheater
|
||||
}
|
||||
}
|
||||
}
|
||||
#Failees
|
||||
else = {
|
||||
|
|
@ -575,6 +589,20 @@ local_examination_disburse_activity_entrant_rewards = {
|
|||
desc = msg_provincial_exam_close_family_passed_desc
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_character_flag = exam_cheat_intent
|
||||
NOR = {
|
||||
has_variable = been_caught_cheating
|
||||
has_variable = been_caught_cheating_longterm
|
||||
}
|
||||
government_allows = merit
|
||||
}
|
||||
add_secret = {
|
||||
target = scope:host
|
||||
type = secret_exam_cheater
|
||||
}
|
||||
}
|
||||
}
|
||||
#Failees
|
||||
else = {
|
||||
|
|
@ -1284,15 +1312,11 @@ imperial_examination_gather_entrants_effect = {
|
|||
NOR = {
|
||||
this = scope:host
|
||||
is_in_guest_subset = { name = imperial_examiners }
|
||||
has_court_position = travel_leader_court_position
|
||||
has_court_position = bodyguard_court_position
|
||||
# If you are a player, you should get as many shots at the Palace Exam as you want.
|
||||
has_character_flag = passed_palace_exam
|
||||
has_trait = devoted
|
||||
has_trait = eunuch
|
||||
}
|
||||
# Remove diarchs from the list.
|
||||
bannable_serving_diarch_trigger = no
|
||||
is_adult = yes
|
||||
}
|
||||
save_temporary_scope_as = temp_character
|
||||
|
|
@ -1355,8 +1379,6 @@ local_examination_gather_entrants_effect = {
|
|||
NOR = {
|
||||
this = scope:host
|
||||
is_in_guest_subset = { name = imperial_examiners }
|
||||
has_court_position = travel_leader_court_position
|
||||
has_court_position = bodyguard_court_position
|
||||
# You have passed the any of the higher level exams
|
||||
has_character_flag = passed_metropolitan_exam
|
||||
# You have already passed the Provincial
|
||||
|
|
@ -1364,8 +1386,6 @@ local_examination_gather_entrants_effect = {
|
|||
has_trait = devoted
|
||||
has_trait = eunuch
|
||||
}
|
||||
# Remove diarchs from the list.
|
||||
bannable_serving_diarch_trigger = no
|
||||
is_adult = yes
|
||||
}
|
||||
save_temporary_scope_as = temp_character
|
||||
|
|
@ -1474,8 +1494,6 @@ imperial_examination_gather_stray_entrants_effect = {
|
|||
is_holy_order = no
|
||||
}
|
||||
}
|
||||
# Remove diarchs from the list.
|
||||
bannable_serving_diarch_trigger = no
|
||||
tgp_gender_can_be_exam_entrant_trigger = yes
|
||||
}
|
||||
add_to_list = entourage_entrants
|
||||
|
|
@ -1513,8 +1531,6 @@ imperial_examination_gather_stray_entrants_effect = {
|
|||
is_holy_order = no
|
||||
}
|
||||
}
|
||||
# Remove diarchs from the list.
|
||||
bannable_serving_diarch_trigger = no
|
||||
tgp_gender_can_be_exam_entrant_trigger = yes
|
||||
}
|
||||
add_to_list = entourage_entrants
|
||||
|
|
@ -1582,30 +1598,24 @@ metropolitan_examination_scoreboard_setup_effect = {
|
|||
}
|
||||
}
|
||||
#Add the fresh entrants to the scoreboard
|
||||
while = {
|
||||
count = 1
|
||||
ordered_attending_character = {
|
||||
limit = {
|
||||
or = {
|
||||
is_in_guest_subset = { name = entrants }
|
||||
}
|
||||
NOR = {
|
||||
is_in_guest_subset = { name = scoreboard }
|
||||
scope:activity = {
|
||||
any_guest_subset = {
|
||||
name = scoreboard
|
||||
count = scope:activity.var:scoreboard_size
|
||||
}
|
||||
every_attending_character = {
|
||||
limit = {
|
||||
is_in_guest_subset = { name = entrants }
|
||||
NOR = {
|
||||
is_in_guest_subset = { name = scoreboard }
|
||||
scope:activity = {
|
||||
any_guest_subset = {
|
||||
name = scoreboard
|
||||
count = scope:activity.var:scoreboard_size
|
||||
}
|
||||
}
|
||||
}
|
||||
order_by = imperial_examination_score_value
|
||||
save_temporary_scope_as = temp_character
|
||||
scope:activity = {
|
||||
add_to_guest_subset = {
|
||||
name = scoreboard
|
||||
target = scope:temp_character
|
||||
}
|
||||
}
|
||||
save_temporary_scope_as = temp_character
|
||||
scope:activity = {
|
||||
add_to_guest_subset = {
|
||||
name = scoreboard
|
||||
target = scope:temp_character
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1642,28 +1652,24 @@ palace_examination_scoreboard_setup_effect = {
|
|||
}
|
||||
}
|
||||
#Add the fresh entrants to the scoreboard
|
||||
while = {
|
||||
count = 1
|
||||
ordered_attending_character = {
|
||||
limit = {
|
||||
is_in_guest_subset = { name = palace_entrants }
|
||||
NOR = {
|
||||
is_in_guest_subset = { name = scoreboard }
|
||||
scope:activity = {
|
||||
any_guest_subset = {
|
||||
name = scoreboard
|
||||
count = scope:activity.var:scoreboard_size
|
||||
}
|
||||
every_attending_character = {
|
||||
limit = {
|
||||
is_in_guest_subset = { name = palace_entrants }
|
||||
NOR = {
|
||||
is_in_guest_subset = { name = scoreboard }
|
||||
scope:activity = {
|
||||
any_guest_subset = {
|
||||
name = scoreboard
|
||||
count = scope:activity.var:scoreboard_size
|
||||
}
|
||||
}
|
||||
}
|
||||
order_by = imperial_examination_score_value
|
||||
save_temporary_scope_as = temp_character
|
||||
scope:activity = {
|
||||
add_to_guest_subset = {
|
||||
name = scoreboard
|
||||
target = scope:temp_character
|
||||
}
|
||||
}
|
||||
save_temporary_scope_as = temp_character
|
||||
scope:activity = {
|
||||
add_to_guest_subset = {
|
||||
name = scoreboard
|
||||
target = scope:temp_character
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1720,6 +1726,7 @@ imperial_examination_determine_exam_outcome_effect = {
|
|||
# If we don't have enough, let some of the failees pass.
|
||||
ordered_guest_subset = {
|
||||
name = entrants
|
||||
check_range_bounds = no
|
||||
limit = {
|
||||
has_trait = education_martial
|
||||
has_variable = failee_to_be_removed
|
||||
|
|
@ -1990,4 +1997,4 @@ exam_grab_entrant_position_effect = {
|
|||
name = your_exam_position
|
||||
value = list_size:exam_position_list
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ contributed_slabs_of_sandstone_effect = {
|
|||
|
||||
mandala_contributor_laterite_blocks_reward_effect = {
|
||||
add_prestige = mandala_contribution_medium_prestige_reward
|
||||
add_piety_experience = mandala_contribution_minor_dynasty_reward
|
||||
add_piety_experience = medium_piety_value
|
||||
}
|
||||
contributed_laterite_blocks_effect = {
|
||||
custom_description_no_bullet = { text = contributed_laterite_blocks }
|
||||
|
|
@ -188,7 +188,7 @@ contributed_ornate_reliefs_effect = {
|
|||
}
|
||||
|
||||
mandala_contributor_family_shrine_reward_effect = {
|
||||
dynasty = { add_dynasty_prestige = medium_dynasty_prestige_value }
|
||||
dynasty ?= { add_dynasty_prestige = medium_dynasty_prestige_value }
|
||||
player_heir ?= { add_piety_experience = medium_piety_value }
|
||||
}
|
||||
contributed_family_shrine_effect = {
|
||||
|
|
@ -347,7 +347,7 @@ contributed_decorated_domes_effect = {
|
|||
}
|
||||
|
||||
mandala_contributor_family_statues_reward_effect = {
|
||||
dynasty = { add_dynasty_prestige = major_dynasty_prestige_value }
|
||||
dynasty ?= { add_dynasty_prestige = major_dynasty_prestige_value }
|
||||
player_heir ?= {
|
||||
add_piety_experience = major_piety_value
|
||||
}
|
||||
|
|
@ -621,7 +621,7 @@ contributed_gilded_domes_effect = {
|
|||
}
|
||||
|
||||
mandala_contributor_family_temple_compound_reward_effect = {
|
||||
dynasty = { add_dynasty_prestige = major_dynasty_prestige_value }
|
||||
dynasty ?= { add_dynasty_prestige = major_dynasty_prestige_value }
|
||||
player_heir ?= {
|
||||
add_piety_experience = massive_piety_value
|
||||
}
|
||||
|
|
@ -952,7 +952,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
scope:owner = {
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_creator_reward_artifact_effect_tt
|
||||
|
|
@ -968,7 +968,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
scope:owner = {
|
||||
house ?= { has_house_power_parameter = aspect_of_serenity }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_serenity_reward_artifact_effect_tt
|
||||
|
|
@ -984,7 +984,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
scope:owner = {
|
||||
house ?= { has_house_power_parameter = aspect_of_destruction }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_destruction }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_destruction_reward_artifact_effect_tt
|
||||
|
|
@ -1001,7 +1001,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
scope:owner = {
|
||||
house ?= { has_house_power_parameter = aspect_of_trickery }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_trickery }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_trickery_reward_artifact_effect_tt
|
||||
|
|
@ -1032,7 +1032,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
this = {
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_creator_reward_pre_artifact_effect_tt
|
||||
|
|
@ -1040,7 +1040,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
this = {
|
||||
house ?= { has_house_power_parameter = aspect_of_serenity }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_serenity_reward_pre_artifact_effect_tt
|
||||
|
|
@ -1048,7 +1048,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
this = {
|
||||
house ?= { has_house_power_parameter = aspect_of_destruction }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_destruction }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_destruction_reward_pre_artifact_effect_tt
|
||||
|
|
@ -1056,7 +1056,7 @@ mandala_contributor_bejeweled_reliefs_reward_effect = {
|
|||
else_if = {
|
||||
limit = {
|
||||
this = {
|
||||
house ?= { has_house_power_parameter = aspect_of_trickery }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_trickery }
|
||||
}
|
||||
}
|
||||
custom_tooltip = mandala_contributor_bejeweled_reliefs_trickery_reward_pre_artifact_effect_tt
|
||||
|
|
@ -1230,7 +1230,7 @@ mandala_peacemaker_perk_serenity_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_serenity }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
|
||||
is_house_head = yes
|
||||
has_perk = peacemaker_perk
|
||||
}
|
||||
|
|
@ -1243,6 +1243,24 @@ mandala_peacemaker_perk_serenity_effect = {
|
|||
change_to_mandala_government_effect = {
|
||||
change_government = mandala_government
|
||||
change_to_mandala_government_decree_effect = yes
|
||||
save_scope_as = root_scope
|
||||
primary_title.title_province = {
|
||||
if = {
|
||||
limit = { geographical_region = geographical_region:mpo_region_permafrost }
|
||||
scope:root_scope = {
|
||||
every_realm_county = {
|
||||
if = {
|
||||
limit = { has_county_modifier = mpo_siberian_permafrost_modifier }
|
||||
remove_county_modifier = mpo_siberian_permafrost_modifier
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad }
|
||||
remove_county_modifier = mpo_siberian_permafrost_modifier_bad
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
change_to_mandala_government_and_citadel_effect = {
|
||||
|
|
@ -1320,36 +1338,55 @@ change_capital_holding_to_citadel_effect = {
|
|||
change_tribal_holdings_to_citadels_effect = {
|
||||
custom_tooltip = all_tribal_holdings_will_change_to_citadels
|
||||
save_scope_as = current_tribal_holder
|
||||
hidden_effect_new_object = {
|
||||
every_directly_owned_province = {
|
||||
limit = { has_holding_type = tribal_holding }
|
||||
set_variable = {
|
||||
name = tribal_to_mandala_building_level
|
||||
value = combined_building_level
|
||||
days = 1
|
||||
if = {
|
||||
limit = {
|
||||
any_directly_owned_province = {
|
||||
has_holding_type = tribal_holding
|
||||
count >= 1
|
||||
}
|
||||
set_holding_type = temple_citadel_holding
|
||||
#We need to set the holding type BEFORE we can change to the government, lest it invalidates
|
||||
scope:current_tribal_holder = {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
change_to_mandala_government_effect = yes
|
||||
}
|
||||
}
|
||||
#We need to set the government type BEFORE we generate buildings, otherwise basically none are valid
|
||||
while = {
|
||||
limit = { var:tribal_to_mandala_building_level > 0 }
|
||||
generate_building = yes
|
||||
change_variable = {
|
||||
}
|
||||
hidden_effect_new_object = {
|
||||
every_directly_owned_province = {
|
||||
limit = { has_holding_type = tribal_holding }
|
||||
set_variable = {
|
||||
name = tribal_to_mandala_building_level
|
||||
subtract = 1
|
||||
value = combined_building_level
|
||||
days = 1
|
||||
}
|
||||
set_holding_type = temple_citadel_holding
|
||||
#We need to set the holding type BEFORE we can change to the government, lest it invalidates
|
||||
scope:current_tribal_holder = {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
change_to_mandala_government_effect = yes
|
||||
}
|
||||
}
|
||||
#We need to set the government type BEFORE we generate buildings, otherwise basically none are valid
|
||||
while = {
|
||||
limit = { var:tribal_to_mandala_building_level > 0 }
|
||||
generate_building = yes
|
||||
change_variable = {
|
||||
name = tribal_to_mandala_building_level
|
||||
subtract = 1
|
||||
}
|
||||
}
|
||||
remove_variable = tribal_to_mandala_building_level
|
||||
}
|
||||
remove_variable = tribal_to_mandala_building_level
|
||||
}
|
||||
}
|
||||
#You're somehow a tribal with all your holdings being Temple Citadels? Good for you.
|
||||
else = {
|
||||
scope:current_tribal_holder = {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_is_mandala }
|
||||
}
|
||||
change_to_mandala_government_effect = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mandala_nuke_realm_laws_effect = {
|
||||
|
|
@ -1978,7 +2015,7 @@ creator_mandala_built_regular_building_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2000,7 +2037,7 @@ creator_mandala_built_regular_duchy_building_t1_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2022,7 +2059,7 @@ creator_mandala_built_regular_duchy_building_t2_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2044,7 +2081,7 @@ creator_mandala_built_regular_duchy_building_t3_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2066,7 +2103,7 @@ creator_mandala_built_regular_holding_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2088,7 +2125,7 @@ creator_mandala_upgraded_regular_holding_piety_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_creation }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
is_house_head = yes
|
||||
}
|
||||
add_piety = {
|
||||
|
|
@ -2454,7 +2491,7 @@ mandala_trickster_increment_successful_schemes_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_trickery }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_trickery }
|
||||
}
|
||||
increment_variable_effect = {
|
||||
VAR = num_successful_schemes
|
||||
|
|
@ -2467,7 +2504,7 @@ mandala_trickster_increment_gold_ransomed_effect = {
|
|||
if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_mandala
|
||||
house ?= { has_house_power_parameter = aspect_of_trickery }
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_trickery }
|
||||
}
|
||||
increment_variable_effect = {
|
||||
VAR = amount_of_gold_ransomed
|
||||
|
|
@ -2521,7 +2558,7 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 100
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
OR = {
|
||||
is_child_of = scope:court_owner
|
||||
|
|
@ -2533,26 +2570,26 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 10
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
is_close_or_extended_family_of = scope:court_owner
|
||||
}
|
||||
modifier = {
|
||||
add = diplomacy
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_serenity
|
||||
has_house_aspiration_parameter = aspect_of_serenity
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = prowess
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_destruction
|
||||
has_house_aspiration_parameter = aspect_of_destruction
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = intrigue
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_trickery
|
||||
has_house_aspiration_parameter = aspect_of_trickery
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
|
|
@ -2577,7 +2614,7 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 100
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
OR = {
|
||||
is_child_of = scope:court_owner
|
||||
|
|
@ -2589,26 +2626,26 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 10
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
is_close_or_extended_family_of = scope:court_owner
|
||||
}
|
||||
modifier = {
|
||||
add = diplomacy
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_serenity
|
||||
has_house_aspiration_parameter = aspect_of_serenity
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = prowess
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_destruction
|
||||
has_house_aspiration_parameter = aspect_of_destruction
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = intrigue
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_trickery
|
||||
has_house_aspiration_parameter = aspect_of_trickery
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2631,7 +2668,7 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 100
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
OR = {
|
||||
is_child_of = scope:court_owner
|
||||
|
|
@ -2643,26 +2680,26 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 10
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
is_close_or_extended_family_of = scope:court_owner
|
||||
}
|
||||
modifier = {
|
||||
add = diplomacy
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_serenity
|
||||
has_house_aspiration_parameter = aspect_of_serenity
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = prowess
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_destruction
|
||||
has_house_aspiration_parameter = aspect_of_destruction
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = intrigue
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_trickery
|
||||
has_house_aspiration_parameter = aspect_of_trickery
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2686,7 +2723,7 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 100
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
OR = {
|
||||
is_child_of = scope:court_owner
|
||||
|
|
@ -2698,26 +2735,26 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 10
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
is_close_or_extended_family_of = scope:court_owner
|
||||
}
|
||||
modifier = {
|
||||
add = diplomacy
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_serenity
|
||||
has_house_aspiration_parameter = aspect_of_serenity
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = prowess
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_destruction
|
||||
has_house_aspiration_parameter = aspect_of_destruction
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = intrigue
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_trickery
|
||||
has_house_aspiration_parameter = aspect_of_trickery
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2742,7 +2779,7 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 100
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
OR = {
|
||||
is_child_of = scope:court_owner
|
||||
|
|
@ -2754,26 +2791,26 @@ mandala_travel_to_contract_location_effect = {
|
|||
modifier = {
|
||||
add = 10
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_creation
|
||||
has_house_aspiration_parameter = aspect_of_creation
|
||||
}
|
||||
is_close_or_extended_family_of = scope:court_owner
|
||||
}
|
||||
modifier = {
|
||||
add = diplomacy
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_serenity
|
||||
has_house_aspiration_parameter = aspect_of_serenity
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = prowess
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_destruction
|
||||
has_house_aspiration_parameter = aspect_of_destruction
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = intrigue
|
||||
scope:court_owner.house = {
|
||||
has_house_power_parameter = aspect_of_trickery
|
||||
has_house_aspiration_parameter = aspect_of_trickery
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2957,6 +2994,7 @@ mandala_contract_legitimacy_reward_display_effect = {
|
|||
}
|
||||
|
||||
add_all_valid_mandala_contract_provinces_to_list_effect = {
|
||||
save_scope_as = mandala_ruler
|
||||
every_sub_realm_county = {
|
||||
every_county_province = {
|
||||
limit = {
|
||||
|
|
@ -2990,6 +3028,7 @@ add_all_valid_mandala_contract_provinces_to_list_effect = {
|
|||
}
|
||||
|
||||
add_all_valid_mandala_contract_provinces_with_crocodiles_to_list_effect = {
|
||||
save_scope_as = mandala_ruler
|
||||
every_sub_realm_county = {
|
||||
every_county_province = {
|
||||
limit = {
|
||||
|
|
@ -3025,6 +3064,7 @@ add_all_valid_mandala_contract_provinces_with_crocodiles_to_list_effect = {
|
|||
}
|
||||
|
||||
add_all_valid_mandala_contract_provinces_with_neighbor_to_list_effect = {
|
||||
save_scope_as = mandala_ruler
|
||||
every_sub_realm_county = {
|
||||
limit = {
|
||||
any_neighboring_county = {
|
||||
|
|
@ -3078,6 +3118,7 @@ add_all_valid_mandala_contract_provinces_with_neighbor_to_list_effect = {
|
|||
}
|
||||
|
||||
add_all_valid_mandala_contract_provinces_no_holding_to_list_effect = {
|
||||
save_scope_as = mandala_ruler
|
||||
every_sub_realm_county = {
|
||||
every_county_province = {
|
||||
limit = {
|
||||
|
|
|
|||
|
|
@ -234,9 +234,7 @@ tribute_mission_decision_effect = {
|
|||
GIVER = root
|
||||
CHARACTER = scope:tribute_mission_target
|
||||
}
|
||||
has_any_disease_trigger = no
|
||||
has_easily_mocked_physical_attribute_trigger = no
|
||||
NOT = { is_heir_of = root }
|
||||
tribute_mission_is_available_concubine_trigger = yes
|
||||
}
|
||||
add_to_list = potential_concubine_tribute_list
|
||||
random_in_list = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue