Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Player's Stats into a Percentage?

Asked by 6 years ago

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.

0
Are you using math.random for the "them being able to do something" jean1398reborn -5 — 6y
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 MmC00KIESmM 5 — 6y
0
math.floor((CurrentNumber/MaxNumber)*100) TheeDeathCaster 2368 — 6y
0
^ Starting place :> TheeDeathCaster 2368 — 6y
View all comments (3 more)
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? jean1398reborn -5 — 6y
0
Unless you have infinite levels that should work (ahem 100% ;-;) jean1398reborn -5 — 6y
0
Thanks for the valid answers guys MmC00KIESmM 5 — 6y

Answer this question