Scripted trigger
artifact_needs_pattern_trigger
artifact_needs_pattern_trigger = yesgame/common/scripted_triggers/00_artifact_triggers.txt, line 227 (30 lines). No parameters.
artifact_needs_pattern_trigger is a scripted trigger in Crusader Kings III, written at line 227 of its file. It takes no parameters: artifact_needs_pattern_trigger = yes (or no). The game's script calls it in 2 places, among them get_artifact_feature_references_effect (scripted effect) and artifact_has_pattern_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_artifact_triggers.txt.
What it checks
One of these
has_artifact_feature = blade_decoration_etched_patternor
has_artifact_feature = hilt_decoration_carved_patternor
has_artifact_feature = hilt_decoration_inlay_patternor
has_artifact_feature = head_decoration_etched_patternor
has_artifact_feature = shaft_decoration_painted_patternor
has_artifact_feature = metal_handle_decoration_etched_patternor
has_artifact_feature = armor_decoration_etched_patternor
has_artifact_feature = armor_decoration_inlay_patternor
has_artifact_feature = armor_decoration_painted_patternor
has_artifact_feature = wood_decoration_painted_patternor
has_artifact_feature = box_decoration_paintedor
has_artifact_feature = box_decoration_carvedor
artifact_type = bowlor
artifact_type = plate
• 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 (30 lines of game script)
artifact_needs_pattern_trigger = {
# Check if one of our artifact features needs a pattern reference
OR = {
# Weapons
has_artifact_feature = blade_decoration_etched_pattern
has_artifact_feature = hilt_decoration_carved_pattern
has_artifact_feature = hilt_decoration_inlay_pattern
has_artifact_feature = head_decoration_etched_pattern
has_artifact_feature = shaft_decoration_painted_pattern
has_artifact_feature = metal_handle_decoration_etched_pattern
# Armor
has_artifact_feature = armor_decoration_etched_pattern
has_artifact_feature = armor_decoration_inlay_pattern
has_artifact_feature = armor_decoration_painted_pattern
# Furniture
has_artifact_feature = wood_decoration_painted_pattern
# Box
has_artifact_feature = box_decoration_painted
has_artifact_feature = box_decoration_carved
# Bowl
artifact_type = bowl
# Plate
artifact_type = plate
}
}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_needs_pattern_trigger.
Scripted effects (1)
Scripted triggers (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.