MV [REQ] Option to change white transition to black transition

I realize that not everyone will like it when the fade transition is white, especially if they are playing in the dark or if the black loading screen that sometimes occurs after a white transition is too annoying.

I'd like to be able to have a plugin that will give the player the option to change the screen transition effect on transferring maps from white to black!

I thought there was a plugin for this somewhere and I could have sworn I downloaded it at one point, but I can't seem to find it now. Perhaps it was on a website that no longer exists.

This is for MV, in case you missed it 🙂 Thanks in advance!
Why plugin though?
This could be easily done with a switch and a conditional branch in your transfer player events.
You can ask the player at the beginning of the game what transition they prefer via input choice command.
Why plugin though?
I imagine because it would save the time spent on copying and pasting that into every transfer player event in the game.

On the other hand...it is a matter of copying and pasting, and while it's tedious, it would probably be done by the time someone responded to your forum post 😉

I've never seen another game offer this kind of option, so I suspect anyone who insists on playing in the dark is used to white flashes and screens. But that's just my opinion, I wouldn't try to discourage you from implementing whatever accommodations you think are convenient in your game.

Anyway...copy the below into a text editor. Replace X with the ID of a switch, no leading zeros. If that switch is on, it will make all transfer fades be black regardless of your selection in the editor.

Save it as a *.js file and include as a plugin.

Code:
Scene_Map.prototype.fadeInForTransfer = function() {
    var fadeType = $gamePlayer.fadeType();
    switch (fadeType) {
    case 0: case 1:
        this.startFadeIn(this.fadeSpeed(), $gameSwitches.value(X) ? false : fadeType === 1);
        break;
    }
};

Scene_Map.prototype.fadeOutForTransfer = function() {
    var fadeType = $gamePlayer.fadeType();
    switch (fadeType) {
    case 0: case 1:
        this.startFadeOut(this.fadeSpeed(), $gameSwitches.value(X) ? false : fadeType === 1);
        break;
    }
};
I imagine because it would save the time spent on copying and pasting that into every transfer player event in the game.

On the other hand...it is a matter of copying and pasting, and while it's tedious, it would probably be done by the time someone responded to your forum post 😉

I've never seen another game offer this kind of option, so I suspect anyone who insists on playing in the dark is used to white flashes and screens. But that's just my opinion, I wouldn't try to discourage you from implementing whatever accommodations you think are convenient in your game.

Anyway...copy the below into a text editor. Replace X with the ID of a switch, no leading zeros. If that switch is on, it will make all transfer fades be black regardless of your selection in the editor.

Save it as a *.js file and include as a plugin.

Code:
Scene_Map.prototype.fadeInForTransfer = function() {
    var fadeType = $gamePlayer.fadeType();
    switch (fadeType) {
    case 0: case 1:
        this.startFadeIn(this.fadeSpeed(), $gameSwitches.value(X) ? false : fadeType === 1);
        break;
    }
};

Scene_Map.prototype.fadeOutForTransfer = function() {
    var fadeType = $gamePlayer.fadeType();
    switch (fadeType) {
    case 0: case 1:
        this.startFadeOut(this.fadeSpeed(), $gameSwitches.value(X) ? false : fadeType === 1);
        break;
    }
};
Thanks for the very quick response! It is much appreciated 🙂

The problem with going through every single transition in my game and changing them all to include a conditional branch to determine if a switch is on or off is that I have nearly 500 maps. You can imagine how long it would take to change all of that and find all of the white transitions, compared to the relative ease of seeing if someone knows a way to change it all at once with a little bit of scripting 😉 I'd probably miss a bunch too. What would have taken me a pretty dang long time took someone else less than 2 hours to see this thread, create a little script, and help me out a little bit.

So thank you very much again 😀 it really is a huge time save for me. Even if it didn't save time, it did at least let me allocate that time to something else.

Another reason why someone might want this in plugin form is if they wanted to integrate it into the actual options menu without needing another plugin that lets you add switch toggles to the options menu. Thankfully I already have that though, so that's not necessary.

Original thread: https://forums.rpgmakerweb.com/threads/req-option-to-change-white-transition-to-black-transition.158573/