- Edited
So I have a little area that prompts with some text that tells you which X amount of 2 different items you need.
For example:
I store the items (materials) I pick up in a Global singleton, like this:
And the area that tells you what items you need looks like this:
But I'm struggling to make this work, I don't know how to make the Material 1 and Material 2 from the dropdown list of the building area to be the same items you need, or explained in a different way, I don't know how to use my variables stored in my Global singleton be Material 1 and Material 2.
This is how it looks so far, the "Global.materialneeded" variable obviously doesn't exist:
Any tips to achieve this? or am I trying to do it simple when it's harder than this?
Also right now I can only have 2 materials required, I don't think this system would work if I wanted to ask for a third material...
I tried to "compare the names" of the Global variables with the material 1 and 2 names, but that didn't end well.