Using items

Now that you have allowed items to populate the inventory, it is now time to make these items work. At this moment, you should still have a branch at the beginning of your item's onClicked button. So far, your branch just goes through a false routine because this routine indicates that the player is interacting with the buttons if they are in the shop. It is now time to create a routine for when the Inventory Screen Boolean is true, which means that the player is on the inventory screen.

The initial steps between where we created a Get Data Table Row function and set it to the Item_Shop Data Table (which takes an item row name and breaks the items into item data) are identical to our previous steps. So, we can simply copy and paste ...

Get Building an RPG with Unreal 4.x now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.