# Player reward system using blueprints and array

**URL:** <https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921>\
**Category:** Blueprint\
**Tags:** random, unreal-engine, Array, Blueprint, question\
**Created:** [May 24, 2023, 10:45am UTC](https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921 "2023-05-24T10:45:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AoB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AoB](https://forums.unrealengine.com/u/AoB)\
**Post date:** [May 24, 2023, 10:45am UTC](https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921/1 "2023-05-24T10:45:30Z")

</div>

Hello I just started making player reward system that uses array and picks random item from it. My question is how do i make the chances of getting more common reward higher. The idea i have is just to put the reward multiple times in the array but before doing that i want to know if there is a better way. I will post a screenshot of what i have. If you have any suggestions please let me know. Thank you!

 ![Screenshot (116)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/2/522f5ef225638f54b7547680ef5737ab1ac64385.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 24, 2023, 10:59am UTC](https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921/2 "2023-05-24T10:59:53Z")

</div>

> [@AoB](#):
>
> put the reward multiple times in the array

That works well for few elements, been there, done that. For something more elaborate, you could use curves:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/a/0fa51081c230b8b8b6f5fa7519bcfd87b1b9e614.png)

In case of the array up there, you could try:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/f/cffb68eab86f83f427fa73e7181857de334bea1c.png)

The chance of getting high results is lower. Can be done better but that’s the gist. The best part about the curve is how easy it is to maintain over time, especially if you want to automate some testing.

---

<div class="post-metadata">

**Author:** ![AoB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AoB](https://forums.unrealengine.com/u/AoB)\
**Post date:** [May 24, 2023, 11:05am UTC](https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921/3 "2023-05-24T11:05:47Z")

</div>

Thank you! I am going to try it.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 23, 2023, 11:05am UTC](https://forums.unrealengine.com/t/player-reward-system-using-blueprints-and-array/1176921/4 "2023-06-23T11:05:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
