Jump to content

cant find this function


angelwraith

Recommended Posts

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...