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

rite_yearly_hor_divergence_drift_effect

rite_yearly_hor_divergence_drift_effect = yes

game/common/scripted_effects/pam_effects.txt, line 6511 (44 lines). No parameters.

rite_yearly_hor_divergence_drift_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 6511 of its file. It takes no parameters: rite_yearly_hor_divergence_drift_effect = yes. The game's script calls it in 1 place, among them on_rite_yearly (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

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 (44 lines of game script)
rite_yearly_hor_divergence_drift_effect = {
	if = {
		limit = {
			this != faith.main_rite
			# We leave rites that are already heretical alone, since heresy already covers that range
			"divergence(faith.main_rite)" < faith.heresy_threshold
			head_of_rite ?= {
				is_available_ai_adult = yes
				NOT = { has_character_flag = hor_already_drifted_rite_flag }
			}
		}
		random = {
			chance = {
				value = 4
				# Low fervor: lots of room for reinterpretation
				if = {
					limit = { faith.fervor <= @hor_drift_low_fervor }
					add = 6
				}
				# Stable faith: rare drift
				if = {
					limit = { faith.fervor >= @hor_drift_high_fervor }
					add = -2
				}
				# Unfulfilled HoR's do changes more often
				if = {
					limit = {
						head_of_rite ?= {
							spiritual_fulfillment <= 0
						}
					}
					add = 4
				}
				if = {
					limit = { head_of_rite ?= { has_trait = heresiarch } }
					add = 25
				}
				min = 1
			}

			rite_yearly_hor_divergence_drift_apply_effect = yes
		}
	}
}

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

Where it is used

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

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

  • on_rite_yearly

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?