Scripted effect
dynasty_legacy_education_boost_effect
dynasty_legacy_education_boost_effect = yesgame/common/scripted_effects/00_education_effects.txt, line 2420 (94 lines). No parameters.
dynasty_legacy_education_boost_effect is a scripted effect in Crusader Kings III, written at line 2420 of its file. It takes no parameters: dynasty_legacy_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
If
- Is a member of a Dynasty
- Their dynasty: The Dynasty has the Studious Youth Legacy
Then
If
has_focus = education_diplomacy
Then
- 1 of 2 things will happen:
- 60%: Nothing else happens
- 40%: Nothing else happens
Else if
has_focus = education_martial
Then
- 1 of 2 things will happen:
- 60%: Nothing else happens
- 40%: Nothing else happens
Else if
has_focus = education_stewardship
Then
- 1 of 2 things will happen:
- 60%: Nothing else happens
- 40%: Nothing else happens
Else if
has_focus = education_intrigue
Then
- 1 of 2 things will happen:
- 60%: Nothing else happens
- 40%: Nothing else happens
Else if
has_focus = education_learning
Then
- 1 of 2 things will happen:
- 60%: Nothing else happens
- 40%: 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 (94 lines of game script)
dynasty_legacy_education_boost_effect = {
if = {
limit = {
has_dynasty = yes
dynasty = { has_dynasty_perk = kin_legacy_2 }
}
if = {
limit = { has_focus = education_diplomacy }
random_list = {
60 = {
change_variable = {
name = education_diplomacy_variable
add = 2
}
}
40 = {
change_variable = {
name = education_diplomacy_variable
add = 3
}
}
}
}
else_if = {
limit = { has_focus = education_martial }
random_list = {
60 = {
change_variable = {
name = education_martial_variable
add = 2
}
}
40 = {
change_variable = {
name = education_martial_variable
add = 3
}
}
}
}
else_if = {
limit = { has_focus = education_stewardship }
random_list = {
60 = {
change_variable = {
name = education_stewardship_variable
add = 2
}
}
40 = {
change_variable = {
name = education_stewardship_variable
add = 3
}
}
}
}
else_if = {
limit = { has_focus = education_intrigue }
random_list = {
60 = {
change_variable = {
name = education_intrigue_variable
add = 2
}
}
40 = {
change_variable = {
name = education_intrigue_variable
add = 3
}
}
}
}
else_if = {
limit = { has_focus = education_learning }
random_list = {
60 = {
change_variable = {
name = education_learning_variable
add = 2
}
}
40 = {
change_variable = {
name = education_learning_variable
add = 3
}
}
}
}
}
}As written in game/common/scripted_effects/00_education_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls dynasty_legacy_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.