CHANGED INVENTORY

From Second Life Wiki
Revision as of 02:16, 30 November 2008 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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
  • A notecard in inventory is saved

This event does not occur when:

Important : This event is triggered in the root prim by a change in any child prim, unless the child prim has a handler for it. It is not triggered in any other linked prim.

Caveats

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   CHANGED_INVENTORY not triggered by llRemoveInventory()

Related Articles

Constants

•  CHANGED_ALLOWED_DROP llAllowInventoryDrop

Functions

•  llGiveInventory
•  llRemoveInventory
•  llRemoteLoadScriptPin

Events

•  changed

Examples

<lsl> default {

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

} </lsl>

Deep Notes

All Issues

~ Search JIRA for related Issues
   CHANGED_INVENTORY not triggered by llRemoveInventory()

Signature

integer CHANGED_INVENTORY = 0x1;