Advertisement
AngryPacman

PAC Skip Title

Jul 29th, 2011
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.49 KB | None | 0 0
  1. #===============================================================================
  2. #
  3. # Pacman Advanced Creative (PAC) Engine - Skip Title
  4. # 4/5/2011
  5. # Type: System
  6. # Installation: Optional value.
  7. # Level: Simple
  8. #
  9. #===============================================================================
  10. #
  11. # Description:
  12. # Don't want your game to have a title screen? Not liking the scene at all?
  13. # Simple solution: paste this script in and set SKIP_TITLE to true.
  14. #
  15. #===============================================================================
  16. #
  17. # Instructions:
  18. # INSTALLATION
  19. # Paste above main, below materials and follow PAC format if applicable. This
  20. # script operates perfectly on its own, but will work with any PAC script and
  21. # many others. Put this as close to the top of the list of custom scripts as
  22. # you possibly can, because it WILL CAUSE INCOMPATIBILITY ERRORS otherwise.
  23. # CONFIGURATION
  24. # Set SKIP_TITLE to true if you don't want the title screen to show, and go
  25. # straight to the opening map. For the purposes of the PAC Engine demo, it is
  26. # set to false.
  27. #
  28. #===============================================================================
  29. #
  30. # EDITING BEGINS AT LINE 35.
  31. #
  32. #===============================================================================
  33.  
  34. module PAC
  35.   module SYSTEM
  36.     SKIP_TITLE = false
  37.   end
  38. end
  39.  
  40. #===============================================================================
  41. #
  42. # This script no longer requires editing. Do not edit anything in this script
  43. # unless you are a compenent scripter. Should you edit without any scripting
  44. # education, it may result in me tutting at you for getting it wrong.
  45. #
  46. #===============================================================================
  47.  
  48. $imported = {} if $imported == nil
  49. $imported["PAC_SkipTitle"] = true
  50.  
  51. #==============================================================================
  52. # ** Scene_Title
  53. #------------------------------------------------------------------------------
  54. #  This class performs the title screen processing.
  55. #==============================================================================
  56.  
  57. if PAC::SYSTEM::SKIP_TITLE            # Check if script is used
  58. class Scene_Title < Scene_Base
  59.   #----------------------------------------------------------------------------
  60.   # rewrite method: main
  61.   #----------------------------------------------------------------------------
  62.   def main
  63.     if $BTEST                         # If battle test
  64.       battle_test                     # Start battle test
  65.     else                              # If normal play
  66.       load_database                   # Load database
  67.       create_game_objects             # Create game objects
  68.       load_first_map                  # Loads first map
  69.     end
  70.   end
  71.   #----------------------------------------------------------------------------
  72.   # new method: load_first_map
  73.   #----------------------------------------------------------------------------
  74.   def load_first_map
  75.     confirm_player_location
  76.     $game_party.setup_starting_members            # Initial party
  77.     $game_map.setup($data_system.start_map_id)    # Initial map position
  78.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  79.     $game_player.refresh
  80.     $scene = Scene_Map.new
  81.     Graphics.frame_count = 0
  82.     $game_map.autoplay
  83.   end
  84. end
  85. end
  86.  
  87. #===============================================================================
  88. #
  89. # END OF SCRIPT
  90. #
  91. #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement