• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Custom Feature Question] Pokemon Desolation Randomizer

  • 47
    Posts
    5
    Years
    • Seen Nov 22, 2023
    Was gonna try to make a randomizer patch for E5 of Desolation and wanted to know how to do it.

    Wanted to be able to code it similar to HauDareYou's Rejuvenation challenge pack.
     
    Last edited by a moderator:
    Hi can you use this scripts

    Spoiler:
    }


    Spoiler:


    Sorry for my english :)
     
    This is what I would do:
    Code:
    #Add all pokemon you dont want to appear as a wild pkmn in this array
    n=[PBSpecies::ARCEUS]
    Events.onWildPokemonCreate+=proc {|sender,e|
      pokemon=e[0]
      if n.include?(pokemon.species)
        break #I use this for static pkmns, which i put in 'Exempt'
      end
      pokemon.species=rand(PBSpecies.maxValue)+1
      while n.include?(pokemon.species)
        pokemon.species=rand(PBSpecies.maxValue)+1
      end
      pokemon.name=PBSpecies.getName(pokemon.species)
      pokemon.calcStats
      pokemon.resetMoves
    }
    Tell me if you find errors, I havent tried it!
     
    Back
    Top