Scripted trigger · By God Alone files
pam_has_free_primary_site_trigger
pam_has_free_primary_site_trigger = yesgame/common/scripted_triggers/pam_saint_triggers.txt, line 119 (22 lines). No parameters.
pam_has_free_primary_site_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 119 of its file. It takes no parameters: pam_has_free_primary_site_trigger = yes (or no). The game's script calls it in 3 places, among them … … (decision), pam_pick_actor_consecration_province_effect (scripted effect) and pam_has_consecration_site_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/pam_saint_triggers.txt.
The comment above it in the file
Does the actor have a free primary consecration site? Cathedral faiths: an unoccupied cathedral in their realm. Others: an unoccupied holy site of their faith in realm.
What it checks
If
Then
One of these
All of these
pam_character_has_cathedral_trigger = yes- Their domicile:
domicile_location = { … }
or
Any realm province:- Their barony:
pam_site_free_trigger = yes
- Any province domicile:
owner = { pam_character_has_cathedral_trigger = yes }
- Their barony:
Otherwise
- Any realm province:
- Their barony:
is_holy_site_of = scope:pam_primary_site_actor.faith
NOT = { has_travel_point_of_interest = poi_buried_saint }
- Their barony:
• 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 (22 lines of game script)
pam_has_free_primary_site_trigger = {
trigger_if = {
limit = { pam_faith_uses_cathedrals_trigger = yes }
OR = {
AND = {
pam_character_has_cathedral_trigger = yes
domicile ?= { domicile_location = { barony ?= { pam_site_free_trigger = yes } } }
}
any_realm_province = {
barony ?= { pam_site_free_trigger = yes }
any_province_domicile = { owner = { pam_character_has_cathedral_trigger = yes } }
}
}
}
trigger_else = {
save_temporary_scope_as = pam_primary_site_actor
any_realm_province = {
barony ?= { is_holy_site_of = scope:pam_primary_site_actor.faith }
NOT = { has_travel_point_of_interest = poi_buried_saint }
}
}
}As written in game/common/scripted_triggers/pam_saint_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_has_free_primary_site_trigger.
Decisions (1)
Scripted effects (1)
Scripted triggers (1)
Source: game/common/scripted_triggers/pam_saint_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.