- Home /
Mutiple prefab listings for market script
Hi guys
I was wondering how I could set up this system using java? I'm not looking for a complete market script but rather just help with how to get this to work or just a little code snippet for an example.
I have a market script which I have to add every item to it for it to be classified as a sellable item. I was wondering if there was a way in which I could tell the script to look in a certain folder at all the prefabs and see if any of them meet the required options eg. (Is the object a food or a spell book ) and them add them to the list on the GUI when I open the market.
So if I had a wizard then I could use the script to ask if he is spell book merchant and then make the script look for all item related to spell books in the folder and then list them in the market menu !
Is this possible in java and if so how would I create this ? Would it be an efficient method of indexing objects ? I only want to use one market script. I will have about 500 - 800 items to index overall.
Can someone help me with this ?