FindIndex
From Wiki
⇔ | The #findIindex system variable get the values of all other findItem results without restarting the time-consuming findItem command. Its range vary from 1 to #findcnt. |
Note: | This command is only available from EUO 1.5. |
Example
finditem %TypeToIgnore C_ , #backpackid ignoreAgain: if #findIndex <= #findCnt { ignoreItem #findid set #findIndex #findIndex + 1 goto ignoreAgain } halt
; Use a single finditem to display the properties of each item on my paperdoll. ; Output is set to the journal via event sysmessage ; -Seg finditem * C_ , #CHARID for #FINDINDEX 1 #FINDCNT { event property #FINDID event sysmessage #PROPERTY wait 20 } 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 |