updating some events files (the majority are still not updated)

This commit is contained in:
Thakia 2026-10-10 12:11:35 -03:00
parent 6f22f3a945
commit 754e28b391
20 changed files with 1388 additions and 4672 deletions

View file

@ -170,39 +170,39 @@
# save_scope_as = actor #for the effect to work properly
# }
# }
## #Geographical regions to also push extra for
## 2 = {
## trigger = { #Russia - orthodox
## capital_province = {
## geographical_region = ghw_region_russia
## }
## exists = faith:orthodox
## faith:orthodox = {
## exists = religious_head
## }
## }
## faith:orthodox = {
## religious_head = {
## save_scope_as = actor #for the effect to work properly
## }
## }
## }
## 2 = {
## trigger = { #Scandinavia - catholic
## capital_province = {
## geographical_region = ghw_region_scandinavia
## }
## exists = faith:catholic
## faith:catholic = {
## exists = religious_head
## }
## }
## faith:catholic = {
## religious_head = {
## save_scope_as = actor #for the effect to work properly
## }
## }
## }
# #Geographical regions to also push extra for
# 2 = {
# trigger = { #Russia - orthodox
# capital_province = {
# geographical_region = ghw_region_russia
# }
# exists = faith:orthodox
# faith:orthodox = {
# exists = religious_head
# }
# }
# faith:orthodox = {
# religious_head = {
# save_scope_as = actor #for the effect to work properly
# }
# }
# }
# 2 = {
# trigger = { #Scandinavia - catholic
# capital_province = {
# geographical_region = ghw_region_scandinavia
# }
# exists = faith:catholic
# faith:catholic = {
# exists = religious_head
# }
# }
# faith:catholic = {
# religious_head = {
# save_scope_as = actor #for the effect to work properly
# }
# }
# }
# 100 = {
# modifier = { # A parallel system for africans lowers the need for this
# add = 50
@ -212,10 +212,7 @@
# }
# modifier = { # Historically held out for a long time
# add = 150
# OR = {
# faith.religion = religion:baltic_religion
# faith.religion = religion:adonist_religion
# }
# faith.religion = religion:baltic_religion
# }
# modifier = { # Less susceptible
# add = 50
@ -227,23 +224,23 @@
# }
# modifier = {
# add = -40
# current_date >= 2600.1.1
# current_date >= 868.1.1
# }
# modifier = {
# add = -15
# current_date >= 2650.1.1
# current_date >= 900.1.1
# }
# modifier = {
# add = -25
# current_date >= 2700.1.1
# current_date >= 950.1.1
# }
# modifier = {
# add = -10
# current_date >= 2750.1.1
# current_date >= 1000.1.1
# }
# modifier = { #100 % that something happens if it can
# add = -10
# current_date >= 2850.1.1
# current_date >= 1100.1.1
# }
# }
# }
@ -272,13 +269,7 @@
# capital_province ?= { geographical_region = world_steppe }
# }
# }
# if = {
# limit = {
# faith = { religion_tag = islam_religion }
# }
# change_government = clan_government
# }
# else = { change_government = feudal_government }
# update_feudal_governments_by_religion_effect = yes
# capital_county = {
# set_county_faith = prev.faith
# }
@ -296,13 +287,7 @@
# capital_province ?= { geographical_region = world_steppe }
# }
# }
# if = {
# limit = {
# faith = { religion_tag = islam_religion }
# }
# change_government = clan_government
# }
# else = { change_government = feudal_government }
# update_feudal_governments_by_religion_effect = yes
# capital_county = {
# set_county_faith = root.faith
# }
@ -319,20 +304,26 @@ global_religion.1000 = {
first_valid = {
triggered_desc = {
trigger = {
exists = scope:seeking_same_faith_counties
scope:target_faith_associated_county_faith != scope:target_faith
OR = {
exists = scope:seeking_same_rite_counties
exists = scope:seeking_same_faith_counties
}
scope:target_rite_associated_county_rite != scope:target_rite
}
desc = global_religion.1000.desc_same_faith_counties_alt
}
triggered_desc = {
trigger = {
exists = scope:seeking_same_faith_counties
OR = {
exists = scope:seeking_same_rite_counties
exists = scope:seeking_same_faith_counties
}
}
desc = global_religion.1000.desc_same_faith_counties
}
triggered_desc = {
trigger = {
scope:target_faith_associated_county_faith = scope:target_faith
scope:target_rite_associated_county_rite = scope:target_rite
}
desc = global_religion.1000.desc_any_counties_alt
}
@ -354,29 +345,44 @@ global_religion.1000 = {
}
immediate = {
# Stored here so the take-up-rite option does not have to check again
if = {
limit = {
pam_rite_locally_present_trigger = { RITE = scope:target_rite }
}
save_scope_value_as = {
name = exiles_rite_locally_present
value = yes
}
}
hidden_effect_new_object = {
scope:target_faith = {
scope:target_rite = {
var:associated_culture = {
save_scope_as = target_faith_associated_culture
save_scope_as = target_rite_associated_culture
}
var:associated_county = {
save_scope_as = target_faith_associated_county
faith = { save_scope_as = target_faith_associated_county_faith }
save_scope_as = target_rite_associated_county
rite = { save_scope_as = target_rite_associated_county_rite }
}
}
save_scope_value_as = {
name = initial_available_development
value = scope:target_faith.var:converted_development
value = scope:target_rite.var:converted_development
}
# Defaulted so the loops below still evaluate when no starting County is found.
save_scope_value_as = {
name = remaining_converted_development
value = 0
}
# Save same-faith Counties if that's what we're looking for, they can be all over the place
# Save same-rite Counties if that's what we're looking for, they can be all over the place
if = {
limit = {
exists = scope:seeking_same_faith_counties
exists = scope:seeking_same_rite_counties
}
random_sub_realm_county = {
limit = {
faith = scope:target_faith
rite = scope:target_rite
}
save_scope_as = initial_county_target
add_to_list = counties_to_move_in_to
@ -415,7 +421,79 @@ global_religion.1000 = {
}
random_sub_realm_county = {
limit = {
faith = scope:target_faith
rite = scope:target_rite
NOT = {
is_in_list = counties_to_move_in_to
}
}
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
value = {
value = development_level
divide = 10
floor = yes
add = 1
max = scope:remaining_converted_development
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
value = {
value = scope:remaining_converted_development
subtract = var:county_development_to_get
}
}
}
}
}
else_if = {
limit = {
exists = scope:seeking_same_faith_counties
}
random_sub_realm_county = {
limit = {
faith = scope:target_rite.faith
}
save_scope_as = initial_county_target
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
value = {
value = development_level
divide = 10
floor = yes
add = 1
max = scope:initial_available_development
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
value = {
value = scope:initial_available_development
subtract = var:county_development_to_get
}
}
}
while = {
count = {
add = root.primary_title.tier
if = {
limit = {
root.primary_title.tier <= tier_duchy
}
add = -1
min = 1
}
}
limit = {
scope:remaining_converted_development > 0
}
random_sub_realm_county = {
limit = {
faith = scope:target_rite.faith
NOT = {
is_in_list = counties_to_move_in_to
}
@ -450,8 +528,8 @@ global_religion.1000 = {
faith = root.faith
NOT = {
is_target_in_variable_list = {
name = faiths_converted_in_the_county
target = scope:target_faith
name = rites_converted_in_the_county
target = scope:target_rite
}
}
trigger_if = {
@ -512,8 +590,8 @@ global_religion.1000 = {
faith = root.faith
NOT = {
is_target_in_variable_list = {
name = faiths_converted_in_the_county
target = scope:target_faith
name = rites_converted_in_the_county
target = scope:target_rite
}
}
trigger_if = {
@ -584,16 +662,17 @@ global_religion.1000 = {
}
create_character = {
template = pool_repopulate_learning
faith = scope:target_faith
culture = scope:target_faith_associated_culture
faith = scope:target_rite.faith
rite = scope:target_rite
culture = scope:target_rite_associated_culture
location = root.capital_province
gender_female_chance = {
if = {
limit = { scope:target_faith = { has_doctrine = doctrine_gender_male_dominated } }
limit = { scope:target_rite = { rite_has_doctrine = doctrine_gender_male_dominated } }
add = 0
}
else_if = {
limit = { scope:target_faith = { has_doctrine = doctrine_gender_female_dominated } }
limit = { scope:target_rite = { rite_has_doctrine = doctrine_gender_female_dominated } }
add = 100
}
else = {
@ -603,6 +682,7 @@ global_religion.1000 = {
save_scope_as = local_character
}
scope:local_character = {
set_character_rite = scope:target_rite
add_trait = lifestyle_mystic
set_variable = {
name = loc_number
@ -636,9 +716,12 @@ global_religion.1000 = {
capital_county = {
if = {
limit = {
faith != scope:target_faith
OR = {
faith != scope:target_rite.faith
rite != scope:target_rite
}
}
faith = {
rite = {
if = {
limit = {
OR = {
@ -706,10 +789,13 @@ global_religion.1000 = {
}
if = {
limit = {
root.faith != scope:target_faith
faith != scope:target_faith
OR = {
root.faith != scope:target_rite.faith
rite != scope:target_rite
}
}
set_county_faith = scope:target_faith
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
}
change_development_level = {
value = {
@ -740,11 +826,11 @@ global_religion.1000 = {
if = {
limit = {
culture != scope:target_faith_associated_culture
culture != scope:target_rite_associated_culture
}
culture = {
change_cultural_acceptance = {
target = scope:target_faith_associated_culture
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
@ -754,7 +840,7 @@ global_religion.1000 = {
}
}
scope:target_faith = {
scope:target_rite = {
change_variable = {
name = converted_development
subtract = {
@ -771,6 +857,7 @@ global_religion.1000 = {
if = {
limit = {
is_ai = no
NOT = { exists = scope:pam_syncretic_exiles_decision }
}
add_achievement_global_variable_effect = {
VARIABLE = achieved_ep4_20_promised_land_achievement
@ -809,11 +896,11 @@ global_religion.1000 = {
if = {
limit = {
culture != scope:target_faith_associated_culture
culture != scope:target_rite_associated_culture
}
culture = {
change_cultural_acceptance = {
target = scope:target_faith_associated_culture
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
@ -824,14 +911,14 @@ global_religion.1000 = {
}
}
scope:target_faith = {
scope:target_rite = {
change_variable = {
name = converted_development
subtract = 1
}
}
stress_impact = {
stress_and_fulfillment_impact = {
generous = massive_stress_impact_gain
compassionate = massive_stress_impact_gain
humble = medium_stress_impact_gain
@ -856,14 +943,21 @@ global_religion.1000 = {
name = global_religion.1000.special
add_internal_flag = dangerous
trigger = {
faith != scope:target_faith
rite != scope:target_rite
faith.religious_head != root
trigger_if = { # The AI only takes up a rite that already has a foothold nearby, unless it is unreformed and this is its road out of paganism; players may follow their conscience
limit = { is_ai = yes }
OR = {
exists = scope:exiles_rite_locally_present
rite = { rite_has_parameter = unreformed }
}
}
}
show_as_tooltip = {
set_character_faith_with_conversion = scope:target_faith
set_character_rite_with_conversion = scope:target_rite
if = {
limit = {
scope:target_faith = { has_doctrine = doctrine_monotheist }
scope:target_rite = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
@ -880,8 +974,8 @@ global_religion.1000 = {
}
else_if = {
limit = {
faith = { has_doctrine = doctrine_pluralism_pluralistic }
scope:target_faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
scope:target_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
add_piety = minor_piety_gain
}
@ -889,7 +983,7 @@ global_religion.1000 = {
add_piety_level = -2
}
hidden_effect = {
set_character_faith_with_conversion = scope:target_faith
set_character_rite_with_conversion = scope:target_rite
}
if = {
limit = {
@ -906,25 +1000,27 @@ global_religion.1000 = {
}
if = {
limit = {
domicile_faith != scope:target_faith
domicile_faith != scope:target_rite.faith
}
set_domicile_faith = scope:target_faith
set_domicile_faith = scope:target_rite.faith
}
}
every_held_title = {
limit = {
tier = tier_county
is_landless_type_title = no
faith = root.faith
rite = root.rite
}
set_county_faith = scope:target_faith
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
}
}
else = {
every_in_list = {
list = counties_to_move_in_to
change_development_level = var:county_development_to_get
set_county_faith = scope:target_faith
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
change_county_control = {
value = var:county_development_to_get
multiply = -5
@ -934,11 +1030,11 @@ global_religion.1000 = {
if = {
limit = {
culture != scope:target_faith_associated_culture
culture != scope:target_rite_associated_culture
}
culture = {
change_cultural_acceptance = {
target = scope:target_faith_associated_culture
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
@ -948,7 +1044,7 @@ global_religion.1000 = {
}
}
scope:target_faith = {
scope:target_rite = {
change_variable = {
name = converted_development
subtract = {
@ -960,13 +1056,14 @@ global_religion.1000 = {
}
}
stress_impact = {
stress_and_fulfillment_impact = {
zealous = massive_stress_impact_gain
}
if = {
limit = {
is_ai = no
NOT = { exists = scope:pam_syncretic_exiles_decision }
}
add_achievement_global_variable_effect = {
VARIABLE = achieved_ep4_20_promised_land_achievement
@ -978,25 +1075,27 @@ global_religion.1000 = {
base = 0
modifier = {
current_year >= 1000
faith = {
has_doctrine_parameter = unreformed
NOT = { religion_tag = baltic_religion }
rite = {
rite_has_parameter = unreformed
faith = {
NOT = { religion_tag = baltic_religion }
}
}
add = 10
}
modifier = {
faith = { has_doctrine = doctrine_pluralism_pluralistic }
scope:target_faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
scope:target_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
OR = {
faith.religion = scope:target_faith.religion
faith.religion = scope:target_rite.faith.religion
AND = {
faith.religion = { is_in_family = rf_eastern }
scope:target_faith.religion = { is_in_family = rf_eastern }
scope:target_rite.faith.religion = { is_in_family = rf_eastern }
}
AND = {
faith.religion = { is_in_family = rf_sinitic }
scope:target_faith.religion = { is_in_family = rf_sinitic }
scope:target_rite.faith.religion = { is_in_family = rf_sinitic }
}
}
@ -1013,35 +1112,35 @@ global_religion.1000 = {
modifier = {
faith.religion = { is_in_family = rf_abrahamic }
NOT = {
scope:target_faith.religion = { is_in_family = rf_abrahamic }
scope:target_rite.faith.religion = { is_in_family = rf_abrahamic }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_sunni_doctrine }
rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_sunni_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_shia_doctrine }
rite = { rite_has_doctrine = muhammad_succession_shia_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_shia_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_shia_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_muhakkima_doctrine }
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_muhakkima_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_zandaqa_doctrine }
rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_zandaqa_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
}
factor = 0
}
@ -1057,7 +1156,10 @@ global_religion.1000 = {
add_courtier = scope:local_character
if = {
limit = {
exists = scope:seeking_same_faith_counties
OR = {
exists = scope:seeking_same_rite_counties
exists = scope:seeking_same_faith_counties
}
}
if = {
limit = {
@ -1101,9 +1203,9 @@ global_religion.1000 = {
}
if = {
limit = {
domicile_faith != scope:target_faith
domicile_faith != scope:target_rite.faith
}
set_domicile_faith = scope:target_faith
set_domicile_faith = scope:target_rite.faith
}
}
every_held_title = {
@ -1112,7 +1214,8 @@ global_religion.1000 = {
is_landless_type_title = no
faith = root.faith
}
set_county_faith = scope:target_faith
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
}
}
else = {
@ -1129,7 +1232,8 @@ global_religion.1000 = {
multiply = 2
}
}
set_county_faith = scope:target_faith
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
change_county_control = {
value = var:county_development_to_get
multiply = -5
@ -1140,11 +1244,11 @@ global_religion.1000 = {
if = {
limit = {
culture != scope:target_faith_associated_culture
culture != scope:target_rite_associated_culture
}
culture = {
change_cultural_acceptance = {
target = scope:target_faith_associated_culture
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
@ -1154,7 +1258,7 @@ global_religion.1000 = {
}
}
scope:target_faith = {
scope:target_rite = {
change_variable = {
name = converted_development
subtract = {
@ -1169,6 +1273,7 @@ global_religion.1000 = {
if = {
limit = {
is_ai = no
NOT = { exists = scope:pam_syncretic_exiles_decision }
}
add_achievement_global_variable_effect = {
VARIABLE = achieved_ep4_20_promised_land_achievement
@ -1176,33 +1281,43 @@ global_religion.1000 = {
}
}
# Sheltering exiles of your own religion is spiritually fulfilling; housing foreign faiths is realm business
if = {
limit = {
faith.religion = scope:target_rite.faith.religion
}
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
ai_chance = {
base = 0
modifier = {
faith = scope:target_faith
rite = scope:target_rite
add = 5000
}
modifier = {
current_year >= 1000
faith = {
has_doctrine_parameter = unreformed
NOT = { religion_tag = baltic_religion }
rite = {
rite_has_parameter = unreformed
faith = {
NOT = { religion_tag = baltic_religion }
}
}
add = 10
}
modifier = {
faith.religion = { is_in_family = rf_eastern }
scope:target_faith.religion = { is_in_family = rf_eastern }
scope:target_rite.faith.religion = { is_in_family = rf_eastern }
add = 1000
}
modifier = {
faith.religion = { is_in_family = rf_sinitic }
scope:target_faith.religion = { is_in_family = rf_sinitic }
scope:target_rite.faith.religion = { is_in_family = rf_sinitic }
add = 1000
}
modifier = {
culture = { has_cultural_pillar = heritage_chinese }
scope:target_faith.religion = { is_in_family = rf_sinitic }
scope:target_rite.faith.religion = { is_in_family = rf_sinitic }
add = 1000
}
modifier = {
@ -1214,51 +1329,51 @@ global_religion.1000 = {
}
is_open_to_inviting_other_faiths_trigger = yes
faith.religion = { is_in_family = rf_eastern }
scope:target_faith = { num_county_followers < 5 }
scope:target_rite.faith = { num_county_followers < 5 }
add = 1000
}
modifier = {
is_open_to_inviting_other_faiths_trigger = yes
scope:target_faith = { faith_is_open_minded_trigger = yes }
scope:target_rite = { faith_is_open_minded_trigger = yes }
add = 10
}
modifier = {
faith.religion = { is_in_family = rf_abrahamic }
NOT = {
scope:target_faith.religion = { is_in_family = rf_abrahamic }
scope:target_rite.faith.religion = { is_in_family = rf_abrahamic }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_sunni_doctrine }
rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_sunni_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_shia_doctrine }
rite = { rite_has_doctrine = muhammad_succession_shia_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_shia_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_shia_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_muhakkima_doctrine }
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_muhakkima_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
factor = 0
}
modifier = {
faith = { has_doctrine = muhammad_succession_zandaqa_doctrine }
rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
NOT = {
scope:target_faith = { has_doctrine = muhammad_succession_zandaqa_doctrine }
scope:target_rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
}
factor = 0
}
modifier = {
faith != scope:target_faith
faith != scope:target_rite.faith
any_sub_realm_county = {
count < {
value = {
@ -1293,7 +1408,7 @@ global_religion.1000 = {
else = {
if = {
limit = {
faith != scope:target_faith
faith != scope:target_rite.faith
}
add_piety = {
value = {