CK3 DatabaseCrusader Kings III · 1.20.0.3 “Crozier” · unofficial

Decision · Decisions

AI Remove Enshrined Artifacts

No cost

Requirements

The game shows no text of its own for these conditions; the script is below.

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.

Can be taken when (is_valid) (63 lines of game script)
is_available_ai_adult = yes
faith = top_liege.faith
top_liege = {
	is_ai = yes
}
faith = {
	OR = {
		NOT = {
			exists = religious_head
		}
		religious_head = {
			is_ai = yes
		}
	}
}
any_held_county = {
	any_county_holy_site = {
		holy_site_has_artifact = yes
		save_temporary_scope_as = target_holy_site
		OR = {
			AND = {
				any_holy_site_faith = {
					this = root.faith
				}
				any_holy_site_enshrined_artifact = {
					NOT = {
						is_holy_relic_for = root.faith
					}
					root = {
						can_remove_holy_site_artifact = {
							holy_site = scope:target_holy_site
							artifact = prev
						}
					}
				}
			}
			AND = {
				any_holy_site_faith = {
					this != root.faith
					num_county_followers > 0
					save_temporary_scope_as = target_faith
					root.faith = {
						faith_hostility_level = {
							target = scope:target_faith
							value >= faith_hostile_level
						}
					}
					scope:target_holy_site = {
						any_holy_site_enshrined_artifact = {
							is_holy_relic_for = scope:target_faith
							root = {
								can_remove_holy_site_artifact = {
									holy_site = scope:target_holy_site
									artifact = prev
								}
							}
						}
					}
				}
			}
		}
	}
}

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

Effects

The effect has no text of its own in the files; its script is below.

Effect (66 lines of game script)
every_held_county = {
	save_temporary_scope_as = held_county
	every_county_holy_site = {
		limit = {
			holy_site_has_artifact = yes
		}
		save_temporary_scope_as = target_holy_site
		every_holy_site_faith = {
			save_temporary_scope_as = target_faith
			if = {
				limit = {
					this = root.faith
				}
				scope:target_holy_site = {
					every_holy_site_enshrined_artifact = {
						limit = {
							NOT = {
								is_holy_relic_for = root.faith
							}
						}
						save_temporary_scope_as = target_artifact
						root = {
							remove_holy_site_artifact = {
								holy_site = scope:target_holy_site
								artifact = scope:target_artifact
							}
						}
					}
				}
			}
			else_if = {
				limit = {
					num_county_followers > 0
					root.faith = {
						faith_hostility_level = {
							target = scope:target_faith
							value >= faith_hostile_level
						}
					}
				}
				scope:target_holy_site = {
					every_holy_site_enshrined_artifact = {
						limit = {
							is_holy_relic_for = scope:target_faith
							NOT = {
								is_holy_relic_for = root.faith
								scope:target_holy_site = {
									any_holy_site_faith = {
										this = root.faith
									}
								}
							}
						}
						save_temporary_scope_as = target_artifact
						root = {
							remove_holy_site_artifact = {
								holy_site = scope:target_holy_site
								artifact = scope:target_artifact
							}
						}
					}
				}
			}
		}
	}
}

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

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