The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: samfortunato on July 22, 2011, 02:18:54 AM

Title: [Resolved] [RMVX] Save Point Event Help
Post by: samfortunato on July 22, 2011, 02:18:54 AM
Ok, I'm trying to make a simple 'saving' event where the player hits the S key (Y button in RMVX), gets warped to a map, gets asked to save, and then warps back to where the player was. But instead, what keeps happening is the player gets warped to the map, shows the option of saving, and then nothing happens. Then when you hit the S key (Y button) again it runs the event again, only this time it works, but it warps you back to the save map instead of a map ingame because thats the location it now memorized. I have two common events and one regular auto start event on the map.

(first event) The Auto-Start one is this:
Code: [Select]
Control Switches: [0021 Save] = ON
Erase Event

(second event) Then that triggers a common parallel process event which is this:
Code: [Select]
Conditional Brach Y Button is Pressed
>Call Common Event: Save
>Control Switches [0021 Save]= OFF

(third event) Then the common event that is called, 'Save', is this:
Code: [Select]
Variable [0001] Player Map X
Variable [0002] Player Map Y
Variable [0003] Player Map ID
Set Move Route Player
>Graphic (None)
Transfer Player [003 Save]
Text
:Would you like to save?
Show choices Yes No
:When Yes
>Open Save Screen
>
When No
>
Branch End
Transfer Player: [by variables remembered earlier in the code
Set Move Route Player
>Graphic 'Actor'
Control Switches [0021] Save = ON

I'm not an expert at this program, but by the looks of it, it should work, or am I just being stupid? Whats wrong with this? Thanks a lot for your help.
Title: Re: [RMVX] Save Point Event Help
Post by: pacdiggity on July 22, 2011, 07:54:09 AM
Well, I don't know about your actual problem, but I have a tip that will make stuff so much easier.
Instead of changing the actor's graphic, you can just go to page 2 in event commands and select Change Transparency. Then set it to transparent. So much easier.
Title: Re: [RMVX] Save Point Event Help
Post by: samfortunato on July 22, 2011, 07:52:04 PM
Ah cool, didn't know about that. Thanks.

But this still doesnt work, haha. anyone got any ideas?
Title: Re: [RMVX] Save Point Event Help
Post by: Countdown on July 22, 2011, 07:59:02 PM
I just have my screen fade out and use one common event for the whole deal. Works great and is super simple.
Title: Re: [RMVX] Save Point Event Help
Post by: Lunarea on July 22, 2011, 08:14:03 PM
I've made a project file for you so you can take a look and experiment:
http://www.mediafire.com/file/ptnl1ek3n70l50k/Save.exe

You were close to getting it right, but needed just a few tweaks. I also switched your conditional branch to use
Input.trigger?(Input::Y) It's just a more precise way of doing it, as "button is pressed" has occasionally acted funny for me. Using the script command means you just push the button once, but don't have to hold it down.

Let me know if that helps or if you have any questions.
Title: Re: [RMVX] Save Point Event Help
Post by: samfortunato on July 23, 2011, 12:52:45 AM
ah cool, thanks so much it works! yeah, so i had to split that common event into two then, ok. if anyone knows why the first way didnt work, id really like to know, im a bit curious haha.

but thanks so much, really appreciate it!