Skip to content

#FindIndex

VariableFindItemRead / writeNumberNeeds client
Set by
FindItem

Also searchable as: #FindIndex · FindIndex · find index · next item

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.

Ignore every item of one type in the backpack:

finditem %TypeToIgnore C_ , #BackpackID
ignoreAgain:
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_ , #CharID
for #FindIndex 1 #FindCnt
{
event property #FindID
event sysmessage #Property
wait 20
}
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.