TenraiEmiko

Greatest Disciple of the Narukami
Regular
Joined
Apr 10, 2021
Messages
115
Reaction score
24
First Language
Vietnamese
Primarily Uses
RMMZ
I have tried injecting the script call as seen in Archeia's post into the VisuStella MZ Core Engine's title command configuration screen, but when I test the game, nothing happened when I clicked / selected the "Manual" option that I configured.

Here's the code that is supposed to be run when selecting that command:

JavaScript:
$gamePlayer.reserveTransfer(3,8,6,0,0)

Is this the wrong piece of code? Tbf, I wanna have that command to make the screen transfers to a map that shows the "manual" of the game in it. If that is the wrong code snippet, how can I change it in order to make what I want works?

Thanks in advance!
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
1,693
Reaction score
1,166
First Language
English
Primarily Uses
RMMV
If "nothing happened" when you tried to execute a script you'll need to check the console log to see what's going wrong.
 

TenraiEmiko

Greatest Disciple of the Narukami
Regular
Joined
Apr 10, 2021
Messages
115
Reaction score
24
First Language
Vietnamese
Primarily Uses
RMMZ
If "nothing happened" when you tried to execute a script you'll need to check the console log to see what's going wrong.
Nothing bad detected from the console though...

I mean I tried looking for a universal (not in-game, I mean those that can even be called in game menus and stuff) script call that can transport the player to another map...

That's what I am gonna use for the game manual stuff (there is a separate map that serves as a manual)...

How can I do it?
 

Tray

Regular
Regular
Joined
Sep 7, 2018
Messages
50
Reaction score
10
First Language
English
Primarily Uses
RMMV
If you used MV id just say use mogs title plugin or yanfly and add it that way but with MZ I'm not sure.


if its possible you could try adding a common event to run when the manual option is selected then put all the stuff in there. If that is the correct code, then sounds like it's not recognizing the script call from the main menu. I ran into a lot of this in MV and had to play with it some
 
Last edited:

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,310
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
on the title screen, most game structures do not exist - they need to be created first, either by the new game option, the load game option or quite a series of commands from a plugin manipulating the title screen.

so in your case most likely the gameplayer object was not yet ready when you gave that command.
I suggest you carefully re-read the context in which you saw the command used to learn what you missed when transferring it to where you used it.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
5,030
Reaction score
4,368
First Language
EN
Primarily Uses
RMMZ
Assuming it just requires a function body or eval then this should work:
JavaScript:
// Memorise assigned start point.
const mem = { startMapId, startX, startY } = $dataSystem;
// Change start point.
$dataSystem.startMapId = 1;
$dataSystem.startX = 2;
$dataSystem.startY = 3;
// Start new game from title screen.
SceneManager._scene.commandNewGame();
// Immediately reset start point.
$dataSystem.startMapId = mem.startMapId;
$dataSystem.startX = mem.startX;
$dataSystem.startY = mem.startY;
Replace the numbers 1, 2, and 3 with your "alternative start" coordinates.
 

Latest Threads

Latest Profile Posts

After a 3 year hiatus, decided to get back into game making. Progress so far...
I was thinking about how funny it'd be if there was an 80's action movie parody based off of RPG Maker starring a protagonist called Sergeant John RPGMaker.
Come and join me shortly for Throwback Thursday, where I'll be continuing with Grim Fandango! https://twitch.tv/trihanstreams
Hi guys do yall like the new way im going to do battle sprites? It dosnt actoully matter what you think im doing it this way anyway but uhm hey1!!!!!!!!!!!!!!!1!!!!11111!!!
Painfull Spirite.png
Papercut bat i think.png

Forum statistics

Threads
134,880
Messages
1,251,553
Members
177,685
Latest member
KingChris825
Top