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

Scripted effect

learning_theology_special_1001_doctrine_effect

learning_theology_special_1001_doctrine_effect = yes

game/common/scripted_effects/00_learning_lifestyle_effects.txt, line 1089 (157 lines). No parameters.

learning_theology_special_1001_doctrine_effect is a scripted effect in Crusader Kings III, written at line 1089 of its file. It takes no parameters: learning_theology_special_1001_doctrine_effect = yes. The game's script calls it in 3 places, among them Apocrypha (event learning_theology_special.1001), New Dogma (event learning_theology_special.1002) and New Dogma (event learning_theology_special.1003). Patch 1.20.1.2, from game/common/scripted_effects/00_learning_lifestyle_effects.txt.

What it does

  • If

    a check the game hides

    Then

    • Their faith:
      • If has the Criminal Doctrine:
        • remove_doctrine = doctrine_adultery_women_crime
      • Else, if has the Shunned Doctrine:
        • remove_doctrine = doctrine_adultery_women_shunned
      • add_doctrine = doctrine_adultery_women_accepted

    Else if

    a check the game hides

    Then

    • Their faith:
      • If has the Criminal Doctrine:
        • remove_doctrine = doctrine_adultery_men_crime
      • Else, if has the Shunned Doctrine:
        • remove_doctrine = doctrine_adultery_men_shunned
      • add_doctrine = doctrine_adultery_men_accepted

    Else if

    a check the game hides

    Then

    • Their faith:
      • If has the Criminal Doctrine:
        • remove_doctrine = doctrine_homosexuality_crime
      • Else, if has the Shunned Doctrine:
        • remove_doctrine = doctrine_homosexuality_shunned
      • add_doctrine = doctrine_homosexuality_accepted

    Else if

    a check the game hides

    Then

    • Their faith:
      • If has the Dynastic is Criminal Doctrine:
        • remove_doctrine = doctrine_kinslaying_any_dynasty_member_crime
      • Else, if has the Familial is Criminal Doctrine:
        • remove_doctrine = doctrine_kinslaying_extended_family_crime
      • Else, if has the Close Kin is Criminal Doctrine:
        • remove_doctrine = doctrine_kinslaying_close_kin_crime
      • Else, if has the Shunned Doctrine:
        • remove_doctrine = doctrine_kinslaying_shunned
      • add_doctrine = doctrine_kinslaying_accepted

    Else if

    a check the game hides

    Then

    • Their faith:
      • If has the Criminal Doctrine:
        • remove_doctrine = doctrine_witchcraft_crime
      • Else, if has the Shunned Doctrine:
        • remove_doctrine = doctrine_witchcraft_shunned
      • add_doctrine = doctrine_witchcraft_accepted

    Else if

    a check the game hides

    Then

    • Their faith:
      • If has the Close-kin Taboo Doctrine:
        • remove_doctrine = doctrine_consanguinity_restricted
      • Else, if has the Cousin Marriage Doctrine:
        • remove_doctrine = doctrine_consanguinity_cousins
      • Else, if has the Avunculate Marriage Doctrine:
        • remove_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece
      • add_doctrine = doctrine_consanguinity_unrestricted
  • Their faith: Fervor decreases by -25

• 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)
learning_theology_special_1001_doctrine_effect = {
	if = {
		limit = {
			exists = scope:female_adultery_doctrine
		}
		faith = {
			if = {
				limit = {
						has_doctrine = doctrine_adultery_women_crime
				}
				remove_doctrine = doctrine_adultery_women_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_adultery_women_shunned
				}
				remove_doctrine = doctrine_adultery_women_shunned
			}

			add_doctrine = doctrine_adultery_women_accepted
		}
	}
	else_if = {
		limit = {
			exists = scope:male_adultery_doctrine
		}
		faith = {
			if = {
				limit = {
						has_doctrine = doctrine_adultery_men_crime
				}
				remove_doctrine = doctrine_adultery_men_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_adultery_men_shunned
				}
				remove_doctrine = doctrine_adultery_men_shunned
			}

			add_doctrine = doctrine_adultery_men_accepted
		}
	}
	else_if = {
		limit = {
			exists = scope:homosexuality_doctrine
		}
		faith = {
			if = {
				limit = {
						has_doctrine = doctrine_homosexuality_crime
				}
				remove_doctrine = doctrine_homosexuality_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_homosexuality_shunned
				}
				remove_doctrine = doctrine_homosexuality_shunned
			}

			add_doctrine = doctrine_homosexuality_accepted
		}
	}
	else_if = {
		limit = {
			exists = scope:kinslyaing_doctrine
		}
		faith = {
			if = {
				limit = {
						has_doctrine = doctrine_kinslaying_any_dynasty_member_crime
				}
				remove_doctrine = doctrine_kinslaying_any_dynasty_member_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_kinslaying_extended_family_crime
				}
				remove_doctrine = doctrine_kinslaying_extended_family_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_kinslaying_close_kin_crime
				}
				remove_doctrine = doctrine_kinslaying_close_kin_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_kinslaying_shunned
				}
				remove_doctrine = doctrine_kinslaying_shunned
			}

			add_doctrine = doctrine_kinslaying_accepted
		}
	}
	else_if = {
		limit = {
			exists = scope:witchcraft_doctrine
		}
		faith = {
			if = {
				limit = {
						has_doctrine = doctrine_witchcraft_crime
				}
				remove_doctrine = doctrine_witchcraft_crime
			}
			else_if = {
				limit = {
						has_doctrine = doctrine_witchcraft_shunned
				}
				remove_doctrine = doctrine_witchcraft_shunned
			}

			add_doctrine = doctrine_witchcraft_accepted
		}
	}
	else_if = {
		limit = {

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

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

Where it is used

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

Events (3)

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