Scripted effect · Wards and Wardens files
resolve_adult_education_success_reward_effect
resolve_adult_education_success_reward_effect = yesgame/common/scripted_effects/05_dlc_bp2_effects.txt, line 3 (235 lines). No parameters.
resolve_adult_education_success_reward_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 3 of its file. It takes no parameters: resolve_adult_education_success_reward_effect = yes. The game's script calls it in 1 place, among them University Visit (activity). Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_bp2_effects.txt.
The comment above it in the file
Adult Education rewards effects Account for the state of our variables, apply flags that are resolved in disburse_adult_education_reward_effect
What it does
- Their activity:
If
activity_location = { is_province_valid_confucian_education_trigger = yes }
Then
scope:host:- If does not have the Trait: Confucian Education:
- Gains the Trait Confucian Education
- Confucian Education experience changes
- Otherwise: Confucian Education experience changes
- If does not have the Trait: Confucian 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 (120 lines of game script)
resolve_adult_education_success_reward_effect = {
involved_activity ?= {
#Perfect studies - 75-100
if = {
limit = { var:activity_special_type_progression >= 75 }
scope:host = {
add_character_flag = perfect_studies_reward
if = { #100% from 1 to 2
limit = { has_level_1_education_trait_trigger = yes }
add_character_flag = increase_education_level_1
}
else_if = { #100% chance from 2 to 3
limit = { has_level_2_education_trait_trigger = yes }
add_character_flag = increase_education_level_2
}
else_if = { #85% chance from 3 to 4
limit = { has_level_3_education_trait_trigger = yes }
random = {
chance = 85
add_character_flag = increase_education_level_3
}
}
else_if = { #60% chance from 4 to 5
limit = { has_level_4_education_trait_trigger = yes }
random = {
chance = 60
modifier = {
involved_activity = {
has_activity_option = {
category = adult_education_option_books
option = adult_education_books_normal
}
}
add = 5
}
add_character_flag = increase_education_level_4
}
}
}
}
#High-end studies - 50-75
else_if = {
limit = {
var:activity_special_type_progression < 75
var:activity_special_type_progression >= 50
}
scope:host = {
add_character_flag = high_studies_reward
if = { #100% from 1 to 2
limit = { has_level_1_education_trait_trigger = yes }
add_character_flag = increase_education_level_1
}
else_if = { #85% from 2 to 3
limit = { has_level_2_education_trait_trigger = yes }
random = {
chance = 85
add_character_flag = increase_education_level_2
}
}
else_if = { #65% from 3 to 4
limit = { has_level_3_education_trait_trigger = yes }
random = {
chance = 65
add_character_flag = increase_education_level_3
}
}
else_if = { #40% chance from 4 to 5
limit = { has_level_4_education_trait_trigger = yes }
random = {
chance = 40
modifier = {
involved_activity = {
has_activity_option = {
category = adult_education_option_books
option = adult_education_books_normal
}
}
add = 5
}
add_character_flag = increase_education_level_4
}
}
}
}
#OK studies - 25-50
else_if = {
limit = {
var:activity_special_type_progression < 50
var:activity_special_type_progression >= 25
}
scope:host = {
add_character_flag = mid_studies_reward
if = { #85% from 1 to 2
limit = { has_level_1_education_trait_trigger = yes }
random = {
chance = 85
add_character_flag = increase_education_level_1
}
}
else_if = { #65% from 2 to 3
limit = { has_level_2_education_trait_trigger = yes }
random = {
chance = 65
add_character_flag = increase_education_level_2
}
}
else_if = { #40% from 3 to 4
limit = { has_level_3_education_trait_trigger = yes }
random = {
chance = 40
add_character_flag = increase_education_level_3
}
}
else_if = { #15% chance from 4 to 5
limit = { has_level_4_education_trait_trigger = yes }
random = {
chance = 15
modifier = {
involved_activity = {
has_activity_option = {As written in game/common/scripted_effects/05_dlc_bp2_effects.txt.
The first 120 of its 235 lines; the rest is in game/common/scripted_effects/05_dlc_bp2_effects.txt from line 3.
Where it is used
Every place in common/, events/ and history/ that calls resolve_adult_education_success_reward_effect.
Activities (1)
Source: game/common/scripted_effects/05_dlc_bp2_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.