Difference between revisions of "FindID"

From Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
{{ro}}
 
{{ro}}
 +
 +
The [[Var_findId|#findId]] system variable contains the id of the object returned by findItem.
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 +
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
  
 
</pre>
 
</pre>
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px |  
+
| Width=200px | [[findItem|findItem]] || Width=200px | [[Var_findType|&#0035;findType]]|| Width=200px | [[Var_findX|&#0035;findX]] || Width=200px | [[Var_findY|&#0035;findY]] || Width=200px | [[Var_findZ|&#0035;findZ]] || Width=200px | [[Var_findDist|&#0035;findDist]] || Width=200px | [[Var_findKind|&#0035;findKind]] || Width=200px | [[Var_findStack|&#0035;findStack]] || Width=200px | [[Var_findBagID|&#0035;findBagID]] || Width=200px | [[Var_findMod|&#0035;findMod]] || Width=200px | [[Var_findRep|&#0035;findRep]] || Width=200px | [[Var_findCol|&#0035;findCol]] || Width=200px | [[Var_findCnt|&#0035;findCnt]]
 
|}
 
|}
 
----
 
----

Revision as of 20:24, 15 August 2005

#findID

FindItem System Variables

Description

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

findItem #findType #findX #findY #findZ #findDist #findKind #findStack #findBagID #findMod #findRep #findCol #findCnt

Main_Page Documentation FindItem System Variables