CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger · By God Alone files

pam_ai_reform_rite_replacement_trigger

pam_ai_reform_rite_replacement_trigger = yes

game/common/scripted_triggers/pam_scripted_triggers.txt, line 1834 (13 lines). No parameters.

pam_ai_reform_rite_replacement_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 1834 of its file. It takes no parameters: pam_ai_reform_rite_replacement_trigger = yes (or no). The game's script calls it in 1 place, among them Grant Clerical Title (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

We set this just under the default heresy threshold so rites convert before heresy fires
Phase first: outside Reform the global lookup ends this before the per-see checks

What it checks

  • The Christian Church:
    • situation_current_phase = reform_phase
  • scope:actor.faith: Fervor less than 50
  • scope:target.holder:
    • rite != scope:actor.rite
    • Is played by the AI
    • Their rite:
      • divergence(faith.main_rite) >= 45
  • scope:recipient:
    • rite = scope:actor.rite
  • Years from game start at least 25

• 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 (13 lines of game script)
pam_ai_reform_rite_replacement_trigger = {
	situation:the_christian_church ?= { situation_current_phase = reform_phase }
	scope:actor.faith = { fervor < 50 }
	scope:target.holder ?= {
		rite != scope:actor.rite
		is_ai = yes
		rite = {
			"divergence(faith.main_rite)" >= 45
		}
	}
	scope:recipient = { rite = scope:actor.rite }
	years_from_game_start >= 25
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_triggers/pam_scripted_triggers.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?