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

Scripted trigger

secret_is_incriminating_trigger

secret_is_incriminating_trigger = { TARGET = … }

game/common/scripted_triggers/00_secret_triggers.txt, line 160 (32 lines). Parameters: $TARGET$.

secret_is_incriminating_trigger is a scripted trigger in Crusader Kings III, written at line 160 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 1 place, among them councillor_spouse_intrigue_1004_secret_trigger (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_secret_triggers.txt.

The comment above it in the file

Checks whether a secret would incriminate its secret target if known
Parameters:
TARGET

What it checks

  • One of these

    • exists = secret_target
    • or

      Any secret participant:
  • One of these

    • All of these

      • secret_type = secret_lover
      • secret_target = $TARGET$
    • or

      All of these

      • secret_type = secret_disputed_heritage
      • One of these

        • secret_target = $TARGET$
        • or

          secret_target.mother = $TARGET$
        • or

          Any secret participant:
          • this = $TARGET$
    • or

      All of these

      • secret_type = secret_unmarried_illegitimate_child
      • One of these

        • secret_target = $TARGET$
        • or

          secret_target.mother = $TARGET$
        • or

          Any secret participant:
          • this = $TARGET$

• 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 (32 lines of game script)
secret_is_incriminating_trigger = {
	OR = {
		exists = secret_target
		any_secret_participant = { }
	}
	OR = {
		AND = {
			secret_type = secret_lover
			secret_target = $TARGET$
		}
		AND = {
			secret_type = secret_disputed_heritage
			OR = {
				secret_target = $TARGET$
				secret_target.mother = $TARGET$
				any_secret_participant = {
					this = $TARGET$
				}
			}
		}
		AND = {
			secret_type = secret_unmarried_illegitimate_child
			OR = {
				secret_target = $TARGET$
				secret_target.mother = $TARGET$
				any_secret_participant = {
					this = $TARGET$
				}
			}
		}
	}
}

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

Where it is used

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

Scripted triggers inside an event file (1)

  • councillor_spouse_intrigue_1004_secret_trigger

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