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_should_use_gfx_type_trigger

artifact_should_use_gfx_type_trigger = { TYPE = … }

game/common/scripted_triggers/00_artifact_triggers.txt, line 499 (13 lines). Parameters: $TYPE$.

artifact_should_use_gfx_type_trigger is a scripted trigger in Crusader Kings III, written at line 499 of its file. A call passes 1 parameter: TYPE. The game's script calls it in 56 places, among them animal_figurine (artifact), Armillary Sphere (artifact) and Armor (artifact). Patch 1.20.1.2, from game/common/scripted_triggers/00_artifact_triggers.txt.

What it checks

  • If a check the game hides passes: the same again (1 line)
    • scope:artifact.creator:
      • artifact_use_$TYPE$_visuals_trigger = yes
    Else if a check the game hides passes: the same again (1 line)
    • artifact_use_$TYPE$_visuals_trigger = yes

    Otherwise

    • Never

• 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 (13 lines of game script)
artifact_should_use_gfx_type_trigger = {
	trigger_if = {
		limit = { exists = scope:artifact.creator.culture }
		scope:artifact.creator = { artifact_use_$TYPE$_visuals_trigger = yes }
	}
	trigger_else_if = { #If the creator is not found we use the owner. Often this would be if the creator is a dummy, which has no culture
		limit = { exists = culture }
		artifact_use_$TYPE$_visuals_trigger = yes
	}
	trigger_else = {
		always = no #We should never get here as all created artifacts should have an owner.
	}
}

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

Artifacts (54)

  • animal_figurine
  • Armillary Sphere
  • Armor
  • armor_court
  • axe
  • axe_court
48 more
  • Banner
  • Book
  • bow
  • cabinet
  • chest
  • chronicle
  • composite
  • Crown
  • dagger
  • dagger_court
  • dagger_kris
  • fabric_roll
  • flask
  • flowers
  • glazed_jar
  • Goblet
  • Hammer
  • hammer_court
  • head
  • longbow
  • longsword
  • Mace
  • mace_court
  • medium_box
  • Miniature Throne
  • pedestal_branch_relic_boog
  • pedestal_branch_relic_germanic
  • pedestal_branch_relic_hinduism
  • pedestal_branch_relic_slavic
  • pedestal_branch_relic_zoroastr
  • pedestal_buddhism_relic
  • pedestal_christian_relic
  • pedestal_islamic_relic
  • pelt
  • pouch
  • Reliquary
  • Scroll
  • small_box
  • Spear
  • spear_court
  • statue
  • sword sheath
  • sword_court
  • tapestry
  • Throne
  • urn
  • wall_shield
  • Worn Manuscript

Events (1)

Scripted effects (1)

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?