What item is the player enchanting?

Post » Fri May 13, 2011 10:47 am

Hi folks,

Is it possible to determine what item is selected for enchantment in the enchanting menu? I found GetEnchMenuSoulgem which gives you the selected soulgem and GetEnchMenuEnchItem which gives you the resulting item enchanment but I can't find the missing piece of the triad.

Perhaps it's possible using the xml-parsing commands but they're kind of like Greek to me. Maybe someone could set me down the right path if there's no GetEnchMenuObject type command.

Thanks!
User avatar
Jordan Moreno
 
Posts: 3462
Joined: Thu May 10, 2007 4:47 pm

Post » Fri May 13, 2011 7:45 pm

OBSE 0019 beta 3 has GetEnchMenuBaseItem.
User avatar
Marie
 
Posts: 3405
Joined: Thu Jun 29, 2006 12:05 am

Post » Fri May 13, 2011 10:12 am

OBSE 0019 beta 3 has GetEnchMenuBaseItem.

Ah, there it is! I didn't notice it down at the bottom of the list in the docs; the other two are together near the top.

Thanks Scruggs.
User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Fri May 13, 2011 10:46 am

Hmm... it seems that knowing what the player is up to in the enchantment menu doesn't help me. When the menu's closed with the "create" button, the item used (the one returned by GetEnchMenuBaseItem) is removed from the player and replaced with the new (cloneform?) item with the enchantment on it.

So my new question is: is it possible to determine what item the player has just enchanted? Do I need to record the player's inventory (player.GetItems) upon opening the enchantment menu and again upon closing it and compare the differences, or is there a simpler way?
User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm


Return to IV - Oblivion