Difference between revisions of "FindCnt"
From Wiki
(→Example) |
(→Example) |
||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
+ | == Related Commands == | ||
+ | {| style="background:gainsboro; color:black; border: 2px #aaa solid;" | ||
+ | | width=250px align=center | [[ignoreItem]] || width=250px align=center | [[findItem]] || width=250px align=center | [[findCnt|#findCnt]] | ||
+ | |- | ||
+ | | width=250px align=center | [[findID|#findID]] || width=250px align=center | [[findType|#findType]] || width=250px align=center | [[findX|#findX]] | ||
+ | |- | ||
+ | | width=250px align=center | [[findY|#findY]] || width=250px align=center | [[findZ|#findZ]] || width=250px align=center | [[findDist|#findDist]] | ||
+ | |- | ||
+ | | width=250px align=center | [[findKind|#findKind]] || width=250px align=center | [[findStack|#findStack]] || width=250px align=center | [[findBagID|#findBagID]] | ||
+ | |- | ||
+ | | width=250px align=center | [[findMod|#findMod]] || width=250px align=center | [[findRep|#findRep]] || width=250px align=center | [[findCol|#findCol]] | ||
+ | |- | ||
+ | | width=250px align=center | [[findIndex|#findIndex]] | ||
+ | |} | ||
{{footer}} | {{footer}} |
Revision as of 00:15, 4 September 2007
⇒ | The #findCnt system variable contains the number of objects that matches what was searched for with the findItem command. |
Example
.... loop: finditem %housesign G_5 if #findcnt < 1 { gosub placement } goto loop ....
finditem * C_ , #BACKPACKID if #FINDCNT > 0 { display ok There are #FINDCNT items in your backpack! } if #FINDCNT < 1 { display ok No items were found in your backpack! } halt
Related Commands
ignoreItem | findItem | #findCnt |
#findID | #findType | #findX |
#findY | #findZ | #findDist |
#findKind | #findStack | #findBagID |
#findMod | #findRep | #findCol |
#findIndex |
See also
Main Page | Documentation |