Hey, I’m currently working on the crafting system for my game. I have an item database, recipe database, and an inventory. Inside the recipe database, I have a list of Items that the player must have inside their inventory to craft the item.
Here’s where my problem is. I’m trying to check whether the player has ALL of the items that are inside the recipe list, inside their inventory. I’m presuming that I’ll have to use some sort of loop to check if each item which is inside the recipe is in the player’s inventory, but I have been trying for the past three hours to no avail.
Just a tip or two that will point me in the right direction will be hugely appreciated!
Thanks!