[SOLVED] Manipulate CURRENT BGM Volume through Action Sequence

This is solved 😤

Here's the original post:

Spoiler: Original Post
Hello everyone!

I'm here again to ask if anyone knows of a way to manipulate the CURRENTLY PLAYING Battle Background Music (BGM) through a skill during battle. I'm using RPG Maker VX, with a Sideview Battle System (SBS 3.4).

This is what I got so far:
* This section within the SBS Battler Configurations lets me do most of what I need:
Spoiler: Sound Effects Section
In this section I'm able to set:
  • ANIME KEY - The name of the command I will use later on in the ACTION SEQUENCE for a certain skill.
  • Type 1 is always "Sound".
  • Type 2 is "bgm" in this case, as I want to manipulate the battle music.
  • Pitch is normally going to be a 100, as I don't want to change the pitch of the music.
  • Vol is, of course, the volume. I set it to 70 for the command that's intended to lower the volume, and 100 for the command that's supposed to bring the volume back to normal, because that's the default volume for bgm.
  • Filename is the name of the file in the Audio/BGM folder.
Post1.jpg

* In this section I set up the Action Sequence for one specific skill that's going to manipulate the volume of the Battle Music:
Spoiler: Action Sequence Setup
  • Here, for the test, I decided to lower the volume of the BGM (Bgm_lower) right before the animation plays, and bring it back to normal (Bgm_normal) when the character finishes his skill and goes back into position.
Post2.jpg

This actually works perfectly. Did some testing and, once we manipulate volumes through this process, the BGM surprisingly doesn't cut to the start each time; instead it keeps playing continuously at the desired volume set, which is great if we knew which BGM will be playing at the time of any battle. However, in most games the BGM changes throughout the journey, which makes the limitation of having to choose one specific BGM file for volume manipulation not ideal.

So, my objective is to be able to do just the previously shown process, but with an option for CURRENT BGM BEING PLAYED in the "Filename" section, instead of having to set ONE specific BGM file in the Audio/BGM folder.

Basically the reason I want to do this is because I have a bard-like character that, once his music sound effects are playing, it's way too disruptive when you hear it alongside the battle music.

I'll leave a demo with the test I explained above.
Spoiler: Link to Demo

If anyone knows of away to do this, I'd deeply appreciate the help!!
Thanks in advance for any attention thrown at this 🙂

Here's the solution:
Spoiler: Solution
This isn't a documented feature, but if you put "" as your filename, it should use the currently playing bgm/bgs instead.

Thanks, everyone! 🙂
Hey,

This isn't a documented feature, but if you put "" as your filename, it should use the currently playing bgm/bgs instead. This still forces you to set the exact volume/pitch yourself (instead of say, halving the volume from whatever it currently is), but it looks like this might be a non-issue here.
That's why I developed my KShlenam VX script that handles a global volume for BGM, BGS & ME & SE.
if you put "" as your filename, it should use the currently playing bgm/bgs instead
Omg I could've sworn I tried that before, but I guess I just dreamt it 😅 Just tested, this is solved.
Thanks guys for paying attention to this and sorry for wasting your time :mrsatan:

That's why I developed my KShlenam VX script
I saw that one before while exploring your scripts, really handy and it looks awesome. Not sure if I could've used it for this specifically, since the handling of bgm volume had to be situational (at specific moments during the processing of certain skills), but I'll make sure to contact you if I go for a nice customization touch for my game 🙂

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-manipulate-current-bgm-volume-through-action-sequence.162611/