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.