Skip to content

#BuffIndex

VariableBuffsRead / writeNumberNeeds clientNew in Reforged
Set by
ScanBuffs

Also searchable as: #BuffIndex · BuffIndex · buff index

#BuffIndex selects one entry of the snapshot ScanBuffs took, the way #FindIndex selects one FindItem match. Set it to a number from 1 to #BuffCnt; #BuffID, #BuffName and the other #Buff… variables then describe that buff.

Reading it gives the position of the selected buff. Reads N/A when no buff is selected: the buff bar is closed or empty, the client’s buff bar layout is not supported, or the selected buff has left the bar since the last ScanBuffs or set #BuffIndex.

scanbuffs
for #BuffIndex 1 #BuffCnt
event sysmessage #BuffName
halt

Positions can shift while you loop if a buff ends meanwhile. Run ScanBuffs again when you need a fixed list.

See also