llSetInventoryDesc

From Second Life Wiki
Revision as of 12:06, 21 March 2009 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search
Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llSetInventoryDesc( string name, string desc );
REQUEST Function ID
0.0 Forced Delay
10.0 Energy

Sets the description of the inventory item name to desc. Useful for vendors wishing to hand out customized versions of no-mod objects.

• string name an item in the inventory of the prim this script is inINVENTORY_* flag
• string desc Desired description for inventory object

Flag Inventory Type
INVENTORY_NONE -1 Item does not exist.
INVENTORY_ALL Any inventory type.
INVENTORY_TEXTURE 0 texture
INVENTORY_SOUND 1 sound
INVENTORY_LANDMARK 3 landmark
INVENTORY_CLOTHING 5 clothing
INVENTORY_OBJECT 6 object
Flag Inventory Type
INVENTORY_NOTECARD 7 notecard
INVENTORY_SCRIPT 10 script
INVENTORY_BODYPART 13 body part
INVENTORY_ANIMATION 20 animation
INVENTORY_GESTURE 21 gesture
INVENTORY_SETTING 56 setting
INVENTORY_MATERIAL 57 material

Caveats

  • If name is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Deep Notes

Search JIRA for related Issues

Signature

//function void llSetInventoryDesc( string name, string desc );

Comments

A few things that came to mind:

  • When used in a vendor it would be more useful to change the desc of the item when giving, and not actually changing it in the prim's inventory.

P.S. I changed the syntax, using inventory numbering to access items is hazardous, names are less prone to change. -- Strife (talk