Scripted effect
downgrade_education_effect
downgrade_education_effect = { EDUCATION = … }game/common/scripted_effects/00_education_effects.txt, line 3516 (30 lines). Parameters: $EDUCATION$.
downgrade_education_effect is a scripted effect in Crusader Kings III, written at line 3516 of its file. A call passes 1 parameter: EDUCATION. The game's script calls it in 1 place, among them Lessons Unlearned (event elder_events.1300). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.
What it does
- If has the Trait: education … 5:
- Loses the Trait education … 5
add_trait_force_tooltip = education_$EDUCATION$_4
- Else, if has the Trait: education … 4:
- Loses the Trait education … 4
add_trait_force_tooltip = education_$EDUCATION$_3
- Else, if has the Trait: education … 3:
- Loses the Trait education … 3
add_trait_force_tooltip = education_$EDUCATION$_2
- Else, if has the Trait: education … 2:
- Loses the Trait education … 2
add_trait_force_tooltip = education_$EDUCATION$_1
• 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 (30 lines of game script)
downgrade_education_effect = {
if = {
limit = {
has_trait = education_$EDUCATION$_5
}
remove_trait = education_$EDUCATION$_5
add_trait_force_tooltip = education_$EDUCATION$_4
}
else_if = {
limit = {
has_trait = education_$EDUCATION$_4
}
remove_trait = education_$EDUCATION$_4
add_trait_force_tooltip = education_$EDUCATION$_3
}
else_if = {
limit = {
has_trait = education_$EDUCATION$_3
}
remove_trait = education_$EDUCATION$_3
add_trait_force_tooltip = education_$EDUCATION$_2
}
else_if = {
limit = {
has_trait = education_$EDUCATION$_2
}
remove_trait = education_$EDUCATION$_2
add_trait_force_tooltip = education_$EDUCATION$_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 downgrade_education_effect.
Events (1)
- Lessons Unlearned
elder_events.1300
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.