# How to setup a diablo like weapon/armor stats system with random loot system

**URL:** <https://forums.unrealengine.com/t/how-to-setup-a-diablo-like-weapon-armor-stats-system-with-random-loot-system/452216>\
**Category:** Blueprint\
**Tags:** stat-system, unreal-engine, UE4, Blueprint, question\
**Created:** [July 14, 2019, 4:00am UTC](https://forums.unrealengine.com/t/how-to-setup-a-diablo-like-weapon-armor-stats-system-with-random-loot-system/452216 "2019-07-14T04:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xBrothaBlackx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xBrothaBlackx](https://forums.unrealengine.com/u/xBrothaBlackx)\
**Post date:** [July 14, 2019, 4:00am UTC](https://forums.unrealengine.com/t/how-to-setup-a-diablo-like-weapon-armor-stats-system-with-random-loot-system/452216/1 "2019-07-14T04:00:34Z")

</div>

Hey i was wondering how would someone go about making weapons with stats such as ( lightning damage %,critical hit chance ,% life drain,etc.) and randomly generate loot depending on their rarity and those stats. i have enums and structs but idk if i did it right and i feel like im missing ALOT of info.so any help would be appreciated .

 ![282352-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/d/06d0fe01adfc585e3938ce16b291800d66eba894.png)
