Anime Alliance

Would you like to react to this message? Create an account in a few clicks or log in to continue.

    The Science. Of Pokemon

    Train Heartnet
    Train Heartnet
    Kuro Neko


    Warning Level :
    The Science. Of Pokemon Left_bar_bleue0 / 40 / 4The Science. Of Pokemon Right_bar_bleue

    Male Libra Dog
    Posts : 3288
    Ryo : 709749
    Reputation : 3
    Join date : 2010-07-04
    Age : 30
    Location : Yuolnev R. Know

    The Science. Of Pokemon Empty The Science. Of Pokemon

    Post by Train Heartnet Thu Aug 05, 2010 6:44 pm

    The Science. Of Pokemon Catch_formula_1

    Where

    * HPmax is the number of hit points the Pokémon has at full health,
    * HPcurrent is the number of hit points the Pokémon has at the moment,
    * rate is the catch rate of the Pokémon,
    * bonusball is the multiplier for the Poké Ball used, and
    * bonusstatus is the multiplier for any status ailment the Pokémon has (2 for sleep and freeze, 1.5 for paralyze, poison and burn).

    Given this formula, the maximum value for a (if the Pokémon could have 0 HP) would be catch rate × bonusball × bonusstatus. The minimum value for a (for a Pokémon with full health) would be ⅓ × catch rate.

    Calculate b as follows:

    The Science. Of Pokemon Catch_formula_2

    Then generate 4 random numbers between 0 and 65535, inclusive. For each number, check whether it's less than b; if so, the ball shakes once. If any number is greater than or equal to b, the Pokémon immediately breaks free. If all four of the numbers are less than b, then the Pokémon is caught. Note that if a is 255 or greater, then b is 65535 or greater, and then the Pokémon is guaranteed to be caught.

    Therefore, the probability p of catching a Pokémon, given the values a and b calculated above, is:

    The Science. Of Pokemon Catch_formula_3

    The second expression for p may be expanded as follows:

    The Science. Of Pokemon Catch_formula_3_expansion

    Since (216 - 1)4 ≈ 264, we can approximate p with the following expression:

    The Science. Of Pokemon Catch_formula_3_approximation

    The percentage error in this approximation approaches 0 as a approaches 255, and does not exceed 21.2%.

    For a constant probability p, the probability P that a player can capture the Pokémon with no more than r tries is:

    The Science. Of Pokemon Catch_formula_4

    Note that this is the cumulative probability function for a geometric distribution. The expected value of r is 1/p, that is to say, on average, a Pokémon that can be caught with probability p will be caught with 1/p tries.

    The inverse problem, the number of tries, r, needed to have a probability P of capturing a Pokémon is:

    The Science. Of Pokemon Catch_formula_5




      Similar topics

      -

      Current date/time is Fri Nov 22, 2024 1:58 am