# I need to make a completely new inventory system at this rate.

**URL:** <https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, question, Blueprint\
**Created:** [September 20, 2023, 6:00am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447 "2023-09-20T06:00:39Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 20, 2023, 6:00am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/1 "2023-09-20T06:00:39Z")

</div>

Any advice for things I can improve? I imagine all of it.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/b/72b67965ea677182268b16edf5e1480ed9f1bdaa.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/8/ec80a9c55911df1a8b67cca79950bfa38836a32b.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/9/0296f5edc3842f2fbca63ada4421b9a29790aef8.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/0/740a0c934c377dc3b7d9cfb8e2a6856d1d73fc6c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/f/12fc3af26b452a0f43838db35b77f959bca9e324.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/8/f186253705b971e2809e0ba8e3f4fde76463da9d.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/c/26c69dd10ed3f3e1b2474fa0701d12a16e4e4b85.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/389c11e4d74479a65c702bcea0d6e76d9046e3e5.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/1/d11015a3c70c1833ae0f358c68f694fa78c14815.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/9/779ce4ba6999234ae96369462db90951c40bc6ff.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/1/2f1e8a6ec99e2e17ee85fdf5d286c0dfee3770c2.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/6/7c612739694a789a53445da72f7a4bfc6bf64ae8.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/e/52efd5b5bdabe8fe4adeddb7e027229bb6528f92.png)

---

<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:** [September 20, 2023, 6:08am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/2 "2023-09-20T06:08:27Z")

</div>

Tbh, looks like standard inv shenanigans. Neither they are pretty (but you tried hard to make it so!) or easy to work with.

 ![Screenshot_20230920_080626_Chrome](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/c/84c66508d86882d95f4a67f2fb6af4ecfc6d23b7.jpeg)

Above, start using `Set Members in Struct` to cut down on the wires dramatically with larger structs:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/c/82c345abc9e191f6ef2bdff7a91891c9879febe1.png)

These 2 do the same thing.

* * *

Stuff like this should be done by pulling data from a Data Table:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/4/1d439fbd5afc5cbfecd838dac49826e6f87c6ef7.jpeg)

Or, at least, by exposing the struct / vars on the spawn node:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/4/634e2b593773219b070a51da2ccf6adc430830b6.png)

* * *

But inventories will always be complicated.

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 20, 2023, 5:13pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/3 "2023-09-20T17:13:02Z")

</div>

The point where I decided to give up on my current system was when testing out various weapons, I discovered that the ammo items that I used to reload had to perfectly match the ammo capacity of the gun… So if I had a box that held 31 rounds and my gun used 30, it would be an infinite ammo generator, and if it held 29 rounds, it wouldn’t register as a valid item… I tried to fix that problem, but after something like five hours of tinkering, I couldn’t find a solution, because for some reason that I can’t quite fathom, when I tried to subtract the spent ammo from the respective item in the inventory system it would either consume every single item of that type, or it just wouldn’t do anything.

---

<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:** [September 20, 2023, 5:18pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/4 "2023-09-20T17:18:28Z")

</div>

So… what is this post about? If you need to vent, just carry on! I hear ya. I hate / love inventories, too.

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 20, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/5 "2023-09-20T17:20:35Z")

</div>

That, and just generally asking for advice on how I might improve this system.

---

<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:** [September 20, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/6 "2023-09-20T17:42:14Z")

</div>

Yeah, can’t advise without understand how it (doesn’t) works and what needs improving. And that’d take hours none of us have.

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 20, 2023, 5:46pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/7 "2023-09-20T17:46:26Z")

</div>

Yeah, plus I can’t really give a good description of how it works, I just kinda threw it together.

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [September 20, 2023, 5:49pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/8 "2023-09-20T17:49:03Z")

</div>

Move it to an empty project and post it here. 😬

---

<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:** [September 20, 2023, 5:51pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/9 "2023-09-20T17:51:18Z")

</div>

Just threw it together!? An inventory? The absolute madman. I salute you sir, 🫡

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 20, 2023, 7:54pm UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/10 "2023-09-20T19:54:17Z")

</div>

Is there a reason that you keep your inventory inside a HUD as a some sort of object reference array? Can’t you just keep it inside game instance as a struct array?

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 29, 2023, 2:27am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/11 "2023-09-29T02:27:11Z")

</div>

(Sorry for the late reply), I’m a girl lmao.

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 29, 2023, 2:28am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/12 "2023-09-29T02:28:04Z")

</div>

(Sorry for the late reply), Because I have absolutely no idea what any of that means lmao. I just followed this video, and then the rest I made up on the fly with what little I already knew: [https://www.youtube.com/watch?v=TcTxSyk8Vks](https://www.youtube.com/watch?v=TcTxSyk8Vks)

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 29, 2023, 7:00am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/13 "2023-09-29T07:00:47Z")

</div>

Uh.  
I don’t want to be rude to this guy. I don’t think I’m a good programmer. But even for me this tutorial is “meh”.

---

<div class="post-metadata">

**Author:** ![JackieHackera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackieHackera](https://forums.unrealengine.com/u/JackieHackera)\
**Post date:** [September 30, 2023, 9:12am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/14 "2023-09-30T09:12:29Z")

</div>

Interesting, well it was the first one I found so I assumed it would be good… Do you have any suggestions for better ones?

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 30, 2023, 11:14am UTC](https://forums.unrealengine.com/t/i-need-to-make-a-completely-new-inventory-system-at-this-rate/1304447/15 "2023-09-30T11:14:13Z")

</div>

Most of the people prefer to use Actor Component, but I prefer to use Game Instance to keep my Inventory.

I’ve made a tutorial for a super simple inventory system, you can read it to get the ropes. And a bit more complex inventory is in the working.

> [@\[Tutorial\] Simple Inventory System. (Part 2 Is Here!)](https://forums.unrealengine.com/t/tutorial-simple-inventory-system/1316560):
>
> Hello and welcome to my Inventory system tutorial. This guide will walk you through the steps on how to make a simple Inventory system. I will split this tutorial in 2 different guides: super Simple System and a bit more Complex System. Part 2: [Inventory System | Community tutorial](https://dev.epicgames.com/community/learning/tutorials/V2J9/unreal-engine-inventory-system) Let’s start! I will use UE 5.2, Third Person template. Part 1. Simple System. Step 1. Preparation. First of all we need to create a backbone for our Inventory system. We will need: Pick up actors, Use functio…
