Conditional Title Music [1.17]

Conditional Title Music
Ossra​

Summary
The plugin allows the game developer to play a specified group of audio files on the title screen when the condition set for that group is met.

Manual
Spoiler: Plugin Parameters
• Play List​
The list of groups which contain audio file parameters as well as a play condition. The list is processed from the top to the bottom. Once the play condition for a group has been met, subsequent groups are skipped.​
​
<Group Parameters>​
​
• File List​
The list of audio files which will be played when the play condition of the group is met. The list is processed from the top to the bottom. Sound effects (SE) are played immediately and will not repeat.​
​
<File Parameters>​
​
• File​
The name and folder of the audio file.​
​
• Volume​
The volume of the audio file.​
​
• Pitch​
The pitch of the audio file.​
​
• Pan​
The pan of the audio file.​
​
• Pos​
The position at which to start the audio file. This option is only supported by audio files in the BGM and BGS folders.​
​
• Event List​
The list of common events which will run on the title screen, allowing the developer to have a customized audio play list.​
​
• Play Condition​
A javascript evaluated play condition. The plugin will expect the code used in this parameter to return a boolean value (true, false, 0, 1). A result of 'true' will cause the specified audio files in the group to be played.​
Plugin Version
1.17

RPG Maker Version
1.6.2

Download
via GitHub

Terms of Use
Free for Commercial and Non-Commercial Usage

License
MIT License
So are you back to make plugins? 🙂
haha! Nice one ^^
@Eliaquim I am going through finished plugins that I have laying around and 'officially' releasing them. Probably create more plugins, as well.
@Eliaquim I am going through finished plugins that I have laying around and 'officially' releasing them. Probably create more plugins, as well.
Nice to hear that! 🙂
Updated to version 1.17 to include the ability to run common events on the title screen, allowing the developer to create a customized audio play list.
When switch 20 is true, play another bgm.
the Play Condition , I want to know how to use it. I need some hint.
@Erodaisiki The following condition would normally work :

Code:
// switchId - The ID of the switch
$gameSwitches.value(switchId) === true

Unfortunately, game switches are reset whenever the game is restarted (F5, 'Game Over', etc). Therefore that switch will never return 'true'.
@Erodaisiki The following condition would normally work :

Code:
// switchId - The ID of the switch
$gameSwitches.value(switchId) === true

Unfortunately, game switches are reset whenever the game is restarted (F5, 'Game Over', etc). Therefore that switch will never return 'true'.
Can I replace the switch with something?
I used the permanent switch, but the concert was interrupted while loading the file.
Do you have any good suggestions?

Original thread: https://forums.rpgmakerweb.com/threads/conditional-title-music-1-17.117307/