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_redirect_request_excommunication_courtier_effect

pam_redirect_request_excommunication_courtier_effect = yes

game/common/scripted_effects/pam_effects.txt, line 10370 (161 lines). No parameters.

pam_redirect_request_excommunication_courtier_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 10370 of its file. It takes no parameters: pam_redirect_request_excommunication_courtier_effect = yes. The game's script calls it in 1 place, among them Request Excommunication (interaction). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

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

The script as written (120 lines of game script)
pam_redirect_request_excommunication_courtier_effect = {
	#liege
	if = {
		limit = {
			scope:secondary_recipient = {
				liege = {
					highest_held_title_tier >= tier_duchy
					government_has_flag = government_is_theocracy
					faith ?= scope:secondary_recipient.faith
					NOT = {
						this = scope:actor
					}
				}
			}
		}
		scope:secondary_recipient.liege = {
			save_scope_as = recipient
		}
	}
	#Redirect to court chaplain of liege or above
	else_if = {
		limit = {
			scope:secondary_recipient = {
				any_liege_or_above = {
					cp:councillor_court_chaplain ?= {
						highest_held_title_tier < tier_duchy
						is_clergy = yes
						NOT = {
							this = scope:actor
						}
					}
				}
			}
		}
		scope:secondary_recipient = {
			ordered_liege_or_above = {
				order_by = {
					value = highest_held_title_tier
					multiply = -1
				}
				limit = {
					cp:councillor_court_chaplain ?= {
						highest_held_title_tier < tier_duchy
						is_clergy = yes
						NOT = {
							this = scope:actor
						}
					}
				}
				cp:councillor_court_chaplain = {
					save_scope_as = recipient
				}
			}
		}
	}
	#Redirect to clerical region_holder
	else_if = {
		limit = {
			scope:secondary_recipient.liege.capital_county = {
				clerical_region_title ?= {
					holder ?= {
						highest_held_title_tier >= tier_duchy
						faith ?= scope:secondary_recipient.faith
						NOT = {
							this = scope:actor
						}
					}
				}
			}
		}
		scope:secondary_recipient.liege.capital_county.clerical_region_title.holder = {
			save_scope_as = recipient
		}
	}
	#Redirect to ecclesiastical/theocratic liege or above
	else_if = {
		limit = {
			scope:secondary_recipient = {
				any_liege_or_above = {
					highest_held_title_tier >= tier_duchy
					government_has_flag = government_is_theocracy
					faith ?= scope:secondary_recipient.faith
					NOT = {
						this = scope:actor
					}
				}
			}
		}
		scope:secondary_recipient = {
			ordered_liege_or_above = {
				order_by = {
					value = highest_held_title_tier
					multiply = -1
				}
				limit = {
					highest_held_title_tier >= tier_duchy
					government_has_flag = government_is_theocracy
					faith ?= scope:secondary_recipient.faith
					NOT = {
						this = scope:actor
					}
				}
				save_scope_as = recipient
			}
		}
	}
	#Redirect to bishop superior of court chaplain
	else_if = {
		limit = {
			scope:secondary_recipient.liege.cp:councillor_court_chaplain ?= {
				highest_held_title_tier < tier_duchy
				superior ?= {
					highest_held_title_tier >= tier_duchy
					is_clergy = yes
					NOT = {
						this = scope:actor
					}
				}
			}
		}

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

The first 120 of its 161 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 10370.

Where it is used

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

Character interactions (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?