About:
This is a script for a broken transformer that leaks radiation to the surrounding area as well as controlling the lighting for multiple rooms.
What is interesting here are the various possiblities:
the radiation leak can be fixed but the lights remain off
the lights are turned on but the radiation leak is still active
both the lights and radiation leak can be fixed
The bit at the beginning prevents the message box from appearing if the player is in combat. There’s also a little bit of production added here. When the lights are being changed over the screen does a fade.