Scripted trigger · By God Alone files
pam_tenet_ai_may_prohibit_trigger
pam_tenet_ai_may_prohibit_trigger = { CHARACTER = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 2695 (9 lines). Parameters: $CHARACTER$.
pam_tenet_ai_may_prohibit_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2695 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them Forbid a Tenet (decision) and Forbid a Tenet (decision). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
If
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }pam_tenet_is_christian_dogma_trigger = yes
Then
pam_tenet_is_unpopular_trigger = { CHARACTER = $CHARACTER$ }
• 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 (9 lines of game script)
pam_tenet_ai_may_prohibit_trigger = {
trigger_if = {
limit = {
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
pam_tenet_is_christian_dogma_trigger = yes
}
pam_tenet_is_unpopular_trigger = { CHARACTER = $CHARACTER$ }
}
}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_prohibit_trigger.
Decisions (2)
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.