Scripted trigger · By God Alone files
can_create_faith_holy_site_authority_trigger
can_create_faith_holy_site_authority_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 1400 (18 lines). No parameters.
can_create_faith_holy_site_authority_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 1400 of its file. It takes no parameters: can_create_faith_holy_site_authority_trigger = yes (or no). The game's script calls it in 2 places, among them pam_can_create_holy_site_gui (gui) and can_create_faith_holy_site_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
The comment above it in the file
Location-independent standing to create holy sites; also gates the Create Holy Site button
What it checks
One of these
can_manage_faith_holy_sites_trigger = yesor
All of these
- Is an Independent Ruler
- Highest held Title is at least Kingdom Rank
- Piety level at least 4
save_temporary_scope_as = holy_site_creatorexists = faith.religious_head- Their faith’s head of faith: Opinion of holy_site_creator more than 0
• 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 (18 lines of game script)
can_create_faith_holy_site_authority_trigger = {
OR = {
can_manage_faith_holy_sites_trigger = yes
AND = {
is_independent_ruler = yes
highest_held_title_tier >= tier_kingdom
piety_level >= 4
save_temporary_scope_as = holy_site_creator
exists = faith.religious_head
faith.religious_head = {
opinion = {
target = scope:holy_site_creator
value > 0
}
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_create_faith_holy_site_authority_trigger.
Buttons of the game's windows (scripted GUIs) (1)
- pam_can_create_holy_site_gui
Scripted triggers (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.20.1.2.