more file updating

This commit is contained in:
Thakia 2026-10-09 20:41:46 -03:00
parent 4afc9466f5
commit fde59745b8
99 changed files with 5706 additions and 2115 deletions

File diff suppressed because it is too large Load diff

View file

@ -225,6 +225,7 @@ create_artifact_tapestry_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$WEAVER$ = { save_scope_as = weaver }
save_adventurer_location_effect = yes
hidden_effect_new_object = {
# Get artifact quality, wealth, and materials
@ -369,6 +370,27 @@ get_animal_hunt_location_effect = {
NOT = { exists = scope:location }
}
if = {
limit = {
scope:owner = {
has_variable = animal_type
OR = {
var:animal_type = flag:cat
var:animal_type = flag:dog
}
}
}
scope:owner = {
if = {
limit = { exists = capital_province }
capital_province = { save_scope_as = location }
}
else_if = {
limit = { exists = location }
location = { save_scope_as = location }
}
}
}
else_if = {
limit = {
exists = scope:owner.involved_activity
scope:owner.involved_activity = { has_activity_type = activity_hunt }
@ -746,6 +768,7 @@ create_artifact_wall_skull_effect = {
create_artifact_wall_narwhal_horn_effect = {
$OWNER$ = { save_scope_as = owner }
$HUNTER$ = { save_scope_as = hunter }
save_adventurer_location_effect = yes
hidden_effect_new_object = {
# Get artifact quality and wealth
@ -1261,6 +1284,67 @@ create_artifact_box_medium_effect = {
}
}
# Wooden phallus - commissioned by characters with Carnal Exaltation as a personal tenet
create_artifact_phallus_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$CARPENTER$ = { save_scope_as = carpenter }
hidden_effect_new_object = {
# Get artifact quality and wealth
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
# Create the artifact
scope:owner = {
create_artifact = {
name = artifact_wooden_phallus_name
creator = scope:carpenter
description = placeholder
visuals = small_box
type = miscellaneous
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
scope:newly_created_artifact = {
set_artifact_description = artifact_wooden_phallus_description
# Add artifact modifiers
if = {
limit = { rarity = common }
add_artifact_modifier = artifact_fertility_gain_1_modifier
add_artifact_modifier = artifact_spouse_opinion_add_1_modifier
}
else_if = {
limit = { rarity = masterwork }
add_artifact_modifier = artifact_fertility_gain_2_modifier
add_artifact_modifier = artifact_spouse_opinion_add_2_modifier
}
else_if = {
limit = { rarity = famed }
add_artifact_modifier = artifact_fertility_gain_3_modifier
add_artifact_modifier = artifact_spouse_opinion_add_3_modifier
add_artifact_modifier = artifact_seduce_scheme_phase_duration_add_1_modifier
}
else_if = {
limit = { rarity = illustrious }
add_artifact_modifier = artifact_fertility_gain_4_modifier
add_artifact_modifier = artifact_spouse_opinion_add_4_modifier
add_artifact_modifier = artifact_seduce_scheme_phase_duration_add_2_modifier
}
remove_artifact_modifier = artifact_placeholder_modifier
set_variable = commissioned_wooden_phallus
set_variable = {
name = quality
value = scope:quality
}
}
}
}
###############
@ -1270,6 +1354,7 @@ create_artifact_goblet_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$SMITH$ = { save_scope_as = goldsmith }
save_adventurer_location_effect = yes
hidden_effect_new_object = {
# Get artifact quality, wealth, and materials
@ -1478,7 +1563,6 @@ create_artifact_wall_banner_effect = {
grant_banner_house_claim_effect = yes
set_artifact_description = artifact_wall_banner_dynasty_description # For commissioner flavor
}
remove_variable = banner_from_dynasty
}
else_if = { #House Banner
limit = { has_variable = banner_from_house }
@ -1501,7 +1585,6 @@ create_artifact_wall_banner_effect = {
location = scope:owner.capital_province
}
}
remove_variable = startup_banner
}
else = { #Created Banner
create_artifact = {
@ -1571,6 +1654,19 @@ create_artifact_wall_banner_effect = {
scope:newly_created_artifact = {
add_scaled_artifact_modifier_grandeur_small_effect = yes
if = {
limit = {
scope:owner = {
has_variable = {
name = banner_from_dynasty #Dynasty Banner
name = banner_from_house #House Banner
}
}
}
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_rulership_effect = yes
}
else_if = {
limit = {
exists = scope:epic_loser
}
@ -2063,6 +2159,16 @@ create_artifact_wall_banner_effect = {
}
remove_artifact_modifier = artifact_placeholder_modifier
}
scope:owner = {
if = {
limit = { has_variable = banner_from_dynasty }
remove_variable = banner_from_dynasty
}
else_if = {
limit = { has_variable = banner_from_house }
remove_variable = banner_from_house
}
}
}
}
@ -2163,11 +2269,9 @@ create_artifact_sculpture_effect = {
}
}
scope:owner = {
faith = {
OR = {
has_doctrine = tenet_aniconism
religion = religion:islam_religion
}
OR = {
rite = { rite_has_tenet = tenet_aniconism }
faith.religion = religion:islam_religion
}
}
}
@ -2221,12 +2325,10 @@ create_artifact_sculpture_effect = {
artifact_use_steppe_building_visuals_trigger = yes
}
}
scope:owner = { #An owner who follows an aniconic faith will never want a statue that portrays a human
faith = {
OR = {
has_doctrine = tenet_aniconism
religion = religion:islam_religion
}
scope:owner = { #An owner who follows an aniconic rite will never want a statue that portrays a human
OR = {
rite = { rite_has_tenet = tenet_aniconism }
faith.religion = religion:islam_religion
}
}
}
@ -2349,6 +2451,7 @@ create_artifact_pedestal_religious_head_letter_effect = {
#The crucifix should be preferred by non-aniconic Christian faiths
create_artifact_pedestal_crucifix_effect = {
$OWNER$ = { save_scope_as = owner }
$CREATOR$ = { save_scope_as = creator }
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
@ -2356,10 +2459,10 @@ create_artifact_pedestal_crucifix_effect = {
scope:owner = {
create_artifact = {
name = artifact_pedestal_crucifix_name
creator = scope:owner
creator = scope:creator
description = artifact_pedestal_crucifix_description
visuals = cross
type = pedestal
visuals = crucifix
type = wall_big
template = cross_template
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
@ -2388,6 +2491,7 @@ create_artifact_pedestal_crucifix_effect = {
#The cross is for aniconic Christian faiths
create_artifact_pedestal_cross_effect = {
$OWNER$ = { save_scope_as = owner }
$CREATOR$ = { save_scope_as = creator }
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
@ -2396,6 +2500,7 @@ create_artifact_pedestal_cross_effect = {
create_artifact = {
name = artifact_pedestal_cross_name
description = artifact_pedestal_cross_description
creator = scope:creator
visuals = cross
type = pedestal
template = cross_template
@ -3697,6 +3802,67 @@ get_book_content_quality_effect = {
#}
# This will give you a book with no known author about intrigue with a random topic.
# Base effect handles selecting visuals depending on if there is a defined author, and whether they or the owner makes indian books or not
create_artifact_book_base_effect = {
if = {
limit = { exists = scope:author }
if = {
limit = { scope:author = { artifacts_use_indian_books_trigger = yes } }
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = $TYPE$
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
else = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = $TYPE$
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
}
else = {
if = {
limit = { artifacts_use_indian_books_trigger = yes }
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = $TYPE$
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
else = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = $TYPE$
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
}
}
create_artifact_book_effect = {
$OWNER$ = { save_scope_as = owner } #Will always exist!
$CREATOR$ = { #Doesn't always exist
@ -3731,186 +3897,24 @@ create_artifact_book_effect = {
# Get artifact quality and wealth
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
# To save the subject, topic, and other variables we'll need if it has been set in events or in the effect
get_book_variables_effect = yes
if = { #Should this be a court artifact?
limit = {
has_royal_court = yes
has_dlc_feature = court_artifacts
NOT = { exists = scope:should_be_trinket }
}
if = { #Do we have an author?
scope:owner = {
if = { #Should this be a court artifact?
limit = {
exists = scope:author
}
if = { #Is this author using Palm Leaf (indian) books?
limit = {
scope:author = { artifacts_use_indian_books_trigger = yes }
}
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = book
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
}
else = { #Codices/Non-Indian books
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = book
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
has_royal_court = yes
has_dlc_feature = court_artifacts
NOT = { exists = scope:should_be_trinket }
}
create_artifact_book_base_effect = { TYPE = book }
}
else = { #We don't have an author
if = {
limit = { #Is this a palm leaf/indian book?
scope:owner = { artifacts_use_indian_books_trigger = yes }
}
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = book
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
}
else = { #This is a codex/non-indian book:
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = book
history = { type = created_before_history } # We don't know who wrote it
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
}
}
}
else = { #This is a court artifact
if = {
limit = {
exists = scope:author #We have an author
}
if = {
limit = {
scope:author = { artifacts_use_indian_books_trigger = yes }
}
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = journal
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
# Subject and cover material is set as a required feature for a book-type artifact, but for a miscellaneous-type it's an optional feature, so we need to set it here
scope:newly_created_artifact = {
set_artifact_feature_group = book_subject
set_artifact_feature_group = book_cover_material
}
}
else = { #This is a codex/non-indian book
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
creator = scope:author
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = journal
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
# Subject and cover material is set as a required feature for a book-type artifact, but for a miscellaneous-type it's an optional feature, so we need to set it here
scope:newly_created_artifact = {
set_artifact_feature_group = book_subject
set_artifact_feature_group = book_cover_material
}
}
}
else = { #We don't have an author
if = {
limit = { #Is this a palm-leaf/indian book?
scope:owner = { artifacts_use_indian_books_trigger = yes }
}
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = indian_book
type = journal
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
# Subject and cover material is set as a required feature for a book-type artifact, but for a miscellaneous-type it's an optional feature, so we need to set it here
scope:newly_created_artifact = {
set_artifact_feature_group = book_subject
set_artifact_feature_group = book_cover_material
}
}
else = { #This isn't a palm leaf/indian book
scope:owner = {
create_artifact = {
name = placeholder # Will be regenerated in the post-creation effects
description = placeholder # Will be regenerated in the post-creation effects
visuals = book
type = journal
history = { type = created_before_history } # We don't know who wrote it
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
# Subject and cover material is set as a required feature for a book-type artifact, but for a miscellaneous-type it's an optional feature, so we need to set it here
scope:newly_created_artifact = {
set_artifact_feature_group = book_subject
set_artifact_feature_group = book_cover_material
}
else = { #This is a personal artifact
create_artifact_book_base_effect = { TYPE = journal }
scope:newly_created_artifact = {
set_artifact_feature_group = book_subject
set_artifact_feature_group = book_cover_material
}
}
}
@ -4301,7 +4305,7 @@ create_artifact_book_effect = {
}
if = {
limit = {
NOT = { scope:owner.faith = { has_doctrine_parameter = witchcraft_accepted } }
NOT = { scope:owner.rite = { rite_has_parameter = witchcraft_accepted } }
}
add_artifact_modifier = artifact_clergy_opinion_penalty_2_modifier
}
@ -4366,19 +4370,19 @@ create_artifact_book_effect = {
AND = {
has_artifact_feature = book_subject_cannibal
NOT = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:owner.faith GENDER_CHARACTER = scope:owner }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:cannibal RITE = scope:owner.rite GENDER_CHARACTER = scope:owner }
}
}
AND = {
has_artifact_feature = book_subject_witch
NOT = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:owner.faith GENDER_CHARACTER = scope:owner }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:witch RITE = scope:owner.rite GENDER_CHARACTER = scope:owner }
}
}
AND = {
has_artifact_feature = book_subject_deviant
NOT = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:owner.faith GENDER_CHARACTER = scope:owner }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:deviant RITE = scope:owner.rite GENDER_CHARACTER = scope:owner }
}
}
@ -4406,7 +4410,7 @@ create_artifact_book_effect = {
}
if = { # Vassal Opinion
limit = {
scope:story = { has_variable = opinion_artifact }
scope:story ?= { has_variable = opinion_artifact }
}
if = {
limit = { rarity = illustrious }
@ -4434,7 +4438,7 @@ create_artifact_book_effect = {
}
if = { # Scheme Resistance
limit = {
scope:story = { has_variable = scheme_artifact }
scope:story ?= { has_variable = scheme_artifact }
}
if = { # 8
limit = { rarity = illustrious }
@ -4461,7 +4465,7 @@ create_artifact_book_effect = {
}
if = { # Controlled Province Advantage
limit = {
scope:story = { has_variable = advantage_artifact }
scope:story ?= { has_variable = advantage_artifact }
}
if = { # 10
limit = { rarity = illustrious }
@ -4483,7 +4487,7 @@ create_artifact_book_effect = {
}
if = { # Personal Scheme Success Chance
limit = {
scope:story = { has_variable = sway_artifact }
scope:story ?= { has_variable = sway_artifact }
}
if = { # 10
limit = { rarity = illustrious }
@ -4506,7 +4510,7 @@ create_artifact_book_effect = {
}
if = { # Monthly Piety + Same Faith Domain Tax
limit = {
scope:story = { has_variable = piety_artifact }
scope:story ?= { has_variable = piety_artifact }
}
if = { # 0.4 + 1
limit = { rarity = illustrious }
@ -5880,6 +5884,15 @@ create_artifact_book_effect = {
add_artifact_modifier = artifact_learn_language_scheme_phase_duration_add_1_modifier
remove_artifact_modifier = artifact_placeholder_modifier
}
else_if = {
limit = {
has_artifact_feature = book_subject_religious_text
}
add_artifact_modifier = artifact_study_faith_scheme_phase_duration_add_1_modifier
add_scaled_artifact_modifier_piety_effect = yes
add_artifact_modifier = artifact_monthly_learning_lifestyle_xp_1_modifier
remove_artifact_modifier = artifact_placeholder_modifier
}
else_if = {
limit = {
trigger_if = {
@ -6276,7 +6289,7 @@ create_artifact_book_effect = {
}
if = { #We give a bigger boost here if it's illegal since they get nothing else
limit = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = root.faith GENDER_CHARACTER = root }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:cannibal RITE = root.rite GENDER_CHARACTER = root }
}
add_artifact_modifier = artifact_dread_baseline_add_2_modifier
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
@ -6308,7 +6321,7 @@ create_artifact_book_effect = {
}
if = { #We give a bigger boost here if it's illegal since they get nothing else
limit = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = root.faith GENDER_CHARACTER = root }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:witch RITE = root.rite GENDER_CHARACTER = root }
}
add_artifact_modifier = artifact_dread_gain_mult_2_modifier
add_artifact_modifier = artifact_monthly_learning_lifestyle_xp_2_modifier
@ -6324,7 +6337,7 @@ create_artifact_book_effect = {
}
if = { #We give a bigger boost here if it's illegal since they get nothing else
limit = {
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = root.faith GENDER_CHARACTER = root }
trait_is_criminal_in_rite_trigger = { TRAIT = trait:deviant RITE = root.rite GENDER_CHARACTER = root }
}
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
add_artifact_modifier = artifact_stress_gain_2_modifier
@ -6507,8 +6520,8 @@ create_artifact_pedestal_reliquary_christian_effect = {
add_scaled_artifact_modifier_devotion_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
set_variable = {
name = relic
value = flag:christian
name = relic_religion
value = religion:christianity_religion
}
}
}
@ -6585,8 +6598,8 @@ create_artifact_pedestal_reliquary_islam_effect = {
add_scaled_artifact_modifier_devotion_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
set_variable = {
name = relic
value = flag:islamic
name = relic_religion
value = religion:islam_religion
}
}
}
@ -6669,8 +6682,8 @@ create_artifact_pedestal_reliquary_buddhism_effect = {
add_scaled_artifact_modifier_devotion_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
set_variable = {
name = relic
value = flag:buddhism
name = relic_religion
value = religion:buddhism_religion
}
}
}
@ -6712,8 +6725,8 @@ create_artifact_pedestal_reliquary_judaism_effect = {
add_scaled_artifact_modifier_grandeur_small_effect = yes
save_scope_as = epic
set_variable = {
name = relic
value = flag:judaism
name = relic_religion
value = religion:judaism_religion
}
}
}
@ -6763,22 +6776,119 @@ create_artifact_pedestal_reliquary_fracture_effect = {
create_artifact_sculpture_religious_effect = {
$OWNER$ = { save_scope_as = owner }
$CREATOR$ = { save_scope_as = creator }
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
scope:owner = {
create_artifact = {
name = artifact_sculpture_religious_name
description = artifact_sculpture_religious_description
creator = scope:owner
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
random_list = { # To have different statue names
1 = {
trigger = { religion != religion:christianity_religion }
create_artifact = {
name = artifact_sculpture_religious_highgod_name
description = artifact_sculpture_religious_highgod_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
trigger = { religion = religion:christianity_religion }
create_artifact = {
name = artifact_sculpture_religious_mary_name
description = artifact_sculpture_religious_mary_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
scope:newly_created_artifact = {
set_variable = statue_artifact_female_gender
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_health_name
description = artifact_sculpture_religious_health_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_fertility_name
description = artifact_sculpture_religious_fertility_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
scope:newly_created_artifact = {
set_variable = religious_fertility_statue
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_wealth_name
description = artifact_sculpture_religious_wealth_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_war_name
description = artifact_sculpture_religious_war_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_knowledge_name
description = artifact_sculpture_religious_knowledge_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
}
}

View file

@ -29,7 +29,7 @@ creating_kingdom_empire_title_effect = {
save_scope_as = change
add_claim_on_loss = no
}
scope:new_title = {
add_to_list = creating_new_titles
}
@ -41,7 +41,7 @@ creating_kingdom_empire_title_effect = {
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
scope:new_title = {
@ -227,8 +227,8 @@ migration_settle_down_obedient_vassal_effect = {
scope:actor = {
ordered_in_list = {
variable = obedient_vassals
order_by = {
value = 1
order_by = {
value = 1
domicile ?= {
add = herd
}
@ -408,8 +408,8 @@ migration_message_effect = {
limit = { is_vassal_of = scope:old_holder }
send_interface_message = {
type = msg_migration_into_realm
title = msg_migration_into_realm_tributary_title
desc = msg_migration_into_realm_tributary_desc
title = msg_migration_into_liege_title
desc = msg_migration_into_liege_desc
left_icon = scope:actor
right_icon = scope:old_holder
}
@ -530,19 +530,24 @@ migration_title_and_vassal_change_effect = {
scope:target_title.tier >= tier_kingdom
}
scope:target_title ?= {
every_de_jure_county_holder = {
every_in_de_jure_hierarchy = {
continue = {
tier >= tier_duchy
}
limit = {
OR = {
any_in_list = {
list = old_holder
this = prev
}
this = scope:recipient
AND = {
scope:recipient = this.liege
any_held_county = {
exists = duchy
NOT = { target_is_de_jure_liege_or_above = scope:target_title }
holder ?= {
OR = {
any_in_list = {
list = old_holder
this = prev
}
this = scope:recipient
AND = {
scope:recipient = this.liege
any_held_county = {
is_landless_type_title = no
NOT = { target_is_de_jure_liege_or_above = scope:target_title }
}
}
}
}
@ -559,15 +564,15 @@ migration_title_and_vassal_change_effect = {
OR = {
any_in_list = {
list = old_holder
NOT = { this = prev }
this != prev
this = prev.liege
}
AND = {
NOT = { this = scope:recipient }
this != scope:recipient
scope:recipient = this.liege
}
}
NOT = { this = scope:actor }
this != scope:actor
}
add_to_list = new_vassals
}
@ -675,7 +680,7 @@ migration_title_and_vassal_change_effect = {
save_scope_as = change4
}
ordered_held_county = {
limit = {
limit = {
exists = duchy
NOT = { this = scope:actor.capital_province.county }
}
@ -755,7 +760,7 @@ migration_title_and_vassal_change_effect = {
# Change 8: If for some reason you have any vassals who are still your subjects, but don't hold land, they will become independent
scope:actor = {
every_vassal = {
limit = {
limit = {
NOT = {
any_held_county = {
exists = duchy
@ -793,6 +798,44 @@ migration_title_and_vassal_change_effect = {
debug_log = "Migration completed"
debug_log_scopes = yes
}
# Safeguard: Make sure everyone follow you instead of staying at the previous location
hidden_effect = {
scope:actor = {
update_domicile_and_courtier_location_effect = yes
}
scope:recipient ?= {
update_domicile_and_courtier_location_effect = yes
}
every_in_list = {
list = settled_vassal
update_domicile_and_courtier_location_effect = yes
}
}
}
update_domicile_and_courtier_location_effect = {
if = {
limit = {
exists = capital_province
is_ruler = yes
}
every_courtier_or_guest = {
limit = {
location != prev.capital_province
should_in_default_location_trigger = yes
}
debug_log = "Courtier not updated in migration"
debug_log_scopes = no
set_location_to_default = yes
}
every_prisoner = {
limit = { location != prev.capital_province }
debug_log = "Prisoner not updated in migration"
debug_log_scopes = no
set_location_to_default = yes
}
}
}
migration_set_obedient_vassal_effect = {
@ -896,7 +939,7 @@ confederation_realm_transfer_effect = {
}
}
resolve_title_and_vassal_change = scope:change_3
every_in_list = {
custom = custom.every_non_de_jure_vassal
list = vassals_to_transfer
@ -1344,7 +1387,7 @@ mpo_execution_head_artifact_creation_effect = {
set_owner = root
}
}
random_list = {
4 = {
trigger = {
@ -1473,7 +1516,7 @@ ai_paiza_giveaway_effect = {
limit = {
NOT = {
any_character_artifact = {
scope:artifact.var:paiza_patron ?= root
var:paiza_patron ?= root
}
}
}
@ -1486,7 +1529,7 @@ ai_paiza_giveaway_effect = {
limit = {
NOT = {
any_character_artifact = {
scope:artifact.var:paiza_patron ?= root
var:paiza_patron ?= root
}
}
}
@ -1502,7 +1545,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Merv
trigger = {
title:c_bukhara = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1520,7 +1563,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Nishapur
trigger = {
title:c_nishapur = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1538,7 +1581,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Khotan
trigger = {
title:c_khotan = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1556,7 +1599,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Wroclaw
trigger = {
title:c_breslau = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1574,7 +1617,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Krakow
trigger = {
title:c_krakowska = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1592,7 +1635,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Novgorod
trigger = {
title:c_novgorod = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1610,7 +1653,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Kyiv
trigger = {
title:c_kiev = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1628,7 +1671,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Baghdad
trigger = {
title:c_baghdad = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1646,7 +1689,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Pisa
trigger = {
title:c_pisa = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1663,8 +1706,8 @@ mpo_find_suitable_merchant_effect = {
}
1 = { #Venice
trigger = {
title:c_baghdad = {
development_level >= 30
title:c_venezia = {
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1673,16 +1716,16 @@ mpo_find_suitable_merchant_effect = {
}
}
modifier = {
add = title:c_baghdad.development_level
add = title:c_venezia.development_level
}
title:b_baghdad = {
title:c_venezia = {
save_scope_as = merchant_origin
}
}
1 = { #Cairo
trigger = {
title:c_cairo = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1700,7 +1743,7 @@ mpo_find_suitable_merchant_effect = {
1 = { #Genua
trigger = {
title:c_genoa = {
development_level >= 30
development_level >= 10
NOT = {
holder.top_liege = {
government_has_flag = government_is_nomadic
@ -1740,7 +1783,7 @@ mpo_find_suitable_merchant_effect = {
multiply = 21.37
}
}
}
}
}
#scope:patron is the creator
@ -1757,7 +1800,7 @@ mpo_create_paiza_artifact_effect = {
value = {
value = 20
multiply = {
value = scope:patron.primary_title.tier
value = scope:patron.primary_title.tier
add = scope:patron.dominance_value
}
}
@ -1767,7 +1810,7 @@ mpo_create_paiza_artifact_effect = {
value = {
value = 20
multiply = {
value = scope:patron.primary_title.tier
value = scope:patron.primary_title.tier
add = scope:patron.dominance_value
}
}
@ -1778,7 +1821,7 @@ mpo_create_paiza_artifact_effect = {
type = miscellaneous
template = paiza_artifact_template
creator = scope:patron
description = paiza_artifact_desc
description = paiza_artifact_desc
visuals = paiza
wealth = scope:wealth
quality = scope:quality
@ -1805,7 +1848,7 @@ mpo_paiza_innovation_reward_effect = {
modifier = mpo_fascination_leap_modifier
years = 4
}
}
}
}
nomad_yurt_increased_innovation_paiza_lvl_2 = {
root = {
@ -1868,7 +1911,7 @@ mpo_paiza_innovation_reward_effect = {
}
}
}
}
@ -1894,10 +1937,10 @@ mpo_paiza_deal_grade_effect = {
}
}
}
set_variable = {
name = trade_gold_percent
value = 1
value = 1
}
change_variable = {
name = trade_gold_percent
@ -1929,7 +1972,7 @@ mpo_paiza_deal_grade_effect = {
add = 0.1
}
}
}
}
nomad_yurt_paiza_more_gold_lvl_3 = {
custom_tooltip = paiza_yurt_gold_percent_3
root = {
@ -1963,7 +2006,7 @@ mpo_yurts_paiza_bonuses_tooltip_effect = {
}
custom_tooltip = yurt_paiza_bonuses_generic
}
domicile ?= {
if = {
limit = {
@ -2048,7 +2091,7 @@ mpo_paiza_improve_maa_smol_effect = {
add_domicile_building = paiza_metal_trade_yurt_01
}
}
remove_character_flag = paiza_metal_trade_yurt_flag
remove_character_flag = paiza_metal_trade_yurt_flag
}
mpo_paiza_improve_maa_effect = {
@ -2092,7 +2135,7 @@ mpo_paiza_abuse_counter_effect = {
limit = {
scope:paiza_patron = {
is_ai = no
}
}
}
custom_tooltip = mpo_paiza_abuse_counter_effect.random
scope:paiza_patron = {
@ -2140,7 +2183,7 @@ mpo_paiza_abuse_counter_effect = {
}
}
flag:annoyed = {
custom_tooltip = mpo_paiza_abuse_counter_effect.annoyed
custom_tooltip = mpo_paiza_abuse_counter_effect.annoyed
random_list = {
40 = {
modifier = {
@ -2363,7 +2406,7 @@ mpo_decisions_events_friend_fail_effect = {
}
scope:friendship_target = {
short_term_gold >= minor_gold_value
}
}
scope:friendship_target = {
@ -3057,7 +3100,7 @@ nomad_domicile_refund_effect = {
nomad_convert_people_to_tribe_effect = {
change_government = tribal_government
#Winning a cool war to get this government should mean high authority
if = {
limit = {
@ -3367,7 +3410,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
mpo_overrunning_willing_vassal_trigger = yes
}
save_scope_as = undervassal
#Give up nomadic titles
if = {
limit = {
@ -3420,25 +3463,11 @@ mpo_overrunning_vassal_title_distribution_effect = {
scope:undervassal = {
OR = {
#Personal reasons to go clan
faith.religion = religion:islam_religion
culture ?= {
OR = {
has_cultural_pillar = heritage_arabic
has_cultural_pillar = heritage_iranian
}
}
ep3_is_clan_inclined_trigger = yes
#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
}
}
}
ep3_is_clan_inclined_trigger = yes
}
scope:attacker = {
government_has_flag = government_is_clan
@ -3512,25 +3541,11 @@ mpo_overrunning_vassal_title_distribution_effect = {
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
}
}
ep3_is_clan_inclined_trigger = yes
#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
}
}
}
ep3_is_clan_inclined_trigger = yes
}
scope:attacker = {
government_has_flag = government_is_clan
@ -3549,7 +3564,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
}
}
}
#Have to re-add them as a vassal probably
scope:title_gainer = {
if = {
@ -3570,7 +3585,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
resolve_title_and_vassal_change = scope:change
}
}
#Remove chosen titles from list
scope:duchy_to_grant ?= {
remove_from_list = overrun_duchies
@ -3616,7 +3631,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
}
resolve_title_and_vassal_change = scope:change
}
#GIVE DUKES THE REST OF THEIR COUNTIES FROM ATTACKER
every_held_title = {
limit = {
@ -3792,25 +3807,11 @@ mpo_duchy_overrunning_vassal_title_distribution_effect = {
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
}
}
ep3_is_clan_inclined_trigger = yes
#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
}
}
}
ep3_is_clan_inclined_trigger = yes
}
scope:attacker = {
government_has_flag = government_is_clan
@ -3829,7 +3830,7 @@ mpo_duchy_overrunning_vassal_title_distribution_effect = {
}
}
}
#Have to re-add them as a vassal probably
scope:title_gainer = {
if = {
@ -3850,7 +3851,7 @@ mpo_duchy_overrunning_vassal_title_distribution_effect = {
resolve_title_and_vassal_change = scope:change
}
}
#Remove chosen titles from list
scope:title_to_grant = {
remove_from_list = overrun_counties
@ -3919,6 +3920,39 @@ nomad_convert_herds_to_gold_special_troops_effect = {
}
}
settle_the_people_vassal_effect = {
nomad_domicile_refund_effect = yes
nomad_convert_herds_to_gold_special_troops_effect = yes
if = {
limit = {
any_held_title = {
is_nomad_title = yes
}
}
every_held_title = {
limit = {
is_nomad_title = yes
}
root = {
destroy_title = prev
}
}
}
if = {
limit = {
scope:new_capital.title_province = {
has_holding_type = tribal_holding
}
}
assign_tribal_governments_effect = yes
}
else = {
assign_feudal_governments_effect = yes
}
change_authority_effect = { CHANGE = 1 }
}
set_throatsinging_style_effect = {
random_list = {
10 = {
@ -4061,7 +4095,7 @@ mpo_save_potential_blood_brother_war_allies_effect = {
mpo_valid_for_blood_brotherhood_trigger = yes
}
add_to_list = attacker_war_allies_list
}
while = {
limit = {
@ -4503,7 +4537,7 @@ make_blood_brother_save_common_enemy_effect = {
#You have a house feud against someone recipient is also opposed to
else_if = {
limit = {
exists = house.house_head
exists = scope:recipient.house
NOT = {
@ -4875,7 +4909,6 @@ confederation_migration_notification_effect = {
type = msg_broken_confederation
title = msg_broken_confederation_migration_root
desc = msg_broken_confederation_migration_root_desc
left_icon = confederation
}
add_character_flag = {
flag = migrating_from_confederation
@ -4889,6 +4922,7 @@ summon_three_fair_courtiers_effect = {
employer = scope:root_scope
template = $NOMAD_TEMPLATE_CHARACTER$
faith = root.location.faith
rite = root.location.rite
culture = root.location.culture
after_creation = {
add_to_list = three_fair_courtiers_list
@ -4898,6 +4932,7 @@ summon_three_fair_courtiers_effect = {
employer = scope:root_scope
template = $NOMAD_TEMPLATE_CHARACTER$
faith = root.location.faith
rite = root.location.rite
culture = root.location.culture
after_creation = {
add_to_list = three_fair_courtiers_list
@ -4907,6 +4942,7 @@ summon_three_fair_courtiers_effect = {
employer = scope:root_scope
template = $NOMAD_TEMPLATE_CHARACTER$
faith = root.location.faith
rite = root.location.rite
culture = root.location.culture
after_creation = {
add_to_list = three_fair_courtiers_list
@ -4920,6 +4956,7 @@ summon_three_fair_courtiers_effect = {
}
every_in_list = {
list = three_fair_courtiers_list
save_scope_as = new_commander
assign_random_nickname_effect = yes
if = {
limit = {
@ -4935,7 +4972,6 @@ summon_three_fair_courtiers_effect = {
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
@ -4977,9 +5013,9 @@ mpo_war_vassal_tributary_effect = {
}
}
holder ?= {
holder ?= {
add_to_list = target_holder
save_scope_as = temp_de_jure_liege
save_scope_as = temp_de_jure_liege
}
add_hook_from_temp_de_jure_liege_to_attacker = yes
}
@ -5068,7 +5104,7 @@ mpo_war_vassal_tributary_effect = {
}
remove_from_list = target_titles
}
save_scope_value_as = {
name = cb_prestige_factor
value = {
@ -5306,8 +5342,8 @@ mpo_yearly_dynasty_of_many_khans_effect = {
}
add_dynasty_prestige = root.var:temp_dynn_prestige
}
remove_variable = temp_dynn_prestige
}
remove_variable = temp_dynn_prestige
}
}
}
@ -5596,7 +5632,7 @@ language_yurt_effect = {
multiply = $CHANCE$
min = 0
}
root = {
root = {
send_interface_message = {
title = language_yurt_effect_tt
desc = language_yurt_effect_desc
@ -5664,7 +5700,7 @@ de_jure_shifting_effect = {
type = msg_mpo_de_jure_shifting
title = msg_mpo_de_jure_shifting
left_icon = root
ordered_in_list = {
ordered_in_list = {
order_by = {
value = 1
}
@ -5672,7 +5708,7 @@ de_jure_shifting_effect = {
check_range_bounds = no
list = de_jure_shifted_title
show_as_tooltip = {
set_de_jure_liege_title = root.primary_title
set_de_jure_liege_title = root.primary_title
}
remove_from_list = de_jure_shifted_title
}
@ -5695,12 +5731,12 @@ omen_yurt_effect = {
if = {
limit = {
exists = scope:improved_child
}
}
send_interface_message = {
title = omen_yurt_effect_tt
desc = omen_yurt_effect_desc
left_icon = scope:improved_child
scope:improved_knight = {
scope:improved_child = {
random_list = {
1 = { add_diplomacy_skill = 1 }
1 = { add_stewardship_skill = 1 }
@ -5710,7 +5746,7 @@ omen_yurt_effect = {
}
}
}
}
}
}
}
}
@ -5774,18 +5810,18 @@ better_children_yurt_effect = {
limit = {
exists = scope:yurt_heir
}
}
send_interface_message = {
title = better_children_yurt_effect_tt
desc = better_children_yurt_effect_desc
left_icon = scope:yurt_heir
scope:yurt_heir = {
random_list = {
1 = { add_diplomacy_skill = 1 }
1 = { add_stewardship_skill = 1 }
1 = { add_intrigue_skill = 1 }
1 = { add_learning_skill = 1 }
1 = { add_martial_skill = 1 }
send_interface_message = {
title = better_children_yurt_effect_tt
desc = better_children_yurt_effect_desc
left_icon = scope:yurt_heir
scope:yurt_heir = {
random_list = {
1 = { add_diplomacy_skill = 1 }
1 = { add_stewardship_skill = 1 }
1 = { add_intrigue_skill = 1 }
1 = { add_learning_skill = 1 }
1 = { add_martial_skill = 1 }
}
}
}
}
@ -5870,7 +5906,7 @@ knight_mystical_yurt_effect = {
if = {
limit = {
exists = scope:improved_knight
}
}
send_interface_message = {
title = knight_mystical_yurt_effect_tt
desc = knight_mystical_yurt_effect_desc
@ -5879,7 +5915,7 @@ knight_mystical_yurt_effect = {
add_prowess_skill = $PROWESS$
}
}
}
}
}
}
}
@ -5925,7 +5961,7 @@ clean_up_ai_nomad_effect = {
liege ?= { is_ai = yes }
}
is_migrating = no
NOT = { exists = involved_activity }
is_in_activity = no
}
domicile.domicile_location = { save_scope_as = place_to_stay }
if = {
@ -5958,7 +5994,7 @@ clean_up_ai_nomad_effect = {
}
move_to_pool_at = scope:place_to_stay
}
random = {
chance = {
value = 20
@ -6019,7 +6055,7 @@ clean_up_ai_nomad_effect = {
}
}
}
if = {
limit = {
scope:nomad_capital_ruler = {
@ -6149,6 +6185,12 @@ expanding_steppe_effect = {
REGION = dlc_mpo_steppe_central_china_expansion
}
}
scope:dlc_mpo_steppe_north_east_asia_expansion = {
expanding_steppe_add_region_effect = {
SUB_REGION = east
REGION = dlc_mpo_steppe_north_east_asia_expansion
}
}
scope:world_asia_korea = {
expanding_steppe_add_region_effect = {
SUB_REGION = east
@ -6195,6 +6237,7 @@ nomadic_heir_cleanup_realm_effect = {
save_scope_as = inheritor_char
}
every_held_title = {
title_tier > barony
limit = {
is_landless_type_title = no
}
@ -6213,11 +6256,9 @@ nomadic_heir_cleanup_realm_effect = {
type = swear_fealty
save_scope_as = change
}
scope:recipient = {
change_liege = {
liege = scope:old_liege
change = scope:change
}
change_liege = {
liege = scope:old_liege
change = scope:change
}
resolve_title_and_vassal_change = scope:change
}
@ -6291,9 +6332,9 @@ nomadic_realm_split_effect = {
}
save_scope_as = new_capital
}
# Mark the capital duchy
scope:new_ruler_scope = {
scope:new_ruler_scope = {
scope:new_capital = {
add_to_list = counties_given_to_sibling
}
@ -6355,7 +6396,7 @@ nomadic_realm_split_effect = {
add_to_list = duchies_given_to_sibling
if = {
limit = {
holder = {
holder ?= {
top_liege = scope:root_scope
primary_title.tier < tier_kingdom
NOT = { is_in_list = rulers_transferred }
@ -6372,7 +6413,7 @@ nomadic_realm_split_effect = {
add_to_list = counties_given_to_sibling
if = {
limit = {
holder = {
holder ?= {
top_liege = scope:root_scope
primary_title.tier < tier_kingdom
NOT = { is_in_list = rulers_transferred }
@ -6429,7 +6470,7 @@ nomadic_realm_split_effect = {
add_to_list = duchies_given_to_sibling
if = {
limit = {
holder = {
holder ?= {
top_liege = scope:root_scope
primary_title.tier < tier_kingdom
NOT = { is_in_list = rulers_transferred }
@ -6446,7 +6487,7 @@ nomadic_realm_split_effect = {
add_to_list = counties_given_to_sibling
if = {
limit = {
holder = {
holder ?= {
top_liege = scope:root_scope
primary_title.tier < tier_kingdom
NOT = { is_in_list = rulers_transferred }
@ -6467,14 +6508,14 @@ nomadic_realm_split_effect = {
}
}
}
# Hand out the titles properly
create_title_and_vassal_change = {
type = swear_fealty
add_claim_on_loss = yes
save_scope_as = change
}
# Give capital + capital duchy
scope:capital_duchy = {
change_title_holder = {
@ -6489,7 +6530,7 @@ nomadic_realm_split_effect = {
change = scope:change
}
}
# Form a new kingdom
save_scope_as = founder
scope:capital_duchy = {
@ -6508,7 +6549,7 @@ nomadic_realm_split_effect = {
generate_coa = yes
set_de_jure_liege_title = scope:root_scope.primary_title.empire
}
# Do everything else
every_in_list = {
list = counties_given_to_sibling
@ -6531,10 +6572,8 @@ nomadic_realm_split_effect = {
}
if = {
limit = {
NOT = {
this = scope:new_ruler_scope
}
holder = {
this != scope:new_ruler_scope
liege = scope:root_scope
primary_title.tier < tier_kingdom
}
@ -6547,9 +6586,9 @@ nomadic_realm_split_effect = {
}
}
}
resolve_title_and_vassal_change = scope:change
every_in_list = {
list = duchies_to_de_jure_shift
set_de_jure_liege_title = scope:new_kingdom_title
@ -6593,9 +6632,9 @@ mpo_abuse_authority_county_effect = {
}
root = {
add_gold = medium_gold_value
add_prestige = medium_prestige_value
add_prestige = medium_prestige_value
}
}
}
}
}
@ -6634,13 +6673,14 @@ mpo_release_herder_land_effect = {
location = scope:county_of_origin.title_province
culture = scope:county_of_origin.culture
faith = scope:county_of_origin.faith
rite = scope:county_of_origin.rite
gender_female_chance = {
if = {
limit = { scope:county_of_origin.faith = { has_doctrine = doctrine_gender_male_dominated } }
limit = { scope:county_of_origin.rite = { rite_has_doctrine = doctrine_gender_male_dominated } }
add = 20
}
else_if = {
limit = { scope:county_of_origin.faith = { has_doctrine = doctrine_gender_female_dominated } }
limit = { scope:county_of_origin.rite = { rite_has_doctrine = doctrine_gender_female_dominated } }
add = 80
}
else = {

View file

@ -230,6 +230,7 @@ debate_disburse_activity_ai_guest_rewards = {
if = {
limit = {
has_activity_intent = debate_increase_movement_power_intent
exists = top_participant_group:dynastic_cycle
}
top_participant_group:dynastic_cycle ?= {
save_scope_as = my_movement
@ -429,7 +430,7 @@ debate_host_rewards_effect = {
limit = {
variable_list_size = {
name = debate_disciples
value = 1
value >= 1
}
num_of_relation_disciple >= 1
}
@ -443,14 +444,14 @@ debate_host_rewards_effect = {
limit = {
variable_list_size = {
name = debate_disciples
value = 2
value >= 2
}
num_of_relation_disciple >= 2
}
ordered_in_list = {
variable = debate_disciples
order_by = learning
position = 0
position = 1
save_scope_as = disciple_2
}
}
@ -458,7 +459,7 @@ debate_host_rewards_effect = {
limit = {
variable_list_size = {
name = debate_disciples
value = 3
value >= 3
}
num_of_relation_disciple >= 3
}
@ -562,6 +563,7 @@ debate_disburse_activity_host_rewards = {
scope:host = { debate_host_rewards_effect = yes }
}
}
pam_vows_of_poverty_host_completion_piety_effect = yes
}
else = {
show_as_tooltip = { debate_host_rewards_effect = yes }

View file

@ -55,7 +55,7 @@ imperial_examination_update_cheat_washing_effect = {
imperial_examination_cheat_washing_effect = {
#What a relief.
stress_impact = { base = major_stress_impact_loss }
stress_and_fulfillment_impact = { base = major_stress_impact_loss }
#Gonzo!
custom_tooltip = imperial_examination.cheat_wash.tt
remove_variable ?= been_caught_cheating
@ -149,6 +149,7 @@ imperial_examination_disburse_activity_host_rewards = {
}
}
}
pam_vows_of_poverty_host_completion_piety_effect = yes
}
local_examination_disburse_activity_host_rewards = {
@ -246,6 +247,7 @@ local_examination_disburse_activity_host_rewards = {
}
}
}
pam_vows_of_poverty_host_completion_piety_effect = yes
}
imperial_examination_disburse_activity_examiner_rewards = {
@ -437,9 +439,9 @@ imperial_examination_disburse_activity_entrant_rewards = {
if = {
limit = {
has_character_flag = exam_cheat_intent
NOR = {
has_variable = been_caught_cheating
has_variable = been_caught_cheating_longterm
has_none_of_variables = {
name = been_caught_cheating
name = been_caught_cheating_longterm
}
government_allows = merit
}
@ -592,9 +594,9 @@ local_examination_disburse_activity_entrant_rewards = {
if = {
limit = {
has_character_flag = exam_cheat_intent
NOR = {
has_variable = been_caught_cheating
has_variable = been_caught_cheating_longterm
has_none_of_variables = {
name = been_caught_cheating
name = been_caught_cheating_longterm
}
government_allows = merit
}
@ -865,7 +867,7 @@ imperial_examination_set_up_examiners_effect = {
value < examiners_amount
}
any_attending_character = {
location = scope:activity_location
location = scope:location
this != scope:host
is_ai = yes
tgp_gender_can_be_exam_entrant_trigger = yes
@ -884,7 +886,7 @@ imperial_examination_set_up_examiners_effect = {
}
random_attending_character = {
limit = {
location = scope:activity_location
location = scope:location
is_ai = yes
this != scope:host
tgp_gender_can_be_exam_entrant_trigger = yes
@ -1144,10 +1146,20 @@ imperial_examination_set_up_examiners_effect = {
}
}
add_character_flag = passed_metropolitan_exam
add_character_modifier = {
modifier = tgp_passed_metropolitan_exam_modifier
}
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
else = {
add_character_flag = passed_provincial_exam
}
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
}
$HOST$ = { add_courtier = scope:new_examiner }
scope:activity = {
@ -1171,9 +1183,19 @@ imperial_examination_set_up_examiners_effect = {
}
}
add_character_flag = passed_metropolitan_exam
add_character_modifier = {
modifier = tgp_passed_metropolitan_exam_modifier
}
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
else = {
add_character_flag = passed_provincial_exam
add_character_modifier = {
modifier = tgp_passed_provincial_exam_modifier
}
}
}
$HOST$ = { add_courtier = scope:new_examiner }
@ -1465,7 +1487,6 @@ imperial_examination_gather_stray_entrants_effect = {
limit = {
involved_activity ?= scope:activity
this != root
is_landed = no
trigger_if = {
limit = {
scope:activity = {
@ -1475,9 +1496,9 @@ imperial_examination_gather_stray_entrants_effect = {
NOT = { has_character_flag = passed_palace_exam}
}
trigger_else = {
NOR = {
has_character_flag = passed_provincial_exam
has_character_flag = passed_metropolitan_exam
has_none_of_variables = {
name = passed_provincial_exam
name = passed_metropolitan_exam
}
}
# To make sure no characters appear that shouldn't.
@ -1485,15 +1506,6 @@ imperial_examination_gather_stray_entrants_effect = {
has_trait = devoted
has_trait = eunuch
}
trigger_if = {
limit = {
exists = primary_title
}
primary_title = {
is_mercenary_company = no
is_holy_order = no
}
}
tgp_gender_can_be_exam_entrant_trigger = yes
}
add_to_list = entourage_entrants
@ -1509,12 +1521,12 @@ imperial_examination_gather_stray_entrants_effect = {
has_activity_type = activity_imperial_examination
}
}
NOT = { has_character_flag = passed_palace_exam}
NOT = { has_character_flag = passed_palace_exam }
}
trigger_else = {
NOR = {
has_character_flag = passed_provincial_exam
has_character_flag = passed_metropolitan_exam
has_none_of_variables = {
name = passed_provincial_exam
name = passed_metropolitan_exam
}
}
# To make sure no characters appear that shouldn't.
@ -1540,11 +1552,11 @@ imperial_examination_gather_stray_entrants_effect = {
list = entourage_entrants
if = {
limit = {
can_join_activity = scope:activity
NOT = {
involved_activity ?= scope:activity
}
location = scope:activity.activity_location
can_join_activity = scope:activity
}
add_to_activity_without_travel = scope:activity
}
@ -1871,9 +1883,9 @@ imperial_examination_grab_nr_of_family_entrants_effect = {
every_in_list = {
list = parent_relevant_entrants
limit = {
OR = {
has_character_flag = passed_palace_exam
has_character_flag = passed_metropolitan_exam
has_variable = {
name = passed_palace_exam
name = passed_metropolitan_exam
}
}
root = {

View file

@ -78,7 +78,7 @@ determine_if_contributed_and_save_scope_effect = {
### Capital 01 Breakdown Effects ###
mandala_contributor_minor_rite_reward_effect = {
add_legitimacy = mandala_contribution_minor_legitimacy_reward
add_piety_experience = mandala_contribution_medium_dynasty_reward
add_piety_experience = mandala_contribution_medium_piety_reward
}
contributed_rites_of_worthiness_effect = {
custom_description_no_bullet = { text = contributed_rite_of_worthiness }
@ -259,7 +259,7 @@ mandala_contributor_tiles_reward_effect = {
multiply = 5
}
}
add_piety_experience = mandala_contribution_medium_dynasty_reward
add_piety_experience = mandala_contribution_medium_piety_reward
}
contributed_tiles_effect = {
custom_description_no_bullet = { text = contributed_tiles }
@ -397,7 +397,7 @@ check_and_reward_contributions_02_effect = {
### Capital 03 Breakdown Effects ###
mandala_contributor_medium_rite_reward_effect = {
add_legitimacy = mandala_contribution_medium_legitimacy_reward
add_piety_experience = mandala_contribution_major_dynasty_reward
add_piety_experience = mandala_contribution_major_piety_reward
}
contributed_rites_of_worthiness_02_effect = {
custom_description_no_bullet = { text = contributed_rite_of_worthiness }
@ -457,7 +457,7 @@ mandala_contributor_divine_statues_reward_effect = {
multiply = 1.5
}
}
add_piety_experience = mandala_contribution_medium_dynasty_reward
add_piety_experience = mandala_contribution_medium_piety_reward
}
if = {
limit = { exists = scope:province }
@ -738,7 +738,7 @@ mandala_contributor_gilded_shrines_reward_effect = {
multiply = 1.5
}
}
add_piety_experience = mandala_contribution_medium_dynasty_reward
add_piety_experience = mandala_contribution_medium_piety_reward
}
if = {
limit = { exists = scope:province }
@ -1243,24 +1243,6 @@ 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 = {
@ -1296,6 +1278,10 @@ change_capital_holding_to_citadel_effect = {
value = combined_building_level
days = 1
}
if = {
limit = { holding_is_tribal = yes }
holding_pre_feudalize_effect = yes
}
set_holding_type = temple_citadel_holding
#Did any buildings invalidate? Calculate!
set_variable = {
@ -1353,6 +1339,10 @@ change_tribal_holdings_to_citadels_effect = {
value = combined_building_level
days = 1
}
if = {
limit = { holding_is_tribal = yes }
holding_pre_feudalize_effect = yes
}
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 = {
@ -1577,20 +1567,7 @@ mandala_adopt_clan_government_effect = {
#Remove Mandala Decrees
mandala_nuke_mandala_decrees_effect = yes
#Check if capital holding is castle or temple citadel otherwise convert
hidden_effect = {
capital_province = {
if = {
limit = {
NOR = {
has_holding_type = temple_citadel_holding
has_holding_type = castle_holding
}
}
custom_tooltip = realm_capital_will_change_to_castle
set_holding_type = castle_holding
}
}
}
clan_convert_capital_effect = yes
change_government = clan_government
#Start off crown authorities
hidden_effect = {
@ -1638,17 +1615,7 @@ mandala_adopt_clan_government_effect = {
}
faith.religion = religion:islam_religion
}
if = {
limit = {
capital_province = {
NOR = {
has_holding_type = temple_citadel_holding
has_holding_type = castle_holding
}
}
}
capital_province = { set_holding_type = castle_holding }
}
clan_convert_capital_effect = yes
change_government = clan_government
#Nuke all laws
mandala_nuke_realm_laws_effect = yes
@ -2141,7 +2108,14 @@ creator_mandala_upgraded_regular_holding_piety_effect = {
##Interaction Effects
mandala_end_tributary_with_notification_effect = {
save_scope_as = leaving_tributary
suzerain = { trigger_event = tgp_east_asia_interaction_events.0010 }
suzerain = {
if = {
limit = {
government_has_flag = government_is_mandala
}
trigger_event = tgp_east_asia_interaction_events.0010
}
}
end_tributary = yes
}
@ -3425,6 +3399,7 @@ change_to_mandala_interaction_effect = {
mandala_no_longer_polytheist_effect = {
if = {
limit = {
is_ruler = yes
government_has_flag = government_is_mandala
faith = {
NOT = { has_doctrine = doctrine_polytheist }

View file

@ -109,6 +109,11 @@ tribute_mission_decision_effect = {
value = scope:tribute_mission_target
}
}
# not all tribute decisions have this option
if = {
limit = { NOT = { exists = scope:tribute_mission_bunga_mas } }
save_temporary_scope_value_as = { name = tribute_mission_bunga_mas value = no }
}
#Your Suzerain requested this specifically
if = {
@ -279,6 +284,17 @@ tribute_mission_decision_effect = {
save_scope_as = decision_predetermined_concubine_tribute
}
}
# Fallback in case there's no saved concubine
if = {
limit = {
NOT = { exists = scope:decision_predetermined_concubine_tribute }
}
create_character = {
template = tgp_concubine_template
location = root.location
save_scope_as = decision_predetermined_concubine_tribute
}
}
scope:decision_predetermined_concubine_tribute = {
add_character_flag = {
flag = cannot_be_diarch # just enough to make sure they don't succeed to the diarchy while en route
@ -592,9 +608,9 @@ tribute_mission_invalidation_effect = {
has_variable = tribute_mission_type
trigger_if = {
limit = {
OR = {
has_variable = offered_concubine
has_variable = offered_eunuch
has_variable = {
name = offered_concubine
name = offered_eunuch
}
}
OR = {