Talk:Catch rate: Difference between revisions

→‎A comment on Critical Capture: exact algorithm vs intended results
m (→‎A comment on Critical Capture: oops the rand must be less than a*0x100 to pass a shake, not greater)
(→‎A comment on Critical Capture: exact algorithm vs intended results)
Line 287: Line 287:
:: Oops, no, was accidentally looking at a different generation. [[User:AySz88|AySz88]] 07:40, 25 February 2012 (UTC)
:: Oops, no, was accidentally looking at a different generation. [[User:AySz88|AySz88]] 07:40, 25 February 2012 (UTC)
::: Fourth roots and third roots never happen in game. The b equation listed is just a probability of you catching (ie all the shake compares lumped together). It does a*0x100 > rand(0,65535) for a pass shake calc. 4 times for gen 3-4, 3x for gen 5 after criticalcapture. That's the one gripe I have about this page, the mathematical approximations aren't what the game does. [[User:Kaphotics|Kaphotics]] 19:22, 25 February 2012 (UTC)
::: Fourth roots and third roots never happen in game. The b equation listed is just a probability of you catching (ie all the shake compares lumped together). It does a*0x100 > rand(0,65535) for a pass shake calc. 4 times for gen 3-4, 3x for gen 5 after criticalcapture. That's the one gripe I have about this page, the mathematical approximations aren't what the game does. [[User:Kaphotics|Kaphotics]] 19:22, 25 February 2012 (UTC)
:::: I'm not sure what you're saying here.  Yes, the algorithm used for a shake check is not literally a third or fourth root.  But while it's nice to document the exact algorithm somewhere, it's probably much more useful to explain the practical results of the algorithm - thus why there are the approximations used in the lede (and occasionally sprinkled elsewhere).  You can be sure that when the game designers were playing with formulas, they were doing it in general terms, not caring about whether the RNG was 16-bit or whether a division rounded up or down.  The algorithms in the code are crafted to follow their intent.  (The difference is famously illustrated in that [https://www.google.com/search?q=pokemon+serious+business old "Pokémon: Serious Business" image] - indeed, it's what inspired me to craft the new lede in the first place.)  Let's keep our audience in mind.
:::: Though, that does bring up something else: it might be a good idea to more clearly separate the exact algorithms from the approximate interpretations, instead of the hodgepodge mix in the article currently. [[User:AySz88|AySz88]] 05:23, 26 February 2012 (UTC)
152

edits