I can't get my shop to work with the inventory system. Can someone help me? Here's what I have so far..

Hi NinjaTronixOG.

I am posting a new answer as I am suggesting a different approach.
Essentially, all you need from your HPPotionRef is the information from the struct.

To do this you don’t need to get a valid object from the world (which is what is failing in your application). I take it your information is present inside your HPPotion blueprint.

Change the type of your HPPotionRef to a class reference instead.

Compile the blueprint and then set the default value to reference your HPPoition class

Drag your HPPotion class reference into the event graph, pull off the purple pin and type “Get Class Defaults”. You should see all your custom variables including your Item Info structure.

Place that Item info inside your “AddToInventory” function.

Now when I press the button in my example, it will print out the default values I have set in the HPHealth blueprint (in my example it’s called BP_HealthPotion.

272586-shopinformation-pt5.png

Remember for this method to work, the struct information MUST be set in the editor and not during runtime like so:

Try this approach, and see if it helps you along.
Good luck!