0%

unreal inventory system

When talking about story advantage game, Inventory system is simple, because there arent so many items to use or craft. While in RPG game, inventory system should be designed carefully. There are some features which I could imagine.

  • Pick up items. (food, wood, guns, bullet, quest items)
  • Use items. (food heal health, wood build house)
  • Drop items.
  • Craft items. (like minecraft)

As for the design of the UI, minecraft, PUBG, and Resident Evil are the typical typies.

I have searched several inventory system examples, and make a summary in this page.

  1. A simple inventory can use items written in cpp

    I think the system could be improved, such as change the OnUse function from Items Class to InventoryComponent.

  2. Inventory System realize the minecraft function.

​ This a free template which could be found in marketplace, called Inventory System. I think this system is inspired by minecraft, because the item can be picked up when player close to the item. It also has a hotbar which player can use items like eating apples. Crafting function and simple chest are also in the template. Oh, and the item can be dropped down just like minecraft cube rotating automatically. The system is almost complete.

Items are create in struct, inventory component controls the save/load of items, initial of user widget, operator function of items.

However, I found there are issues when the inventory is initialized.

The For detailed explanation, please see the video I recorded. An improvement to the minecraft-like inventory system in UE4

The solution will be update soon.