Difference between revisions of "Walking Through Inventory Items"

imported>KyleWollaston
imported>TheNiceOne
Line 13: Line 13:
...
...
set pCont to YourDesiredContainer
set pCont to YourDesiredContainer
set InvPos to pCont.GetNumItems
set invPos to pCont.GetNumItems
Label
While invPos > 0
if InvPos
   set invPos to (invPos - 1)
   set InvPos to (InvPos - 1)
   set pInvObj to (pCont.GetInventoryObject invPos)
   set pInvObj to (pCont.GetInventoryObject InvPos)
   ;Do whatever you want to do
   ;Do whatever you want to do
  Goto
Loop</pre>
endif</pre>


==From the Beginning to the End==
==From the Beginning to the End==
Anonymous user