iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> change BGM, How i change my BGM?
xavilon
post Jan 25 2012, 10:21 AM
Post #1



Group Icon


Type: Undisclosed




One question please.
I´m a novel with the script. I´m trying change the BGM for the next battle whit a mine options, but it fails.
I want choose 40 differents BGM.
i put this:
when 0
$game_system.battle_bgm ("xxxxxx"x,x)
Someone please help me. Thanks evreybody
Go to the top of the page
 
+Quote Post
   
Raoul589
post Feb 18 2012, 11:38 AM
Post #2



Group Icon


Type: Coder
Alignment: Chaotic Good




QUOTE (xavilon @ Jan 25 2012, 08:51 PM) *
One question please.
I´m a novel with the script. I´m trying change the BGM for the next battle whit a mine options, but it fails.
I want choose 40 differents BGM.
i put this:
when 0
$game_system.battle_bgm ("xxxxxx"x,x)
Someone please help me. Thanks evreybody



I'm not entirely sure what you mean. A good trick is this: if you want to script something you can do with events, search inside the Game_Interpreter class for that command. In the case of BGM, you will find this:

def command_132
$game_system.battle_bgm = @params[0]
return true
end

so, your script should look more like this:

....
when 0
$game_system.battle_bgm = "xxxxxxxx"
....
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 31st July 2014 - 02:29 AM

RPGMakerVX.net is an Privacy Policy, Legal.