# Game Item Object List Contains

<figure><img src="/files/wBJn9Yvcu8e7rbRVJ6rI" alt=""><figcaption><p>This will be met if the ItemObjectList contains at least 4 "Weapon" type objects.</p></figcaption></figure>

This will look for the `valueGameItemObjectList` on the Blackboard Note, and then compare against the contents of that list.

{% hint style="info" %}
The `GameModuleActor` has two `GameItemObjectList` variables -- one for `inventoryItems`, and one for `equippedItems`. You can combine these and pass them into the Blackboard with a new custom subject, if you'd like, by adding this method and new code to your class which inherits from `GameModulesActor` or `GameModulesInventoryActor`:

<pre class="language-csharp"><code class="lang-csharp">// Returns a new GameItemObjectList with the two combined
public GameItemObjectList InventoryAndEquipmentList()
{
    var equipmentAndInventory = new GameItemObjectList();
    equipmentAndInventory.list.AddRange(inventoryItems.list);
    equipmentAndInventory.list.AddRange(equippedItems.list);
    return equipmentAndInventory;
}

// Posts a note to the MainBlackboard with the combined list
private void PostInventoryAndEquipmentToBlackboard(){
<strong>    var newNote = new BlackboardNote(
</strong>        GameId()
        , "Inventory and Equipment"
        , new object[] { InventoryAndEquipmentList() });
    MainBlackboard.blackboard.AddNote(newNote);
}
</code></pre>

{% endhint %}

### Value Contents

If `IsEmpty` or `IsNotEmpty` is selected, no other options will show, as these are either true or false.

Otherwise, the comparison is based on the number of items in the list, specified by quantity.

### Grouping

When at least two items are added, this option will appear. It determines how to group the items that are in the list.

#### Sum

This means that the total number of items included will be totaled, and compared.

#### Each

This means that each item must individually meet the comparison requirements.

#### Any

This means that at least one of the items must meet the comparison requirements.

{% hint style="info" %}
If no Item Objects are added to the list, then the `Count` of all items in the list will be used to compare against.
{% endhint %}

### Item or Type

You can choose to search the list for specific items (Item Objects, in this case), or ObjectTypes.

### Quantity

This is the quantity we are comparing against.

### Add Condition / Type

You can drop a Item Object into the object field, or click the circle to select one. It will be added to the list. Remove from the list by clicking the red *<mark style="color:red;">**X**</mark>* button.

For ObjectTypes, select from the drop down menu.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/quest-condition-details/game-item-object-list-contains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
