Scripted effect · By God Alone files
pam_apply_penance_modifier_effect
pam_apply_penance_modifier_effect = yesgame/common/scripted_effects/pam_secular_faith_effects.txt, line 112 (38 lines). No parameters.
pam_apply_penance_modifier_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 112 of its file. It takes no parameters: pam_apply_penance_modifier_effect = yes. The game's script calls it in 2 places, among them Religious Study: Physician, Heal Thyself (event study_scripture_outcome.400) and The Weight of Sin (event pam_secular_faith_events.0008). Patch 1.20.1.2, from game/common/scripted_effects/pam_secular_faith_effects.txt.
The comment above it in the file
Expects scope:penance_sin Used by pam_secular_faith_events.0008 and study_scripture_outcome.400
What it does
If
scope:penance_sin = trait:lustful
Then
- Gains the modifier “Suppressing Lust” for 10 years
- Intrigue -1
- Fertility -15%
- Piety +0.25/month
Else if
scope:penance_sin = trait:chaste
Then
- Gains the modifier “Casting Off Restraint” for 10 years
- Fertility +15%
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:gluttonous
Then
- Gains the modifier “Days of Fasting” for 10 years
- Stress Gain +10%
- Health +0.05
- Piety +0.25/month
Else if
scope:penance_sin = trait:temperate
Then
- Gains the modifier “Breaking the Long Fast” for 10 years
- Stress Gain -10%
- Health -0.05
- Piety +0.25/month
Else if
scope:penance_sin = trait:greedy
Then
- Gains the modifier “Penitent Almsgiving” for 10 years
- Monthly Income -10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:lazy
Then
- Gains the modifier “Penitent Labor” for 10 years
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:diligent
Then
- Gains the modifier “Enforced Rest” for 10 years
- Stress Gain -10%
- Monthly Income -5%
- Piety +0.25/month
Else if
scope:penance_sin = trait:wrathful
Then
- Gains the modifier “Restraining Wrath” for 10 years
- Martial -2
- Piety +0.25/month
Else if
scope:penance_sin = trait:calm
Then
- Gains the modifier “Rousing the Spirit” for 10 years
- Martial +2
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:patient
Then
- Gains the modifier “Forcing the Pace” for 10 years
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:impatient
Then
- Gains the modifier “Cultivating Patience” for 10 years
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:arrogant
Then
- Gains the modifier “Practicing Humility” for 10 years
- Prestige -0.5/month
- Piety +0.25/month
Else if
scope:penance_sin = trait:humble
Then
- Gains the modifier “Assuming a Proud Bearing” for 10 years
- Prestige +0.5/month
- General Opinion -5
- Piety +0.25/month
Else if
scope:penance_sin = trait:deceitful
Then
- Gains the modifier “A Vow of Candor” for 10 years
- Intrigue -2
- Piety +0.25/month
Else if
scope:penance_sin = trait:honest
Then
- Gains the modifier “Learning to Dissemble” for 10 years
- Intrigue +2
- General Opinion -5
- Piety +0.25/month
Else if
scope:penance_sin = trait:craven
Then
- Gains the modifier “Confronting Fear” for 10 years
- Stress Gain +10%
- Piety +0.25/month
Else if
scope:penance_sin = trait:brave
Then
- Gains the modifier “Tempering Valor” for 10 years
- Prowess -2
- Piety +0.25/month
Else if
scope:penance_sin = trait:shy
Then
- Gains the modifier “Forcing Boldness” for 10 years
- … (more in the script below)
- … (more in the script below)
• 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 (38 lines of game script)
pam_apply_penance_modifier_effect = {
if = { limit = { scope:penance_sin = trait:lustful } add_character_modifier = { modifier = pam_sf_penance_lustful_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:chaste } add_character_modifier = { modifier = pam_sf_penance_chaste_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:gluttonous } add_character_modifier = { modifier = pam_sf_penance_gluttonous_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:temperate } add_character_modifier = { modifier = pam_sf_penance_temperate_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:greedy } add_character_modifier = { modifier = pam_sf_penance_greedy_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:generous } add_character_modifier = { modifier = pam_sf_penance_generous_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:lazy } add_character_modifier = { modifier = pam_sf_penance_lazy_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:diligent } add_character_modifier = { modifier = pam_sf_penance_diligent_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:wrathful } add_character_modifier = { modifier = pam_sf_penance_wrathful_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:calm } add_character_modifier = { modifier = pam_sf_penance_calm_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:patient } add_character_modifier = { modifier = pam_sf_penance_patient_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:impatient } add_character_modifier = { modifier = pam_sf_penance_impatient_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:arrogant } add_character_modifier = { modifier = pam_sf_penance_arrogant_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:humble } add_character_modifier = { modifier = pam_sf_penance_humble_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:deceitful } add_character_modifier = { modifier = pam_sf_penance_deceitful_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:honest } add_character_modifier = { modifier = pam_sf_penance_honest_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:craven } add_character_modifier = { modifier = pam_sf_penance_craven_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:brave } add_character_modifier = { modifier = pam_sf_penance_brave_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:shy } add_character_modifier = { modifier = pam_sf_penance_shy_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:gregarious } add_character_modifier = { modifier = pam_sf_penance_gregarious_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:ambitious } add_character_modifier = { modifier = pam_sf_penance_ambitious_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:content } add_character_modifier = { modifier = pam_sf_penance_content_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:arbitrary } add_character_modifier = { modifier = pam_sf_penance_arbitrary_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:just } add_character_modifier = { modifier = pam_sf_penance_just_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:cynical } add_character_modifier = { modifier = pam_sf_penance_cynical_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:zealous } add_character_modifier = { modifier = pam_sf_penance_zealous_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:paranoid } add_character_modifier = { modifier = pam_sf_penance_paranoid_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:trusting } add_character_modifier = { modifier = pam_sf_penance_trusting_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:compassionate } add_character_modifier = { modifier = pam_sf_penance_compassionate_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:callous } add_character_modifier = { modifier = pam_sf_penance_callous_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:sadistic } add_character_modifier = { modifier = pam_sf_penance_sadistic_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:stubborn } add_character_modifier = { modifier = pam_sf_penance_stubborn_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:fickle } add_character_modifier = { modifier = pam_sf_penance_fickle_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:eccentric } add_character_modifier = { modifier = pam_sf_penance_eccentric_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:vengeful } add_character_modifier = { modifier = pam_sf_penance_vengeful_modifier years = 10 } }
else_if = { limit = { scope:penance_sin = trait:forgiving } add_character_modifier = { modifier = pam_sf_penance_forgiving_modifier years = 10 } }
}As written in game/common/scripted_effects/pam_secular_faith_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_apply_penance_modifier_effect.
Events (2)
- Religious Study: Physician, Heal Thyself
study_scripture_outcome.400 - The Weight of Sin
pam_secular_faith_events.0008
Source: game/common/scripted_effects/pam_secular_faith_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.