Scripted effect · By God Alone files
convert_to_rite_with_consequences_effect
convert_to_rite_with_consequences_effect = { RITE = … }game/common/scripted_effects/11_dlc_pam_scripted_effects.txt, line 18 (85 lines). Parameters: $RITE$.
convert_to_rite_with_consequences_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 18 of its file. A call passes 1 parameter: RITE. The game's script calls it in 7 places, among them A Seismic Shift in Faith (event pam_clergy_events.0051), faction_demand.0099 (event) and Strange Teachings: No More than a Man (event fp2_lyonese_monk.0641). Patch 1.20.1.2, from game/common/scripted_effects/11_dlc_pam_scripted_effects.txt.
What it does
clean_convert_modifier_effect = yesIf
knows_rite_level = { target = $RITE$ value < 0.6 }
Then
set_piety_level = { value = 0 }- Gains 100 Stress
add_piety = { value = piety multiply = -1 }- Gains the modifier “Foolish Convert” for 5 years
- Learning -3
- Diplomacy -3
- Intrigue -2
- Monthly Piety -80%
- Level of Devotion Impact +50%
- Stress Gain +50%
Else if
knows_rite_level = { target = $RITE$ value < 0.8 }
Then
- Level of Devotion -1
- Gains 60 Stress
add_piety = { value = piety multiply = -0.5 }- Gains the modifier “Reckless Convert” for 5 years
- Learning -1
- Diplomacy -1
- Intrigue -1
- Monthly Piety -50%
- Level of Devotion Impact +20%
- Stress Gain +20%
Otherwise
add_piety = { value = piety multiply = -0.5 }- Gains the modifier “Informed Convert” for 5 years
set_character_rite = $RITE$If
- Their liege’s capital county’s clerical region’s holder:
- Their domicile:
has_domicile_parameter = estate_baptistery
rite = root.rite
- Their domicile:
- Their liege’s domicile:
has_domicile_parameter = estate_baptistery
Then
- Gains the modifier “Recently Baptized” for 5 years
- Their liege’s capital county’s clerical region’s holder:
• 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 (85 lines of game script)
convert_to_rite_with_consequences_effect = {
clean_convert_modifier_effect = yes
if = {
limit = {
government_has_flag = government_is_mandala
$RITE$ = { rite_has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
if = {
limit = {
knows_rite_level = {
target = $RITE$
value < 0.6
}
NOT = { exists = scope:convert_at_war } # be a bit kinder to forced converts
}
set_piety_level = {
value = 0
}
add_stress = massive_stress_gain
add_piety = {
value = piety
multiply = -1
}
add_character_modifier = {
modifier = foolish_convert_modifier
years = 5
}
}
else_if = {
limit = {
knows_rite_level = {
target = $RITE$
value < 0.8
}
}
add_piety_level = -1
add_stress = major_stress_gain
add_piety = {
value = piety
multiply = -0.5
}
add_character_modifier = {
modifier = reckless_convert_modifier
years = 5
}
}
else = {
add_piety = {
value = piety
multiply = -0.5
}
add_character_modifier = {
modifier = informed_convert_modifier
years = 5
}
}
# Not set_character_rite_with_conversion: avoids cascade, and this may be a forced conversion
set_character_rite = $RITE$
add_character_flag = {
flag = recent_convert
years = 5
}
#PAM - If a recent_convert in an archdiocese has a baptistery
if = {
limit = {
has_character_flag = recent_convert
#Does the archbishopric they reside in have a baptistery?
liege.capital_county.clerical_region_title.holder ?= {
domicile ?= {
has_domicile_parameter = estate_baptistery
}
rite = root.rite
}
#Does their liege have a baptistery?
liege.domicile ?= { has_domicile_parameter = estate_baptistery }
}
add_character_modifier = {
modifier = pam_recently_baptized_at_domicile_modifier
years = 5
}
}
}As written in game/common/scripted_effects/11_dlc_pam_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls convert_to_rite_with_consequences_effect.
Events (5)
- A Seismic Shift in Faith
pam_clergy_events.0051 - faction_demand.0099
- Strange Teachings: No More than a Man
fp2_lyonese_monk.0641 - Study Rite: A Breakthrough
study_faith_outcome.1000 - Study Rite: Beyond My Reach
study_faith_outcome.1500
Scripted effects (2)
Source: game/common/scripted_effects/11_dlc_pam_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.