Scripted trigger
artifact_value_trigger
artifact_value_trigger = { MAX = … MIN = … VALUE = … }game/common/scripted_triggers/00_artifact_triggers.txt, line 3 (25 lines). Parameters: $MAX$, $MIN$, $VALUE$.
artifact_value_trigger is a scripted trigger in Crusader Kings III, written at line 3 of its file. A call passes 3 parameters: MAX, MIN and VALUE. The game's script calls it in 184 places, among them armor_material_bronze (artifact), armor_material_canvas (artifact) and armor_material_gold (artifact). Patch 1.20.1.2, from game/common/scripted_triggers/00_artifact_triggers.txt.
The comment above it in the file
Artifact Script Triggers
What it checks
If
a check the game hides
Then
$VALUE$ >= $MIN$$VALUE$ < $MAX$
Otherwise
• 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 (25 lines of game script)
artifact_value_trigger = {
trigger_if = {
limit = {
exists = $VALUE$
}
$VALUE$ >= $MIN$
$VALUE$ < $MAX$
}
trigger_else_if = {
limit = {
$MIN$ < 50
}
artifact_low_rarity_trigger = yes
}
trigger_else_if = {
limit = {
$MIN$ >= 50
$MAX$ < 70
}
artifact_medium_rarity_trigger = yes
}
trigger_else = {
artifact_high_rarity_trigger = yes
}
}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_value_trigger — the first 120 of 184.
Artifacts (107)
- armor_material_bronze
- armor_material_canvas
- armor_material_gold
- armor_material_hardened_leather
- armor_material_horn
- armor_material_iron
101 more
- armor_material_pangolin_scales
- armor_material_steel
- book_cover_material_gold
- book_cover_material_HSB_ivory
- book_cover_material_leather
- book_cover_material_silver
- book_cover_material_velvet
- bow_string_silk
- box_material_bone
- box_material_brass
- box_material_ebony
- box_material_gold
- box_material_hsb_ivory
- box_material_oak
- box_material_pine
- box_material_silver
- box_material_sycomore
- box_material_teak
- box_material_walnut
- crown_decoration_filigree
- crown_decoration_filigree_and_gem
- crown_decoration_gems
- decoration_material_embroidery_cotton
- decoration_material_embroidery_gold_thread
- decoration_material_embroidery_linen
- decoration_material_embroidery_silk
- decoration_material_embroidery_silver_thread
- decoration_material_embroidery_wool
- decoration_material_gem_adventurine
- decoration_material_gem_agate
- decoration_material_gem_amber
- decoration_material_gem_amethyst
- decoration_material_gem_carnelian
- decoration_material_gem_emerald
- decoration_material_gem_flourite
- decoration_material_gem_garnet
- decoration_material_gem_jade
- decoration_material_gem_jasper
- decoration_material_gem_jet
- decoration_material_gem_lapis_lazuli
- decoration_material_gem_moonstone
- decoration_material_gem_onyx
- decoration_material_gem_opal
- decoration_material_gem_peridot
- decoration_material_gem_rock_crystal
- decoration_material_gem_ruby
- decoration_material_gem_sapphire
- decoration_material_gem_spinel
- decoration_material_gem_turquoise
- decoration_material_gem_zircon
- decoration_material_ink_charcoal
- decoration_material_ink_cinnabar
- decoration_material_ink_lac_dye
- decoration_material_ink_lacquer_soot
- decoration_material_ink_oil_soot
- decoration_material_ink_orpiment
- decoration_material_ink_pine_soot
- decoration_material_ink_shell_gold
- decoration_material_ink_silver
- decoration_material_inlay_HSB_ivory
- decoration_material_inlay_HSB_mother_of_pearl
- decoration_material_inlay_HSB_tortoiseshell
- decoration_material_inlay_shakudo
- decoration_material_inlay_shibuichi
- decoration_material_slate_bamboo
- decoration_material_slate_bronze
- decoration_material_slate_ivory
- decoration_material_slate_jade
- decoration_material_slate_quartz
- decoration_material_slate_rhinocerous_horn
- decoration_material_slate_soapstone
- generic_material_cloth_cotton
- generic_material_cloth_fustian
- generic_material_cloth_lambswool
- generic_material_cloth_linen
- generic_material_cloth_samite
- generic_material_cloth_satin
- generic_material_cloth_silk
- generic_material_cloth_velvet
- generic_material_cloth_wool
- generic_material_cloth_worsted_wool
- generic_material_cordage_cotton
- generic_material_cordage_linen
- generic_material_cordage_silk
- generic_material_cordage_wool
- glass_decoration_enamel_pattern
- glass_decoration_etched_pattern
- glass_decoration_inlay_pattern
- glass_decoration_mold_blowing_pattern
- goblet_material_bone
- goblet_material_brass
- goblet_material_glass
- goblet_material_gold
- goblet_material_ivory
- goblet_material_silver
- It consists of … mounted on a … fastener
- It consists of … that is …
- It consists of a … fastener …
- ring_decoration_adornment
- ring_decoration_centerpiece
- ring_decoration_centerpiece_and_adornment
Scripted effects (3)
Scripted triggers (10)
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.