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_activate_pending_effect

petition_head_of_faith_activate_pending_effect = yes

game/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 90 (36 lines). No parameters.

petition_head_of_faith_activate_pending_effect is a scripted effect in Crusader Kings III, written at line 90 of its file. It takes no parameters: petition_head_of_faith_activate_pending_effect = yes. The game's script calls it in 2 places, among them petition_head_of_faith_start (on action) and petition_head_of_faith_begin_travel_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.

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 (36 lines of game script)
petition_head_of_faith_activate_pending_effect = {
	if = {
		limit = {
			has_variable = pending_petition_head_of_faith_type
			exists = var:pending_petition_head_of_faith_recipient
		}
		add_character_flag = petition_head_of_faith_character_flag
		set_variable = {
			name = petition_head_of_faith_type
			value = var:pending_petition_head_of_faith_type
		}
		set_variable = {
			name = petition_head_of_faith_recipient
			value = var:pending_petition_head_of_faith_recipient
		}
		if = {
			limit = { exists = var:pending_petition_head_of_faith_target_character }
			set_variable = {
				name = petition_head_of_faith_target_character
				value = var:pending_petition_head_of_faith_target_character
			}
		}
		if = {
			limit = { has_variable = pending_petition_head_of_faith_reserved_piety_value }
			set_variable = {
				name = petition_head_of_faith_reserved_piety_value
				value = var:pending_petition_head_of_faith_reserved_piety_value
			}
		}
		if = {
			limit = { has_character_flag = pending_petition_head_of_faith_use_hook }
			add_character_flag = petition_head_of_faith_use_hook
		}
		petition_head_of_faith_clear_pending_effect = yes
	}
}

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

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

  • petition_head_of_faith_start

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?