Good morning, people who live in my computer. As you might have guessed, I'm trying to figure out how to run a simple common event from a custom button in the main menu. I'm using Visustella's Main Menu Core but I'm not sure how to make it do what I want it to do.
I added a button to the main menu (easy) by changing the commonEvent1 button JS: Show from return false to return true. I then renamed it. What I want it to do is to close the menu and show a simple text window when selected. I created a Common Event with the appropriate text window, and entered the ID of that event into JS: Run Code with the following string:
None of the other lines in the plugin menu have been changed. Sadly, this does not seem to work, as when the new menu button is selected it simply closes the main menu without any further action. (Well, there is a momentary dip in FPS and the autosave goes off).
So, in summary, I want a button on the main menu to display a simple text box when selected and I'm not sure what to do.
Thanks in advance, now I'm going to finish this delicious muffin. Sadly, I do not have enough muffins to share with the class.
I added a button to the main menu (easy) by changing the commonEvent1 button JS: Show from return false to return true. I then renamed it. What I want it to do is to close the menu and show a simple text window when selected. I created a Common Event with the appropriate text window, and entered the ID of that event into JS: Run Code with the following string:
Code:
SceneManager._scene.commandCommonEvent(125);
None of the other lines in the plugin menu have been changed. Sadly, this does not seem to work, as when the new menu button is selected it simply closes the main menu without any further action. (Well, there is a momentary dip in FPS and the autosave goes off).
So, in summary, I want a button on the main menu to display a simple text box when selected and I'm not sure what to do.
Thanks in advance, now I'm going to finish this delicious muffin. Sadly, I do not have enough muffins to share with the class.



