[Solved] BGS change while using Ship

Title of the thread is self explanatory.  

I just want to add the sea BGS when the player is using the Ship, off course this is not the same as replacing the BGM on any form.

Can somebody help me please?
Done 🙂

Code:
module VehicleBGS  BGS_for_Ship = "Darkness"endclass Game_Vehicle < Game_Character  alias game_vehicle_change_bgs_get_on      get_on  alias game_vehicle_change_bgs_get_off     get_off  #--------------------------------------------------------------------------  # * Board Vehicle  #--------------------------------------------------------------------------  def get_on    game_vehicle_change_bgs_get_on    play_ship_bgs if @type == :ship  end  #--------------------------------------------------------------------------  # * Get Off Vehicle  #--------------------------------------------------------------------------  def get_off    game_vehicle_change_bgs_get_off    stop_ship_bgs if @type == :ship  end    def play_ship_bgs    RPG::BGS.new(VehicleBGS::BGS_for_Ship, 100, 100).play  end    def stop_ship_bgs    RPG::BGS.stop    $game_map.autoplay  end  end
Done 🙂

module VehicleBGS BGS_for_Ship = "Darkness"endclass Game_Vehicle < Game_Character alias game_vehicle_change_bgs_get_on get_on alias game_vehicle_change_bgs_get_off get_off #-------------------------------------------------------------------------- # * Board Vehicle #-------------------------------------------------------------------------- def get_on game_vehicle_change_bgs_get_on play_ship_bgs if @type == :ship end #-------------------------------------------------------------------------- # * Get Off Vehicle #-------------------------------------------------------------------------- def get_off game_vehicle_change_bgs_get_off stop_ship_bgs if @type == :ship end def play_ship_bgs RPG::BGS.new(VehicleBGS::BGS_for_Ship, 100, 100).play end def stop_ship_bgs RPG::BGS.stop $game_map.autoplay end end
Thank you very much Soulpour777 😀 , I guess it was a simple request haha
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-bgs-change-while-using-ship.26124/