So, I am having an issue to where the first-row stacks but nothing after the first row does… also whenever I pick up a different item (example: apple) it just disappears and doesn’t add to my inventory…
Here is my check for existing item function:(Check for existing item posted by anonymous | blueprintUE | PasteBin For Unreal Engine)
Here is my add item to inventory function:
(add item to inventory posted by anonymous | blueprintUE | PasteBin For Unreal Engine)
Please Help!
Hey @veevogames1!
This is a lot so I would suggest, firstly, test each branch. Use printstrings to see how far it’s getting, and are you not getting error codes? For instance, here you don’t have an index being called so it shouldn’t know which item to get:
Hope this helps, test it out with print strings and see if we can get a more localized problem!
1 Like
What are the stacking rules?
What I’m reading in the code is:
- Max of 3 per stack.
- Create a new entry for remainders as long as it doesn’t exceed max inventory size.
1 Like
No, I’m not getting any error codes, I didn’t notice I didn’t have an index there, Thanks for pointing that out. Although that didn’t solve the issue. Let me do some testing and I’ll get back with you and let you know the results.
Edit: Couldn’t find the issue. So, I’ve decided I am going to start a new project from scratch with the help of Ai I should be able to achieve the results I am looking for. Thanks anyways.
Stack rules are:
Only items with IsStackable
set to true can be stacked on top of each other.
properties such as ItemName
, ItemDescription
, ItemIcon
, and IsStackable
must match.
When stacking, the total quantity of the stacked items must be calculated.
maximum number of items that can be stacked in a single slot (e.g., a stack of 3 apples)
If adding more items exceeds the maximum stack size, the overflow items must be handled separately, either by creating a new stack or refusing to add the overflow.
The inventory has a maximum size that limits how many items or stacks it can hold.
Before adding an item, the system checks if there is enough space in the inventory.
Sorry to hear that. With a little work you could resolve the issue. AI isn’t going to help you as much as you hope.
A few minutes of work…
Query Existing Items
Add Inventory Item - Stackable
2 Likes
Thats a good-looking blueprint I appreciate it will defiantly use it as a reference for my next inventory system
1 Like