• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Level limit to Pokeball Types

Minokun

The Rival in Space
  • 107
    Posts
    11
    Years
    • Seen Sep 18, 2019
    Like the title says, how can I make certain types of pokeballs capture Pokemon by their level, while keeping the same formula and stuff.

    For example, I want a Pokéball to only be able to capture Pokémon that are levels 1-10. And I want Great Balls to only be able to capture Pokémon levels 1-30. And Ultra's level 1-50. Is that possible?
     
    Ctrl-shift-F for the phrase "masterball" (no space). It should return one hit, go there. This should be the script section for Pokeballs and how they work.

    Now, this hit should be in a small subroutine along the lines of events.onCalcBallShakes or something like that, return true, then a close bracket. Copy these lines and paste them three times in the same section. Change "masterball" in each of the three copies to "POKEBALL", "GREATBALL", "ULTRABALL" (again, no spaces).

    Now, in each copy, replace the "return true" with something different.

    In the Pokeball one, replace it with:
    if pokemon.level>10
    return false
    end

    In the Great Ball section, replace it with:
    if pokemon.level>30
    return false
    end

    In the Ultra Ball section, replace it with:
    if pokemon.level>50
    return false
    end

    This will make it so that under no conditions can the Pokeballs catch pokemon above their specified levels.


    I'm on a car trip to California at the moment and am typing on my phone or I would have given you actual code. But now that I've done so, if you're still confused someone with a little more know-how can spit up the code.
     
    Back
    Top