Scripted trigger · By God Alone files
pam_rite_can_swap_exclusive_ascetic_tenet_trigger
pam_rite_can_swap_exclusive_ascetic_tenet_trigger = { DROPPED = … NEW = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 2918 (20 lines). Parameters: $DROPPED$, $NEW$.
pam_rite_can_swap_exclusive_ascetic_tenet_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2918 of its file. A call passes 2 parameters: DROPPED and NEW. The game's script calls it in 1 place, among them ecumenical_council_host_rite_adopt_core_tenet_effect (scripted effect). Patch 1.21.0, from game/common/scripted_triggers/pam_scripted_triggers.txt.
The comment above it in the file
Rite scope. $NEW$ and $DROPPED$ are tenet scopes. can_pick still sees $DROPPED$. This is that check once $DROPPED$ is set aside.
What it checks
$NEW$ = { pam_tenet_is_exclusive_ascetic_tenet_trigger = yes }$DROPPED$ = { … }- The rite has the tenet $DROPPED$
None of these
- Rite tenet (at least 2):
If
$NEW$ = { pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes }
Then
- Their faith: Their religion is Christianity
• 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 (20 lines of game script)
pam_rite_can_swap_exclusive_ascetic_tenet_trigger = {
$NEW$ = { pam_tenet_is_exclusive_ascetic_tenet_trigger = yes }
$DROPPED$ = {
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
NOT = { this = $NEW$ }
}
rite_has_tenet = $DROPPED$
# any_rite_tenet already walks this rite's core tenets. status would filter by the main rite instead.
NOT = {
any_rite_tenet = {
count >= 2
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
}
}
trigger_if = {
limit = { $NEW$ = { pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes } }
faith = { religion = religion:christianity_religion }
has_pam_dlc_trigger = 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_rite_can_swap_exclusive_ascetic_tenet_trigger.
Scripted effects (1)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.