• 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!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Scripting Question] Rarities to forms in the wild

Scraps The Man

Crystal Collector
  • 33
    Posts
    4
    Years
    • Seen Jun 19, 2024
    Hey, I have a quick question if anyone can answer.

    So, I have a pokemon with over 50 different forms and I want them all to be found in the wild but at different rarities. I already have a backup fix if nobody answers, but it is rather tedious and I want to know if there is a way to code a script that adds extra percentage encounters to forms in the wild.

    An example of this: Lets say that form #2 is much more common than form #16. Is there a way to make form #2 have a 50% chance to pop up and form #16 have a 5% chance to pop up when encountering the pokemon?

    Thanks in advance!
     
    Sounds like you need a big "getFormOnCreation" proc for this species which returns different form numbers based on a random number. The exact calculations and relative rarities are up to you. Pokémon like Unown and Basculin are simple versions of this, where each form is equally likely.
     
    Back
    Top