Save-Point
Skip Title Once XP - 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)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Skip Title Once XP (/thread-8886.html)



Skip Title Once XP - kyonides - 01-07-2024

Skip Title Once XP

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

The Script
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

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