Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================#
- # RPG MAKER SCREEN OF DEATH #
- #==============================================================================#
- # Author: Rikifive #
- # For: RPGMAKER VX ACE #
- # Version: 1.1 #
- #------------------------------------------------------------------------------#
- # 2015-11-05 -> Version 1.1 #
- # - Forces fullscreen! #GETSHREKT #
- # - Heavier explosion and other effects #
- # - Stops BGM and BGS upon activating #
- # 2015-11-03 -> Version 1 #
- # - Release #
- #------------------------------------------------------------------------------#
- # DESCRIPTION #
- #------------------------------------------------------------------------------#
- # This script adds a scene, where your game gets shrekt. #
- #------------------------------------------------------------------------------#
- # USAGE #
- #------------------------------------------------------------------------------#
- # Use this script call to make your game get shrekt. #
- # SceneManager.call(Scene_BSOD) #
- #==============================================================================#
- # /!\ WARNING! #
- #------------------------------------------------------------------------------#
- # Running this scene will FREEZE your game. ALT + F4 will not work as well as #
- # other combinations. It's not possible to minimalize the game, though pressing#
- # random buttons still can do something outside like running programs from #
- # menu start. However, you're still able to run 'Task Manager' properly #
- # (CTRL + ALT + DELETE) and close the game from there. #
- # I'M NOT RESPONSIBLE FOR ANY POTENTIAL DAMAGE CAUSED BY THIS SCRIPT. #
- # YOU'RE DOING EVERYTHING ON YOUR OWN RISK. #
- # However, if there are more problems than expected, please report that. #
- #==============================================================================#
- #==============================================================================#
- # SCENE #
- #==============================================================================#
- module Graphics
- GetForegroundWindow = Win32API.new('user32', 'GetForegroundWindow', 'V', 'L')
- GetWindowLong = Win32API.new('user32', 'GetWindowLong', 'LI', 'L')
- def self.fullscreen?
- GetWindowLong.call(GetForegroundWindow.call, -16) & 0x00800000 == 0
- end
- end
- User32DLL = DL.dlopen('user32')
- User32DLL__keybd_event = DL::CFunc.new(User32DLL.sym('keybd_event'), DL::TYPE_VOID, 'keybd_event', :stdcall)
- class Scene_BSOD < Scene_Base
- def start
- initialize_BSOD
- end
- def initialize_BSOD
- RPG::BGM.fade (1)
- RPG::BGS.fade (1)
- @shrekt = false
- @timer = 10
- RPG::SE.new("Fire9",100,50).play
- RPG::SE.new("Fire9",100,60).play
- RPG::SE.new("Fire9",100,70).play
- RPG::SE.new("Fire9",100,80).play
- RPG::SE.new("Fire9",100,90).play
- RPG::SE.new("Fire9",100,100).play
- RPG::SE.new("Fire9",100,110).play
- RPG::SE.new("Fire9",100,120).play
- RPG::SE.new("Fire9",100,130).play
- RPG::SE.new("Fire9",100,140).play
- RPG::SE.new("Fire9",100,150).play
- if !Graphics.fullscreen?
- User32DLL__keybd_event.call([0xA4, 0, 0, 0])
- User32DLL__keybd_event.call([0x0D, 0, 0, 0])
- User32DLL__keybd_event.call([0x0D, 0, 0x0002, 0])
- User32DLL__keybd_event.call([0xA4, 0, 0x0002, 0])
- end
- end
- def update
- @timer -= 1 if !@shrekt
- if @timer == 0 && !@shrekt
- @shrekt = true
- RPG::SE.new("Sheep",100,100).play
- end
- super if !@shrekt
- end
- end
- # OKAY that's enough of that. It will be enough to crash your game. (°͜ʖ°)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement