So I'm currently making a shopkeeping game, where you'll need to craft an item and sell it to NPCs. Here are the features I need to work on:
1. If you click on an empty item slot, it will show the inventory panel, and click on an item in it to put it in that slot.
2. If you click on an occupied slot, it will ask you to switch the item (open the inventory panel again), retrieve it, or move it to the other slot (I think this one is possible using Item Action)
And here are my problems:
1. Do I need to create 2 inventories? Like, 1 for player and 1 for the shop? Or I just need to create 1 and specify the item to "secondary", and filter it? Because after you put it in shop, it will not appear in the inventory.
2. This question is probably tied to the 1st question. The NPC will pick a random item from every occupied slots, with the 2 slots on the left side will have a slightly higher probability to be picked than 12 slots on the middle and right. I'll need to retrieve the slot data and the item in it. It will disappear on the shop after you successfully sold it to that NPC. Any idea how to do it?
3. Is it possible to make an Item Action when the slot is empty? If possible, how to do it?
4. The item slot design on the "shop shelf" isn't specifically a grid. It goes roughly like this:
I'm using the original inventory design template. I've disabled the grid layout property, and I've explicitly specify the navigation, because I need this to work on controller. But when I played the game, it resets to the original navigaton. How do I fix this? Or do I need to create a custom script/design for it? If so, how to do it?
I really apreciate every answer to my questions. Thanks.
1. If you click on an empty item slot, it will show the inventory panel, and click on an item in it to put it in that slot.
2. If you click on an occupied slot, it will ask you to switch the item (open the inventory panel again), retrieve it, or move it to the other slot (I think this one is possible using Item Action)
And here are my problems:
1. Do I need to create 2 inventories? Like, 1 for player and 1 for the shop? Or I just need to create 1 and specify the item to "secondary", and filter it? Because after you put it in shop, it will not appear in the inventory.
2. This question is probably tied to the 1st question. The NPC will pick a random item from every occupied slots, with the 2 slots on the left side will have a slightly higher probability to be picked than 12 slots on the middle and right. I'll need to retrieve the slot data and the item in it. It will disappear on the shop after you successfully sold it to that NPC. Any idea how to do it?
3. Is it possible to make an Item Action when the slot is empty? If possible, how to do it?
4. The item slot design on the "shop shelf" isn't specifically a grid. It goes roughly like this:
I'm using the original inventory design template. I've disabled the grid layout property, and I've explicitly specify the navigation, because I need this to work on controller. But when I played the game, it resets to the original navigaton. How do I fix this? Or do I need to create a custom script/design for it? If so, how to do it?
I really apreciate every answer to my questions. Thanks.