• 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!
  • Scottie, Todd, Serena, Kris - 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.

Undefined trainer error

Rayziken 2

Beginning ROM Hacker
  • 229
    Posts
    14
    Years
    • Seen Sep 9, 2016
    Hi, it's me again. I was trying to add a Gym Leader to my game, but when I was playtesting I got this error:

    Spoiler:


    I've got no idea how to fix it. I've changed the Gym Leader's script in RPG Maker to display the new Gym Leader, but this error still appeared. It seems to want me to add Brock's data back after I changed it, but Brock isn't going to be in the game, so that'd be pointless.

    Interpreter line 276 doesn't make much sense to me as well, I must admit.
     
    Look at the script there. It's looking for the trainer type LEADER_BROCK, which you don't have. The graphic you have doesn't matter. If you want to use a different trainer, you have to change that script.
     
    Look at the script there. It's looking for the trainer type LEADER_BROCK, which you don't have. The graphic you have doesn't matter. If you want to use a different trainer, you have to change that script.
    Yeah, I thought as much... I edited the event to my new Gym Leader, but the script I was told to check didn't have LEADER_BROCK in there. I used Ctrl + F and still couldn't find it.
     
    Look in the PBS file, trainertypes.txt, LEADER_Brock isn't in that, but it is in your trainers.txt
     
    You have to change the actual script call in your event. It still says LEADER_BROCK, so that's what it's looking for.
     
    You have to change the actual script call in your event. It still says LEADER_BROCK, so that's what it's looking for.
    Ah, I see what you're talking about now. Still, after changing it I got this error:

    Spoiler:


    Now she doesn't even speak before the battle is supposed to begin.

    EDIT: Never mind, it's sorted now. :D
     
    Last edited:
    Back
    Top