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_potential_secular_clerical_split_ruler_trigger

pam_potential_secular_clerical_split_ruler_trigger = { RULER = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 3302 (33 lines). Parameters: $RULER$.

pam_potential_secular_clerical_split_ruler_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 3302 of its file. A call passes 1 parameter: RULER. The game's script calls it in 2 places, among them Split Clerical Title (interaction) and pam_valid_secular_clerical_split_ruler_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

Cheap pre-filter for HoF split secular ruler lists (since split_clerical_region_size might not be performant)

What it checks

  • $RULER$ = { … }
  • If

    • scope:recipient = scope:actor

    Then

    • $RULER$ = { … }

• 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 (33 lines of game script)
pam_potential_secular_clerical_split_ruler_trigger = {
	$RULER$ = {
		is_alive = yes
		is_landed = yes
		faith = scope:actor.faith
		NOR = {
			this = scope:recipient
			trigger_if = {
				limit = { exists = scope:recipient.liege }
				this = scope:recipient.liege
			}
		}
		highest_held_title_tier >= tier_duchy
		NOT = { pam_government_is_religious_playable_trigger = yes }
		capital_county = {
			exists = clerical_region_title
			clerical_region_title.holder = scope:recipient
			# We always keep the region capital, because splitting it off would leave the new region with no capital
			NOT = { this = clerical_region_title.title_preferred_capital_county }
		}
	}
	# any_sub_realm_county, not any_realm_county: for a vassal the latter is the liege's whole realm
	trigger_if = {
		limit = { scope:recipient = scope:actor }
		$RULER$ = {
			NOT = {
				any_sub_realm_county = {
					any_neighboring_county = { this = scope:recipient.capital_county }
				}
			}
		}
	}
}

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

Character interactions (1)

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?