![]() |
Fancy Knowledge #3 - Using Two Different Musics In One Event
Fancy Knowledge #3 - Using Two Different Musics In One Event
Heyho. Some people asked how zel was able to use more than 1 music in his battles. I created that feature a year ago and called it "jukebox". I think it's time now to explain how it works... (I think zel won't have a problem if i tell it...) You can find it here: http://sfc.pokemon-inside.net/lesson.php?id=13&lang=en greetz MX P.S. If you find offsets for other versions than Fire Red US and you want to share them with others post them in this thread or send me a PM. |
Your page is kind of in disorder about the binary...
Anyway,thanks~ |
Hey, the tutorial is really nice, it will find sure good use in many hacks.
I don't like being noobish and ask questions in wrong places, but isn't it October already, M_X? :P |
Very useful, indeed. I would make a tool, but I don't know if I can...or rather feel like it.
I'll be using this, and good luck! Especially with that Day&Night System ;) |
Quote:
Edit: @ Martin™ It is. Well. Do you want to have a D/N system that crashes for unknown reasons when you switch pokemon in battle? ^^° I try to fix that problem... -.- |
Well,sorry for my bad English...I mean this:
http://www.pokecommunity.com/picture.php?albumid=365&pictureid=12066 |
This tutorial seems quite useful. I liked how you said that it's "fancy knowledge", Mastermind.
I will definitely be using this in the future for my hack. Thanks for writing/translating this, Mastermind. |
@M_X: Ah, so that is the reason. Sorry then ^^" I hope you will be able to fix it.
Anyway, I am going to try out this tutorial, it will sure be great for me - already planned different wild Pokémon music on different parts of region. I would like to ask: Where the heck you know all this from? You're amazing, did you know? @liuyanghejerry: Which browser are you using? If Internet Explorer 6- or one of browsers using its rendering engine (Maxthon for example), it should not be a surprise. If you're using a more standards-compilant browser such as IE8 or Firefox and the rest, then I have no idea. |
I have double checked my hex and have tried both hex and decimal for music values, but it isn't working for me. This is the script that changes it. #org @begin
setvar 0x1014 0x298 setvar 0x1016 0x299 message @this boxset 6 release end #org @this = Music test. |
@Megiddo - It doesn't work like that, you have to use it before a wildbattle or trainerbattle. How?
1. Well, find the song that the wildbattle/trainerbattle plays. 2. Setvar 0x1014 the song it plays. (Original Song) 3. Setvar 0x1016 to the song you want it to play. Ao, in simple terms its changing the played music, through setvars, by setting the original song to 0x1014 and set a new song to 0x1016. If the vars don't work, it can be changed: Quote:
Anyway, Good News is you may see a tool soon :) |
I think I need new ones. I tried putting them before a trainerbattle in a script. Thanks. I'm going to try others.
Edit: I just made that work by using different variables. It needn't be in the same script. |
I've tried to do this a couple times now and each time I try the game just stops; you try to load the game, the blue background of the intro opens, and it just stops there.
I've double checked the hex to make sure I've input it correctly and I've put it in the same locations as described on the tutorial, so I've also used the same pointer in the second part where I'm attaching it to the musicloader. I tried toying around with the var numbers in the hex (the 14 10 00 00, 15 10 00 00 etc) but changing them didn't fix anything. As far as I can tell the Fire Red ROM started doing this intro freeze after I put in the hex that is in the first part of the tutorial. Either way, I've tried this three odd times now and got the same result every time... would anyone happen to have any idea why the game keeps doing this whenever I put in the hex? edit: Okay I took a look at AdvanceMap at the broken ROM and it seems that all of the tiles are broken :x |
Drayano, it doesn't work with my ROM either for some reason. I'm having the same problem as you. Luckily I made a backup.
|
Quote:
Good luck! |
When I go to this part Im kinda lost lol
01 49 08 47 00 00 [XX XX XX XX] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 And my pointer is F1 FE CF 08 also but everytime i do this from 0x1DD0F6 to 0x1DD10E my rom will end up crashing. |
Quote:
I've actually managed to get this working, but to do it I had to take a look at another hack that had successfully done this. Take a look at Azure Horizons if you're stuck, the makers of it have it inserted and working correctly so it's a great example. |
Thanks thanethane98 for the input. :)
It didn't crash this time and you was right that was a great example. Now all I need help is the setvar. Btw. I am using pokescript. |
Quote:
|
Quote:
The only problem I've had with this at the moment is that it seems to have errors when you attempt to use it with a normal trainer (one that battles you when you're in their sight). Has anyone else had this issue? |
#org $script
setvar 0x7030 0x297 setvar 0x7033 0xblah trainerbattle 0x00 0x0001 $see $win $see 1 = Battle me! $win 1 = I lost. message $after $after 1 = You're tough. boxset 6 release end This my script for pokescript And it still not working for me. Is it the same for xse :) |
Quote:
That's why this method is limited. It can execute changes like regional music, or class based music if you're extremely careful and clever, but it's incapable of more complex changes. |
Quote:
Also, your last video on youtube was so amazing i am really a fan but anyways so where do i put the setvars or i should redue this script. :) #org $script trainerbattle 0x1 0x1 $see $win $see 1 = Blah $win 1 = Blah Blah. message $after $after 1 = Blah Blah Blah. boxset 6 setvar 0x7030 0x297 setvar 0x7033 0xblah release end Redid the script |
No, it's not possible to use this method to change the music for each trainer. This is because that setvar won't be used until after the battle is finished. It works for rival style trainers, since they execute parts of scripts before battling, but it won't work with normal trainers for the aforementioned reason. You can set the vars in a level script if all trainers in the area need a different music (a Team Rocket takeover of a place, for example), but you can't set each trainer in an area individually.
|
Okay I see what you are saying and its makes perfect
sense. So the level script #org $script setvar 0x7030 0x297 setvar 0x7033 0xblah release end and i put this in advance map the area i chose (like you said a bad guys area) script it to one of the green boxes idk lol This is confusing in a good way :) |
Quote:
|
| All times are GMT -8. The time now is 8:58 AM. |
![]()
© 2002 - 2018 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 - 2016 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.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.