The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: APG on November 08, 2009, 08:43:41 AM

Title: Saving menu
Post by: APG on November 08, 2009, 08:43:41 AM
I'm trying to make a system where if you press "1" the save menu comes up.
How would you do that?
Thanks
Title: Re: Saving menu
Post by: Sirius on November 10, 2009, 02:46:42 AM
You'll need a parallel process in the corner of all of your maps checking if you've pressed the 1 key.

So, make your event, set it to parallel process, and set up a key input process (Page 3). Take a look at this picture, and note that pressing the 1 key sets the variable to 11 (it'll explain why there's a conditional branch set up like that later).

[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg69.imageshack.us%2Fimg69%2F5831%2Fsavemenu1.jpg&hash=f982871120a1e8eae9ceeff883442edcc37b11b7)[/spoiler]

The rest is really simple. Make a conditional branch where the condition is if [whatever variable you saved your key input to] is 11, then open your save menu.

[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg63.imageshack.us%2Fimg63%2F9164%2Fsavemenu2.jpg&hash=ed6a260cff6275b3d73ddc45a1613af41240d941)[/spoiler]
Title: Re: Saving menu
Post by: APG on November 10, 2009, 10:05:46 AM
Thanks!
I figured you could also use common events
Title: Re: Saving menu
Post by: Sirius on November 10, 2009, 11:08:22 PM
Oh yeah, I guess you can. That'd make things easier :P
Title: Re: Saving menu
Post by: Jaffer on December 04, 2009, 02:27:14 PM
I would put a "Wait for Key Press" in that event code.  Since it's parallel process, it won't interfere with your standard movements, but having it parallel process with no wait means you'll have a mean infinitely processing loop.
I'd also make a switch that disables/enables the Ability to save.