v2099 Posted September 12, 2022 Posted September 12, 2022 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
Mister X Posted September 12, 2022 Posted September 12, 2022 I don't know if it helps, but there's the WornObject script.
v2099 Posted September 12, 2022 Author Posted September 12, 2022 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now