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

Scripted trigger

has_negative_attitude_towards_trait_trigger

has_negative_attitude_towards_trait_trigger = { GENDER_CHARACTER = … TRAIT = … }

game/common/scripted_triggers/00_religious_triggers.txt, line 735 (61 lines). Parameters: $GENDER_CHARACTER$, $TRAIT$.

has_negative_attitude_towards_trait_trigger is a scripted trigger in Crusader Kings III, written at line 735 of its file. A call passes 2 parameters: GENDER_CHARACTER and TRAIT. The game's script calls it in 10 places, among them … Love (event seduce_outcome.8101), A Secret Exposed! (event secrets.0101) and A Secret Exposed! (event secrets.0103). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.

What it checks

  • None of these

    • Has the Trait: …
    • All of these

      • $TRAIT$ = trait:incestuous
      • Any secret:
    • All of these

      • $TRAIT$ = trait:witch
      • Any secret:
    • All of these

      • $TRAIT$ = trait:cannibal
      • Any secret:
    • All of these

      • $TRAIT$ = trait:sodomite
      • One of these

        • has_sexuality = homosexual
        • or

          has_sexuality = bisexual
      • Any secret:
    • All of these

      • $TRAIT$ = trait:adulterer
      • One of these

        • Has the Trait: Lustful
        • or

          All of these

          • Is married
          • Any relation:
            • NOT = { is_spouse_of = prev }
        • or

          Any relation:
          • Is married
          • NOT = { is_spouse_of = prev }
    • All of these

      • $TRAIT$ = trait:fornicator
      • One of these

  • One of these

• 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 (61 lines of game script)
has_negative_attitude_towards_trait_trigger = {
	NOR = {
		has_trait = $TRAIT$
		#INCESTUOUS
		AND = {
			$TRAIT$ = trait:incestuous
			any_secret = { type = secret_incest }
		}
		#WITCH
		AND = {
			$TRAIT$ = trait:witch
			any_secret = { type = secret_witch }
		}
		#CANNIBAL
		AND = {
			$TRAIT$ = trait:cannibal
			any_secret = { type = secret_cannibal }
		}
		#SODOMITE
		AND = {
			$TRAIT$ = trait:sodomite
			OR = {
				has_sexuality = homosexual
				has_sexuality = bisexual
			}
			any_secret = {
				type = secret_homosexual
			}
		}
		#ADULTERER
		AND = {
			$TRAIT$ = trait:adulterer
			OR = {
				has_trait = lustful
				AND = {
					is_married = yes
					any_relation = { type = lover NOT = { is_spouse_of = prev } }
				}
				any_relation = {
					type = lover
					is_married = yes
					NOT = { is_spouse_of = prev }
				}
			}
		}
		#FORNICATOR
		AND = {
			$TRAIT$ = trait:fornicator
			OR = {
				has_trait = lustful
				any_relation = { type = lover always = yes }
			}
		}
	}

	rite = { save_temporary_scope_as = my_rite }
	OR = {
		trait_is_shunned_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
		trait_is_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
	}
}

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

Where it is used

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

Events (10)

4 more

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?