Hello,
I have been looking into the Example X scene to kinda understand how the inventory system is setup as I want to do something similar to it in a game that I am making but, there are a couple things that I have been stumped on while trying to re-iterate it and I was wondering if anyone could help.
The First question I have is about the random item script and how to expand upon it. Here is something that I have tried and it works for what it does:
http://pastebin.com/GCLqKU88 which I put this on an object and after moving into the area it adds it to the equipment slot and destroys itself but, instead of going to the equipment slot, how do I make it go to the generated Storage Slot from the Backpack and check if the space is occupied so it doesn't write over an existing item?
The Second question I have is about multiple panels within a UIRoot and how to switch between them. I was able to write a script to turn off and on GameObjects (such as the different UIPanels)
http://pastebin.com/KBFyN55w but, if I do it this way, items that if I could pick up off the ground and into my bag would most likely disappear due to the UIPanel being turned off by SetActive. Is there a way to set my Inventory Panel out of camera view and bring it in with a key press with/without an animation?
Last question I have is about the item stats that are from the items I made within the Inv Database. How is it possible to setup a Character Stats panel or something were it shows base stats for a character and when I equip an item it changes those stats accordingly and implementing the level range(with xp to increase player level)?
I know it might be too much for one thread and I might have to make separate threads but if you can help I will be grateful.