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_heresy_faith_effect

pam_heresy_convert_ruler_to_heresy_faith_effect = yes

game/common/scripted_effects/pam_heresy_shared_effects.txt, line 203 (88 lines). No parameters.

pam_heresy_convert_ruler_to_heresy_faith_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 203 of its file. It takes no parameters: pam_heresy_convert_ruler_to_heresy_faith_effect = yes. The game's script calls it in 1 place, among them 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 pulled into the declared heresy faith by the third component's spread
Faith-conversion equivalent of pam_heresy_convert_ruler_to_new_rite_effect

What it does

  • If

    • faith != scope:heresy_faith

    Then

    • set_character_faith_with_conversion = scope:heresy_faith
    • If

      • faith != scope:heresy_faith

      Then

      • set_character_faith = scope:heresy_faith
  • Every held title:
    • Where:
      • Title tier exactly County
      • faith = scope:origin_faith
    • set_county_faith = scope:heresy_faith
  • Every courtier or guest:
  • Every courtier away:
  • Every pool character:
    • Where:
    • province = capital_province
    • set_character_faith = scope:heresy_faith
  • If

    Then

• 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 (88 lines of game script)
pam_heresy_convert_ruler_to_heresy_faith_effect = {
	if = {
		limit = { faith != scope:heresy_faith }
		set_character_faith_with_conversion = scope:heresy_faith
		# The faith_conversion rule can refuse a new heresy, so we convert the ruler directly instead
		if = {
			limit = { faith != scope:heresy_faith }
			set_character_faith = scope:heresy_faith
		}
	}
	every_held_title = {
		limit = {
			tier = tier_county
			faith = scope:origin_faith
		}
		set_county_faith = scope:heresy_faith
	}
	add_character_flag = {
		flag = recently_converted_by_heresy
		years = 10
	}
	# Faith-side mirror of rite_growth_convert_court_to_new_rite_effect.
	every_courtier_or_guest = {
		limit = {
			is_physically_able_ai = yes
			faith = scope:origin_faith
			NOT = { has_character_flag = ai_will_not_convert }
		}
		set_character_faith = scope:heresy_faith
	}
	every_courtier_away = {
		limit = {
			is_physically_able_ai = yes
			faith = scope:origin_faith
			NOT = { has_character_flag = ai_will_not_convert }
		}
		set_character_faith = scope:heresy_faith
	}
	every_pool_character = {
		province = capital_province
		limit = {
			is_physically_able_ai = yes
			faith = scope:origin_faith
			NOT = { has_character_flag = ai_will_not_convert }
		}
		set_character_faith = scope:heresy_faith
	}
	# Faith-side mirror of the rite cascade in pam_heresy_convert_ruler_to_new_rite_effect.
	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 = {
					faith = scope:origin_faith
					OR = {
						this = scope:title_check.title_capital_county
						any_neighboring_county = {
							this = scope:title_check.title_capital_county
						}
					}
				}
				set_county_faith = scope:heresy_faith
				holder = {
					if = {
						# Faith version of is_eligible_rite_growth_target_trigger, since scope:source_rite is not set after declaration
						limit = {
							is_physically_able_ai_adult = yes
							faith = scope:origin_faith
							NOR = {
								scope:founder ?= this
								has_trait = heresiarch
								has_trait = herald
								recently_converted_faith_trigger = yes
								has_character_flag = recently_converted_by_rite_growth
								has_character_flag = ai_will_not_convert
								faith.religious_head ?= this
								highest_held_title_tier >= tier_empire
							}
						}
						pam_heresy_convert_ruler_to_heresy_faith_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_heresy_faith_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?