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

Mega Evolution/Rival Bug

Djaco75

DAJ 775
  • 35
    Posts
    8
    Years
    Hi All,

    These two bugs have appeared for quite a while with my game. I don't know what is causing them, but if you can suggest ways to fix them, that would be great!

    1. When I try to Mega-Evolve Pokemon, nothing happens. I have implemented all scripts/graphics and it works with all the enemy trainers, but with the player, I have to hold the CNTRL button down for the Mega button to appear. (CNTRL is only in debug mode) If anyone knows how to fix this or can suggest something, anything would be great.

    2. I have tried to create rival trainers, but they are not working. This has something to do with their Battle ID. But it's only these specific trainers. I have used battle ID with the Gym Leaders, and that is OK. But when I try with rivals, the error comes up saying "Add new trainer named [ICERIVAL_North]. I have tested this both in the actual game and debug mode, but the same result happens. Also, with no battle ID the rivals work fine. It's just after I try putting Battle ID in that it gives me this error.

    Thanks for your help. If you need further ideas of what is going on, I have attached screenshots below.
     

    Attachments

    • [PokeCommunity.com] Mega Evolution/Rival Bug
      44.png
      23.4 KB · Views: 18
    • [PokeCommunity.com] Mega Evolution/Rival Bug
      11.png
      14.2 KB · Views: 12
    1. Was the player given a Mega Ring?
    2. Did you define the trainer class in the trainers.txt PBS? Or are the trainer battles listed as the first battle, or 0?

    For clarification on 2, this is what a trainer script looks like:

    pbTrainerBattle(PBTrainers::YOUNGSTER,"Alex",_I("But my team was super cool!"),false,0,false,0)

    The 0 that's bolded means that it's the first trainer battle against that particular trainer class. Having something like this:

    pbTrainerBattle(PBTrainers::YOUNGSTER,"Alex",_I("But my team was super cool!"),false,1,false,0)

    would be an entirely different trainer battle. Refer to the trainer PBS that you set up for that trainer battle. If it looks like this:

    YOUNGSTER
    Alex
    1
    ELEKID,2

    Then that's the battle that will be fought when the 0 is listed in the trainer script. If it looks like this:

    YOUNGSTER
    Alex,1
    2
    RATTATA,3
    ELEKID,3

    then that would be the trainer that you would fight if the script listed a 1 in the place of the 0. Note the 1 after the name. That's how you can do multiple battles against the same trainer class. You can use 1,2,3 and so on.
     
    1. Was the player given a Mega Ring?
    2. Did you define the trainer class in the trainers.txt PBS? Or are the trainer battles listed as the first battle, or 0?

    For clarification on 2, this is what a trainer script looks like:



    The 0 that's bolded means that it's the first trainer battle against that particular trainer class. Having something like this:



    would be an entirely different trainer battle. Refer to the trainer PBS that you set up for that trainer battle. If it looks like this:



    Then that's the battle that will be fought when the 0 is listed in the trainer script. If it looks like this:



    then that would be the trainer that you would fight if the script listed a 1 in the place of the 0. Note the 1 after the name. That's how you can do multiple battles against the same trainer class. You can use 1,2,3 and so on.


    Hi SpartaLazor,

    1. Yes, the player was given a mega-ring as well as the mega stone for the Pokemon to hold.

    2. This is the example of the trainer event that isn't working.

    SCRIPT:
    pbTrainerBattle(PBTrainers::ICERIVAL,"North",_I("As stellar as always..."),false,7,false,0)

    PBS FILE:
    #-------------------
    ICERIVAL
    North,7
    5,HYPERPOTION,HYPERPOTION
    ARTHABASK,55,,AVALANCHE,SHEERCOLD,BLIZZARD,ACIDARMOR
    DIAMOTH,56,,WHIRLWIND,BLIZZARD,SHEERCOLD,TAILWIND
    LEOZONE,57,,BLIZZARD,SHEERCOLD,ICEBEAM,ICEPUNCH
    CRYSTEO,58,,BLIZZARD,SHEERCOLD,ICEBEAM,ICEPUNCH
    SUBZERAGON,59,,DRAGONPULSE,BLIZZARD,SHEERCOLD,DRAGONCLAW

    I've never had this problem when using battle ID before. It's only this specific trainer.
     
    Back
    Top