Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: ojp2010 on September 06, 2010, 09:51:04 pm

Title: RMX-OS title BGM [resolved]
Post by: ojp2010 on September 06, 2010, 09:51:04 pm
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?
Title: Re: RMX-OS title BGM
Post by: Wizered67 on September 06, 2010, 09:53:07 pm
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.
Title: Re: RMX-OS title BGM
Post by: ojp2010 on September 06, 2010, 09:57:17 pm
<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?
Title: Re: RMX-OS title BGM [resolved]
Post by: Ryex on September 06, 2010, 11:41:54 pm
look for the part of that sceen where it start disposing windows
after it disposes the last window put
$game_system.bgm_stop