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_wanderer_effect

pam_redirect_request_excommunication_wanderer_effect = yes

game/common/scripted_effects/pam_effects.txt, line 10531 (157 lines). No parameters.

pam_redirect_request_excommunication_wanderer_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 10531 of its file. It takes no parameters: pam_redirect_request_excommunication_wanderer_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_wanderer_effect = {
	#Location holder
	if = {
		limit = {
			scope:secondary_recipient.location.county.holder ?= {
				highest_held_title_tier >= tier_duchy
				government_has_flag = government_is_theocracy
				faith ?= scope:secondary_recipient.faith
				NOT = {
					this = scope:actor
				}
			}
		}
		scope:secondary_recipient.location.county.holder ?= {
			save_scope_as = recipient
		}
	}
	#Location holder
	if = {
		limit = {
			scope:secondary_recipient.location.county.holder.cp:councillor_court_chaplain ?= {
				highest_held_title_tier >= tier_duchy
				is_clergy = yes
				faith ?= scope:secondary_recipient.faith
				NOT = {
					this = scope:actor
				}
			}
		}
		scope:secondary_recipient.location.county.holder.cp:councillor_court_chaplain ?= {
			save_scope_as = recipient
		}
	}
	#Redirect to court chaplain of holder's liege or above
	else_if = {
		limit = {
			scope:secondary_recipient.location.county.holder ?= {
				any_liege_or_above = {
					cp:councillor_court_chaplain ?= {
						highest_held_title_tier < tier_duchy
						is_clergy = yes
						NOT = {
							this = scope:actor
						}
					}
				}
			}
		}
		scope:secondary_recipient.location.county.holder ?= {
			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 ecclesiastical/theocratic liege or above
	else_if = {
		limit = {
			scope:secondary_recipient.location.county.holder ?= {
				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.location.county.holder ?= {
			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 clerical region_holder
	else_if = {
		limit = {
			scope:secondary_recipient.location.county ?= {
				clerical_region_title ?= {
					holder ?= {
						highest_held_title_tier >= tier_duchy
						faith ?= scope:secondary_recipient.faith
						NOT = {
							this = scope:actor
						}
					}
				}
			}
		}
		scope:secondary_recipient.location.county.clerical_region_title.holder = {
			save_scope_as = recipient
		}
	}

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

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

Where it is used

Every place in common/, events/ and history/ that calls pam_redirect_request_excommunication_wanderer_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?