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

Scripted trigger

trait_is_criminal_in_rite_trigger

trait_is_criminal_in_rite_trigger = { GENDER_CHARACTER = … RITE = … TRAIT = … }

game/common/scripted_triggers/00_religious_triggers.txt, line 410 (75 lines). Parameters: $GENDER_CHARACTER$, $RITE$, $TRAIT$.

trait_is_criminal_in_rite_trigger is a scripted trigger in Crusader Kings III, written at line 410 of its file. A call passes 3 parameters: GENDER_CHARACTER, RITE and TRAIT. The game's script calls it in 59 places, among them Attempt Suicide (decision), Accuse of Decadence (interaction) and Denounce (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.

What it checks

  • One of these

    • All of these

      • One of these

        • $TRAIT$ = trait:kinslayer_3
        • or

          $TRAIT$ = trait:kinslayer_2
        • or

          $TRAIT$ = trait:kinslayer_1
      • $RITE$ = { rite_has_parameter = kinslaying_any_dynasty_member_crime }
    • or

      All of these

      • One of these

        • $TRAIT$ = trait:kinslayer_3
        • or

          $TRAIT$ = trait:kinslayer_2
      • $RITE$ = { rite_has_parameter = kinslaying_extended_family_crime }
    • or

      All of these

      • $TRAIT$ = trait:kinslayer_3
      • $RITE$ = { rite_has_parameter = kinslaying_close_kin_crime }
    • or

      All of these

      • $TRAIT$ = trait:witch
      • $RITE$ = { rite_has_parameter = witchcraft_illegal }
    • or

      All of these

      • $TRAIT$ = trait:cannibal
      • NOT = { $RITE$ = { rite_has_parameter = cannibalism_legal } }
    • or

      All of these

      • $TRAIT$ = trait:sodomite
      • $RITE$ = { rite_has_parameter = homosexuality_illegal }
    • or

      All of these

      • $TRAIT$ = trait:deviant
      • $RITE$ = { rite_has_parameter = deviancy_illegal }
    • or

      All of these

      • $TRAIT$ = trait:incestuous
      • NOT = { $RITE$ = { rite_has_parameter = allows_unrestricted_marriage } }
    • or

      All of these

      • One of these

        • $TRAIT$ = trait:adulterer
        • or

          $TRAIT$ = trait:fornicator
      • One of these

        • All of these

          • $RITE$ = { rite_has_parameter = adultery_female_crime }
          • $GENDER_CHARACTER$ = { is_female = yes }
        • or

          All of these

          • $RITE$ = { rite_has_parameter = adultery_male_crime }
          • $GENDER_CHARACTER$ = { is_male = yes }
    • or

      All of these

      • $TRAIT$ = trait:devoted
      • $RITE$ = { rite_has_parameter = devoted_trait_criminal }

• 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 (75 lines of game script)
trait_is_criminal_in_rite_trigger = {
	OR = {
		#KINSLAYER
		AND = {
			OR = {
				$TRAIT$ = trait:kinslayer_3
				$TRAIT$ = trait:kinslayer_2
				$TRAIT$ = trait:kinslayer_1
			}
			$RITE$ = { rite_has_parameter = kinslaying_any_dynasty_member_crime }
		}
		AND = {
			OR = {
				$TRAIT$ = trait:kinslayer_3
				$TRAIT$ = trait:kinslayer_2
			}
			$RITE$ = { rite_has_parameter = kinslaying_extended_family_crime }
		}
		AND = {
			$TRAIT$ = trait:kinslayer_3
			$RITE$ = { rite_has_parameter = kinslaying_close_kin_crime }
		}
		#WITCH
		AND = {
			$TRAIT$ = trait:witch
			$RITE$ = { rite_has_parameter = witchcraft_illegal }
		}
		#CANNIBAL
		AND = {
			$TRAIT$ = trait:cannibal
			NOT = {
				$RITE$ = { rite_has_parameter = cannibalism_legal }
			}
		}
		#SODOMITE
		AND = {
			$TRAIT$ = trait:sodomite
			$RITE$ = { rite_has_parameter = homosexuality_illegal }
		}
		#DEVIANT
		AND = {
			$TRAIT$ = trait:deviant
			$RITE$ = { rite_has_parameter = deviancy_illegal }
		}
		#INCEST
		AND = {
			$TRAIT$ = trait:incestuous
			NOT = {
				$RITE$ = { rite_has_parameter = allows_unrestricted_marriage }
			}
		}
		#ADULTERER/FORNICATOR
		AND = {
			OR = {
				$TRAIT$ = trait:adulterer
				$TRAIT$ = trait:fornicator
			}
			OR = {
				AND = {
					$RITE$ = { rite_has_parameter = adultery_female_crime }
					$GENDER_CHARACTER$ = { is_female = yes }
				}
				AND = {
					$RITE$ = { rite_has_parameter = adultery_male_crime }
					$GENDER_CHARACTER$ = { is_male = yes }
				}
			}
		}
		# Devoted is criminal when monasticism is forbidden
		AND = {
			$TRAIT$ = trait:devoted
			$RITE$ = { rite_has_parameter = devoted_trait_criminal }
		}
	}
}

As written in game/common/scripted_triggers/00_religious_triggers.txt.

Where it is used

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

Decisions (1)

Events (25)

19 more

Scripted triggers inside an event file (7)

  • ep2_wedding_ewan_0051_legal_rake_trigger
  • ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_general_trigger
  • fp1_yearly_2500_guest_trigger
  • fund_inspiration_3001_cannibal_topic_trigger
  • homosexual_poet_trigger
  • tour_travel_9020_valid_criminal_trigger
1 more
  • yearly_8400_guest_trigger

Script values (1)

  • appointment_score_base

Scripted modifiers (AI weights) (4)

  • admin_claimant_faction_modifiers
  • admin_faction_modifiers
  • ai_agent_join_chance_hostile_taboo_modifier
  • theocratic_related_puppet_acceptance_factors_modifier

Courtier guest management (1)

  • guest_management

Scripted character templates (1)

  • pool_repopulate_local_flavor

Succession appointment (1)

  • clerical_christian

Source: game/common/scripted_triggers/00_religious_triggers.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?