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

Allow a trainer to use more than 1 mega-evolution in a battle

  • 67
    Posts
    12
    Years
    • Seen Aug 22, 2024
    How can I manage it, that the enemy can use more than 1 (6) mega-evolution in battle?
     
    In PokeBattle_Battle, find this:
    Code:
      def pbCanMegaEvolve?(index)
        return false if $game_switches[NO_MEGA_EVOLUTION]
        return false if @battlers[index].isMega?
        return false if @battlers[index].isShadow?
        return false if pbBelongsToPlayer?(index) && !$PokemonGlobal.megaRing
        return false if !@battlers[index].hasMega?
        side=(pbIsOpposing?(index)) ? 1 : 0
        owner=pbGetOwnerIndex(index)
        return false if @megaEvolution[side][owner]!=-1 [COLOR="Red"]&& !pbIsOpposing?(index)[/COLOR]
        return true
      end

    Add the red stuff. The player and any allies will still be limited to one ME per battle, but the enemy won't be.

    EDIT: Oops, I thought you wanted everyone to be able to use it.
     
    Back
    Top