Difference between revisions of "FindID"
From Wiki
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|#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 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 |