I know this is possible through plugins when using the title screen, but is it possible when using an evented title screenthrough the skip title screen plugin to make the continue option unavailable or inactive when no save file is present. Example below.
Deactivating the continue option.
RPG Maker MV SupportIt is very much possible. When you have your conditional branches which check for button input, inside the one that checks if the continue button is highlighted, put "DataManager.isAnySavefileExists()" inside the script section of a conditional branch. Then, if you want something to happen if no save files are present, you can add an else branch. Otherwise, just leave it as is.
Can I ask, does that script need to be written as is with the quotation marks because I can't seem to get it to work?
Okay hope I'm not breaking any double posting rules here, but I think I need to clarify some things up to help get an explanation.
So as I said in my first post I'm trying to get it so that when there is no save file present the continue option becomes unavailable. How I've tried to accomplish this is by as was suggested using the DataManager.isAnySavefileExists() in a conditional branch(picture 3). What is supposed to happen is that if there isn't a save file present, a switch activates which makes it so the player can't access the continue option(picture 4), and the continue picture becomes greyish(picture 2). When a save file is present, a different switch(picture 5) is to activate which makes the continue option available and accessible. Problem is the script isn't working, so I'm not sure what I'm doing wrong, any help is appreciated. This is an evented title screen using hime's pre title events plugin.
So as I said in my first post I'm trying to get it so that when there is no save file present the continue option becomes unavailable. How I've tried to accomplish this is by as was suggested using the DataManager.isAnySavefileExists() in a conditional branch(picture 3). What is supposed to happen is that if there isn't a save file present, a switch activates which makes it so the player can't access the continue option(picture 4), and the continue picture becomes greyish(picture 2). When a save file is present, a different switch(picture 5) is to activate which makes the continue option available and accessible. Problem is the script isn't working, so I'm not sure what I'm doing wrong, any help is appreciated. This is an evented title screen using hime's pre title events plugin.
The issue is you have two contradicting conditional branches. You're telling it to show both the normal continue and the grayed out one, so it doesn't know which to do. So wherever you have your conditional branch checking when to show the continue button, it should look like this:
If menu = (whatever option number continue is)
If DataManager.isAnySavefileExists()
Show picture: Continue 1
Else
Show picture: Continue 2
End
End
That should work unless the script call I found is entirely wrong.
If menu = (whatever option number continue is)
If DataManager.isAnySavefileExists()
Show picture: Continue 1
Else
Show picture: Continue 2
End
End
That should work unless the script call I found is entirely wrong.
No it's still not working, here is a screen shot of what im doing now, just incase I'm still doing it wrong. What's more, when the continue option is highlighted, my game lags horrifically.
Define "not working". Is it just that it shows the regular picture or does nothing show at all? In future, remember that in support questions, "It's not working" is not helpful. 😛 The only thing I can think of is the fact that you decided to show your pictures within the script calls instead of before everything was shown, however, a possible way to not use the script calls is to set a variable to contain save count info beforehand so if it equals one or more, show the new picture.
Haha sorry its been a long day with work and I should have gone to bed several hours ago. What i meant was that when I used the DataManager.isAnySavefileExists() script, it still showed the same picture and wouldnt alternate when I had and didnt have a save file. When I didnt have a save file, if I moved over the continue option it would start lagging horribly. When I did have a save file though it didnt lag so the script call is doing something but im not sure what atm. Btw thanks for taking the time to try and help.
Hi, how would you do what you suggested with the variable to register save counts? Sorry to be a pest, I'm still learning lol.
Not a problem, LOL.
Basically, just go into control variables, go to "Other" and in the dropdown, you should see Save Counts. So then, wherever you have the show picture command for the continue button, put it in a conditional branch checking if the variable is set to 1 or higher. Add an else branch and put your other continue picture in there.
Basically, just go into control variables, go to "Other" and in the dropdown, you should see Save Counts. So then, wherever you have the show picture command for the continue button, put it in a conditional branch checking if the variable is set to 1 or higher. Add an else branch and put your other continue picture in there.
okay, im hoping this is the last time I have to pester you...It still doesn't seem to be working but I'm sure I've just done something wrong, so I'm sending you the pictures of how I've set it up. Right now, its still not showing separate images.
OK, so I'm assuming the gray one isn't its own separate picture. Probably better to set the gray one as a separate picture and then use the conditional branch when you first show the picture.
Yeah i've tried that. I think im going to leave it for now. I think we've exhausted all of the options for now and for whatever reason it still isnt working. Personally I think its something to do with the save count not regestering but I cant say for sure and its starting to give me a headache. Thanks again for your time and sorry for the bother.
Original thread: https://forums.rpgmakerweb.com/threads/deactivating-the-continue-option.83749/