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

Scripted effect

petition_head_of_faith_grant_repentance_effect

petition_head_of_faith_grant_repentance_effect = yes

game/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 550 (48 lines). No parameters.

petition_head_of_faith_grant_repentance_effect is a scripted effect in Crusader Kings III, written at line 550 of its file. It takes no parameters: petition_head_of_faith_grant_repentance_effect = yes. The game's script calls it in 5 places, among them Petition: … Repentance (event petition_head_of_faith.1310), petition_head_of_faith_repentance_canon_law_success_effect (scripted effect) and petition_head_of_faith_repentance_confess_success_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.

The comment above it in the file

We copy declaration_of_repentance_interaction_effect, because those scopes are absent here

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 (48 lines of game script)
petition_head_of_faith_grant_repentance_effect = {
	# Petitioner scope, not root, since root is the Head of Faith
	# Whoever calls this consumes the hook, whether by invoking it or by a human Head of Faith granting it
	save_temporary_scope_as = petition_hof_petitioner
	if = {
		limit = {
			NOR = {
				has_character_flag = petition_head_of_faith_use_hook
				rite ?= { rite_has_parameter = tenet_purgatory_absolution_costs_less_prestige }
			}
		}
		# Without hook (Walk to Canossa): massive prestige loss and prestige level drop.
		add_prestige = massive_prestige_loss
		add_prestige_level = -1
	}
	else_if = {
		limit = { NOT = { has_character_flag = petition_head_of_faith_use_hook } }
		add_prestige = major_prestige_loss
	}
	remove_trait = excommunicated
	clear_excommunication_tracking_effect = yes
	add_character_modifier = {
		modifier = excommunication_recently_lifted
		years = 10
	}
	stress_and_fulfillment_impact = {
		cynical = minor_stress_impact_gain
	}
	var:petition_head_of_faith_recipient = {
		add_prestige = major_prestige_gain
		# repentant_opinion only for AI Head of Faith; human players choose their own response.
		if = {
			limit = { is_ai = yes }
			add_opinion = {
				modifier = repentant_opinion
				target = prev
				opinion = 10
			}
		}
	}
	add_clan_unity_interaction_effect = {
		CHARACTER = scope:petition_hof_petitioner
		TARGET = var:petition_head_of_faith_recipient
		VALUE = medium_unity_gain
		DESC = clan_unity_repentance.desc
		REVERSE_NON_HOUSE_TARGET = no
	}
}

As written in game/common/scripted_effects/11_petition_head_of_faith_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls petition_head_of_faith_grant_repentance_effect.

Source: game/common/scripted_effects/11_petition_head_of_faith_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?