Hello There. Im making a title screen out of events for my games and Im having trouble finding the script call for the New Game option. Is there a script call that works when used in an event or is there a plugin that I need to download for it?
MZ Script call for New Game
Javascript/Plugin SupportWe need a bit more details on how you disabled the default title screen.
most people use a plugin to skip the title screen, and depending on which plugin you use and how it works you might have to use different methods as skipping the title screen that way should already initialize the game correctly - otherwise your events would not even work.
most people use a plugin to skip the title screen, and depending on which plugin you use and how it works you might have to use different methods as skipping the title screen that way should already initialize the game correctly - otherwise your events would not even work.
Maybe something like this?
JavaScript:
DataManager.setupNewGame();
SceneManager.goto(Scene_Map);
I think the pre-title scene already did that setUpNewGame so maybe just that SceneManager.goto(Scene_Map);
But yeah, did you check that your event title scene plugin doesn't have a command to start the new game?
But yeah, did you check that your event title scene plugin doesn't have a command to start the new game?
Im just using a plugin that skips the title screen. Nothing else. So Im looking for a script call or maybe a plugin that has that option to call the New Game option within a normal event
but that is exactly what we are writing about.
you CANNOT "skip the title and go into the game" without initializing said game.
So it is guaranteed that the plugin to skip the title already handles part or all of "new game", and we need to see what exactly it does before we can give you a code that works together with that specific "skip title" plugin.
If you're already on the map scene, you basically just need to transfer from the "title" map to the "new game" map, right?
I haven't tested, so I'm not sure if that would work as intended. If it works mechanically but there are cosmetic problems, e.g. weather and/or BGM shuts off instantly, then you could try using the Fadeout Screen/Fadeout BGM commands beforehand.
Otherwise, like Andar said: best practice when asking for support with plugins is to link to the relevant plugin page(s).
DataManager.setupNewGame() includes a transfer to the starting location defined in the database. So I think the simplest approach (guaranteed to reset everything relevant to new game) would be to temporarily modify the starting location. E.g. this in a Script command:
JavaScript:
// Memorise original starting location.
const m = $dataSystem.startMapId;
const x = $dataSystem.startX;
const y = $dataSystem.startY;
// Change starting location.
$dataSystem.startMapId = 2;
$dataSystem.startX = 3;
$dataSystem.startY = 4;
// Call standard "new game" method.
DataManager.setupNewGame();
// Restore original starting location.
$dataSystem.startMapId = m;
$dataSystem.startX = x;
$dataSystem.startY = y;
Otherwise, like Andar said: best practice when asking for support with plugins is to link to the relevant plugin page(s).
Ah okay I see. Ill try this and will tell if it works :3
OK, good luck~ 👋
Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-new-game.182982/