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_resolve_investiture_crisis_effect

pam_resolve_investiture_crisis_effect = { DOCTRINE = … WINNER = … }

game/common/scripted_effects/pam_investiture_council_effects.txt, line 378 (33 lines). Parameters: $DOCTRINE$, $WINNER$.

pam_resolve_investiture_crisis_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 378 of its file. A call passes 2 parameters: DOCTRINE and WINNER. The game's script calls it in 2 places, among them pam_investiture_council_backstop_effect (scripted effect) and pam_investiture_council_tally_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

Tally and fallback both use this on the faith

What it does

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

The script as written (33 lines of game script)
pam_resolve_investiture_crisis_effect = {
	# Swap hidden so the conclusion "Effects from ..." readout shows only the "Replaced X with Y" tooltip below.
	hidden_effect = {
		if = { limit = { has_doctrine = doctrine_clerical_succession_conditional } remove_doctrine = doctrine_clerical_succession_conditional }
		add_doctrine = $DOCTRINE$
		# add_doctrine hits only the main rite
		every_faith_rite = {
			limit = { rite_has_doctrine = doctrine_clerical_succession_conditional }
			change_rite_doctrine = $DOCTRINE$
		}
	}
	custom_tooltip = pam_investiture_resolution_$WINNER$_tt

	# Bookkeeping hidden too, so the conclusion readout shows only the ruling above, not the faith-wide cleanup.
	hidden_effect = {
		# Clear committed stances (kowtow / CB) and the kowtow modifier across the faith.
		every_faith_character = {
			limit = {
				OR = {
					has_variable = investiture_stance
					has_character_modifier = pam_kowtowed_to_pope_modifier
				}
			}
			if = { limit = { has_variable = investiture_stance } remove_variable = investiture_stance }
			if = { limit = { has_character_modifier = pam_kowtowed_to_pope_modifier } remove_character_modifier = pam_kowtowed_to_pope_modifier }
		}

		# Clear the pending-council signal so the situation no longer nudges a host.
		if = { limit = { has_variable = investiture_council_pending } remove_variable = investiture_council_pending }
	}

	# Does not move the situation phase (only the tally does) so the fallback cannot change the chapter
}

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_resolve_investiture_crisis_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?