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

[Battle] Re-battle trainers

  • 17
    Posts
    4
    Years
    • Seen Jul 8, 2022
    Hello,
    I want to add the feature that you can re-battle certain trainers immediately with the same team they had. so not like they do with the pokenav in the original game where the team of the trainer changes (and you would have to wait till their rematch is available).
    I think this means I would have to edit the trainerbattle_single command (or create a completely new command that acts the same as this one only does not check the "you have beaten this trainer"-box) because I think they set a flag at the end of each battle to say that you have already beaten this trainer ... Or maybe im completely wrong on this. But I can't seem to find the file that controls this command. I hope someone can give me some pointers or tell me if i'm completely wrong and show me how I can actually accomplish this.
    Thanks in advance.
     
    src/trainer_see.c is probably where I would make the change. But the place where the script commands are located is src/scrcmd.c.

    EDIT: Actually, if you just want to disable the flags, a lazy option would be editing the checktrainerflag command in scrcmd.
     
    Back
    Top