- 26
- Posts
- 17
- Years
- Seen Oct 22, 2013
I have this script for Lugia and Ho-Oh, here's the script for Lugia
I've looked in thee scripting tutorials and everything but I can't figure something out. How can I change the battle music for this wild-battle? Lugia and Ho-Oh have their own battle music so obviously it's possible to change the music of wild encounters, but how do I do it?
EDIT: Also, there's 1 more problem with the script. When Lugia is captured, the screen fades to black and he disappears but the screen doesn't fade back into normal, it stays black until you change screens, such as viewing your pokemon team or leaving the map. I'd appreciate if someone helped me out with that too, but the music question is my primary concern.
Spoiler:
#org 0x82692A2
'-----------------------------------
lock
faceplayer
checksound
pause 0x14
sound 0x52
setvar 0x8004 0x0
setvar 0x8005 0x3
setvar 0x8006 0x4
setvar 0x8007 0x2
special 0x138
pause 0x1E
sound 0x52
setvar 0x8004 0x0
setvar 0x8005 0x3
setvar 0x8006 0x4
setvar 0x8007 0x2
special 0x138
pause 0x1E
pause 0x32
checksound
cry 0xF9 0x2
waitcry
pause 0x14
special 0x117
setvar 0x8004 0xF9
setvar 0x8005 0x32
setvar 0x8006 0x0
special 0x1E2
setflag 0x8C1
special 0x13A
waitspecial
clearflag 0x8C1
special2 0x800D 0xB7
compare LASTRESULT 0x1
if 0x1 jump 0x8269336 ' Equal To
compare LASTRESULT 0x4
if 0x1 jump 0x8269344 ' Equal To
compare LASTRESULT 0x5
if 0x1 jump 0x8269344 ' Equal To
setvar 0x2904 0x1DD
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8269336
'-----------------------------------
setflag 0x1DD
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8273776
'-----------------------------------
#raw 0xDC
nop1 ' #raw 0x1
disappear 0x800F
#raw 0xDC
storepokemon 0x0 0x8004
msgbox 0x8273204 ' The \v\h02 flew away!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x8269344
'-----------------------------------
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8273204
= The \v\h02 flew away!
'-----------------------------------
lock
faceplayer
checksound
pause 0x14
sound 0x52
setvar 0x8004 0x0
setvar 0x8005 0x3
setvar 0x8006 0x4
setvar 0x8007 0x2
special 0x138
pause 0x1E
sound 0x52
setvar 0x8004 0x0
setvar 0x8005 0x3
setvar 0x8006 0x4
setvar 0x8007 0x2
special 0x138
pause 0x1E
pause 0x32
checksound
cry 0xF9 0x2
waitcry
pause 0x14
special 0x117
setvar 0x8004 0xF9
setvar 0x8005 0x32
setvar 0x8006 0x0
special 0x1E2
setflag 0x8C1
special 0x13A
waitspecial
clearflag 0x8C1
special2 0x800D 0xB7
compare LASTRESULT 0x1
if 0x1 jump 0x8269336 ' Equal To
compare LASTRESULT 0x4
if 0x1 jump 0x8269344 ' Equal To
compare LASTRESULT 0x5
if 0x1 jump 0x8269344 ' Equal To
setvar 0x2904 0x1DD
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8269336
'-----------------------------------
setflag 0x1DD
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8273776
'-----------------------------------
#raw 0xDC
nop1 ' #raw 0x1
disappear 0x800F
#raw 0xDC
storepokemon 0x0 0x8004
msgbox 0x8273204 ' The \v\h02 flew away!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x8269344
'-----------------------------------
setvar 0x8004 0xF9
jump 0x8273776
#org 0x8273204
= The \v\h02 flew away!
I've looked in thee scripting tutorials and everything but I can't figure something out. How can I change the battle music for this wild-battle? Lugia and Ho-Oh have their own battle music so obviously it's possible to change the music of wild encounters, but how do I do it?
EDIT: Also, there's 1 more problem with the script. When Lugia is captured, the screen fades to black and he disappears but the screen doesn't fade back into normal, it stays black until you change screens, such as viewing your pokemon team or leaving the map. I'd appreciate if someone helped me out with that too, but the music question is my primary concern.
Last edited: