View Single Post
  #5951    
Old August 1st, 2011, 04:53 AM
toeter
Beginning Trainer
 
Join Date: Jul 2010
Gender: Male
Hello, I would like to change the battle background music of a trainer. It's a script in PKSV. Is there a command that lets you change the background music?

Here is my Script:

Spoiler:
#dyn 0x800000
#org @start

lockall
faceplayer
setvar 0x4001 0x0
jump @main

#org @main
textcolor BLUE
playsound 0x0 0x11D
reappear 0xA
msgbox @talk
callstd MSG_NOCLOSE
closemsg
applymovement 0xA @walk
pauseevent 0x0
message @question
callstd MSG_YESNO
compare LASTRESULT YES
if == call @pushedyes
compare LASTRESULT NO
if == call @pushedno
trainerbattle 0x9 0x2 0x0 @win @lose
msgbox @speak
callstd MSG_NOCLOSE
closemsg
pause 0xA
playsound 0x0 0x112
compare 0x4001 0x0
if == call @move1
compare 0x4001 0x1
if == call @move2
compare 0x4001 0x2
if == call @move1
compare 0x4001 0x3
if == call @move2
fadedefault
disappear 0xA
setvar 0x601A 0x1
releaseall
end

#org @pushedyes
message @yes
callstd MSG_NORMAL
return

#org @pushedno
message @no
callstd MSG_NORMAL
return

#org @move1
applymovement 0xA @away1
pauseevent 0x0
return

#org @move2
applymovement 0xA @away2
pauseevent 0x0
return

#org @talk
= Stop right there!

#org @question
= Your name is \v\h01,\nam I right?

#org @yes
= Then prepare to fight!

#org @no
= Either way, \nprepare to fight!

#org @win
= Lucky you.

#org @lose
= Ha, I knew it.

#org @speak
= I'm going to report this.

#org @walk
M walk_down walk_down walk_down walk_down walk_down end

#org @away1
M walk_right walk_down walk_down walk_down walk_down walk_down walk_down walk_down end

#org @away2
M walk_left walk_down walk_down walk_down walk_down walk_down walk_down walk_down end