How do I transfer stackable items from one inventory array to another?

I tried rewriting it from your screenshot in a new scene and the problem persisted. The only difference between our events is the way the random items are generated. Mine are chosen from a random integer that is used to select a pre-constructed child from the “Item” array. This has to be what’s going on, but I don’t understand why this matters. From what I understand your random items are “constructed” at runtime. Does this affect the child name in anyway? Because the children are still stored in individual slots of an array, I wouldn’t expect that to matter, but I guess it does? I’ll try reconstructing it again without just copypasting in my items :sweat_smile:

I couldn’t see any issues, so I recreated it from your screenshot. I made many typos but I might have found the issue.

I had this condition as use a number instead of use as text. It was trying to convert strings into numbers. When it couldn’t it converted the values into 0. So, it was comparing 0 to 0 instead of the Name string to Name String.

This is my version.

2 Likes

That was it! Thank you so much for all of your help, Keith. This thread gave me a lot of tools that I will continue to use in the future. I was also able to add an item cap limit for each slot :sunglasses: I’m sure it could be more compact, but it works lol. Can’t emphasize how grateful I am :grin:

2 Likes