Inspect.Buff.Detail

From Riftui Wiki

Jump to: navigation, search

Returns information on a single buff, or a (table) of buffs.

Contents

Signature

detail = Inspect.Buff.Detail(unit, list)

Parameters

list (string, table) - A single buff identifier, or a table of buff identifiers.

-- Table structure of buff identifiers --
buff_list = {
       buff_identifier = true,
       buff_b_identifier = true,
       ...
}

Return Value

detail (table) - A table of buff identifiers that are paired with a table of their respective information. If only a single buff identifier is passed, only the respective ability table will be returned.

-- Table structure of returned table of buffs --
buff_detail{
       buff_identifier = { name = val, ... },
       buff_b_identifier = { name = val, ...},
       ...
}

Example

The example program snippet below should give you a result that that looks like the text below the example for every buff active on you (the player.) The results listed show that the player has the"Track Wood", "Rested", "Track Plants" and "Cavalier" buffs on them.

-- Get the list of our buffs --
local function PrintMyBuffs()
	local buff_list = Inspect.Buff.List("player")
	-- Sometimes the buff list isn't available so we need to prevent nil operations --
	if not buff_list then return end 
	
        -- Lets get all the details of our new list using the table --
        local buff_details = Inspect.Buff.Detail("player",buff_list)

	-- Step through the buff list table and print information on each one --
	for k, v in pairs(buff_details) do
                print(tostring(v))
		-- Now step through the buff's detail table --
                for a, b in pairs(v) do
                        -- this will print something like "name, Buff Name" --
                        print("		" .. tostring(a) .. "		" .. tostring(b))
                end	
	end
end
    table: 0x0e6ea228
         caster     u02F9800015AD9A39
         icon     Data/\UI\item_icons\wood3.dds
         name     Track Wood
         ability    a0000000071B6D2C0
    table: 0x0e6ea3c0
         caster     u02F9800015AD9A39
         icon     Data/\UI\ability_icons\rudeawake1.dds
         name     Rested
         noncancelable     true
    table:  0x0e6ea408
         caster     u02F9800015AD9A39
         icon     Data/\UI\item_icons\plant1.dds
         name     Track Plants
         ability     a000000001452B148 
    table:  0x0e6ea1d8
         remaining     3594.4089355489
         duration     3599.9540683594
         caster     u02F9800015AD9A39
         begin     13073.556640625
         icon     Data/\UI\ability_icons\cavalier_01.dds
         name     Cavalier
         ability     a00000000126F2A89
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox