Title Bgs

Hello everyone!

I am in need of a really simple plugin/script that plays a bgs of choice on the title screen, i tried adding it in myself in the core MV files but it likes to reset the set bgs when I change the title bgm in any fashion.

If anyone is up to this that would be great ^_^

Example:
rpg_scene.js

Code:
Scene_Title.prototype.playTitleMusic = function() {
    AudioManager.playBgm($dataSystem.titleBgm);
   
    //Custom BGS Add
    AudioManager.playBgs($dataSystem.titleBgs);
   
    AudioManager.stopMe();
    AudioManager.stopSe();
};
The basic problem here is that $database.titleBgs is not defined anywhere.

Try using this instead:

Code:
Scene_Title.prototype.playTitleMusic = function() {
    AudioManager.playBgm($dataSystem.titleBgm);
   console.log($dataSystem.titleBgm);
    //Custom BGS Add
    var titleBgs = {
        name: "Clock",
        volume: 100,
        pitch: 100,
        pan: 0,
        pos: 0
    };
    AudioManager.playBgs(titleBgs);
   //End Custom BGS
    AudioManager.stopMe();
    AudioManager.stopSe();
};

I tested with the clock sound, but you can change it to whatever you need.
The basic problem here is that $database.titleBgs is not defined anywhere.

Yeah that's why i was adding it in manually in the system data JSON next to the titleBgm but that's where it kept resetting because like you said it's technically not in there 😛 tehe

Try using this instead

Works perfectly! Thanks! ^_^

Original thread: https://forums.rpgmakerweb.com/threads/title-bgs.76887/