# How to add item to "bag" and count it

**URL:** <https://forums.unrealengine.com/t/how-to-add-item-to-bag-and-count-it/791757>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 16, 2023, 1:33am UTC](https://forums.unrealengine.com/t/how-to-add-item-to-bag-and-count-it/791757 "2023-03-16T01:33:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eggberttoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eggberttoe](https://forums.unrealengine.com/u/Eggberttoe)\
**Post date:** [March 16, 2023, 1:33am UTC](https://forums.unrealengine.com/t/how-to-add-item-to-bag-and-count-it/791757/1 "2023-03-16T01:33:16Z")

</div>

Hey all

I am currently making a game using blueprints and am very pretty unfamiliar with them.

The idea of the game is that you have to collect a certain amount of items then put them into this bag, then you win. I need help with putting the item into the bag and making it count. It’s a simple idea but I can’t figure out how to do this one thing.

I would really appreciate help with this, especially blueprint screenshots. Thanks!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 16, 2023, 8:03am UTC](https://forums.unrealengine.com/t/how-to-add-item-to-bag-and-count-it/791757/2 "2023-03-16T08:03:32Z")

</div>

It’s super vague so there’s no way to be specific here but the `Bag` can be an array of `Items`.

Collect an Item, add it to an array, check how many there are inside, compare against a threshold:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/9/979bc3a34c8134722edfd67ff158e251493700d3.png)

* * *

But perhaps there’s no need to _store_ the items if you do not need them:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/2/f12ed746647f1db67a4d33d69304d82b07a4af02.png)
