Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Skip Title Screen, Plenty of possibilities!
TheBen
post Aug 17 2011, 05:58 PM
Post #1


Intolerable Noob
Group Icon

Group: Revolutionary
Posts: 344
Type: Developer
RM Skill: Beginner




Title Screen Skipper
TheBen

Abstract
My first posted script. This removes the title screen and instead skips straight to the starting map, which opens up a plethora of opportunities for the event-savvy designer.
Also, if a save file is present, then the File screen will open up to let the player choose a save file.

Scripter's Note

The latest version of the script was designed so that you could access the Title Screen if you wanted to. Just use the script call
CODE
$scene = Scene_Title.new(false)

to access the title screen.

Le Script
Here it is. Just paste it in below "Materials" and above "Main".
CODE
class Scene_Title < Scene_Base
  @@first_time = true #Used to fix a Save Screen situation in which you
  #couldn't get the new game option
  
  def initialize(skiptitle=true)
    @skiptitle = skiptitle #Whether or not to skip to the map
  end
  
  def main
    if $BTEST
      battle_test
    elsif @skiptitle
      skip_to_map
    else
      super
    end
  end
  
  #Skip directly to map screen, sans passing GO and collecting 200 bucks
  def skip_to_map
    load_database                     # Load database
    create_game_objects               # Create game objects
    check_continue                    # Determine if continue is enabled
    if @continue_enabled and @@first_time  #Save Screen Processing
      @@first_time = false
      $scene = Scene_File.new(false, true, false)
    else
      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

Useful Notes
As I said before, you should delete Scene_Title before putting this script in.
Also, the "To Title" command in the Menu now does nothing more than reset the game - you might want to change the name of the command to "Reset" or just use this bonus script.
CODE
class Scene_End < Scene_Base
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#  Remove "To Title" Command | TheBen V1.0
#
#  Rewrites Scene_End so that the "To Title" option isn't available.
#  This isn't strictly necessary for Skip Title Screen to work, but you need
#  to change the "to title" vocab to something like "Reset".
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    update_menu_background
    @command_window.update
    if Input.trigger?(Input::B)
      Sound.play_cancel
      return_scene
    elsif Input.trigger?(Input::C)
      case @command_window.index
      when 0  # Quit
        command_shutdown
      when 1  # Cancel
        command_cancel
      end
    end
  end

  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Vocab::shutdown
    s2 = Vocab::cancel
    @command_window = Window_Command.new(172, [s1, s2])
    @command_window.x = (544 - @command_window.width) / 2
    @command_window.y = (416 - @command_window.height) / 2
    @command_window.openness = 0
  end

  #--------------------------------------------------------------------------
  # * Process When Choosing [To Title] Command (Deleted)
  #--------------------------------------------------------------------------
  def command_to_title
  end
end




This post has been edited by TheBen: Aug 24 2011, 11:10 AM


__________________________
QUOTE
Great people talk about IDEAS
Average people talk about THINGS
Small people talk about OTHER PEOPLE

- A plaque on a BBQ restaurant in VA
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
TheBen
post Aug 22 2011, 03:31 PM
Post #2


Intolerable Noob
Group Icon

Group: Revolutionary
Posts: 344
Type: Developer
RM Skill: Beginner




Um... plenty of ellipses, there... um... alright. I suppose you mean "not totally destroy Scene_Title in the process". So I'm working on that.
Again. (Yes, but what do you mean, exactly?)

So far, I haven't gotten too far with that(except maybe in the field of accepting that I need to put more consideration into writing/posting my scripts). The script is admittedly "not awesome", but I'll do my best to make sure that it becomes at the very least something acceptable.


__________________________
QUOTE
Great people talk about IDEAS
Average people talk about THINGS
Small people talk about OTHER PEOPLE

- A plaque on a BBQ restaurant in VA
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 03:52 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker