- 136
- Posts
- 5
- Years
- Seen Dec 31, 2024
I'm very sorry for posting so many help threads. But I literally could not find another thread from searching that has someone else dealing with this same problem.
In the attached script, it's basically the character entering the champion's room and triggering almost the same thing as base Emerald's Wallace battle, but with a different trainer, instead.
What happens is, after the opening dialogue, the player gets thrown into the battle, as expected, with different music thanks to "playsong". But after victory, it does the battle again! Even though, I only put the "trainerbattle" command on 1 line of code, and followed that with "setflag" and "goto". What's interesting (and makes sense) is that the regular trainer battle theme plays on the 2nd battle. And if I change who the trainer is, it repeats that trainer twice instead of two different trainers back to back.
From my testing, the player only battles this trainer twice, not infinitely. The other parts of the script work fine.
I literally don't know what's wrong with the script, and why I'm getting 2 battles back to back. Help would be appreciated.
In the attached script, it's basically the character entering the champion's room and triggering almost the same thing as base Emerald's Wallace battle, but with a different trainer, instead.
What happens is, after the opening dialogue, the player gets thrown into the battle, as expected, with different music thanks to "playsong". But after victory, it does the battle again! Even though, I only put the "trainerbattle" command on 1 line of code, and followed that with "setflag" and "goto". What's interesting (and makes sense) is that the regular trainer battle theme plays on the 2nd battle. And if I change who the trainer is, it repeats that trainer twice instead of two different trainers back to back.
From my testing, the player only battles this trainer twice, not infinitely. The other parts of the script work fine.
I literally don't know what's wrong with the script, and why I'm getting 2 battles back to back. Help would be appreciated.