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

Scripted effect

education_flags_tooltips_effect

education_flags_tooltips_effect = yes

game/common/scripted_effects/00_interaction_effects.txt, line 1986 (142 lines). No parameters.

education_flags_tooltips_effect is a scripted effect in Crusader Kings III, written at line 1986 of its file. It takes no parameters: education_flags_tooltips_effect = yes. The game's script calls it in 1 place, among them educate_child_interaction_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_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)
education_flags_tooltips_effect = {
	#Convert culture
	if = {
		limit = { always = scope:convert_culture }
		scope:ward = {
			add_character_flag = {
				flag = convert_culture
				years = 10
			}
		}
		if = {
			limit = { scope:ward.age < 11 }
			custom_description = {
				text = "educate_child_option_convert_culture_effect"
				subject = scope:ward
				object = scope:guardian.culture
			}
		}
		else_if = {
			limit = {
				scope:ward.age >= 11
				scope:ward.age < 14
			}
			custom_description = {
				text = "educate_child_option_convert_culture_likely_effect"
				subject = scope:ward
				object = scope:guardian.culture
			}
		}
		else_if = {
			limit = { scope:ward.age >= 14 }
			custom_description = {
				text = "educate_child_option_convert_culture_unlikely_effect"
				subject = scope:ward
				object = scope:guardian.culture
			}
		}
	}
	#Convert faith
	if = {
		limit = { always = scope:convert_faith }
		scope:ward = {
			add_character_flag = {
				flag = convert_faith
				years = 10
			}
		}
		if = {
			limit = { scope:ward.age < 11 }
			custom_description = {
				text = "educate_child_option_convert_faith_effect"
				subject = scope:ward
				object = scope:guardian.rite
			}
		}
		else_if = {
			limit = {
				scope:ward.age >= 11
				scope:ward.age < 14
			}
			custom_description = {
				text = "educate_child_option_convert_faith_likely_effect"
				subject = scope:ward
				object = scope:guardian.rite
			}
		}
		else_if = {
			limit = { scope:ward.age >= 14 }
			custom_description = {
				text = "educate_child_option_convert_faith_unlikely_effect"
				subject = scope:ward
				object = scope:guardian.rite
			}
		}
	}

	# Knowledge
	if = {
		limit = {
			always = scope:send_to_university
			OR = {
				scope:recipient = {
					OR = {
						any_realm_province = {
							is_higher_studies_location = yes
							save_temporary_scope_as = university
						}
						any_realm_county = {
							has_county_modifier = pandidakterion_university_modifier
							# Save the province, not the county, because scope:university is only read by a province-scoped trigger
							title_province ?= { save_temporary_scope_as = university }
						}
					}
				}
				scope:puppet_or_actor = {
					this = scope:secondary_actor
					any_realm_province = {
						is_higher_studies_location = yes
						save_temporary_scope_as = university
					}
				}
			}
		}
		scope:puppet_or_actor = {
			remove_short_term_gold = {
				value = monumental_gold_value
				if = {
					limit = { house = { has_house_modifier = ep3_eparch_university_influence_modifier } }
					multiply = {
						value = 1
						subtract = university_cost_reduction_value
					}
				}
			}
		}
		if = {
			limit = {
				scope:university ?= {
					is_province_valid_confucian_education_trigger = yes
				}

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

The first 120 of its 142 lines; the rest is in game/common/scripted_effects/00_interaction_effects.txt from line 1986.

Where it is used

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

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