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

Scripted effect · By God Alone files

create_appropriate_relic_artifact_from_character_effect

create_appropriate_relic_artifact_from_character_effect = { CREATOR = … OWNER = … }

game/common/scripted_effects/pam_saint_effects.txt, line 306 (433 lines). Parameters: $CREATOR$, $OWNER$.

create_appropriate_relic_artifact_from_character_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 306 of its file. A call passes 2 parameters: CREATOR and OWNER. The game's script calls it in 1 place, among them pam_extract_relic_from_saint_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_saint_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (120 lines of game script)
create_appropriate_relic_artifact_from_character_effect = {
	$CREATOR$ = { save_scope_as = creator }
	$OWNER$ = { save_scope_as = owner }
	get_artifact_quality_effect = yes
	get_artifact_wealth_effect = yes
	$OWNER$ = {
		random_list = {
			20 = {
				trigger = {
					scope:creator = { has_corpse_trigger = yes }
					rite = {
						OR = {
							religion = religion:christianity_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
							religion = religion:buddhism_religion
						}
					}
					NOT = { scope:relic_site = { has_variable = pam_relic_drawn_finger } }
				}
				create_relic_artifact_effect = { NAME = finger TYPE = pedestal VISUAL = reliquary }
			}
			15 = {
				trigger = {
					scope:creator = { has_corpse_trigger = yes }
					rite = {
						OR = {
							religion = religion:christianity_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
							religion = religion:buddhism_religion
						}
					}
					scope:relic_site = {
						has_none_of_variables = {
							name = pam_relic_drawn_tooth
							name = pam_relic_drawn_tooth_buddhism
						}
					}
				}
				if = {
					limit = { religion = religion:buddhism_religion }
					create_relic_artifact_effect = { NAME = tooth_buddhism TYPE = pedestal VISUAL = reliquary }
				}
				else = {
					create_relic_artifact_effect = { NAME = tooth TYPE = pedestal VISUAL = reliquary }
				}
			}
			15 = {
				trigger = {
					scope:creator = { has_corpse_trigger = yes }
					rite = {
						OR = {
							religion = religion:christianity_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
							religion = religion:buddhism_religion
							religion = { is_in_family = rf_pagan }
							rite_has_parameter = cremation_funeral
							AND = {
								religion = religion:zoroastrianism_religion
								rite_has_doctrine = doctrine_polytheist
							}
						}
					}
					scope:relic_site = {
						has_none_of_variables = {
							name = pam_relic_drawn_rib
							name = pam_relic_drawn_rib_buddhism
						}
					}
				}
				if = {
					limit = { religion = religion:buddhism_religion }
					create_relic_artifact_effect = { NAME = rib_buddhism TYPE = pedestal VISUAL = reliquary }
				}
				else = {
					create_relic_artifact_effect = { NAME = rib TYPE = pedestal VISUAL = reliquary }
				}
			}
			15 = {
				trigger = {
					scope:creator = { has_corpse_trigger = yes }
					rite = {
						OR = {
							religion = religion:christianity_religion
							religion = religion:buddhism_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
						}
					}
					NOT = { scope:relic_site = { has_variable = pam_relic_drawn_hair } }
				}
				create_relic_artifact_effect = { NAME = hair TYPE = pedestal VISUAL = reliquary }
			}
			10 = {
				trigger = {
					rite = {
						OR = {
							religion = religion:christianity_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
						}
					}
					NOT = { scope:relic_site = { has_variable = pam_relic_drawn_vestment } }
				}
				create_relic_artifact_effect = { NAME = vestment TYPE = pedestal VISUAL = reliquary }
			}
			8 = {
				trigger = {
					scope:creator = { has_corpse_trigger = yes }
					rite = {
						NOT = { rite_has_parameter = cremation_funeral }
						OR = {
							religion = religion:christianity_religion
							religion = religion:dualism_religion
							religion = religion:yazidi_religion
						}
					}
					NOT = { scope:relic_site = { has_variable = pam_relic_drawn_hand } }

As written in game/common/scripted_effects/pam_saint_effects.txt.

The first 120 of its 433 lines; the rest is in game/common/scripted_effects/pam_saint_effects.txt from line 306.

Where it is used

Every place in common/, events/ and history/ that calls create_appropriate_relic_artifact_from_character_effect.

Source: game/common/scripted_effects/pam_saint_effects.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?