I want to calculate the value of all items in a container,
I now know "GetGoldValue()" and I want to ask how to call on all the items.
For example, I put a 25-value ironsword and a 1-value arrow in it, and I close the chest and i hope it pop up "the value of all is 26".
Here is my script
----------------------
Scriptname DDDchest extends ObjectReferenceEvent Onclose(ObjectReference akActionRef) Debug.Notification("The Stock is examined" ) Debug.Notification(self.GetGoldValue() )EndEvent-------------
and this one just pop up -1 because what I checked is the value of the chest which is -1
I will be so grateful if you guys help me ~~~ Thank you very much!
Do you know how to solve this problem?