How can I access an item's price?

Post » Thu Jun 21, 2012 3:56 pm

Hello. Is there a function I can use to access an item's price (i.e. the overall value of the item, including enchantments and smithing, not just the value of the base item)? I've tried GetGoldValue() but that only gives the base item price. PLEASE help...
User avatar
Marion Geneste
 
Posts: 3566
Joined: Fri Mar 30, 2007 9:21 pm

Post » Thu Jun 21, 2012 1:06 pm

Like http://www.creationkit.com/GetValue_-_GlobalVariable? Or http://www.creationkit.com/GetValueInt_-_GlobalVariable?
User avatar
Devils Cheek
 
Posts: 3561
Joined: Sun Aug 13, 2006 10:24 pm

Post » Thu Jun 21, 2012 6:19 am

Thanks for the advice. I've taken a look at those examples but I think I need something different. Here is one of the examples:
; Obtain the current time of day
int timeOfDay = TimeOfDayGlobalProperty.GetValueInt()

I think the part I need replaces the 'TimeOfDayGlobalProperty'. Something like:
; Obtain the item value
int itemValue = ??????????????.GetValueInt()

From looking at the forums I don't think this is going to be easy to solve. If anyone can point me to a more complicated solution or another mod that does something similar I'd appreciate it. Thanks again.
User avatar
Cheville Thompson
 
Posts: 3404
Joined: Sun Mar 25, 2007 2:33 pm

Post » Thu Jun 21, 2012 12:37 am

http://www.creationkit.com/GetGoldValue_-_Form

:)
User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Wed Jun 20, 2012 11:44 pm

Thanks for the advice. I've taken a look at those examples but I think I need something different. Here is one of the examples:
; Obtain the current time of day
int timeOfDay = TimeOfDayGlobalProperty.GetValueInt()

I think the part I need replaces the 'TimeOfDayGlobalProperty'. Something like:
; Obtain the item value
int itemValue = ??????????????.GetValueInt()

From looking at the forums I don't think this is going to be easy to solve. If anyone can point me to a more complicated solution or another mod that does something similar I'd appreciate it. Thanks again.

I recall seeing the formula the game uses to calculate the price you see in one of the comment threads for a mod that affect merchants prices. But I don't remember which exact one. http://skyrim.nexusmods.com/downloads/file.php?id=11919, http://skyrim.nexusmods.com/downloads/file.php?id=8502, and http://skyrim.nexusmods.com/downloads/file.php?id=2762 come to mind, as they all affect pricing.
User avatar
Unstoppable Judge
 
Posts: 3337
Joined: Sat Jul 29, 2006 11:22 pm


Return to V - Skyrim