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_confucian_education_effect

results_of_confucian_education_effect = yes

game/common/scripted_effects/00_education_effects.txt, line 2334 (85 lines). No parameters.

results_of_confucian_education_effect is a scripted effect in Crusader Kings III, written at line 2334 of its file. It takes no parameters: results_of_confucian_education_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.

The comment above it in the file

Ward learned from a Confucian scholar

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 (85 lines of game script)
results_of_confucian_education_effect = {
	if = {
		limit = {
			has_character_modifier = studying_confucian_education_modifier
		}
		#Adding the points to the current education
		if = {
			limit = { has_trait = confucian_education }
			add_trait_xp = {
				trait = confucian_education
				value = {
					value = 0
					if = {
						limit = {
							exists = scope:educator
						}
						add = {
							value = "scope:educator.has_trait_xp(confucian_education)"
							multiply = 0.25
						}
					}
					if = {
						limit = {
							has_religion = religion:confucianism_religion
						}
						add = 20 
					}
					if = {
						limit = {
							has_character_flag = studied_at_university
						}
						add = 20
					}
				}
			}
		}
		else = {
			add_trait = confucian_education
			add_trait_xp = {
				trait = confucian_education
				value = {
					value = 0
					if = {
						limit = {
							exists = scope:educator
						}
						add = {
							value = "scope:educator.has_trait_xp(confucian_education)"
							multiply = 0.1
						}
					}
					if = {
						limit = {
							has_religion = religion:confucianism_religion
						}
						add = 10 
					}
					if = {
						limit = {
							has_character_flag = studied_at_university
						}
						add = 20
					}
					round = yes
				}
			}
		}
		if = {
			limit = {
				exists = scope:educator
			}
			save_scope_as = educated_child
			random = {
				chance = 10
				set_elder_relation_effect = {
					ELDER = scope:educator
					DISCIPLE = scope:educated_child
					MERIT = minor_merit_gain
				}
			}
		}
		remove_character_modifier = studying_confucian_education_modifier
		add_character_flag = studied_confucian_education
	}	
}

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

Where it is used

Every place in common/, events/ and history/ that calls results_of_confucian_education_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?