FindID

From Wiki
Revision as of 07:32, 27 August 2005 by Kedrick Valorite (Talk | contribs)

Jump to: navigation, search
The #findID system variable contains the id of the object returned by findItem.

Example

findAgain:
finditem POF

if #findkind = 1
{
   ignoreitem #findid
   goto findAgain
}
if findkind = -1
   halt
msg #findid is the ID of the gold in my bag. I have exactly #findstack gold on me.$
halt

See also

Main Page Documentation