• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.
  • 98
    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