Difference between revisions of "FindStack"
From Wiki
Ghoulsblade (Talk | contribs) |
Ghoulsblade (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{header|FindItem|ro|The #findStack system variable contains the number of stacked items in the object returned by [[findItem]].}} | {{header|FindItem|ro|The #findStack system variable contains the number of stacked items in the object returned by [[findItem]].}} | ||
− | |||
{{note|User Contributed Notes | {{note|User Contributed Notes | ||
to distinguish mobs from items : | to distinguish mobs from items : | ||
− | findStack equal to 0 is mobile | + | findStack equal to 0 is mobile |
− | + | ||
}} | }} | ||
Revision as of 19:59, 12 April 2008
⇒ | The #findStack system variable contains the number of stacked items in the object returned by findItem. |
Note: | User Contributed Notes
to distinguish mobs from items : findStack equal to 0 is mobile |
Example
finditem POF C_ , #BACKPACKID if #FINDCNT > 0 { display ok I found a stack of gold and there are #FINDSTACK gold pieces in it. } if #FINDCNT < 1 { display ok No gold was found in backpack. } halt
See Also
FindItem
- These system variables are set when the FindItem command is used.
#findID | ⇒ | Returns the id of the object returned by findItem |
#findType | ⇒ | Returns the type of the object returned by findItem |
#findX | ⇒ | Returns the x-coordinate of the object returned by findItem |
#findY | ⇒ | Returns the y-coordinate of the object returned by findItem |
#findZ | ⇒ | Returns the z-coordinate of the object returned by findItem |
#findDist | ⇒ | Returns the distance from the character to the object returned by findItem |
#findKind | ⇒ | Returns the kind of the object returned by findItem |
#findStack | ⇒ | Returns the number of stacked items in the object returned by findItem |
#findBagID | ⇒ | Returns the bag the object returned by findItem is contained in |
#findMod | ⇔ | Returns displacement for #findX and #findY |
#findRep | ⇒ | Returns the reputation of the object returned by findItem |
#findCol | ⇒ | Returns the color of the object returned by findItem |
#findIndex | ⇔ | Gets the values of all other findItem results without restarting the time-consuming FindItem command. |
#findCnt | ⇒ | Returns the number of objects that matches what was searched for with the findItem command |