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.
COMMUNITY QUESTION
Player's Stats into a Percentage?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Are you using math.random for the "them being able to do something"
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
math.floor((CurrentNumber/MaxNumber)*100)
^ Starting place :>
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?
Unless you have infinite levels that should work (ahem 100% ;-;)
Thanks for the valid answers guys