Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to clear the screen and pause
- local function clearScreen()
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- end
- -- Function to print the sad face with normal and glitchy effects
- local function printSadFace(normal)
- term.setBackgroundColor(normal and colors.blue or colors.black)
- term.setTextColor(normal and colors.white or colors.red)
- term.clear()
- -- Normal sad face
- if normal then
- print(" ___")
- sleep(0.2)
- print("__ / _/")
- sleep(0.2)
- print("\\/ |/ ")
- sleep(0.2)
- print("__ |\\_ ")
- sleep(0.2)
- print("\\/ \\__\\")
- sleep(0.5)
- else
- -- Glitchy sad face
- for i = 1, 10 do
- term.setBackgroundColor(colors.blue)
- term.setTextColor(i % 2 == 0 and colors.red or colors.white) -- Glitchy text color
- term.clear()
- print(" ___")
- sleep(0.05)
- print("__ / _/")
- sleep(0.05)
- print("\\/ |/ ")
- sleep(0.05)
- print("__ |\\_ ")
- sleep(0.05)
- print("\\/ \\__\\")
- sleep(0.2 + math.random() * 0.3) -- Random delay
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- term.clear()
- end
- end
- end
- -- Function to display the BSOD message with normal, corrupted, and scary effects
- local function printBSODMessage(normal)
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(normal and colors.blue or colors.black)
- term.setTextColor(normal and colors.white or colors.red)
- term.clear()
- -- Normal BSOD message
- if normal then
- print(" ___")
- sleep(0.1)
- print("__ / _/")
- sleep(0.1)
- print("\\/ |/ ")
- sleep(0.1)
- print("__ |\\_ ")
- sleep(0.1)
- print("\\/ \\__\\")
- sleep(1)
- print("")
- print("Your PC ran into a problem and needs to restart.")
- sleep(1)
- print("We're just collecting some error info, and then we'll restart for you.")
- sleep(1)
- print("")
- print("99% complete")
- sleep(1)
- else
- -- Corrupted BSOD message with glitches
- local messages = {
- "Your PC ran into a problem and needs to restart.",
- "We're just collecting some error info, and then we'll restart for you.",
- "",
- "9% complete",
- "29% complete",
- "55% complete",
- "77% complete",
- "99% complete",
- "",
- "For more information about this issue and possible fixes, visit:",
- "https://www.windows.com/stopcode",
- "",
- "If you call a support person, give them this info:",
- "Stop code: CRITICAL_PROCESS_DIED"
- }
- for i, message in ipairs(messages) do
- -- Randomly set colors and introduce artifacts
- term.setBackgroundColor(math.random(2) == 1 and colors.blue or colors.black)
- term.setTextColor(math.random(2) == 1 and colors.white or colors.red)
- term.clear()
- -- Add random artifacts to the text
- if math.random() > 0.8 then
- message = message .. " " .. string.char(math.random(32, 126)) -- Add random characters
- end
- print(message)
- sleep(0.2 + math.random() * 0.5) -- Unpredictable delay
- end
- -- Intense glitchy screen effect
- for i = 1, 10 do
- term.setBackgroundColor(math.random(2) == 1 and colors.blue or colors.black)
- term.setTextColor(math.random(2) == 1 and colors.white or colors.red)
- term.clear()
- sleep(0.05 + math.random() * 0.1) -- Rapid flickering
- end
- end
- end
- -- Function to display the final normal BSOD with a disturbing twist and flickering effect
- local function printFinalNormalBSODWithFlicker()
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- term.clear()
- -- Display a normal BSOD message
- print(" ___")
- sleep(0.1)
- print("__ / _/")
- sleep(0.1)
- print("\\/ |/ ")
- sleep(0.1)
- print("__ |\\_ ")
- sleep(0.1)
- print("\\/ \\__\\")
- sleep(1)
- print("")
- print("Your PC ran into a problem and needs to restart.")
- sleep(1)
- print("We're just collecting some error info, and then we'll restart for you.")
- sleep(1)
- print("")
- print("99% complete")
- sleep(1)
- -- Display the final message normally
- print("")
- print("For more information about this issue and possible fixes, visit:")
- print("https://www.windows.com/stopcode")
- print("")
- print("If you call a support person, give them this info:")
- print("Stop code: CRITICAL_PROCESS_DIED")
- -- Short pause before the twist
- sleep(2)
- -- Final flickering effect with disturbing message
- for i = 1, 30 do
- term.setBackgroundColor(i % 2 == 0 and colors.red or colors.black)
- term.setTextColor(colors.white)
- term.clear()
- print("UR COMPUTER IS NOW UNDER MY CONTROL")
- sleep(0.1) -- Short flickering interval
- end
- -- Add additional disturbing messages
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- term.clear()
- print("ERROR: UNABLE TO RESTART")
- sleep(1)
- print("SYSTEM CORRUPTION DETECTED")
- sleep(1)
- print("CONTACT SUPPORT IMMEDIATELY")
- sleep(1)
- print("WARNING: MALICIOUS SOFTWARE DETECTED")
- sleep(1)
- print("SECURITY BREACH: ACTIVATING LOCKDOWN")
- sleep(1)
- print("ALL COMMUNICATIONS MONITORED")
- sleep(1)
- print("YOU ARE BEING WATCHED")
- sleep(1)
- print("SEND HELP... IF YOU CAN")
- -- Reboot the ComputerCraft computer
- sleep(5)
- os.reboot()
- end
- -- Start normal, increase scare, return to normal, and end with a twist
- clearScreen()
- sleep(1) -- Black screen delay
- -- Normal start
- printSadFace(true)
- printBSODMessage(true)
- -- Increasingly scary
- sleep(1)
- printSadFace(false)
- printBSODMessage(false)
- -- Return to normal
- sleep(1)
- printSadFace(true)
- printFinalNormalBSODWithFlicker()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement