Advertisement
TheSixth

Title SE Changer Snippet by Sixth

Sep 4th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.31 KB | None | 0 0
  1. #===============================================================================
  2. # A small snippet to change the sound effects on the title screen depending on
  3. # what command has been selected.
  4. # Made by: Sixth
  5. #===============================================================================
  6. module TitleSE
  7.  
  8.   Setup = {   #  RPG::SE.new("file_name", volume, pitch),
  9.     :new_game => RPG::SE.new("Absorb2",       80,   100),
  10.     :continue => RPG::SE.new("Bell1",         80,   100),
  11.     :shutdown => RPG::SE.new("Crash",         80,   100),
  12.     # Add more settings here, if you have custom commands on the title screen!
  13.   }
  14.  
  15. end
  16. #===============================================================================
  17. # End of settings! Editing anything below may lead to... you know it, right?
  18. #===============================================================================
  19.  
  20. class Window_TitleCommand < Window_Command
  21.  
  22.   def process_ok
  23.     if current_item_enabled?
  24.       TitleSE::Setup[current_symbol].play
  25.       Input.update
  26.       deactivate
  27.       call_ok_handler
  28.     else
  29.       Sound.play_buzzer
  30.     end
  31.   end
  32.  
  33. end
  34. #==============================================================================
  35. # !!END OF SCRIPT - OHH, NOES!!
  36. #==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement