Scripted effect
monastic_tenet_espousing_effect
monastic_tenet_espousing_effect = yesgame/common/scripted_effects/00_holy_order_effects.txt, line 6074 (319 lines). No parameters.
monastic_tenet_espousing_effect is a scripted effect in Crusader Kings III, written at line 6074 of its file. It takes no parameters: monastic_tenet_espousing_effect = yes. The game's script calls it in 2 places, among them Propagate Order Dogma (interaction) and yearly_holy_order_pulse (on action). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.
What it does
- If in list (at least 1): Some Rulers near … monasteries embrace … as a Personal Tenet
- Every in list:
- Where: Is played by a person
- Starts the interaction “Evangelize Personal Tenet”
- … and … Monk Courtiers gain Piety
- scope:holy_order_leader › If has the Trait: Monk: Monk experience +5
holy_order = { … }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (120 lines of game script)
monastic_tenet_espousing_effect = {
add_character_flag = {
flag = mon_tenet_cooldown
years = 5
}
#Need to convince at least someone, jeez...
if = {
limit = {
NOT = {
any_in_list = {
count >= 1
list = order_tenet_accepted
is_ai = yes
}
}
}
random_in_list = {
list = personal_tenet_targets
limit = {
highest_held_title_tier <= tier_county
is_ai = yes
}
limit = {
highest_held_title_tier <= tier_duchy
is_ai = yes
}
alternative_limit = {
is_ai = yes
}
add_to_list = order_tenet_accepted
}
}
save_scope_value_as = {
name = order_tenet_accepted_count
value = list_size:order_tenet_accepted
}
#APPLY TO CHARACTERS SELECTED IN monastic_belief_spreading_targeting_effect
if = {
limit = {
any_in_list = {
list = order_tenet_accepted
count >= 1
}
}
custom_tooltip = order_tenet_accepted_list_tt
}
hidden_effect = {
every_in_list = {
list = order_tenet_accepted
add_character_flag = free_tenet_change
force_set_personal_tenet = scope:order_tenet
remove_character_flag = free_tenet_change
}
}
#players choose via interaction
every_in_list = {
list = personal_tenet_targets
limit = {
is_ai = no
}
save_scope_as = tenet_interaction_recipient
run_interaction = {
interaction = pam_evangelize_personal_tenet_interaction
actor = scope:holy_order_leader
recipient = scope:tenet_interaction_recipient
execute_threshold = decline
}
add_to_list = rulers_to_notify
}
#give some correct rite courtiers piety
custom_tooltip = espouse_beliefs_monks_piety_tt
hidden_effect = {
add_piety = medium_piety_gain
every_courtier = {
limit = {
rite = scope:order_rite
has_trait = devoted
}
random = {
chance = {
value = scope:holy_order_leader.learning
multiply = 4
}
add_piety = medium_piety_gain
}
}
#Set courtier rite to order rite
every_courtier = {
limit = {
faith = scope:holy_order_leader.faith
NOT = {
rite = scope:order_rite
}
}
random = {
chance = {
value = scope:holy_order_leader.learning
multiply = 4
}
set_character_rite = scope:holy_order_leader.rite
}
}
}
scope:holy_order_leader = {
if = {
limit = { has_trait = devoted }
add_trait_xp = {
trait = devoted
value = 5
}
}
}
#Inform their lease holders of what happened
holy_order = {
every_leased_title = {As written in game/common/scripted_effects/00_holy_order_effects.txt.
The first 120 of its 319 lines; the rest is in game/common/scripted_effects/00_holy_order_effects.txt from line 6074.
Where it is used
Every place in common/, events/ and history/ that calls monastic_tenet_espousing_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.