You are not logged in.
Pages: 1
Does anybody know how to disable the music while surfing in a cave? I’ve added custom music to a few caves in Pokemon Crystal, but I don’t want that music to start and stop over and over while I’m surfing in places like Mt Mortar or the Whirl Islands. I’m not looking to disable it all together. I still would like to hear it while surfing outside.
Ragni featured this in one of the caves for Polished Crystal, however I wasn’t able to find the script applied for said function. Any pointers would be appreciated!
Offline
You can solve this kind of question by working backwards. Presumably the code that plays the Surf music must identify that music somewhere. The relevant ID is MUSIC_SURF, so search on GitHub for that. Spoiler: it turns up the SpecialMapMusic routine. Now you can compare it with Polished Crystal's implementation, or even study its logic and figure out where+how to add a check for your cave maps.
Last edited by Rangi (2018-10-03 22:37:33)
Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.3 released!
Offline
Fantastic help as always. Much appreciated! My only idea was to check the Lugia Chamber map file, but looking at how you’ve scripted this to work for Polished Crystal, it makes much more sense. Going to attempt to replicate the effect in other caves.
Offline
So I was able to replicate the effect, but only for one location. After I added others, I tried compiling the rom and it kept saying error unable to place ‘Home’ at ROM0. I’m guessing the added line of script was making the file too large to compile together. Any advice? What I mean by that is, would there be a way to script it in a way that checks if you’re in a cave rather than individual map groups?
Last edited by rbroab (2018-10-06 16:08:25)
Offline
Pages: 1