Automatically Fade-in Screen upon loading a save?

Hi. First time posting in this section of the forums.. I think? Been here a long time, who knows. I saw the rule regarding scripts. However, the script involved is a very minor side note, so if that is a problem, I will gladly remove that section of the question. 🙂

Anyway! I currently have an issue with how my save system works. Currently, each save spot only works once, unless you use a particular item to "recharge" it, so to speak. When you use this save spot, there is a flash of light, followed by everything fading to black. The music kicks in, and then the save screen appears. Very atmospheric and nice. The issue is, though, that you're saving *while* the fade-out command is in effect. Upon loading said save, everything is completely black, because it's still faded out. And, the rest of the save event that would handle the screen fading in and putting everything back to normal, is not activated, because events that are running mid-save do not appear to continue after loading that save.

Here's the common event:

Game_Example 01.png


Is there a simple way to tell the game to run this common event or something upon loading a save, so the player isn't trapped in darkness? My current idea is to activate the "just saved" switch upon saving. When booting the save, en event checks for this switch and activates the common event for saving, then simply jumps labels to after the save screen part of the common event. However, this isn't working, because, it depends on a second switch called "loaded" to be on so it doesn't activate immediately. So, again, is there a way to do this? Even just making it so this switch is turned on when loading any save would work. Also there's no way to check if the player actually saved instead of just hitting Escape, so the switch can be on needlessly... Also also, the "just saved" switch uses a small script to stay on even though the switch is turned on after saving. It's theLeech's Global Data script. Hope that's okay to mention. I'm unsure what to do about if the player saves- making "just saved" on, and then starts a new game. I could have the new game check if the switch is on and then turn it off, but then you'd be unable to properly load any saves... Hmm.

Sorry is this seems somewhat stupid, since I feel like there must be a cleaner solution to this, but I've been thinking about this for a long time and this is the only thing I have in mind.
obnoxious but pretty easy, unless there are strange things. if your saves are in particular areas only/world map, toss in a parallel event to fade in screen, unless you have specific colors (night, etc) to keep track of. them, make it check for if that color scheme is required before fade in and do a black, fade in, change to color scheme. (i think that order keeps the screen black until you do color change)

something like that should work. that's how i get poison damage to work, since apparently i can't get it to do the proper damage on world map :|
If there was a parallel event constantly "fade-in-screen"ing, wouldn't that mess up the saving sequence? As in, when the common event tells the screen to fade out, this event would immediately tell it to fade back in? Or am I misunderstanding?
shoot, sorry, i'm super terrible at context recently. I'm assuming everyone does things like i do xD

use erase event at the end. it'll only be called once per entrance to the map.
Hah, you're fine. I just ended up inserting a line into Scene_Load telling it to turn on the "loaded" switch on a successful load. Works good so far. I just scrapped the "just saved" switch entirely, due to the issues it could cause. I actually just did all this in the past hour, so I hadn't even had time to edit my post yet. 😛

Original thread: https://forums.rpgmakerweb.com/threads/automatically-fade-in-screen-upon-loading-a-save.144607/