llGetInventoryDesc
function
Function syntax
string llGetInventoryDesc(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.
string result = llGetInventoryDesc("");Caveats
Section titled “Caveats”- If item has no description an empty string is returned.
Examples
Section titled “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
Section titled “See also”Functions
Section titled “Functions”llGetInventoryAcquireTime— Returns the time the item was added to the prim’s inventoryllGetInventoryName— Returns the inventory item’s namellGetInventoryType— Tests to see if an inventory item exists and returns its typellGetInventoryNumber— Returns the number of items of a specific type in inventoryllGetInventoryPermMask— Returns the inventory item’s permissionsllGetInventoryKey— Returns the inventory item’s UUID (if full perm)
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.