# Get Stamina From Object? Do I need to set up an inventory for this to work?

**URL:** <https://forums.unrealengine.com/t/get-stamina-from-object-do-i-need-to-set-up-an-inventory-for-this-to-work/134405>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 3, 2019, 2:36pm UTC](https://forums.unrealengine.com/t/get-stamina-from-object-do-i-need-to-set-up-an-inventory-for-this-to-work/134405 "2019-12-03T14:36:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![isotakis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@isotakis](https://forums.unrealengine.com/u/isotakis)\
**Post date:** [December 3, 2019, 6:07pm UTC](https://forums.unrealengine.com/t/get-stamina-from-object-do-i-need-to-set-up-an-inventory-for-this-to-work/134405/3 "2019-12-03T18:07:59Z")

</div>

Another way would be to use data table, it would work with different kind of consumable(mana pot, health pot, etc)

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

This link shows you how to do something like that with Excel, but you could do it all in game with a custom struct  
([Struct Variables in Blueprints | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/Variables/Structs/index.html))  
where you would have the name of the potion, how many points it refunds, etc.

---

_[View the full topic](https://forums.unrealengine.com/t/get-stamina-from-object-do-i-need-to-set-up-an-inventory-for-this-to-work/134405)._
