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_can_extract_relic_from_saint_trigger

pam_can_extract_relic_from_saint_trigger = { EXTRACTOR = … SAINT = … }

game/common/scripted_triggers/pam_saint_triggers.txt, line 215 (16 lines). Parameters: $EXTRACTOR$, $SAINT$.

pam_can_extract_relic_from_saint_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 215 of its file. A call passes 2 parameters: EXTRACTOR and SAINT. The game's script calls it in 4 places, among them Extract a Relic (decision), Tomb of … (travel) and At the Tomb of … (event pam_saint_events.0007). Patch 1.20.1.2, from game/common/scripted_triggers/pam_saint_triggers.txt.

The comment above it in the file

Can $EXTRACTOR$ draw another relic from this site? The AI always leaves one relic
$SAINT$ is the saint being evaluated

What it checks

  • $SAINT$ = { is_alive = no }
  • pam_saint_is_buried_in_my_lands_trigger = { EXTRACTOR = $EXTRACTOR$ }
  • If

    • $EXTRACTOR$ = { is_ai = yes }

    Then

    • $SAINT$ = { remaining_saint_relics > 1 }

    Otherwise

    • $SAINT$ = { remaining_saint_relics > 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 (16 lines of game script)
pam_can_extract_relic_from_saint_trigger = {
	# add_saint deliberately accepts living characters for modders, so the registry can hold one - never offer them as a relic source
	$SAINT$ = { is_alive = no }
	pam_saint_is_buried_in_my_lands_trigger = { EXTRACTOR = $EXTRACTOR$ }
	trigger_if = {
		limit = { $EXTRACTOR$ = { is_ai = yes } }
		$SAINT$ = {
			remaining_saint_relics > 1
		}
	}
	trigger_else = {
		$SAINT$ = {
			remaining_saint_relics > 0
		}
	}
}

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

Decisions (1)

Travel (1)

  • Tomb of …

Events (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.

Spotted a mistake on this page?