A Very Rarity System

  1. What do you want to achieve? Keep it simple and clear!

I want to make a rarity system similar to the one in the game “UnConventional” but their system is confusing, I don’t know how to do the same, so I want help from someone experienced.

  1. What is the issue? Include screenshots / videos if possible!

The game rarity system is based on 0.1 to 10 being your power level between these numbers, but it is extremely rare to catch something above 8.0, reaching a chance of one in 6 million told by the creator himself.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried to use weight System but I couldn’t adapt them to look like his game.

1 Like

You can try to use something like this:

Adaptation of the code for your purposes:

local iterations = 9 --//The higher the number, the more rare high rolls are
local RNG = Random.new()
local roll = 10

for i = 1, iterations do
	roll = math.min(roll, RNG:NextNumber(0.1, 10))
end

print(roll)

Over 10 tests, on average, it took 1378476 rolls to reach a number that was 8 or above.

2 Likes

Thank you it was exactly what I needed.

2 Likes

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