Basically I have been searching for a way to create "sections" with variables that have numerical values that can be multiplied and then output.
Here is how I have tried to write out as nicely as possible what I am trying to do:
Let's say I am trying to craft an item several times.
I have an input that says how many of the item I need.
I want to output the resources needed to craft the item the input amount of times.
However, I want it to be easy to swap out "recipes" and be able to do the same thing for another item.
Let's say my input number "input" is "10" and my resources for item "randomitem" are
To make it more clear, it would do this:
input = 10;
wood = 10;
crystal = 4;
emerald = 2;
iron = 5;
std::cout << randomitem*input;
and it would output:
If it were possible to make the recipes a separate file and then pick a particular one, multiply the values inside the file by the input, and then output the variable names with their numerical values that would pretty much be what I would like to do.
I hope this isn't too complicated and actually makes sense.
Thanks in advance for any help,