fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -296,7 +296,7 @@
# }
#}
# Events for expelled faith development to relocate
# Events for expelled faith prosperity to relocate
global_religion.1000 = {
type = character_event
title = global_religion.1000.t
@ -366,13 +366,13 @@ global_religion.1000 = {
}
}
save_scope_value_as = {
name = initial_available_development
value = scope:target_rite.var:converted_development
name = initial_available_prosperity
value = scope:target_rite.var:converted_prosperity
}
# Defaulted so the loops below still evaluate when no starting County is found.
save_scope_value_as = {
name = remaining_converted_development
value = 0
name = remaining_converted_prosperity
value = scope:initial_available_prosperity
}
# Save same-rite Counties if that's what we're looking for, they can be all over the place
@ -387,21 +387,21 @@ global_religion.1000 = {
save_scope_as = initial_county_target
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:initial_available_development
max = scope:initial_available_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:initial_available_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
@ -417,7 +417,7 @@ global_religion.1000 = {
}
}
limit = {
scope:remaining_converted_development > 0
scope:remaining_converted_prosperity > 0
}
random_sub_realm_county = {
limit = {
@ -428,21 +428,21 @@ global_religion.1000 = {
}
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:remaining_converted_development
max = scope:remaining_converted_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:remaining_converted_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
@ -459,21 +459,21 @@ global_religion.1000 = {
save_scope_as = initial_county_target
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:initial_available_development
max = scope:initial_available_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:initial_available_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
@ -489,7 +489,7 @@ global_religion.1000 = {
}
}
limit = {
scope:remaining_converted_development > 0
scope:remaining_converted_prosperity > 0
}
random_sub_realm_county = {
limit = {
@ -500,21 +500,21 @@ global_religion.1000 = {
}
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:remaining_converted_development
max = scope:remaining_converted_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:remaining_converted_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
@ -562,28 +562,28 @@ global_religion.1000 = {
save_scope_as = initial_county_target
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:initial_available_development
max = scope:initial_available_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:initial_available_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
while = {
count = root.primary_title.tier
limit = {
scope:remaining_converted_development > 0
scope:remaining_converted_prosperity > 0
}
random_sub_realm_county = {
limit = {
@ -640,21 +640,21 @@ global_religion.1000 = {
}
add_to_list = counties_to_move_in_to
set_variable = {
name = county_development_to_get
name = county_prosperity_to_get
value = {
value = development_level
value = prosperity_level
divide = 10
floor = yes
add = 1
max = scope:remaining_converted_development
max = scope:remaining_converted_prosperity
min = 1
}
}
save_scope_value_as = {
name = remaining_converted_development
name = remaining_converted_prosperity
value = {
value = scope:remaining_converted_development
subtract = var:county_development_to_get
subtract = var:county_prosperity_to_get
}
}
}
@ -690,7 +690,7 @@ global_religion.1000 = {
add = {
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
}
multiply = 1000
@ -727,8 +727,8 @@ global_religion.1000 = {
OR = {
NOT = { has_variable = associated_county }
AND = {
has_variable = converted_development
var:converted_development <= 0
has_variable = converted_prosperity
var:converted_prosperity <= 0
}
}
}
@ -742,8 +742,8 @@ global_religion.1000 = {
OR = {
NOT = { has_variable = associated_culture }
AND = {
has_variable = converted_development
var:converted_development <= 0
has_variable = converted_prosperity
var:converted_prosperity <= 0
}
}
}
@ -754,15 +754,15 @@ global_religion.1000 = {
}
if = {
limit = {
NOT = { has_variable = converted_development }
NOT = { has_variable = converted_prosperity }
}
set_variable = {
name = converted_development
name = converted_prosperity
value = {
every_in_list = {
list = counties_to_move_in_to
add = {
add = var:county_development_to_get
add = var:county_prosperity_to_get
divide = 2
min = 1
}
@ -772,12 +772,12 @@ global_religion.1000 = {
}
else = {
change_variable = {
name = converted_development
name = converted_prosperity
add = {
every_in_list = {
list = counties_to_move_in_to
add = {
add = var:county_development_to_get
add = var:county_prosperity_to_get
divide = 2
min = 1
}
@ -797,12 +797,12 @@ global_religion.1000 = {
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
}
change_development_level = {
change_prosperity_level = {
value = {
every_in_list = {
list = counties_to_move_in_to
add = {
add = var:county_development_to_get
add = var:county_prosperity_to_get
divide = 2
min = 1
}
@ -814,7 +814,7 @@ global_religion.1000 = {
every_in_list = {
list = counties_to_move_in_to
add = {
add = var:county_development_to_get
add = var:county_prosperity_to_get
divide = 2
min = 1
}
@ -832,8 +832,8 @@ global_religion.1000 = {
change_cultural_acceptance = {
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
value = scope:initial_available_prosperity
subtract = scope:remaining_converted_prosperity
}
desc = cultural_acceptance_gain_event
}
@ -842,11 +842,11 @@ global_religion.1000 = {
scope:target_rite = {
change_variable = {
name = converted_development
name = converted_prosperity
subtract = {
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
divide = 3
min = 1
}
@ -889,8 +889,10 @@ global_religion.1000 = {
add_gold = {
value = {
value = scope:initial_available_development
value = scope:initial_available_prosperity
multiply = 15
min = minor_gold_value
max = medium_gold_value
}
}
@ -902,9 +904,12 @@ global_religion.1000 = {
change_cultural_acceptance = {
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
multiply = -0.5
value = scope:initial_available_prosperity
subtract = scope:remaining_converted_prosperity
multiply = 0.3
add = 3
ceiling = yes
multiply = -1
}
desc = cultural_acceptance_gain_event
}
@ -913,7 +918,7 @@ global_religion.1000 = {
scope:target_rite = {
change_variable = {
name = converted_development
name = converted_prosperity
subtract = 1
}
}
@ -957,7 +962,7 @@ global_religion.1000 = {
set_character_rite_with_conversion = scope:target_rite
if = {
limit = {
scope:target_rite = { has_doctrine = doctrine_monotheist }
scope:target_rite = { rite_has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
@ -994,7 +999,7 @@ global_religion.1000 = {
value = 0
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
multiply = 250
}
@ -1018,11 +1023,11 @@ global_religion.1000 = {
else = {
every_in_list = {
list = counties_to_move_in_to
change_development_level = var:county_development_to_get
change_prosperity_level = var:county_prosperity_to_get
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
change_county_control = {
value = var:county_development_to_get
value = var:county_prosperity_to_get
multiply = -5
}
}
@ -1036,8 +1041,8 @@ global_religion.1000 = {
change_cultural_acceptance = {
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
value = scope:initial_available_prosperity
subtract = scope:remaining_converted_prosperity
}
desc = cultural_acceptance_gain_event
}
@ -1046,11 +1051,11 @@ global_religion.1000 = {
scope:target_rite = {
change_variable = {
name = converted_development
name = converted_prosperity
subtract = {
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
}
}
@ -1170,7 +1175,7 @@ global_religion.1000 = {
value = 0
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
multiply = 250
}
@ -1179,9 +1184,9 @@ global_religion.1000 = {
else = {
every_in_list = {
list = counties_to_move_in_to
change_development_level = var:county_development_to_get
change_prosperity_level = var:county_prosperity_to_get
change_county_control = {
value = var:county_development_to_get
value = var:county_prosperity_to_get
multiply = -5
}
}
@ -1197,7 +1202,7 @@ global_religion.1000 = {
value = 0
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
multiply = 250
}
@ -1221,12 +1226,12 @@ global_religion.1000 = {
else = {
every_in_list = {
list = counties_to_move_in_to
change_development_level = {
value = var:county_development_to_get
change_prosperity_level = {
value = var:county_prosperity_to_get
if = {
limit = {
culture = {
has_cultural_parameter = development_gain_from_religious_exiles_is_doubled
has_cultural_parameter = prosperity_gain_from_religious_exiles_is_doubled
}
}
multiply = 2
@ -1235,7 +1240,7 @@ global_religion.1000 = {
set_county_faith = scope:target_rite.faith
set_county_rite = scope:target_rite
change_county_control = {
value = var:county_development_to_get
value = var:county_prosperity_to_get
multiply = -5
}
}
@ -1250,8 +1255,8 @@ global_religion.1000 = {
change_cultural_acceptance = {
target = scope:target_rite_associated_culture
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
value = scope:initial_available_prosperity
subtract = scope:remaining_converted_prosperity
}
desc = cultural_acceptance_gain_event
}
@ -1260,11 +1265,11 @@ global_religion.1000 = {
scope:target_rite = {
change_variable = {
name = converted_development
name = converted_prosperity
subtract = {
every_in_list = {
list = counties_to_move_in_to
add = var:county_development_to_get
add = var:county_prosperity_to_get
}
}
}
@ -1402,30 +1407,26 @@ global_religion.1000 = {
name = global_religion.1000.b
if = {
limit = {
exists = scope:from_decision
NOT = { exists = scope:from_decision }
}
}
else = {
if = {
limit = {
faith != scope:target_rite.faith
}
add_piety = {
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
multiply = 100
divide = 2
}
}
add_piety = minor_piety_gain
}
else = {
add_prestige = {
value = {
value = scope:initial_available_development
subtract = scope:remaining_converted_development
multiply = 100
divide = 2
add_prestige = minor_prestige_gain
}
}
scope:target_rite = {
change_variable = {
name = converted_prosperity
subtract = {
every_in_list = {
list = counties_to_move_in_to
add = var:county_prosperity_to_get
}
}
}
@ -1443,7 +1444,7 @@ global_religion.1000 = {
after = {
every_in_list = {
list = counties_to_move_in_to
remove_variable = county_development_to_get
remove_variable = county_prosperity_to_get
}
scope:local_character = {
silent_disappearance_ai_effect = yes