The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script mew legendary battle script (music help in particular)

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 19th, 2020 (6:50 PM).
pokefreak890's Avatar
pokefreak890 pokefreak890 is offline
The One that will make everything great
 
Join Date: Nov 2014
Gender: Male
Posts: 853
hello so i made a mew legendary battle script and everything is working fine but i run into one problem i want to use the RSE legend music for the actual battle but it only shows up when i click on the mew but when im actually in battle it gives me a RSE trainer fight music and im not sure why also the sprite does dissapear but when i walk one step it shows up again and i can battle it and im not sure why as well this is what my script looks like if anyone can help me that would be great

Spoiler:
'---------------
#org 0x90A596
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
preparemsg 0x8177F9F '"MEW!"
waitmsg
waitcry
pause 0x14
playsong 0x191 0x0
waitkeypress
setwildbattle 0x97 0x46 0x0
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x1
if 0x1 goto 0x8162558
compare LASTRESULT 0x4
if 0x1 goto 0x8162561
compare LASTRESULT 0x5
if 0x1 goto 0x8162561
setflag 0x2BC
release
end

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x162558
setflag 0x2BC
goto 0x81A922D

'---------------
#org 0x162561
setvar 0x8004 0x96
goto 0x81A9236

'---------------
#org 0x1A922D
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end

'---------------
#org 0x1A9236
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x81A63C4 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end


'---------
' Strings
'---------
#org 0x177F9F
= MEW!

#org 0x1A63C4
= The [buffer1] flew away!
__________________
3DS FREIND CODE : 2724-3540-0898
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 20th, 2020 (1:38 PM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by pokefreak890 View Post
hello so i made a mew legendary battle script and everything is working fine but i run into one problem i want to use the RSE legend music for the actual battle but it only shows up when i click on the mew but when im actually in battle it gives me a RSE trainer fight music and im not sure why also the sprite does dissapear but when i walk one step it shows up again and i can battle it and im not sure why as well this is what my script looks like if anyone can help me that would be great

Spoiler:
'---------------
#org 0x90A596
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
preparemsg 0x8177F9F '"MEW!"
waitmsg
waitcry
pause 0x14
playsong 0x191 0x0
waitkeypress
setwildbattle 0x97 0x46 0x0
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x1
if 0x1 goto 0x8162558
compare LASTRESULT 0x4
if 0x1 goto 0x8162561
compare LASTRESULT 0x5
if 0x1 goto 0x8162561
setflag 0x2BC
release
end

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x162558
setflag 0x2BC
goto 0x81A922D

'---------------
#org 0x162561
setvar 0x8004 0x96
goto 0x81A9236

'---------------
#org 0x1A922D
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end

'---------------
#org 0x1A9236
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x81A63C4 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end


'---------
' Strings
'---------
#org 0x177F9F
= MEW!

#org 0x1A63C4
= The [buffer1] flew away!
  • I don't remember much on this, but I think if you put "playsong 0x[XXX] 0x0" after "special 0x138", it will play THAT song in-battle. And also, maybe shift the "setflag 0x807" after the whole wildbattle scenario. Like this:
Code:
setwildbattle 0x97 0x46 0x0
special 0x138
playsong 0x[WHATEVER] 0x0
setflag 0x807

  • And regarding the whole "sprite not disappearing properly" issue, have you properly set the Mew flag and the script flag correctly? Because you do need to set a flag for the said event after using the "hidesprite" command.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 20th, 2020 (7:39 PM).
pokefreak890's Avatar
pokefreak890 pokefreak890 is offline
The One that will make everything great
 
Join Date: Nov 2014
Gender: Male
Posts: 853
okay so now the music does appear properly but the sprite itself dosent disappear this is what my new script looks like

Spoiler:
'---------------
#org 0x90A596
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
preparemsg 0x8177F9F '"MEW!"
waitmsg
waitcry
pause 0x14
waitkeypress
setwildbattle 0x97 0x46 0x0
special 0x138
playsong 0x191 0x0
setflag 0x807
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x1
if 0x1 goto 0x8162558
compare LASTRESULT 0x4
if 0x1 goto 0x8162561
compare LASTRESULT 0x5
if 0x1 goto 0x8162561
setflag 0x2BC
release
end

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x162558
setflag 0x2BC
goto 0x81A922D

'---------------
#org 0x162561
setvar 0x8004 0x96
goto 0x81A9236

'---------------
#org 0x1A922D
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end

'---------------
#org 0x1A9236
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x81A63C4 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end


'---------
' Strings
'---------
#org 0x177F9F
= MEW!

#org 0x1A63C4
= The [buffer1] flew away!
__________________
3DS FREIND CODE : 2724-3540-0898
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.