Mine
public text v1 · immutable variable int BuffNum = 0
method buffsearch(string SearchString)
{
BuffNum:Set[0]
do
{
; Searching for Name AND Effect, since effect usually contains "Increase <Statname>" this will also Match for debuffs, but who cares.
if ${Me.Buff[${Buffnum}].Name.Find[${SearchString}]} || ${Me.Buff[${Buffnum}].Effect.Find[${SearchString}]}
return ${Buffnum}
}
while ${Me.Buff[${Buffnum:Inc}].exist}
return FALSE
}