How to "RemoveAllTypedItems" with new scripting?

Post » Sun Jun 17, 2012 9:54 pm

I’m stuck at the orifice while all you kiddies get to play, but I’ve been looking through the wiki for some ideas on how I can create automatic inventory sorters like I did in FO3 & NV. For those I just mostly used “player.RemoveAllTypedItems” and set it to the container I wanted them to go in. However, I cannot find anything in the wiki on item types or “RemoveAllTypedItems” so it’s obvious that won’t work anymore, lol.

Basically, all I want to do is place an activator by a container, click on the activator and it take all the items I want to go in that particular container out of my inventory and place them in the container. It would be cool to have it NOT take anything the player has equipped or in their favorites which shouldn’t be too hard I don’t think. It would also be cool if it casted a little spell on the container or player when the items were removed from the players inventory and added to the container.

Anybody started looking at something like this yet?
User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm

Post » Mon Jun 18, 2012 1:41 am

As far as I know, there is no removealltypeditems like instruction. I suppose you'll need to do a loop checking each item in the inventory to send the ones of the correct type to the inventory.
User avatar
Rhi Edwards
 
Posts: 3453
Joined: Fri Jul 28, 2006 1:42 am

Post » Sun Jun 17, 2012 11:27 am

Anybody found anything else useful on this?
User avatar
Cat Haines
 
Posts: 3385
Joined: Fri Oct 27, 2006 9:27 am


Return to V - Skyrim