Chapter 6. Inventory System
The inventory system is one of the most critical components of an RPG. It will be used to store all important game elements that the player will need in your game environment. This chapter will guide you on how to create a simple generic inventory system that can be utilized and extended as you see fit.
Here is a breakdown of the chapter:
- Designing an inventory system
- Weighted inventory
- Determining item types
- Creating an inventory item
- Creating the prefab
- Adding an inventory item agent
- Inventory items defined as prefabs
- Designing an inventory interface
- Creating the inventory UI framework
- Designing a dynamic item viewer
- Adding a scroll view
- Adding elements to PanelItem and Scroll View
- Adding txtItemElement dynamically
- Building the final inventory item UI
- Integrating the UI with the actual inventory system
- Hooking the category buttons and displaying the data
- Testing the inventory system
- Inventory items and the player character
- Applying inventory items
- How it looks
There is a lot...