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

head_of_faith_change_core_tenet_effect

head_of_faith_change_core_tenet_effect = yes

game/common/scripted_effects/11_dlc_pam_scripted_effects.txt, line 956 (31 lines). No parameters.

head_of_faith_change_core_tenet_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 956 of its file. It takes no parameters: head_of_faith_change_core_tenet_effect = yes. The game's script calls it in 1 place, among them pam_clergy_events.0002 (event). Patch 1.20.1.2, from game/common/scripted_effects/11_dlc_pam_scripted_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 (31 lines of game script)
head_of_faith_change_core_tenet_effect = {
	head_of_faith_set_up_change_core_tenet_effect = yes # Decoupled so it can also be used in the UI

	rite = { save_scope_as = pam_recast_rite }
	if = {
		limit = {
			exists = scope:tenet_to_add
			exists = scope:tenet_to_remove
			# The new Pope is already head of the rite here, so we look for the edit marker on the players
			NOT = {
				any_player = {
					rite = scope:pam_recast_rite
					exists = var:has_edited_a_rite
				}
			}
		}
		save_scope_as = pam_recast_pope
		scope:pam_recast_rite = {
			remove_rite_tenet = scope:tenet_to_remove
			add_rite_tenet = scope:tenet_to_add
		}
		pam_pope_core_tenet_popularity_catalyst_effect = yes
		# Only an AI Pope reaches this branch
		every_player = {
			limit = {
				rite = scope:pam_recast_rite
			}
			trigger_event = pam_clergy_events.0003
		}
	}
}

As written in game/common/scripted_effects/11_dlc_pam_scripted_effects.txt.

Where it is used

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

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