> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/the-insurgents-handbook/scripts/vm-call-targets/sub-item.md).

# Sub Item

### Signature

```c
int subitem(int content, int count); //id:0x02f2
```

### Description

Removes an item x times from the inventory and returns the new count.

### Arguments

#### Content

The identifier of the content (e.g. `0` for `Potion`).

#### Count

The removed count of the content (e.g. `99`).

### Notes

{% hint style="info" %}
For a list of content identifiers, you can view [this](https://1drv.ms/x/s!Avp2cjfbfD1VgQI6Eg-bmGBYvxq0?e=B7Rag7) spreadsheet.
{% endhint %}
