Scripted effect
cultural_traditions_education_boost_effect
cultural_traditions_education_boost_effect = yesgame/common/scripted_effects/00_education_effects.txt, line 2515 (109 lines). No parameters.
cultural_traditions_education_boost_effect is a scripted effect in Crusader Kings III, written at line 2515 of its file. It takes no parameters: cultural_traditions_education_boost_effect = yes. The game's script calls it in 5 places, among them Coming of Age (event coming_of_age.0001), Coming of Age (event coming_of_age.0002) and Coming of Age (event coming_of_age.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.
What it does
• 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 (109 lines of game script)
cultural_traditions_education_boost_effect = {
# FP3 Beacon of Learning
if = {
limit = {
any_relation = {
type = guardian
culture = { has_cultural_parameter = guardian_education_better_outcomes }
}
}
if = {
limit = { exists = var:education_diplomacy_variable }
change_variable = {
name = education_diplomacy_variable
add = {
value = var:education_diplomacy_variable
divide = 4
round = yes
max = 3 # This effect shouldn't be better than a good court tutor
}
}
}
else_if = {
limit = { exists = var:education_martial_variable }
change_variable = {
name = education_martial_variable
add = {
value = var:education_martial_variable
divide = 4
round = yes
max = 3
}
}
}
else_if = {
limit = { exists = var:education_intrigue_variable }
change_variable = {
name = education_intrigue_variable
add = {
value = var:education_intrigue_variable
divide = 4
round = yes
max = 3
}
}
}
else_if = {
limit = { exists = var:education_stewardship_variable }
change_variable = {
name = education_stewardship_variable
add = {
value = var:education_stewardship_variable
divide = 4
round = yes
max = 3
}
}
}
else_if = {
limit = { exists = var:education_learning_variable }
change_variable = {
name = education_learning_variable
add = {
value = var:education_learning_variable
divide = 4
round = yes
max = 3
}
}
}
}
if = {
limit = {
culture = {
has_cultural_parameter = diplomacy_education_better_outcomes
}
has_focus = education_diplomacy
}
random_list = {
60 = {
change_variable = {
name = education_diplomacy_variable
add = 1
}
}
40 = {
change_variable = {
name = education_diplomacy_variable
add = 0
}
}
}
}
if = {
limit = {
culture = {
has_cultural_parameter = martial_education_worse_outcomes
}
has_focus = education_martial
exists = var:education_martial_variable
var:education_martial_variable > 0
}
change_variable = {
name = education_martial_variable
add = -1
}
}
}As written in game/common/scripted_effects/00_education_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls cultural_traditions_education_boost_effect.
Events (5)
- Coming of Age
coming_of_age.0001 - Coming of Age
coming_of_age.0002 - Coming of Age
coming_of_age.0003 - Coming of Age
coming_of_age.0004 - Coming of Age
coming_of_age.0005
Source: game/common/scripted_effects/00_education_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.