Scripted effect · The Royal Court files
create_artifact_panacea_effect
create_artifact_panacea_effect = { ALCHEMIST = … OWNER = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 6896 (60 lines). Parameters: $ALCHEMIST$, $OWNER$.
create_artifact_panacea_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 6896 of its file. A call passes 2 parameters: ALCHEMIST and OWNER. The game's script calls it in 1 place, among them Inspiration Realized (event fund_inspiration.1081). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
The comment above it in the file
Panacea
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (60 lines of game script)
create_artifact_panacea_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$ALCHEMIST$ = { save_scope_as = alchemist }
hidden_effect_new_object = {
# Get artifact quality, wealth, and materials
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
if = { #If we have set the location we use it for the materials
limit = { exists = scope:location }
scope:location = { add_to_list = artifact_material_sources }
}
scope:owner = {
# Create the artifact
create_artifact = {
name = artifact_panacea_name
description = placeholder
creator = scope:alchemist
visuals = small_box
type = panacea
modifier = artifact_negate_health_penalty_add_1_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = {
get_artifact_feature_references_effect = yes
set_artifact_description = artifact_panacea_description
if = {
limit = {
rarity = illustrious
}
add_artifact_modifier = artifact_negate_health_penalty_add_4_modifier
}
else_if = {
limit = {
rarity = famed
}
add_artifact_modifier = artifact_negate_health_penalty_add_3_modifier
}
else_if = {
limit = {
rarity = masterwork
}
add_artifact_modifier = artifact_negate_health_penalty_add_2_modifier
}
else_if = {
limit = {
rarity = common
}
add_artifact_modifier = artifact_negate_health_penalty_add_1_modifier
}
add_scaled_artifact_modifier_prestige_effect = yes
}
}
}As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_panacea_effect.
Events (1)
- Inspiration Realized
fund_inspiration.1081
Source: game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.