I was working on adding items to my game and I was wondering if there was an easier way to do it. I need to add information like the name and function name in it as well as numbers like the amount of space it takes up in the inventory, but I want it all to be in one place, sort of like a folder so that I can just use the name and call on the data. I guess it would kind of be like a variable with multiple fields that I can call on like: var itemname[4] = name, function, size, uses;. The only problem is that I'm pretty sure that wouldn't work. How can I make this easier?


When your script isn't working right, usually it's because it's doing exactly what you told it to. -An Unknown Programmer