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_adjacent_site_trigger

pam_has_free_adjacent_site_trigger = yes

game/common/scripted_triggers/pam_saint_triggers.txt, line 171 (12 lines). No parameters.

pam_has_free_adjacent_site_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 171 of its file. It takes no parameters: pam_has_free_adjacent_site_trigger = yes (or no). The game's script calls it in 2 places, among them 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

Once every primary site is taken, may the actor consecrate in a neighbouring province instead? True when a free county-capital barony in realm borders a county that holds one of the actor's primary sites (one candidate per county, keeping the picker focused).

What it checks

• 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 (12 lines of game script)
pam_has_free_adjacent_site_trigger = {
	save_temporary_scope_as = pam_adjacency_actor
	any_realm_province = {
		is_county_capital = yes
		NOT = { has_travel_point_of_interest = poi_buried_saint }
		county = {
			any_neighboring_county = {
				pam_county_has_actor_primary_site_trigger = { ACTOR = scope:pam_adjacency_actor }
			}
		}
	}
}

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_adjacent_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?