’Cause all games were better on the GBC

You are not logged in.

#1 2012-04-21 21:06:31

Registered: 2011-12-11
Post 31/94

Changing the music on battles

Hi :P
I managed to repoint music and edit it, but there's still something that I'm not able to do.
I changed the pointer of the Johto Wild Battle theme and it now points to a Pokémon Pinball song, but when I fight a wild pokémon, the original track keeps playing!
When I repoint a city or a town's music, it plays properly, so I don't know what I'm doing wrong.
Have I forgot something?


#2 2012-04-22 05:24:04

Registered: 2010-10-16
Post 860/2,327

Re: Changing the music on battles

I took a look at IIMarckus' "Battle music" again (can be found in Gen II tutorials section) and noticed that song 0x29 (Johto wild battle) music is played when you're in Johto and it's not nighttime. At night, song 0x4A is played instead.

What you could do is make it not check whether it's night or not and keep the other track unused and safe so that it always plays pinball song when you run into a wild pokemon.

ld de,$0029 ; set song
ld a,[$D157] ; check time of day
cp 2
jr nz,+$68 ; if not nighttime, we’re done (go to 445EB)
ld de,$004A ; set song
jr +$63 ; we’re done


Board footer

Powered by FluxBB