Difference between revisions of "CHANGED INVENTORY"

From Second Life Wiki
Jump to navigation Jump to search
(added details for CHANGED_INVENTORY)
Line 4: Line 4:
|value={{LSL Hex|0x1}}
|value={{LSL Hex|0x1}}
|desc=Prim inventory has [[changed]] by someone who has modification rights to a prim. Inventory changes that cause this event are: inventory item is added or deleted, inventory item name is changed, inventory item permissions are changed, a script in inventory is recompiled, or a notecard in inventory is saved. This event does not occur when: a no-copy inventory item is moved to user inventory, a script in inventory is reset, or when a user without modification rights drops an object into a prim's inventory due to [[llAllowInventoryDrop]].
|desc=Prim inventory has [[changed]] by someone who has modification rights to a prim. Inventory changes that cause this event are: inventory item is added or deleted, inventory item name is changed, inventory item permissions are changed, a script in inventory is recompiled, or a notecard in inventory is saved. This event does not occur when: a no-copy inventory item is moved to user inventory, a script in inventory is reset, or when a user without modification rights drops an object into a prim's inventory due to [[llAllowInventoryDrop]].
'''Important''' : the event is also triggered when the above changes happen in a prim linked to the one where the script is !!!
|examples=
|examples=
<pre>
<pre>

Revision as of 19:14, 18 April 2007

Description

Constant: integer CHANGED_INVENTORY = 0x1;

The integer constant CHANGED_INVENTORY has the value 0x1

Prim inventory has changed by someone who has modification rights to a prim. Inventory changes that cause this event are: inventory item is added or deleted, inventory item name is changed, inventory item permissions are changed, a script in inventory is recompiled, or a notecard in inventory is saved. This event does not occur when: a no-copy inventory item is moved to user inventory, a script in inventory is reset, or when a user without modification rights drops an object into a prim's inventory due to llAllowInventoryDrop.

Important : the event is also triggered when the above changes happen in a prim linked to the one where the script is !!!

Related Articles

Constants

•  CHANGED_ALLOWED_DROP llAllowInventoryDrop

Functions

•  llGiveInventory
•  llRemoveInventory
•  llRemoteLoadScriptPin

Events

•  changed

Examples

default
{
    changed(integer change)
    {
        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;