Scripted effect
shunned_or_criminal_sf_impact_effect
shunned_or_criminal_sf_impact_effect = { TRAIT = … }game/common/scripted_effects/00_secret_effects.txt, line 87 (22 lines). Parameters: $TRAIT$.
shunned_or_criminal_sf_impact_effect is a scripted effect in Crusader Kings III, written at line 87 of its file. A call passes 1 parameter: TRAIT. The game's script calls it in 10 places, among them add_adulterer_trait_or_nothing_effect (scripted effect), add_fornicator_trait_or_nothing_effect (scripted effect) and add_kinslayer_trait_or_nothing_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
- If available:
If
trait_is_shunned_in_rite_trigger = { RITE = rite TRAIT = $TRAIT$ GENDER_CHARACTER = scope:secret_character }
Then
- Spiritual fulfillment -5
Else if
trait_is_criminal_in_rite_trigger = { RITE = rite TRAIT = $TRAIT$ GENDER_CHARACTER = scope:secret_character }
Then
- Spiritual fulfillment -10
• 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 (22 lines of game script)
shunned_or_criminal_sf_impact_effect = {
save_scope_as = secret_character
if = {
limit = {
is_available_quick = {
advanced_ruler = yes
}
}
if = {
limit = {
trait_is_shunned_in_rite_trigger = { RITE = rite TRAIT = $TRAIT$ GENDER_CHARACTER = scope:secret_character }
}
change_spiritual_fulfillment = medium_spiritual_fulfillment_loss
}
else_if = {
limit = {
trait_is_criminal_in_rite_trigger = { RITE = rite TRAIT = $TRAIT$ GENDER_CHARACTER = scope:secret_character }
}
change_spiritual_fulfillment = major_spiritual_fulfillment_loss
}
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls shunned_or_criminal_sf_impact_effect.
Scripted effects (10)
Source: game/common/scripted_effects/00_secret_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.