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_university_education_points_effect

results_of_university_education_points_effect = yes

game/common/scripted_effects/00_education_effects.txt, line 2168 (165 lines). No parameters.

results_of_university_education_points_effect is a scripted effect in Crusader Kings III, written at line 2168 of its file. It takes no parameters: results_of_university_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_education_effects.txt.

What it does

  • If has the Modifier: Studying At University:
    • If

      • has_focus = education_diplomacy

      Then

      • 1 of 2 things will happen:
        • 60%: Nothing else happens
        • 40%: Nothing else happens

      Else if

      • has_focus = education_martial

      Then

      • 1 of 2 things will happen:
        • 60%: Nothing else happens
        • 40%: Nothing else happens

      Else if

      • has_focus = education_stewardship

      Then

      • 1 of 2 things will happen:
        • 60%: Nothing else happens
        • 40%: Nothing else happens

      Else if

      • has_focus = education_intrigue

      Then

      • 1 of 2 things will happen:
        • 60%: Nothing else happens
        • 40%: Nothing else happens

      Else if

      • has_focus = education_learning

      Then

      • 1 of 2 things will happen:
        • 60%: Nothing else happens
        • 40%: Nothing else happens
    • Loses “Studying At University”
    • If

      Then

• 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)
results_of_university_education_points_effect = {
	if = {
		limit = {
			has_character_modifier = studying_at_university_modifier
		}
		#Adding the points to the current education
		if = {
			limit = { has_focus = education_diplomacy }
			random_list = {
				60 = {
					change_variable = {
						name = education_diplomacy_variable
						add = 2
					}
				}
				40 = {
					change_variable = {
						name = education_diplomacy_variable
						add = 3
					}
				}
			}
		}
		else_if = {
			limit = { has_focus = education_martial }
			random_list = {
				60 = {
					change_variable = {
						name = education_martial_variable
						add = 2
					}
				}
				40 = {
					change_variable = {
						name = education_martial_variable
						add = 3
					}
				}
			}
		}
		else_if = {
			limit = { has_focus = education_stewardship }
			random_list = {
				60 = {
					change_variable = {
						name = education_stewardship_variable
						add = 2
					}
				}
				40 = {
					change_variable = {
						name = education_stewardship_variable
						add = 3
					}
				}
			}
		}
		else_if = {
			limit = { has_focus = education_intrigue }
			random_list = {
				60 = {
					change_variable = {
						name = education_intrigue_variable
						add = 2
					}
				}
				40 = {
					change_variable = {
						name = education_intrigue_variable
						add = 3
					}
				}
			}
		}
		else_if = {
			limit = { has_focus = education_learning }
			random_list = {
				60 = {
					change_variable = {
						name = education_learning_variable
						add = 2
					}
				}
				40 = {
					change_variable = {
						name = education_learning_variable
						add = 3
					}
				}
			}
		}
		remove_character_modifier = studying_at_university_modifier
		add_character_flag = studied_at_university

		if = {
			limit = {
				NOT = {
					has_trait = drunkard
				}
			}
			hidden_effect = {
				random = {
					chance = 2
					add_trait = drunkard
				}
			}
		}
		if = {
			limit = {
				NOT = { has_character_modifier = studying_confucian_education_modifier }
				OR = {
					has_religion = religion:confucianism_religion
					has_trait = confucian_education
					culture = {
						has_cultural_tradition = tradition_scholar_officials
					}
					scope:educator = {
						has_trait = confucian_education
					}
				}

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

The first 120 of its 165 lines; the rest is in game/common/scripted_effects/00_education_effects.txt from line 2168.

Where it is used

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

Events (5)

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.

Spotted a mistake on this page?