Scripted effect
education_point_add_general_effect
education_point_add_general_effect = { VALUE = … }game/common/scripted_effects/00_education_effects.txt, line 440 (20 lines). Parameters: $VALUE$.
education_point_add_general_effect is a scripted effect in Crusader Kings III, written at line 440 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 1 place, among them tgp_japan_schoolhouse_education_boost_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.
What it does
- Depending on has focus:
- When has focus is Diplomacy Education:
education_point_add_point_effect = { SKILL = diplomacy VALUE = $VALUE$ }
- When has focus is Martial Education:
education_point_add_point_effect = { SKILL = martial VALUE = $VALUE$ }
- When has focus is Stewardship Education:
education_point_add_point_effect = { SKILL = stewardship VALUE = $VALUE$ }
- When has focus is Intrigue Education:
education_point_add_point_effect = { SKILL = intrigue VALUE = $VALUE$ }
- When has focus is Learning Education:
education_point_add_point_effect = { SKILL = learning VALUE = $VALUE$ }
- When has focus is Diplomacy Education:
• 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 (20 lines of game script)
education_point_add_general_effect = {
switch = {
trigger = has_focus
education_diplomacy = {
education_point_add_point_effect = { SKILL = diplomacy VALUE = $VALUE$ }
}
education_martial = {
education_point_add_point_effect = { SKILL = martial VALUE = $VALUE$ }
}
education_stewardship = {
education_point_add_point_effect = { SKILL = stewardship VALUE = $VALUE$ }
}
education_intrigue = {
education_point_add_point_effect = { SKILL = intrigue VALUE = $VALUE$ }
}
education_learning = {
education_point_add_point_effect = { SKILL = learning VALUE = $VALUE$ }
}
}
}As written in game/common/scripted_effects/00_education_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls education_point_add_general_effect.
Scripted effects (1)
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.