Unlock Menu Options Post-Game

Ah I see! o.o interesting how that works. 

No worries if it doesn't get done! Cheers~ ^.^

-Avalon
Hey guys!  Sorry for the delay in replying here - I wanted to make sure I had it working specifically for a boolean variable like "New Game Plus is Available" and that actually ran me into a bit of trouble.  But I finally got it wrapped up today, and modified the Madoka script to make it compatible.

Well good for you! I find it kind of invigorating after I put one of my ideas into code, and it actually comes together. I'm glad that you've had some success! May you have many more in the near future! 

If you wouldn't mind sending me a copy, I'd really like to see what you have done. Seeing other people's work has always been an interest of mine. I like to see how different people go about achieving similar results, and your script sounds like it would be incredibly useful. Quick question: does it work with the Madoka Title Screen script, as mentioned in the OP?

Anyways, keep up the great work!

@Ava

...

Anyways, I'll just say this as bluntly as I can. If you find another script that suits your needs that you would rather use, I want you to use it. It could be for any reason, and I won't be offended in the slightest. The biggest reason that I'm here was because I wanted to see if I could write some code to do exactly what you described in your post. I'm satisfied with my work, whether it gets used or not, so I cannot complain,  😉  
I appreciate you being so kind about this!  I also appreciate you pointing out that Avalon needed compatibility with Madoka, as it's something I originally missed.

No problem, I'll send you a copy of the script.

Hello Wavelength!
Thanks for the extra help, although the work you're describing reminds me of Yanfly's Newgame + script. While the features do sound useful, my goal for this new menu option is not to carry over any extra data (such as stats, levels, or items) but to be an unlocked main menu option that will take the player to a screen (in this case a map though!) where they can input a password to take them (or Transfer to yet another new map) to a new "mini story"

...

 

In this case would like to try your script @Wavelength, and see if it would work!
A New Game Plus is one type of feature that could be implemented using my script, but it can just as easily be used to add an extra menu-accessible feature like a Bonus Scene.  It sounded to me like what you needed most was a way to determine whether this Extra Feature is available, and change the options on the Main Menu accordingly.  My "Cross-File Data" script allows you to do exactly that.  Hopefully I understood you correctly 🙂

The script provides everything you need to add a separate "Extra Features Available" variable to your save data, and to evaluate all Save files in the game's folder to determine whether any of them have "EF Available" set to True.  If any of them do, the command will automatically be added to the title screen's command window.

The modification to the Madoka Script reworks the Selection logic (so that it cycles based on the size of the @commands array rather than assuming a size of three commands) and adds a fourth command for "EF Available" only if a save file is detected where the "EF Available" variable is set to True.

I'll send it over ASAP!  Definitely let me know if it gives you any problems - but I did some testing and it looks good from here.

What you will need to provide on your own (besides a "Command3" graphic) is the actual game processing for the New Game Plus command.  It sounds like you already have that, based on what you've managed to do with Typhon's script.

Since the Save files are being automatically evaluated for data about what you have unlocked, you could, in theory, do away with the password system, if you wanted to.

Concerning the location of the menu options (Being before the "Game Over" option)...
You should be able to do this yourself without too much trouble.

In the "create commands" section of the Madoka script, it loops "for i in 0..2" to run the logic three times.  I added the logic in an "if" branch one more time after that so that it can create the fourth command if necessary.

Now, if you want the new command NG+ to appear before Exit Game in the cycle, replace the loop with three full pastes of the logic, and insert my entire "if" branch between the second and third pastes.
First off, excellent work Wavelength! I can see that you've worked really hard at what you've accomplished. You truly are amazing.

Ava, I've taken the time to update the script again. You can now pick and choose which order you want the commands to appear in, and you also have the convenience of naming your commands whatever the heck you want, as I changed the way Mog's script created the commands entirely. From my testing, everything works exactly as intended, so long as you put it below Yanfly's save engine,  😉

With what I've done, you can do some pretty interesting things. I don't know how to describe it perfectly, but I've got an array in the script (in the editable region) that tells the script the order the commands should be in, and the script doesn't care how many "commands" are in that array. You could, for example, set the array like this:

Command_Order = [:New, :Bonus, :Exit, :Continue, :New, :Continue, :Exit, :Bonus, :Bonus, :New, :New, :Exit, :Exit]

and the script would cycle the commands exactly like that. Not that you'd need that feature, I just thought I'd let you know.

Of course, the title will NOT display the bonus option if the save files are not marked, as discussed in my previous post, and the script will instead check what the next item in the Command_Order is if there is anything more. As I've said, I've done my share of testing, and it seems to work great.

I don't think I can do much more to this now. I may edit the script a little bit in the near future just to insert comments on my added code, and to move things around just to make it clearer to understand and easier to interpret, but I won't be changing anything as far as functionality is concerned. I really hope that between Wavelength and I, we were able to find a solution to your request.  😉

Cheers!

Original thread: https://forums.rpgmakerweb.com/threads/unlock-menu-options-post-game.33749/