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

Scripted effect · The Royal Court files

get_sword_decoration_effect

get_sword_decoration_effect = yes

game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 9357 (28 lines). No parameters.

get_sword_decoration_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 9357 of its file. It takes no parameters: get_sword_decoration_effect = yes. The game's script calls it in 2 places, among them create_artifact_weapon_effect (scripted effect) and get_dagger_decoration_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.

What it does

  • 1 of 4 things will happen:
    • 40%:
      • set_artifact_feature_group = blade_decoration
      • set_artifact_feature_group = hilt_decoration
    • 30%:
      • set_artifact_feature_group = blade_decoration
    • 20%:
      • set_artifact_feature_group = hilt_decoration
    • 10% (base chance; changed in play): Nothing else happens

• 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 (28 lines of game script)
get_sword_decoration_effect = {
	random_list = {
		40 = {
			trigger = { ep1_extravagant_artifact_decorations_trigger = yes }
			set_artifact_feature_group = blade_decoration
			set_artifact_feature_group = hilt_decoration
		}
		30 = {
			trigger = {	ep1_advanced_artifact_decorations_trigger = yes }
			set_artifact_feature_group = blade_decoration
		}
		20 = {
			trigger = {	ep1_simple_artifact_decorations_trigger = yes }
			set_artifact_feature_group = hilt_decoration
		}
		10 = {
			trigger = {	ep1_no_artifact_decorations_trigger = yes }
			modifier = {
				add = 30
				AND = {
					exists = scope:inspiration_owner
					scope:inspiration_owner = { ai_greed <= -40	}
				}
			}
			# No decoration
		}
	}
}

As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_ep1_artifact_creation_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?