iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> Remove Ship Auto-change BGM, I need for the ship to stop changing the BGM.
Rifall
post Jul 31 2012, 10:01 AM
Post #1



Group Icon


Type: Designer
Alignment: Lawful Good




I have a place where you will have to get on and off the vehicle. But, I can't have the sound and BGM constantly changing. So I need a script that completely removes the effect of vehicles changing the BGM automatically. Either that, or I need to know what to change in the actual scripts to get the same effect.


--------------------

Click to view our official web site.
Go to the top of the page
 
+Quote Post
   
DP3
post Jul 31 2012, 10:29 AM
Post #2


Swinging a chain in a town near you.
Group Icon


Type: Writer
Alignment: Lawful Neutral




CODE
#///////////////////////////////////////
module DP3_Vehicle_Sound_Options #//////
#///////////////////////////////////////

# The ID of the switch which turns off changing the BGM on all vehicles
Event_Switch_ID = 10    



#//////////////////////////////////////
end #   ..  //    //    //  ..  ..  ///
#//////////////////////////////////////










class Game_Vehicle < Game_Character
  alias dp3_nobgm_during_travel get_on
  def get_on
    if $game_switches[DP3_Vehicle_Sound_Options::Event_Switch_ID] == true
      @driving = true
      @walk_anime = true
      @step_anime = true
      if @type == 2               # If airship
        @priority_type = 2        # Change priority to "Above Characters"
      end
    else
      dp3_nobgm_during_travel
    end
  end
end


--------------------
Go to the top of the page
 
+Quote Post
   
Rifall
post Jul 31 2012, 05:32 PM
Post #3



Group Icon


Type: Designer
Alignment: Lawful Good




QUOTE (DP3 @ Jul 31 2012, 11:29 AM) *
CODE
#///////////////////////////////////////
module DP3_Vehicle_Sound_Options #//////
#///////////////////////////////////////

# The ID of the switch which turns off changing the BGM on all vehicles
Event_Switch_ID = 10    



#//////////////////////////////////////
end #   ..  //    //    //  ..  ..  ///
#//////////////////////////////////////










class Game_Vehicle < Game_Character
  alias dp3_nobgm_during_travel get_on
  def get_on
    if $game_switches[DP3_Vehicle_Sound_Options::Event_Switch_ID] == true
      @driving = true
      @walk_anime = true
      @step_anime = true
      if @type == 2               # If airship
        @priority_type = 2        # Change priority to "Above Characters"
      end
    else
      dp3_nobgm_during_travel
    end
  end
end

Wow, so quick too. Thanks. This is amazing.


--------------------

Click to view our official web site.
Go to the top of the page
 
+Quote Post
   

Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 1st September 2014 - 12:46 PM

RPGMakerVX.net is an Privacy Policy, Legal.