• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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] Multiple Forms controlled Mega Evolution

  • 76
    Posts
    9
    Years
    • Seen Dec 9, 2022
    Hello guys, I added muliple forms for some Pokémons and now I want to include some Mega Evolution. I want that let's say Pokémon X form 1 only will mega evolve to mega1. Now Pokémon X also has form 2, which should only mega evolve to mega2 and not mega1. Same applies for form 3 which should mega evolve to mega3. How do I proceed with that? FYI I use V.16.2
     
    You can extend the line that checks for the mega stone
    The one that I think starts with
    Code:
    next 1 if isconst
    Behind that you just add the other condition
    Code:
    && pkmn.form==X
    where x is to be replaced with the corresponding form number.
     
    Unfortunately that doesn't work. The mega evolution option in the battle screen disappears when adding that line.

    replace the pkmn in
    Code:
    && pkmn.form==X
    with pokemon
    that should work
    the line would look like this

    Code:
    next 1 if isConst?(pokemon.item,PBItems,:MEGASTONE) && pokemon.form==X
     
    Back
    Top