Syntax

string llGetInventoryDesc( string item );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string item
an item in the inventory of the prim this script is in

Return value

Returns a string with the description of the inventory item.

Caveats

Examples

Add an object to a prims inventory, as well as this script, in order to get the name of the creator.

default
{
    touch_start(integer total_number)
    {
        integer count = llGetInventoryNumber(INVENTORY_ALL);
        integer index;
        for (index = 0; index < count; ++index)
        {
            string name = llGetInventoryName(INVENTORY_ALL, index);
            string desc = llGetInventoryDesc(name);
            
            llSay(0, "Item: \"" + name + "\" -- \"" + desc + "\"");
        }
    }
}

See also

Functions