Scripted effect · The Royal Court files
grant_inspiration_to_character_no_court_artifacts_effect
grant_inspiration_to_character_no_court_artifacts_effect = { CHARACTER = … }game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt, line 396 (141 lines). Parameters: $CHARACTER$.
grant_inspiration_to_character_no_court_artifacts_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 396 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 3 places, among them Perform Tea Ceremony (decision), on_travel_plan_movement (on action) and three_year_playable_pulse (on action). 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 (120 lines of game script)
grant_inspiration_to_character_no_court_artifacts_effect = {
save_scope_as = court_owner
$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 = weapon_inspiration_average_skill_value
multiplier = {
value = 5
#Lower the military inspirations for Advancement Movement
if = {
limit = {
scope:court_owner = {
top_participant_group:dynastic_cycle ?= {
participant_group_type = advancement_movement
}
}
}
multiply = 0
}
}
}
modifier = { #Some cultures are more likely to pick this vocation than others
add = 5
culture = {
has_cultural_tradition = tradition_metal_craftsmanship
}
}
create_inspiration = weapon_inspiration
}
10 = {
compare_modifier = {
value = armor_inspiration_average_skill_value
multiplier = {
value = 5
#Lower the military inspirations for Advancement Movement
if = {
limit = {
scope:court_owner = {
top_participant_group:dynastic_cycle ?= {
participant_group_type = advancement_movement
}
}
}
multiply = 0
}
}
}
modifier = { #Some cultures are more likely to pick this vocation than others
add = 5
culture = {
has_cultural_tradition = tradition_frugal_armorsmiths
}
}
create_inspiration = armor_inspiration
}
5 = {
compare_modifier = {
value = smith_inspiration_average_skill_value
multiplier = 5
}
modifier = { #Some cultures are more likely to pick this vocation than others
add = 10
culture = {
OR = {
has_cultural_tradition = tradition_metal_craftsmanship
has_cultural_tradition = tradition_ancient_miners
}
}
}
create_inspiration = smith_inspiration
}
5 = {
compare_modifier = {
value = book_inspiration_average_skill_value
multiplier = 5
}
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
}
create_inspiration = book_inspiration
}
1 = {
modifier = {
add = 30
has_trait = lifestyle_mystic
}
modifier = { #Alchemy arrived to Europe in the 13th century, but existed basically everywhere else before that
add = -20
culture_has_european_heritage_pillar_trigger = yes
}
compare_modifier = {
value = learning
multiplier = 2
}
create_inspiration = alchemy_inspiration
}
5 = {
compare_modifier = {
value = weapon_inspiration_average_skill_value
multiplier = {
value = 6
#Lower the military inspirations for Advancement Movement
if = {
limit = {
scope:court_owner = {As written in game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt.
The first 120 of its 141 lines; the rest is in game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt from line 396.
Where it is used
Every place in common/, events/ and history/ that calls grant_inspiration_to_character_no_court_artifacts_effect.
Decisions (1)
On actions (the game's own hooks) (2)
- on_travel_plan_movement
- three_year_playable_pulse
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.