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_commit_effect

rite_yearly_hor_divergence_drift_commit_effect = yes

game/common/scripted_effects/pam_effects.txt, line 6792 (48 lines). No parameters.

rite_yearly_hor_divergence_drift_commit_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 6792 of its file. It takes no parameters: rite_yearly_hor_divergence_drift_commit_effect = yes. The game's script calls it in 2 places, among them rite_yearly_hor_divergence_drift_backward_pick_effect (scripted effect) and rite_yearly_hor_divergence_drift_forward_pick_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • scope:diverged_hor › One random character doctrine:
    • rite_filter = scope:diverged_rite
  • If

    • One of these

      • exists = scope:diverged_added_tenet
      • or

        exists = scope:diverged_added_doctrine

    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 (48 lines of game script)
rite_yearly_hor_divergence_drift_commit_effect = {
	random_rite_tenet = {
		limit = {
			NOT = { is_in_list = drift_tenets_before }
		}
		save_scope_as = diverged_added_tenet
	}
	scope:diverged_hor = {
		random_character_doctrine = {
			rite_filter = scope:diverged_rite
			limit = {
				NOT = { is_in_list = drift_doctrines_before }
			}
			save_scope_as = diverged_added_doctrine
		}
	}

	if = {
		limit = {
			OR = {
				exists = scope:diverged_added_tenet
				exists = scope:diverged_added_doctrine
			}
		}
		scope:diverged_hor = {
			add_character_flag = hor_already_drifted_rite_flag
		}
		if = {
			limit = { scope:diverged_change <= -1 }
			scope:diverged_rite.faith = {
				change_fervor = {
					value = notable_fervor_value
					desc = fervor_gain_pam_rite_consolidated
				}
			}
		}
		else_if = {
			limit = { scope:diverged_change >= 1 }
			scope:diverged_rite.faith = {
				change_fervor = {
					value = significant_fervor_loss
					desc = fervor_loss_pam_rite_diverged
				}
			}
		}
		rite_yearly_hor_divergence_drift_notify_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_commit_effect.

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?