generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Handy Accuracy Calculator

Previous Thread :: Next Thread 
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
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 is not online. 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 is not online. 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 is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
20 Feb 2016 07:39 AM
wtf is this


Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
20 Feb 2016 07:40 AM
u cant deny the fact that it works tho



#Strikin'
Report Abuse
ondrej0008 is not online. ondrej0008
Joined: 14 Jan 2016
Total Posts: 76
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 is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
20 Feb 2016 07:42 AM
no


Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
20 Feb 2016 07:56 AM
i dont get it, it works fine



#Strikin'
Report Abuse
adzz123 is not online. 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
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
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
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
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 is not online. 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
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
20 Feb 2016 10:02 AM
oh rity, is it that big of a deal tho? lol dealtho



#Strikin'
Report Abuse
WVPII is not online. WVPII
Joined: 19 Aug 2015
Total Posts: 207
20 Feb 2016 10:04 AM
What does it do?
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
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 is not online. 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
getSolution3 is not online. getSolution3
Joined: 28 Aug 2010
Total Posts: 1132
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image