How to get objectid of custom smithed items?

Post » Thu May 17, 2012 8:24 pm

I'm trying to do a player.equipitem to equip my custom smithed/enchanted gear, but I'm missing the objectid for it. I can do a player.inv to list the gear, but it only shows the base objectid. If I try to do a player.equip using the base objectid my custom item is equipped, but only with vanilla stats - no armor or damage increases, or enchants. It's only when I manually unequip/equip the item that the custom stats are used.

Is there a way to find the objectid of custom smithed/enchanted items in my inventory? I did a search of the forum, but I didn't see any mention of this.
User avatar
Jennifer May
 
Posts: 3376
Joined: Thu Aug 16, 2007 3:51 pm

Post » Thu May 17, 2012 9:24 pm

AFAIK the way things used to work was items like that were stored in inventory as a record of [Number of Base Object] and [Extra Data: Base Object, Charge level, owner, etc]. Odds are when you force-equip it all it does is see if they have any of Base Object and equip it, without ever looking to see if there's any Extra Data for a Base Object of that type in your inventory. Perhaps because if you had multiple different Extra Data entries for the same Base Object (i.e. several copies of the same weapon with different levels of smithing, soul charge) it doesn't have any way of knowing which one you would be referring to with equip.
User avatar
brandon frier
 
Posts: 3422
Joined: Wed Oct 17, 2007 8:47 pm

Post » Thu May 17, 2012 11:37 am

Makes sense.

So is there anyway to get the extra data about an object from the console, and, if you can, be able to use it to equip the item? I gather from your explanation that it's probably not possible.

I was hoping to use this to create hotkeys for gear/weapon sets without a mod.
User avatar
Luna Lovegood
 
Posts: 3325
Joined: Thu Sep 14, 2006 6:45 pm

Post » Thu May 17, 2012 7:05 am

Makes sense.

So is there anyway to get the extra data about an object from the console, and, if you can, be able to use it to equip the item? I gather from your explanation that it's probably not possible.

I was hoping to use this to create hotkeys for gear/weapon sets without a mod.

I know this works on NPCs, but it might also work on objects.

help 4

gives you the baseID of an NPC, so I'm wondering if
help 4 would give you the object ID minus the < >'s of course
User avatar
m Gardner
 
Posts: 3510
Joined: Sun Jun 03, 2007 8:08 pm

Post » Thu May 17, 2012 6:09 pm

I know this works on NPCs, but it might also work on objects.

help 4

gives you the baseID of an NPC, so I'm wondering if
help 4 would give you the object ID minus the < >'s of course

I tried that, but custom items that you craft don't appear in that list, unfortunately.
User avatar
W E I R D
 
Posts: 3496
Joined: Tue Mar 20, 2007 10:08 am

Post » Thu May 17, 2012 6:07 am

Makes sense.

So is there anyway to get the extra data about an object from the console, and, if you can, be able to use it to equip the item? I gather from your explanation that it's probably not possible.

I was hoping to use this to create hotkeys for gear/weapon sets without a mod.
I think we eventually got functions to manipulate them in OBSE, but they weren't available in the vanilla CK. Of course the new scripting language is apparently less terrible so there might be the option?
User avatar
Chris BEvan
 
Posts: 3359
Joined: Mon Jul 02, 2007 4:40 pm


Return to V - Skyrim