CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger · By God Alone files

pam_has_free_primary_site_trigger

pam_has_free_primary_site_trigger = yes

game/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

    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 }

• 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.

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.

Spotted a mistake on this page?