LlSetInventoryDesc: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
New page: {{LSL Function/negative_index|false|number}} {{LSL_Function |mode=request |func_id=??? |func_sleep=0.0 |func_energy=10.0 |func=llSetInventoryDesc |p1_type=integer|p1_name=type|p1_desc=INVE...
 
Strife Onizuka (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL Function/negative_index|false|number}}
{{LSL_Function
{{LSL_Function
|inject-2={{LSL Function/inventory|name}}
|mode=request
|mode=request
|func_id=???
|func_id=???
Line 6: Line 6:
|func_energy=10.0
|func_energy=10.0
|func=llSetInventoryDesc
|func=llSetInventoryDesc
|p1_type=integer|p1_name=type|p1_desc=INVENTORY_* flag
|p1_type=string|p1_name=name|p1_desc=INVENTORY_* flag
|p2_type=integer|p2_name=number|p2_desc=Beginning from 0
|p2_type=string|p2_name=desc|p2_desc=Desired description for inventory object
|p3_type=string|p3_name=desc|p3_desc=Desired description for inventory object
|func_desc=Sets the description of the inventory item '''name''' to '''desc'''.  Useful for vendors wishing to hand out customized versions of no-mod objects.
|func_desc=Sets the description of the inventory object '''number''' of '''type'''.  Useful for vendors wishing to hand out customized versions of no-mod objects.
|func_footnote
|func_footnote=Inventory items are sorted in alphabetical order (not chronological order).
|spec
|spec
|caveats
|caveats
|constants={{LSL Constants Inventory}}
|constants
|examples=
|examples=
|helpers
|helpers
Line 20: Line 19:
{{LSL DefineRow||[[llGetInventoryName]]|}}
{{LSL DefineRow||[[llGetInventoryName]]|}}
{{LSL DefineRow||[[llGetInventoryDesc]]|}}
{{LSL DefineRow||[[llGetInventoryDesc]]|}}
{{LSL DefineRow||[[llSetInventoryDesc]]|}}
{{LSL DefineRow||[[llSetInventoryName]]|}}
|also_tests
|also_tests
|also_articles
|also_articles
|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.
-- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 19:06, 21 March 2009 (UTC)
|notes
|notes
|cat1
|cat1

Latest revision as of 11:39, 19 June 2012

LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llSetInventoryDesc( string name, string desc );
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

Caveats

  • If name is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.

Examples

See Also

Deep Notes

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