FindItem selects one match (the first, unless you pass an index) and
keeps the rest of its snapshot. Setting #FindIndex selects another match from that snapshot and
refreshes every #Find… variable, without running the slow search again. Valid values go from 1
to #FindCnt.
Reading it gives the position of the match currently selected.
Examples
Section titled “Examples”Ignore every item of one type in the backpack:
finditem %TypeToIgnore C_ , #BackpackIDignoreAgain:if #FindIndex <= #FindCnt{ ignoreitem #FindID set #FindIndex #FindIndex + 1 goto ignoreAgain}halt#FindIndex also works as a for counter. This lists the properties of everything worn by the
character in the journal:
finditem * C_ , #CharIDfor #FindIndex 1 #FindCnt{ event property #FindID event sysmessage #Property wait 20}haltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.