Scripted trigger · By God Alone files
pam_spread_tenet_listener_trigger
pam_spread_tenet_listener_trigger = { PREACHER = … TENET = … }game/common/scripted_triggers/pam_spread_tenet_triggers.txt, line 4 (25 lines). Parameters: $PREACHER$, $TENET$.
pam_spread_tenet_listener_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 4 of its file. A call passes 2 parameters: PREACHER and TENET. The game's script calls it in 5 places, among them apa_pam_spread_tenet_guest (activity pulse), apa_pam_spread_tenet_host (activity pulse) and pam_spread_tenet_setup_effect (local effect). Patch 1.20.1.2, from game/common/scripted_triggers/pam_spread_tenet_triggers.txt.
The comment above it in the file
This = the potential convert
What it checks
is_physically_able_ai_adult = yesis_playable_character = yesfaith = $PREACHER$.faithNOT = { has_personal_tenet = $TENET$ }- Any desired tenet:
only_positive = yesthreshold = 1selection_count = 97
• 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_spread_tenet_listener_trigger = {
this != $PREACHER$
is_physically_able_ai_adult = yes
is_playable_character = yes
faith = $PREACHER$.faith
NOT = { has_personal_tenet = $TENET$ }
any_desired_tenet = {
only_positive = yes
threshold = 1
selection_count = 97
this = $TENET$
}
# Only risk-takers will entertain a belief their rite prohibits
trigger_if = {
limit = {
$PREACHER$.faith.main_rite = {
has_tenet_status = {
tenet = $TENET$
status = prohibited
}
}
}
pam_ai_can_consider_forbidden_personal_tenet_trigger = yes
}
}As written in game/common/scripted_triggers/pam_spread_tenet_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_spread_tenet_listener_trigger.
Activity pulse actions (2)
- apa_pam_spread_tenet_guest
- apa_pam_spread_tenet_host
Scripted effects inside an event file (1)
- pam_spread_tenet_setup_effect
Scripted triggers (2)
Source: game/common/scripted_triggers/pam_spread_tenet_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.