Advertisement
diamondandplatinum3

Remove Vehicle Auto-change BGM ~ RGSS3

Dec 10th, 2012
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.17 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. #             Remove Vehicle Auto-change BGM
  3. #             Author: DiamondandPlatinum3
  4. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. #  Description:
  6. #
  7. #    This script will allow you to stop vehicles from changing the bgm that is
  8. #    currently playing via the use of an event switch.
  9. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.  
  11.  
  12.  
  13. #///////////////////////////////////////
  14. module DP3_Vehicle_Sound_Options #//////
  15. #///////////////////////////////////////
  16.  
  17. # The ID of the switch which turns off changing the BGM on all vehicles
  18. Event_Switch_ID = 10    
  19.  
  20.  
  21.  
  22. #//////////////////////////////////////
  23. end #   ..  //    //    //  ..  ..  ///
  24. #//////////////////////////////////////
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. class Game_Vehicle < Game_Character
  36.   alias dp3_nobgm_during_travel get_on
  37.   def get_on
  38.     if $game_switches[DP3_Vehicle_Sound_Options::Event_Switch_ID]
  39.       @driving = true
  40.       @walk_anime = true
  41.       @step_anime = true
  42.       @walking_bgm = RPG::BGM.last
  43.     else
  44.       dp3_nobgm_during_travel
  45.     end
  46.   end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement