#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.
Example
Section titled “Example”scanbuffsfor #BuffIndex 1 #BuffCnt event sysmessage #BuffNamehaltPositions can shift while you loop if a buff ends meanwhile. Run ScanBuffs again when you need a fixed
list.