Taking advantage the script (new game) by changing the map

FodasticoMan

Veteran
Veteran
Joined
Oct 11, 2015
Messages
41
Reaction score
3
First Language
Portuguese
Good day,

When you click new game will automatically go to the map 001. I would like the script refer to another map.

rpg_scenes.js

Code:
Scene_Title.prototype.commandCredito = function() {    this._commandWindow.close();    this.fadeOutAll();    SceneManager.goto(NEW LOCAL);};
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
This is the function, that initializes a new game. You are interested in the "reserveTransfer" in particular:

Code:
DataManager.setupNewGame = function() {    this.createGameObjects();    this.selectSavefileForNewGame();    $gameParty.setupStartingMembers();    $gamePlayer.reserveTransfer($dataSystem.startMapId,        $dataSystem.startX, $dataSystem.startY);    Graphics.frameCount = 0;};
However, if you want to display credits, i wouldn't use a map for this, but create an entirely new scene.
 
Last edited by a moderator:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,317
Reaction score
537
First Language
indonesian
you can specify which map you start with... just add party starting position using editor to that  map... i don't understand why you need the 'coding' way to achieve the same result.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Note that "commandCredito" doesn't exist in the base scripts, so i assumed that OP wants to conditionally transfer to a different map, depending on the command selected.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,317
Reaction score
537
First Language
indonesian
Note that "commandCredito" doesn't exist in the base scripts, so i assumed that OP wants to conditionally transfer to a different map, depending on the command selected.
you're right... :D . i didn't read it clearly.

then your suggestion is correct..

use reserve transfer to the map of your choice...

i think using a map is good enough for credits... especially if you're a good eventer.
 

FodasticoMan

Veteran
Veteran
Joined
Oct 11, 2015
Messages
41
Reaction score
3
First Language
Portuguese
I also find it better create a scene. But no one knows by now me provide an example :(

rpg_window.js

Window_TitleCommand.prototype.makeCommandList = function() {var parameters = PluginManager.parameters('TitleShutdownCommand');var credito = parameters['Name'] || "Creditos";this.addCommand(TextManager.newGame, 'newGame');this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());this.addCommand(TextManager.options, 'options');this.addCommand(credito, 'Creditos');};


RPG_Scenes.js

function Scene_Creditos() {this.initialize.apply(this, arguments);}Scene_Creditos.prototype = Object.create(Scene_MenuBase.prototype);Scene_Creditos.prototype.constructor = Scene_Creditos;Scene_Creditos.prototype.initialize = function() {??????};Example

 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top