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.