Difference between revisions of "Walking Through Inventory Items"
Walking Through Inventory Items (edit)
Revision as of 04:18, 15 February 2011
, 04:18, 15 February 2011→From the Beginning to the End
imported>TheNiceOne |
imported>TheNiceOne |
||
Line 21: | Line 21: | ||
==From the Beginning to the End== | ==From the Beginning to the End== | ||
<pre>short | <pre>short invPos | ||
short invCount | |||
ref pInvObj | ref pInvObj | ||
ref pCont | ref pCont | ||
... | ... | ||
set pCont to YourDesiredContainer | set pCont to YourDesiredContainer | ||
set | set invPos to 0 | ||
set invCount to pCont.GetNumItems | |||
set | While invPos < invCount | ||
set pInvObj to (pCont.GetInventoryObject invPos) | |||
set | |||
;Do whatever you want to do | ;Do whatever you want to do | ||
set invPos to invPos + 1 | |||
Loop</pre> | |||
==Notes== | ==Notes== |