Scripted effect · Legacy of Persia files
create_artifact_persian_drinking_vessel_effect
create_artifact_persian_drinking_vessel_effect = { OWNER = … SMITH = … }game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt, line 89 (68 lines). Parameters: $OWNER$, $SMITH$.
create_artifact_persian_drinking_vessel_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 89 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 2 places, among them Inspiration Realized (event fund_inspiration.1071) and inspiration_adventure_create_artifact_effect (scripted effect). 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 (68 lines of game script)
create_artifact_persian_drinking_vessel_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$SMITH$ = { save_scope_as = goldsmith }
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 = { exists = scope:adventurer }
create_artifact = {
name = artifact_goblet_name
description = placeholder
visuals = persian_drinking_vessel
type = goblet
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
history = {
location = scope:location
actor = scope:adventurer
recipient = root
type = discovered
}
}
}
else = {
create_artifact = {
name = artifact_goblet_name
creator = scope:goldsmith
description = placeholder
visuals = persian_drinking_vessel
type = goblet
wealth = scope:wealth
quality = scope:quality
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
}
}
}
scope:newly_created_artifact = {
set_artifact_description = artifact_goblet_description
# Set grandeur
add_scaled_artifact_modifier_grandeur_small_effect = yes
# Let's add another random effect
random_list = {
10 = {
add_scaled_artifact_modifier_minor_prestige_effect = yes
}
10 = {
add_scaled_artifact_modifier_majesty_effect = yes
}
30 = {
trigger = { rarity = common }
# Common goblets have a chance to not get any extra modifiers
}
}
remove_artifact_modifier = artifact_placeholder_modifier
}
}
}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_persian_drinking_vessel_effect.
Events (1)
- Inspiration Realized
fund_inspiration.1071
Scripted effects (1)
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.