Difference between revisions of "CHANGED INVENTORY"

From Second Life Wiki
Jump to: navigation, search
Line 4: Line 4:
 
|value={{LSL Hex|0x1}}
 
|value={{LSL Hex|0x1}}
 
|desc=Prim inventory has [[changed]]
 
|desc=Prim inventory has [[changed]]
|examples
+
|examples=
 +
<pre>
 +
default
 +
{
 +
    changed(integer change) //reset script if inventory changes
 +
    {
 +
        if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise!
 +
        {
 +
            llOwnerSay("The inventory has changed.");
 +
        }
 +
    }
 +
}
 +
</pre>
 
|functions=
 
|functions=
 
{{LSL DefineRow||[[llGiveInventory]]|}}
 
{{LSL DefineRow||[[llGiveInventory]]|}}

Revision as of 18:46, 1 March 2007

Description

Constant: integer CHANGED_INVENTORY = 0x1;

The integer constant CHANGED_INVENTORY has the value 0x1

Prim inventory has changed

Related Articles

Functions

•  llGiveInventory
•  llRemoveInventory
•  llRemoteLoadScriptPin

Events

•  changed

Examples

default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The inventory has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_INVENTORY = 0x1;