random_character_artifact = { limit = { artifact_slot_type = primary_armament } save_scope_as = this_artifact } random_character_artifact = { limit = { exists = var:relic } save_scope_as = that_artifact } scope:this_artifact = { set_artifact_name = relic_weapon_name set_artifact_description = artifact_weapon_relic_desc set_variable = added_relic hidden_effect = { copy_artifact_modifiers = scope:that_artifact set_artifact_rarity = illustrious } } send_interface_toast = { title = artifact.4090.a.tt left_icon = root right_icon = scope:this_artifact custom_tooltip = embedded_not_destroyed_tooltip } scope:that_artifact = { hidden_effect = { destroy_artifact = this } }