Inventory System - Followed Tutorial, Item Amount Resets After Maximum

Hi! So I’m working on this inventory system with Ryan Laley’s tutorial (specifically pt.12) and I’m having an issue where my character collects a max of 10 of an item, but when they try to collect another, instead of going on to the next slot, it replaces the 10 with 1 of the item, erasing the first 10. I would like it to appropriately move onto the next slot. Does anyone know how to fix this?

Gameplay:

Tutorial:

Code:

Hi Maximum.Dino,

From your video, it looks like the TransferSlots function is working fine. My guess is the error might start in the AddToInventory function, or possibly AddToStack or FindSlot. Could you paste the blueprint logic for those?

1 Like

Yup! Here they are. Thank you!

Add to Inventory: Add to Inventory posted by anonymous | blueprintUE | PasteBin For Unreal Engine

Add to Stack: Add to Stack posted by anonymous | blueprintUE | PasteBin For Unreal Engine

Find Slot: Find Slot posted by anonymous | blueprintUE | PasteBin For Unreal Engine

I used his tutorials as well, great started but definitely requires some polishing. assuming you are querying the size of existing item stack, afterwards are you calling “add” or “add unique”

I’m using add