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_book_content_quality_effect

get_book_content_quality_effect = { SKILL_BASE = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 3393 (394 lines). Parameters: $SKILL_BASE$.

get_book_content_quality_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 3393 of its file. A call passes 1 parameter: SKILL_BASE. The game's script calls it in 1 place, among them create_artifact_book_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.

The comment above it in the file

Here we save the content quality of the book; how well does the author understand/know the subject? This is separate from the artifact quality value since that's about the quality of the artifact itself, not the content of the text

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)
get_book_content_quality_effect = {
	$SKILL_BASE$ = { save_scope_as = skill_base }
	save_scope_value_as = {
		name = book_content_quality
		value = {
			# Choices in events etc. will affect the quality of the artifact you get
			if = {
				limit = {
					exists = scope:skill_base.var:book_content_quality
				}
				add = {
					value = scope:skill_base.var:book_content_quality
					multiply = 10
				}
			}
			# Is it a lifestyle subject? Then it's good if the inspiration owner shares the lifestyle
			if = { # medicine
				limit = {
					has_artifact_feature = book_subject_medicine
				}
				if = {
					limit = {
						scope:skill_base = {
							has_trait = lifestyle_physician
						}
					}
					add = 30
				}
				if = {
					limit = {
						scope:skill_base = {
							has_trait = lifestyle_mystic
						}
					}
					add = 20
				}
				if = {
					limit = {
						scope:skill_base = {
							has_trait = lifestyle_herbalist
						}
					}
					add = 20
				}
				if = {
					limit = {
						scope:skill_base = {
							is_witch_trigger = yes
						}
					}
					add = 10
				}
			}
			if = { # reveler
				limit = {
					has_artifact_feature = book_subject_reveler
					scope:skill_base = {
						has_trait = lifestyle_reveler
					}
				}
				add = 30
			}
			if = { # blademaster
				limit = {
					has_artifact_feature = book_subject_blademaster
					scope:skill_base = {
						has_trait = lifestyle_blademaster
					}
				}
				add = 30
			}
			if = { # hunter
				limit = {
					has_artifact_feature = book_subject_hunter
					scope:skill_base = {
						has_trait = lifestyle_hunter
					}
				}
				add = 30
			}
			if = { # mystic
				limit = {
					has_artifact_feature = book_subject_mystic
					scope:skill_base = {
						has_trait = lifestyle_mystic
					}
				}
				add = 30
			}
			if = { # herbalist
				limit = {
					has_artifact_feature = book_subject_herbalist
					scope:skill_base = {
						has_trait = lifestyle_herbalist
					}
				}
				add = 30
			}
			if = { # cannibal
				limit = {
					has_artifact_feature = book_subject_cannibal
					scope:skill_base = {
						is_cannibal_trigger = yes
					}
				}
				add = 30
			}
			if = { # witch
				limit = {
					has_artifact_feature = book_subject_witch
					scope:skill_base = {
						is_witch_trigger = yes
					}
				}
				add = 30
			}
			if = { # deviant
				limit = {
					has_artifact_feature = book_subject_deviant
					scope:skill_base = {

As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.

The first 120 of its 394 lines; the rest is in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt from line 3393.

Where it is used

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

Scripted effects (1)

Source: game/common/scripted_effects/01_ep1_court_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?