How would I make it so that a players stat effects a percentage, for example, let's say I was making an RPG. If the player's intelligence stat is X, then the percentage of them being able to do something successfully is higher than others with a lower value than X.

7 comments

0

Are you using math.random for the "them being able to do something"

0

In my example, I am making a Basketball game, so the way I want this to be used is, if the player's shot attribute is 80, and they shoot from far, they are 60% more likely to make it than other people. No this is not random, these are stats that the players themselves can raise

0

math.floor((CurrentNumber/MaxNumber)*100)

0

^ Starting place :>

0

First set a increase for each level or a increase for a X amount of levels, next get the actual chance of landing it and increase the value by the X amount?

0

Unless you have infinite levels that should work (ahem 100% ;-;)

0

Thanks for the valid answers guys