Difficulty Script

This is my first script, it makes so you can choose the difficulty of the game, to use it delete scene_title and put in this:


Version 1:
Content Hidden Spoiler
  1. #==============================================================================
  2. # ** Scene_Title
  3. #------------------------------------------------------------------------------
  4. #  This class performs title screen processing.
  5. #==============================================================================
  6.  
  7. class Scene_Title
  8.   #--------------------------------------------------------------------------
  9.   # * Main Processing
  10.   #--------------------------------------------------------------------------
  11.   def main
  12.     # If battle test
  13.     if $BTEST
  14.       battle_test
  15.       return
  16.     end
  17.     # Load database
  18.     $data_actors        = load_data("Data/Actors.rxdata")
  19.     $data_classes       = load_data("Data/Classes.rxdata")
  20.     $data_skills        = load_data("Data/Skills.rxdata")
  21.     $data_items         = load_data("Data/Items.rxdata")
  22.     $data_weapons       = load_data("Data/Weapons.rxdata")
  23.     $data_armors        = load_data("Data/Armors.rxdata")
  24.     $data_enemies       = load_data("Data/Enemies.rxdata")
  25.     $data_troops        = load_data("Data/Troops.rxdata")
  26.     $data_states        = load_data("Data/States.rxdata")
  27.     $data_animations    = load_data("Data/Animations.rxdata")
  28.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  29.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  30.     $data_system        = load_data("Data/System.rxdata")
  31.     # Make system object
  32.     $game_system = Game_System.new
  33.     # Make title graphic
  34.     @sprite = Sprite.new
  35.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  36.     # Make command window
  37.     s1 = "New Game"
  38.     s2 = "Continue"
  39.     s3 = "Shutdown"
  40.     @command_window = Window_Command.new(192, [s1, s2, s3])
  41.     @command_window.back_opacity = 160
  42.     @command_window.x = 320 - @command_window.width / 2
  43.     @command_window.y = 288
  44.     # Continue enabled determinant
  45.     # Check if at least one save file exists
  46.     # If enabled, make @continue_enabled true; if disabled, make it false
  47.     @continue_enabled = false
  48.     for i in 0..3
  49.       if FileTest.exist?("Save#{i+1}.rxdata")
  50.         @continue_enabled = true
  51.       end
  52.     end
  53.     # If continue is enabled, move cursor to "Continue"
  54.     # If disabled, display "Continue" text in gray
  55.     if @continue_enabled
  56.       @command_window.index = 1
  57.     else
  58.       @command_window.disable_item(1)
  59.     end
  60.     # Play title BGM
  61.     $game_system.bgm_play($data_system.title_bgm)
  62.     # Stop playing ME and BGS
  63.     Audio.me_stop
  64.     Audio.bgs_stop
  65.     # Execute transition
  66.     Graphics.transition
  67.     # Main loop
  68.     loop do
  69.       # Update game screen
  70.       Graphics.update
  71.       # Update input information
  72.       Input.update
  73.       # Frame update
  74.       update
  75.       # Abort loop if screen is changed
  76.       if $scene != self
  77.         break
  78.       end
  79.     end
  80.     # Prepare for transition
  81.     Graphics.freeze
  82.     # Dispose of command window
  83.     @command_window.dispose
  84.     # Dispose of title graphic
  85.     @sprite.bitmap.dispose
  86.     @sprite.dispose
  87.   end
  88.   #--------------------------------------------------------------------------
  89.   # * Frame Update
  90.   #--------------------------------------------------------------------------
  91.   def update
  92.     # Update command window
  93.     @command_window.update
  94.     # If C button was pressed
  95.     if Input.trigger?(Input::C)
  96.       # Branch by command window cursor position
  97.       case @command_window.index
  98.       when 0  # New game
  99.         command_new_game
  100.       when 1  # Continue
  101.         command_continue
  102.       when 2  # Shutdown
  103.         command_shutdown
  104.       end
  105.     end
  106.   end
  107.   #--------------------------------------------------------------------------
  108.   # * Command: New Game
  109.   #--------------------------------------------------------------------------
  110.   def command_new_game
  111.     # Play decision SE
  112.     $game_system.se_play($data_system.decision_se)
  113.     # Switch to map screen
  114.     $scene = Scene_Difficulty.new
  115.   end
  116.   #--------------------------------------------------------------------------
  117.   # * Command: Continue
  118.   #--------------------------------------------------------------------------
  119.   def command_continue
  120.     # If continue is disabled
  121.     unless @continue_enabled
  122.       # Play buzzer SE
  123.       $game_system.se_play($data_system.buzzer_se)
  124.       return
  125.     end
  126.     # Play decision SE
  127.     $game_system.se_play($data_system.decision_se)
  128.     # Switch to load screen
  129.     $scene = Scene_Load.new
  130.   end
  131.   #--------------------------------------------------------------------------
  132.   # * Command: Shutdown
  133.   #--------------------------------------------------------------------------
  134.   def command_shutdown
  135.     # Play decision SE
  136.     $game_system.se_play($data_system.decision_se)
  137.     # Fade out BGM, BGS, and ME
  138.     Audio.bgm_fade(800)
  139.     Audio.bgs_fade(800)
  140.     Audio.me_fade(800)
  141.     # Shutdown
  142.     $scene = nil
  143.   end
  144.   #--------------------------------------------------------------------------
  145.   # * Battle Test
  146.   #--------------------------------------------------------------------------
  147.   def battle_test
  148.     # Load database (for battle test)
  149.     $data_actors        = load_data("Data/BT_Actors.rxdata")
  150.     $data_classes       = load_data("Data/BT_Classes.rxdata")
  151.     $data_skills        = load_data("Data/BT_Skills.rxdata")
  152.     $data_items         = load_data("Data/BT_Items.rxdata")
  153.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
  154.     $data_armors        = load_data("Data/BT_Armors.rxdata")
  155.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
  156.     $data_troops        = load_data("Data/BT_Troops.rxdata")
  157.     $data_states        = load_data("Data/BT_States.rxdata")
  158.     $data_animations    = load_data("Data/BT_Animations.rxdata")
  159.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
  160.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  161.     $data_system        = load_data("Data/BT_System.rxdata")
  162.     # Reset frame count for measuring play time
  163.     Graphics.frame_count = 0
  164.     # Make each game object
  165.     $game_temp          = Game_Temp.new
  166.     $game_system        = Game_System.new
  167.     $game_switches      = Game_Switches.new
  168.     $game_variables     = Game_Variables.new
  169.     $game_self_switches = Game_SelfSwitches.new
  170.     $game_screen        = Game_Screen.new
  171.     $game_actors        = Game_Actors.new
  172.     $game_party         = Game_Party.new
  173.     $game_troop         = Game_Troop.new
  174.     $game_map           = Game_Map.new
  175.     $game_player        = Game_Player.new
  176.     # Set up party for battle test
  177.     $game_party.setup_battle_test_members
  178.     # Set troop ID, can escape flag, and battleback
  179.     $game_temp.battle_troop_id = $data_system.test_troop_id
  180.     $game_temp.battle_can_escape = true
  181.     $game_map.battleback_name = $data_system.battleback_name
  182.     # Play battle start SE
  183.     $game_system.se_play($data_system.battle_start_se)
  184.     # Play battle BGM
  185.     $game_system.bgm_play($game_system.battle_bgm)
  186.     # Switch to battle screen
  187.     $scene = Scene_Battle.new
  188.   end
  189. end
  190.  
Expand to see the code.

Underneath scene title put in this and name it scene_difficulty:
Content Hidden Spoiler
  1. #==============================================================================
  2. # ** Scene_Difficulty
  3. #------------------------------------------------------------------------------
  4. #  This class performs title screen processing.
  5. #==============================================================================
  6.  
  7. class Scene_Difficulty
  8.   #--------------------------------------------------------------------------
  9.   # * Main Processing
  10.   #--------------------------------------------------------------------------
  11.   def main
  12.     # If battle test
  13.     if $BTEST
  14.       battle_test
  15.       return
  16.     end
  17.     # Load database
  18.     $data_actors        = load_data("Data/Actors.rxdata")
  19.     $data_classes       = load_data("Data/Classes.rxdata")
  20.     $data_skills        = load_data("Data/Skills.rxdata")
  21.     $data_items         = load_data("Data/Items.rxdata")
  22.     $data_weapons       = load_data("Data/Weapons.rxdata")
  23.     $data_armors        = load_data("Data/Armors.rxdata")
  24.     $data_enemies       = load_data("Data/Enemies.rxdata")
  25.     $data_troops        = load_data("Data/Troops.rxdata")
  26.     $data_states        = load_data("Data/States.rxdata")
  27.     $data_animations    = load_data("Data/Animations.rxdata")
  28.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  29.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  30.     $data_system        = load_data("Data/System.rxdata")
  31.     # Make system object
  32.     $game_system = Game_System.new
  33.     # Make title graphic
  34.     @sprite = Sprite.new
  35.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  36.     # Make command window
  37.     s1 = "Easy"
  38.     s2 = "Normal"
  39.     s3 = "Hard"
  40.     @command_window = Window_Command.new(192, [s1, s2, s3])
  41.     @command_window.back_opacity = 160
  42.     @command_window.x = 320 - @command_window.width / 2
  43.     @command_window.y = 288
  44.     # Continue enabled determinant
  45.     # Check if at least one save file exists
  46.     # If enabled, make @continue_enabled true; if disabled, make it false
  47.     @continue_enabled = true
  48.     for i in 0..3
  49.       if FileTest.exist?("Save#{i+1}.rxdata")
  50.         @continue_enabled = true
  51.       end
  52.     end
  53.     # Stop playing ME and BGS
  54.     Audio.me_stop
  55.     Audio.bgs_stop
  56.     # Execute transition
  57.     Graphics.transition
  58.     # Main loop
  59.     loop do
  60.       # Update game screen
  61.       Graphics.update
  62.       # Update input information
  63.       Input.update
  64.       # Frame update
  65.       update
  66.       # Abort loop if screen is changed
  67.       if $scene != self
  68.         break
  69.       end
  70.     end
  71.     # Prepare for transition
  72.     Graphics.freeze
  73.     # Dispose of command window
  74.     @command_window.dispose
  75.     # Dispose of title graphic
  76.     @sprite.bitmap.dispose
  77.     @sprite.dispose
  78.   end
  79.   #--------------------------------------------------------------------------
  80.   # * Frame Update
  81.   #--------------------------------------------------------------------------
  82.   def update
  83.     # Update command window
  84.     @command_window.update
  85.     # If C button was pressed
  86.     if Input.trigger?(Input::C)
  87.       # Branch by command window cursor position
  88.       case @command_window.index
  89.       when 0  # Easy
  90.         command_easy
  91.       when 1  # Normal
  92.         command_normal
  93.       when 2  # Shutdown
  94.         command_hard
  95.       end
  96.     end
  97.   end
  98.   #--------------------------------------------------------------------------
  99.   # * Command: Easy
  100.   #--------------------------------------------------------------------------
  101.   def command_easy
  102.     # Load Data
  103.     $data_actors        = load_data("Data/Easy/Actors.rxdata")
  104.     $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
  105.     # Play decision SE
  106.     $game_system.se_play($data_system.decision_se)
  107.     # Stop BGM
  108.     Audio.bgm_stop
  109.     # Reset frame count for measuring play time
  110.     Graphics.frame_count = 0
  111.     # Make each type of game object
  112.     $game_temp          = Game_Temp.new
  113.     $game_system        = Game_System.new
  114.     $game_switches      = Game_Switches.new
  115.     $game_variables     = Game_Variables.new
  116.     $game_self_switches = Game_SelfSwitches.new
  117.     $game_screen        = Game_Screen.new
  118.     $game_actors        = Game_Actors.new
  119.     $game_party         = Game_Party.new
  120.     $game_troop         = Game_Troop.new
  121.     $game_map           = Game_Map.new
  122.     $game_player        = Game_Player.new
  123.     # Set up initial party
  124.     $game_party.setup_starting_members
  125.     # Set up initial map position
  126.     $game_map.setup($data_system.start_map_id)
  127.     # Move player to initial position
  128.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  129.     # Refresh player
  130.     $game_player.refresh
  131.     # Run automatic change for BGM and BGS set with map
  132.     $game_map.autoplay
  133.     # Update map (run parallel process event)
  134.     $game_map.update
  135.     # Switch to map screen
  136.     $scene = Scene_Map.new
  137.   end
  138.   #--------------------------------------------------------------------------
  139.   # * Command: Normal
  140.   #--------------------------------------------------------------------------
  141.   def command_normal
  142.     # Load Data
  143.     $data_actors        = load_data("Data/Normal/Actors.rxdata")
  144.     $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
  145.     # Play decision SE
  146.     $game_system.se_play($data_system.decision_se)
  147.     # Stop BGM
  148.     Audio.bgm_stop
  149.     # Reset frame count for measuring play time
  150.     Graphics.frame_count = 0
  151.     # Make each type of game object
  152.     $game_temp          = Game_Temp.new
  153.     $game_system        = Game_System.new
  154.     $game_switches      = Game_Switches.new
  155.     $game_variables     = Game_Variables.new
  156.     $game_self_switches = Game_SelfSwitches.new
  157.     $game_screen        = Game_Screen.new
  158.     $game_actors        = Game_Actors.new
  159.     $game_party         = Game_Party.new
  160.     $game_troop         = Game_Troop.new
  161.     $game_map           = Game_Map.new
  162.     $game_player        = Game_Player.new
  163.     # Set up initial party
  164.     $game_party.setup_starting_members
  165.     # Set up initial map position
  166.     $game_map.setup($data_system.start_map_id)
  167.     # Move player to initial position
  168.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  169.     # Refresh player
  170.     $game_player.refresh
  171.     # Run automatic change for BGM and BGS set with map
  172.     $game_map.autoplay
  173.     # Update map (run parallel process event)
  174.     $game_map.update
  175.     # Switch to map screen
  176.     $scene = Scene_Map.new
  177.   end
  178.   #--------------------------------------------------------------------------
  179.   # * Command: Hard
  180.   #--------------------------------------------------------------------------
  181.   def command_hard
  182.     # Load Data
  183.     $data_actors        = load_data("Data/Hard/Actors.rxdata")
  184.     $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
  185.     # Play decision SE
  186.     $game_system.se_play($data_system.decision_se)
  187.     # Stop BGM
  188.     Audio.bgm_stop
  189.     # Reset frame count for measuring play time
  190.     Graphics.frame_count = 0
  191.     # Make each type of game object
  192.     $game_temp          = Game_Temp.new
  193.     $game_system        = Game_System.new
  194.     $game_switches      = Game_Switches.new
  195.     $game_variables     = Game_Variables.new
  196.     $game_self_switches = Game_SelfSwitches.new
  197.     $game_screen        = Game_Screen.new
  198.     $game_actors        = Game_Actors.new
  199.     $game_party         = Game_Party.new
  200.     $game_troop         = Game_Troop.new
  201.     $game_map           = Game_Map.new
  202.     $game_player        = Game_Player.new
  203.     # Set up initial party
  204.     $game_party.setup_starting_members
  205.     # Set up initial map position
  206.     $game_map.setup($data_system.start_map_id)
  207.     # Move player to initial position
  208.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  209.     # Refresh player
  210.     $game_player.refresh
  211.     # Run automatic change for BGM and BGS set with map
  212.     $game_map.autoplay
  213.     # Update map (run parallel process event)
  214.     $game_map.update
  215.     # Switch to map screen
  216.     $scene = Scene_Map.new
  217.   end
  218.   #--------------------------------------------------------------------------
  219.   # * Battle Test
  220.   #--------------------------------------------------------------------------
  221.   def battle_test
  222.     # Load database (for battle test)
  223.     $data_actors        = load_data("Data/BT_Actors.rxdata")
  224.     $data_classes       = load_data("Data/BT_Classes.rxdata")
  225.     $data_skills        = load_data("Data/BT_Skills.rxdata")
  226.     $data_items         = load_data("Data/BT_Items.rxdata")
  227.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
  228.     $data_armors        = load_data("Data/BT_Armors.rxdata")
  229.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
  230.     $data_troops        = load_data("Data/BT_Troops.rxdata")
  231.     $data_states        = load_data("Data/BT_States.rxdata")
  232.     $data_animations    = load_data("Data/BT_Animations.rxdata")
  233.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
  234.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  235.     $data_system        = load_data("Data/BT_System.rxdata")
  236.     # Reset frame count for measuring play time
  237.     Graphics.frame_count = 0
  238.     # Make each game object
  239.     $game_temp          = Game_Temp.new
  240.     $game_system        = Game_System.new
  241.     $game_switches      = Game_Switches.new
  242.     $game_variables     = Game_Variables.new
  243.     $game_self_switches = Game_SelfSwitches.new
  244.     $game_screen        = Game_Screen.new
  245.     $game_actors        = Game_Actors.new
  246.     $game_party         = Game_Party.new
  247.     $game_troop         = Game_Troop.new
  248.     $game_map           = Game_Map.new
  249.     $game_player        = Game_Player.new
  250.     # Set up party for battle test
  251.     $game_party.setup_battle_test_members
  252.     # Set troop ID, can escape flag, and battleback
  253.     $game_temp.battle_troop_id = $data_system.test_troop_id
  254.     $game_temp.battle_can_escape = true
  255.     $game_map.battleback_name = $data_system.battleback_name
  256.     # Play battle start SE
  257.     $game_system.se_play($data_system.battle_start_se)
  258.     # Play battle BGM
  259.     $game_system.bgm_play($game_system.battle_bgm)
  260.     # Switch to battle screen
  261.     $scene = Scene_Battle.new
  262.   end
  263. end
  264.  
Expand to see the code.


Version 2:
Content Hidden Spoiler
  1. #
  2. #
  3. #                           KAISERLOMEPRODUCTIONS
  4. #
  5. #
  6. #==============================================================================
  7. # ** Scene_Title
  8. #------------------------------------------------------------------------------
  9. #  This class performs title screen processing.
  10. #  Edited by Lome0
  11. #==============================================================================
  12.  
  13. class Scene_Title
  14.   #--------------------------------------------------------------------------
  15.   # * Main Processing
  16.   #--------------------------------------------------------------------------
  17.   def main
  18.     # If battle test
  19.     if $BTEST
  20.       battle_test
  21.       return
  22.     end
  23.     # Load database
  24.     $data_actors        = load_data("Data/Actors.rxdata")
  25.     $data_classes       = load_data("Data/Classes.rxdata")
  26.     $data_skills        = load_data("Data/Skills.rxdata")
  27.     $data_items         = load_data("Data/Items.rxdata")
  28.     $data_weapons       = load_data("Data/Weapons.rxdata")
  29.     $data_armors        = load_data("Data/Armors.rxdata")
  30.     $data_enemies       = load_data("Data/Enemies.rxdata")
  31.     $data_troops        = load_data("Data/Troops.rxdata")
  32.     $data_states        = load_data("Data/States.rxdata")
  33.     $data_animations    = load_data("Data/Animations.rxdata")
  34.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  35.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  36.     $data_system        = load_data("Data/System.rxdata")
  37.     # Make system object
  38.     $game_system = Game_System.new
  39.     # Make title graphic
  40.     @sprite = Sprite.new
  41.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  42.     # Make command window
  43.     s1 = "New Game"
  44.     s2 = "Continue"
  45.     s3 = "Shutdown"
  46.     @command_window = Window_Command.new(192, [s1, s2, s3])
  47.     @command_window.back_opacity = 160
  48.     @command_window.x = 320 - @command_window.width / 2
  49.     @command_window.y = 288
  50.     # Continue enabled determinant
  51.     # Check if at least one save file exists
  52.     # If enabled, make @continue_enabled true; if disabled, make it false
  53.     @continue_enabled = false
  54.     for i in 0..3
  55.       if FileTest.exist?("Save#{i+1}.rxdata")
  56.         @continue_enabled = true
  57.       end
  58.     end
  59.     # If continue is enabled, move cursor to "Continue"
  60.     # If disabled, display "Continue" text in gray
  61.     if @continue_enabled
  62.       @command_window.index = 1
  63.     else
  64.       @command_window.disable_item(1)
  65.     end
  66.     # Play title BGM
  67.     $game_system.bgm_play($data_system.title_bgm)
  68.     # Stop playing ME and BGS
  69.     Audio.me_stop
  70.     Audio.bgs_stop
  71.     # Execute transition
  72.     Graphics.transition
  73.     # Main loop
  74.     loop do
  75.       # Update game screen
  76.       Graphics.update
  77.       # Update input information
  78.       Input.update
  79.       # Frame update
  80.       update
  81.       # Abort loop if screen is changed
  82.       if $scene != self
  83.         break
  84.       end
  85.     end
  86.     # Prepare for transition
  87.     Graphics.freeze
  88.     # Dispose of command window
  89.     @command_window.dispose
  90.     # Dispose of title graphic
  91.     @sprite.bitmap.dispose
  92.     @sprite.dispose
  93.   end
  94.   #--------------------------------------------------------------------------
  95.   # * Frame Update
  96.   #--------------------------------------------------------------------------
  97.   def update
  98.     # Update command window
  99.     @command_window.update
  100.     # If C button was pressed
  101.     if Input.trigger?(Input::C)
  102.       # Branch by command window cursor position
  103.       case @command_window.index
  104.       when 0  # New game
  105.         command_new_game
  106.       when 1  # Continue
  107.         command_continue
  108.       when 2  # Shutdown
  109.         command_shutdown
  110.       end
  111.     end
  112.   end
  113.   #--------------------------------------------------------------------------
  114.   # * Command: New Game
  115.   #--------------------------------------------------------------------------
  116.   def command_new_game
  117.     # Play decision SE
  118.     $game_system.se_play($data_system.decision_se)
  119.     # Switch to map screen
  120.     $scene = Scene_Difficulty.new
  121.   end
  122.   class Scene_Difficulty
  123.   #--------------------------------------------------------------------------
  124.   # * Main Processing
  125.   #--------------------------------------------------------------------------
  126.   def main
  127.     # If battle test
  128.     if $BTEST
  129.       battle_test
  130.       return
  131.     end
  132.     # Load database
  133.     $data_actors        = load_data("Data/Actors.rxdata")
  134.     $data_classes       = load_data("Data/Classes.rxdata")
  135.     $data_skills        = load_data("Data/Skills.rxdata")
  136.     $data_items         = load_data("Data/Items.rxdata")
  137.     $data_weapons       = load_data("Data/Weapons.rxdata")
  138.     $data_armors        = load_data("Data/Armors.rxdata")
  139.     $data_enemies       = load_data("Data/Enemies.rxdata")
  140.     $data_troops        = load_data("Data/Troops.rxdata")
  141.     $data_states        = load_data("Data/States.rxdata")
  142.     $data_animations    = load_data("Data/Animations.rxdata")
  143.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  144.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  145.     $data_system        = load_data("Data/System.rxdata")
  146.     # Make system object
  147.     $game_system = Game_System.new
  148.     # Make title graphic
  149.     @sprite = Sprite.new
  150.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  151.     # Make command window
  152.     s1 = "Easy"
  153.     s2 = "Normal"
  154.     s3 = "Hard"
  155.     @command_window = Window_Command.new(192, [s1, s2, s3])
  156.     @command_window.back_opacity = 160
  157.     @command_window.x = 320 - @command_window.width / 2
  158.     @command_window.y = 288
  159.     # Execute transition
  160.     Graphics.transition
  161.     # Main loop
  162.     loop do
  163.       # Update game screen
  164.       Graphics.update
  165.       # Update input information
  166.       Input.update
  167.       # Frame update
  168.       update
  169.       # Abort loop if screen is changed
  170.       if $scene != self
  171.         break
  172.       end
  173.     end
  174.     # Prepare for transition
  175.     Graphics.freeze
  176.     # Dispose of command window
  177.     @command_window.dispose
  178.     # Dispose of title graphic
  179.     @sprite.bitmap.dispose
  180.     @sprite.dispose
  181.   end
  182.   #--------------------------------------------------------------------------
  183.   # * Frame Update
  184.   #--------------------------------------------------------------------------
  185.   def update
  186.     # Update command window
  187.     @command_window.update
  188.     # If C button was pressed
  189.     if Input.trigger?(Input::C)
  190.       # Branch by command window cursor position
  191.       case @command_window.index
  192.       when 0  # Easy
  193.         command_easy
  194.       when 1  # Normal
  195.         command_normal
  196.       when 2  # Shutdown
  197.         command_hard
  198.       end
  199.     end
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # * Command: Easy
  203.   #--------------------------------------------------------------------------
  204.   def command_easy
  205.     # Load Data
  206.     $data_actors        = load_data("Data/Easy/Actors.rxdata")
  207.     $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
  208.     # Play decision SE
  209.     $game_system.se_play($data_system.decision_se)
  210.     # Stop BGM
  211.     Audio.bgm_stop
  212.     # Reset frame count for measuring play time
  213.     Graphics.frame_count = 0
  214.     # Make each type of game object
  215.     $game_temp          = Game_Temp.new
  216.     $game_system        = Game_System.new
  217.     $game_switches      = Game_Switches.new
  218.     $game_variables     = Game_Variables.new
  219.     $game_self_switches = Game_SelfSwitches.new
  220.     $game_screen        = Game_Screen.new
  221.     $game_actors        = Game_Actors.new
  222.     $game_party         = Game_Party.new
  223.     $game_troop         = Game_Troop.new
  224.     $game_map           = Game_Map.new
  225.     $game_player        = Game_Player.new
  226.     # Set up initial party
  227.     $game_party.setup_starting_members
  228.     # Set up initial map position
  229.     $game_map.setup($data_system.start_map_id)
  230.     # Move player to initial position
  231.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  232.     # Refresh player
  233.     $game_player.refresh
  234.     # Run automatic change for BGM and BGS set with map
  235.     $game_map.autoplay
  236.     # Update map (run parallel process event)
  237.     $game_map.update
  238.     # Switch to map screen
  239.     $scene = Scene_Map.new
  240.   end
  241.   #--------------------------------------------------------------------------
  242.   # * Command: Normal
  243.   #--------------------------------------------------------------------------
  244.   def command_normal
  245.     # Load Data
  246.     $data_actors        = load_data("Data/Normal/Actors.rxdata")
  247.     $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
  248.     # Play decision SE
  249.     $game_system.se_play($data_system.decision_se)
  250.     # Stop BGM
  251.     Audio.bgm_stop
  252.     # Reset frame count for measuring play time
  253.     Graphics.frame_count = 0
  254.     # Make each type of game object
  255.     $game_temp          = Game_Temp.new
  256.     $game_system        = Game_System.new
  257.     $game_switches      = Game_Switches.new
  258.     $game_variables     = Game_Variables.new
  259.     $game_self_switches = Game_SelfSwitches.new
  260.     $game_screen        = Game_Screen.new
  261.     $game_actors        = Game_Actors.new
  262.     $game_party         = Game_Party.new
  263.     $game_troop         = Game_Troop.new
  264.     $game_map           = Game_Map.new
  265.     $game_player        = Game_Player.new
  266.     # Set up initial party
  267.     $game_party.setup_starting_members
  268.     # Set up initial map position
  269.     $game_map.setup($data_system.start_map_id)
  270.     # Move player to initial position
  271.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  272.     # Refresh player
  273.     $game_player.refresh
  274.     # Run automatic change for BGM and BGS set with map
  275.     $game_map.autoplay
  276.     # Update map (run parallel process event)
  277.     $game_map.update
  278.     # Switch to map screen
  279.     $scene = Scene_Map.new
  280.   end
  281.   #--------------------------------------------------------------------------
  282.   # * Command: Hard
  283.   #--------------------------------------------------------------------------
  284.   def command_hard
  285.     # Load Data
  286.     $data_actors        = load_data("Data/Hard/Actors.rxdata")
  287.     $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
  288.     # Play decision SE
  289.     $game_system.se_play($data_system.decision_se)
  290.     # Stop BGM
  291.     Audio.bgm_stop
  292.     # Reset frame count for measuring play time
  293.     Graphics.frame_count = 0
  294.     # Make each type of game object
  295.     $game_temp          = Game_Temp.new
  296.     $game_system        = Game_System.new
  297.     $game_switches      = Game_Switches.new
  298.     $game_variables     = Game_Variables.new
  299.     $game_self_switches = Game_SelfSwitches.new
  300.     $game_screen        = Game_Screen.new
  301.     $game_actors        = Game_Actors.new
  302.     $game_party         = Game_Party.new
  303.     $game_troop         = Game_Troop.new
  304.     $game_map           = Game_Map.new
  305.     $game_player        = Game_Player.new
  306.     # Set up initial party
  307.     $game_party.setup_starting_members
  308.     # Set up initial map position
  309.     $game_map.setup($data_system.start_map_id)
  310.     # Move player to initial position
  311.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  312.     # Refresh player
  313.     $game_player.refresh
  314.     # Run automatic change for BGM and BGS set with map
  315.     $game_map.autoplay
  316.     # Update map (run parallel process event)
  317.     $game_map.update
  318.     # Switch to map screen
  319.     $scene = Scene_Map.new
  320.   end
  321. end
  322.  
  323.   #--------------------------------------------------------------------------
  324.   # * Command: Continue
  325.   #--------------------------------------------------------------------------
  326.   def command_continue
  327.     # If continue is disabled
  328.     unless @continue_enabled
  329.       # Play buzzer SE
  330.       $game_system.se_play($data_system.buzzer_se)
  331.       return
  332.     end
  333.     # Play decision SE
  334.     $game_system.se_play($data_system.decision_se)
  335.     # Switch to load screen
  336.     $scene = Scene_Load.new
  337.   end
  338.   #--------------------------------------------------------------------------
  339.   # * Command: Shutdown
  340.   #--------------------------------------------------------------------------
  341.   def command_shutdown
  342.     # Play decision SE
  343.     $game_system.se_play($data_system.decision_se)
  344.     # Fade out BGM, BGS, and ME
  345.     Audio.bgm_fade(800)
  346.     Audio.bgs_fade(800)
  347.     Audio.me_fade(800)
  348.     # Shutdown
  349.     $scene = nil
  350.   end
  351.   #--------------------------------------------------------------------------
  352.   # * Battle Test
  353.   #--------------------------------------------------------------------------
  354.   def battle_test
  355.     # Load database (for battle test)
  356.     $data_actors        = load_data("Data/BT_Actors.rxdata")
  357.     $data_classes       = load_data("Data/BT_Classes.rxdata")
  358.     $data_skills        = load_data("Data/BT_Skills.rxdata")
  359.     $data_items         = load_data("Data/BT_Items.rxdata")
  360.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
  361.     $data_armors        = load_data("Data/BT_Armors.rxdata")
  362.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
  363.     $data_troops        = load_data("Data/BT_Troops.rxdata")
  364.     $data_states        = load_data("Data/BT_States.rxdata")
  365.     $data_animations    = load_data("Data/BT_Animations.rxdata")
  366.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
  367.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  368.     $data_system        = load_data("Data/BT_System.rxdata")
  369.     # Reset frame count for measuring play time
  370.     Graphics.frame_count = 0
  371.     # Make each game object
  372.     $game_temp          = Game_Temp.new
  373.     $game_system        = Game_System.new
  374.     $game_switches      = Game_Switches.new
  375.     $game_variables     = Game_Variables.new
  376.     $game_self_switches = Game_SelfSwitches.new
  377.     $game_screen        = Game_Screen.new
  378.     $game_actors        = Game_Actors.new
  379.     $game_party         = Game_Party.new
  380.     $game_troop         = Game_Troop.new
  381.     $game_map           = Game_Map.new
  382.     $game_player        = Game_Player.new
  383.     # Set up party for battle test
  384.     $game_party.setup_battle_test_members
  385.     # Set troop ID, can escape flag, and battleback
  386.     $game_temp.battle_troop_id = $data_system.test_troop_id
  387.     $game_temp.battle_can_escape = true
  388.     $game_map.battleback_name = $data_system.battleback_name
  389.     # Play battle start SE
  390.     $game_system.se_play($data_system.battle_start_se)
  391.     # Play battle BGM
  392.     $game_system.bgm_play($game_system.battle_bgm)
  393.     # Switch to battle screen
  394.     $scene = Scene_Battle.new
  395.   end
  396. end
Expand to see the code.


Version 3:
In this version switch 1 will be on in easy mode, switch 2 in normal mode and switch 3 in hard mode.
Content Hidden Spoiler
  1. #
  2. #
  3. #                           KAISERLOMEPRODUCTIONS
  4. #
  5. #
  6. #==============================================================================
  7. # ** Scene_Title
  8. #------------------------------------------------------------------------------
  9. #  This class performs title screen processing.
  10. #  Edited by Lome0
  11. #==============================================================================
  12.  
  13. class Scene_Title
  14.   #--------------------------------------------------------------------------
  15.   # * Main Processing
  16.   #--------------------------------------------------------------------------
  17.   def main
  18.     # If battle test
  19.     if $BTEST
  20.       battle_test
  21.       return
  22.     end
  23.     # Load database
  24.     $data_actors        = load_data("Data/Actors.rxdata")
  25.     $data_classes       = load_data("Data/Classes.rxdata")
  26.     $data_skills        = load_data("Data/Skills.rxdata")
  27.     $data_items         = load_data("Data/Items.rxdata")
  28.     $data_weapons       = load_data("Data/Weapons.rxdata")
  29.     $data_armors        = load_data("Data/Armors.rxdata")
  30.     $data_enemies       = load_data("Data/Enemies.rxdata")
  31.     $data_troops        = load_data("Data/Troops.rxdata")
  32.     $data_states        = load_data("Data/States.rxdata")
  33.     $data_animations    = load_data("Data/Animations.rxdata")
  34.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  35.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  36.     $data_system        = load_data("Data/System.rxdata")
  37.     # Make system object
  38.     $game_system = Game_System.new
  39.     # Make title graphic
  40.     @sprite = Sprite.new
  41.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  42.     # Make command window
  43.     s1 = "New Game"
  44.     s2 = "Continue"
  45.     s3 = "Shutdown"
  46.     @command_window = Window_Command.new(192, [s1, s2, s3])
  47.     @command_window.back_opacity = 160
  48.     @command_window.x = 320 - @command_window.width / 2
  49.     @command_window.y = 288
  50.     # Continue enabled determinant
  51.     # Check if at least one save file exists
  52.     # If enabled, make @continue_enabled true; if disabled, make it false
  53.     @continue_enabled = false
  54.     for i in 0..3
  55.       if FileTest.exist?("Save#{i+1}.rxdata")
  56.         @continue_enabled = true
  57.       end
  58.     end
  59.     # If continue is enabled, move cursor to "Continue"
  60.     # If disabled, display "Continue" text in gray
  61.     if @continue_enabled
  62.       @command_window.index = 1
  63.     else
  64.       @command_window.disable_item(1)
  65.     end
  66.     # Play title BGM
  67.     $game_system.bgm_play($data_system.title_bgm)
  68.     # Stop playing ME and BGS
  69.     Audio.me_stop
  70.     Audio.bgs_stop
  71.     # Execute transition
  72.     Graphics.transition
  73.     # Main loop
  74.     loop do
  75.       # Update game screen
  76.       Graphics.update
  77.       # Update input information
  78.       Input.update
  79.       # Frame update
  80.       update
  81.       # Abort loop if screen is changed
  82.       if $scene != self
  83.         break
  84.       end
  85.     end
  86.     # Prepare for transition
  87.     Graphics.freeze
  88.     # Dispose of command window
  89.     @command_window.dispose
  90.     # Dispose of title graphic
  91.     @sprite.bitmap.dispose
  92.     @sprite.dispose
  93.   end
  94.   #--------------------------------------------------------------------------
  95.   # * Frame Update
  96.   #--------------------------------------------------------------------------
  97.   def update
  98.     # Update command window
  99.     @command_window.update
  100.     # If C button was pressed
  101.     if Input.trigger?(Input::C)
  102.       # Branch by command window cursor position
  103.       case @command_window.index
  104.       when 0  # New game
  105.         command_new_game
  106.       when 1  # Continue
  107.         command_continue
  108.       when 2  # Shutdown
  109.         command_shutdown
  110.       end
  111.     end
  112.   end
  113.   #--------------------------------------------------------------------------
  114.   # * Command: New Game
  115.   #--------------------------------------------------------------------------
  116.   def command_new_game
  117.     # Play decision SE
  118.     $game_system.se_play($data_system.decision_se)
  119.     # Switch to map screen
  120.     $scene = Scene_Difficulty.new
  121.   end
  122.   class Scene_Difficulty
  123.   #--------------------------------------------------------------------------
  124.   # * Main Processing
  125.   #--------------------------------------------------------------------------
  126.   def main
  127.     # If battle test
  128.     if $BTEST
  129.       battle_test
  130.       return
  131.     end
  132.     # Load database
  133.     $data_actors        = load_data("Data/Actors.rxdata")
  134.     $data_classes       = load_data("Data/Classes.rxdata")
  135.     $data_skills        = load_data("Data/Skills.rxdata")
  136.     $data_items         = load_data("Data/Items.rxdata")
  137.     $data_weapons       = load_data("Data/Weapons.rxdata")
  138.     $data_armors        = load_data("Data/Armors.rxdata")
  139.     $data_enemies       = load_data("Data/Enemies.rxdata")
  140.     $data_troops        = load_data("Data/Troops.rxdata")
  141.     $data_states        = load_data("Data/States.rxdata")
  142.     $data_animations    = load_data("Data/Animations.rxdata")
  143.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  144.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  145.     $data_system        = load_data("Data/System.rxdata")
  146.     # Make system object
  147.     $game_system = Game_System.new
  148.     # Make title graphic
  149.     @sprite = Sprite.new
  150.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  151.     # Make command window
  152.     s1 = "Easy"
  153.     s2 = "Normal"
  154.     s3 = "Hard"
  155.     @command_window = Window_Command.new(192, [s1, s2, s3])
  156.     @command_window.back_opacity = 160
  157.     @command_window.x = 320 - @command_window.width / 2
  158.     @command_window.y = 288
  159.     # Execute transition
  160.     Graphics.transition
  161.     # Main loop
  162.     loop do
  163.       # Update game screen
  164.       Graphics.update
  165.       # Update input information
  166.       Input.update
  167.       # Frame update
  168.       update
  169.       # Abort loop if screen is changed
  170.       if $scene != self
  171.         break
  172.       end
  173.     end
  174.     # Prepare for transition
  175.     Graphics.freeze
  176.     # Dispose of command window
  177.     @command_window.dispose
  178.     # Dispose of title graphic
  179.     @sprite.bitmap.dispose
  180.     @sprite.dispose
  181.   end
  182.   #--------------------------------------------------------------------------
  183.   # * Frame Update
  184.   #--------------------------------------------------------------------------
  185.   def update
  186.     # Update command window
  187.     @command_window.update
  188.     # If C button was pressed
  189.     if Input.trigger?(Input::C)
  190.       # Branch by command window cursor position
  191.       case @command_window.index
  192.       when 0  # Easy
  193.         command_easy
  194.       when 1  # Normal
  195.         command_normal
  196.       when 2  # Shutdown
  197.         command_hard
  198.       end
  199.     end
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # * Command: Easy
  203.   #--------------------------------------------------------------------------
  204.   def command_easy
  205.     # Turn on easy switch
  206.     $game_switches[1] = true
  207.     # Load Data
  208.     $data_actors        = load_data("Data/Easy/Actors.rxdata")
  209.     $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
  210.     # Play decision SE
  211.     $game_system.se_play($data_system.decision_se)
  212.     # Stop BGM
  213.     Audio.bgm_stop
  214.     # Reset frame count for measuring play time
  215.     Graphics.frame_count = 0
  216.     # Make each type of game object
  217.     $game_temp          = Game_Temp.new
  218.     $game_system        = Game_System.new
  219.     $game_switches      = Game_Switches.new
  220.     $game_variables     = Game_Variables.new
  221.     $game_self_switches = Game_SelfSwitches.new
  222.     $game_screen        = Game_Screen.new
  223.     $game_actors        = Game_Actors.new
  224.     $game_party         = Game_Party.new
  225.     $game_troop         = Game_Troop.new
  226.     $game_map           = Game_Map.new
  227.     $game_player        = Game_Player.new
  228.     # Set up initial party
  229.     $game_party.setup_starting_members
  230.     # Set up initial map position
  231.     $game_map.setup($data_system.start_map_id)
  232.     # Move player to initial position
  233.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  234.     # Refresh player
  235.     $game_player.refresh
  236.     # Run automatic change for BGM and BGS set with map
  237.     $game_map.autoplay
  238.     # Update map (run parallel process event)
  239.     $game_map.update
  240.     # Switch to map screen
  241.     $scene = Scene_Map.new
  242.   end
  243.   #--------------------------------------------------------------------------
  244.   # * Command: Normal
  245.   #--------------------------------------------------------------------------
  246.   def command_normal
  247.       # Turn on normal switch
  248.     $game_switches[2] = true
  249.     # Load Data
  250.     $data_actors        = load_data("Data/Normal/Actors.rxdata")
  251.     $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
  252.     # Play decision SE
  253.     $game_system.se_play($data_system.decision_se)
  254.     # Stop BGM
  255.     Audio.bgm_stop
  256.     # Reset frame count for measuring play time
  257.     Graphics.frame_count = 0
  258.     # Make each type of game object
  259.     $game_temp          = Game_Temp.new
  260.     $game_system        = Game_System.new
  261.     $game_switches      = Game_Switches.new
  262.     $game_variables     = Game_Variables.new
  263.     $game_self_switches = Game_SelfSwitches.new
  264.     $game_screen        = Game_Screen.new
  265.     $game_actors        = Game_Actors.new
  266.     $game_party         = Game_Party.new
  267.     $game_troop         = Game_Troop.new
  268.     $game_map           = Game_Map.new
  269.     $game_player        = Game_Player.new
  270.     # Set up initial party
  271.     $game_party.setup_starting_members
  272.     # Set up initial map position
  273.     $game_map.setup($data_system.start_map_id)
  274.     # Move player to initial position
  275.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  276.     # Refresh player
  277.     $game_player.refresh
  278.     # Run automatic change for BGM and BGS set with map
  279.     $game_map.autoplay
  280.     # Update map (run parallel process event)
  281.     $game_map.update
  282.     # Switch to map screen
  283.     $scene = Scene_Map.new
  284.   end
  285.   #--------------------------------------------------------------------------
  286.   # * Command: Hard
  287.   #--------------------------------------------------------------------------
  288.   def command_hard
  289.     # Turn on hard switch
  290.     $game_switches[3] = true
  291.     # Load Data
  292.     $data_actors        = load_data("Data/Hard/Actors.rxdata")
  293.     $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
  294.     # Play decision SE
  295.     $game_system.se_play($data_system.decision_se)
  296.     # Stop BGM
  297.     Audio.bgm_stop
  298.     # Reset frame count for measuring play time
  299.     Graphics.frame_count = 0
  300.     # Make each type of game object
  301.     $game_temp          = Game_Temp.new
  302.     $game_system        = Game_System.new
  303.     $game_switches      = Game_Switches.new
  304.     $game_variables     = Game_Variables.new
  305.     $game_self_switches = Game_SelfSwitches.new
  306.     $game_screen        = Game_Screen.new
  307.     $game_actors        = Game_Actors.new
  308.     $game_party         = Game_Party.new
  309.     $game_troop         = Game_Troop.new
  310.     $game_map           = Game_Map.new
  311.     $game_player        = Game_Player.new
  312.     # Set up initial party
  313.     $game_party.setup_starting_members
  314.     # Set up initial map position
  315.     $game_map.setup($data_system.start_map_id)
  316.     # Move player to initial position
  317.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  318.     # Refresh player
  319.     $game_player.refresh
  320.     # Run automatic change for BGM and BGS set with map
  321.     $game_map.autoplay
  322.     # Update map (run parallel process event)
  323.     $game_map.update
  324.     # Switch to map screen
  325.     $scene = Scene_Map.new
  326.   end
  327. end
  328.  
  329.   #--------------------------------------------------------------------------
  330.   # * Command: Continue
  331.   #--------------------------------------------------------------------------
  332.   def command_continue
  333.     # If continue is disabled
  334.     unless @continue_enabled
  335.       # Play buzzer SE
  336.       $game_system.se_play($data_system.buzzer_se)
  337.       return
  338.     end
  339.     # Play decision SE
  340.     $game_system.se_play($data_system.decision_se)
  341.     # Switch to load screen
  342.     $scene = Scene_Load.new
  343.   end
  344.   #--------------------------------------------------------------------------
  345.   # * Command: Shutdown
  346.   #--------------------------------------------------------------------------
  347.   def command_shutdown
  348.     # Play decision SE
  349.     $game_system.se_play($data_system.decision_se)
  350.     # Fade out BGM, BGS, and ME
  351.     Audio.bgm_fade(800)
  352.     Audio.bgs_fade(800)
  353.     Audio.me_fade(800)
  354.     # Shutdown
  355.     $scene = nil
  356.   end
  357.   #--------------------------------------------------------------------------
  358.   # * Battle Test
  359.   #--------------------------------------------------------------------------
  360.   def battle_test
  361.     # Load database (for battle test)
  362.     $data_actors        = load_data("Data/BT_Actors.rxdata")
  363.     $data_classes       = load_data("Data/BT_Classes.rxdata")
  364.     $data_skills        = load_data("Data/BT_Skills.rxdata")
  365.     $data_items         = load_data("Data/BT_Items.rxdata")
  366.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
  367.     $data_armors        = load_data("Data/BT_Armors.rxdata")
  368.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
  369.     $data_troops        = load_data("Data/BT_Troops.rxdata")
  370.     $data_states        = load_data("Data/BT_States.rxdata")
  371.     $data_animations    = load_data("Data/BT_Animations.rxdata")
  372.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
  373.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  374.     $data_system        = load_data("Data/BT_System.rxdata")
  375.     # Reset frame count for measuring play time
  376.     Graphics.frame_count = 0
  377.     # Make each game object
  378.     $game_temp          = Game_Temp.new
  379.     $game_system        = Game_System.new
  380.     $game_switches      = Game_Switches.new
  381.     $game_variables     = Game_Variables.new
  382.     $game_self_switches = Game_SelfSwitches.new
  383.     $game_screen        = Game_Screen.new
  384.     $game_actors        = Game_Actors.new
  385.     $game_party         = Game_Party.new
  386.     $game_troop         = Game_Troop.new
  387.     $game_map           = Game_Map.new
  388.     $game_player        = Game_Player.new
  389.     # Set up party for battle test
  390.     $game_party.setup_battle_test_members
  391.     # Set troop ID, can escape flag, and battleback
  392.     $game_temp.battle_troop_id = $data_system.test_troop_id
  393.     $game_temp.battle_can_escape = true
  394.     $game_map.battleback_name = $data_system.battleback_name
  395.     # Play battle start SE
  396.     $game_system.se_play($data_system.battle_start_se)
  397.     # Play battle BGM
  398.     $game_system.bgm_play($game_system.battle_bgm)
  399.     # Switch to battle screen
  400.     $scene = Scene_Battle.new
  401.   end
  402. end
Expand to see the code.


Version 3 Fix:
A fix if it isn't working. This may help.
Content Hidden Spoiler
  1. #
  2. #
  3. #                           KAISERLOMEPRODUCTIONS
  4. #
  5. #
  6. #==============================================================================
  7. # ** Scene_Title
  8. #------------------------------------------------------------------------------
  9. #  This class performs title screen processing.
  10. #  Edited by Lome0
  11. #==============================================================================
  12.  
  13. class Scene_Title
  14.   #--------------------------------------------------------------------------
  15.   # * Main Processing
  16.   #--------------------------------------------------------------------------
  17.   def main
  18.     # If battle test
  19.     if $BTEST
  20.       battle_test
  21.       return
  22.     end
  23.     # Load database
  24.     $data_actors        = load_data("Data/Actors.rxdata")
  25.     $data_classes       = load_data("Data/Classes.rxdata")
  26.     $data_skills        = load_data("Data/Skills.rxdata")
  27.     $data_items         = load_data("Data/Items.rxdata")
  28.     $data_weapons       = load_data("Data/Weapons.rxdata")
  29.     $data_armors        = load_data("Data/Armors.rxdata")
  30.     $data_enemies       = load_data("Data/Enemies.rxdata")
  31.     $data_troops        = load_data("Data/Troops.rxdata")
  32.     $data_states        = load_data("Data/States.rxdata")
  33.     $data_animations    = load_data("Data/Animations.rxdata")
  34.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  35.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  36.     $data_system        = load_data("Data/System.rxdata")
  37.     # Make system object
  38.     $game_system = Game_System.new
  39.     # Make title graphic
  40.     @sprite = Sprite.new
  41.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  42.     # Make command window
  43.     s1 = "New Game"
  44.     s2 = "Continue"
  45.     s3 = "Shutdown"
  46.     @command_window = Window_Command.new(192, [s1, s2, s3])
  47.     @command_window.back_opacity = 160
  48.     @command_window.x = 320 - @command_window.width / 2
  49.     @command_window.y = 288
  50.     # Continue enabled determinant
  51.     # Check if at least one save file exists
  52.     # If enabled, make @continue_enabled true; if disabled, make it false
  53.     @continue_enabled = false
  54.     for i in 0..3
  55.       if FileTest.exist?("Save#{i+1}.rxdata")
  56.         @continue_enabled = true
  57.       end
  58.     end
  59.     # If continue is enabled, move cursor to "Continue"
  60.     # If disabled, display "Continue" text in gray
  61.     if @continue_enabled
  62.       @command_window.index = 1
  63.     else
  64.       @command_window.disable_item(1)
  65.     end
  66.     # Play title BGM
  67.     $game_system.bgm_play($data_system.title_bgm)
  68.     # Stop playing ME and BGS
  69.     Audio.me_stop
  70.     Audio.bgs_stop
  71.     # Execute transition
  72.     Graphics.transition
  73.     # Main loop
  74.     loop do
  75.       # Update game screen
  76.       Graphics.update
  77.       # Update input information
  78.       Input.update
  79.       # Frame update
  80.       update
  81.       # Abort loop if screen is changed
  82.       if $scene != self
  83.         break
  84.       end
  85.     end
  86.     # Prepare for transition
  87.     Graphics.freeze
  88.     # Dispose of command window
  89.     @command_window.dispose
  90.     # Dispose of title graphic
  91.     @sprite.bitmap.dispose
  92.     @sprite.dispose
  93.   end
  94.   #--------------------------------------------------------------------------
  95.   # * Frame Update
  96.   #--------------------------------------------------------------------------
  97.   def update
  98.     # Update command window
  99.     @command_window.update
  100.     # If C button was pressed
  101.     if Input.trigger?(Input::C)
  102.       # Branch by command window cursor position
  103.       case @command_window.index
  104.       when 0  # New game
  105.         command_new_game
  106.       when 1  # Continue
  107.         command_continue
  108.       when 2  # Shutdown
  109.         command_shutdown
  110.       end
  111.     end
  112.   end
  113.   #--------------------------------------------------------------------------
  114.   # * Command: New Game
  115.   #--------------------------------------------------------------------------
  116.   def command_new_game
  117.     # Play decision SE
  118.     $game_system.se_play($data_system.decision_se)
  119.     # Switch to map screen
  120.     $scene = Scene_Difficulty.new
  121.   end
  122.   class Scene_Difficulty
  123.   #--------------------------------------------------------------------------
  124.   # * Main Processing
  125.   #--------------------------------------------------------------------------
  126.   def main
  127.     # If battle test
  128.     if $BTEST
  129.       battle_test
  130.       return
  131.     end
  132.     # Load database
  133.     $data_actors        = load_data("Data/Actors.rxdata")
  134.     $data_classes       = load_data("Data/Classes.rxdata")
  135.     $data_skills        = load_data("Data/Skills.rxdata")
  136.     $data_items         = load_data("Data/Items.rxdata")
  137.     $data_weapons       = load_data("Data/Weapons.rxdata")
  138.     $data_armors        = load_data("Data/Armors.rxdata")
  139.     $data_enemies       = load_data("Data/Enemies.rxdata")
  140.     $data_troops        = load_data("Data/Troops.rxdata")
  141.     $data_states        = load_data("Data/States.rxdata")
  142.     $data_animations    = load_data("Data/Animations.rxdata")
  143.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  144.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  145.     $data_system        = load_data("Data/System.rxdata")
  146.     # Make system object
  147.     $game_system = Game_System.new
  148.     # Make title graphic
  149.     @sprite = Sprite.new
  150.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  151.     # Make command window
  152.     s1 = "Easy"
  153.     s2 = "Normal"
  154.     s3 = "Hard"
  155.     @command_window = Window_Command.new(192, [s1, s2, s3])
  156.     @command_window.back_opacity = 160
  157.     @command_window.x = 320 - @command_window.width / 2
  158.     @command_window.y = 288
  159.     # Execute transition
  160.     Graphics.transition
  161.     # Main loop
  162.     loop do
  163.       # Update game screen
  164.       Graphics.update
  165.       # Update input information
  166.       Input.update
  167.       # Frame update
  168.       update
  169.       # Abort loop if screen is changed
  170.       if $scene != self
  171.         break
  172.       end
  173.     end
  174.     # Prepare for transition
  175.     Graphics.freeze
  176.     # Dispose of command window
  177.     @command_window.dispose
  178.     # Dispose of title graphic
  179.     @sprite.bitmap.dispose
  180.     @sprite.dispose
  181.   end
  182.   #--------------------------------------------------------------------------
  183.   # * Frame Update
  184.   #--------------------------------------------------------------------------
  185.   def update
  186.     # Update command window
  187.     @command_window.update
  188.     # If C button was pressed
  189.     if Input.trigger?(Input::C)
  190.       # Branch by command window cursor position
  191.       case @command_window.index
  192.       when 0  # Easy
  193.         command_easy
  194.       when 1  # Normal
  195.         command_normal
  196.       when 2  # Shutdown
  197.         command_hard
  198.       end
  199.     end
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # * Command: Easy
  203.   #--------------------------------------------------------------------------
  204.   def command_easy
  205.     # Turn on easy switch
  206.     $game_switches[1] = true
  207.     # Load Data
  208.     $data_actors        = load_data("Data/Easy/Actors.rxdata")
  209.     $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
  210.     # Play decision SE
  211.     $game_system.se_play($data_system.decision_se)
  212.     # Stop BGM
  213.     Audio.bgm_stop
  214.     # Reset frame count for measuring play time
  215.     Graphics.frame_count = 0
  216.     # Make each type of game object
  217.     $game_temp          = Game_Temp.new
  218.     $game_system        = Game_System.new
  219.     $game_switches      = Game_Switches.new
  220.     $game_variables     = Game_Variables.new
  221.     $game_self_switches = Game_SelfSwitches.new
  222.     $game_screen        = Game_Screen.new
  223.     $game_actors        = Game_Actors.new
  224.     $game_party         = Game_Party.new
  225.     $game_troop         = Game_Troop.new
  226.     $game_map           = Game_Map.new
  227.     $game_player        = Game_Player.new
  228.     # Set up initial party
  229.     $game_party.setup_starting_members
  230.     # Set up initial map position
  231.     $game_map.setup($data_system.start_map_id)
  232.     # Move player to initial position
  233.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  234.     # Refresh player
  235.     $game_player.refresh
  236.     # Run automatic change for BGM and BGS set with map
  237.     $game_map.autoplay
  238.     # Update map (run parallel process event)
  239.     $game_map.update
  240.     # Switch to map screen
  241.     $scene = Scene_Map.new
  242.   end
  243.   #--------------------------------------------------------------------------
  244.   # * Command: Normal
  245.   #--------------------------------------------------------------------------
  246.   def command_normal
  247.       # Turn on normal switch
  248.     $game_switches[2] = true
  249.     # Load Data
  250.     $data_actors        = load_data("Data/Normal/Actors.rxdata")
  251.     $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
  252.     # Play decision SE
  253.     $game_system.se_play($data_system.decision_se)
  254.     # Stop BGM
  255.     Audio.bgm_stop
  256.     # Reset frame count for measuring play time
  257.     Graphics.frame_count = 0
  258.     # Make each type of game object
  259.     $game_temp          = Game_Temp.new
  260.     $game_system        = Game_System.new
  261.     $game_switches      = Game_Switches.new
  262.     $game_variables     = Game_Variables.new
  263.     $game_self_switches = Game_SelfSwitches.new
  264.     $game_screen        = Game_Screen.new
  265.     $game_actors        = Game_Actors.new
  266.     $game_party         = Game_Party.new
  267.     $game_troop         = Game_Troop.new
  268.     $game_map           = Game_Map.new
  269.     $game_player        = Game_Player.new
  270.     # Set up initial party
  271.     $game_party.setup_starting_members
  272.     # Set up initial map position
  273.     $game_map.setup($data_system.start_map_id)
  274.     # Move player to initial position
  275.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  276.     # Refresh player
  277.     $game_player.refresh
  278.     # Run automatic change for BGM and BGS set with map
  279.     $game_map.autoplay
  280.     # Update map (run parallel process event)
  281.     $game_map.update
  282.     # Switch to map screen
  283.     $scene = Scene_Map.new
  284.   end
  285.   #--------------------------------------------------------------------------
  286.   # * Command: Hard
  287.   #--------------------------------------------------------------------------
  288.   def command_hard
  289.     # Turn on hard switch
  290.     $game_switches[3] = true
  291.     # Load Data
  292.     $data_actors        = load_data("Data/Hard/Actors.rxdata")
  293.     $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
  294.     # Play decision SE
  295.     $game_system.se_play($data_system.decision_se)
  296.     # Stop BGM
  297.     Audio.bgm_stop
  298.     # Reset frame count for measuring play time
  299.     Graphics.frame_count = 0
  300.     # Make each type of game object
  301.     $game_temp          = Game_Temp.new
  302.     $game_system        = Game_System.new
  303.     $game_switches      = Game_Switches.new
  304.     $game_variables     = Game_Variables.new
  305.     $game_self_switches = Game_SelfSwitches.new
  306.     $game_screen        = Game_Screen.new
  307.     $game_actors        = Game_Actors.new
  308.     $game_party         = Game_Party.new
  309.     $game_troop         = Game_Troop.new
  310.     $game_map           = Game_Map.new
  311.     $game_player        = Game_Player.new
  312.     # Set up initial party
  313.     $game_party.setup_starting_members
  314.     # Set up initial map position
  315.     $game_map.setup($data_system.start_map_id)
  316.     # Move player to initial position
  317.     $game_player.moveto($data_system.start_x, $data_system.start_y)
  318.     # Refresh player
  319.     $game_player.refresh
  320.     # Run automatic change for BGM and BGS set with map
  321.     $game_map.autoplay
  322.     # Update map (run parallel process event)
  323.     $game_map.update
  324.     # Switch to map screen
  325.     $scene = Scene_Map.new
  326.   end
  327. end
  328.  
  329.   #--------------------------------------------------------------------------
  330.   # * Command: Continue
  331.   #--------------------------------------------------------------------------
  332.   def command_continue
  333.     # If continue is disabled
  334.     unless @continue_enabled
  335.       # Play buzzer SE
  336.       $game_system.se_play($data_system.buzzer_se)
  337.       return
  338.     end
  339.     # Play decision SE
  340.     $game_system.se_play($data_system.decision_se)
  341.     # Switch to load screen
  342.     $scene = Scene_Load.new
  343.   end
  344.   #--------------------------------------------------------------------------
  345.   # * Command: Shutdown
  346.   #--------------------------------------------------------------------------
  347.   def command_shutdown
  348.     # Play decision SE
  349.     $game_system.se_play($data_system.decision_se)
  350.     # Fade out BGM, BGS, and ME
  351.     Audio.bgm_fade(800)
  352.     Audio.bgs_fade(800)
  353.     Audio.me_fade(800)
  354.     # Shutdown
  355.     $scene = nil
  356.   end
  357.   #--------------------------------------------------------------------------
  358.   # * Battle Test
  359.   #--------------------------------------------------------------------------
  360.   def battle_test
  361.     # Load database (for battle test)
  362.     $data_actors        = load_data("Data/BT_Actors.rxdata")
  363.     $data_classes       = load_data("Data/BT_Classes.rxdata")
  364.     $data_skills        = load_data("Data/BT_Skills.rxdata")
  365.     $data_items         = load_data("Data/BT_Items.rxdata")
  366.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
  367.     $data_armors        = load_data("Data/BT_Armors.rxdata")
  368.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
  369.     $data_troops        = load_data("Data/BT_Troops.rxdata")
  370.     $data_states        = load_data("Data/BT_States.rxdata")
  371.     $data_animations    = load_data("Data/BT_Animations.rxdata")
  372.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
  373.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  374.     $data_system        = load_data("Data/BT_System.rxdata")
  375.     # Reset frame count for measuring play time
  376.     Graphics.frame_count = 0
  377.     # Make each game object
  378.     $game_temp          = Game_Temp.new
  379.     $game_system        = Game_System.new
  380.     $game_switches      = Game_Switches.new
  381.     $game_variables     = Game_Variables.new
  382.     $game_self_switches = Game_SelfSwitches.new
  383.     $game_screen        = Game_Screen.new
  384.     $game_actors        = Game_Actors.new
  385.     $game_party         = Game_Party.new
  386.     $game_troop         = Game_Troop.new
  387.     $game_map           = Game_Map.new
  388.     $game_player        = Game_Player.new
  389.     # Set up party for battle test
  390.     $game_party.setup_battle_test_members
  391.     # Set troop ID, can escape flag, and battleback
  392.     $game_temp.battle_troop_id = $data_system.test_troop_id
  393.     $game_temp.battle_can_escape = true
  394.     $game_map.battleback_name = $data_system.battleback_name
  395.     # Play battle start SE
  396.     $game_system.se_play($data_system.battle_start_se)
  397.     # Play battle BGM
  398.     $game_system.bgm_play($game_system.battle_bgm)
  399.     # Switch to battle screen
  400.     $scene = Scene_Battle.new
  401.   end
  402. end
Expand to see the code.


After you have done this create 3 folders named Easy, Normal and Hard Into the Data Folder, You need to make 3 different actor datas for each difficulty and 3 different enemy datas and put them in the folders, hope I explained it right... :grin:
Looks cool, I shall test it and edit.

EDIT: It works, and its nice! Good job on this, may sound harsh but you can try more difficult scripts, and instead of making your own game with your maps you could join someone else's project.
There's an awful lot of Scene_Title there for changing a single method. Might I suggest you make it simpler by just putting it all in one script, with that single method included? Like so:

class Scene_Title
  def command_new_game
    $scene = Scene_Difficulty.new
  end
end

class Scene_Difficulty
  [...]
end
Expand to see the code.


That way, there will be much better compatibility, an it will be simpler to install and understand.
rey meustrus wrote:
There's an awful lot of Scene_Title there for changing a single method. Might I suggest you make it simpler by just putting it all in one script, with that single method included? Like so:

class Scene_Title
  def command_new_game
    $scene = Scene_Difficulty.new
  end
end

class Scene_Difficulty
  [...]
end
Expand to see the code.


That way, there will be much better compatibility, an it will be simpler to install and understand.


I don't really see what putting it into one script would do, but any way here it is:
Content Hidden Spoiler
#
#
#                           KAISERLOMEPRODUCTIONS
#
#
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs title screen processing.
#  Edited by Lome0
#==============================================================================

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)
    # Make command window
    s1 = "New Game"
    s2 = "Continue"
    s3 = "Shutdown"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Continue enabled determinant
    # Check if at least one save file exists
    # If enabled, make @continue_enabled true; if disabled, make it false
    @continue_enabled = false
    for i in 0..3
      if FileTest.exist?("Save#{i+1}.rxdata")
        @continue_enabled = true
      end
    end
    # If continue is enabled, move cursor to "Continue"
    # If disabled, display "Continue" text in gray
    if @continue_enabled
      @command_window.index = 1
    else
      @command_window.disable_item(1)
    end
    # 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
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Shutdown
        command_shutdown
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Command: New Game
  #--------------------------------------------------------------------------
  def command_new_game
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Switch to map screen
    $scene = Scene_Difficulty.new
  end
  class Scene_Difficulty
  #--------------------------------------------------------------------------
  # * 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)
    # Make command window
    s1 = "Easy"
    s2 = "Normal"
    s3 = "Hard"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0  # Easy
        command_easy
      when 1  # Normal
        command_normal
      when 2  # Shutdown
        command_hard
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Command: Easy
  #--------------------------------------------------------------------------
  def command_easy
    # Load Data
    $data_actors        = load_data("Data/Easy/Actors.rxdata")
    $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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: Normal
  #--------------------------------------------------------------------------
  def command_normal
    # Load Data
    $data_actors        = load_data("Data/Normal/Actors.rxdata")
    $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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: Hard
  #--------------------------------------------------------------------------
  def command_hard
    # Load Data
    $data_actors        = load_data("Data/Hard/Actors.rxdata")
    $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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
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
    # 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
Expand to see the code.


EDIT: Here's the new version of the script, it makes so in easy mode switch 1 is on, in normal mode switch 2 is on and in hard mode switch 3 is on.
Content Hidden Spoiler
#
#
#                           KAISERLOMEPRODUCTIONS
#
#
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs title screen processing.
#  Edited by Lome0
#==============================================================================

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)
    # Make command window
    s1 = "New Game"
    s2 = "Continue"
    s3 = "Shutdown"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Continue enabled determinant
    # Check if at least one save file exists
    # If enabled, make @continue_enabled true; if disabled, make it false
    @continue_enabled = false
    for i in 0..3
      if FileTest.exist?("Save#{i+1}.rxdata")
        @continue_enabled = true
      end
    end
    # If continue is enabled, move cursor to "Continue"
    # If disabled, display "Continue" text in gray
    if @continue_enabled
      @command_window.index = 1
    else
      @command_window.disable_item(1)
    end
    # 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
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Shutdown
        command_shutdown
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Command: New Game
  #--------------------------------------------------------------------------
  def command_new_game
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Switch to map screen
    $scene = Scene_Difficulty.new
  end
  class Scene_Difficulty
  #--------------------------------------------------------------------------
  # * 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)
    # Make command window
    s1 = "Easy"
    s2 = "Normal"
    s3 = "Hard"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0  # Easy
        command_easy
      when 1  # Normal
        command_normal
      when 2  # Shutdown
        command_hard
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Command: Easy
  #--------------------------------------------------------------------------
  def command_easy
    # Turn on easy switch
    $game_switches[1] = true
    # Load Data
    $data_actors        = load_data("Data/Easy/Actors.rxdata")
    $data_enemies       = load_data("Data/Easy/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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: Normal
  #--------------------------------------------------------------------------
  def command_normal
      # Turn on normal switch
    $game_switches[2] = true
    # Load Data
    $data_actors        = load_data("Data/Normal/Actors.rxdata")
    $data_enemies       = load_data("Data/Normal/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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: Hard
  #--------------------------------------------------------------------------
  def command_hard
    # Turn on hard switch
    $game_switches[3] = true
    # Load Data
    $data_actors        = load_data("Data/Hard/Actors.rxdata")
    $data_enemies       = load_data("Data/Hard/Enemies.rxdata")
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # 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
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
    # 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
Expand to see the code.
since most part of the scene is unchanged, i recomend you to use aliases.
And instead of making 3 versions and using switchs, you could use an global variable
this is great! thanks for sharing
The main point I was trying to make is that you don't need to copy all of Scene_Title...in Ruby, if you put a method below one with the same name, the lower one overwrites the first. It's unnecessary to remove the existing Scene_Title, you just have to put that one method in below it.
Will this ever be out for VX?
tuti05 wrote:
Will this ever be out for VX?


I Don't Have VX
All it says when I click on the spoiler is expand to the see code! How do I do that. I really don't know and I want to use this script. Please tell me how.
Birdie wrote:
All it says when I click on the spoiler is expand to the see code! How do I do that. I really don't know and I want to use this script. Please tell me how.


Click Expand/Contract Or Something Like That.
I'm confused on what to do with the three folders. May i suggest making a video or using pictures?
That's a good start for a first script lome0.
However, your topic doesn't meet the requirements for a Submitted script.
I'd like you to read and follow the guidelines here viewtopic.php?f=11&t=4113 and update your topic please.

Thank you
-Dargor
Dargor wrote:
That's a good start for a first script lome0.
However, your topic doesn't meet the requirements for a Submitted script.
I'd like you to read and follow the guidelines here viewtopic.php?f=11&t=4113 and update your topic please.

Thank you
-Dargor


It's been a while since I've been to the forums.

Exactly what part of the requirements have I left out? I looked through that page before posting.









EDIT:
Version 3 stopped working for me for some reason and I added a new script to fix it.
Can you upload a demo?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=60437