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.