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

Scripted trigger · By God Alone files

pam_valid_expand_ecclesiastical_title_target_trigger

pam_valid_expand_ecclesiastical_title_target_trigger = { ARCHBISHOP = … TITLE = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 3498 (42 lines). Parameters: $ARCHBISHOP$, $TITLE$.

pam_valid_expand_ecclesiastical_title_target_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 3498 of its file. A call passes 2 parameters: ARCHBISHOP and TITLE. The game's script calls it in 3 places, among them Expand Clerical Title (interaction), Request Clerical Title Expansion (interaction) and pam_has_eligible_expand_ecclesiastical_title_target_trigger (scripted trigger). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

At least one eligible title exists

What it checks

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

The script as written (42 lines of game script)
pam_valid_expand_ecclesiastical_title_target_trigger = {
	$ARCHBISHOP$ = { save_temporary_scope_as = archbishop_temp }
	$TITLE$ = {
		tier = tier_duchy
		is_landless_type_title = no
		is_head_of_faith = no
		custom_tooltip = {
			text = pam_valid_expand_ecclesiastical_title_de_jure_county_faith_trigger
			OR = {
				holder.faith ?= $ARCHBISHOP$.faith
				any_de_jure_county = {
					count = all
					holder.faith ?= $ARCHBISHOP$.faith
				}
			}
		}
		trigger_if = {
			limit = {
				any_de_jure_county = {
					NOT = { exists = clerical_region_title }
				}
			}
			scope:archbishop_temp = {
				custom_tooltip = {
					text = pam_valid_expand_ecclesiastical_title_adjacent_to_clerical_region_trigger
					capital_province.county.clerical_region_title ?= {
						has_clerical_region = yes
						is_head_of_faith = no
						holder ?= scope:archbishop_temp
						is_adjacent_to_clerical_region = $TITLE$ # very unperformant
					}
				}
			}
		}
		trigger_else = {
			custom_tooltip = {
				text = pam_valid_expand_ecclesiastical_title_clerical_region_exists_trigger
				always = no
			}
		}
	}
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/pam_scripted_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?