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_cleanup_effect

petition_head_of_faith_cleanup_effect = yes

game/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 41 (25 lines). No parameters.

petition_head_of_faith_cleanup_effect is a scripted effect in Crusader Kings III, written at line 41 of its file. It takes no parameters: petition_head_of_faith_cleanup_effect = yes. The game's script calls it in 12 places, among them Absolution Granted (event petition_head_of_faith.5020), Absolution Granted (event petition_head_of_faith.7020) and Excommunication Pronounced (event petition_head_of_faith.2020). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (25 lines of game script)
petition_head_of_faith_cleanup_effect = {
	if = {
		limit = { has_character_flag = petition_head_of_faith_in_courtroom }
		close_view = {
			view = royal_court
			player = root
		}
	}
	var:petition_head_of_faith_recipient ?= {
		remove_variable = petition_head_of_faith_petitioner
	}
	remove_variable = petition_head_of_faith_type
	remove_variable = petition_head_of_faith_recipient
	remove_variable = petition_head_of_faith_target_character
	remove_variable = petition_head_of_faith_reserved_piety_value
	remove_character_flag = petition_head_of_faith_character_flag
	remove_character_flag = petition_head_of_faith_in_courtroom
	remove_character_flag = petition_head_of_faith_use_hook
	remove_character_flag = petition_head_of_faith_argument_cite_sins
	remove_character_flag = petition_head_of_faith_argument_finesse
	remove_character_flag = petition_head_of_faith_argument_learning
	remove_character_flag = petition_head_of_faith_argument_confess
	remove_character_flag = petition_head_of_faith_argument_canon_law
	remove_character_flag = petition_head_of_faith_argument_weep
}

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_cleanup_effect.

Events (9)

3 more

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

  • petition_head_of_faith_travel_planner_exit

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?