First off, I hope this is the right forum to post this in and if it's not I'm really sorry, please move it to the correct place.
Secondly, what I mean is, if someone were to find a code early on in the game then input that code into a machine later on to create that item. So for example:
Player finds a book in a library about axes and within that book is a code like A1Df6a.
They find a note elsewhere within the game with the code 5Tg9XQ for a bow.
Later on in the game they find a machine that you can input codes into. When the player enters A1Df6a it comes up saying something like - "You will receive Axe of Strength. Cost = 10 Hardwood, 15 Iron. Would you like you to make it?". If the player chooses yes and has enough materials they receive an Axe of Strength. If they choose yes and don't have the mats required it will tell them something like - "Not enough materials." They can then type in 5Tg9XQ and the same thing will happen but for a bow instead, again only possible if they have the required mats. The player can input the codes as many times as they would like to get as many of the item as they want, but only if they have enough mats to do so.
I was thinking it might be possible through conditional branches and variables, but then I couldn't work out how to allow the input for a code. I could also be talking complete rubbish and something like this isn't even possible.
Secondly, what I mean is, if someone were to find a code early on in the game then input that code into a machine later on to create that item. So for example:
Player finds a book in a library about axes and within that book is a code like A1Df6a.
They find a note elsewhere within the game with the code 5Tg9XQ for a bow.
Later on in the game they find a machine that you can input codes into. When the player enters A1Df6a it comes up saying something like - "You will receive Axe of Strength. Cost = 10 Hardwood, 15 Iron. Would you like you to make it?". If the player chooses yes and has enough materials they receive an Axe of Strength. If they choose yes and don't have the mats required it will tell them something like - "Not enough materials." They can then type in 5Tg9XQ and the same thing will happen but for a bow instead, again only possible if they have the required mats. The player can input the codes as many times as they would like to get as many of the item as they want, but only if they have enough mats to do so.
I was thinking it might be possible through conditional branches and variables, but then I couldn't work out how to allow the input for a code. I could also be talking complete rubbish and something like this isn't even possible.