angelwraith Posted March 13, 2010 Share Posted March 13, 2010 in script is there a function that calls the number of items in a container list? im trying to cycle through an inventory to add its items to a form list and move the item.. this is what i have.. all i need is a way to figure out how many unique forms are in the list.SCN SUBsorterSETTER ref rBaseInvObj int ACTIVATEDF int iInvPos int myCount Begin OnActivate set ACTIVATEDF to 1 ACTIVATE END BEGIN GAMEMODE if ACTIVATEDF == 1 set iInvPos to MyContainerREF.!!!!!!!!!!!!!!!!THIS IS WHAT I NEED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Label 1 if (iInvPos) set iInvPos to (iInvPos - 1) set rBaseInvObj to (SUBmedsorterADD.GetInventoryObject iInvPos) ListAddForm SUBsortmedslist rBaseInvObj set myCount to SUBmedsorterADD.getItemCount rBaseInvObj SUBmedsorterADD.removeItem rBaseInvObj myCount SUBsafe03REF.addItem rBaseInvObj myCount goto 1 endif set ACTIVATEDF to 0 endif END Link to comment Share on other sites More sharing options...
Cipscis Posted March 13, 2010 Share Posted March 13, 2010 It's not properly documented yet, but you can use FOSE's "GetNumItems" function. Here are some temporary docs that include it - reference post Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts