Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- ╔══════════════════════════════════════════════════════════════════════════════╗
- ║ Developer's Mode Script ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ Version : 1.5 ║
- ║ Author : Companion Wulf ║
- ║ Platforms : RMVX ║
- ║ Release Date : 26 April 2014 ║
- ║ Last Update : 13 April 2014 ║
- ║ Demo Version : N/A ║
- ║ Demo Date : Unreleased ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ ◄ Websites ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ Website : http://rpgmakertimes.info ║
- ║ Main Blog : http://blog.rpgmakertimes.info ║
- ║ Companion Blog : http://rpgmakertimes.blogspot.com ║
- ║ Otherworld : http://projects.rpgmakertimes.info/otherworld ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ DESCRIPTION ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ This script allows you to bypass the Title screen completely ║
- ║ for any number of reasons. This is particularly useful with ║
- ║ developing games where you need to playtest regularly. ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ INSTALLATION ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ Place the script between "Materials" and "Main", but above any ║
- ║ other script that modifies Scene_Menu. ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ INSTRUCTIONS ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ Settings can be changed in the "DevMode" module. ║
- ║ ║
- ║ Place the script between "Materials" and "Main", but above any ║
- ║ other scripts modifying the Title Screen. ║
- ║ ║
- ║ DEVELOPER_MODE is the setting to toggle the script on or off. ║
- ║ If set to "true", it will completely bypass the Title screen ║
- ║ altogether and go straight to the map where the player start ║
- ║ position is set. If set to "false", the Title screen will load ║
- ║ as normal. ║
- ║ ║
- ║ During development (unless you're modifying the Title screen ║
- ║ itself), you can turn "Developer Mode" on and then switch to ║
- ║ off to playtest the game all the way through. Then when the ║
- ║ game is finished, the script can be deleted. Or it can be kept ║
- ║ in if players want to skip past the title and any beginning ║
- ║ cutscenes. ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ DEVELOPMENT NOTES ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ I originally created this during the development of my project ║
- ║ "The Gladiator Project", where it became necessary to playtest ║
- ║ frequently to fine-tune the layouts and positions of items. ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ COMPATIBILITY ISSUES ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ Since this script rewrites Scene_Title, there may be some ║
- ║ compatibility conflicts, usually the "update" method. In this ║
- ║ case, simply contain the added code block in an unless/end con- ║
- ║ dition, making sure that any standalone aliases are before the ║
- ║ "unless". ║
- ║ ║
- ║ As an example: ║
- ║ ║
- ║ def update ║
- ║ alias some_aliased_routine aliased_routine ║
- ║ unless DevMode::DEVELOPER_MODE ║
- ║ # Appended code ║
- ║ end ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ METHODS AFFECTED ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ ● New Methods - None ║
- ║ ● Aliased Methods - None ║
- ║ ● Overwritten Methods ║
- ║ ● Scene_Title: ║
- ║ ○ start ║
- ║ ○ post_start ║
- ║ ○ pre_terminate ║
- ║ ○ update ║
- ║ ○ command_new_game ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ FUTURE UPDATES ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ The next update (bringing it to v1.5) will include optional set- ║
- ║ tings for changing the starting position and XY-coordinates. ║
- ║ ║
- ║ After version 1.5, no future updates are planned. It doesn't ║
- ║ need any, since it does what it's meant to as is. ║
- ║ ║
- ╠══════════════════════════════════════════════════════════════════════════════╣
- ║ ◄ VERSION HISTORY ► ║
- ╟──────────────────────────────────────────────────────────────────────────────╢
- ║ v1.0 (13-Apr-2014) ║
- ║ ● Create/finish script ║
- ║ ║
- ╚══════════════════════════════════════════════════════════════════════════════╝
- =end
- $imported = {} if $imported == nil; $imported["CW-DevMode-v1.5"] = true
- module DevMode
- DEVELOPERS_MODE = false # Toggle "Developer's Mode" on/off (true/false)
- end
- #═══════════════════════════════════════════════════════════════════════════════
- # ■ Scene_Menu
- #═══════════════════════════════════════════════════════════════════════════════
- if DevMode::DEVELOPERS_MODE
- class Scene_Title < Scene_Base
- #───────────────────────────────────────────────────────────────────────────
- # * Start processing
- #───────────────────────────────────────────────────────────────────────────
- def start
- super
- load_database # Load database
- create_game_objects # Create game objects
- end
- #───────────────────────────────────────────────────────────────────────────
- # * Post-Start Processing
- #───────────────────────────────────────────────────────────────────────────
- def post_start
- end
- #───────────────────────────────────────────────────────────────────────────
- # * Pre-termination Processing
- #───────────────────────────────────────────────────────────────────────────
- def pre_terminate
- end
- #───────────────────────────────────────────────────────────────────────────
- # * Termination Processing
- #───────────────────────────────────────────────────────────────────────────
- def terminate
- end
- #───────────────────────────────────────────────────────────────────────────
- # * Frame Update
- #───────────────────────────────────────────────────────────────────────────
- def update
- command_new_game
- end
- #───────────────────────────────────────────────────────────────────────────
- # * Command: New Game
- #───────────────────────────────────────────────────────────────────────────
- def command_new_game
- confirm_player_location
- $game_party.setup_starting_members # Initial party
- $game_map.setup($data_system.start_map_id) # Initial map position
- $game_player.moveto($data_system.start_x, $data_system.start_y)
- $game_player.refresh
- $scene = Scene_Map.new
- Graphics.frame_count = 0
- $game_map.autoplay
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement