TITLE KILLER by Villain
#2
TITLE KILLER v2

I made second version of my TITLE KILLER.
In this version bug with summons in battle test was fixed.
Now you can use summons in battle test!

here the script:

Code:
#==============================================================================
# ** TITLE KILLER
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# MADE IN RUSSIA
#==============================================================================
#  VILLAIN'S TITLE KILLER
# This is my first script modification
# It's skip the TITLE MENU without DEBUGS and system changes.
# It is like Auto-newgame.
# Replace Scene Title by this skript.
# WARNING!!! This script combines with CTB By Charlie Fleed.
# Feb 17 2010
#==============================================================================

class Scene_Title
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # If battle test
    if $BTEST
      battle_test
      return
    end
    # 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")
    # Make system object
    $game_system = Game_System.new
    # Make title graphic
    @sprite = Sprite.new
    @sprite.bitmap = RPG::Cache.title($data_system.title_name)
    # If continue is enabled, move cursor to "Continue"
    # If disabled, display "Continue" text in gray
      # Play title BGM
    $game_system.bgm_play($data_system.title_bgm)
    # Stop playing ME and BGS
    Audio.me_stop
    Audio.bgs_stop
    # Execute transition
    Graphics.transition
    # SKIP TITLE
    command_new_game
    # Main loop
    # Prepare for transition
    Graphics.freeze
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
   #--------------------------------------------------------------------------
  # * Command: New Game
  #--------------------------------------------------------------------------
  def command_new_game
    # Reset frame count for measuring play time
    Graphics.frame_count = 0
    # Make each type of game object
    $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
    # Set up initial party
    $game_party.setup_starting_members
    # Set up initial map position
    $game_map.setup($data_system.start_map_id)
    # Move player to initial position
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    # Refresh player
    $game_player.refresh
    # Run automatic change for BGM and BGS set with map
    $game_map.autoplay
    # Update map (run parallel process event)
    $game_map.update
    # Switch to map screen
    $scene = Scene_Map.new
  end
  #--------------------------------------------------------------------------
  # * Command: Continue
  #--------------------------------------------------------------------------
  def command_continue
    # If continue is disabled
    unless @continue_enabled
      # Play buzzer SE
      $game_system.se_play($data_system.buzzer_se)
      return
    end
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Switch to load screen
    $scene = Scene_Load.new
  end
  #--------------------------------------------------------------------------
  # * Command: Shutdown
  #--------------------------------------------------------------------------
  def command_shutdown
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Fade out BGM, BGS, and ME
    Audio.bgm_fade(800)
    Audio.bgs_fade(800)
    Audio.me_fade(800)
    # Shutdown
    $scene = nil
  end
  #--------------------------------------------------------------------------
  # * Battle Test
  #--------------------------------------------------------------------------
  def battle_test
    # Load database (for battle test)
    $data_actors        = load_data("Data/BT_Actors.rxdata")
    $data_classes       = load_data("Data/BT_Classes.rxdata")
    $data_skills        = load_data("Data/BT_Skills.rxdata")
    $data_items         = load_data("Data/BT_Items.rxdata")
    $data_weapons       = load_data("Data/BT_Weapons.rxdata")
    $data_armors        = load_data("Data/BT_Armors.rxdata")
    $data_enemies       = load_data("Data/BT_Enemies.rxdata")
    $data_troops        = load_data("Data/BT_Troops.rxdata")
    $data_states        = load_data("Data/BT_States.rxdata")
    $data_animations    = load_data("Data/BT_Animations.rxdata")
    $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
    $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
    $data_system        = load_data("Data/BT_System.rxdata")
    # Reset frame count for measuring play time
    Graphics.frame_count = 0
    # Make each game object
    $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
    
    
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # ======================================================================
    # ===================BATTLE TEST SUMMONS CTB FIx=============================
         # Play title BGM
    $game_system.bgm_play($data_system.title_bgm)
    # Stop playing ME and BGS
    Audio.me_stop
    Audio.bgs_stop
    # Execute transition
    Graphics.transition
    # SKIP TITLE
    command_new_game

    # ========================================================================
    
    # Set up party for battle test
    $game_party.setup_battle_test_members
    # Set troop ID, can escape flag, and battleback
    $game_temp.battle_troop_id = $data_system.test_troop_id
    $game_temp.battle_can_escape = true
    $game_map.battleback_name = $data_system.battleback_name
    # Play battle start SE
    $game_system.se_play($data_system.battle_start_se)
    # Play battle BGM
    $game_system.bgm_play($game_system.battle_bgm)
    # Switch to battle screen
    $scene = Scene_Battle.new
  end
end
Reply }


Messages In This Thread
TITLE KILLER by Villain - by Villain - 02-17-2010, 11:54 AM
(XP)TITLE KILLER by Villain - by Villain - 02-17-2010, 05:13 PM
(XP)TITLE KILLER by Villain - by Agckuu_Coceg - 02-18-2010, 07:02 AM
(XP)TITLE KILLER by Villain - by Villain - 02-18-2010, 08:44 AM
(XP)TITLE KILLER by Villain - by Avatosius - 03-04-2010, 04:46 PM
(XP)TITLE KILLER by Villain - by Villain - 03-04-2010, 05:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Skip Title Once XP kyonides 0 1,033 01-07-2024, 01:26 AM
Last Post: kyonides
   Title Skip for Lycan ABS JayRay 3 7,610 04-21-2014, 01:55 PM
Last Post: MetalRenard
   Xenres' Title Skip Kirito 0 7,207 11-25-2010, 05:59 AM
Last Post: Kirito
   Pre-title maps deValdr 3 10,437 04-22-2010, 05:24 PM
Last Post: yamina-chan
   [Unsupported] Title Skip 2 XP PK8 3 9,442 02-17-2010, 12:01 PM
Last Post: Villain
   [Unsupported] Title Skip 1 PK8 2 6,967 09-15-2009, 10:44 PM
Last Post: DerVVulfman
   Title Screen Edit ParaDog 0 4,431 03-04-2008, 05:10 AM
Last Post: ParaDog
   Paradog's Custom Title Trickster 0 4,872 03-02-2008, 06:21 AM
Last Post: Trickster



Users browsing this thread: 1 Guest(s)