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

Decision · Decisions

AI Enshrine Artifact

No cost

Requirements

  • has_any_artifact = yes
  • Any character artifact:
    • is_holy_relic = yes
    • is_holy_relic_for = root.faith
    • Your faith › Any holy site › You:
      • can_enshrine_holy_site_artifact = { holy_site = prev artifact = scope:artifact_to_enshrine }
  • Also needed: available (an adult, not in an army, not imprisoned, not incapable) · none of the traits Consumption, Typhus, Bubonic Plague, Smallpox, Measles, Bloody Flux · not busy in an Activity · not planning another Activity

Who sees it

The decision only appears in the list for a character who meets these:

  • Is played by the AI
Can be taken when (is_valid) (17 lines of game script)
is_available_ai_adult = yes
has_any_artifact = yes
any_character_artifact = {
	is_holy_relic = yes
	is_holy_relic_for = root.faith
	save_temporary_scope_as = artifact_to_enshrine
	root.faith = {
		any_holy_site = {
			root = {
				can_enshrine_holy_site_artifact = {
					holy_site = prev
					artifact = scope:artifact_to_enshrine
				}
			}
		}
	}
}

As written in game/common/decisions/50_holy_site_decisions.txt.

Shown to a character when (is_shown) (1 line of game script)
is_ai = yes

As written in game/common/decisions/50_holy_site_decisions.txt.

Effects

  • enshrine_holy_site_artifact = { holy_site = scope:target_holy_site artifact = scope:artifact_to_enshrine }
Effect (49 lines of game script)
ordered_character_artifact = {
	limit = {
		is_holy_relic_for = root.faith
	}
	max = 1
	order_by = artifact_rarity
	save_scope_as = artifact_to_enshrine
}
if = {
	limit = {
		exists = scope:artifact_to_enshrine
	}
	root.faith = {
		random_eminent_holy_site = {
			limit = {
				total_active_artifact_rarity_sum = 0
				root = {
					can_enshrine_holy_site_artifact = {
						holy_site = prev
						artifact = scope:artifact_to_enshrine
					}
				}
			}
			save_scope_as = target_holy_site
		}
		if = {
			limit = {
				NOT = {
					exists = scope:target_holy_site
				}
			}
			random_holy_site = {
				limit = {
					root = {
						can_enshrine_holy_site_artifact = {
							holy_site = prev
							artifact = scope:artifact_to_enshrine
						}
					}
				}
				save_scope_as = target_holy_site
			}
		}
	}
}
enshrine_holy_site_artifact = {
	holy_site = scope:target_holy_site
	artifact = scope:artifact_to_enshrine
}

As written in game/common/decisions/50_holy_site_decisions.txt.

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

Group
Decisions
Major
no
ID
ai_enshrine_artifact_decision

AI Enshrine Artifact is a decision in Crusader Kings III (Decisions). It needs available (an adult, not in an army, not imprisoned, not incapable), none of the traits Consumption, Typhus, Bubonic Plague, Smallpox, Measles, Bloody Flux, not busy in an Activity and 1 more (listed below). Patch 1.20.1.2, from game/common/decisions/50_holy_site_decisions.txt.

for a guide, post or blog
Quick answers (1)
What are the requirements for AI Enshrine Artifact?
available (an adult, not in an army, not imprisoned, not incapable), none of the traits Consumption, Typhus, Bubonic Plague, Smallpox, Measles, Bloody Flux, not busy in an Activity and not planning another Activity; the full conditions are on the page (patch 1.20.1.2).

Source: game/common/decisions/50_holy_site_decisions.txt and the English localisation, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page, or have an idea for the site?