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

Alternate name for Mega Ring to be used by opposing Trainers

rigbycwts

Hmm, hmm.
  • 94
    Posts
    12
    Years
    • Seen Feb 22, 2019
    This works similar to the dialogues in the sixth gen games, when a NPC Trainer Mega Evolves his/her Pokemon, the text displayed has a different name for the Mega Ring (e.g. Maxie's Mega Glasses, Archie's Mega Anchor). The only script that will be edited is PokeBattle_Battle.
    Credit would be appreciated.

    First, change line 1606 to:
    Code:
    ownername=pbGetOwner(index).name

    Below this line:
    Code:
    pbDisplay(_INTL("{1}",@battlers[index].getMegaMessage(pbGetOwner(index))))
    add one or more of these conditions (Note - add more trainer types by adding elsif):
    Code:
    elsif pbGetOwner(index).trainertype == 62 # Magma Leader
          pbDisplay(_INTL("{1}'s {2} is reacting to {3}'s Mega Glasses!",
             @battlers[index].pbThis,
             PBItems.getName(@battlers[index].item),
             ownername))
        else
           pbDisplay(_INTL("{1}'s {2} is reacting to {3}'s Mega Ring!",
            @battlers[index].pbThis,
            PBItems.getName(@battlers[index].item),
            ownername))
        end
    In this example, 62 is the trainer type ID (check the PBS files for these) of the trainer type "Magma Leader."
     
    Last edited:
    Back
    Top