Risuun Posted February 20, 2012 Share Posted February 20, 2012 I am looking for some script help to look through entire container contents and gather info/stats on items inside. Is this possible? If so, could someone lend me a hand? Link to comment Share on other sites More sharing options...
Cipscis Posted February 20, 2012 Share Posted February 20, 2012 You can only make requests about the content of an inventory if you know exactly what type(s) of item you're looking for. However, with the OnItemAdded and OnItemRemoved events you can accurately keep track of changes to a container's inventory. Couple that with RemoveAllItems (twice to move items to another container then back again) and you should be able to detect all items within a container. Be wary of doing this with actors, however. Particularly the player. Removing an item will also unequip it, and I'm not sure but I expect it would play havok with favourites and/or hotkeys. Cipscis Link to comment Share on other sites More sharing options...
Risuun Posted February 20, 2012 Author Share Posted February 20, 2012 Cool. I do plan on using the script only for a specific container (not the player). I'll start running some tests! Thanks! Link to comment Share on other sites More sharing options...
Risuun Posted February 21, 2012 Author Share Posted February 21, 2012 Got it working. Link to comment Share on other sites More sharing options...
Recommended Posts