# CHANGED_INVENTORY

*LSL constant*

```lsl
integer CHANGED_INVENTORY = 0x1;
```

Constant groups: [ChangeType](/constants/groups/ChangeType/)

Prim inventory has [changed](/events/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](/functions/llAllowInventoryDrop/).
- In this situation the [CHANGED_ALLOWED_DROP](/constants/CHANGED_ALLOWED_DROP/) flag is set instead of [CHANGED_INVENTORY](/constants/CHANGED_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

<details open>
<summary>Example 1</summary>

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

</details>

## Known issues

- [SVC-304](https://jira.secondlife.com/browse/SVC-304): [CHANGED_INVENTORY](/constants/CHANGED_INVENTORY/) not triggered by [llRemoveInventory](/functions/llRemoveInventory/)()

## See also

### Constants

- [CHANGED_ALLOWED_DROP](/constants/CHANGED_ALLOWED_DROP/) — [llAllowInventoryDrop](/functions/llAllowInventoryDrop/)

### Functions

- [llGiveInventory](/functions/llGiveInventory/)
- [llRemoveInventory](/functions/llRemoveInventory/)
- [llRemoteLoadScriptPin](/functions/llRemoteLoadScriptPin/)

### Events

- [changed](/events/changed/)

---

*Source: [CHANGED INVENTORY](https://wiki.secondlife.com/wiki/CHANGED_INVENTORY) on the Second Life Wiki. Content from the Second Life Wiki article CHANGED INVENTORY (revision 1204985, 2016-11-21), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/CHANGED_INVENTORY/
