Scripted effect
imprison_HoF_consequences_effect
imprison_HoF_consequences_effect = yesgame/common/scripted_effects/00_prison_effects.txt, line 2621 (22 lines). No parameters.
imprison_HoF_consequences_effect is a scripted effect in Crusader Kings III, written at line 2621 of its file. It takes no parameters: imprison_HoF_consequences_effect = yes. The game's script calls it in 3 places, among them … Imprison (interaction), Imprison (interaction) and diarch_imprison_general_accept_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_prison_effects.txt.
The comment above it in the file
You're trying to imprison your HoF? Oh boy
What it does
If
scope:imprisonment_performer:NOT = { has_imprisonment_reason = scope:recipient }faith.religious_head = scope:recipient
Then
scope:imprisonment_performer:- Level of Devotion -1
- Gain -100 Piety
• 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)
imprison_HoF_consequences_effect = {
if = {
limit = { exists = scope:puppet_or_actor }
scope:puppet_or_actor = { save_temporary_scope_as = imprisonment_performer }
}
else = {
scope:actor = { save_temporary_scope_as = imprisonment_performer }
}
if = {
limit = {
scope:imprisonment_performer = {
NOT = { has_imprisonment_reason = scope:recipient }
exists = faith.religious_head
faith.religious_head = scope:recipient
}
}
scope:imprisonment_performer = {
add_piety_level = -1
add_piety = medium_piety_loss
}
}
}As written in game/common/scripted_effects/00_prison_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls imprison_HoF_consequences_effect.
Character interactions (2)
Scripted effects (1)
Source: game/common/scripted_effects/00_prison_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.