Scripted effect · The Royal Court files
get_axe_decoration_effect
get_axe_decoration_effect = yesgame/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 9391 (29 lines). No parameters.
get_axe_decoration_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 9391 of its file. It takes no parameters: get_axe_decoration_effect = yes. The game's script calls it in 1 place, among them create_artifact_weapon_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
The comment above it in the file
Axes, Hammers, Spears, and Maces
What it does
- 1 of 4 things will happen:
- 36%:
set_artifact_feature_group = head_decorationset_artifact_feature_group = shaft_decoration
- 18%:
set_artifact_feature_group = head_decoration
- 36%:
set_artifact_feature_group = shaft_decoration
- 9% (base chance; changed in play): Nothing else happens
- 36%:
• 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 (29 lines of game script)
get_axe_decoration_effect = {
random_list = {
40 = {
trigger = { ep1_extravagant_artifact_decorations_trigger = yes }
set_artifact_feature_group = head_decoration
set_artifact_feature_group = shaft_decoration
}
20 = {
trigger = { ep1_advanced_artifact_decorations_trigger = yes }
set_artifact_feature_group = head_decoration
}
40 = {
trigger = { ep1_simple_artifact_decorations_trigger = yes }
set_artifact_feature_group = shaft_decoration
}
10 = {
trigger = { ep1_no_artifact_decorations_trigger = yes }
modifier = {
add = 30
AND = {
exists = scope:inspiration_owner
scope:inspiration_owner = { ai_greed <= -40 }
}
}
# No decoration
}
}
}As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls get_axe_decoration_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_ep1_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.