• 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.

[Scripting Question] Multiple Forms controlled Mega Evolution

76
Posts
8
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
     

    Ego13

    hollow_ego
    311
    Posts
    6
    Years
  • 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.
     
    76
    Posts
    8
    Years
    • Seen Dec 9, 2022
    Unfortunately that doesn't work. The mega evolution option in the battle screen disappears when adding that line.
     

    Ego13

    hollow_ego
    311
    Posts
    6
    Years
  • 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