Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
EmilyAnnCoons

Making a plugin to replace the Title?

Recommended Posts

Okay, so, I need either help programming it, or I need it programmed (I kinda wanna learn, so the first is preferred, I guess?)

 

Basically, I want to create a plugin that replaces the Title screen. Rather, I want it to edit the screen so it adds a fourth option. I want to have the options: "New Game", "New Game With Tutorial", "Load Game", and "Options" on the menu. It'd basically be the same as the current title screen but with the tutorial thing added. What it would do would be to load up the game by going to a specific set of X and Y coordinates on a specific map instead of loading the default map and set up. Here's what I have so far, but none of the parameters show up in the plugin manager, so I'm assuming it isn't working:

 

 

(function() {

var parameters = PluginManager.parameters('Scene_NewTitle');
var MapID = Number(parameters['Tutorial Map ID'] || 1);
var x = Number(parameters['X Value'] || 0);
var y = Number(parameters['Y Value'] || 0);

var Scene_NewTitle = Scene_Title.prototype.createCommandWindow;
Scene_Title.prototype.createCommandWindow = function() {
    this._commandWindow = new Window_TitleCommand();
    this._commandWindow.setHandler('newGame',  this.commandNewGame.bind(this));
    this._commandWindow.setHandler('newGame2', this.commandNewGame2.bind(this));
    this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
    this._commandWindow.setHandler('options',  this.commandOptions.bind(this));
    this.addWindow(this._commandWindow);
};

Scene_Title.prototype.commandNewGame2 = function() {
    DataManager.setupNewGame();
    $gamePlayer.reserveTransfer(MapID, x, y);
    this._commandWindow.close();
    this.fadeOutAll();
    SceneManager.goto(Scene_Map);
};

function Scene_NewTitle() {
    this.initialize.apply(this, arguments);
}

Scene_NewTitle.prototype = Object.create(Scene_Base.prototype);
Scene_NewTitle.prototype.constructor = Scene_NewTitle;
}) ();

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...