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

grant_learning_inspiration_to_character_effect

grant_learning_inspiration_to_character_effect = { CHARACTER = … }

game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt, line 232 (81 lines). Parameters: $CHARACTER$.

grant_learning_inspiration_to_character_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 232 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 1 place, among them Create Books & Tapestries (court task). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt.

What it does

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

The script as written (81 lines of game script)
grant_learning_inspiration_to_character_effect = {
	$CHARACTER$ = { 
		if = { 
			limit = { NOT = { exists = inspiration } }
			# More likely to get an certain Inspiration type if we will produce higher quality Artifacts of that type.
			random_list = {
				10 = {
					compare_modifier = {
						value = book_inspiration_average_skill_value
						multiplier = 6
					}
					modifier = {
						has_court_position = court_poet_court_position
						add = 15
					}
					modifier = {
						culture = { #Some cultures are more likely to pick this vocation than others
							OR = {
								has_cultural_tradition = tradition_language_scholars
								has_cultural_tradition = tradition_philosopher_culture
								has_cultural_tradition = tradition_legalistic
							}
						}
						add = 5
					}
					modifier = {
						factor = 0.5
						liege ?= {
							any_equipped_character_artifact = {
								count >= 2
								artifact_slot_type = book
							}
						}
					}
					create_inspiration = book_inspiration
				}
				10 = { # Increased weight due to a low number of Weavers appearing in the world (probably a lack of high-diplomacy courtiers).
					trigger = {
						diplomacy >= 10
					}
					compare_modifier = {
						value = weaver_inspiration_average_skill_value
						multiplier = 8.4
					}
					modifier = {
						culture = { #Some cultures are more likely to pick this vocation than others
							has_cultural_parameter = improved_weaver_inspiration
						}
						add = 10
					}
					modifier = {
						factor = 0.1
						liege ?= {
							any_equipped_character_artifact = {
								count >= 3
								artifact_slot_type = wall_big
							}
						}
					}
					create_inspiration = weaver_inspiration
				}
				1 = {
					modifier = {
						add = 30
						has_trait = lifestyle_mystic
					}
					compare_modifier = {
						value = learning
						multiplier = 2
					}
					modifier = { #Alchemy arrived to Europe in the 13th century, but existed basically everywhere else before that
						factor = 0.1
						culture_has_european_heritage_pillar_trigger = yes
						current_year < 1300
					}
					create_inspiration = alchemy_inspiration
				}
			}
		}
	}
}

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

Where it is used

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

Court position tasks (1)

  • Create Books & Tapestries

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