Greetings,
I’m trying to make my own inventory proof of concept, and I’m trying to make it as robust as possible for a serious project I’d like to make
So, I have this item with different animations, one for each item, and an ID variable on it that changes the item it is
I want to have item collecting be a function call, so I made this simple function here:
But when I tried to optimize it this way, it gets an error:
I’m aware that I’m putting a string where a number should be, so I’m wondering, is there a way to make FoodID go in as the number it’s supposed to be instead of being read as a string? ToNumber didn’t work
And also, if I add items, would it be better to have each item as a separate object but in a group so I can add animations to the individual items?
(Note: I don’t have anything that displays the inventory yet, is there a way to see inventories in the debugger?)
Thanks in advance