|
| 20 Feb 2016 03:57 AM |
So I've seen a few people struggle with accuracy algorithms and I just thought up of something quick, nothing special by any means but it's simple and works:
Accuracy = 90
script.Parent.Touched:connect(function() -- this could be anything to trigger it local num = math.Random (1,100) -- 100 is the max accuracy value, just simple in this case if num <= Accuracy then -- the key part, the accuracy checker, in this case there is a 90% chance that it will pass --code end end)
Yh just something like that, u can tweak it to fit you, just thought it my help people
#Strikin' |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 20 Feb 2016 05:29 AM |
Well that's poo
But you tried. Bonus points for trying. |
|
|
| Report Abuse |
|
|
adzz123
|
  |
| Joined: 11 Jun 2011 |
| Total Posts: 260 |
|
|
| 20 Feb 2016 07:33 AM |
It's a bit ugly sorry.
There are 10 types of people in this world. Those that understand binary and those that don't. |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
| |
|
|
| 20 Feb 2016 07:40 AM |
u cant deny the fact that it works tho
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2016 07:42 AM |
| How is this accuracy? This is just a way to make people angry because they hit something but they 'missed'. |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
| |
|
|
| 20 Feb 2016 07:56 AM |
i dont get it, it works fine
#Strikin' |
|
|
| Report Abuse |
|
|
adzz123
|
  |
| Joined: 11 Jun 2011 |
| Total Posts: 260 |
|
|
| 20 Feb 2016 08:11 AM |
LOL you could have at least included a print.
There are 10 types of people in this world. Those that understand binary and those that don't. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2016 09:37 AM |
^ you have the best logic mankind has seen. What do you think the --code part was for
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2016 09:38 AM |
^ you have the best logic mankind has seen. He said "prints" as in print'hi' not the "--code"
#code print("This signature was created using Roblox+, get yours now at the chrome web store!") |
|
|
| Report Abuse |
|
|
adzz123
|
  |
| Joined: 11 Jun 2011 |
| Total Posts: 260 |
|
|
| 20 Feb 2016 09:40 AM |
Furthermore, it would make the code easier to understand.
There are 10 types of people in this world. Those that understand binary and those that don't. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2016 10:02 AM |
oh rity, is it that big of a deal tho? lol dealtho
#Strikin' |
|
|
| Report Abuse |
|
|
WVPII
|
  |
| Joined: 19 Aug 2015 |
| Total Posts: 207 |
|
| |
|
|
| 20 Feb 2016 10:09 AM |
just a simple concept to work out accuracy, i wouldnt even call it a concept, just something to help calculate accuracy, idk what all the hate is about, what did i do wrong, please explain
#Strikin' |
|
|
| Report Abuse |
|
|
WVPII
|
  |
| Joined: 19 Aug 2015 |
| Total Posts: 207 |
|
|
| 20 Feb 2016 10:18 AM |
| You did nothing wrong, per se, but it isn't particularly helpful |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2016 10:27 AM |
"So I've seen a few people struggle with accuracy algorithms"
*Looks at code*
"local num = math.Random (1,100) if num <= Accuracy then"
rip
|
|
|
| Report Abuse |
|
|