Scripted effect · The Royal Court files
add_scaled_artifact_kris_benefit_effect
add_scaled_artifact_kris_benefit_effect = yesgame/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 8641 (26 lines). No parameters.
add_scaled_artifact_kris_benefit_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 8641 of its file. It takes no parameters: add_scaled_artifact_kris_benefit_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.
What it does
If
rarity = common
Then
add_artifact_modifier = artifact_kris_1_modifier
Else if
rarity = masterwork
Then
add_artifact_modifier = artifact_kris_2_modifier
Else if
rarity = famed
Then
add_artifact_modifier = artifact_kris_3_modifier
Else if
rarity = illustrious
Then
add_artifact_modifier = artifact_kris_4_modifier
• 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 (26 lines of game script)
add_scaled_artifact_kris_benefit_effect = {
if = {
limit = {
rarity = common
}
add_artifact_modifier = artifact_kris_1_modifier
}
else_if = {
limit = {
rarity = masterwork
}
add_artifact_modifier = artifact_kris_2_modifier
}
else_if = {
limit = {
rarity = famed
}
add_artifact_modifier = artifact_kris_3_modifier
}
else_if = {
limit = {
rarity = illustrious
}
add_artifact_modifier = artifact_kris_4_modifier
}
}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 add_scaled_artifact_kris_benefit_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.