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

Scripted trigger

excommunicated_recovery_valid_cleric_for_actor_trigger

excommunicated_recovery_valid_cleric_for_actor_trigger = { ACTOR = … }

game/common/scripted_triggers/00_religious_triggers.txt, line 3473 (26 lines). Parameters: $ACTOR$.

excommunicated_recovery_valid_cleric_for_actor_trigger is a scripted trigger in Crusader Kings III, written at line 3473 of its file. A call passes 1 parameter: ACTOR. The game's script calls it in 2 places, among them excommunicated_recovery_find_cleric_effect (scripted effect) and excommunicated_recovery_try_save_cleric_scope_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.

The comment above it in the file

Bishop search for the excommunicated recovery alert. Evaluated on the candidate; $ACTOR$ is the excommunicated player.

What it checks

  • NOT = { scope:recovery_cleric = $ACTOR$ }
  • $ACTOR$ = { … }
  • scope:recovery_cleric:

• 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 (26 lines of game script)
excommunicated_recovery_valid_cleric_for_actor_trigger = {
	save_temporary_scope_as = recovery_cleric
	NOT = { scope:recovery_cleric = $ACTOR$ }
	$ACTOR$ = {
		NOR = {
			petition_head_of_faith_repentance_requires_petition_trigger = yes
			has_character_modifier = recent_excommunication
			is_at_war_with = scope:recovery_cleric
		}
	}
	scope:recovery_cleric = {
		highest_held_title_tier >= tier_duchy
		OR = {
			is_clergy = yes
			government_has_flag = government_is_ecclesiastical
		}
		faith = $ACTOR$.faith
		# Only archbishops and above may name the Head of Faith here; everyone else needs a local bishop.
		$ACTOR$ = {
			trigger_if = {
				limit = { pam_is_archbishop_or_higher_trigger = no }
				NOT = { faith.religious_head ?= scope:recovery_cleric }
			}
		}
	}
}

As written in game/common/scripted_triggers/00_religious_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/00_religious_triggers.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?