parent
15a5108e23
commit
c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions
|
|
@ -916,14 +916,12 @@ 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
|
||||
}
|
||||
|
|
@ -931,6 +929,7 @@ mpo_mongol_recovered_head_content_effect = {
|
|||
random_list = {
|
||||
1 = {
|
||||
trigger = {
|
||||
is_alive = yes
|
||||
is_imprisoned = no
|
||||
}
|
||||
modifier = {
|
||||
|
|
@ -2023,6 +2022,225 @@ 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
|
||||
|
|
@ -3656,218 +3874,6 @@ 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
|
||||
|
|
@ -4890,59 +4896,33 @@ summon_three_fair_courtiers_effect = {
|
|||
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
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
save_scope_as = new_commander
|
||||
}
|
||||
if = { # Error suppression
|
||||
limit = {
|
||||
any_in_list = {
|
||||
list = three_fair_courtiers_list
|
||||
}
|
||||
exists = scope:new_commander
|
||||
}
|
||||
every_in_list = {
|
||||
list = three_fair_courtiers_list
|
||||
scope:new_commander = {
|
||||
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
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:new_commander = {
|
||||
NOT = {
|
||||
is_courtier_of = scope:root_scope
|
||||
}
|
||||
}
|
||||
}
|
||||
add_courtier = scope:new_commander
|
||||
}
|
||||
send_interface_message = {
|
||||
title = nomad_character_recruited.t
|
||||
left_icon = scope:new_commander
|
||||
custom_tooltip = commander_recruited.desc
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4973,7 +4953,7 @@ mpo_war_vassal_tributary_effect = {
|
|||
holder ?= {
|
||||
add_to_list = target_holder
|
||||
}
|
||||
add_to_list = titles_taken
|
||||
add_to_list = target_titles
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4985,12 +4965,12 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
|
||||
every_in_list = {
|
||||
list = titles_taken
|
||||
list = target_titles
|
||||
add_to_list = prestige_gain_list
|
||||
}
|
||||
|
||||
ordered_in_list = {
|
||||
list = titles_taken
|
||||
list = target_titles
|
||||
order_by = tier
|
||||
max = 1
|
||||
save_scope_as = war_goal_title
|
||||
|
|
@ -5003,8 +4983,8 @@ mpo_war_vassal_tributary_effect = {
|
|||
limit = {
|
||||
NOT = {
|
||||
any_held_county = {
|
||||
is_landless_type_title = no
|
||||
NOT = { is_in_list = titles_taken }
|
||||
exists = duchy
|
||||
NOT = { is_in_list = target_titles }
|
||||
}
|
||||
}
|
||||
NOR = {
|
||||
|
|
@ -5016,7 +4996,14 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:attacker.vassal_count >= vassal_limit
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
top_liege = scope:attacker
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
scope:attacker = {
|
||||
vassal_count >= vassal_limit
|
||||
}
|
||||
}
|
||||
start_tributary_from_war_effect = {
|
||||
TRIBUTARY = scope:defender
|
||||
|
|
@ -5035,30 +5022,40 @@ mpo_war_vassal_tributary_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
else_if = {
|
||||
limit = {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
top_liege = scope:attacker
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
}
|
||||
change_liege = {
|
||||
liege = scope:attacker
|
||||
change = scope:change
|
||||
}
|
||||
}
|
||||
every_in_list = {
|
||||
list = titles_taken
|
||||
list = target_titles
|
||||
limit = {
|
||||
holder ?= scope:current_target_holder
|
||||
holder ?= { this = scope:current_target_holder }
|
||||
}
|
||||
remove_from_list = titles_taken
|
||||
remove_from_list = target_titles
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
every_in_list = {
|
||||
list = titles_taken
|
||||
list = target_titles
|
||||
limit = {
|
||||
holder ?= {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
any_liege_or_above = { this = scope:attacker }
|
||||
top_suzerain ?= scope:attacker
|
||||
OR = {
|
||||
NOT = { exists = holder }
|
||||
holder ?= {
|
||||
NOR = {
|
||||
this = scope:attacker
|
||||
any_liege_or_above = { this = scope:attacker }
|
||||
top_suzerain ?= scope:attacker
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5145,44 +5142,47 @@ mpo_war_vassal_tributary_effect = {
|
|||
#Called from game start on action
|
||||
#inside domicile scope
|
||||
add_random_yurt_external_building_effect = {
|
||||
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
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Called from game start on action
|
||||
|
|
@ -5669,7 +5669,6 @@ 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
|
||||
|
|
@ -6128,39 +6127,15 @@ expanding_steppe_effect = {
|
|||
}
|
||||
}
|
||||
# East
|
||||
scope:dlc_mpo_steppe_hexi_tarim_expansion = {
|
||||
scope:world_steppe_tarim = {
|
||||
expanding_steppe_add_region_effect = {
|
||||
SUB_REGION = east
|
||||
REGION = dlc_mpo_steppe_hexi_tarim_expansion
|
||||
REGION = world_steppe_tarim
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6598,83 +6573,3 @@ 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue