Scripted effect · Legacy of Persia files
create_artifact_fp3_incense_burner_sculpture_effect
create_artifact_fp3_incense_burner_sculpture_effect = { OWNER = … SMITH = … }game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt, line 175 (63 lines). Parameters: $OWNER$, $SMITH$.
create_artifact_fp3_incense_burner_sculpture_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 175 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 1 place, among them Inspiration Realized (event fund_inspiration.1071). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (63 lines of game script)
create_artifact_fp3_incense_burner_sculpture_effect = {
# Set up general scopes.
$OWNER$ = { save_scope_as = owner }
$SMITH$ = { save_scope_as = maker }
# Begin creating.
hidden_effect_new_object = {
# Get artifact quality, wealth, and materials.
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
# Create the artifact.
scope:owner = {
if = {
limit = { has_royal_court = yes }
create_artifact_fp3_incense_burner_sculpture_effect_base = { TYPE = sculpture }
}
else = {
create_artifact_fp3_incense_burner_sculpture_effect_base = { TYPE = miscellaneous_when_not_court }
}
}
scope:newly_created_artifact = {
# Flag this as something that can be reforged for free, if relevant.
if = {
limit = {
$OWNER$ = { has_royal_court = no }
}
set_variable = {
name = dlc_potential_court_artifact
value = yes
}
}
set_artifact_feature_group = goblet_material
set_artifact_feature_group = decoration_material_inlay
set_artifact_description = fp3_incense_burner_sculpture_desc
# Let's add modifiers!
## Illustrious gets to be very swanky.
if = {
limit = { rarity = illustrious }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
add_scaled_artifact_modifier_attractiveness_effect = yes
}
## Famed
else_if = {
limit = { rarity = famed }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
}
## Masterwork
else_if = {
limit = { rarity = masterwork }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
}
## Common
else_if = {
limit = { rarity = common }
add_scaled_artifact_modifier_stress_gain_effect = yes
}
}
}
}As written in game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_fp3_incense_burner_sculpture_effect.
Events (1)
- Inspiration Realized
fund_inspiration.1071
Source: game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.