Bob423 52 Report post Posted December 4, 2010 (edited) I am trying to have the load screen play a different BGM than the title screen, this is what it looks like so far: #============================================================================== # ** Scene_Load #------------------------------------------------------------------------------ # This class performs load screen processing. #============================================================================== class Scene_Load < Scene_File #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize # Remake temporary object $game_temp = Game_Temp.new Audio.bgm_stop Audio.bgm_play(TLOZ file select, 100, 100) # Timestamp selects new file $game_temp.last_file_index = 0 latest_time = Time.at(0) for i in 0..3 filename = make_filename(i) if FileTest.exist?(filename) file = File.open(filename, "r") if file.mtime > latest_time latest_time = file.mtime $game_temp.last_file_index = i end file.close end end super("Which file would you like to load?") end #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- def on_decision(filename) # If file doesn't exist unless FileTest.exist?(filename) # Play buzzer SE $game_system.se_play($data_system.buzzer_se) return end # Play load SE $game_system.se_play($data_system.load_se) # Read save data file = File.open(filename, "rb") read_save_data(file) file.close # Restore BGM and BGS $game_system.bgm_play($game_system.playing_bgm) $game_system.bgs_play($game_system.playing_bgs) # Update map (run parallel process event) $game_map.update # Switch to map screen $scene = Scene_Map.new end #-------------------------------------------------------------------------- # * Cancel Processing #-------------------------------------------------------------------------- def on_cancel # Play cancel SE $game_system.se_play($data_system.cancel_se) $game_system.bgm_play($data_system.title_bgm) # Switch to title screen $scene = Scene_Title.new end #-------------------------------------------------------------------------- # * Read Save Data # file : file object for reading (opened) #-------------------------------------------------------------------------- def read_save_data(file) # Read character data for drawing save file characters = Marshal.load(file) # Read frame count for measuring play time Graphics.frame_count = Marshal.load(file) # Read each type of game object $game_system = Marshal.load(file) $game_switches = Marshal.load(file) $game_variables = Marshal.load(file) $game_self_switches = Marshal.load(file) $game_screen = Marshal.load(file) $game_actors = Marshal.load(file) $game_party = Marshal.load(file) $game_troop = Marshal.load(file) $game_map = Marshal.load(file) $game_player = Marshal.load(file) # If magic number is different from when saving # (if editing was added with editor) if $game_system.magic_number != $data_system.magic_number # Load map $game_map.setup($game_map.map_id) $game_player.center($game_player.x, $game_player.y) end # Refresh party members $game_party.refresh end end what is wrong with this part?: "Audio.bgm_play(TLOZ file select, 100, 100)" I keep getting an error message that says "Script 'Scene_Load' line:15 argument error occurred wrong number of arguments(0 for 1)" any help would be appreciated. Thanks! Edited December 6, 2010 by Bob423 Share this post Link to post Share on other sites
laansolo 3 Report post Posted December 4, 2010 Try Moving Audio.bgm_stop Audio.bgm_play(TLOZ file select, 100, 100) Around. Because how can you stop music that isn't playing? Or just get rid of Audio.bgm_stop. That may be causing the problem. But I'm not a scripter. Soooo, ya. Share this post Link to post Share on other sites
Bigace360 38 Report post Posted December 4, 2010 Change: Audio.bgm_play(TLOZ file select, 100, 100) To: Audio.bgm_play("Audio/BGM/" + "name of BGM goes here in between these quotes", 100, 100) Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted December 4, 2010 Scripts need to go in [spoiler][code]script here[/code] tags. ^_^ Share this post Link to post Share on other sites
Bob423 52 Report post Posted December 4, 2010 (edited) Scripts need to go in [spoiler][code]script here[/code] tags. ^_^ Thanks, that should help a lot. I can't try it now since I'm on my Wii. also, I didn't know how to do the "code" thing. Edited December 6, 2010 by Bob423 Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted December 4, 2010 Thanks, that should help a lot. I can't try it now since I'm on my Wii though. also, I didn't know how to do the "code" thing. Ah okay, but when you get back on a PC delete the script text and put it in again with the tags. Share this post Link to post Share on other sites
Bob423 52 Report post Posted December 4, 2010 COOL IT WORKED! thanks lots! :biggrin_002: here's the title screen for the game I want to use that in. Share this post Link to post Share on other sites
laansolo 3 Report post Posted December 6, 2010 You forgot the ] at the end of the first spoiler. Just pointing that out. :sweatdrop: Share this post Link to post Share on other sites
Bob423 52 Report post Posted December 6, 2010 thanks, I fixed it. Share this post Link to post Share on other sites