Controlling the sound "manually" + a demonstration of it's uses
Like the title says this thread will describe a way to change the playing song wihtout using any of the built in scripting commands.
To change the song what you have to do is write the correct values to the following offsets:
Just writing to those offset will not cause the music to change but writing to the following offset will:
This can be easily tested with the following script:
Well I have used it for the following:
See, the normal sound commands only take song ID's as arguments so they can't be called flexible.
This is what you need to make a script that reads values from certain vars and plays a song based on those.
First of all a little piece of ASM code is needed:
The ID is formed as follows:
([0x8001]*0x10 * 0x10)+([0x8002] * 0x10)+([0x8003])
So the most basic form of usage for the ASM code in a actual Script is as follows:
Also please note that this is the first thing I did involving ASM so it might not be the most efficient way of way of doing this.
I hope this information will help someone and if there are any question feel free to ask.
Does this work with trainer battles?
|All times are UTC -8. The time now is 12:09 PM.|
© 2002 - 2015 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Use of PokéCommunity Assets