Scripted effect
monastic_belief_spreading_targeting_effect
monastic_belief_spreading_targeting_effect = yesgame/common/scripted_effects/00_holy_order_effects.txt, line 5913 (160 lines). No parameters.
monastic_belief_spreading_targeting_effect is a scripted effect in Crusader Kings III, written at line 5913 of its file. It takes no parameters: monastic_belief_spreading_targeting_effect = yes. The game's script calls it in 2 places, among them Propagate Order Dogma (interaction) and yearly_holy_order_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
monastic_belief_spreading_targeting_effect = {
save_scope_as = holy_order_leader
holy_order = {
save_scope_as = holy_order
}
holy_order.order_tenet = {
save_scope_as = order_tenet
}
rite = {
save_scope_as = order_rite
}
#Make lists of targets
holy_order = {
#Spread Tenet to AI characters as personal tenet
every_leased_title = {
#leases' duchies' counties
duchy ?= {
every_de_jure_county_holder = {
limit = {
pam_monastic_tenet_spread_target_trigger = { ORDER_LEADER = scope:holy_order_leader }
}
add_to_list = personal_tenet_targets
}
}
#Neighboring counties to leases
county ?= {
every_neighboring_county = {
if = {
limit = {
holder ?= {
pam_monastic_tenet_spread_target_trigger = { ORDER_LEADER = scope:holy_order_leader }
}
}
holder = {
add_to_list = personal_tenet_targets
}
}
}
}
}
}
#Change character tenets
every_in_list = {
list = personal_tenet_targets
#Of AI
if = {
limit = {
is_ai = yes
}
random = {
chance = {
value = {
value = scope:holy_order_leader.learning
multiply = 0.5
}
#Actually want tenet
if = {
limit = {
NOT = {
any_desired_tenet = {
selection_count = 97
only_positive = yes
threshold = 1
this = scope:order_tenet
}
}
}
add = 0.1
}
if = {
limit = {
any_desired_tenet = {
selection_count = 1
only_positive = yes
this = scope:order_tenet
}
}
multiply = 5
}
if = {
limit = {
any_desired_tenet = {
selection_count = 3
only_positive = yes
this = scope:order_tenet
}
}
multiply = 3
}
if = {
limit = {
any_desired_tenet = {
selection_count = 6
only_positive = yes
this = scope:order_tenet
}
}
multiply = 2
}
if = {
limit = {
rite = {
has_tenet_status = {
tenet = scope:order_tenet
status = core
}
}
}
multiply = 2
}
if = {
limit = {
rite = {
has_tenet_status = {
tenet = scope:order_tenet
status = permitted
}
}
}
multiply = 1.5As written in game/common/scripted_effects/00_holy_order_effects.txt.
The first 120 of its 160 lines; the rest is in game/common/scripted_effects/00_holy_order_effects.txt from line 5913.
Where it is used
Every place in common/, events/ and history/ that calls monastic_belief_spreading_targeting_effect.
Character interactions (1)
On actions (the game's own hooks) (1)
- yearly_holy_order_pulse
Source: game/common/scripted_effects/00_holy_order_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.