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

Rematch Problem

  • 77
    Posts
    11
    Years
    • Seen Apr 3, 2016
    I copied word for word on both the wiki and the example for how to do the rematches, but I have a problem. Instead of saying the first end battle phrase (the one where you talk to him after battle) after being beaten the first time, he says the second phrase. Battle him again, still second phrase. It's like the first phrase is being skipped entirely. What do I do?
     
    I'm guessing this is your problem.

    Lets say your Rival trainer is named Tom. Your "Tom" trainers are going to be named "Tom" and "Tom,1" , etc.

    When you initiate the battle, in a conditional branch you would have

    Code:
    pbTrainerBattle(PBTrainers::RIVAL,"Tom",_I("Message"),false,0)


    Code:
    pbTrainerBattle(PBTrainers::RIVAL,"Tom",_I("Message"),false,1)

    It sounds like you named them incorrectly to me. At least it sounds like this is what your problem is, forgive me if I assume too much.
     
    Last edited:
    No, when I beat him the end speech (before giving you the reward) works fine. I'm referring to when you talk to him on the map, as in standing next to him and pressing the action button.

    Also I tested the dummy on Route 3 of the example map, and it has the same problem.
     
    I'll just paste what I have.

    Page one:
    Spoiler:


    Page two (Self Switch B):

    Spoiler:
    Page three (Self Switch A):

    Spoiler:


    Now what I want to do is have him say "You think I can get a Charmander?" when I talk to him after the first battle. However, he says "This Charmander is lame" instead, which he isn't supposed to do until after the second battle. Everything else is perfect. Do you see my problem?
     
    You've got your last page a little mixed up I think... Either you change all the text around, so everything in the conditional branch is then outside of the branch, or change the >=1, to <1.
     
    If I switch them, it just switches the problem. Meaning the first and second time he says "You think I can get a Charmander?" instead of "This Charmander is lame" the second time. Changing it to <1 didn't work.
     
    Ooooh, I see what you're trying to do... You want to change the >=1, to ==1...
     
    That didn't do it either. The third page is being ignored completely, no matter what I do to it. But you know what I found out? If I say no to taking his number the first time, he says "You think I can get a Charmander?" when I talk to him again like he's supposed to. However, if I take his number, it immediately switches to the other phrase.
     
    I assume you're aware that the comments on page 1 recreate all the event commands each time the game is run? And that, once this is done, you should close and reopen RMXP for the changes to be visible?
     
    I'm not sure if I follow. I have the comments in the order they should be, and I've been restarting RMXP each time. Am I supposed to only edit the comments?
     
    If the comments are there, then everything else (the commands and multiple pages) will be erased and recreated according to the information in those comments, each time you run the game.

    By all means, use the comments to create the basic trainer event. That's what they're there for. Create the event, put the comments in it and run the game. Close the game, close RMXP and reopen RMXP. The event will now have all the required commands. Delete the comments and make alterations to the event commands (if appropriate).
     
    Oh wow! That's what you meant. I somehow overlooked that on the wiki. Now it works once I put it to >1. Thank you so much!
     
    Back
    Top