Hey! So this works great for me as well, thanks a ton!I just realised that the core scripts defineVideo.setVolume, but never use it. Maybe this'll help?
Spoiler: plugin codeMoved to: Plugin Requests (from MZ Support)JavaScript:/*: * @target MZ * @plugindesc Adds a separate in-game "video" volume option. * @author Caethyril * @url https://forums.rpgmakerweb.com/threads/164107/ * @help Free to use and/or modify for any project, no credit required. */ ;void (() => { 'use strict'; /** * Internal symbol for new in-game option.\ * Should contain `"Volume"` for correct command handling. */ const KEY = "vidVolume"; /** Display text for new in-game option. */ const TXT = "Video Volume"; /** Default value for new in-game option. */ const DFAULT = 100; /** Private value repository for new option. */ let value = DFAULT; /** Updates video volume based on new option. */ const updateVideoVolume = function() { Video.setVolume(ConfigManager[KEY] / 100); }; // Define accessor for new option. Object.defineProperty(ConfigManager, KEY, { get: function( ) { return value; }, set: function(v) { if (Number.isFinite(v)) { value = v.clamp(0, 100); updateVideoVolume(); } }, configurable: true }); // On play video, set its volume to the new option value. void (alias => { Video.play = function() { alias.apply(this, arguments); updateVideoVolume(); }; })(Video.play); // Add new command. void (alias => { Window_Options.prototype.addVolumeOptions = function() { alias.apply(this, arguments); this.addCommand(TXT, KEY); }; })(Window_Options.prototype.addVolumeOptions); // Accommodate new command. void (alias => { Scene_Options.prototype.maxCommands = function() { return alias.apply(this, arguments) + 1; }; })(Scene_Options.prototype.maxCommands); // Save new option. void (alias => { ConfigManager.makeData = function() { const res = alias.apply(this, arguments); res[KEY] = this[KEY]; return res; }; })(ConfigManager.makeData); // Load new option. void (alias => { ConfigManager.applyData = function(config) { alias.apply(this, arguments); this[KEY] = KEY in config ? config[KEY] : DFAULT; }; })(ConfigManager.applyData); })();
The problem I'm having its that I also use VisuStella's Options Core plugin, and when I enable that, the Video Volume setting disappears. Would anybody know of a way to make this setting show up in the Visustella options menu, or do you suppose they're incompatible?