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_family_becomes_prelate_effect

pam_family_becomes_prelate_effect = { KIND = … TITLE = … }

game/common/scripted_effects/pam_effects.txt, line 8559 (43 lines). Parameters: $KIND$, $TITLE$.

pam_family_becomes_prelate_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8559 of its file. A call passes 2 parameters: KIND and TITLE. The game's script calls it in 2 places, among them on_title_gain (on action) and pam_establish_antipope_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Root = the kinsman who just took the office. $TITLE$ = the office title, $KIND$ = flag:head_of_faith / flag:antipope / flag:archbishop

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 (43 lines of game script)
pam_family_becomes_prelate_effect = {
	if = {
		limit = {
			has_pam_dlc_trigger = yes
			current_date_is_start_date_trigger = no
			is_alive = yes
			religion = religion:christianity_religion
			# Every string in 0060 names the dynasty, so a lowborn prelate has no story to tell here
			exists = dynasty
		}
		save_scope_as = new_prelate
		$TITLE$ = { save_scope_as = prelate_title }
		save_scope_value_as = {
			name = prelate_office
			value = $KIND$
		}
		every_player = {
			limit = {
				this != scope:new_prelate
				OR = {
					is_close_or_extended_family_of = scope:new_prelate
					house ?= scope:new_prelate.house
				}
				# Archdioceses change hands far more often than the great offices do
				trigger_if = {
					limit = { scope:prelate_office = flag:archbishop }
					NOT = { has_character_flag = pam_family_prelate_cooldown }
				}
			}
			if = {
				limit = { scope:prelate_office = flag:archbishop }
				add_character_flag = {
					flag = pam_family_prelate_cooldown
					years = 10
				}
			}
			trigger_event = {
				id = pam_clergy_events.0060
				days = { 3 5 }
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_title_gain

Scripted effects (1)

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