Difference between revisions of "FindID"

From Wiki
Jump to: navigation, search
m
m
Line 5: Line 5:
 
{{ro}}
 
{{ro}}
  
The [[Var_findID|#findID]] system variable contains the id of the object returned by [[findItem|findItem]].
+
The [[Var findID|#findID]] system variable contains the id of the object returned by [[findItem|findItem]].
  
 
==== Example ====
 
==== Example ====
Line 25: Line 25:
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px | [[findItem|findItem]] || Width=200px | [[Var_findType|#findType]]|| Width=200px | [[Var_findX|#findX]] || Width=200px | [[Var_findY|#findY]] || Width=200px | [[Var_findZ|#findZ]] || Width=200px | [[Var_findDist|#findDist]] || Width=200px | [[Var_findKind|#findKind]] || Width=200px | [[Var_findStack|#findStack]] || Width=200px | [[Var_findBagID|#findBagID]] || Width=200px | [[Var_findMod|#findMod]] || Width=200px | [[Var_findRep|#findRep]] || Width=200px | [[Var_findCol|#findCol]] || Width=200px | [[Var_findCnt|#findCnt]]
+
| Width=200px | [[findItem|findItem]] || Width=200px | [[Var findType|#findType]]|| Width=200px | [[Var findX|#findX]] || Width=200px | [[Var findY|#findY]] || Width=200px | [[Var findZ|#findZ]] || Width=200px | [[Var findDist|#findDist]] || Width=200px | [[Var findKind|#findKind]] || Width=200px | [[Var findStack|#findStack]] || Width=200px | [[Var findBagID|#findBagID]] || Width=200px | [[Var findMod|#findMod]] || Width=200px | [[Var findRep|#findRep]] || Width=200px | [[Var findCol|#findCol]] || Width=200px | [[Var findCnt|#findCnt]]
 
|}
 
|}
 
----
 
----

Revision as of 22:58, 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