I'm trying to learn how to create new menus, in the sense of "select whether this character is male or female." But I'm having trouble finding a tutorial for it because my searches keep turning up tutorials for changing the look/layout of existing menus instead. I've also tried looking at code, but there's a lot going on in there at once and there's no real help from comments.
Does anyone know of a good tutorial for this sort of thing, or a simple example plugin with helpful comments?
You don't need a plugin. Just a series of Text dialogues with Choices afterwards, and either set switches or run commands to change your actors based on the results.
If you want more specific help, you'll need to indicate how many choices you're going to give the player (are you JUST letting them choose gender, or are you letting them choose class or other things as well?)
And don't make the mistake of setting up one actor in the database for every possible combination. Have one actor for each party member, and use the Change Actor ... commands to alter them based on the player's choices.
So are you asking for help writing your plugin then? You didn't mention that in your OP, and you didn't post in the Javascript Support forum.
No, I'm asking for a simple demonstration of how to set up a new menu in code. A plugin might do if the documentation explains what's going on, but a text/video tutorial is also fine. Just something better than trying to trace my way through a bunch of uncommented code.
EDIT: Actually, now that I think about it that DOES sound like what you meant. Which means this is in the wrong forum. Sorry.
Moved to: Javascript Plugin Support
It helps me understand the basic structure, yes. Thanks. But when I tried to test your code it didn't work. Using "SceneManager._scene.addWindow(customMenu());" or "SceneManager.push(customMenuScene);" gives an error saying that customMenu/customMenuScene isn't defined.
EDIT: Before you ask: I made a plugin out of it and set up an event to run the command when activated. Yes, the plugin was loaded without errors.
Did you change any of the code? Your sample project works, but it looks like you just did the same thing I did so I don't understand why mine crashed.
I copied the code from my initial post and put that into a project with minimum assets to keep the download small. Dunno why it didn't work right off the bat for you.
Oh, well. Gremlins in the code, I guess.
Anyway, I should be able to figure it out from here. Thanks, that was a big help.