• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
4
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:
    32
    Posts
    4
    Years
    • Seen Sep 19, 2023
    Hi can you use this scripts

    Spoiler:
    }


    Spoiler:


    Sorry for my english :)
     

    #Not Important

    All hail the wishmaker
    910
    Posts
    4
    Years
  • 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