• 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!
  • 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] Form-based evolution

  • 54
    Posts
    5
    Years
    I'm creating the evolution methods for Alolan and Galarian pokémons. Right now, I am trying to make Galarian Mr. Mime evolve and I have made this script:
    Code:
    GameData::Evolution.register({
      :id            => :LevelFirstForm,
      :parameter     => Integer,
      :level_up_proc => proc { |pkmn, parameter|
        if pkmn.form = 2
          next pkmn.level = parameter
        end
      }
    })
    However, Kantonian Mr. Mime evolves too for some reason (yes, I have added this new evolution method to Mr. Mime). At this point, I tried replacing pkmn.form = 2 with pkmn.form != 2 and the same happens. How is that even possible? How can a pokémon be in its second form and at the same time don't?
     
    Last edited:
    I found the problem: there have to be two =s instead of one, that was why
     
    Back
    Top