Advice required regarding RemoveItem()

Post » Tue Aug 26, 2014 11:20 pm

Hey guys here is the scenario. Player has an item added to their inventory which does some magic in an OnContainerChanged() event. Then it calls Player.RemoveItem(baseitem, 1). BaseItem is the base object of the item added.

Does that scenario seem safe? Could there be any problems, perhaps minor save bloat, with this?
User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am

Post » Tue Aug 26, 2014 2:25 pm

Removing the base item doesn't seem right. You must remove the version of the base item that has been added to the inventory; this one being defined in your script.

User avatar
Blaine
 
Posts: 3456
Joined: Wed May 16, 2007 4:24 pm


Return to V - Skyrim