CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Wards and Wardens files

disburse_adult_education_reward_effect

disburse_adult_education_reward_effect = yes

game/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

• 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 = 1

As 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.

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.

Spotted a mistake on this page?