# How to go on about creating stats for my character

**URL:** <https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421>\
**Category:** Character & Animation\
**Tags:** stats, unreal-engine, question\
**Created:** [October 10, 2018, 10:46pm UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421 "2018-10-10T22:46:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_70a7fe3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70a7fe3a](https://forums.unrealengine.com/u/anonymous_user_70a7fe3a)\
**Post date:** [October 10, 2018, 10:46pm UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421/1 "2018-10-10T22:46:03Z")

</div>

Hello, I want my character to have stats life health, attack, defence and so on. What’s the best way to go on about it without creating a C++ class as I had a problem in the past transferring classes from one version of Unreal to another?

---

<div class="post-metadata">

**Author:** ![IndieGameCove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndieGameCove](https://forums.unrealengine.com/u/IndieGameCove)\
**Post date:** [October 10, 2018, 11:02pm UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421/2 "2018-10-10T23:02:28Z")

</div>

you could make a struct of the stats, then create a variable with the data type of the struct in the parent character class/blueprint.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_70a7fe3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70a7fe3a](https://forums.unrealengine.com/u/anonymous_user_70a7fe3a)\
**Post date:** [October 10, 2018, 11:05pm UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421/3 "2018-10-10T23:05:26Z")

</div>

Ok so I create the struct and just embed it in each fighting character in the game?

---

<div class="post-metadata">

**Author:** ![IndieGameCove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndieGameCove](https://forums.unrealengine.com/u/IndieGameCove)\
**Post date:** [October 11, 2018, 12:05am UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421/4 "2018-10-11T00:05:56Z")

</div>

Yeah, or if the fighting characters share the same parent you could implement it there and let it be inherited. Alternatively since a struct is just a bundle of variables, you could also just make the variables individually and not use a struct. Just depends how you’d like to organize things. using structs is just a method to reduce coding the same thing again and again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_70a7fe3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70a7fe3a](https://forums.unrealengine.com/u/anonymous_user_70a7fe3a)\
**Post date:** [October 11, 2018, 12:11am UTC](https://forums.unrealengine.com/t/how-to-go-on-about-creating-stats-for-my-character/435421/5 "2018-10-11T00:11:20Z")

</div>

Thanks, I implemented it and work great! Thanks a ton! 😃
