Comments

Log in with itch.io to leave a comment.

Hi,
I have a question: I want to add a menu point that allows me to EITHER run a common event OR transfer the player to a different map. I tried javascript calls but the game always crashes. How wouldI go about doing that? Thanks :)

The JS Command would be

$gameTemp.reserveCommonEvent(commonEventId);
this.popScene();

PERFECT! Thanks :)

Hi, I'm curious, can I call a common event in "Js command"? If yes, how do I do it?

(1 edit)

Hi, yes the script call to call a common event is: $gameTemp.reserveCommonEvent(1);

Since common events can't run in the menu scenes by default, you would probably also want to return to the map which you can do by calling: this.popScene();

It worked, thank you very much.

Hello! I am a beginner and I have been playing around with plugins for the first time, including many of yours, but I have been running into an issue with this one: I made a menu command, one for the achievement scene and the ecyclopedia scene, respectively. Yet when I try it out in the playtester, both menu commands take me to whichever command is listed last in the plugin settings (so when I first define the command for the encyclopedia, and after that the one for the achievements, both of the commands in-game take me to the achievements). Could you provide some help on that?

Change the "command symbol" parameter for them so it is unique and not the same for both. Also don't leave it blank if you did that.

Ah, that worked! Thanks a lot for the quick reply

How did you show the professions command on the menu?

Set the command name to Professions, the command symbol to professions, and the JS command to SceneManager.push(CGMZ_Scene_Professions)

Okay thank you.