Free Papyrus Resource: Reusable Fade-to-Black Utility Script
TL;DR: I’m sharing a free Papyrus fade-to-black utility script for Skyrim mod authors and aspiring mod authors. It can be reused in different quests to create clean fade-to-black moments, optionally with a message box and sound effect.
For general SDA/Ashe players: this is mostly a modding resource post, not an update announcement. You’re welcome to read on if you’re curious, but the rest of this gets more technical.
Mod author notes below:
Hey everyone! I wanted to quickly share a Papyrus utility script that has been helpful on my end for both SDA and Ashe.
This post is mainly for mod authors and aspiring mod authors, and I’m making it public/free so anyone can use it as a resource. For everyone else, feel free to ignore this one, or pass it along to someone who might find it useful.
This is a reusable fade-to-black utility. It currently uses the SDA_ prefix, but you can rename it to match whatever naming convention or development prefix you use for your own project.
Fade-to-black sequences can be useful when you want to imply something that would be difficult, awkward, or impossible to portray cleanly in-engine. For example: a private/intimate moment (kissing/feeding), a medical treatment, a ritual, a dream transition (like what Ashe has), a time skip, a transformation, an off-screen fight, a character being moved somewhere, or any scene where showing the exact action would require too much animation or scripting work.
From what I’m aware of, Skyrim does not have a simple dedicated “fade to black and back” utility function built in for this kind of use case, and some of the tutorials I found online were either limited or not quite robust enough for what I needed. So I figured I’d share the version I’ve been using.
To reuse it, attach the script to the quest that needs the fade-to-black functionality. You can reuse the same script across different quests by filling different properties in the Creation Kit. You generally should not need to rename the property names themselves unless you are heavily customizing the script.
The script is free to use and modify, but please credit me if you end up using it in your own project. It does not need to be anything overly formal - a small credit somewhere on your mod page, documentation, or credits section is totally fine.
It also supports optional messagebox stuff as well as an optional sfx, so you can use it for more immersive story beats. For example the screen fades to black, a sound plays when the screen is fully black. Then a message appears, and then the scene fades back in.
Some super brief property and function notes for the Papyrus whiz kids!
FadeToBlackImod - the image space modifier used to fade the screen to black.
FadeToBlackHoldImod - the image space modifier that keeps the screen black.
FadeToBlackBackImod - the image space modifier used to fade the screen back in.
FadeToBlackSFX - optional sound effect that plays once the screen is fully black. Leave this blank if you do not need SFX.
FadeToBlack() - fades to black, optionally plays SFX, optionally shows a message, then holds on black.
FadeBack() - fades back from black.
FadeToBlackAndBack() - convenience function that does the full fade-to-black → hold -> fade-back sequence.
ClearFade() - removes the fade image space modifiers as a safety cleanup.
IsHoldingFade() - returns whether the script currently considers itself to be holding on black.
Example usage from another script:
SDA_FadeToBlackUtility Property FadeUtility Auto
Message Property MyFadeMessage Auto
Function DoMyFadeScene()
if FadeUtility
FadeUtility.FadeToBlackAndBack(MyFadeMessage, Game.GetPlayer(), 2.5, 2.0, 0.0) endif
EndFunction
The second argument is the sound source. If you filled FadeToBlackSFX, that sound will play from that reference once the screen is fully black. If you leave FadeToBlackSFX empty in the Creation Kit, no sound will play.
Small side note: if I end up making enough of these free community resources, I may eventually compile them into a proper Nexus Mods compendium for easier access. Not doing that yet since this is literally the first one, hahaha, but it’s something I’m keeping in mind if this proves useful.
Script attached. Hope this helps!
Marty
Comments (1)
That's pretty cool.