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

Scripted effect

results_of_patronage_spouse_education_points_effect

results_of_patronage_spouse_education_points_effect = yes

game/common/scripted_effects/00_councillor_effects.txt, line 553 (158 lines). No parameters.

results_of_patronage_spouse_education_points_effect is a scripted effect in Crusader Kings III, written at line 553 of its file. It takes no parameters: results_of_patronage_spouse_education_points_effect = yes. The game's script calls it in 5 places, among them Coming of Age (event coming_of_age.0001), Coming of Age (event coming_of_age.0002) and Coming of Age (event coming_of_age.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_councillor_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (120 lines of game script)
results_of_patronage_spouse_education_points_effect = {
	if = {
		limit = { has_variable = patronage_spouse_tutor }

		var:patronage_spouse_tutor = {
			save_scope_as = patronage_spouse_tutor
		}

		#Checks their current level
		if = {
			limit = { education_points_equals_education_rank = { RANK = 1 } }
			save_scope_value_as = {
				name = education_rank_before_patronage
				value = 1
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 2 } }
			save_scope_value_as = {
				name = education_rank_before_patronage
				value = 2
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 3 } }
			save_scope_value_as = {
				name = education_rank_before_patronage
				value = 3
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 4 } }
			save_scope_value_as = {
				name = education_rank_before_patronage
				value = 4
			}
		}
		#Adding the points to the current education
		if = {
			limit = { has_focus = education_diplomacy }
			change_variable = {
				name = education_diplomacy_variable
				add = var:patronage_spouse_tutor_points
			}
		}
		else_if = {
			limit = { has_focus = education_martial }
			change_variable = {
				name = education_martial_variable
				add = var:patronage_spouse_tutor_points
			}
		}
		else_if = {
			limit = { has_focus = education_stewardship }
			change_variable = {
				name = education_stewardship_variable
				add = var:patronage_spouse_tutor_points
			}
		}
		else_if = {
			limit = { has_focus = education_intrigue }
			change_variable = {
				name = education_intrigue_variable
				add = var:patronage_spouse_tutor_points
			}
		}
		else_if = {
			limit = { has_focus = education_learning }
			change_variable = {
				name = education_learning_variable
				add = var:patronage_spouse_tutor_points
			}
		}

		#Checks their new level
		if = {
			limit = { education_points_equals_education_rank = { RANK = 1 } }
			save_scope_value_as = {
				name = education_rank_after_patronage
				value = 1
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 2 } }
			save_scope_value_as = {
				name = education_rank_after_patronage
				value = 2
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 3 } }
			save_scope_value_as = {
				name = education_rank_after_patronage
				value = 3
			}
		}
		else_if = {
			limit = { education_points_equals_education_rank = { RANK = 4 } }
			save_scope_value_as = {
				name = education_rank_after_patronage
				value = 4
			}
		}

		#Sets flag for result
		if = {
			limit = {
				exists = scope:education_rank_before_patronage
				exists = scope:education_rank_after_patronage
			}
			if = {
				limit = { #+1
					OR = {
						AND = {
							scope:education_rank_before_patronage = 1
							scope:education_rank_after_patronage = 2
						}
						AND = {
							scope:education_rank_before_patronage = 2
							scope:education_rank_after_patronage = 3

As written in game/common/scripted_effects/00_councillor_effects.txt.

The first 120 of its 158 lines; the rest is in game/common/scripted_effects/00_councillor_effects.txt from line 553.

Where it is used

Every place in common/, events/ and history/ that calls results_of_patronage_spouse_education_points_effect.

Events (5)

Source: game/common/scripted_effects/00_councillor_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?