Skip to content
lsl.devlsl.devLSL Dev

llGetInventoryDesc

function
Function syntax
string llGetInventoryDesc(
  1. string item// Name of the item in the prim's inventory.
);
Returns
string
Energy
10

Returns the description string of the specified inventory item.

Returns a string with the description of the inventory item.

How to use
string result = llGetInventoryDesc("");
  • If item has no description an empty string is returned.
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 + "\"");
}
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.