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_heresy_convert_ruler_to_new_rite_effect

pam_heresy_convert_ruler_to_new_rite_effect = yes

game/common/scripted_effects/pam_heresy_shared_effects.txt, line 154 (46 lines). No parameters.

pam_heresy_convert_ruler_to_new_rite_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 154 of its file. It takes no parameters: pam_heresy_convert_ruler_to_new_rite_effect = yes. The game's script calls it in 3 places, among them A Heretical Rite (event heresy_dangerous_rite.0010), heresy_dangerous_rite.0011 (event) and heresy_historical.0011 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.

The comment above it in the file

Character scope (an AI ruler being swept into a new rite by Component 2 / 3 spread).
Mirrors rite_growth_convert_ruler_to_new_rite_effect, but uses a heresy flag.

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 (46 lines of game script)
pam_heresy_convert_ruler_to_new_rite_effect = {
	if = {
		limit = { rite != scope:new_rite }
		set_character_rite_with_conversion = scope:new_rite
	}
	every_held_title = {
		limit = {
			tier = tier_county
			rite = scope:source_rite
		}
		set_county_rite = scope:new_rite
	}
	add_character_flag = {
		flag = recently_converted_by_heresy
		years = 10
	}
	# Mirror rite_growth_convert_ruler_to_new_rite_effect
	rite_growth_convert_court_to_new_rite_effect = yes
	
	# Archbishop clerical-region cascade.
	if = {
		limit = { any_held_title = { has_clerical_region = yes } }
		every_held_title = {
			limit = { has_clerical_region = yes }
			save_temporary_scope_as = title_check
			every_county_in_clerical_region = {
				limit = {
					rite = scope:source_rite
					OR = {
						this = scope:title_check.title_capital_county
						any_neighboring_county = {
							this = scope:title_check.title_capital_county
						}
					}
				}
				set_county_rite = scope:new_rite
				holder = {
					if = {
						limit = { is_eligible_rite_growth_target_trigger = yes }
						pam_heresy_convert_ruler_to_new_rite_effect = yes
					}
				}
			}
		}
	}
}

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

Where it is used

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

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