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_tenet_ai_may_permit_trigger

pam_tenet_ai_may_permit_trigger = { CHARACTER = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 2669 (25 lines). Parameters: $CHARACTER$.

pam_tenet_ai_may_permit_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2669 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 4 places, among them Permit a Tenet (decision), Permit a Tenet (decision) and head_of_faith_set_up_change_core_tenet_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

$CHARACTER$ is the Head of Faith deciding, and the tenet is the scope
We only apply this to the AI, so players keep the full list

What it checks

• 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 (25 lines of game script)
pam_tenet_ai_may_permit_trigger = {
	trigger_if = {
		limit = {
			$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
			pam_tenet_is_christian_vice_trigger = yes
		}
		OR = {
			situation:the_christian_church ?= { situation_current_phase = saeculum_obscurum }
			pam_tenet_is_at_least_very_popular_trigger = { CHARACTER = $CHARACTER$ }
		}
	}
	trigger_else_if = {
		limit = {
			$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
			OR = {
				pam_tenet_is_christological_heresy_trigger = yes
				pam_tenet_is_christian_abomination_trigger = yes
			}
		}
		pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = $CHARACTER$ }
	}
	trigger_else = {
		always = yes
	}
}

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_tenet_ai_may_permit_trigger.

Script values (1)

  • pam_christian_vice_restraint_value

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?