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_and_apply_doctrine_effect

passive_rite_learning_pick_and_apply_doctrine_effect = yes

game/common/scripted_effects/passive_rite_learning_effects.txt, line 1089 (141 lines). No parameters.

passive_rite_learning_pick_and_apply_doctrine_effect is a scripted effect in Crusader Kings III, written at line 1089 of its file. It takes no parameters: passive_rite_learning_pick_and_apply_doctrine_effect = yes. The game's script calls it in 1 place, among them passive_rite_learning_apply_from_source_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/passive_rite_learning_effects.txt.

What it does

  • 1 of 9 things will happen:
    • 12%:
      • add_known_doctrine = doctrine_polygamy
    • 12%:
      • add_known_doctrine = doctrine_concubines
    • 12%:
      • add_known_doctrine = doctrine_consanguinity_unrestricted
    • 12%:
      • add_known_doctrine = doctrine_deviancy_virtuous
    • 12%:
      • add_known_doctrine = doctrine_kinslaying_accepted
    • 12%:
      • add_known_doctrine = doctrine_witchcraft_virtuous
    • 12%:
      • add_known_doctrine = doctrine_funeral_sky_burial
    • 12%:
      • add_known_doctrine = doctrine_funeral_mummification
    • 0%:

• 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)
passive_rite_learning_pick_and_apply_doctrine_effect = {
	random_list = {
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_polygamy }
				NOT = { knows_doctrine = doctrine_polygamy }
			}
			add_known_doctrine = doctrine_polygamy
			doctrine:doctrine_polygamy = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_polygamy_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_concubines }
				NOT = { knows_doctrine = doctrine_concubines }
			}
			add_known_doctrine = doctrine_concubines
			doctrine:doctrine_concubines = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_concubines_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_consanguinity_unrestricted }
				NOT = { knows_doctrine = doctrine_consanguinity_unrestricted }
			}
			add_known_doctrine = doctrine_consanguinity_unrestricted
			doctrine:doctrine_consanguinity_unrestricted = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_consanguinity_unrestricted_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_deviancy_virtuous }
				NOT = { knows_doctrine = doctrine_deviancy_virtuous }
			}
			add_known_doctrine = doctrine_deviancy_virtuous
			doctrine:doctrine_deviancy_virtuous = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_deviancy_virtuous_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_kinslaying_accepted }
				NOT = { knows_doctrine = doctrine_kinslaying_accepted }
			}
			add_known_doctrine = doctrine_kinslaying_accepted
			doctrine:doctrine_kinslaying_accepted = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_kinslaying_accepted_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_witchcraft_virtuous }
				NOT = { knows_doctrine = doctrine_witchcraft_virtuous }
			}
			add_known_doctrine = doctrine_witchcraft_virtuous
			doctrine:doctrine_witchcraft_virtuous = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_witchcraft_virtuous_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_funeral_sky_burial }
				NOT = { knows_doctrine = doctrine_funeral_sky_burial }
			}
			add_known_doctrine = doctrine_funeral_sky_burial
			doctrine:doctrine_funeral_sky_burial = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_funeral_sky_burial_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		100 = {
			trigger = {
				scope:passive_learn_source.rite = { rite_has_doctrine = doctrine_funeral_mummification }
				NOT = { knows_doctrine = doctrine_funeral_mummification }
			}
			add_known_doctrine = doctrine_funeral_mummification
			doctrine:doctrine_funeral_mummification = { save_scope_as = passive_learn_doctrine }
			send_interface_message = {
				type = msg_passive_learned_doctrine
				desc = msg_passive_learned_doctrine_funeral_mummification_desc
				left_icon = scope:passive_learn_source
				right_icon = scope:passive_learn_doctrine
			}
		}
		1 = {
			trigger = {
				any_character_doctrine = {
					knowledge_filter = unknown
					passive_rite_learning_candidate_doctrine_is_core_trigger = { RITE = scope:passive_learn_source.rite }
					passive_rite_learning_doctrine_is_learnable_trigger = yes

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

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

Where it is used

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