Scripted effect
rite_yearly_hor_pick_and_apply_doctrine_effect
rite_yearly_hor_pick_and_apply_doctrine_effect = yesgame/common/scripted_effects/passive_rite_learning_effects.txt, line 1457 (101 lines). No parameters.
rite_yearly_hor_pick_and_apply_doctrine_effect is a scripted effect in Crusader Kings III, written at line 1457 of its file. It takes no parameters: rite_yearly_hor_pick_and_apply_doctrine_effect = yes. The game's script calls it in 1 place, among them rite_yearly_hor_passive_learning_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_polygamyrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = polygamy }
- 12%:
add_known_doctrine = doctrine_concubinesrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = concubines }
- 12%:
add_known_doctrine = doctrine_consanguinity_unrestrictedrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = consanguinity_unrestricted }
- 12%:
add_known_doctrine = doctrine_deviancy_virtuousrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = deviancy_virtuous }
- 12%:
add_known_doctrine = doctrine_kinslaying_acceptedrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = kinslaying_accepted }
- 12%:
add_known_doctrine = doctrine_witchcraft_virtuousrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = witchcraft_virtuous }
- 12%:
add_known_doctrine = doctrine_funeral_sky_burialrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = funeral_sky_burial }
- 12%:
add_known_doctrine = doctrine_funeral_mummificationrite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = funeral_mummification }
- 0%:
- One random character doctrine:
- Where:
passive_rite_learning_candidate_doctrine_is_core_trigger = { RITE = scope:passive_learn_source_rite }passive_rite_learning_doctrine_is_learnable_trigger = yes
knowledge_filter = unknown
- Where:
add_known_doctrine = scope:passive_learn_doctrine
- One random character doctrine:
- 12%:
• 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 (101 lines of game script)
rite_yearly_hor_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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = polygamy }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = concubines }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = consanguinity_unrestricted }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = deviancy_virtuous }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = kinslaying_accepted }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = witchcraft_virtuous }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = funeral_sky_burial }
}
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 }
rite_yearly_hor_send_doctrine_message_effect = { DOCTRINE = funeral_mummification }
}
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
count >= 1
}
}
random_character_doctrine = {
knowledge_filter = unknown
limit = {
passive_rite_learning_candidate_doctrine_is_core_trigger = { RITE = scope:passive_learn_source_rite }
passive_rite_learning_doctrine_is_learnable_trigger = yes
}
save_scope_as = passive_learn_doctrine
}
add_known_doctrine = scope:passive_learn_doctrine
send_interface_message = {
type = msg_passive_learned_doctrine
desc = msg_hor_learned_doctrine_desc
left_icon = scope:passive_learn_source_faith
right_icon = scope:passive_learn_doctrine
}
}
}
}As written in game/common/scripted_effects/passive_rite_learning_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls rite_yearly_hor_pick_and_apply_doctrine_effect.
Scripted effects (1)
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.