• 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!
  • Akari, Selene, Mint, Solana - 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] Custom Mega Evolution Problems

sonicfan7895

Just a dude, I guess
  • 120
    Posts
    14
    Years
    Hello all!

    I am having trouble getting new Megas to work properly. Only two custom Megas work properly, and those would be Mega Galvantula and Mega Ariados. Those are able to Mega-Evolve in battle and revert back to their original forms after the battle. However, the other 17 that my group created don't function properly, and I have to force them into their Megas through use of the Debug Menu.

    Below are the codes for one functioning custom Mega Evolution, and for one non-functioning custom Mega Evolution.

    Functioning: Mega Galvantula
    Code:
    MultipleForms.register(:GALVANTULA,{
    "getMegaForm"=>proc{|pokemon|
       next 1 if isConst?(pokemon.item,PBItems,:GALVANTULITE)
       next
    },
    "getBaseStats"=>proc{|pokemon|
       next [75,30,60,125,135,60] if pokemon.form==1
       next
    },
    "getAbilityList"=>proc{|pokemon|
       next [[getID(PBAbilities,:SHEERFORCE),0]] if pokemon.form==1
       next
    },
    "height"=>proc{|pokemon|
       next 13 if pokemon.form==1
       next
    },
    })

    Non-functioning: Mega Serperior:
    Code:
    MultipleForms.register(:SERPERIOR,{
    "getMegaForm"=>proc{|pokemon|
       next 1 if isConst?(pokemon.item.PBItems,:SERPERIORITE)
       next
    },
    "getBaseStats"=>proc{|pokemon|
       next [95,125,115,123,125,113] if pokemon.form==1
       next
    },
    "getAbilityList"=>proc{|pokemon|
       next [[getID(PBAbilities,:SERENEGRACE),0]] if pokemon.form==1
       next
    },
    "type2"=>proc{|pokemon|
       next getID(PBTypes,:DRAGON) if pokemon.form==1
       next
    },
    })

    I don't know what could be fundamentally different with these two, and all of their Mega Stones are defined clearly in PItems_Items, lines 90-103 (for me).

    If there is anything anyone can do to help, that would be greatly appreciated! Thanks!
     
    Hello all!

    I am having trouble getting new Megas to work properly. Only two custom Megas work properly, and those would be Mega Galvantula and Mega Ariados. Those are able to Mega-Evolve in battle and revert back to their original forms after the battle. However, the other 17 that my group created don't function properly, and I have to force them into their Megas through use of the Debug Menu.

    Below are the codes for one functioning custom Mega Evolution, and for one non-functioning custom Mega Evolution.

    Functioning: Mega Galvantula
    Code:
    MultipleForms.register(:GALVANTULA,{
    "getMegaForm"=>proc{|pokemon|
       next 1 if isConst?(pokemon.item,PBItems,:GALVANTULITE)
       next
    },
    "getBaseStats"=>proc{|pokemon|
       next [75,30,60,125,135,60] if pokemon.form==1
       next
    },
    "getAbilityList"=>proc{|pokemon|
       next [[getID(PBAbilities,:SHEERFORCE),0]] if pokemon.form==1
       next
    },
    "height"=>proc{|pokemon|
       next 13 if pokemon.form==1
       next
    },
    })

    Non-functioning: Mega Serperior:
    Code:
    MultipleForms.register(:SERPERIOR,{
    "getMegaForm"=>proc{|pokemon|
       next 1 if isConst?(pokemon.item[COLOR="Red"][B].[/B][/COLOR]PBItems,:SERPERIORITE)
       next
    },
    "getBaseStats"=>proc{|pokemon|
       next [95,125,115,123,125,113] if pokemon.form==1
       next
    },
    "getAbilityList"=>proc{|pokemon|
       next [[getID(PBAbilities,:SERENEGRACE),0]] if pokemon.form==1
       next
    },
    "type2"=>proc{|pokemon|
       next getID(PBTypes,:DRAGON) if pokemon.form==1
       next
    },
    })

    I don't know what could be fundamentally different with these two, and all of their Mega Stones are defined clearly in PItems_Items, lines 90-103 (for me).

    If there is anything anyone can do to help, that would be greatly appreciated! Thanks!

    The red point must be replaced by a comma.
     
    Back
    Top