[RMMV] TRANSFER TO MAP INSTEAD OF GOING TO TITLE
Posts
Pages:
1
Hey, I've been trying to figure out how to make it so that when you click quit in the menu and then click the option to go to the title it takes you to a different map instead of the title screen.
However, everywhere I can look in the default plugins seems to not change at all when I type in the command for transferring the player to a specific map instead of going to Scene_Title.
Does anyone have a way of doing this? The reason I need it is a little weird to explain, but think of games like Banjo Kazooie where when you click quit game there is a little cutscene that plays and THEN you're taken back to the title.
Thanks!
EDIT: I've also tried making a plugin to do this, but I am not yet well versed in Javascript so the game hangs when I click Title. Here is what that plugin looks like, maybe someone can tell me what I've done wrong:
Scene_GameEnd.prototype.commandToTitle = function() {
$gamePlayer.reserveTransfer(2, 0, 1, 2, 0);
};
It is strange that when I try to edit this in rpg_scenes nothing happens, but when I add it as its own plugin it hangs.
However, everywhere I can look in the default plugins seems to not change at all when I type in the command for transferring the player to a specific map instead of going to Scene_Title.
Does anyone have a way of doing this? The reason I need it is a little weird to explain, but think of games like Banjo Kazooie where when you click quit game there is a little cutscene that plays and THEN you're taken back to the title.
Thanks!
EDIT: I've also tried making a plugin to do this, but I am not yet well versed in Javascript so the game hangs when I click Title. Here is what that plugin looks like, maybe someone can tell me what I've done wrong:
Scene_GameEnd.prototype.commandToTitle = function() {
$gamePlayer.reserveTransfer(2, 0, 1, 2, 0);
};
It is strange that when I try to edit this in rpg_scenes nothing happens, but when I add it as its own plugin it hangs.
Very late seeing this so maybe you fixed it, but I believe this does what you need it to. Feel free to edit as you see fit.
You had 90% of it, but it was just hanging out in Scene_GameEnd forever because you need to tell it to go to Scene_Map.
//=============================================================================
// title.js
//=============================================================================
/*:
* @plugindesc Go to a map instead of going to title
* @author Redd
*
* @param none
* @desc none
* @default false
*
* @help
*
* Plugin Command:
*
*/
(function() {
Scene_GameEnd.prototype.commandToTitle = function() {
$gamePlayer.reserveTransfer(2, 0, 1, 2, 0);
SceneManager.goto(Scene_Map);
};
})();
You had 90% of it, but it was just hanging out in Scene_GameEnd forever because you need to tell it to go to Scene_Map.
Pages:
1














