Scripted effect · Wards and Wardens files
disburse_adult_education_reward_effect
disburse_adult_education_reward_effect = yesgame/common/scripted_effects/05_dlc_bp2_effects.txt, line 289 (187 lines). No parameters.
disburse_adult_education_reward_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 289 of its file. It takes no parameters: disburse_adult_education_reward_effect = yes. The game's script calls it in 1 place, among them adult_education_completed_log_entry_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_bp2_effects.txt.
What it does
- Depending on has character flag:
- When has character flag is increase education level 1:
- When has character flag is increase education level 2:
- When has character flag is increase education level 3:
- When has character flag is increase education level 4:
- Depending on has character flag:
- When has character flag is perfect studies reward:
add_relevant_lifestyle_perk_point_effect = { NUMBER = 3 }
- When has character flag is high studies reward:
add_relevant_lifestyle_perk_point_effect = { NUMBER = 2 }
- When has character flag is mid studies reward:
add_relevant_lifestyle_perk_point_effect = { NUMBER = 1 }
- When has character flag is low studies reward:
bp2_lifestyle_xp_gain_per_type_effect = { VALUE = major }
- When has character flag is perfect studies reward:
If
scope:activity:has_activity_option = { category = adult_education_option_books option = adult_education_books_good }
- scope:host: Have a Royal Court
Then
- A lot of gold was invested in buying rare and precious books
• 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)
disburse_adult_education_reward_effect = {
switch = { # Hand out education traits
trigger = has_character_flag
increase_education_level_1 = {
increase_education_level_1_effect = yes
remove_character_flag = increase_education_level_1
}
increase_education_level_2 = {
increase_education_level_2_effect = yes
remove_character_flag = increase_education_level_2
}
increase_education_level_3 = {
increase_education_level_3_effect = yes
remove_character_flag = increase_education_level_3
}
increase_education_level_4 = {
increase_education_level_4_effect = yes
remove_character_flag = increase_education_level_4
}
}
switch = { # Hand out lifestyle perks/xp
trigger = has_character_flag
perfect_studies_reward = {
add_relevant_lifestyle_perk_point_effect = { NUMBER = 3 }
remove_character_flag = perfect_studies_reward
}
high_studies_reward = {
add_relevant_lifestyle_perk_point_effect = { NUMBER = 2 }
remove_character_flag = high_studies_reward
}
mid_studies_reward = {
add_relevant_lifestyle_perk_point_effect = { NUMBER = 1 }
remove_character_flag = mid_studies_reward
}
low_studies_reward = {
bp2_lifestyle_xp_gain_per_type_effect = { VALUE = major }
remove_character_flag = low_studies_reward
}
}
# Options rewards
if = {
limit = {
scope:activity = {
has_activity_option = {
category = adult_education_option_books
option = adult_education_books_good
}
}
has_dlc_feature = royal_court
scope:host = { has_royal_court = yes }
}
custom_tooltip = adult_education_books_good_reward
hidden_effect = {
random_dummy_gender_effect = yes
create_artifact_book_effect = {
OWNER = scope:host
CREATOR = scope:dummy_gender
SET_SUBJECT = flag:no
SET_TOPIC = flag:no
}
hidden_effect_new_object = {
scope:newly_created_artifact = {
set_artifact_rarity = illustrious
}
}
scope:activity = {
add_to_variable_list = {
name = artifact_rewards
target = scope:newly_created_artifact
}
}
}
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = adult_education_option_books
option = adult_education_books_good
}
}
}
custom_tooltip = adult_education_books_good_reward
hidden_effect = {
save_temporary_scope_value_as = {
name = should_be_trinket
value = yes
}
random_dummy_gender_effect = yes
save_scope_value_as = {
name = quality
value = 50
}
save_scope_value_as = {
name = wealth
value = 50
}
create_artifact_book_effect = {
OWNER = scope:host
CREATOR = scope:dummy_gender
SET_SUBJECT = flag:no
SET_TOPIC = flag:no
}
hidden_effect_new_object = {
scope:newly_created_artifact = {
set_artifact_rarity = illustrious
}
}
scope:activity = {
add_to_variable_list = {
name = artifact_rewards
target = scope:newly_created_artifact
}
}
}
if = {
limit = {
has_trait = education_diplomacy
}
add_diplomacy_skill = 1As written in game/common/scripted_effects/05_dlc_bp2_effects.txt.
The first 120 of its 187 lines; the rest is in game/common/scripted_effects/05_dlc_bp2_effects.txt from line 289.
Where it is used
Every place in common/, events/ and history/ that calls disburse_adult_education_reward_effect.
Scripted effects (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.