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_cloth_type_sturdy_effect

get_cloth_type_sturdy_effect = { SCOPE_NAME = … }

game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 890 (58 lines). Parameters: $SCOPE_NAME$.

get_cloth_type_sturdy_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 890 of its file. A call passes 1 parameter: SCOPE_NAME. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.

The comment above it in the file

A pared-down list of cloth with most purely decorative cloths removed. Used for cordage and structurally-important constructions.

What it does

  • If

    a check the game hides

    Then

    • 1 of 6 things will happen:
      • 16%: Nothing else happens
      • 5%: Nothing else happens
      • 16%: Nothing else happens
      • 21%: Nothing else happens
      • 16%: Nothing else happens
      • 26%: 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 (58 lines of game script)
get_cloth_type_sturdy_effect = {

	if = {
		limit = {
			NOT = { exists = scope:$SCOPE_NAME$ }
		}
		random_list = {
			# Wool
			# - Found literally everywhere
			30 = {  # Simple wool fabric, can vary wildly in quality and appearance depending on the yarn used to wave it as well as the weaver's skill.
				trigger = {	artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 70 } }
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:wool }
			}
			10 = {  # Wool from the very first shearing of a sheep. Soft, elastic, and slippery, used in high-grade textiles.
				trigger = {	artifact_value_trigger = { VALUE = scope:wealth MIN = 70 MAX = 999 } }
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:lambswool }
			}

			# Silk
			#  - Found pretty much everywhere but subsaharan Africa.
			30 = { # Plain silk weave. Average quality, but carries some statue and value simply due to its material.
				trigger = {
					artifact_value_trigger = { VALUE = scope:wealth MIN = 30 MAX = 999 }
					NOT = { artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_no_silk } }
				}
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:silk }
			}

			# Linen
			# - Modern Germany was a major producer of linen, which was exported throughout all of Europe (but not really beyond that)
			40 = { # Plain weave flax fibers. Consistently average in quality and price, saw widespread use throughout the medieval era.
				trigger = {
					artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 }
					artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_linen }
				}
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:linen }
			}
			30 = { # Twill cotton-linen blend. As it a mixed fabric, practicing Jews are forbidden to wear it.
				trigger = {
					artifact_value_trigger = { VALUE = scope:wealth MIN = 40 MAX = 999 }
					artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_cotton }
					NOT = { scope:owner.religion = religion:judaism_religion }
				}
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:fustian }
			}

			# Cotton
			# - Cotton has been grown in Egypt since ancient times, spread to Etheopia early on and then in the late medieval period to Europe and India.
			50 = { # Plain weave cotton
				trigger = {
					artifact_value_trigger = { VALUE = scope:wealth MIN = 0 MAX = 999 }
					artifact_region_trigger = { CHARACTER = scope:owner REGION = material_cloth_cotton }
				}
				save_scope_value_as = { name = $SCOPE_NAME$	value = flag:cotton }
			}
		}
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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?