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_shunned_in_rite_trigger

trait_is_shunned_in_rite_trigger = { GENDER_CHARACTER = … RITE = … TRAIT = … }

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

trait_is_shunned_in_rite_trigger is a scripted trigger in Crusader Kings III, written at line 486 of its file. A call passes 3 parameters: GENDER_CHARACTER, RITE and TRAIT. The game's script calls it in 17 places, among them Request Anointment (interaction), A Lecture on Lustfulness (event court_yearly.0110) and A Sensual Proposal (event seduce_outcome.0003). 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_shunned }
    • or

      All of these

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

      All of these

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

      All of these

      • $TRAIT$ = trait:deviant
      • $RITE$ = { rite_has_parameter = deviancy_shunned }
    • 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_shunned }
          • $GENDER_CHARACTER$ = { is_female = yes }
        • or

          All of these

          • $RITE$ = { rite_has_parameter = adultery_male_shunned }
          • $GENDER_CHARACTER$ = { is_male = yes }

• 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 (52 lines of game script)
trait_is_shunned_in_rite_trigger = {
	OR = {
		#KINSLAYER
		AND = {
			OR = {
				$TRAIT$ = trait:kinslayer_3
				$TRAIT$ = trait:kinslayer_2
				$TRAIT$ = trait:kinslayer_1
			}
			$RITE$ = { rite_has_parameter = kinslaying_shunned }
		}
		#WITCH
		AND = {
			$TRAIT$ = trait:witch
			$RITE$ = { rite_has_parameter = witchcraft_shunned }
		}
		#SODOMITE
		AND = {
			$TRAIT$ = trait:sodomite
			$RITE$ = { rite_has_parameter = homosexuality_shunned }
		}
		#DEVIANT
		AND = {
			$TRAIT$ = trait:deviant
			$RITE$ = { rite_has_parameter = deviancy_shunned }
		}
		#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_shunned }
					$GENDER_CHARACTER$ = { is_female = yes }
				}
				AND = {
					$RITE$ = { rite_has_parameter = adultery_male_shunned }
					$GENDER_CHARACTER$ = { is_male = yes }
				}
			}
		}
	}
}

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_shunned_in_rite_trigger.

Character interactions (1)

Events (5)

Scripted triggers inside an event file (2)

  • bp1_yearly_9019_spouse_trigger
  • homosexual_poet_trigger

Scripted modifiers (AI weights) (1)

  • ai_agent_join_chance_hostile_taboo_modifier

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?