CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

clerical_kill_piety_effect

clerical_kill_piety_effect = { KILLER = … VICTIM = … }

game/common/scripted_effects/00_prison_effects.txt, line 328 (41 lines). Parameters: $KILLER$, $VICTIM$.

clerical_kill_piety_effect is a scripted effect in Crusader Kings III, written at line 328 of its file. A call passes 2 parameters: KILLER and VICTIM. The game's script calls it in 2 places, among them on_death (on action) and execute_prisoner_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_prison_effects.txt.

The comment above it in the file

Piety loss for killing your own Head of Faith, Head of Rite, cardinal, or archbishop

What it does

• 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 (41 lines of game script)
clerical_kill_piety_effect = {
	if = {
		limit = {
			exists = faith.religious_head
			faith.religious_head = $VICTIM$
			NOT = { has_perk = divine_retribution_perk }
		}
		if = {
			limit = {
				situation:the_christian_church ?= {
					has_situation_top_phase_parameter = the_christian_church_clerical_violence_less_consequential
				}
			}
			add_piety_level = -1
		}
		else = {
			add_piety_level = -2
		}
	}
	else_if = {
		limit = {
			NOT = { has_perk = divine_retribution_perk }
			$VICTIM$ = {
				pam_is_senior_cleric_of_character_trigger = {
					CHARACTER = $KILLER$
				}
			}
		}
		if = {
			limit = {
				situation:the_christian_church ?= {
					has_situation_top_phase_parameter = the_christian_church_clerical_violence_less_consequential
				}
			}
			add_piety = medium_piety_loss
		}
		else = {
			add_piety = major_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 clerical_kill_piety_effect.

On actions (the game's own hooks) (1)

  • on_death

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.

Spotted a mistake on this page?