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

Scripted trigger

artifact_feature_pattern_dynasty_motifs_trigger

artifact_feature_pattern_dynasty_motifs_trigger = yes

game/common/scripted_triggers/00_artifact_triggers.txt, line 1413 (19 lines). No parameters.

artifact_feature_pattern_dynasty_motifs_trigger is a scripted trigger in Crusader Kings III, written at line 1413 of its file. It takes no parameters: artifact_feature_pattern_dynasty_motifs_trigger = yes (or no). The game's script calls it in 1 place, among them decoration_pattern_dynasty_motifs (artifact). Patch 1.20.1.2, from game/common/scripted_triggers/00_artifact_triggers.txt.

The comment above it in the file

pattern_dynasty_motifs

What it checks

  • If

    • scope:newly_created_artifact:
      • artifact_type = book

    Then

    • scope:newly_created_artifact:
      • One of these

        • has_artifact_feature = book_subject_empire
        • or

          has_artifact_feature = book_subject_kingdom
        • or

          has_artifact_feature = book_subject_dynasty
        • or

          has_artifact_feature = book_subject_stewardship
        • or

          has_artifact_feature = book_subject_diplomacy
  • scope:owner.dynasty: Level of Splendor more than 4

• 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 (19 lines of game script)
artifact_feature_pattern_dynasty_motifs_trigger = {
	trigger_if = {
		limit = {
			exists = scope:newly_created_artifact
			scope:newly_created_artifact = { artifact_type = book }
		}
		scope:newly_created_artifact = {
			OR = {
				has_artifact_feature = book_subject_empire
				has_artifact_feature = book_subject_kingdom
				has_artifact_feature = book_subject_dynasty
				has_artifact_feature = book_subject_stewardship
				has_artifact_feature = book_subject_diplomacy
			}
		}
	}
	exists = scope:owner.dynasty
	scope:owner.dynasty = { dynasty_prestige_level > medium_dynasty_prestige_level }
}

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

Where it is used

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

Artifacts (1)

  • decoration_pattern_dynasty_motifs

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