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

Scripted effect

passive_rite_learning_pick_source_effect

passive_rite_learning_pick_source_effect = yes

game/common/scripted_effects/passive_rite_learning_effects.txt, line 20 (134 lines). No parameters.

passive_rite_learning_pick_source_effect is a scripted effect in Crusader Kings III, written at line 20 of its file. It takes no parameters: passive_rite_learning_pick_source_effect = yes. The game's script calls it in 1 place, among them passive_rite_learning_pulse_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/passive_rite_learning_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)
passive_rite_learning_pick_source_effect = {
	if = {
		limit = {
			any_relation = {
				type = soulmate
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
			}
		}
		random_relation = {
			type = soulmate
			limit = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 1 }
	}
	else_if = {
		limit = {
			any_relation = {
				type = best_friend
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
			}
		}
		random_relation = {
			type = best_friend
			limit = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 1 }
	}
	else_if = {
		limit = {
			any_spouse = { is_apex_partner_passive_learning_source_trigger = yes }
		}
		random_spouse = {
			limit = { is_apex_partner_passive_learning_source_trigger = yes }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 1 }
	}
	else_if = {
		limit = {
			any_spouse = { is_close_partner_passive_learning_source_trigger = yes }
		}
		random_spouse = {
			limit = { is_close_partner_passive_learning_source_trigger = yes }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 2 }
	}
	else_if = {
		limit = {
			any_relation = {
				type = friend
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
			}
		}
		random_relation = {
			type = friend
			limit = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 2 }
	}
	else_if = {
		limit = {
			any_relation = {
				type = lover
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
			}
		}
		random_relation = {
			type = lover
			limit = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 2 }
	}
	else_if = {
		limit = {
			is_ai = no # Avoid AI's iterating large lists of characters, like courtiers
			any_courtier = {
				is_close_or_extended_family_of = root
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
				location ?= root.location
			}
		}
		random_courtier = {
			limit = {
				is_close_or_extended_family_of = root
				is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root }
				location ?= root.location
			}
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 2 }
	}
	else_if = {
		limit = {
			any_concubine = { is_close_partner_passive_learning_source_trigger = yes }
		}
		random_concubine = {
			limit = { is_close_partner_passive_learning_source_trigger = yes }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 3 }
	}
	else_if = {
		limit = {
			any_councillor = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
		}
		random_councillor = {
			limit = { is_valid_passive_learning_source_for_learner_trigger = { LEARNER = root } }
			save_scope_as = passive_learn_source
		}
		save_scope_value_as = { name = passive_learn_source_tier value = 3 }
	}
	else_if = {
		limit = {
			is_ai = no # Avoid AI's iterating large lists of characters, like courtiers
			any_courtier = {

As written in game/common/scripted_effects/passive_rite_learning_effects.txt.

The first 120 of its 134 lines; the rest is in game/common/scripted_effects/passive_rite_learning_effects.txt from line 20.

Where it is used

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

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