@Pokepie
I'm trying to make it so that after I finish a battle, I return back to talking with the NPC, such as when you beat a rival, gym leader, Elite 4 member in a Pokemon match, you would resume talking to them after you win, instead of needing to talk to them again.
I am using PKSV. I'm very new to it so I'm taking parts of generated and example scripts and putting it together.
How can I do this?
Part of the script that's the problem:
after trainerbattle, change the first 0x0 to "0x4" (Gym battle) or "0x9" (Special kind of battle that allows you to give them extra messages when you win or lose, then automatically continues the script)
0x4 would be simplest, it's basically a normal battle that automatically continues the script once the battle is over, rather than ending it. The setup for 0x4 is almost identical to 0x0, but 0x9 requires some other syntax that I can't really explain at the moment. You can look that up in most XSE or PKSV tutorials.
NOW FOR MY QUESTION:
NOTE: Reposted from the Simple questions thread, this place seems like a better place for it, even if it is a little hardcore
Game: Pokemon FireRed
Type: HEX/XSE/Pokescript for music
Editor: XSE/PKSV
I've been on these forums awhile,
but never posted posted once, hiya!
Anyway, I'm not EXACTLY sure if my question fits this thread, so apologies.
Question:
So far the only way to change what music plays at any given time in FireRed (specifically in battle) is MMX's Music Replacement hex code thing, right?
I'm trying to use it, but I've only been learning hex for about 3 weeks (because relying on tools is for noob hackers).
Here's the main routine, as you can see it's not changed from the one at sfc.pokefans.net
(just go to the lessons page, "Fancy Knowledge #3." I'm not at 15 posts yet and I don't think you would appreciate me gumming up your forum trying to reach 15 before posting this. The site is just there for reference, hopefully all the information needed is in this post)
And my edited musicloader:
The game loads perfectly, all music and sounds: check.
however, I have been, as of yet, unable to actually REPLACE any music.
quick example:
The music values are just there for test, I forgot which is which, I actually created TWO scripts that flops them around.
I'm TRYING to replace basic battle music. What I replace it with isn't important at the moment, I'm testing this in a clean ROM before even daring to attempt it on my hack, which uses an extended music table.
I am not EXACTLY sure what the problem is, but I may have narrowed it down:
a. I'm just using the wrong music values?
b. I'm just using the setvar command wrong? (unlikely imo, setvar isn't that hard)
c. There has been some babble about variable values being the cause of most, if not all problems had with this loader, if that is the case, help me out!
d. I derped up a pointer or something. Very likely.
EDIT:
Ran a quick test, trying to change the overworld music for Pallet, didn't work. Not sure if it's just the map header overriding what I put in, but that leads me to think it might be a problem with the hex or syntax, not the actual music values.
Whatever the problem is, please point me in the right direction for fixing it! (Or if this is the wrong thread, please point me to the right one!)
Thank you so much in advance!