CHANGED_INVENTORY
constant
Constant
integer CHANGED_INVENTORY = 0x1;Constant groups
Other ChangeType values (12)
CHANGED_ALLOWED_DROP0x40CHANGED_COLOR0x2CHANGED_LINK0x20CHANGED_MEDIA0x800CHANGED_OWNER0x80CHANGED_REGION0x100CHANGED_REGION_START0x400CHANGED_RENDER_MATERIAL0x1000CHANGED_SCALE0x8CHANGED_SHAPE0x4CHANGED_TELEPORT0x200CHANGED_TEXTURE0x10
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 different script in inventory is recompiled
- 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
- A user without modification rights drops an object into a prim’s inventory due to
llAllowInventoryDrop. - In this situation the
CHANGED_ALLOWED_DROPflag is set instead ofCHANGED_INVENTORY. - An object that was rezzed from inventory is saved back to object contents
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.
Examples
Section titled “Examples”Example 1
default{ changed(integer change) { if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise! { llOwnerSay("The inventory has changed."); } }}Known issues
Section titled “Known issues”- SVC-304:
CHANGED_INVENTORYnot triggered byllRemoveInventory()
See also
Section titled “See also”Constants
Section titled “Constants”Functions
Section titled “Functions”Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.