Editing Walking Through Inventory Items
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
==From the Beginning to the End== | ==From the Beginning to the End== | ||
<pre>short | <pre>short InvPos | ||
ref pInvObj | ref pInvObj | ||
ref pCont | ref pCont | ||
... | ... | ||
set pCont to YourDesiredContainer | set pCont to YourDesiredContainer | ||
set | set InvPos to 0 | ||
set | Label | ||
set pInvObj to (pCont.GetInventoryObject InvPos) | |||
set | if pInvObj | ||
set InvPos to (InvPos + 1) | |||
;Do whatever you want to do | ;Do whatever you want to do | ||
Goto | |||
endif</pre> | |||
==Notes== | ==Notes== |