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

Scripted effect

create_starting_generic_misc_relic_effect

create_starting_generic_misc_relic_effect = { RARITY = … }

game/common/scripted_effects/02_starting_holy_site_relics_effects.txt, line 1469 (87 lines). Parameters: $RARITY$.

create_starting_generic_misc_relic_effect is a scripted effect in Crusader Kings III, written at line 1469 of its file. A call passes 1 parameter: RARITY. The game's script calls it in 1 place, among them create_starting_generic_relic_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/02_starting_holy_site_relics_effects.txt.

What it does

  • set_artifact_rarity_$RARITY$ = yes
  • 1 of 4 things will happen:
    • 25% (base chance; changed in play) › scope:relic_owner: “Sacred Idol” Artifact is created
    • 25% › scope:relic_owner: “Ancestral Stele” Artifact is created
    • 25% (base chance; changed in play) › scope:relic_owner: “Ritual Mask” Artifact is created
    • 25% › scope:relic_owner: “Holy Banner” Artifact is created
  • finalize_starting_relic_effect = yes

• 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 (87 lines of game script)
create_starting_generic_misc_relic_effect = {
	set_artifact_rarity_$RARITY$ = yes
	random_list = {
		25 = {
			# No imagery allowed
			modifier = {
				scope:relic_faith.main_rite = {
					rite_has_tenet = tenet_aniconism
				}
				add = -25
			}
			scope:relic_owner = {
				create_artifact = {
					name = artifact_misc_relic_idol_name
					description = artifact_misc_relic_idol_desc
					type = pedestal
					template = branch_general_template
					visuals = reliquary
					wealth = scope:wealth
					quality = scope:quality
					history = { type = created_before_history }
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
				}
			}
		}
		25 = {
			scope:relic_owner = {
				create_artifact = {
					name = artifact_misc_relic_stele_name
					description = artifact_misc_relic_stele_desc
					type = pedestal
					template = branch_general_template
					visuals = reliquary
					wealth = scope:wealth
					quality = scope:quality
					history = { type = created_before_history }
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
				}
			}
		}
		25 = {
			# No imagery allowed
			modifier = {
				scope:relic_faith.main_rite = {
					rite_has_tenet = tenet_aniconism
				}
				add = -25
			}
			scope:relic_owner = {
				create_artifact = {
					name = artifact_misc_relic_mask_name
					description = artifact_misc_relic_mask_desc
					type = pedestal
					template = branch_general_template
					visuals = reliquary
					wealth = scope:wealth
					quality = scope:quality
					history = { type = created_before_history }
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
				}
			}
		}
		25 = {
			scope:relic_owner = {
				create_artifact = {
					name = artifact_misc_relic_banner_name
					description = artifact_misc_relic_banner_desc
					type = pedestal
					template = branch_general_template
					visuals = reliquary
					wealth = scope:wealth
					quality = scope:quality
					history = { type = created_before_history }
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
				}
			}
		}
	}
	scope:newly_created_artifact = {
		set_variable = { name = relic_religion value = scope:relic_faith.religion }
	}
	finalize_starting_relic_effect = yes
}

As written in game/common/scripted_effects/02_starting_holy_site_relics_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/02_starting_holy_site_relics_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?