• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] Evolution Method where slowpoke evolution is cancelled

JohnnyComotion

Advanced Trainer
  • 9
    Posts
    13
    Years
    I've designed a new Pokémon that Shellder evolves into. However, it's evolution is based solely on Slowpoke evolving into Slowbro, but the evolution must be cancelled in order for Shellder to evolve into the new Pokémon.
    I already have a label defined for this, but no other data. I was wondering what would the code look like for such evolution method?
     
    I've designed a new Pokémon that Shellder evolves into. However, it's evolution is based solely on Slowpoke evolving into Slowbro, but the evolution must be cancelled in order for Shellder to evolve into the new Pokémon.
    I already have a label defined for this, but no other data. I was wondering what would the code look like for such evolution method?

    Wow,that's a long way. I'm not going to give you the detailed code because I believe it's going to take time, but here is the idea.
    • You'll have to define a new constant in the module PBEvolution to refer to refer to that method of evolution.
    • Find the function that handles the evolution of Pokémon. It's the function:
      Code:
        def pbEvolution(cancancel=true)
      in the file PScreen_Evolution. Find the part that handles cancelation. You'll have to add a few lines setting a game switch to true if the evolutoin you canceled was that of Slowpoke into Slowbro, and set that switch to false otherwise.
    • In Pokemon_Evolution, define a new condition for evolution:
      Code:
      PBEvolution.register(:Level, {
        "shellderBis" => proc { |pkmn, parameter|
          next pkmn.level >= parameter && $game_switches[XXX]
        }
      })
      This tells the game that the special evolution of Shellder should happen only after a level defined in the PBS file, and if the switch you altered before is set to true.

    I think it should do the trick.
     
    Back
    Top