Difference between revisions of "LlLinksetDataWrite"

From Second Life Wiki
Jump to navigation Jump to search
Line 13: Line 13:
When this function is called the [[linkset_data]] event is triggered in all scripts running in the link set with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_UPDATE]], or [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_DELETE]] if the key value pair is deleted.
When this function is called the [[linkset_data]] event is triggered in all scripts running in the link set with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_UPDATE]], or [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_DELETE]] if the key value pair is deleted.
|func_footnote
|func_footnote
|spec
|spec=
The linkset datastore can contain up to 64k of data.  Every key-value pair written to the datastore consumes a number of bytes in the datastore equal to the length of its key plus the length of the value.
|caveats
|caveats
|helpers
|helpers

Revision as of 15:36, 13 October 2022

Summary

Function: integer llLinksetDataWrite( string name, string value );
0.0 Forced Delay
10.0 Energy

The llLinksetDataWrite function creates or updates a key in the link set datastore, assigning it the string specified in the value parameter. If the value parameter is an empty string, the key is deleted.

This function returns 0 on success or an error code on failure.

When this function is called the linkset_data event is triggered in all scripts running in the link set with an action of LINKSETDATA_UPDATE, or LINKSETDATA_DELETE if the key value pair is deleted.
Returns an integer success or failure code.

• string name The name of the link set data key to be updated or created.
• string value The value to assign to the named key

Specification

The linkset datastore can contain up to 64k of data. Every key-value pair written to the datastore consumes a number of bytes in the datastore equal to the length of its key plus the length of the value.

Examples

Deep Notes

Signature

function integer llLinksetDataWrite( string name, string value );