So I've been looking around for a good crafting system for a game I want to create. My 'genius' idea is a painful one to code and I've tried some coding but it isn't working. What I want it simple, if you have enough parts i.e. wood and metal to create and axe, you can create it and it will be added to your inventory and if you don't, you cant craft it. The closet I have come to finding a proper craft system is on reddit and I will leave a link below if you want to check it out:
https://www.reddit.com/r/twinegames/comments/3kno75/crafting_system_in_harlowe_my_twine_2_guide/
Thanks in advanced
Comments
The linked article shows how to use individual variables to track the quantity of each resource, and conditional statements to determine when to show specific 'create item' markup links.
The above methodology could be used to implement what you are asking for, or are you looking for a more advanced solution where the definition of a craft-able item also includes details about what is needed to create said item?