Save-Point
Skip Title Once - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Skip Title Once (/thread-8886.html)



Skip Title Once - kyonides - 01-07-2024

Skip Title Once
XP + VX + ACE

by Kyonides

Introduction

This simple scriptlet was created after a fellow forumer had posted a thread asking for such a thing to be published here.

I don't recall any other script at this point so I'm simply posting it here.

This doesn't mean that there are not similar scripts on the web, guys. Happy with a sweat

XP Version
Code:
# * Skip Title Once XP * #
#  Plug & Play Script
#  Scripter : Kyonides Arkanthes
#  2024-01-06

class Scene_Title
  SAVE_FILENAME_FORMAT = "Save*.rxdata"
  alias :kyon_skip_title_once_scn_ttl_main :main
  def main
    if $BTEST or Dir[SAVE_FILENAME_FORMAT].any?
      kyon_skip_title_once_scn_ttl_main
    else
      goto_first_map
    end
  end

  def goto_first_map
    load_database
    command_first_game
    Graphics.freeze
  end

  def load_database
    $data_actors        = load_data("Data/Actors.rxdata")
    $data_classes      = load_data("Data/Classes.rxdata")
    $data_skills        = load_data("Data/Skills.rxdata")
    $data_items        = load_data("Data/Items.rxdata")
    $data_weapons      = load_data("Data/Weapons.rxdata")
    $data_armors        = load_data("Data/Armors.rxdata")
    $data_enemies      = load_data("Data/Enemies.rxdata")
    $data_troops        = load_data("Data/Troops.rxdata")
    $data_states        = load_data("Data/States.rxdata")
    $data_animations    = load_data("Data/Animations.rxdata")
    $data_tilesets      = load_data("Data/Tilesets.rxdata")
    $data_common_events = load_data("Data/CommonEvents.rxdata")
    $data_system        = load_data("Data/System.rxdata")
  end

  def command_first_game
    Graphics.frame_count = 0
    $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables    = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party        = Game_Party.new
    $game_troop        = Game_Troop.new
    $game_map          = Game_Map.new
    $game_player        = Game_Player.new
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    $game_map.autoplay
    $game_map.update
    $scene = Scene_Map.new
  end
end

VX Version
Code:
# * Skip Title Once VX * #
#  Plug & Play Script
#  Scripter : Kyonides Arkanthes
#  2024-01-06

class Scene_Title
  alias :kyon_skip_title_once_scn_ttl_main :main
  def main
    if $BTEST
      battle_test
    else
      check_continue
      @continue_enabled ? super : goto_first_map
    end
  end

  def goto_first_map
    load_database
    create_game_objects
    command_first_game
    Graphics.freeze
  end

  def command_first_game
    confirm_player_location
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $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

VX ACE Version
Code:
# * Skip Title Once ACE * #
#   Plug & Play Script
#   Scripter : Kyonides Arkanthes
#   2024-01-06

module SceneManager
  def self.run
    DataManager.init
    Audio.setup_midi if use_midi?
    @has_save_files = DataManager.save_file_exists?
    unless @has_save_files
      DataManager.setup_new_game
      $game_map.autoplay
    end
    @scene = first_scene_class.new
    @scene.main while @scene
  end

  def self.first_scene_class
    $BTEST ? Scene_Battle : @has_save_files ? Scene_Title : Scene_Map
  end
end

Terms & Conditions

Just grab it and use it as many times as possible. Grinning
That's it! Tongue sticking out
Really, that's all you need to know. Winking