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

Scripted effect · By God Alone files

pam_nudge_investiture_council_host_effect

pam_nudge_investiture_council_host_effect = yes

game/common/scripted_effects/pam_investiture_council_effects.txt, line 601 (59 lines). No parameters.

pam_nudge_investiture_council_host_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 601 of its file. It takes no parameters: pam_nudge_investiture_council_host_effect = yes. The game's script calls it in 3 places, among them The Investiture Council (activity), pam_investiture_council_events.0091 (event) and pam_start_investiture_council_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_investiture_council_effects.txt.

The comment above it in the file

Faith remains the working scope

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 (59 lines of game script)
pam_nudge_investiture_council_host_effect = {
	if = {
		limit = { exists = religious_head.capital_province }
		religious_head.capital_province = { save_scope_as = investiture_hof_capital }
	}
	if = {
		# Preferred path: an available AI Head of Faith hosts (blocked ones fall through to an archbishop)
		limit = {
			religious_head = { pam_available_investiture_hof_ai_trigger = yes }
		}
		pam_investiture_cancel_competing_councils_effect = yes
		religious_head = {
			pam_investiture_free_for_council_effect = yes
			add_character_flag = { flag = investiture_council_nominated years = 3 }
			ai_attempt_to_host_activity = activity_investiture_council
			# Retry until the council starts (or the backstop fires).
			trigger_event = { id = pam_investiture_council_events.0091 days = pam_investiture_council_host_retry_days }
		}
		# Arm the ~2y backstop on the Head of Faith in case no council convenes.
		religious_head = { trigger_event = { id = pam_investiture_council_events.0090 days = 730 } }
	}
	else_if = {
		# When the Head of Faith is a player or truly unavailable, a landed AI archbishop hosts
		# The host trigger leaves out the Head of Faith
		limit = {
			any_faith_character = { pam_valid_investiture_council_host_trigger = yes }
		}
		pam_investiture_cancel_competing_councils_effect = yes
		ordered_faith_character = {
			limit = { pam_valid_investiture_council_host_trigger = yes }
			order_by = pam_investiture_council_host_score_value
			max = 1
			# Named in the player-HoF letter (0050) fired below.
			save_scope_as = investiture_nominee_host
			# We free them first, or a nominee still travelling or attending fails the first host attempt and idles
			pam_investiture_free_for_council_effect = yes
			add_character_flag = { flag = investiture_council_nominated years = 3 }
			ai_attempt_to_host_activity = activity_investiture_council
			# Retry until the council starts (or the backstop fires).
			trigger_event = { id = pam_investiture_council_events.0091 days = pam_investiture_council_host_retry_days }
		}
		# Inform a player Head of Faith that the council is being convened on their behalf.
		if = {
			limit = { religious_head = { is_ai = no } }
			religious_head = { trigger_event = pam_investiture_council_events.0050 }
		}
		# Arm the ~2y backstop on the Head of Faith.
		religious_head = { trigger_event = { id = pam_investiture_council_events.0090 days = 730 } }
	}
	else = {
		# No eligible host at all: resolve in absentia and notify players so the crisis always ends.
		pam_investiture_council_backstop_effect = yes
	}
	# Ready the voters to attend (skipped if the crisis was just resolved in absentia, which clears pending).
	if = {
		limit = { has_variable = investiture_council_pending }
		pam_investiture_prepare_voters_effect = yes
	}
}

As written in game/common/scripted_effects/pam_investiture_council_effects.txt.

Where it is used

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

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