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

[pokered] Adding Trainer Battles to Events

  • 1
    Posts
    2
    Years
    • Seen Jan 18, 2023
    Hi all, wondering if anyone can shed any light on how to correctly add a trainer battle into a map script in Pokered disassembly?

    Essentially I have a trigger script that when the player steps on a certain XY coordinate, an NPC walks over, text appears and a trainer battle begins. I have studied the scripts in the standard game when this occurs, eg. Rival battle on Route 22, Cerulean City etc., but get a glitched Missingno wild battle when compiling.

    Maps such as those described above that have scripted trainer battles do not have Trainer Headers, but rather write bytes to [wCurOpponent] and [wTrainerNo] and set bit 6 and 7 at [wd72d]. This appears to trigger a battle but maybe I'm missing something else?

    Has anyone else run into this problem before and found a solution? Any help is much appreciated!

    Cheers!
     
    Hi all, wondering if anyone can shed any light on how to correctly add a trainer battle into a map script in Pokered disassembly?

    Essentially I have a trigger script that when the player steps on a certain XY coordinate, an NPC walks over, text appears and a trainer battle begins. I have studied the scripts in the standard game when this occurs, eg. Rival battle on Route 22, Cerulean City etc., but get a glitched Missingno wild battle when compiling.

    Maps such as those described above that have scripted trainer battles do not have Trainer Headers, but rather write bytes to [wCurOpponent] and [wTrainerNo] and set bit 6 and 7 at [wd72d]. This appears to trigger a battle but maybe I'm missing something else?

    Has anyone else run into this problem before and found a solution? Any help is much appreciated!

    Cheers!
    Hope you're doing well! Have you found the answers to your issue?

    I'll be unable to help since I'm inexperienced with pokered, but it might help to show relevant code edits so someone who knows can! (I've passed it onto a few people.)
     
    Back
    Top