Jump to content

Get enchantment and smithing improvement for worn armor item with Papyrus


Recommended Posts

Posted

I'm trying to write a mod that immersively swaps the armor the player is wearing, and I want to transfer any enchantments or improvements to the new item. As far as I understand it, you can use an ObjectReference for Get/SetItemHealthPercent and Get/SetEnchantment. The issue I'm running into is that items in inventory don't seem to have an ObjectReference. I can only figure out how to get the base form, which does not include that information.

 

I heard somewhere that items in inventory are stored as "tokens", but I don't know what that means, or if I can access them from Papyrus. Does anyone know of a way or a SKSE plugin to get that information about an item in inventory? If no such plugin exists I'm willing to learn plugin development, so would it be possible to write something that does this?

 

Thanks,

v

Posted

Wow, that does help, I can't believe I couldn't find that myself. Thanks so much, it looks like that can do exactly what I was looking for.

 

The Slot Masks - Armor page has a great example for that being used.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...