FindCnt

From Wiki
Revision as of 00:15, 4 September 2007 by Seg (Talk | contribs) (Example)

Jump to: navigation, search
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