Xodius Studios Blog #6 Shop to Inventory Integration, Hotkey Consumable Slots

 

Xodius Studios Blog #6 

Shop to Inventory Integration, Hotkey Consumable Slots

Author: Kanitha Charoenpanich
Published: 04/07/2023 20:10

The Problem:

      The shop has not been working correctly. The shop does not add to the inventory after buying an item. The issue with the shop is that the blueprints are not working with the inventory system. I worked with Mike and Jared who knows blueprints to help with understanding Jared's shop system. There are no issues with the hotkey slots at the moment. I got the inspiration for the hotkey UI from Witcher 3, shown in Photo 2.

Hotkey UI in the HUD - Photo 1


HUD Inspiration - Photo 2

Problem Solution:

    For the shop, I have found many issues. One solution I got was Add to Inventory function blueprint callable.
Add to Inventory - Photo 3


The next solution I had was to add the function to the blueprint and I had to check if it was getting the correct item data.
Add to Inventory Blueprint - Photo 4

Another solution I had to do was create a data table using the struct I made in C++ and set the categories for each item. 

Shop Data Table - Photo 4

I have solved the issue with the shop but there is an indexing issue in Jared's blueprint code that needs to be fixed for the shop to work correctly to store the correct items. I have the item showing in the inventory now but it is only showing the Health potion. I hope to get the index issue fixed tonight, so I can work on the hotkey slot functionality.




Comments

Popular posts from this blog

Xodius Studios Blog #5 Notification Pop Up, Intro-Level Design, Menu Indicator, Pause Menu UI Bug, and Interaction Bug

Importing assets and animations from Unreal 5.0 to Unreal 4.27.2

AI Adventures #14 Polishing the game for demo release - "Forgotten Memories" - By Michael Marquez