RMX-OS title BGM [resolved]

Started by ojp2010, September 06, 2010, 09:51:04 pm

Previous topic - Next topic

ojp2010

September 06, 2010, 09:51:04 pm Last Edit: September 06, 2010, 09:57:49 pm by ojp2010
What line of script do, and where do,I need to add to RMX-OS main for it to play a BGM in the server selection screen and the login screen?

Wizered67

Find this part of scene_servers
Spoiler: ShowHide
def create_scene
    super
    # get all server names
    server_names = []
    RMXOS::Options::SERVERS.each {|server| server_names.push(server.name)}
    server_names.push(RMXOS::Data::Exit)
    # create server selection window
    @command_window = Window_Command.new(224, server_names)
    @command_window.x, @command_window.y = 64, 128
    @command_window.active = true
    @command_window.index = 0
    # create server states window
    states = []
    @server_states.size.times {states.push(RMXOS::Data::ServerOffline)}
    @online_window = Window_Command.new(224, states)
    @online_window.x, @online_window.y = 352, 128
    @online_window.active = false
    @online_window.index = -1

and add
$game_system.bgm_play($data_system.title_bgm)
after that.

ojp2010

September 06, 2010, 09:57:17 pm #2 Last Edit: September 06, 2010, 10:54:18 pm by ojp2010
<3 thank you.

edit: How do I make it stop after the log in screen? It keeps play once the game start? Or would it be easier to just add a auto run 2 page event that stop the current BGM?

Ryex

look for the part of that sceen where it start disposing windows
after it disposes the last window put
$game_system.bgm_stop
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />