Scripted effect · The Royal Court files
add_scaled_artifact_modifier_dynasty_prestige_effect
add_scaled_artifact_modifier_dynasty_prestige_effect = yesgame/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 4106 (54 lines). No parameters.
add_scaled_artifact_modifier_dynasty_prestige_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 4106 of its file. It takes no parameters: add_scaled_artifact_modifier_dynasty_prestige_effect = yes. The game's script calls it in 17 places, among them dynasty_banner_improve_rarity_effect (local effect), create_artifact_animal_hide_effect (scripted effect) and create_artifact_book_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
- 1 of 2 things will happen:
- 57%:
add_artifact_modifier = artifact_monthly_prestige_add_1_modifier
- 43%:
add_artifact_modifier = artifact_monthly_prestige_add_2_modifier
- 57%:
Else if
rarity = masterwork
Then
- 1 of 2 things will happen:
- 57%:
add_artifact_modifier = artifact_monthly_prestige_add_3_modifier
- 43%:
add_artifact_modifier = artifact_monthly_prestige_add_4_modifier
- 57%:
Else if
rarity = famed
Then
- 1 of 2 things will happen:
- 57%:
add_artifact_modifier = artifact_monthly_prestige_add_5_modifier
- 43%:
add_artifact_modifier = artifact_monthly_prestige_add_6_modifier
- 57%:
Else if
rarity = illustrious
Then
- 1 of 2 things will happen:
- 57%:
add_artifact_modifier = artifact_monthly_prestige_add_7_modifier
- 43%:
add_artifact_modifier = artifact_monthly_prestige_add_8_modifier
- 57%:
• 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 (54 lines of game script)
add_scaled_artifact_modifier_dynasty_prestige_effect = {
if = {
limit = {
rarity = common
}
random_list = {
20 = {
add_artifact_modifier = artifact_monthly_prestige_add_1_modifier
}
15 = {
add_artifact_modifier = artifact_monthly_prestige_add_2_modifier
}
}
}
else_if = {
limit = {
rarity = masterwork
}
random_list = {
20 = {
add_artifact_modifier = artifact_monthly_prestige_add_3_modifier
}
15 = {
add_artifact_modifier = artifact_monthly_prestige_add_4_modifier
}
}
}
else_if = {
limit = {
rarity = famed
}
random_list = {
20 = {
add_artifact_modifier = artifact_monthly_prestige_add_5_modifier
}
15 = {
add_artifact_modifier = artifact_monthly_prestige_add_6_modifier
}
}
}
else_if = {
limit = {
rarity = illustrious
}
random_list = {
20 = {
add_artifact_modifier = artifact_monthly_prestige_add_7_modifier
}
15 = {
add_artifact_modifier = artifact_monthly_prestige_add_8_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_modifier_dynasty_prestige_effect.
Scripted effects inside an event file (1)
- dynasty_banner_improve_rarity_effect
Scripted effects (16)
- create_artifact_animal_hide_effect
- create_artifact_book_effect
- create_artifact_box_medium_effect
- create_artifact_box_small_effect
- create_artifact_cabinet_effect
- create_artifact_chest_effect
10 more
- create_artifact_court_icon_large_effect
- create_artifact_court_icon_small_effect
- create_artifact_oxus_bracelet_effect
- create_artifact_tapestry_effect
- create_artifact_wall_banner_effect
- create_artifact_wall_narwhal_horn_effect
- create_artifact_wall_shield_effect
- create_artifact_wall_skull_effect
- mpo_beheaded_warrior_artifact_creation_effect
- mpo_execution_head_artifact_creation_effect
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.