Master Volume Control

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by tale, Feb 11, 2017.

  1. tale

    tale Volunteer Veteran

    Messages:
    446
    Likes Received:
    721
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    Volume Control+2016/04/23

    Creator name:
    Ru/むっくRu (Rutan) | (English Translation by tale)​

    Overview

    A script that allows you to set the volume. It can be added as an option to the title screen and/or main menu.

    Features
    You can adjust the volume (0:Mute~100:Max) ← Decrease / Increase →
    Controls: Left arrow key decreases, right arrow key increases
    The following audio are added to the module: BGM, BGS, SE, ME
    Bars and numbers are included. Code reorganized (2016/04/23)

    For more details, see the item settings in the script.

    Screens
    [​IMG]


    [​IMG]

    Installation
    Paste this script above Main.

    Script


    Advanced
    Use following "code" of the event command, you can call up the volume setting menu.
    Code:
      SceneManager. Call (
     HZM_VXA :: AudioVol :: Scene_VolConfig
     )
    Since it will cause an error if you try to write it in a single line, it's recommended to insert a line like the one above ↑

    Credit and Thanks
    - Original Author: Rutan
    - English translation: tale
    - Previous translation: Elemental Crisis (of the first release 2011/12/01)

    License - Public Domain
     
    Last edited: Apr 18, 2018
    #1
  2. ZirconStorms

    ZirconStorms VX & VX Ace Scripts Veteran

    Messages:
    332
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMVXA
    There seems to be a bug with the BGS volume control for mode 0, 1, and 2.
    SE and BGM control works fine, but the BGS stays at the same volume and keeps playing no matter if you decreased the volume down to 0 or increased it to 100.

    To anyone using this script, please replace the following section below.
    (class Window_VolConfig < Window_Command)

    Code:
          def add_vol_bgs(val)
            old = Audio.bgs_vol
            Audio.bgs_vol += val
            if music = RPG::BGS.last and music.name.size > 0
              Audio.bgs_play("Audio/BGS/#{music.name}", music.volume, music.pitch, music.pos)
            end
            Audio.bgs_vol != old
          end
          def add_vol_se
     
    Last edited: Sep 14, 2018
    #2

Share This Page