I’m trying to make a cooking game and I have no Idea how I would check. I have an array called Recipe, in all my items structure. I just dont know how I would check my Recipe, when I put an item in.
No matter the case of implementation it is simple add and compare.
Use the array called like CurrentRecipe add the items required to be a complete recipe
When you add a item in games WorkingRecipe it should be empty array to start, so every time you add a item to WorkingRecipe then with foreach loop through items in CurrentRecipe and if all items are present in WorkingRecipe you have a match.
Thank you for your reply! The only thing is, and I’m sorry if this is a stupid question, but the “If all items are present” bit between the Current Array and the Working Array. How would I check that?
Nevermind I found out the quick answer to that.
thank you again. it all works.
Ya you right lol. this is much better. Thank you again for your time my man.