Could do with some variable advice.

Joined
Dec 17, 2016
Messages
374
Reaction score
1,954
First Language
English
Primarily Uses
RMMV
So I had to leave this for a couple of days because it was giving me a headache. To start off, I'm making an evented title screen using hime's plugin, and what I'm trying to accomplish can be seen in pictures 1 and 2, basically, when a save file is present, all the options including continue adventure are available, and when a save file isn't present, the continue option is tinted grey and isn't available. To try and accomplish this I've created a conditional branch in a common event that you can see in picture 3 which uses the if DataManager.isAnySavefileExists() to change a variable depending on if the save file exists or not, if one exists, value = 1, if not then 0. Then in the next picture, I've called the common event and created a conditional branch that says if a save file isn't present, turn switch 1 on, and if it is present, turn switch 2 on. If no save file is present, switch one activates which tints the continue option grey and in the next picture you can see I've made the option unavailable. If a save file is present, the other switch activates which makes continue available. The problem is that regardless of whether a save file is present or not, the continue option is available and I'm not sure what im doing wrong, any help is appreciated.
 

Attachments

  • Yo Erie2.png
    Yo Erie2.png
    877 KB · Views: 8
  • Yo Erie3.png
    Yo Erie3.png
    873.4 KB · Views: 8
  • Yo Erie4.png
    Yo Erie4.png
    84.3 KB · Views: 11
  • Yo Erie7.png
    Yo Erie7.png
    305.9 KB · Views: 11
  • Yo Erie5.png
    Yo Erie5.png
    211.6 KB · Views: 10
  • Yo Erie6.png
    Yo Erie6.png
    201.7 KB · Views: 9

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
711
Reaction score
229
First Language
English
Primarily Uses
The biggest problem with your title screen is the fact that using switches and variables is hard with using a Perstiant Switches & Variables plugin. It will allow you to make variables and switches that work between multiple saves. As to why to use this method, this is because when starting a new game, the variables and switches are reset. This inculdes Himeworks Pre-Title Events, the trick with this is to do what Echo607 did in her video that dealt with making a custom tile screen.

So here's what you need:
First get this plugin by Himeworks.
Make a switch called " SaveFileExists"
Then in your title event, make two separate pages, one where the "continue" option is grey out and the other where it is not. In the one where the
"continue" option is not greyed out make sure that one of the page conditons is " SaveFileExist".

Now make a common event:
It's going to have a variable equal to the save count. It's then going to have a conditional branch checking if the variable is greater then or equal to 1. Under the control branch, turn on "SaveFileExists" and turn off the switch that makes this a parallel process. Make sure it's set up to be a parallel process.

Now at the beginning of game make sure to turn on the switch that turns on the parallel process event.

Your current event should looked like this:
Screenshot (24).png
 

Latest Threads

Latest Posts

Latest Profile Posts

What Reviews say on RPG Maker MZ?
Looking back at some sketches, and game design documents on my PC dated summer of 2015. I started development with the release of MZ, but in 2015, I felt a strong desire to make a game out of the blue. I remember feeling sad for no apparent reason, and all these ideas rushed into my head. Now that I think about it, since that day, everything has become easier to do on my PC . . . it’s very creepy.
Everything's going to be alright! We're all in this together. <3
Aaaaannd published my game's tech demo. :D

Feel free to download and play it. And give feedback!
Hey everyone, we know that the edit bar is missing. We're working on it. You can talk about it in the announcement here: https://forums.rpgmakerweb.com/index.php?threads/forum-errors-missing-edit-bar-etc.132715/

Forum statistics

Threads
107,800
Messages
1,032,284
Members
139,942
Latest member
Safiplasm
Top