Difference between revisions of "FindID"
From Wiki
m (Changed "findkind" to "#findkind") |
(clarified description) |
||
| Line 1: | Line 1: | ||
| − | {{header|FindItem|ro|The #findID system variable contains the id of the object | + | {{header|FindItem|ro|The #findID system variable contains the id of the object at the current #[[findIndex]] position. All of the find* variables are populated by using the [[findItem]] command.}} |
== Example == | == Example == | ||
Revision as of 22:07, 20 December 2005
| ⇒ | The #findID system variable contains the id of the object at the current #findIndex position. All of the find* variables are populated by using the findItem command. |
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 |