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

[Script✓] Pokémon FireRed: trainerbattle script triggers twice (Solved)

  • 162
    Posts
    7
    Years
    • Seen Mar 1, 2023
    Pok?mon FireRed: trainerbattle script triggers twice (Solved)

    I've made a custom Champion battle for my Pok?mon FireRed romhack, included with different music for the final battle. Namely, Deoxys' battle theme.

    However, for some reason the Trainerbattle script is triggered twice. Once with the Deoxys battle theme, and once with the regular battle theme. It's the same battle twice as well, so I don't think there's an issue with the rematch script.

    The code I'm using is as follows:

    Spoiler:


    Does anybody know what might be causing this problem?


    ---UPDATE---

    I've managed to solve the problem. As it turns out, there's an issue with trainerbattle 0x3 that causes it to play a second time with the default music if the music is changed with special 0x3B and playsong. The way to fix this is to rework it into a different battle type. I personally used trainerbattle 0x0, which turned out to work perfectly.
     
    Last edited:
    Back
    Top