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_convert_domain_counties_to_rite_effect

pam_convert_domain_counties_to_rite_effect = { RITE = … }

game/common/scripted_effects/pam_effects.txt, line 12028 (27 lines). Parameters: $RITE$.

pam_convert_domain_counties_to_rite_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12028 of its file. A call passes 1 parameter: RITE. The game's script calls it in 2 places, among them on_rite_created (on action) and pam_sway_to_rite_on_accept_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

PAM - Converts every county in a ruler's domain that shares their faith to $RITE$
The capital is skipped while a different-rite clerical region holder is seated in it, unless that holder is our puppet

What it does

  • Every held title:
    • Only some of them (the filter is in the script below)
    • set_county_rite = $RITE$

• 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 (27 lines of game script)
pam_convert_domain_counties_to_rite_effect = {
	save_temporary_scope_as = domain_rite_converter
	every_held_title = {
		limit = {
			tier = tier_county
			faith = scope:domain_rite_converter.faith
			rite != $RITE$
			trigger_if = {
				limit = { scope:domain_rite_converter.capital_county ?= this }
				NOT = {
					clerical_region_title ?= {
						holder ?= {
							capital_county = scope:domain_rite_converter.capital_county
							faith = scope:domain_rite_converter.faith
							rite != $RITE$
							NOR = {
								scope:domain_rite_converter.puppet:theological_agent_puppet ?= this
								scope:domain_rite_converter.puppet:external_theological_agent_puppet ?= this
							}
						}
					}
				}
			}
		}
		set_county_rite = $RITE$
	}
}

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

Where it is used

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

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

  • on_rite_created

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?