Hi. I'm trying to put items in to a chest and add their values as I go. This is working OK except that any items that have magical properties or have been improved (workbench/grinding wheel) are only showing their base values. I am using GetGoldValue() to get the value of the items and I'm wondering if there's a similar function which will return the value including enchantments and improvements. E.g. I have an Ebony Sword that I have enchanted twice and improved to legendary. It is worth 2345 g. When I place it in the chest the value becomes the same as an ordinary Ebony Sword at 720 g. This is my code so far:
Scriptname SDJDonationChest extends ObjectReferenceint ChestTotalValueint CurrentItemValuefloat TenPercentOfTotalChestValueint FinalPriceForDisplayint Function GetGoldValue() NativeEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)CurrentItemValue = http://forums.bethsoft.com/topic/1372462-need-similar-function-to-getgoldvalue-but-with-magic-weaparm/akBaseItem.GetGoldValue() * aiItemCountChestTotalValue = ChestTotalValue + CurrentItemValueDebug.MessageBox("Currently worth " + ChestTotalValue)EndEventAny help is welcome. Thanx