Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Single Key Shut Down Scriptlet - Version 1.0
- #------------------------------------------------------------------------------
- # Version : 1.0.0
- # Author : Companion Wulf
- # Release Date : 26 April 2014
- # Last Update : 26 April 2014
- # Websites
- # * RPG Maker Times - http://rpgmakertimes.blogspot.com
- # * RMT Companion Blog - http://blog.rpgmakertimes.info
- # * RPG Maker Times Facebook - http://facebook.com/RPGMakerTimes
- #
- #------------------------------------------------------------------------------
- # ** Description
- #------------------------------------------------------------------------------
- # This scriptlet provides a way to shut down the game very quickly, without
- # having to either click on the X to close the window or go through any of the
- # menus to end the game.
- #
- #------------------------------------------------------------------------------
- # ** Instructions
- #------------------------------------------------------------------------------
- # Place the script between "Materials" and "Main".
- #
- #------------------------------------------------------------------------------
- # ** Development Notes
- #------------------------------------------------------------------------------
- # The scriptlet actually developed out of boredom, but I guess it could have its
- # practical uses, such as when playing at work and the boss approaches, you'll
- # likely need a fast, effective method of shutting RPG Maker down.
- #
- #------------------------------------------------------------------------------
- # ** Compatibility Issues
- #------------------------------------------------------------------------------
- # As far as I know there are no compatibility issues.
- #
- #------------------------------------------------------------------------------
- # ** Future Updates
- #------------------------------------------------------------------------------
- # * Auto-Save on Exit
- #==============================================================================
- $imported = {} if $imported == nil; $imported["CW-Sksds-1.0"] = true
- module SKSDS
- # Available keys to use: Z, SHIFT, CTRL, ALT, F5, F6, F7 and F8
- KEYPRESS = Input::CTRL
- end
- #==============================================================================
- # ** Scene_Title
- #==============================================================================
- class Scene_Title < Scene_Base
- #--------------------------------------------------------------------------
- # * Frame Update
- #--------------------------------------------------------------------------
- alias cwkpsds_scnttl_update update
- def update
- cwkpsds_scnttl_update
- if Input.trigger?(SKSDS::KEYPRESS); exit; end
- end
- end
- #==============================================================================
- # ** Scene_Map
- #==============================================================================
- class Scene_Map < Scene_Base
- #--------------------------------------------------------------------------
- # * Frame Update
- #--------------------------------------------------------------------------
- alias cwkpsds_scnmap_update update
- def update
- cwkpsds_scnmap_update
- if Input.trigger?(SKSDS::KEYPRESS); exit; end
- end
- end
- #==============================================================================
- # COPYRIGHT NOTICE
- #==============================================================================
- # This script is copyrighted to Companion Wulf under the provisions of the
- # Digital Millennium Copyright Act (DMCA).
- #
- # However, permission is granted to use the script in non-commercial projects
- # only, provided that credit (to Companion Wulf) is given somewhere in the game.
- # Beginning or end credits are fine (or even in the game itself!).
- #
- # The script cannot be distributed without my express written permission. It is
- # only allowed for distribution (at present) on the following websites:
- #
- # RPG Maker Times - http://rpgmakertimes.blogspot.com
- # RPG Maker Times Companion - http://blog.rpgmakertimes.info
- #
- # If you would like to share the script on a website or other forum, write to me
- # for permission via RPG Maker Times Companion and the likelihood is I'll grant
- # it and add to the list of approved distribution sites.
- #
- # Not understanding the above conditions, or not understanding English, will not
- # exempt you in any way, shape or form.
- #
- # *For use in commercial projects*, I ask that a nominal fee of $3 for non-
- # exclusive rights be paid. This will then go towards domain costs and
- # additional scripts.
- #
- # Please do NOT use that email address for anything other than asking permission
- # or, of course, letting me know about your project. ~Wulf
- #==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement