Interaction · Friendly actions
Sell Artifact
Offer an Artifact to the recipient in exchange for Gold and Artisan Trait Experience
What you need
You
To send it
To see it in the menu
- Is a Merchant
- If played by the AI:
has_any_unequipped_artifact = yes
- The target is not you
The character you target
- Is a ruler
Which artifact you can pick
If
- You: Is played by a person
Then
- The target: Is not equipped
- Any character artifact:
- The target:
has_none_of_variables = { … }If
One of these
exists = rootor
You: Is played by the AI
Then
has_none_of_variables = { name = ai_to_ai_destroy_in_sieges name = unwanted_artifact name = cursed_artifact }
If
None of these
- The character you target:
has_artifact_claim = prev
- The character you target:
Then
- If has “banner dynasty” (a variable the game's script sets):
scope:recipient.dynasty ?= var:banner_dynastyartifact_owner = { … }
- If has “banner house” (a variable the game's script sets):
scope:recipient.house ?= var:banner_houseartifact_owner = { … }
If
is_holy_relic_for = artifact_owner.faith
Then
scope:recipient.faith = artifact_owner.faith
- If has “relic religion” (a variable the game's script sets):
One of these
artifact_owner.religion != var:relic_religionor
scope:recipient.religion = var:relic_religion
If
- var:artifact_succession_title: Title already created
Then
One of these
var:artifact_succession_title.holder = scope:recipientor
var:artifact_succession_title.holder != artifact_owner
Sell Artifact is a friendly character interaction in Crusader Kings III. You need: Is not at war with the target and Is not imprisoned. The AI weighs it. Reasons the AI weighs include This artifact is trivial (-1), The recipient cannot afford the price (-1,000), No, I'd rather not have that, thank you (-200) and 6 more. Patch 1.21.0, from game/common/character_interactions/00_artifact_interactions.txt.
Quick answers (2)
- What are the requirements for Sell Artifact in CK3?
- You: Is not at war with the target and Is not imprisoned. (patch 1.21.0)
- How do I get the AI to accept Sell Artifact?
- The AI weighs it. Its reasons: This artifact is trivial -1, The recipient cannot afford the price -1,000, No, I'd rather not have that, thank you -200, Artifacts are rare and precious, The recipient's Gold -20, This artifact is useless to the recipient -80, This artifact is useless to the recipient -80, This artifact is not relevant to the recipient -40, This is the recipient's Dynasty Banner +100, This banner has no connection to the recipient -200, Artifact Cost, Your Artisan Trait Experience and … Opinion of ….
Will they accept?
The AI adds these up and accepts above zero. Reasons in italics are the script's, with no label in the game.
| Reason | Amount |
|---|---|
| Base | 0 |
This artifact is trivialwhen
| -1 |
The recipient cannot afford the pricewhen
| -1,000 |
No, I'd rather not have that, thank youwhen
| -200 |
Artifacts are rare and preciouswhen
| varies |
The recipient's Goldwhen
| -20 |
This artifact is useless to the recipientwhen
| -80 |
This artifact is useless to the recipientwhen
| -80 |
This artifact is not relevant to the recipientwhen
| -40 |
This is the recipient's Dynasty Bannerwhen
| +100 |
This banner has no connection to the recipientwhen
| -200 |
Artifact Costwhen
| varies |
Your Artisan Trait Experiencewhen
| varies |
| … Opinion of … | varies |
Acceptance (ai_accept) (178 lines of game script)
base = 0
modifier = {
add = -1
scope:target = {
has_variable = {
name = ai_to_ai_destroy_in_sieges
name = unwanted_artifact
}
}
desc = ARTIFACT_TRASH_REASON
}
modifier = {
add = -1000
scope:recipient.gold < gdp_merchant_sell_artifact_value
desc = SELL_CLAIM_CANNOT_AFFORD_REASON
}
modifier = {
add = -200
scope:target = {
has_variable = cursed_artifact
}
desc = ARTIFACT_CURSED_REASON
}
modifier = {
scope:target = {
has_none_of_variables = {
name = ai_to_ai_destroy_in_sieges
name = unwanted_artifact
}
}
add = {
value = 20
if = {
limit = {
scope:target = {
rarity = masterwork
}
}
add = 20
}
else_if = {
limit = {
scope:target = {
rarity = famed
}
}
add = 40
}
else_if = {
limit = {
scope:target = {
rarity = illustrious
}
}
add = 60
}
}
desc = ARTIFACT_REASON
}
modifier = {
add = -20
scope:recipient.gold < scope:recipient.major_gold_value
scope:recipient.gold >= gdp_merchant_sell_artifact_value
desc = AI_RECIPIENT_GOLD_REASON
}
modifier = {
add = -80
has_royal_court = no
scope:target = {
OR = {
artifact_slot_type = throne
artifact_slot_type = wall_big
artifact_slot_type = sculpture
}
}
desc = ARTIFACT_NOT_EQUIPPABLE_REASON
}
modifier = {
add = -80
NOT = {
can_equip_artifact = scope:target
}
scope:target = {
OR = {
artifact_slot_type = primary_armament
artifact_slot_type = armor
artifact_slot_type = regalia
artifact_slot_type = helmet
artifact_slot_type = miscellaneous
}
}
desc = ARTIFACT_NOT_EQUIPPABLE_REASON
}
modifier = {
add = -40
NOT = {
can_benefit_from_artifact = scope:target
}
desc = ARTIFACT_NOT_BENEFIT_REASON
}
modifier = {
add = 100
exists = scope:target.var:banner_dynasty
exists = scope:recipient.dynasty
scope:recipient = scope:target.var:banner_dynasty.dynast
desc = ARTIFACT_DYNASTY_BANNER_REASON
}
modifier = {
add = -200
OR = {
exists = scope:target.var:banner_dynasty
exists = scope:target.var:banner_house
}
exists = scope:recipient.house
trigger_if = {
limit = {
exists = scope:target.var:banner_dynasty
}
scope:target.var:banner_dynasty != scope:recipient.dynasty
}
trigger_else = {
scope:target.var:banner_house != scope:recipient.house
}
desc = ARTIFACT_USELESS_BANNER_REASON
}
modifier = {
scope:actor = {
is_landless_merchant = yes
}
add = {
value = gdp_merchant_sell_artifact_value
multiply = -0.5
}
desc = ARTIFACT_PRICE_REASON
}
modifier = {
scope:actor = {
has_trait_xp = {
trait = lifestyle_merchant
track = artisan
value >= 30
}
}
add = {
value = 15
if = {
limit = {
scope:actor = {
has_trait_xp = {
trait = lifestyle_merchant
track = artisan
value >= 65
}
}
}
add = 20
}
if = {
limit = {
scope:actor = {
has_trait_xp = {
trait = lifestyle_merchant
track = artisan
value >= 100
}
}
}
add = 45
}
}
desc = ARTIFACT_ARTISAN_REASON
}
opinion_modifier = {
who = scope:recipient
opinion_target = scope:actor
multiplier = 0.5
desc = AI_OPINION_REASON
}As written in game/common/character_interactions/00_artifact_interactions.txt.
What happens
If they accept
- The character you target:
If
- The target:
can_be_claimed_by = scope:recipient
Then
- If any personal claimed artifact:
remove_personal_artifact_claim = scope:target
- Otherwise › Their house:
remove_house_artifact_claim = scope:target
- The target:
- The character you target: Pay gold to you
- You:
- The target:
- Otherwise:
set_owner = scope:recipient
If
artifact_type = creature- The character you target:
None of these
- Their domicile:
is_domicile_type = merchant_company
- Their domicile:
Then
If
One of these
- Animal type is parrot
or
Animal type is cockatooor
Animal type is craneor
Animal type is peacock
Then
reforge_artifact = { type = pedestal visuals = small_box }
- Else, if animal type is monkey:
reforge_artifact = { type = animal_skull visuals = animal_trophy }
- Else, if all of these hold:
- Conditions:
One of these
- Animal type is caracal
or
Animal type is lynx
- Then:
reforge_artifact = { type = animal_hide visuals = small_animal_hide }
- Conditions:
- Otherwise:
reforge_artifact = { type = animal_hide_big visuals = large_animal_hide }
- Depending on animal type:
- When animal type is lion:
set_artifact_name = creature_type_reforged_lion_nameset_artifact_description = creature_type_lion_reforged_desc
- When animal type is caracal:
set_artifact_name = creature_type_reforged_caracal_nameset_artifact_description = creature_type_caracal_reforged_desc
- When animal type is lynx:
set_artifact_name = creature_type_reforged_lynx_nameset_artifact_description = creature_type_lynx_reforged_desc
- When animal type is tiger:
set_artifact_name = creature_type_reforged_tiger_nameset_artifact_description = creature_type_tiger_reforged_desc
- When animal type is leopard:
set_artifact_name = creature_type_reforged_leopard_nameset_artifact_description = creature_type_leopard_reforged_desc
- When animal type is bear:
set_artifact_name = creature_type_reforged_bear_nameset_artifact_description = creature_type_bear_reforged_desc
- When animal type is elephant:
set_artifact_name = creature_type_reforged_elephant_nameset_artifact_description = creature_type_elephant_reforged_desc
- When animal type is peacock:
set_artifact_name = creature_type_reforged_peacock_nameset_artifact_description = creature_type_peacock_reforged_desc
- When animal type is parrot:
set_artifact_name = creature_type_reforged_parrot_nameset_artifact_description = creature_type_parrot_reforged_desc
- When animal type is cockatoo:
set_artifact_name = creature_type_reforged_cockatoo_nameset_artifact_description = creature_type_cockatoo_reforged_desc
- When animal type is crane:
set_artifact_name = creature_type_reforged_crane_nameset_artifact_description = creature_type_crane_reforged_desc
- When animal type is monkey:
set_artifact_name = creature_type_reforged_monkey_nameset_artifact_description = creature_type_monkey_reforged_desc
- When animal type is lion:
Else if
artifact_type = curio- The character you target:
None of these
- Their domicile:
is_domicile_type = merchant_company
- Their domicile:
Then
Otherwise
reforge_artifact = { type = miscellaneous }
Else if
artifact_type = library_item- The character you target:
None of these
- Their domicile:
is_domicile_type = merchant_company
- Their domicile:
Then
Otherwise
reforge_artifact = { type = journal }
Else if
One of these
artifact_type = wall_smallor
artifact_type = pedestal
- The character you target: Doesn't have a Royal Court
Then
If
- The character you target › Their domicile:
is_domicile_type = merchant_company
Then
reforge_artifact = { type = curio }
Otherwise
reforge_artifact = { type = miscellaneous }
- The character you target › Their domicile:
- Otherwise:
- The character you target:
If
- The target:
artifact_type = creature
- … (more in the script below)
- The target:
- … (more in the script below)
Options when sending
- Sell for half priceSelling for half the price would make the recipient more willing to accept
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
Who can use it and sees it (is_available, is_shown) (11 lines of game script)
is_available = is_landless_merchant = yes
trigger_if = {
limit = {
is_ai = yes
}
has_any_unequipped_artifact = yes
}
is_shown = scope:recipient != scope:puppet_or_actor
scope:recipient = {
is_ruler = yes
}As written in game/common/character_interactions/00_artifact_interactions.txt.
Can be sent when (is_valid…) (29 lines of game script)
scope:puppet_or_actor = {
NOT = {
is_at_war_with = scope:recipient
}
is_imprisoned = no
trigger_if = {
limit = {
is_ai = no
}
custom_description = {
text = any_unequipped_artifact_tt
any_character_artifact = {
is_equipped = no
}
}
}
}
gdp_merchant_diplo_range_trigger = {
TARGET = scope:recipient
MERCHANT = scope:actor
}
trigger_if = {
limit = {
exists = scope:target
}
scope:recipient = {
gold >= gdp_merchant_sell_artifact_value
}
}As written in game/common/character_interactions/00_artifact_interactions.txt.
Effects (on_send, on_accept, on_decline) (247 lines of game script)
on_accept = hidden_effect = {
if = {
limit = {
gdp_menagerie_artifact_has_active_story_trigger = {
CHARACTER = scope:actor
ARTIFACT = scope:target
}
}
scope:actor = {
random_owned_story = {
limit = {
story_type = story_cycle_menagerie
var:artifact_type ?= scope:target
}
save_scope_as = menagerie_story
}
}
if = {
limit = {
scope:recipient = {
is_landless_merchant = yes
}
}
scope:menagerie_story = {
make_story_owner = scope:recipient
}
}
else = {
scope:menagerie_story = {
end_story = yes
}
}
}
}
scope:target = {
set_variable = {
name = suppress_artifact_notifications
value = yes
days = 1
}
set_variable = {
name = sold_artifact
value = scope:actor
days = 9125
}
}
scope:puppet_or_actor = {
send_interface_toast = {
type = event_toast_effect_good
title = sell_artifact_interaction_notification
left_icon = scope:recipient
right_icon = scope:target
scope:recipient = {
if = {
limit = {
scope:target = {
can_be_claimed_by = scope:recipient
}
}
if = {
limit = {
any_personal_claimed_artifact = {
this = scope:target
}
}
show_as_tooltip = {
remove_personal_artifact_claim = scope:target
}
}
else = {
show_as_tooltip = {
house = {
remove_house_artifact_claim = scope:target
}
}
}
}
}
scope:recipient = {
pay_short_term_gold = {
gold = gdp_merchant_sell_artifact_value
target = scope:puppet_or_actor
}
}
scope:puppet_or_actor = {
add_trait_xp = {
trait = lifestyle_merchant
track = artisan
value = {
value = gdp_merchant_sell_artifact_value
divide = 20
max = 10
}
}
if = {
limit = {
has_realm_law = company_purpose_artisan
}
domicile ?= {
add_acumen = gdp_merchant_sell_artifact_value
}
}
}
scope:target = {
set_variable = {
name = og_owner
value = artifact_owner
}
if = {
limit = {
exists = var:og_owner
}
}
save_scope_as = artifact
if = {
limit = {
artifact_type = creature
scope:recipient = {
NOT = {
domicile ?= {
is_domicile_type = merchant_company
}
}
}
}
hidden_effect = {
set_owner = scope:recipient
}
}
else = {
set_owner = scope:recipient
}
reforge_transferred_artifact_effect = {
RECEIVER = scope:recipient
}
}
scope:recipient = {
if = {
limit = {
scope:target = {
artifact_type = creature
}
NOT = {
domicile ?= {
is_domicile_type = merchant_company
}
}
}
custom_tooltip = artifact_creature_reforged_tt
}
}
}
if = {
limit = {
scope:target = {
OR = {
AND = {
artifact_max_durability >= define:NInventory|ARTIFACT_DEFAULT_MAX_DURABILITY
artifact_durability <= define:NInventory|ARTIFACT_LOW_DURABILITY
}
AND = {
artifact_max_durability < define:NInventory|ARTIFACT_DEFAULT_MAX_DURABILITY
artifact_durability_percent <= {
value = define:NInventory|ARTIFACT_LOW_DURABILITY
divide = 100
}
}
}
}
}
custom_tooltip = artifact_gift_low_durability_tt
}
else_if = {
limit = {
scope:target = {
OR = {
AND = {
artifact_max_durability >= define:NInventory|ARTIFACT_DEFAULT_MAX_DURABILITY
artifact_durability <= define:NInventory|ARTIFACT_VERY_LOW_DURABILITY
}
AND = {
artifact_max_durability < define:NInventory|ARTIFACT_DEFAULT_MAX_DURABILITY
artifact_durability_percent <= {
value = define:NInventory|ARTIFACT_VERY_LOW_DURABILITY
divide = 100
}
}
}
}
}
custom_tooltip = artifact_gift_very_low_durability_tt
}
if = {
limit = {
scope:recipient = {
NOT = {
can_benefit_from_artifact = scope:target
}
}
}
custom_tooltip = artifact_gift_benefit_tt
}
}
scope:recipient = {
hidden_effect = {
send_interface_toast = {
type = event_toast_effect_neutral
title = buy_artifact_interaction_notification
left_icon = scope:puppet_or_actor
right_icon = scope:target
show_as_tooltip = {
pay_short_term_gold = {
gold = gdp_merchant_sell_artifact_value
target = scope:puppet_or_actor
}
scope:target = {
set_owner = scope:recipient
if = {
limit = {
artifact_type = creature
scope:recipient = {
NOT = {
domicile ?= {
is_domicile_type = merchant_company
}
}
}
}
reforge_creature_artifact_effect = yes
}
}
}
}
if = {
limit = {
is_ruler = no
can_equip_artifact = scope:target
no_or_worse_equipped_artifact_type_trigger = {
SLOT_TYPE = primary_armament
}
no_or_worse_equipped_artifact_type_trigger = {
SLOT_TYPE = armor
}
no_or_worse_equipped_artifact_type_trigger = {
SLOT_TYPE = regalia
# … (cut here; the rest is in the file)As written in game/common/character_interactions/00_artifact_interactions.txt.
- Category
- Friendly actions
- In the menu
- under More…
- ID
sell_artifact_interaction
Source: game/common/character_interactions/00_artifact_interactions.txt and the English localisation, Crusader Kings III 1.21.0. “You” is the character who sends it (scope:actor, or a puppet acting for you); “the character you target” is the recipient.