changing title back image

ok so i can't find a plugin that does this and my atempt to alter the core script failed(ramble) so has anyone seen or knows how to change the title picture from the core single image to make it show random image from list upon load?

example:

the core script is set to get img from database\title1 - display

what i want is:

script load img_get> image array> random img\title1 - display

if this is to dificult do to the core script setup I will understand as I found the line for displaying the image but when I changed it I got both [ Scene_title2 not defined ] and after changing i got [ permanent black screen on load ] and had to replace core script with the copy in the import directory.
http://forums.rpgmakerweb.com/index.php?/topic/50976-izys-title-motions/
i think what they're trying to do is have just a random static image load each time the title screen is up, which is something I would be interested in.

http://forums.rpgmakerweb.com/index.php?/topic/51464-multiple-loading-screens/

there is a plugin link on this thread that says it does the same thing as what you're looking for but with the loading screen. maybe you can figure out what you need to do based on that code.
ok so i found that to be a bit of help but now im at my noobie limit this is what i got out of it, maybe someone could tell me why i cant get it to  lock in(the engine sees the script but doesn't care that its even there i.e. all of the scripts lock in and run as is ment to but mine does not run and uses the original scene_title.createBackground.) like the simple bite im trying to replace.

Spoiler
/****************************************
 TitleScreenRandomImgSelector.js
****************************************/

/*:
 * @plugindesc Displays a random background image for the title screen.
 * @author WorldWakeSTU
 *
 * @param TitleScreenCount
 * @desc The number of images used for random selection on the title scene.
 * @default 0
 */
/*******************************************************************************
*         Rpg_Scene.js rip
*******************************************************************************/
Scene_Title.prototype.createBackground = function () {
use strict;
    this.backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
    this.addChild(this.backSprite2);
/*******************************************************************************
*        WorldWakeSTU personal patch (scripting style from Liquidize anima_manyLoadingScreen)
*******************************************************************************/              
var parameters = PluginManager.parameters('TitleScreenRandomImgSelector');
var TitleScreenCount = Number(parameters['TitleScreenCount'] || 0);
if (TitleScreenCount > 0) {
    var random = Math.floor(Math.random() * (TitleScreenCount - 0 + 1));
        if (random > 0) {
        this._backSprite1 = new Sprite('img/title1/Title' + random + '.png');
        this.addChild(this._backSprite1);
              } else {
                        this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
                        this.addChild(this._backSprite1);
                 }
         }
}
/************************************************************

*          core > Rpg_scene.js > Scene_Title

************************************************************/

this is what im replaceing

Spoiler
Scene_Title.prototype.createBackground = function() {
    this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
    this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
    this.addChild(this._backSprite1);
    this.addChild(this._backSprite2);
};
it feeds but gives me the database choice and ignores or errors as undefined.
What do you mean by "lock in"?
i mean it sees and reads the script but then decides it doesn't exist
total parameter failure ;_; why are you so mean.

Spoiler
//=============================================================================
// MrTS_RandomRandomTS.js
//=============================================================================
/*:
* @plugindesc Random title screen script.
* @author Mr. Trivel
*
* @param TitleScreens
* @desc How many different title screens you have?
* Default: 1
* @default 1
*
* @help
* --------------------------------------------------------------------------------
* Free for non commercial and non-commercial use.
* Version 1.0
* --------------------------------------------------------------------------------
*
* --------------------------------------------------------------------------------
* Required Files
* --------------------------------------------------------------------------------
* "img\titles1\Title#.png" - # being number of title screen starting from 1.
*
* --------------------------------------------------------------------------------
* Version History
* --------------------------------------------------------------------------------
* 1.0 - Release
*/

(function() {
    var parameters = PluginManager.parameters('MrTS_RandomRandomTS.js');
    if (parameters['TitleScreens'] > 0){
        var screen = parameters['TitleScreens'];
    } else {
        alert("called");
        var screen = 1
    }
    console.log(parameters['TitleScreens']);
    var paramRandomTotal = Number(screen);
    console.log(paramRandomTotal);
    Scene_Title.prototype.createBackground = function() {
        
        var r = Math.round(Math.random() * (paramRandomTotal) + 1);
        console.log®;
        
        this._backSprite1 = new Sprite(ImageManager.loadTitle1("Title" + r));
        this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
        this.addChild(this._backSprite1);
        this.addChild(this._backSprite2);
        
    };
})();
I have finally managed to make my first plugin work! 🤣

i am still new at this and so I appreciate the help from Mr. Trivel and also ksart for pointing me in the direction i needed to push this crazy idea into the doable.

although this was done easily by Mr. Trivel and probably others with a lot more experience than I do. I still managed to learn to make my heap of failure and turn it into the working object it is and as I know it is likely this will fall into obscurity as others create advanced title screens, I will try to make this work with those as having a flare and completely custom title screen is totally sweet. it will add more to have extra titles flow through with such awe.

the finished script:

Spoiler
/****************************************
 TitleScreenRandomImgSelector.js
****************************************/

/*:
 * @plugindesc Displays a random background image for the title screen.
 * @author WorldWakeSTU
 *
 * @param TitleScreenCount
 * @desc The number of images being used for random selection on the title scene.
 * @default 0
 *
 *@help
 *-------------------------------------------------------------------
 * Free for non commercial and non-commercial use.
 * Version 1.0
 *-------------------------------------------------------------------
 *
 * --------------------------------------------------------------------------------
 * Required Files
 * --------------------------------------------------------------------------------
 * "img\titles1\Title#.png" - # being number of title screen starting from 1.
 *
 * --------------------------------------------------------------------------------
 * Version History
 * --------------------------------------------------------------------------------
 * 1.0 - TitleScreenRandomImgSelector
 *//*
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *|                                    |
 *|        complete plugin    12/1/2015    |
 *|                                    |
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */


            
 /*******************************************************************************
 *        WorldWakeSTU personal patch (with help from Mr. Trivel)
 *******************************************************************************/  
(function(){
    var parameters = PluginManager.parameters('TitleScreenRandomImgSelector');
    var TitleScreenCount = Number(parameters.TitleScreenCount || 0);
    console.log(TitleScreenCount);
    if (TitleScreenCount > 0){
        var rand = Math.floor(Math.random() * TitleScreenCount + 1);
        console.log(rand);
        
        Scene_Title.prototype.createBackground = function() {
            this._backSprite1 = new Sprite(ImageManager.loadTitle1('Title' + rand));
            this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
            this.addChild(this._backSprite1);
            this.addChild(this._backSprite2);
        }
    }else {
        /*******************************************************************************
        *         Rpg_Scene.js rip
        *******************************************************************************/
        console.log('No screen chosen, using default settings.');
        Scene_Title.prototype.createBackground = function() {
            this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
            this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
            this.addChild(this._backSprite1);
            this.addChild(this._backSprite2);
        }
    }
})();

Original thread: https://forums.rpgmakerweb.com/threads/changing-title-back-image.51360/